Skip to content

Commit 498d980

Browse files
authored
Merge pull request #694 from recurly/v3-v2019-10-10-9227329778
Generated Latest Changes for v2019-10-10
2 parents 6fd9776 + ef82e7d commit 498d980

File tree

3 files changed

+112
-9
lines changed

3 files changed

+112
-9
lines changed

openapi/api.yaml

Lines changed: 84 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ paths:
885885
Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode:
886886
recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion:
887887
\ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth:
888-
\ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv:
888+
\ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"30\"),\n\t\tCvv:
889889
\ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif
890890
e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
891891
{\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
@@ -3195,6 +3195,7 @@ paths:
31953195
- "$ref": "#/components/parameters/site_id"
31963196
- "$ref": "#/components/parameters/account_id"
31973197
- "$ref": "#/components/parameters/ids"
3198+
- "$ref": "#/components/parameters/invoice_state"
31983199
- "$ref": "#/components/parameters/limit"
31993200
- "$ref": "#/components/parameters/order"
32003201
- "$ref": "#/components/parameters/sort_dates"
@@ -7394,6 +7395,7 @@ paths:
73947395
parameters:
73957396
- "$ref": "#/components/parameters/site_id"
73967397
- "$ref": "#/components/parameters/ids"
7398+
- "$ref": "#/components/parameters/invoice_state"
73977399
- "$ref": "#/components/parameters/limit"
73987400
- "$ref": "#/components/parameters/order"
73997401
- "$ref": "#/components/parameters/sort_dates"
@@ -7888,8 +7890,6 @@ paths:
78887890
summary: Apply available credit to a pending or past due charge invoice
78897891
description: Apply credit payment to the outstanding balance on an existing
78907892
charge invoice from an account’s available balance from existing credit invoices.
7891-
Credit that was refunded from the invoice cannot be applied back to the invoice
7892-
as payment.
78937893
parameters:
78947894
- "$ref": "#/components/parameters/site_id"
78957895
- "$ref": "#/components/parameters/invoice_id"
@@ -13059,6 +13059,7 @@ paths:
1305913059
- "$ref": "#/components/parameters/site_id"
1306013060
- "$ref": "#/components/parameters/subscription_id"
1306113061
- "$ref": "#/components/parameters/ids"
13062+
- "$ref": "#/components/parameters/invoice_state"
1306213063
- "$ref": "#/components/parameters/limit"
1306313064
- "$ref": "#/components/parameters/order"
1306413065
- "$ref": "#/components/parameters/sort_dates"
@@ -14724,6 +14725,18 @@ components:
1472414725
required: true
1472514726
schema:
1472614727
type: string
14728+
invoice_state:
14729+
name: state
14730+
in: query
14731+
description: Invoice state.
14732+
schema:
14733+
type: string
14734+
default: all
14735+
enum:
14736+
- pending
14737+
- past_due
14738+
- paid
14739+
- failed
1472714740
measured_unit_id:
1472814741
name: measured_unit_id
1472914742
in: path
@@ -15662,6 +15675,11 @@ components:
1566215675
"$ref": "#/components/schemas/BillingInfoCreate"
1566315676
custom_fields:
1566415677
"$ref": "#/components/schemas/CustomFields"
15678+
entity_use_code:
15679+
type: string
15680+
description: The Avalara AvaTax value that can be passed to identify the
15681+
customer type for tax purposes. The range of values can be A - R (more
15682+
info at Avalara). Value is case-sensitive.
1566515683
AccountResponse:
1566615684
type: object
1566715685
properties:
@@ -15781,6 +15799,11 @@ components:
1578115799
"$ref": "#/components/schemas/BillingInfo"
1578215800
custom_fields:
1578315801
"$ref": "#/components/schemas/CustomFields"
15802+
entity_use_code:
15803+
type: string
15804+
description: The Avalara AvaTax value that can be passed to identify the
15805+
customer type for tax purposes. The range of values can be A - R (more
15806+
info at Avalara). Value is case-sensitive.
1578415807
AccountNote:
1578515808
type: object
1578615809
required:
@@ -15932,6 +15955,11 @@ components:
1593215955
type: string
1593315956
title: Country
1593415957
description: Country, 2-letter ISO 3166-1 alpha-2 code.
15958+
geo_code:
15959+
type: string
15960+
maxLength: 20
15961+
description: Code that represents a geographic entity (location or object).
15962+
Only returned for Sling Vertex Integration
1593515963
AddOnMini:
1593615964
type: object
1593715965
title: Add-on mini details
@@ -16652,16 +16680,30 @@ components:
1665216680
properties:
1665316681
account_reference:
1665416682
type: string
16655-
description: Used by Adyen gateways. The Shopper Reference value used
16656-
when the external token was created. Must be used in conjunction with
16657-
gateway_token and gateway_code.
16683+
description: Used by Adyen and Braintree gateways. For Adyen The Shopper
16684+
Reference value used when the external token was created. Must be
16685+
used in conjunction with gateway_token and gateway_code. For Braintree
16686+
the PayPal PayerID is populated in the response.
1665816687
maxLength: 264
16688+
card_network_preference:
16689+
type: string
16690+
description: Represents the card network preference associated with the
16691+
billing info for dual badged cards. Must be a supported card network.
16692+
enum:
16693+
- Bancontact
16694+
- CartesBancaires
16695+
- Dankort
16696+
- MasterCard
16697+
- Visa
1665916698
amazon_billing_agreement_id:
1666016699
type: string
1666116700
title: Amazon billing agreement ID
1666216701
paypal_billing_agreement_id:
1666316702
type: string
1666416703
title: PayPal billing agreement ID
16704+
roku_billing_agreement_id:
16705+
type: string
16706+
title: Roku's CIB if billing through Roku
1666516707
fraud_session_id:
1666616708
type: string
1666716709
title: Fraud Session ID
@@ -19734,6 +19776,11 @@ components:
1973419776
type: string
1973519777
maxLength: 50
1973619778
description: Country, 2-letter ISO 3166-1 alpha-2 code.
19779+
geo_code:
19780+
type: string
19781+
maxLength: 20
19782+
description: Code that represents a geographic entity (location or object).
19783+
Only returned for Sling Vertex Integration
1973719784
created_at:
1973819785
type: string
1973919786
title: Created at
@@ -19789,6 +19836,11 @@ components:
1978919836
type: string
1979019837
maxLength: 50
1979119838
description: Country, 2-letter ISO 3166-1 alpha-2 code.
19839+
geo_code:
19840+
type: string
19841+
maxLength: 20
19842+
description: Code that represents a geographic entity (location or object).
19843+
Only returned for Sling Vertex Integration
1979219844
required:
1979319845
- first_name
1979419846
- last_name
@@ -20039,6 +20091,11 @@ components:
2003920091
type: string
2004020092
maxLength: 50
2004120093
description: Country, 2-letter ISO 3166-1 alpha-2 code.
20094+
geo_code:
20095+
type: string
20096+
maxLength: 20
20097+
description: Code that represents a geographic entity (location or object).
20098+
Only returned for Sling Vertex Integration
2004220099
Site:
2004320100
type: object
2004420101
properties:
@@ -21334,6 +21391,14 @@ components:
2133421391
remaining_billing_cycles:
2133521392
type: integer
2133621393
description: Represents how many billing cycles are left in a ramp interval.
21394+
starting_on:
21395+
type: string
21396+
format: date-time
21397+
title: Date the ramp interval starts
21398+
ending_on:
21399+
type: string
21400+
format: date-time
21401+
title: Date the ramp interval ends
2133721402
unit_amount:
2133821403
type: integer
2133921404
description: Represents the price for the ramp interval.
@@ -22275,9 +22340,20 @@ components:
2227522340
properties:
2227622341
account_reference:
2227722342
type: string
22278-
description: Used by Adyen gateways. The Shopper Reference value used
22279-
when the external token was created.
22343+
description: Used by Adyen and Braintree gateways. For Adyen the Shopper
22344+
Reference value used when the external token was created. For Braintree
22345+
the PayPal PayerID is populated in the response.
2228022346
maxLength: 264
22347+
card_network_preference:
22348+
type: string
22349+
description: Represents the card network preference associated with the
22350+
billing info for dual badged cards. Must be a supported card network.
22351+
enum:
22352+
- Bancontact
22353+
- CartesBancaires
22354+
- Dankort
22355+
- MasterCard
22356+
- Visa
2228122357
billing_agreement_id:
2228222358
type: string
2228322359
description: Billing Agreement identifier. Only present for Amazon or Paypal

recurly/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,8 @@ def list_account_invoices(self, account_id, **options):
749749
results correspond to your request.
750750
* Records are returned in an arbitrary order. Since results are all
751751
returned at once you can sort the records yourself.
752+
state : str
753+
Invoice state.
752754
limit : int
753755
Limit number of records 1-200.
754756
order : str
@@ -1970,6 +1972,8 @@ def list_invoices(self, **options):
19701972
results correspond to your request.
19711973
* Records are returned in an arbitrary order. Since results are all
19721974
returned at once you can sort the records yourself.
1975+
state : str
1976+
Invoice state.
19731977
limit : int
19741978
Limit number of records 1-200.
19751979
order : str
@@ -3370,6 +3374,8 @@ def list_subscription_invoices(self, subscription_id, **options):
33703374
results correspond to your request.
33713375
* Records are returned in an arbitrary order. Since results are all
33723376
returned at once you can sort the records yourself.
3377+
state : str
3378+
Invoice state.
33733379
limit : int
33743380
Limit number of records 1-200.
33753381
order : str

recurly/resources.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class Address(Resource):
5757
Country, 2-letter ISO 3166-1 alpha-2 code.
5858
first_name : str
5959
First name
60+
geo_code : str
61+
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
6062
last_name : str
6163
Last name
6264
phone : str
@@ -75,6 +77,7 @@ class Address(Resource):
7577
"city": str,
7678
"country": str,
7779
"first_name": str,
80+
"geo_code": str,
7881
"last_name": str,
7982
"phone": str,
8083
"postal_code": str,
@@ -147,6 +150,8 @@ class Account(Resource):
147150
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.
148151
email : str
149152
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.
153+
entity_use_code : str
154+
The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.
150155
exemption_certificate : str
151156
The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.
152157
first_name : str
@@ -200,6 +205,7 @@ class Account(Resource):
200205
"deleted_at": datetime,
201206
"dunning_campaign_id": str,
202207
"email": str,
208+
"entity_use_code": str,
203209
"exemption_certificate": str,
204210
"first_name": str,
205211
"has_active_subscription": bool,
@@ -238,6 +244,8 @@ class ShippingAddress(Resource):
238244
Created at
239245
email : str
240246
first_name : str
247+
geo_code : str
248+
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
241249
id : str
242250
Shipping Address ID
243251
last_name : str
@@ -264,6 +272,7 @@ class ShippingAddress(Resource):
264272
"created_at": datetime,
265273
"email": str,
266274
"first_name": str,
275+
"geo_code": str,
267276
"id": str,
268277
"last_name": str,
269278
"nickname": str,
@@ -335,6 +344,8 @@ class PaymentMethod(Resource):
335344
The bank account type. Only present for ACH payment methods.
336345
billing_agreement_id : str
337346
Billing Agreement identifier. Only present for Amazon or Paypal payment methods.
347+
card_network_preference : str
348+
Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
338349
card_type : str
339350
Visa, MasterCard, American Express, Discover, JCB, etc.
340351
cc_bin_country : str
@@ -367,6 +378,7 @@ class PaymentMethod(Resource):
367378
schema = {
368379
"account_type": str,
369380
"billing_agreement_id": str,
381+
"card_network_preference": str,
370382
"card_type": str,
371383
"cc_bin_country": str,
372384
"exp_month": int,
@@ -389,7 +401,7 @@ class GatewayAttributes(Resource):
389401
Attributes
390402
----------
391403
account_reference : str
392-
Used by Adyen gateways. The Shopper Reference value used when the external token was created.
404+
Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response.
393405
"""
394406

395407
schema = {
@@ -1238,6 +1250,8 @@ class InvoiceAddress(Resource):
12381250
Country, 2-letter ISO 3166-1 alpha-2 code.
12391251
first_name : str
12401252
First name
1253+
geo_code : str
1254+
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
12411255
last_name : str
12421256
Last name
12431257
name_on_account : str
@@ -1259,6 +1273,7 @@ class InvoiceAddress(Resource):
12591273
"company": str,
12601274
"country": str,
12611275
"first_name": str,
1276+
"geo_code": str,
12621277
"last_name": str,
12631278
"name_on_account": str,
12641279
"phone": str,
@@ -2031,17 +2046,23 @@ class SubscriptionRampIntervalResponse(Resource):
20312046
"""
20322047
Attributes
20332048
----------
2049+
ending_on : datetime
2050+
Date the ramp interval ends
20342051
remaining_billing_cycles : int
20352052
Represents how many billing cycles are left in a ramp interval.
20362053
starting_billing_cycle : int
20372054
Represents the billing cycle where a ramp interval starts.
2055+
starting_on : datetime
2056+
Date the ramp interval starts
20382057
unit_amount : int
20392058
Represents the price for the ramp interval.
20402059
"""
20412060

20422061
schema = {
2062+
"ending_on": datetime,
20432063
"remaining_billing_cycles": int,
20442064
"starting_billing_cycle": int,
2065+
"starting_on": datetime,
20452066
"unit_amount": int,
20462067
}
20472068

0 commit comments

Comments
 (0)