recurly 4.14.0 → 4.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +11 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/requests/add_on_create.rb +5 -1
- data/lib/recurly/requests/add_on_update.rb +5 -1
- data/lib/recurly/requests/percentage_tier.rb +18 -0
- data/lib/recurly/requests/percentage_tiers_by_currency.rb +18 -0
- data/lib/recurly/requests/subscription_add_on_create.rb +5 -1
- data/lib/recurly/requests/subscription_add_on_percentage_tier.rb +18 -0
- data/lib/recurly/requests/subscription_add_on_tier.rb +1 -1
- data/lib/recurly/requests/subscription_update.rb +1 -1
- data/lib/recurly/requests/tier.rb +2 -2
- data/lib/recurly/resources/subscription_add_on.rb +2 -2
- data/lib/recurly/resources/subscription_add_on_tier.rb +1 -1
- data/lib/recurly/resources/tier.rb +2 -2
- data/lib/recurly/resources/usage.rb +5 -1
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +53 -18
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4b2e17dfb70a87cbb8e2578af8d64269d107a4759f1b44bfd1f248ea7d5903
|
4
|
+
data.tar.gz: c537f30a85ac92be2e5809dc1fc8eb4a8198324fa5b354ec8a7e1750b1f5cbfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef1c8fc07f6ab7338fe324ba22df7f909e4bdb9a96b3fa7035fc79a3bc0b80bb1b4cc609b201c6efcd486e6c074670029ba71c0d76bc431b8ca70af3f59c8b6
|
7
|
+
data.tar.gz: afdb01bf7ea1b5648f55396b5408f7b02ed139bd704a44fe55721bf240edae9631aaded8b803f0bcdf7b061132ca92a53fa6b376ba80d12b624c773f0f278dff
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.15.0](https://github.com/recurly/recurly-client-ruby/tree/4.15.0) (2022-03-14)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.14.0...4.15.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 (Percentage tiers feature) [#757](https://github.com/recurly/recurly-client-ruby/pull/757) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
|
12
|
+
|
13
|
+
|
3
14
|
## [4.14.0](https://github.com/recurly/recurly-client-ruby/tree/4.14.0) (2022-03-03)
|
4
15
|
|
5
16
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.13.0...4.14.0)
|
data/GETTING_STARTED.md
CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
|
|
5
5
|
In your Gemfile, add `recurly` as a dependency.
|
6
6
|
|
7
7
|
```ruby
|
8
|
-
gem 'recurly', '~> 4.
|
8
|
+
gem 'recurly', '~> 4.15'
|
9
9
|
```
|
10
10
|
|
11
11
|
> *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
|
@@ -62,6 +62,10 @@ module Recurly
|
|
62
62
|
# @return [Boolean] Whether the add-on is optional for the customer to include in their purchase on the hosted payment page. If false, the add-on will be included when a subscription is created through the Recurly UI. However, the add-on will not be included when a subscription is created through the API.
|
63
63
|
define_attribute :optional, :Boolean
|
64
64
|
|
65
|
+
# @!attribute percentage_tiers
|
66
|
+
# @return [Array[PercentageTiersByCurrency]] Array of objects which must have at least one set of tiers per currency and the currency code. The tier_type must be `volume` or `tiered`, if not, it must be absent. There must be one tier without ending_amount value.
|
67
|
+
define_attribute :percentage_tiers, Array, { :item_type => :PercentageTiersByCurrency }
|
68
|
+
|
65
69
|
# @!attribute plan_id
|
66
70
|
# @return [String] Plan ID
|
67
71
|
define_attribute :plan_id, String
|
@@ -79,7 +83,7 @@ module Recurly
|
|
79
83
|
define_attribute :tier_type, String
|
80
84
|
|
81
85
|
# @!attribute tiers
|
82
|
-
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies
|
86
|
+
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies`. There must be one tier with an `ending_quantity` of 999999999 which is the default if not provided.
|
83
87
|
define_attribute :tiers, Array, { :item_type => :Tier }
|
84
88
|
|
85
89
|
# @!attribute usage_percentage
|
@@ -54,6 +54,10 @@ module Recurly
|
|
54
54
|
# @return [Boolean] Whether the add-on is optional for the customer to include in their purchase on the hosted payment page. If false, the add-on will be included when a subscription is created through the Recurly UI. However, the add-on will not be included when a subscription is created through the API.
|
55
55
|
define_attribute :optional, :Boolean
|
56
56
|
|
57
|
+
# @!attribute percentage_tiers
|
58
|
+
# @return [Array[PercentageTiersByCurrency]] `percentage_tiers` is an array of objects, which must have the set of tiers per currency and the currency code. The tier_type must be `volume` or `tiered`, if not, it must be absent.
|
59
|
+
define_attribute :percentage_tiers, Array, { :item_type => :PercentageTiersByCurrency }
|
60
|
+
|
57
61
|
# @!attribute revenue_schedule_type
|
58
62
|
# @return [String] When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.
|
59
63
|
define_attribute :revenue_schedule_type, String
|
@@ -63,7 +67,7 @@ module Recurly
|
|
63
67
|
define_attribute :tax_code, String
|
64
68
|
|
65
69
|
# @!attribute tiers
|
66
|
-
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies
|
70
|
+
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies`. There must be one tier without an `ending_quantity` value that represents the final tier.
|
67
71
|
define_attribute :tiers, Array, { :item_type => :Tier }
|
68
72
|
|
69
73
|
# @!attribute usage_percentage
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class PercentageTier < Request
|
8
|
+
|
9
|
+
# @!attribute ending_amount
|
10
|
+
# @return [Float] Ending amount for the tier. Allows up to 2 decimal places. The last tier ending_amount is null.
|
11
|
+
define_attribute :ending_amount, Float
|
12
|
+
|
13
|
+
# @!attribute usage_percentage
|
14
|
+
# @return [String] Decimal usage percentage.
|
15
|
+
define_attribute :usage_percentage, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class PercentageTiersByCurrency < Request
|
8
|
+
|
9
|
+
# @!attribute currency
|
10
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
11
|
+
define_attribute :currency, String
|
12
|
+
|
13
|
+
# @!attribute tiers
|
14
|
+
# @return [Array[PercentageTier]] Tiers
|
15
|
+
define_attribute :tiers, Array, { :item_type => :PercentageTier }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [String] If `add_on_source` is set to `plan_add_on` or left blank, then plan's add-on `code` should be used. If `add_on_source` is set to `item`, then the `code` from the associated item should be used.
|
15
15
|
define_attribute :code, String
|
16
16
|
|
17
|
+
# @!attribute percentage_tiers
|
18
|
+
# @return [Array[SubscriptionAddOnPercentageTier]] If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. There must be one tier without ending_amount value. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage.
|
19
|
+
define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
|
20
|
+
|
17
21
|
# @!attribute quantity
|
18
22
|
# @return [Integer] Quantity
|
19
23
|
define_attribute :quantity, Integer
|
@@ -23,7 +27,7 @@ module Recurly
|
|
23
27
|
define_attribute :revenue_schedule_type, String
|
24
28
|
|
25
29
|
# @!attribute tiers
|
26
|
-
# @return [Array[SubscriptionAddOnTier]] If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount`. There must be one tier
|
30
|
+
# @return [Array[SubscriptionAddOnTier]] If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount`. There must be one tier without ending_quantity value. See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
|
27
31
|
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
|
28
32
|
|
29
33
|
# @!attribute unit_amount
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class SubscriptionAddOnPercentageTier < Request
|
8
|
+
|
9
|
+
# @!attribute ending_amount
|
10
|
+
# @return [Float] Ending amount
|
11
|
+
define_attribute :ending_amount, Float
|
12
|
+
|
13
|
+
# @!attribute usage_percentage
|
14
|
+
# @return [String] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string. A value between 0.0 and 100.0.
|
15
|
+
define_attribute :usage_percentage, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -19,7 +19,7 @@ module Recurly
|
|
19
19
|
define_attribute :unit_amount_decimal, String
|
20
20
|
|
21
21
|
# @!attribute usage_percentage
|
22
|
-
# @return [String]
|
22
|
+
# @return [String] (deprecated) -- Use the percentage_tiers object instead.
|
23
23
|
define_attribute :usage_percentage, String
|
24
24
|
end
|
25
25
|
end
|
@@ -59,7 +59,7 @@ module Recurly
|
|
59
59
|
define_attribute :shipping, :SubscriptionShippingUpdate
|
60
60
|
|
61
61
|
# @!attribute tax_inclusive
|
62
|
-
# @return [Boolean]
|
62
|
+
# @return [Boolean] This field is deprecated. Do not use it anymore to update a subscription's tax inclusivity. Use the POST subscription change route instead.
|
63
63
|
define_attribute :tax_inclusive, :Boolean
|
64
64
|
|
65
65
|
# @!attribute terms_and_conditions
|
@@ -11,11 +11,11 @@ module Recurly
|
|
11
11
|
define_attribute :currencies, Array, { :item_type => :TierPricing }
|
12
12
|
|
13
13
|
# @!attribute ending_quantity
|
14
|
-
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons
|
14
|
+
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons.
|
15
15
|
define_attribute :ending_quantity, Integer
|
16
16
|
|
17
17
|
# @!attribute usage_percentage
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] (deprecated) -- Use the percentage_tiers object instead.
|
19
19
|
define_attribute :usage_percentage, String
|
20
20
|
end
|
21
21
|
end
|
@@ -31,7 +31,7 @@ module Recurly
|
|
31
31
|
define_attribute :object, String
|
32
32
|
|
33
33
|
# @!attribute percentage_tiers
|
34
|
-
# @return [Array[SubscriptionAddOnPercentageTier]] If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request.
|
34
|
+
# @return [Array[SubscriptionAddOnPercentageTier]] If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage
|
35
35
|
define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
|
36
36
|
|
37
37
|
# @!attribute quantity
|
@@ -51,7 +51,7 @@ module Recurly
|
|
51
51
|
define_attribute :tier_type, String
|
52
52
|
|
53
53
|
# @!attribute tiers
|
54
|
-
# @return [Array[SubscriptionAddOnTier]] If tiers are provided in the request, all existing tiers on the Subscription Add-on will be removed and replaced by the tiers in the request.
|
54
|
+
# @return [Array[SubscriptionAddOnTier]] If tiers are provided in the request, all existing tiers on the Subscription Add-on will be removed and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and add_on.usage_type is percentage use percentage_tiers instead.
|
55
55
|
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
|
56
56
|
|
57
57
|
# @!attribute unit_amount
|
@@ -19,7 +19,7 @@ module Recurly
|
|
19
19
|
define_attribute :unit_amount_decimal, String
|
20
20
|
|
21
21
|
# @!attribute usage_percentage
|
22
|
-
# @return [String]
|
22
|
+
# @return [String] (deprecated) -- Use the percentage_tiers object instead.
|
23
23
|
define_attribute :usage_percentage, String
|
24
24
|
end
|
25
25
|
end
|
@@ -11,11 +11,11 @@ module Recurly
|
|
11
11
|
define_attribute :currencies, Array, { :item_type => :TierPricing }
|
12
12
|
|
13
13
|
# @!attribute ending_quantity
|
14
|
-
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons
|
14
|
+
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons.
|
15
15
|
define_attribute :ending_quantity, Integer
|
16
16
|
|
17
17
|
# @!attribute usage_percentage
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] (deprecated) -- Use the percentage_tiers object instead.
|
19
19
|
define_attribute :usage_percentage, String
|
20
20
|
end
|
21
21
|
end
|
@@ -34,6 +34,10 @@ module Recurly
|
|
34
34
|
# @return [String] Object type
|
35
35
|
define_attribute :object, String
|
36
36
|
|
37
|
+
# @!attribute percentage_tiers
|
38
|
+
# @return [Array[SubscriptionAddOnPercentageTier]] The percentage tiers of the subscription based on the usage_timestamp. If tier_type = flat, percentage_tiers = []
|
39
|
+
define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
|
40
|
+
|
37
41
|
# @!attribute recording_timestamp
|
38
42
|
# @return [DateTime] When the usage was recorded in your system.
|
39
43
|
define_attribute :recording_timestamp, DateTime
|
@@ -43,7 +47,7 @@ module Recurly
|
|
43
47
|
define_attribute :tier_type, String
|
44
48
|
|
45
49
|
# @!attribute tiers
|
46
|
-
# @return [Array[SubscriptionAddOnTier]] The tiers and prices of the subscription based on the usage_timestamp. If tier_type = flat, tiers =
|
50
|
+
# @return [Array[SubscriptionAddOnTier]] The tiers and prices of the subscription based on the usage_timestamp. If tier_type = flat, tiers = []
|
47
51
|
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
|
48
52
|
|
49
53
|
# @!attribute unit_amount
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -16451,8 +16451,17 @@ components:
|
|
16451
16451
|
description: |
|
16452
16452
|
If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
|
16453
16453
|
must include one to many tiers with `ending_quantity` and `unit_amount` for
|
16454
|
-
the desired `currencies
|
16454
|
+
the desired `currencies`. There must be one tier with an `ending_quantity`
|
16455
16455
|
of 999999999 which is the default if not provided.
|
16456
|
+
percentage_tiers:
|
16457
|
+
type: array
|
16458
|
+
title: Percentage Tiers By Currency
|
16459
|
+
items:
|
16460
|
+
"$ref": "#/components/schemas/PercentageTiersByCurrency"
|
16461
|
+
description: |
|
16462
|
+
Array of objects which must have at least one set of tiers
|
16463
|
+
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.
|
16456
16465
|
required:
|
16457
16466
|
- code
|
16458
16467
|
- name
|
@@ -16580,8 +16589,17 @@ components:
|
|
16580
16589
|
description: |
|
16581
16590
|
If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
|
16582
16591
|
must include one to many tiers with `ending_quantity` and `unit_amount` for
|
16583
|
-
the desired `currencies
|
16584
|
-
|
16592
|
+
the desired `currencies`. There must be one tier without an `ending_quantity` value
|
16593
|
+
that represents the final tier.
|
16594
|
+
percentage_tiers:
|
16595
|
+
type: array
|
16596
|
+
title: Percentage Tiers By Currency
|
16597
|
+
items:
|
16598
|
+
"$ref": "#/components/schemas/PercentageTiersByCurrency"
|
16599
|
+
description: |
|
16600
|
+
`percentage_tiers` is an array of objects, which must have the set of tiers
|
16601
|
+
per currency and the currency code. The tier_type must be `volume` or `tiered`,
|
16602
|
+
if not, it must be absent.
|
16585
16603
|
BillingInfo:
|
16586
16604
|
type: object
|
16587
16605
|
properties:
|
@@ -19345,16 +19363,14 @@ components:
|
|
19345
19363
|
type: integer
|
19346
19364
|
title: Ending quantity
|
19347
19365
|
description: Ending quantity for the tier. This represents a unit amount
|
19348
|
-
for unit-priced add ons
|
19349
|
-
the site default currency in its minimum divisible unit.
|
19366
|
+
for unit-priced add ons.
|
19350
19367
|
minimum: 1
|
19351
19368
|
maximum: 999999999
|
19352
19369
|
default: 999999999
|
19353
19370
|
usage_percentage:
|
19354
19371
|
type: string
|
19355
19372
|
title: Usage Percentage
|
19356
|
-
description:
|
19357
|
-
tiers add ons. Use the percentage_tiers object instead.
|
19373
|
+
description: "(deprecated) -- Use the percentage_tiers object instead."
|
19358
19374
|
deprecated: true
|
19359
19375
|
currencies:
|
19360
19376
|
type: array
|
@@ -20083,7 +20099,8 @@ components:
|
|
20083
20099
|
minItems: 1
|
20084
20100
|
description: |
|
20085
20101
|
If tiers are provided in the request, all existing tiers on the Subscription Add-on will be
|
20086
|
-
removed and replaced by the tiers in the request.
|
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.
|
20087
20104
|
percentage_tiers:
|
20088
20105
|
type: array
|
20089
20106
|
title: Percentage Tiers
|
@@ -20092,7 +20109,8 @@ components:
|
|
20092
20109
|
minItems: 1
|
20093
20110
|
description: |
|
20094
20111
|
If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be
|
20095
|
-
removed and replaced by the percentage tiers in the request.
|
20112
|
+
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
|
20096
20114
|
usage_percentage:
|
20097
20115
|
type: number
|
20098
20116
|
format: float
|
@@ -20158,9 +20176,19 @@ components:
|
|
20158
20176
|
description: |
|
20159
20177
|
If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object
|
20160
20178
|
must include one to many tiers with `ending_quantity` and `unit_amount`.
|
20161
|
-
There must be one tier
|
20162
|
-
|
20179
|
+
There must be one tier without ending_quantity value.
|
20180
|
+
See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html)
|
20163
20181
|
for an overview of how to configure quantity-based pricing models.
|
20182
|
+
percentage_tiers:
|
20183
|
+
type: array
|
20184
|
+
title: Percentage Tiers
|
20185
|
+
items:
|
20186
|
+
"$ref": "#/components/schemas/SubscriptionAddOnPercentageTier"
|
20187
|
+
minItems: 1
|
20188
|
+
description: |
|
20189
|
+
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.
|
20191
|
+
Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage.
|
20164
20192
|
usage_percentage:
|
20165
20193
|
type: number
|
20166
20194
|
format: float
|
@@ -20247,7 +20275,7 @@ components:
|
|
20247
20275
|
title: Ending quantity
|
20248
20276
|
minimum: 1
|
20249
20277
|
maximum: 999999999
|
20250
|
-
default:
|
20278
|
+
default:
|
20251
20279
|
unit_amount:
|
20252
20280
|
type: number
|
20253
20281
|
format: float
|
@@ -20267,8 +20295,7 @@ components:
|
|
20267
20295
|
usage_percentage:
|
20268
20296
|
type: string
|
20269
20297
|
title: Usage Percentage
|
20270
|
-
description:
|
20271
|
-
tiers subscription add ons. Use the percentage_tiers object instead.
|
20298
|
+
description: "(deprecated) -- Use the percentage_tiers object instead."
|
20272
20299
|
deprecated: true
|
20273
20300
|
SubscriptionAddOnPercentageTier:
|
20274
20301
|
type: object
|
@@ -20866,9 +20893,10 @@ components:
|
|
20866
20893
|
type: boolean
|
20867
20894
|
title: Tax Inclusive?
|
20868
20895
|
default: false
|
20869
|
-
description:
|
20870
|
-
|
20871
|
-
|
20896
|
+
description: This field is deprecated. Do not use it anymore to update a
|
20897
|
+
subscription's tax inclusivity. Use the POST subscription change route
|
20898
|
+
instead.
|
20899
|
+
deprecated: true
|
20872
20900
|
shipping:
|
20873
20901
|
"$ref": "#/components/schemas/SubscriptionShippingUpdate"
|
20874
20902
|
billing_info_id:
|
@@ -21349,7 +21377,14 @@ components:
|
|
21349
21377
|
items:
|
21350
21378
|
"$ref": "#/components/schemas/SubscriptionAddOnTier"
|
21351
21379
|
description: The tiers and prices of the subscription based on the usage_timestamp.
|
21352
|
-
If tier_type = flat, tiers =
|
21380
|
+
If tier_type = flat, tiers = []
|
21381
|
+
percentage_tiers:
|
21382
|
+
type: array
|
21383
|
+
title: Percentage Tiers
|
21384
|
+
items:
|
21385
|
+
"$ref": "#/components/schemas/SubscriptionAddOnPercentageTier"
|
21386
|
+
description: The percentage tiers of the subscription based on the usage_timestamp.
|
21387
|
+
If tier_type = flat, percentage_tiers = []
|
21353
21388
|
measured_unit_id:
|
21354
21389
|
type: string
|
21355
21390
|
description: The ID of the measured unit associated with the add-on the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -176,6 +176,8 @@ files:
|
|
176
176
|
- lib/recurly/requests/line_item_refund.rb
|
177
177
|
- lib/recurly/requests/measured_unit_create.rb
|
178
178
|
- lib/recurly/requests/measured_unit_update.rb
|
179
|
+
- lib/recurly/requests/percentage_tier.rb
|
180
|
+
- lib/recurly/requests/percentage_tiers_by_currency.rb
|
179
181
|
- lib/recurly/requests/plan_create.rb
|
180
182
|
- lib/recurly/requests/plan_hosted_pages.rb
|
181
183
|
- lib/recurly/requests/plan_pricing.rb
|
@@ -189,6 +191,7 @@ files:
|
|
189
191
|
- lib/recurly/requests/shipping_method_update.rb
|
190
192
|
- lib/recurly/requests/shipping_purchase.rb
|
191
193
|
- lib/recurly/requests/subscription_add_on_create.rb
|
194
|
+
- lib/recurly/requests/subscription_add_on_percentage_tier.rb
|
192
195
|
- lib/recurly/requests/subscription_add_on_tier.rb
|
193
196
|
- lib/recurly/requests/subscription_add_on_update.rb
|
194
197
|
- lib/recurly/requests/subscription_cancel.rb
|
@@ -306,7 +309,7 @@ metadata:
|
|
306
309
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
307
310
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
308
311
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
309
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
312
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.15.0
|
310
313
|
post_install_message:
|
311
314
|
rdoc_options: []
|
312
315
|
require_paths:
|