Skip to content

Commit cd82855

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent e6dce26 commit cd82855

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

openapi/api.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20911,6 +20911,8 @@ components:
2091120911
default: 0
2091220912
net_terms_type:
2091320913
"$ref": "#/components/schemas/NetTermsTypeEnum"
20914+
credit_application_policy:
20915+
"$ref": "#/components/schemas/CreditApplicationPolicy"
2091420916
po_number:
2091520917
type: string
2091620918
title: Purchase order number
@@ -22507,6 +22509,19 @@ components:
2250722509
format: float
2250822510
title: Tax In Cents
2250922511
description: The tax converted to the currency.
22512+
rate:
22513+
type: string
22514+
title: Rate
22515+
description: The conversion rate to the currency.
22516+
source:
22517+
type: string
22518+
title: Source
22519+
description: The source of the conversion rate.
22520+
date:
22521+
type: string
22522+
title: Date
22523+
format: date
22524+
description: The date of the conversion rate.
2251022525
ShippingAddressCreate:
2251122526
type: object
2251222527
properties:
@@ -23125,6 +23140,8 @@ components:
2312523140
default: 0
2312623141
net_terms_type:
2312723142
"$ref": "#/components/schemas/NetTermsTypeEnum"
23143+
credit_application_policy:
23144+
"$ref": "#/components/schemas/CreditApplicationPolicy"
2312823145
terms_and_conditions:
2312923146
type: string
2313023147
title: Terms and conditions
@@ -23976,6 +23993,8 @@ components:
2397623993
default: 0
2397723994
net_terms_type:
2397823995
"$ref": "#/components/schemas/NetTermsTypeEnum"
23996+
credit_application_policy:
23997+
"$ref": "#/components/schemas/CreditApplicationPolicy"
2397923998
gateway_code:
2398023999
type: string
2398124000
title: Gateway Code
@@ -24107,6 +24126,8 @@ components:
2410724126
description: The new set of ramp intervals for the subscription.
2410824127
items:
2410924128
"$ref": "#/components/schemas/SubscriptionRampInterval"
24129+
credit_application_policy:
24130+
"$ref": "#/components/schemas/CreditApplicationPolicy"
2411024131
bulk:
2411124132
type: boolean
2411224133
description: Optional field to be used only when needing to bypass the 60
@@ -24195,6 +24216,8 @@ components:
2419524216
default: 0
2419624217
net_terms_type:
2419724218
"$ref": "#/components/schemas/NetTermsTypeEnum"
24219+
credit_application_policy:
24220+
"$ref": "#/components/schemas/CreditApplicationPolicy"
2419824221
gateway_code:
2419924222
type: string
2420024223
title: Gateway Code
@@ -25033,6 +25056,8 @@ components:
2503325056
default: 0
2503425057
net_terms_type:
2503525058
"$ref": "#/components/schemas/NetTermsTypeEnum"
25059+
credit_application_policy_override:
25060+
"$ref": "#/components/schemas/CreditApplicationPolicy"
2503625061
terms_and_conditions:
2503725062
type: string
2503825063
title: Terms and conditions
@@ -27038,6 +27063,28 @@ components:
2703827063
enum:
2703927064
- automatic
2704027065
- manual
27066+
CreditApplicationPolicy:
27067+
type: object
27068+
title: Credit Application Policy
27069+
description: |
27070+
Controls whether credit invoices are automatically applied to new invoices.
27071+
The `mode` field determines the application behavior.
27072+
properties:
27073+
mode:
27074+
"$ref": "#/components/schemas/CreditApplicationModeEnum"
27075+
required:
27076+
- mode
27077+
CreditApplicationModeEnum:
27078+
type: string
27079+
title: Credit Application Mode
27080+
description: |
27081+
Determines which credit invoices are applied to invoices:
27082+
- `all`: All available credit invoices are applied (default)
27083+
- `none`: No credit invoices are applied automatically
27084+
enum:
27085+
- all
27086+
- none
27087+
default: all
2704127088
InvoiceRefundTypeEnum:
2704227089
type: string
2704327090
enum:

recurly/resources.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,12 @@ class ReferenceOnlyCurrencyConversion(Resource):
17541754
----------
17551755
currency : str
17561756
3-letter ISO 4217 currency code.
1757+
date : str
1758+
The date of the conversion rate.
1759+
rate : str
1760+
The conversion rate to the currency.
1761+
source : str
1762+
The source of the conversion rate.
17571763
subtotal_in_cents : float
17581764
The subtotal converted to the currency.
17591765
tax_in_cents : float
@@ -1762,6 +1768,9 @@ class ReferenceOnlyCurrencyConversion(Resource):
17621768

17631769
schema = {
17641770
"currency": str,
1771+
"date": str,
1772+
"rate": str,
1773+
"source": str,
17651774
"subtotal_in_cents": float,
17661775
"tax_in_cents": float,
17671776
}
@@ -2118,6 +2127,9 @@ class Subscription(Resource):
21182127
Returns subscription level coupon redemptions that are tied to this subscription.
21192128
created_at : datetime
21202129
Created at
2130+
credit_application_policy : CreditApplicationPolicy
2131+
Controls whether credit invoices are automatically applied to new invoices.
2132+
The `mode` field determines the application behavior.
21212133
currency : str
21222134
3-letter ISO 4217 currency code.
21232135
current_period_ends_at : datetime
@@ -2233,6 +2245,7 @@ class Subscription(Resource):
22332245
"converted_at": datetime,
22342246
"coupon_redemptions": ["CouponRedemptionMini"],
22352247
"created_at": datetime,
2248+
"credit_application_policy": "CreditApplicationPolicy",
22362249
"currency": str,
22372250
"current_period_ends_at": datetime,
22382251
"current_period_started_at": datetime,
@@ -2670,6 +2683,21 @@ class SubscriptionRampIntervalResponse(Resource):
26702683
}
26712684

26722685

2686+
class CreditApplicationPolicy(Resource):
2687+
"""
2688+
Attributes
2689+
----------
2690+
mode : str
2691+
Determines which credit invoices are applied to invoices:
2692+
- `all`: All available credit invoices are applied (default)
2693+
- `none`: No credit invoices are applied automatically
2694+
"""
2695+
2696+
schema = {
2697+
"mode": str,
2698+
}
2699+
2700+
26732701
class UniqueCouponCodeParams(Resource):
26742702
"""
26752703
Attributes

0 commit comments

Comments
 (0)