Skip to content

Commit 1de7c98

Browse files
DX Codefreshdouglasmiller
authored andcommitted
Generated Latest Changes for v2021-02-25
1 parent d60676d commit 1de7c98

2 files changed

Lines changed: 61 additions & 32 deletions

File tree

openapi/api.yaml

Lines changed: 50 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16451,8 +16451,8 @@ components:
1645116451
description: |
1645216452
If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
1645316453
must include one to many tiers with `ending_quantity` and `unit_amount` for
16454-
the desired `currencies`. There must be one tier with an `ending_quantity`
16455-
of 999999999 which is the default if not provided.
16454+
the desired `currencies`. There must be one tier without an `ending_quantity` value
16455+
which represents the final tier.
1645616456
percentage_tiers:
1645716457
type: array
1645816458
title: Percentage Tiers By Currency
@@ -16461,7 +16461,8 @@ components:
1646116461
description: |
1646216462
Array of objects which must have at least one set of tiers
1646316463
per currency and the currency code. The tier_type must be `volume` or `tiered`,
16464-
if not, it must be absent. There must be one tier without ending_amount value.
16464+
if not, it must be absent. There must be one tier without an `ending_amount` value
16465+
which represents the final tier.
1646516466
required:
1646616467
- code
1646716468
- name
@@ -16590,7 +16591,7 @@ components:
1659016591
If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
1659116592
must include one to many tiers with `ending_quantity` and `unit_amount` for
1659216593
the desired `currencies`. There must be one tier without an `ending_quantity` value
16593-
that represents the final tier.
16594+
which represents the final tier.
1659416595
percentage_tiers:
1659516596
type: array
1659616597
title: Percentage Tiers By Currency
@@ -16599,7 +16600,8 @@ components:
1659916600
description: |
1660016601
`percentage_tiers` is an array of objects, which must have the set of tiers
1660116602
per currency and the currency code. The tier_type must be `volume` or `tiered`,
16602-
if not, it must be absent.
16603+
if not, it must be absent. There must be one tier without an `ending_amount` value
16604+
which represents the final tier.
1660316605
BillingInfo:
1660416606
type: object
1660516607
properties:
@@ -19362,11 +19364,11 @@ components:
1936219364
ending_quantity:
1936319365
type: integer
1936419366
title: Ending quantity
19365-
description: Ending quantity for the tier. This represents a unit amount
19366-
for unit-priced add ons.
1936719367
minimum: 1
1936819368
maximum: 999999999
19369-
default: 999999999
19369+
default:
19370+
description: Ending quantity for the tier. This represents a unit amount
19371+
for unit-priced add ons. Must be left empty if it is the final tier.
1937019372
usage_percentage:
1937119373
type: string
1937219374
title: Usage Percentage
@@ -19399,14 +19401,19 @@ components:
1939919401
type: number
1940019402
format: float
1940119403
title: Ending amount
19402-
minimum: 0.1
19403-
maximum: 9999999999999
19404+
minimum: 0.01
19405+
maximum: 9999999999999.99
19406+
default:
1940419407
description: Ending amount for the tier. Allows up to 2 decimal places.
19405-
The last tier ending_amount is null.
19408+
Must be left empty if it is the final tier.
1940619409
usage_percentage:
1940719410
type: string
1940819411
title: Usage Percentage
19409-
description: Decimal usage percentage.
19412+
minimum: 0
19413+
maximum: 100
19414+
description: |
19415+
The percentage taken of the monetary amount of usage tracked.
19416+
This can be up to 4 decimal places represented as a string.
1941019417
Settings:
1941119418
type: object
1941219419
properties:
@@ -20097,10 +20104,11 @@ components:
2009720104
items:
2009820105
"$ref": "#/components/schemas/SubscriptionAddOnTier"
2009920106
minItems: 1
20100-
description: |
20101-
If tiers are provided in the request, all existing tiers on the Subscription Add-on will be
20102-
removed and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and
20103-
add_on.usage_type is percentage use percentage_tiers instead.
20107+
description: "If tiers are provided in the request, all existing tiers on
20108+
the Subscription Add-on will be\nremoved and replaced by the tiers in
20109+
the request. If add_on.tier_type is tiered or volume and\nadd_on.usage_type
20110+
is percentage use percentage_tiers instead. \nThere must be one tier without
20111+
an `ending_quantity` value which represents the final tier.\n"
2010420112
percentage_tiers:
2010520113
type: array
2010620114
title: Percentage Tiers
@@ -20110,7 +20118,8 @@ components:
2011020118
description: |
2011120119
If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be
2011220120
removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and
20113-
add_on.usage_type is percentage
20121+
add_on.usage_type is percentage.
20122+
There must be one tier without an `ending_amount` value which represents the final tier.
2011420123
usage_percentage:
2011520124
type: number
2011620125
format: float
@@ -20176,7 +20185,7 @@ components:
2017620185
description: |
2017720186
If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object
2017820187
must include one to many tiers with `ending_quantity` and `unit_amount`.
20179-
There must be one tier without ending_quantity value.
20188+
There must be one tier without an `ending_quantity` value which represents the final tier.
2018020189
See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html)
2018120190
for an overview of how to configure quantity-based pricing models.
2018220191
percentage_tiers:
@@ -20187,12 +20196,14 @@ components:
2018720196
minItems: 1
2018820197
description: |
2018920198
If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be
20190-
removed and replaced by the percentage tiers in the request. There must be one tier without ending_amount value.
20199+
removed and replaced by the percentage tiers in the request. There must be one tier without ending_amount value which represents the final tier.
2019120200
Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage.
2019220201
usage_percentage:
2019320202
type: number
2019420203
format: float
2019520204
title: Usage Percentage
20205+
minimum: 0
20206+
maximum: 100
2019620207
description: The percentage taken of the monetary amount of usage tracked.
2019720208
This can be up to 4 decimal places. A value between 0.0 and 100.0. Required
2019820209
if `add_on_type` is usage and `usage_type` is percentage. Must be omitted
@@ -20255,8 +20266,18 @@ components:
2025520266
description: |
2025620267
If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object
2025720268
must include one to many tiers with `ending_quantity` and `unit_amount`.
20258-
There must be one tier with an `ending_quantity` of 999999999 which is the
20259-
default if not provided.
20269+
There must be one tier without an `ending_quantity` value which represents the final tier.
20270+
percentage_tiers:
20271+
type: array
20272+
title: Percentage Tiers
20273+
items:
20274+
"$ref": "#/components/schemas/SubscriptionAddOnPercentageTier"
20275+
minItems: 1
20276+
description: |
20277+
If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be
20278+
removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and
20279+
add_on.usage_type is percentage.
20280+
There must be one tier without an `ending_amount` value which represents the final tier.
2026020281
usage_percentage:
2026120282
type: number
2026220283
format: float
@@ -20276,6 +20297,8 @@ components:
2027620297
minimum: 1
2027720298
maximum: 999999999
2027820299
default:
20300+
description: Ending quantity for the tier. This represents a unit amount
20301+
for unit-priced add ons. Must be left empty if it is the final tier.
2027920302
unit_amount:
2028020303
type: number
2028120304
format: float
@@ -20307,13 +20330,16 @@ components:
2030720330
minimum: 1
2030820331
maximum: 9999999999999.99
2030920332
default:
20333+
description: Ending amount for the tier. Allows up to 2 decimal places.
20334+
Must be left empty if it is the final tier.
2031020335
usage_percentage:
2031120336
type: string
2031220337
title: Usage Percentage
20338+
minimum: 0
20339+
maximum: 100
2031320340
description: |
2031420341
The percentage taken of the monetary amount of usage tracked.
20315-
This can be up to 4 decimal places represented as a string. A value between
20316-
0.0 and 100.0.
20342+
This can be up to 4 decimal places represented as a string.
2031720343
SubscriptionCancel:
2031820344
type: object
2031920345
properties:
@@ -22632,6 +22658,7 @@ components:
2263222658
- three_d_secure_connection_error
2263322659
- three_d_secure_credential_error
2263422660
- three_d_secure_not_supported
22661+
- too_busy
2263522662
- too_many_attempts
2263622663
- total_credit_exceeds_capture
2263722664
- transaction_already_refunded

recurly/resources.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,8 @@ class SubscriptionAddOn(Resource):
18261826
percentage_tiers : :obj:`list` of :obj:`SubscriptionAddOnPercentageTier`
18271827
If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be
18281828
removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and
1829-
add_on.usage_type is percentage
1829+
add_on.usage_type is percentage.
1830+
There must be one tier without an `ending_amount` value which represents the final tier.
18301831
quantity : int
18311832
Add-on quantity
18321833
revenue_schedule_type : str
@@ -1841,7 +1842,8 @@ class SubscriptionAddOn(Resource):
18411842
tiers : :obj:`list` of :obj:`SubscriptionAddOnTier`
18421843
If tiers are provided in the request, all existing tiers on the Subscription Add-on will be
18431844
removed and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and
1844-
add_on.usage_type is percentage use percentage_tiers instead.
1845+
add_on.usage_type is percentage use percentage_tiers instead.
1846+
There must be one tier without an `ending_quantity` value which represents the final tier.
18451847
unit_amount : float
18461848
Supports up to 2 decimal places.
18471849
unit_amount_decimal : str
@@ -1920,7 +1922,7 @@ class SubscriptionAddOnTier(Resource):
19201922
Attributes
19211923
----------
19221924
ending_quantity : int
1923-
Ending quantity
1925+
Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.
19241926
unit_amount : float
19251927
Allows up to 2 decimal places. Optionally, override the tiers' default unit amount. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.
19261928
unit_amount_decimal : str
@@ -1944,11 +1946,10 @@ class SubscriptionAddOnPercentageTier(Resource):
19441946
Attributes
19451947
----------
19461948
ending_amount : float
1947-
Ending amount
1949+
Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.
19481950
usage_percentage : str
19491951
The percentage taken of the monetary amount of usage tracked.
1950-
This can be up to 4 decimal places represented as a string. A value between
1951-
0.0 and 100.0.
1952+
This can be up to 4 decimal places represented as a string.
19521953
"""
19531954

19541955
schema = {"ending_amount": float, "usage_percentage": str}
@@ -2456,7 +2457,7 @@ class Tier(Resource):
24562457
currencies : :obj:`list` of :obj:`TierPricing`
24572458
Tier pricing
24582459
ending_quantity : int
2459-
Ending quantity for the tier. This represents a unit amount for unit-priced add ons.
2460+
Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.
24602461
usage_percentage : str
24612462
(deprecated) -- Use the percentage_tiers object instead.
24622463
"""
@@ -2502,9 +2503,10 @@ class PercentageTier(Resource):
25022503
Attributes
25032504
----------
25042505
ending_amount : float
2505-
Ending amount for the tier. Allows up to 2 decimal places. The last tier ending_amount is null.
2506+
Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.
25062507
usage_percentage : str
2507-
Decimal usage percentage.
2508+
The percentage taken of the monetary amount of usage tracked.
2509+
This can be up to 4 decimal places represented as a string.
25082510
"""
25092511

25102512
schema = {"ending_amount": float, "usage_percentage": str}

0 commit comments

Comments
 (0)