Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2019-10-10 #536

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 4 additions & 4 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Account(Resource):
deleted_at : datetime
If present, when the account was last marked inactive.
dunning_campaign_id : str
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.
email : str
The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.
exemption_certificate : str
Expand Down Expand Up @@ -526,7 +526,7 @@ class AccountMini(Resource):
The unique identifier of the account.
company : str
dunning_campaign_id : str
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.
email : str
The email address used for communicating with this customer.
first_name : str
Expand Down Expand Up @@ -1069,7 +1069,7 @@ class Invoice(Resource):
due_at : datetime
Date invoice is due. This is the date the net terms are reached.
dunning_campaign_id : str
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.
Unique ID to identify the dunning campaign used when dunning the invoice. For sites without multiple dunning campaigns enabled, this will always be the default dunning campaign.
id : str
Invoice ID
line_items : LineItemList
Expand Down Expand Up @@ -2136,7 +2136,7 @@ class Plan(Resource):
description : str
Optional description, not displayed.
dunning_campaign_id : str
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.
hosted_pages : PlanHostedPages
Hosted pages settings
id : str
Expand Down