Skip to content

Commit

Permalink
Merge pull request #186 from recurly/v3-v2019-10-10-1645745613
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2019-10-10
  • Loading branch information
douglasmiller authored Feb 25, 2022
2 parents 4b5dc09 + 35e02ec commit 26bf904
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 140 deletions.
70 changes: 34 additions & 36 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14163,9 +14163,14 @@ paths:
var_dump($e);
}
- lang: Go
source: "collection, err := client.PreviewPurchase(purchaseReq)\nif e, ok
:= err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
{\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
source: "purchaseReq := &recurly.PurchaseCreate{\n\tCurrency: recurly.String(\"USD\"),\n\tAccount:
&recurly.AccountPurchase{\n\t\tCode: recurly.String(account.Code),\n\t},\n\tSubscriptions:
[]recurly.SubscriptionPurchase{\n\t\t{\n\t\t\tPlanCode: recurly.String(plan.Code),\n\t\t\tNextBillDate:
recurly.Time(time.Date(2078, time.November, 10, 23, 0, 0, 0, time.UTC)),\n\t\t},\n\t},\n\tShipping:
&recurly.ShippingPurchase{\n\t\tAddressId: recurly.String(shippingAddressID),\n\t},\n}\ncollection,
err := client.PreviewPurchase(purchaseReq)\nif e, ok := err.(*recurly.Error);
ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Preview Charge
Invoice %v\", collection.ChargeInvoice)"
"/sites/{site_id}/export_dates":
Expand Down Expand Up @@ -15495,11 +15500,10 @@ components:
dunning_campaign_id:
type: string
title: Dunning Campaign ID
description: Unique ID to identify a dunning campaign. Available when the
Dunning Campaigns feature is enabled. Used to specify if a non-default
dunning campaign should be assigned to this account. For sites without
multiple dunning campaigns enabled, the default dunning campaign will
always be used.
description: Unique ID to identify a dunning campaign. Used to specify if
a non-default dunning campaign should be assigned to this account. For
sites without multiple dunning campaigns enabled, the default dunning
campaign will always be used.
address:
"$ref": "#/components/schemas/Address"
billing_info:
Expand Down Expand Up @@ -15605,11 +15609,10 @@ components:
dunning_campaign_id:
type: string
title: Dunning Campaign ID
description: Unique ID to identify a dunning campaign. Available when the
Dunning Campaigns feature is enabled. Used to specify if a non-default
dunning campaign should be assigned to this account. For sites without
multiple dunning campaigns enabled, the default dunning campaign will
always be used.
description: Unique ID to identify a dunning campaign. Used to specify if
a non-default dunning campaign should be assigned to this account. For
sites without multiple dunning campaigns enabled, the default dunning
campaign will always be used.
address:
"$ref": "#/components/schemas/Address"
billing_info:
Expand Down Expand Up @@ -15678,11 +15681,10 @@ components:
dunning_campaign_id:
type: string
title: Dunning Campaign ID
description: Unique ID to identify a dunning campaign. Available when the
Dunning Campaigns feature is enabled. Used to specify if a non-default
dunning campaign should be assigned to this account. For sites without
multiple dunning campaigns enabled, the default dunning campaign will
always be used.
description: Unique ID to identify a dunning campaign. Used to specify if
a non-default dunning campaign should be assigned to this account. For
sites without multiple dunning campaigns enabled, the default dunning
campaign will always be used.
AccountBalance:
type: object
properties:
Expand Down Expand Up @@ -17851,9 +17853,8 @@ components:
type: string
title: Dunning Campaign ID
description: Unique ID to identify the dunning campaign used when dunning
the invoice. Available when the Dunning Campaigns feature is enabled.
For sites without multiple dunning campaigns enabled, this will always
be the default dunning campaign.
the invoice. For sites without multiple dunning campaigns enabled, this
will always be the default dunning campaign.
InvoiceCreate:
type: object
properties:
Expand Down Expand Up @@ -18889,11 +18890,10 @@ components:
dunning_campaign_id:
type: string
title: Dunning Campaign ID
description: Unique ID to identify a dunning campaign. Available when the
Dunning Campaigns feature is enabled. Used to specify if a non-default
dunning campaign should be assigned to this plan. For sites without multiple
dunning campaigns enabled, the default dunning campaign will always be
used.
description: Unique ID to identify a dunning campaign. Used to specify if
a non-default dunning campaign should be assigned to this plan. For sites
without multiple dunning campaigns enabled, the default dunning campaign
will always be used.
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -19069,11 +19069,10 @@ components:
dunning_campaign_id:
type: string
title: Dunning Campaign ID
description: Unique ID to identify a dunning campaign. Available when the
Dunning Campaigns feature is enabled. Used to specify if a non-default
dunning campaign should be assigned to this plan. For sites without multiple
dunning campaigns enabled, the default dunning campaign will always be
used.
description: Unique ID to identify a dunning campaign. Used to specify if
a non-default dunning campaign should be assigned to this plan. For sites
without multiple dunning campaigns enabled, the default dunning campaign
will always be used.
required:
- code
- name
Expand Down Expand Up @@ -19273,11 +19272,10 @@ components:
dunning_campaign_id:
type: string
title: Dunning Campaign ID
description: Unique ID to identify a dunning campaign. Available when the
Dunning Campaigns feature is enabled. Used to specify if a non-default
dunning campaign should be assigned to this plan. For sites without multiple
dunning campaigns enabled, the default dunning campaign will always be
used.
description: Unique ID to identify a dunning campaign. Used to specify if
a non-default dunning campaign should be assigned to this plan. For sites
without multiple dunning campaigns enabled, the default dunning campaign
will always be used.
AddOnPricing:
type: object
properties:
Expand Down
21 changes: 9 additions & 12 deletions src/main/java/com/recurly/v3/requests/AccountCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ public class AccountCreate extends Request {
private List<CustomField> customFields;

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this account.
* For sites without multiple dunning campaigns enabled, the default dunning campaign will always
* be used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this account. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
@SerializedName("dunning_campaign_id")
@Expose
Expand Down Expand Up @@ -259,20 +258,18 @@ public void setCustomFields(final List<CustomField> customFields) {
}

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this account.
* For sites without multiple dunning campaigns enabled, the default dunning campaign will always
* be used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this account. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
public String getDunningCampaignId() {
return this.dunningCampaignId;
}

/**
* @param dunningCampaignId Unique ID to identify a dunning campaign. Available when the Dunning
* Campaigns feature is enabled. Used to specify if a non-default dunning campaign should be
* assigned to this account. For sites without multiple dunning campaigns enabled, the default
* dunning campaign will always be used.
* @param dunningCampaignId Unique ID to identify a dunning campaign. Used to specify if a
* non-default dunning campaign should be assigned to this account. For sites without multiple
* dunning campaigns enabled, the default dunning campaign will always be used.
*/
public void setDunningCampaignId(final String dunningCampaignId) {
this.dunningCampaignId = dunningCampaignId;
Expand Down
21 changes: 9 additions & 12 deletions src/main/java/com/recurly/v3/requests/AccountPurchase.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ public class AccountPurchase extends Request {
private List<CustomField> customFields;

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this account.
* For sites without multiple dunning campaigns enabled, the default dunning campaign will always
* be used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this account. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
@SerializedName("dunning_campaign_id")
@Expose
Expand Down Expand Up @@ -263,20 +262,18 @@ public void setCustomFields(final List<CustomField> customFields) {
}

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this account.
* For sites without multiple dunning campaigns enabled, the default dunning campaign will always
* be used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this account. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
public String getDunningCampaignId() {
return this.dunningCampaignId;
}

/**
* @param dunningCampaignId Unique ID to identify a dunning campaign. Available when the Dunning
* Campaigns feature is enabled. Used to specify if a non-default dunning campaign should be
* assigned to this account. For sites without multiple dunning campaigns enabled, the default
* dunning campaign will always be used.
* @param dunningCampaignId Unique ID to identify a dunning campaign. Used to specify if a
* non-default dunning campaign should be assigned to this account. For sites without multiple
* dunning campaigns enabled, the default dunning campaign will always be used.
*/
public void setDunningCampaignId(final String dunningCampaignId) {
this.dunningCampaignId = dunningCampaignId;
Expand Down
21 changes: 9 additions & 12 deletions src/main/java/com/recurly/v3/requests/AccountUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ public class AccountUpdate extends Request {
private List<CustomField> customFields;

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this account.
* For sites without multiple dunning campaigns enabled, the default dunning campaign will always
* be used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this account. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
@SerializedName("dunning_campaign_id")
@Expose
Expand Down Expand Up @@ -224,20 +223,18 @@ public void setCustomFields(final List<CustomField> customFields) {
}

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this account.
* For sites without multiple dunning campaigns enabled, the default dunning campaign will always
* be used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this account. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
public String getDunningCampaignId() {
return this.dunningCampaignId;
}

/**
* @param dunningCampaignId Unique ID to identify a dunning campaign. Available when the Dunning
* Campaigns feature is enabled. Used to specify if a non-default dunning campaign should be
* assigned to this account. For sites without multiple dunning campaigns enabled, the default
* dunning campaign will always be used.
* @param dunningCampaignId Unique ID to identify a dunning campaign. Used to specify if a
* non-default dunning campaign should be assigned to this account. For sites without multiple
* dunning campaigns enabled, the default dunning campaign will always be used.
*/
public void setDunningCampaignId(final String dunningCampaignId) {
this.dunningCampaignId = dunningCampaignId;
Expand Down
21 changes: 9 additions & 12 deletions src/main/java/com/recurly/v3/requests/PlanCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ public class PlanCreate extends Request {
private String description;

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this plan. For
* sites without multiple dunning campaigns enabled, the default dunning campaign will always be
* used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this plan. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
@SerializedName("dunning_campaign_id")
@Expose
Expand Down Expand Up @@ -313,20 +312,18 @@ public void setDescription(final String description) {
}

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this plan. For
* sites without multiple dunning campaigns enabled, the default dunning campaign will always be
* used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this plan. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
public String getDunningCampaignId() {
return this.dunningCampaignId;
}

/**
* @param dunningCampaignId Unique ID to identify a dunning campaign. Available when the Dunning
* Campaigns feature is enabled. Used to specify if a non-default dunning campaign should be
* assigned to this plan. For sites without multiple dunning campaigns enabled, the default
* dunning campaign will always be used.
* @param dunningCampaignId Unique ID to identify a dunning campaign. Used to specify if a
* non-default dunning campaign should be assigned to this plan. For sites without multiple
* dunning campaigns enabled, the default dunning campaign will always be used.
*/
public void setDunningCampaignId(final String dunningCampaignId) {
this.dunningCampaignId = dunningCampaignId;
Expand Down
21 changes: 9 additions & 12 deletions src/main/java/com/recurly/v3/requests/PlanUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ public class PlanUpdate extends Request {
private String description;

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this plan. For
* sites without multiple dunning campaigns enabled, the default dunning campaign will always be
* used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this plan. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
@SerializedName("dunning_campaign_id")
@Expose
Expand Down Expand Up @@ -293,20 +292,18 @@ public void setDescription(final String description) {
}

/**
* Unique ID to identify a dunning campaign. Available when the Dunning Campaigns feature is
* enabled. Used to specify if a non-default dunning campaign should be assigned to this plan. For
* sites without multiple dunning campaigns enabled, the default dunning campaign will always be
* used.
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
* should be assigned to this plan. For sites without multiple dunning campaigns enabled, the
* default dunning campaign will always be used.
*/
public String getDunningCampaignId() {
return this.dunningCampaignId;
}

/**
* @param dunningCampaignId Unique ID to identify a dunning campaign. Available when the Dunning
* Campaigns feature is enabled. Used to specify if a non-default dunning campaign should be
* assigned to this plan. For sites without multiple dunning campaigns enabled, the default
* dunning campaign will always be used.
* @param dunningCampaignId Unique ID to identify a dunning campaign. Used to specify if a
* non-default dunning campaign should be assigned to this plan. For sites without multiple
* dunning campaigns enabled, the default dunning campaign will always be used.
*/
public void setDunningCampaignId(final String dunningCampaignId) {
this.dunningCampaignId = dunningCampaignId;
Expand Down
Loading

0 comments on commit 26bf904

Please sign in to comment.