You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: recurly/resources.py
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1826,7 +1826,8 @@ class SubscriptionAddOn(Resource):
1826
1826
percentage_tiers : :obj:`list` of :obj:`SubscriptionAddOnPercentageTier`
1827
1827
If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be
1828
1828
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.
1830
1831
quantity : int
1831
1832
Add-on quantity
1832
1833
revenue_schedule_type : str
@@ -1841,7 +1842,8 @@ class SubscriptionAddOn(Resource):
1841
1842
tiers : :obj:`list` of :obj:`SubscriptionAddOnTier`
1842
1843
If tiers are provided in the request, all existing tiers on the Subscription Add-on will be
1843
1844
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.
1845
1847
unit_amount : float
1846
1848
Supports up to 2 decimal places.
1847
1849
unit_amount_decimal : str
@@ -1920,7 +1922,7 @@ class SubscriptionAddOnTier(Resource):
1920
1922
Attributes
1921
1923
----------
1922
1924
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.
1924
1926
unit_amount : float
1925
1927
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.
1926
1928
unit_amount_decimal : str
@@ -1944,11 +1946,10 @@ class SubscriptionAddOnPercentageTier(Resource):
1944
1946
Attributes
1945
1947
----------
1946
1948
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.
1948
1950
usage_percentage : str
1949
1951
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.
0 commit comments