recurly 3.22.0 → 3.24.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 +23 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +30 -7
- data/lib/recurly/requests/account_create.rb +4 -0
- data/lib/recurly/requests/account_purchase.rb +4 -0
- data/lib/recurly/requests/account_update.rb +4 -0
- data/lib/recurly/requests/add_on_create.rb +2 -2
- data/lib/recurly/requests/billing_info_create.rb +1 -1
- data/lib/recurly/requests/plan_create.rb +4 -0
- data/lib/recurly/requests/plan_update.rb +4 -0
- data/lib/recurly/requests/subscription_add_on_create.rb +2 -2
- data/lib/recurly/resources/account.rb +4 -0
- data/lib/recurly/resources/account_balance_amount.rb +4 -0
- data/lib/recurly/resources/invoice.rb +1 -1
- data/lib/recurly/resources/plan.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +245 -83
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed0b8401ee5879270989110b1b826589fe628d1befb4209b2f995bc8c2d55124
|
4
|
+
data.tar.gz: 62d1aba9f1e248b0ba1c9eeb790cdfd2d935d49e743d2f9cfa8ccaf6d33cb5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 650e5852f33c74e4407668d517f0b2f8c429a358782ac8c7f804378528f88e4b903cd173020666f0a7aeb794143d1e01693e15ae1eaa838bf3d7febef4ccd28a
|
7
|
+
data.tar.gz: 545373440597d3477a1eaf2210ae5963ff7a8784524d3332a126550f059917f8d3516becf4a2793be90a048666edb1437f3038f40aca4d6093938f7b26a431c2
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.24.0](https://github.com/recurly/recurly-client-ruby/tree/3.24.0) (2023-01-11)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.23.0...3.24.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2019-10-10 (Account Preferred Time Zone) [#815](https://github.com/recurly/recurly-client-ruby/pull/815) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [3.23.0](https://github.com/recurly/recurly-client-ruby/tree/3.23.0) (2022-11-17)
|
15
|
+
|
16
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.22.0...3.23.0)
|
17
|
+
|
18
|
+
|
19
|
+
**Merged Pull Requests**
|
20
|
+
|
21
|
+
- Generated Latest Changes for v2019-10-10 (Apply Credit Balance feature) [#810](https://github.com/recurly/recurly-client-ruby/pull/810) ([recurly-integrations](https://github.com/recurly-integrations))
|
22
|
+
- Generated Latest Changes for v2019-10-10 [#806](https://github.com/recurly/recurly-client-ruby/pull/806) ([recurly-integrations](https://github.com/recurly-integrations))
|
23
|
+
|
24
|
+
|
25
|
+
|
3
26
|
## [3.22.0](https://github.com/recurly/recurly-client-ruby/tree/3.22.0) (2022-10-21)
|
4
27
|
|
5
28
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.21.0...3.22.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', '~> 3.
|
8
|
+
gem 'recurly', '~> 3.24'
|
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.
|
@@ -565,7 +565,7 @@ module Recurly
|
|
565
565
|
delete(path, **options)
|
566
566
|
end
|
567
567
|
|
568
|
-
#
|
568
|
+
# List the coupon redemptions for an account
|
569
569
|
#
|
570
570
|
# {https://developers.recurly.com/api/v2019-10-10#operation/list_account_coupon_redemptions list_account_coupon_redemptions api documentation}
|
571
571
|
#
|
@@ -610,7 +610,7 @@ module Recurly
|
|
610
610
|
pager(path, **options)
|
611
611
|
end
|
612
612
|
|
613
|
-
#
|
613
|
+
# Fetch the coupon redemption that is active on an account
|
614
614
|
#
|
615
615
|
# {https://developers.recurly.com/api/v2019-10-10#operation/get_active_coupon_redemption get_active_coupon_redemption api documentation}
|
616
616
|
#
|
@@ -916,7 +916,7 @@ module Recurly
|
|
916
916
|
post(path, body, Requests::LineItemCreate, **options)
|
917
917
|
end
|
918
918
|
|
919
|
-
#
|
919
|
+
# List an account's notes
|
920
920
|
#
|
921
921
|
# {https://developers.recurly.com/api/v2019-10-10#operation/list_account_notes list_account_notes api documentation}
|
922
922
|
#
|
@@ -2060,6 +2060,29 @@ module Recurly
|
|
2060
2060
|
get(path, **options)
|
2061
2061
|
end
|
2062
2062
|
|
2063
|
+
# Apply available credit to a pending or past due charge invoice
|
2064
|
+
#
|
2065
|
+
# {https://developers.recurly.com/api/v2019-10-10#operation/apply_credit_balance apply_credit_balance api documentation}
|
2066
|
+
#
|
2067
|
+
# @param invoice_id [String] Invoice ID or number. For ID no prefix is used e.g. +e28zov4fw0v2+. For number use prefix +number-+, e.g. +number-1000+.
|
2068
|
+
# @param site_id [String] Site ID or subdomain. For ID no prefix is used e.g. +e28zov4fw0v2+. For subdomain use prefix +subdomain-+, e.g. +subdomain-recurly+.
|
2069
|
+
#
|
2070
|
+
# @return [Resources::Invoice] The updated invoice.
|
2071
|
+
# @example
|
2072
|
+
# begin
|
2073
|
+
# invoice = @client.apply_credit_balance(invoice_id: invoice_id)
|
2074
|
+
# puts "Applied credit balance to invoice #{invoice}"
|
2075
|
+
# rescue Recurly::Errors::NotFoundError
|
2076
|
+
# # If the resource was not found, you may want to alert the user or
|
2077
|
+
# # just return nil
|
2078
|
+
# puts "Resource Not Found"
|
2079
|
+
# end
|
2080
|
+
#
|
2081
|
+
def apply_credit_balance(invoice_id:, **options)
|
2082
|
+
path = interpolate_path("/invoices/{invoice_id}/apply_credit_balance", invoice_id: invoice_id)
|
2083
|
+
put(path, **options)
|
2084
|
+
end
|
2085
|
+
|
2063
2086
|
# Collect a pending or past due, automatic invoice
|
2064
2087
|
#
|
2065
2088
|
# {https://developers.recurly.com/api/v2019-10-10#operation/collect_invoice collect_invoice api documentation}
|
@@ -2240,7 +2263,7 @@ module Recurly
|
|
2240
2263
|
pager(path, **options)
|
2241
2264
|
end
|
2242
2265
|
|
2243
|
-
#
|
2266
|
+
# List the coupon redemptions applied to an invoice
|
2244
2267
|
#
|
2245
2268
|
# {https://developers.recurly.com/api/v2019-10-10#operation/list_invoice_coupon_redemptions list_invoice_coupon_redemptions api documentation}
|
2246
2269
|
#
|
@@ -3427,7 +3450,7 @@ module Recurly
|
|
3427
3450
|
pager(path, **options)
|
3428
3451
|
end
|
3429
3452
|
|
3430
|
-
#
|
3453
|
+
# List the coupon redemptions for a subscription
|
3431
3454
|
#
|
3432
3455
|
# {https://developers.recurly.com/api/v2019-10-10#operation/list_subscription_coupon_redemptions list_subscription_coupon_redemptions api documentation}
|
3433
3456
|
#
|
@@ -3808,7 +3831,7 @@ module Recurly
|
|
3808
3831
|
get(path, **options)
|
3809
3832
|
end
|
3810
3833
|
|
3811
|
-
#
|
3834
|
+
# List the dunning campaigns for a site
|
3812
3835
|
#
|
3813
3836
|
# {https://developers.recurly.com/api/v2019-10-10#operation/list_dunning_campaigns list_dunning_campaigns api documentation}
|
3814
3837
|
#
|
@@ -3824,7 +3847,7 @@ module Recurly
|
|
3824
3847
|
pager(path, **options)
|
3825
3848
|
end
|
3826
3849
|
|
3827
|
-
#
|
3850
|
+
# Fetch a dunning campaign
|
3828
3851
|
#
|
3829
3852
|
# {https://developers.recurly.com/api/v2019-10-10#operation/get_dunning_campaign get_dunning_campaign api documentation}
|
3830
3853
|
#
|
@@ -70,6 +70,10 @@ module Recurly
|
|
70
70
|
# @return [String] Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.
|
71
71
|
define_attribute :preferred_locale, String
|
72
72
|
|
73
|
+
# @!attribute preferred_time_zone
|
74
|
+
# @return [String] Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a [supported IANA time zone name](https://docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names)
|
75
|
+
define_attribute :preferred_time_zone, String
|
76
|
+
|
73
77
|
# @!attribute shipping_addresses
|
74
78
|
# @return [Array[ShippingAddressCreate]]
|
75
79
|
define_attribute :shipping_addresses, Array, { :item_type => :ShippingAddressCreate }
|
@@ -74,6 +74,10 @@ module Recurly
|
|
74
74
|
# @return [String] Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.
|
75
75
|
define_attribute :preferred_locale, String
|
76
76
|
|
77
|
+
# @!attribute preferred_time_zone
|
78
|
+
# @return [String] Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a [supported IANA time zone name](https://docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names)
|
79
|
+
define_attribute :preferred_time_zone, String
|
80
|
+
|
77
81
|
# @!attribute tax_exempt
|
78
82
|
# @return [Boolean] The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.
|
79
83
|
define_attribute :tax_exempt, :Boolean
|
@@ -62,6 +62,10 @@ module Recurly
|
|
62
62
|
# @return [String] Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.
|
63
63
|
define_attribute :preferred_locale, String
|
64
64
|
|
65
|
+
# @!attribute preferred_time_zone
|
66
|
+
# @return [String] Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a [supported IANA time zone name](https://docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names)
|
67
|
+
define_attribute :preferred_time_zone, String
|
68
|
+
|
65
69
|
# @!attribute tax_exempt
|
66
70
|
# @return [Boolean] The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.
|
67
71
|
define_attribute :tax_exempt, :Boolean
|
@@ -75,7 +75,7 @@ module Recurly
|
|
75
75
|
define_attribute :tax_code, String
|
76
76
|
|
77
77
|
# @!attribute tier_type
|
78
|
-
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://
|
78
|
+
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
|
79
79
|
define_attribute :tier_type, String
|
80
80
|
|
81
81
|
# @!attribute tiers
|
@@ -87,7 +87,7 @@ module Recurly
|
|
87
87
|
define_attribute :usage_percentage, Float
|
88
88
|
|
89
89
|
# @!attribute usage_type
|
90
|
-
# @return [String] Type of usage, required if `add_on_type` is `usage`. See our [Guide](https://
|
90
|
+
# @return [String] Type of usage, required if `add_on_type` is `usage`. See our [Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.
|
91
91
|
define_attribute :usage_type, String
|
92
92
|
end
|
93
93
|
end
|
@@ -103,7 +103,7 @@ module Recurly
|
|
103
103
|
define_attribute :three_d_secure_action_result_token_id, String
|
104
104
|
|
105
105
|
# @!attribute token_id
|
106
|
-
# @return [String] A token [generated by Recurly.js](https://
|
106
|
+
# @return [String] A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
|
107
107
|
define_attribute :token_id, String
|
108
108
|
|
109
109
|
# @!attribute transaction_type
|
@@ -38,6 +38,10 @@ module Recurly
|
|
38
38
|
# @return [Array[PlanPricing]] Pricing
|
39
39
|
define_attribute :currencies, Array, { :item_type => :PlanPricing }
|
40
40
|
|
41
|
+
# @!attribute custom_fields
|
42
|
+
# @return [Array[CustomField]] The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
|
43
|
+
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
44
|
+
|
41
45
|
# @!attribute description
|
42
46
|
# @return [String] Optional description, not displayed.
|
43
47
|
define_attribute :description, String
|
@@ -34,6 +34,10 @@ module Recurly
|
|
34
34
|
# @return [Array[PlanPricing]] Pricing
|
35
35
|
define_attribute :currencies, Array, { :item_type => :PlanPricing }
|
36
36
|
|
37
|
+
# @!attribute custom_fields
|
38
|
+
# @return [Array[CustomField]] The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
|
39
|
+
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
40
|
+
|
37
41
|
# @!attribute description
|
38
42
|
# @return [String] Optional description, not displayed.
|
39
43
|
define_attribute :description, String
|
@@ -23,7 +23,7 @@ module Recurly
|
|
23
23
|
define_attribute :revenue_schedule_type, String
|
24
24
|
|
25
25
|
# @!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 with an `ending_quantity` of 999999999 which is the default if not provided. See our [Guide](https://
|
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 with an `ending_quantity` of 999999999 which is the default if not provided. See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
|
27
27
|
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
|
28
28
|
|
29
29
|
# @!attribute unit_amount
|
@@ -31,7 +31,7 @@ module Recurly
|
|
31
31
|
define_attribute :unit_amount, Float
|
32
32
|
|
33
33
|
# @!attribute usage_percentage
|
34
|
-
# @return [Float] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if `add_on_type` is usage and `usage_type` is percentage. Must be omitted otherwise. `usage_percentage` does not support tiers. See our [Guide](https://
|
34
|
+
# @return [Float] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if `add_on_type` is usage and `usage_type` is percentage. Must be omitted otherwise. `usage_percentage` does not support tiers. See our [Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.
|
35
35
|
define_attribute :usage_percentage, Float
|
36
36
|
end
|
37
37
|
end
|
@@ -106,6 +106,10 @@ module Recurly
|
|
106
106
|
# @return [String] Used to determine the language and locale of emails sent on behalf of the merchant to the customer.
|
107
107
|
define_attribute :preferred_locale, String
|
108
108
|
|
109
|
+
# @!attribute preferred_time_zone
|
110
|
+
# @return [String] The [IANA time zone name](https://docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names) used to determine the time zone of emails sent on behalf of the merchant to the customer.
|
111
|
+
define_attribute :preferred_time_zone, String
|
112
|
+
|
109
113
|
# @!attribute shipping_addresses
|
110
114
|
# @return [Array[ShippingAddress]] The shipping addresses on the account.
|
111
115
|
define_attribute :shipping_addresses, Array, { :item_type => :ShippingAddress }
|
@@ -10,6 +10,10 @@ module Recurly
|
|
10
10
|
# @return [Float] Total amount the account is past due.
|
11
11
|
define_attribute :amount, Float
|
12
12
|
|
13
|
+
# @!attribute available_credit_amount
|
14
|
+
# @return [Float] Total amount of the open balances on credit invoices for the account.
|
15
|
+
define_attribute :available_credit_amount, Float
|
16
|
+
|
13
17
|
# @!attribute currency
|
14
18
|
# @return [String] 3-letter ISO 4217 currency code.
|
15
19
|
define_attribute :currency, String
|
@@ -91,7 +91,7 @@ module Recurly
|
|
91
91
|
define_attribute :po_number, String
|
92
92
|
|
93
93
|
# @!attribute previous_invoice_id
|
94
|
-
# @return [String] On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from.
|
94
|
+
# @return [String] On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from. This field is only populated for sites without the [Only Bill What Changed](https://docs.recurly.com/docs/only-bill-what-changed) feature enabled. Sites with Only Bill What Changed enabled should use the [related_invoices endpoint](https://recurly.com/developers/api/v2019-10-10/index.html#operation/list_related_invoices) to see purchase invoices refunded by this invoice.
|
95
95
|
define_attribute :previous_invoice_id, String
|
96
96
|
|
97
97
|
# @!attribute refundable_amount
|
@@ -38,6 +38,10 @@ module Recurly
|
|
38
38
|
# @return [Array[PlanPricing]] Pricing
|
39
39
|
define_attribute :currencies, Array, { :item_type => :PlanPricing }
|
40
40
|
|
41
|
+
# @!attribute custom_fields
|
42
|
+
# @return [Array[CustomField]] The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
|
43
|
+
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
44
|
+
|
41
45
|
# @!attribute deleted_at
|
42
46
|
# @return [DateTime] Deleted at
|
43
47
|
define_attribute :deleted_at, DateTime
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -57,7 +57,7 @@ info:
|
|
57
57
|
|
58
58
|
We encourage you to update to the latest version of the API and corresponding client library,
|
59
59
|
as most recent versions are more performant than their predecessors. See the
|
60
|
-
[changelog](https://
|
60
|
+
[changelog](https://recurly.com/developers/api/changelog.html) for a comprehensive list of changes
|
61
61
|
introduced in the latest API version.
|
62
62
|
|
63
63
|
### Default Versions
|
@@ -113,7 +113,7 @@ info:
|
|
113
113
|
Please consider changing these messages in target system to be better
|
114
114
|
suited to the audience of the system.
|
115
115
|
|
116
|
-
Please see [transaction error codes](https://
|
116
|
+
Please see [transaction error codes](https://recurly.com/developers/pages/api-transaction-errors.html) for more details.
|
117
117
|
|
118
118
|
## Pagination
|
119
119
|
### Response Schema
|
@@ -180,7 +180,7 @@ info:
|
|
180
180
|
|
181
181
|
## Change Log
|
182
182
|
|
183
|
-
A list of changes for this version can be found [in the changelog](https://
|
183
|
+
A list of changes for this version can be found [in the changelog](https://recurly.com/developers/api/changelog.html#v2019-10-10).
|
184
184
|
version: v2019-10-10
|
185
185
|
security:
|
186
186
|
- api_key: []
|
@@ -304,6 +304,8 @@ tags:
|
|
304
304
|
description: A purchase is a checkout containing at least one or more subscriptions
|
305
305
|
or one-time charges (line items) and supports both coupon and gift card redemptions.
|
306
306
|
All items purchased will be on one invoice and paid for with one transaction.
|
307
|
+
The purchases endpoint can also be used to immediately create a credit invoice
|
308
|
+
on an account, when Credit Invoices is enabled on your site.
|
307
309
|
- name: usage
|
308
310
|
x-displayName: Usage
|
309
311
|
description: Send Recurly your customer usage and we will automatically bill them
|
@@ -343,7 +345,7 @@ paths:
|
|
343
345
|
description: |
|
344
346
|
This route is most useful for finding a site's ID for subsequent requests.
|
345
347
|
|
346
|
-
See the [Pagination Guide](/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
|
348
|
+
See the [Pagination Guide](/developers/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
|
347
349
|
tags:
|
348
350
|
- site
|
349
351
|
parameters:
|
@@ -542,8 +544,8 @@ paths:
|
|
542
544
|
- account
|
543
545
|
operationId: list_accounts
|
544
546
|
summary: List a site's accounts
|
545
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
546
|
-
to use pagination in the API and Client Libraries.
|
547
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
548
|
+
to learn how to use pagination in the API and Client Libraries.
|
547
549
|
parameters:
|
548
550
|
- "$ref": "#/components/parameters/site_id"
|
549
551
|
- "$ref": "#/components/parameters/ids"
|
@@ -2425,8 +2427,8 @@ paths:
|
|
2425
2427
|
- billing_infos
|
2426
2428
|
operationId: list_billing_infos
|
2427
2429
|
summary: Get the list of billing information associated with an account
|
2428
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
2429
|
-
to use pagination in the API and Client Libraries.
|
2430
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
2431
|
+
to learn how to use pagination in the API and Client Libraries.
|
2430
2432
|
parameters:
|
2431
2433
|
- "$ref": "#/components/parameters/site_id"
|
2432
2434
|
- "$ref": "#/components/parameters/account_id"
|
@@ -2634,9 +2636,9 @@ paths:
|
|
2634
2636
|
tags:
|
2635
2637
|
- coupon_redemption
|
2636
2638
|
operationId: list_account_coupon_redemptions
|
2637
|
-
summary:
|
2638
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
2639
|
-
to use pagination in the API and Client Libraries.
|
2639
|
+
summary: List the coupon redemptions for an account
|
2640
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
2641
|
+
to learn how to use pagination in the API and Client Libraries.
|
2640
2642
|
parameters:
|
2641
2643
|
- "$ref": "#/components/parameters/site_id"
|
2642
2644
|
- "$ref": "#/components/parameters/account_id"
|
@@ -2723,7 +2725,7 @@ paths:
|
|
2723
2725
|
tags:
|
2724
2726
|
- coupon_redemption
|
2725
2727
|
operationId: get_active_coupon_redemption
|
2726
|
-
summary:
|
2728
|
+
summary: Fetch the coupon redemption that is active on an account
|
2727
2729
|
parameters:
|
2728
2730
|
- "$ref": "#/components/parameters/site_id"
|
2729
2731
|
- "$ref": "#/components/parameters/account_id"
|
@@ -3086,8 +3088,8 @@ paths:
|
|
3086
3088
|
- credit_payment
|
3087
3089
|
operationId: list_account_credit_payments
|
3088
3090
|
summary: List an account's credit payments
|
3089
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
3090
|
-
to use pagination in the API and Client Libraries.
|
3091
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
3092
|
+
to learn how to use pagination in the API and Client Libraries.
|
3091
3093
|
parameters:
|
3092
3094
|
- "$ref": "#/components/parameters/site_id"
|
3093
3095
|
- "$ref": "#/components/parameters/account_id"
|
@@ -3181,8 +3183,8 @@ paths:
|
|
3181
3183
|
- invoice
|
3182
3184
|
operationId: list_account_invoices
|
3183
3185
|
summary: List an account's invoices
|
3184
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
3185
|
-
to use pagination in the API and Client Libraries.
|
3186
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
3187
|
+
to learn how to use pagination in the API and Client Libraries.
|
3186
3188
|
parameters:
|
3187
3189
|
- "$ref": "#/components/parameters/site_id"
|
3188
3190
|
- "$ref": "#/components/parameters/account_id"
|
@@ -3617,8 +3619,8 @@ paths:
|
|
3617
3619
|
- line_item
|
3618
3620
|
operationId: list_account_line_items
|
3619
3621
|
summary: List an account's line items
|
3620
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
3621
|
-
to use pagination in the API and Client Libraries.
|
3622
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
3623
|
+
to learn how to use pagination in the API and Client Libraries.
|
3622
3624
|
parameters:
|
3623
3625
|
- "$ref": "#/components/parameters/site_id"
|
3624
3626
|
- "$ref": "#/components/parameters/account_id"
|
@@ -3715,6 +3717,8 @@ paths:
|
|
3715
3717
|
- line_item
|
3716
3718
|
operationId: create_line_item
|
3717
3719
|
summary: Create a new line item for the account
|
3720
|
+
description: When using the Credit Invoices feature, utilize the purchases endpoint
|
3721
|
+
in order to immediately post credit to a credit invoice.
|
3718
3722
|
parameters:
|
3719
3723
|
- "$ref": "#/components/parameters/site_id"
|
3720
3724
|
- "$ref": "#/components/parameters/account_id"
|
@@ -3883,9 +3887,9 @@ paths:
|
|
3883
3887
|
tags:
|
3884
3888
|
- note
|
3885
3889
|
operationId: list_account_notes
|
3886
|
-
summary:
|
3887
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
3888
|
-
to use pagination in the API and Client Libraries.
|
3890
|
+
summary: List an account's notes
|
3891
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
3892
|
+
to learn how to use pagination in the API and Client Libraries.
|
3889
3893
|
parameters:
|
3890
3894
|
- "$ref": "#/components/parameters/site_id"
|
3891
3895
|
- "$ref": "#/components/parameters/account_id"
|
@@ -4092,8 +4096,8 @@ paths:
|
|
4092
4096
|
- shipping_address
|
4093
4097
|
operationId: list_shipping_addresses
|
4094
4098
|
summary: Fetch a list of an account's shipping addresses
|
4095
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
4096
|
-
to use pagination in the API and Client Libraries.
|
4099
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
4100
|
+
to learn how to use pagination in the API and Client Libraries.
|
4097
4101
|
parameters:
|
4098
4102
|
- "$ref": "#/components/parameters/site_id"
|
4099
4103
|
- "$ref": "#/components/parameters/account_id"
|
@@ -4771,8 +4775,8 @@ paths:
|
|
4771
4775
|
- subscription
|
4772
4776
|
operationId: list_account_subscriptions
|
4773
4777
|
summary: List an account's subscriptions
|
4774
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
4775
|
-
to use pagination in the API and Client Libraries.
|
4778
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
4779
|
+
to learn how to use pagination in the API and Client Libraries.
|
4776
4780
|
parameters:
|
4777
4781
|
- "$ref": "#/components/parameters/site_id"
|
4778
4782
|
- "$ref": "#/components/parameters/account_id"
|
@@ -4867,8 +4871,8 @@ paths:
|
|
4867
4871
|
- transaction
|
4868
4872
|
operationId: list_account_transactions
|
4869
4873
|
summary: List an account's transactions
|
4870
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
4871
|
-
to use pagination in the API and Client Libraries.
|
4874
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
4875
|
+
to learn how to use pagination in the API and Client Libraries.
|
4872
4876
|
parameters:
|
4873
4877
|
- "$ref": "#/components/parameters/site_id"
|
4874
4878
|
- "$ref": "#/components/parameters/account_id"
|
@@ -4965,8 +4969,8 @@ paths:
|
|
4965
4969
|
- account
|
4966
4970
|
operationId: list_child_accounts
|
4967
4971
|
summary: List an account's child accounts
|
4968
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
4969
|
-
to use pagination in the API and Client Libraries.
|
4972
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
4973
|
+
to learn how to use pagination in the API and Client Libraries.
|
4970
4974
|
parameters:
|
4971
4975
|
- "$ref": "#/components/parameters/site_id"
|
4972
4976
|
- "$ref": "#/components/parameters/account_id"
|
@@ -5040,8 +5044,8 @@ paths:
|
|
5040
5044
|
- account_acquisition
|
5041
5045
|
operationId: list_account_acquisition
|
5042
5046
|
summary: List a site's account acquisition data
|
5043
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
5044
|
-
to use pagination in the API and Client Libraries.
|
5047
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
5048
|
+
to learn how to use pagination in the API and Client Libraries.
|
5045
5049
|
parameters:
|
5046
5050
|
- "$ref": "#/components/parameters/site_id"
|
5047
5051
|
- "$ref": "#/components/parameters/ids"
|
@@ -5132,8 +5136,8 @@ paths:
|
|
5132
5136
|
- coupon
|
5133
5137
|
operationId: list_coupons
|
5134
5138
|
summary: List a site's coupons
|
5135
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
5136
|
-
to use pagination in the API and Client Libraries.
|
5139
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
5140
|
+
to learn how to use pagination in the API and Client Libraries.
|
5137
5141
|
parameters:
|
5138
5142
|
- "$ref": "#/components/parameters/site_id"
|
5139
5143
|
- "$ref": "#/components/parameters/ids"
|
@@ -5995,8 +5999,8 @@ paths:
|
|
5995
5999
|
- unique_coupon_code
|
5996
6000
|
operationId: list_unique_coupon_codes
|
5997
6001
|
summary: List unique coupon codes associated with a bulk coupon
|
5998
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
5999
|
-
to use pagination in the API and Client Libraries.
|
6002
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
6003
|
+
to learn how to use pagination in the API and Client Libraries.
|
6000
6004
|
parameters:
|
6001
6005
|
- "$ref": "#/components/parameters/site_id"
|
6002
6006
|
- "$ref": "#/components/parameters/coupon_id"
|
@@ -6032,8 +6036,8 @@ paths:
|
|
6032
6036
|
- credit_payment
|
6033
6037
|
operationId: list_credit_payments
|
6034
6038
|
summary: List a site's credit payments
|
6035
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
6036
|
-
to use pagination in the API and Client Libraries.
|
6039
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
6040
|
+
to learn how to use pagination in the API and Client Libraries.
|
6037
6041
|
parameters:
|
6038
6042
|
- "$ref": "#/components/parameters/site_id"
|
6039
6043
|
- "$ref": "#/components/parameters/limit"
|
@@ -6151,8 +6155,8 @@ paths:
|
|
6151
6155
|
- custom_field_definition
|
6152
6156
|
operationId: list_custom_field_definitions
|
6153
6157
|
summary: List a site's custom field definitions
|
6154
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
6155
|
-
to use pagination in the API and Client Libraries.
|
6158
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
6159
|
+
to learn how to use pagination in the API and Client Libraries.
|
6156
6160
|
parameters:
|
6157
6161
|
- "$ref": "#/components/parameters/site_id"
|
6158
6162
|
- "$ref": "#/components/parameters/ids"
|
@@ -6169,6 +6173,7 @@ paths:
|
|
6169
6173
|
enum:
|
6170
6174
|
- account
|
6171
6175
|
- item
|
6176
|
+
- plan
|
6172
6177
|
- subscription
|
6173
6178
|
responses:
|
6174
6179
|
'200':
|
@@ -6369,8 +6374,8 @@ paths:
|
|
6369
6374
|
- item
|
6370
6375
|
operationId: list_items
|
6371
6376
|
summary: List a site's items
|
6372
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
6373
|
-
to use pagination in the API and Client Libraries.
|
6377
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
6378
|
+
to learn how to use pagination in the API and Client Libraries.
|
6374
6379
|
parameters:
|
6375
6380
|
- "$ref": "#/components/parameters/site_id"
|
6376
6381
|
- "$ref": "#/components/parameters/ids"
|
@@ -7191,8 +7196,8 @@ paths:
|
|
7191
7196
|
- measured_unit
|
7192
7197
|
operationId: list_measured_unit
|
7193
7198
|
summary: List a site's measured units
|
7194
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
7195
|
-
to use pagination in the API and Client Libraries.
|
7199
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
7200
|
+
to learn how to use pagination in the API and Client Libraries.
|
7196
7201
|
parameters:
|
7197
7202
|
- "$ref": "#/components/parameters/site_id"
|
7198
7203
|
- "$ref": "#/components/parameters/ids"
|
@@ -7377,8 +7382,8 @@ paths:
|
|
7377
7382
|
- invoice
|
7378
7383
|
operationId: list_invoices
|
7379
7384
|
summary: List a site's invoices
|
7380
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
7381
|
-
to use pagination in the API and Client Libraries.
|
7385
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
7386
|
+
to learn how to use pagination in the API and Client Libraries.
|
7382
7387
|
parameters:
|
7383
7388
|
- "$ref": "#/components/parameters/site_id"
|
7384
7389
|
- "$ref": "#/components/parameters/ids"
|
@@ -7868,6 +7873,135 @@ paths:
|
|
7868
7873
|
// Something bad happened... tell the user so that they can fix it?
|
7869
7874
|
echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;
|
7870
7875
|
}
|
7876
|
+
"/sites/{site_id}/invoices/{invoice_id}/apply_credit_balance":
|
7877
|
+
put:
|
7878
|
+
tags:
|
7879
|
+
- invoice
|
7880
|
+
operationId: apply_credit_balance
|
7881
|
+
summary: Apply available credit to a pending or past due charge invoice
|
7882
|
+
description: Apply credit payment to the outstanding balance on an existing
|
7883
|
+
charge invoice from an account’s available balance from existing credit invoices.
|
7884
|
+
Credit that was refunded from the invoice cannot be applied back to the invoice
|
7885
|
+
as payment.
|
7886
|
+
parameters:
|
7887
|
+
- "$ref": "#/components/parameters/site_id"
|
7888
|
+
- "$ref": "#/components/parameters/invoice_id"
|
7889
|
+
responses:
|
7890
|
+
'200':
|
7891
|
+
description: The updated invoice.
|
7892
|
+
content:
|
7893
|
+
application/json:
|
7894
|
+
schema:
|
7895
|
+
"$ref": "#/components/schemas/Invoice"
|
7896
|
+
'404':
|
7897
|
+
description: Incorrect site or invoice ID.
|
7898
|
+
content:
|
7899
|
+
application/json:
|
7900
|
+
schema:
|
7901
|
+
"$ref": "#/components/schemas/Error"
|
7902
|
+
'422':
|
7903
|
+
description: Tried applying credit to a legacy or closed invoice or there
|
7904
|
+
was an error processing the credit payment, such as no available credit
|
7905
|
+
on the account.
|
7906
|
+
content:
|
7907
|
+
application/json:
|
7908
|
+
schema:
|
7909
|
+
"$ref": "#/components/schemas/Error"
|
7910
|
+
default:
|
7911
|
+
description: Unexpected error.
|
7912
|
+
content:
|
7913
|
+
application/json:
|
7914
|
+
schema:
|
7915
|
+
"$ref": "#/components/schemas/Error"
|
7916
|
+
x-code-samples:
|
7917
|
+
- lang: Node.js
|
7918
|
+
source: |
|
7919
|
+
try {
|
7920
|
+
const invoice = await client.applyCreditBalance(invoiceId)
|
7921
|
+
console.log('Applied credit balance to invoice: ', invoice)
|
7922
|
+
} catch (err) {
|
7923
|
+
if (err instanceof recurly.errors.ValidationError) {
|
7924
|
+
// If the request was not valid, you may want to tell your user
|
7925
|
+
// why. You can find the invalid params and reasons in err.params
|
7926
|
+
console.log('Failed validation', err.params)
|
7927
|
+
} else {
|
7928
|
+
// If we don't know what to do with the err, we should
|
7929
|
+
// probably re-raise and let our web framework and logger handle it
|
7930
|
+
console.log('Unknown Error: ', err)
|
7931
|
+
}
|
7932
|
+
}
|
7933
|
+
- lang: Python
|
7934
|
+
source: |
|
7935
|
+
try:
|
7936
|
+
invoice = client.apply_credit_balance(invoice_id)
|
7937
|
+
print("Applied credit balance to invoice %s" % invoice.id)
|
7938
|
+
except recurly.errors.NotFoundError:
|
7939
|
+
# If the resource was not found, you may want to alert the user or
|
7940
|
+
# just return nil
|
7941
|
+
print("Resource Not Found")
|
7942
|
+
- lang: ".NET"
|
7943
|
+
source: |
|
7944
|
+
try
|
7945
|
+
{
|
7946
|
+
Invoice invoice = client.ApplyCreditBalance(invoiceId);
|
7947
|
+
Console.WriteLine($"Applied credit balance to invoice #{invoice.Number}");
|
7948
|
+
}
|
7949
|
+
catch (Recurly.Errors.Validation ex)
|
7950
|
+
{
|
7951
|
+
// If the request was not valid, you may want to tell your user
|
7952
|
+
// why. You can find the invalid params and reasons in ex.Error.Params
|
7953
|
+
Console.WriteLine($"Failed validation: {ex.Error.Message}");
|
7954
|
+
}
|
7955
|
+
catch (Recurly.Errors.ApiError ex)
|
7956
|
+
{
|
7957
|
+
// Use ApiError to catch a generic error from the API
|
7958
|
+
Console.WriteLine($"Unexpected Recurly Error: {ex.Error.Message}");
|
7959
|
+
}
|
7960
|
+
- lang: Ruby
|
7961
|
+
source: |
|
7962
|
+
begin
|
7963
|
+
invoice = @client.apply_credit_balance(invoice_id: invoice_id)
|
7964
|
+
puts "Applied credit balance to invoice #{invoice}"
|
7965
|
+
rescue Recurly::Errors::NotFoundError
|
7966
|
+
# If the resource was not found, you may want to alert the user or
|
7967
|
+
# just return nil
|
7968
|
+
puts "Resource Not Found"
|
7969
|
+
end
|
7970
|
+
- lang: Java
|
7971
|
+
source: |
|
7972
|
+
try {
|
7973
|
+
final Invoice invoice = client.applyCreditBalance(invoiceId);
|
7974
|
+
System.out.println("Applied credit balance to invoice " + invoice.getId());
|
7975
|
+
} catch (final ValidationException e) {
|
7976
|
+
// If the request was not valid, you may want to tell your user
|
7977
|
+
// why. You can find the invalid params and reasons in e.getError().getParams()
|
7978
|
+
System.out.println("Failed validation: " + e.getError().getMessage());
|
7979
|
+
} catch (final ApiException e) {
|
7980
|
+
// Use ApiException to catch a generic error from the API
|
7981
|
+
System.out.println("Unexpected Recurly Error: " + e.getError().getMessage());
|
7982
|
+
}
|
7983
|
+
- lang: PHP
|
7984
|
+
source: |
|
7985
|
+
try {
|
7986
|
+
$invoice = $client->applyCreditBalance($invoice_id);
|
7987
|
+
|
7988
|
+
echo 'Applied credit balance to invoice:' . PHP_EOL;
|
7989
|
+
var_dump($invoice);
|
7990
|
+
} catch (\Recurly\Errors\Validation $e) {
|
7991
|
+
// If the request was not valid, you may want to tell your user
|
7992
|
+
// why. You can find the invalid params and reasons in err.params
|
7993
|
+
var_dump($e);
|
7994
|
+
} catch (\Recurly\RecurlyError $e) {
|
7995
|
+
// If we don't know what to do with the err, we should
|
7996
|
+
// probably re-raise and let our web framework and logger handle it
|
7997
|
+
var_dump($e);
|
7998
|
+
}
|
7999
|
+
- lang: Go
|
8000
|
+
source: "invoice, err := client.ApplyCreditBalance(invoiceID)\nif e, ok :=
|
8001
|
+
err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
|
8002
|
+
validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
|
8003
|
+
Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfmt.Printf(\"Applied credit
|
8004
|
+
balance to invoice: %v\", invoice)"
|
7871
8005
|
"/sites/{site_id}/invoices/{invoice_id}/collect":
|
7872
8006
|
put:
|
7873
8007
|
tags:
|
@@ -8557,8 +8691,8 @@ paths:
|
|
8557
8691
|
- line_item
|
8558
8692
|
operationId: list_invoice_line_items
|
8559
8693
|
summary: List an invoice's line items
|
8560
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
8561
|
-
to use pagination in the API and Client Libraries.
|
8694
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
8695
|
+
to learn how to use pagination in the API and Client Libraries.
|
8562
8696
|
parameters:
|
8563
8697
|
- "$ref": "#/components/parameters/site_id"
|
8564
8698
|
- "$ref": "#/components/parameters/invoice_id"
|
@@ -8658,9 +8792,9 @@ paths:
|
|
8658
8792
|
tags:
|
8659
8793
|
- coupon_redemption
|
8660
8794
|
operationId: list_invoice_coupon_redemptions
|
8661
|
-
summary:
|
8662
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
8663
|
-
to use pagination in the API and Client Libraries.
|
8795
|
+
summary: List the coupon redemptions applied to an invoice
|
8796
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
8797
|
+
to learn how to use pagination in the API and Client Libraries.
|
8664
8798
|
parameters:
|
8665
8799
|
- "$ref": "#/components/parameters/site_id"
|
8666
8800
|
- "$ref": "#/components/parameters/invoice_id"
|
@@ -8756,7 +8890,7 @@ paths:
|
|
8756
8890
|
For a charge invoice the related invoices will be credit invoices.
|
8757
8891
|
For a credit invoice the related invoices will be charge invoices.
|
8758
8892
|
|
8759
|
-
See the [Pagination Guide](/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
|
8893
|
+
See the [Pagination Guide](/developers/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.
|
8760
8894
|
parameters:
|
8761
8895
|
- "$ref": "#/components/parameters/site_id"
|
8762
8896
|
- "$ref": "#/components/parameters/invoice_id"
|
@@ -9006,8 +9140,8 @@ paths:
|
|
9006
9140
|
- line_item
|
9007
9141
|
operationId: list_line_items
|
9008
9142
|
summary: List a site's line items
|
9009
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
9010
|
-
to use pagination in the API and Client Libraries.
|
9143
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
9144
|
+
to learn how to use pagination in the API and Client Libraries.
|
9011
9145
|
parameters:
|
9012
9146
|
- "$ref": "#/components/parameters/site_id"
|
9013
9147
|
- "$ref": "#/components/parameters/ids"
|
@@ -9336,8 +9470,8 @@ paths:
|
|
9336
9470
|
- plan
|
9337
9471
|
operationId: list_plans
|
9338
9472
|
summary: List a site's plans
|
9339
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
9340
|
-
to use pagination in the API and Client Libraries.
|
9473
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
9474
|
+
to learn how to use pagination in the API and Client Libraries.
|
9341
9475
|
parameters:
|
9342
9476
|
- "$ref": "#/components/parameters/site_id"
|
9343
9477
|
- "$ref": "#/components/parameters/ids"
|
@@ -9997,8 +10131,8 @@ paths:
|
|
9997
10131
|
- add-on
|
9998
10132
|
operationId: list_plan_add_ons
|
9999
10133
|
summary: List a plan's add-ons
|
10000
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
10001
|
-
to use pagination in the API and Client Libraries.
|
10134
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
10135
|
+
to learn how to use pagination in the API and Client Libraries.
|
10002
10136
|
parameters:
|
10003
10137
|
- "$ref": "#/components/parameters/site_id"
|
10004
10138
|
- "$ref": "#/components/parameters/plan_id"
|
@@ -10659,8 +10793,8 @@ paths:
|
|
10659
10793
|
- add-on
|
10660
10794
|
operationId: list_add_ons
|
10661
10795
|
summary: List a site's add-ons
|
10662
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
10663
|
-
to use pagination in the API and Client Libraries.
|
10796
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
10797
|
+
to learn how to use pagination in the API and Client Libraries.
|
10664
10798
|
parameters:
|
10665
10799
|
- "$ref": "#/components/parameters/site_id"
|
10666
10800
|
- "$ref": "#/components/parameters/ids"
|
@@ -10869,8 +11003,8 @@ paths:
|
|
10869
11003
|
- shipping_method
|
10870
11004
|
operationId: list_shipping_methods
|
10871
11005
|
summary: List a site's shipping methods
|
10872
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
10873
|
-
to use pagination in the API and Client Libraries.
|
11006
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
11007
|
+
to learn how to use pagination in the API and Client Libraries.
|
10874
11008
|
parameters:
|
10875
11009
|
- "$ref": "#/components/parameters/site_id"
|
10876
11010
|
- "$ref": "#/components/parameters/ids"
|
@@ -11120,8 +11254,8 @@ paths:
|
|
11120
11254
|
- subscription
|
11121
11255
|
operationId: list_subscriptions
|
11122
11256
|
summary: List a site's subscriptions
|
11123
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
11124
|
-
to use pagination in the API and Client Libraries.
|
11257
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
11258
|
+
to learn how to use pagination in the API and Client Libraries.
|
11125
11259
|
parameters:
|
11126
11260
|
- "$ref": "#/components/parameters/site_id"
|
11127
11261
|
- "$ref": "#/components/parameters/ids"
|
@@ -12912,8 +13046,8 @@ paths:
|
|
12912
13046
|
- invoice
|
12913
13047
|
operationId: list_subscription_invoices
|
12914
13048
|
summary: List a subscription's invoices
|
12915
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
12916
|
-
to use pagination in the API and Client Libraries.
|
13049
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
13050
|
+
to learn how to use pagination in the API and Client Libraries.
|
12917
13051
|
parameters:
|
12918
13052
|
- "$ref": "#/components/parameters/site_id"
|
12919
13053
|
- "$ref": "#/components/parameters/subscription_id"
|
@@ -13009,8 +13143,8 @@ paths:
|
|
13009
13143
|
- line_item
|
13010
13144
|
operationId: list_subscription_line_items
|
13011
13145
|
summary: List a subscription's line items
|
13012
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
13013
|
-
to use pagination in the API and Client Libraries.
|
13146
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
13147
|
+
to learn how to use pagination in the API and Client Libraries.
|
13014
13148
|
parameters:
|
13015
13149
|
- "$ref": "#/components/parameters/site_id"
|
13016
13150
|
- "$ref": "#/components/parameters/subscription_id"
|
@@ -13107,9 +13241,9 @@ paths:
|
|
13107
13241
|
tags:
|
13108
13242
|
- coupon_redemption
|
13109
13243
|
operationId: list_subscription_coupon_redemptions
|
13110
|
-
summary:
|
13111
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
13112
|
-
to use pagination in the API and Client Libraries.
|
13244
|
+
summary: List the coupon redemptions for a subscription
|
13245
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
13246
|
+
to learn how to use pagination in the API and Client Libraries.
|
13113
13247
|
parameters:
|
13114
13248
|
- "$ref": "#/components/parameters/site_id"
|
13115
13249
|
- "$ref": "#/components/parameters/subscription_id"
|
@@ -13402,8 +13536,8 @@ paths:
|
|
13402
13536
|
- transaction
|
13403
13537
|
operationId: list_transactions
|
13404
13538
|
summary: List a site's transactions
|
13405
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
13406
|
-
to use pagination in the API and Client Libraries.
|
13539
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
13540
|
+
to learn how to use pagination in the API and Client Libraries.
|
13407
13541
|
parameters:
|
13408
13542
|
- "$ref": "#/components/parameters/site_id"
|
13409
13543
|
- "$ref": "#/components/parameters/ids"
|
@@ -14403,9 +14537,9 @@ paths:
|
|
14403
14537
|
tags:
|
14404
14538
|
- dunning_campaigns
|
14405
14539
|
operationId: list_dunning_campaigns
|
14406
|
-
summary:
|
14407
|
-
description: See the [Pagination Guide](/guides/pagination.html)
|
14408
|
-
to use pagination in the API and Client Libraries.
|
14540
|
+
summary: List the dunning campaigns for a site
|
14541
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
14542
|
+
to learn how to use pagination in the API and Client Libraries.
|
14409
14543
|
parameters:
|
14410
14544
|
- "$ref": "#/components/parameters/sort_dates"
|
14411
14545
|
responses:
|
@@ -14435,7 +14569,7 @@ paths:
|
|
14435
14569
|
tags:
|
14436
14570
|
- dunning_campaigns
|
14437
14571
|
operationId: get_dunning_campaign
|
14438
|
-
summary:
|
14572
|
+
summary: Fetch a dunning campaign
|
14439
14573
|
responses:
|
14440
14574
|
'200':
|
14441
14575
|
description: Settings for a dunning campaign.
|
@@ -15437,6 +15571,11 @@ components:
|
|
15437
15571
|
- sv-SE
|
15438
15572
|
- tr-TR
|
15439
15573
|
- zh-CN
|
15574
|
+
preferred_time_zone:
|
15575
|
+
type: string
|
15576
|
+
example: America/Los_Angeles
|
15577
|
+
description: Used to determine the time zone of emails sent on behalf of
|
15578
|
+
the merchant to the customer. Must be a [supported IANA time zone name](https://docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names)
|
15440
15579
|
cc_emails:
|
15441
15580
|
type: string
|
15442
15581
|
description: Additional email address that should receive account correspondence.
|
@@ -15569,6 +15708,12 @@ components:
|
|
15569
15708
|
- sv-SE
|
15570
15709
|
- tr-TR
|
15571
15710
|
- zh-CN
|
15711
|
+
preferred_time_zone:
|
15712
|
+
type: string
|
15713
|
+
example: America/Los_Angeles
|
15714
|
+
description: The [IANA time zone name](https://docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names)
|
15715
|
+
used to determine the time zone of emails sent on behalf of the merchant
|
15716
|
+
to the customer.
|
15572
15717
|
cc_emails:
|
15573
15718
|
type: string
|
15574
15719
|
description: Additional email address that should receive account correspondence.
|
@@ -15723,9 +15868,15 @@ components:
|
|
15723
15868
|
processing_prepayment_amount:
|
15724
15869
|
type: number
|
15725
15870
|
format: float
|
15726
|
-
title: Amount
|
15871
|
+
title: Processing Prepayment Amount
|
15727
15872
|
description: Total amount for the prepayment credit invoices in a `processing`
|
15728
15873
|
state on the account.
|
15874
|
+
available_credit_amount:
|
15875
|
+
type: number
|
15876
|
+
format: float
|
15877
|
+
title: Available Credit Amount
|
15878
|
+
description: Total amount of the open balances on credit invoices for the
|
15879
|
+
account.
|
15729
15880
|
InvoiceAddress:
|
15730
15881
|
allOf:
|
15731
15882
|
- "$ref": "#/components/schemas/Address"
|
@@ -16061,7 +16212,7 @@ components:
|
|
16061
16212
|
title: Usage Type
|
16062
16213
|
description: |
|
16063
16214
|
Type of usage, required if `add_on_type` is `usage`. See our
|
16064
|
-
[Guide](https://
|
16215
|
+
[Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html)
|
16065
16216
|
for an overview of how to configure usage add-ons.
|
16066
16217
|
usage_percentage:
|
16067
16218
|
type: number
|
@@ -16177,7 +16328,7 @@ components:
|
|
16177
16328
|
description: |
|
16178
16329
|
The pricing model for the add-on. For more information,
|
16179
16330
|
[click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See
|
16180
|
-
our [Guide](https://
|
16331
|
+
our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview
|
16181
16332
|
of how to configure quantity-based pricing models.
|
16182
16333
|
default: flat
|
16183
16334
|
enum:
|
@@ -16428,7 +16579,7 @@ components:
|
|
16428
16579
|
token_id:
|
16429
16580
|
type: string
|
16430
16581
|
title: Token ID
|
16431
|
-
description: A token [generated by Recurly.js](https://
|
16582
|
+
description: A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
|
16432
16583
|
maxLength: 22
|
16433
16584
|
first_name:
|
16434
16585
|
type: string
|
@@ -17291,6 +17442,7 @@ components:
|
|
17291
17442
|
enum:
|
17292
17443
|
- account
|
17293
17444
|
- item
|
17445
|
+
- plan
|
17294
17446
|
- subscription
|
17295
17447
|
name:
|
17296
17448
|
type: string
|
@@ -17714,7 +17866,11 @@ components:
|
|
17714
17866
|
type: string
|
17715
17867
|
title: Previous invoice ID
|
17716
17868
|
description: On refund invoices, this value will exist and show the invoice
|
17717
|
-
ID of the purchase invoice the refund was created from.
|
17869
|
+
ID of the purchase invoice the refund was created from. This field is
|
17870
|
+
only populated for sites without the [Only Bill What Changed](https://docs.recurly.com/docs/only-bill-what-changed)
|
17871
|
+
feature enabled. Sites with Only Bill What Changed enabled should use
|
17872
|
+
the [related_invoices endpoint](https://recurly.com/developers/api/v2019-10-10/index.html#operation/list_related_invoices)
|
17873
|
+
to see purchase invoices refunded by this invoice.
|
17718
17874
|
maxLength: 13
|
17719
17875
|
number:
|
17720
17876
|
type: string
|
@@ -18869,6 +19025,8 @@ components:
|
|
18869
19025
|
title: Ramp Intervals
|
18870
19026
|
items:
|
18871
19027
|
"$ref": "#/components/schemas/PlanRampInterval"
|
19028
|
+
custom_fields:
|
19029
|
+
"$ref": "#/components/schemas/CustomFields"
|
18872
19030
|
accounting_code:
|
18873
19031
|
type: string
|
18874
19032
|
title: Plan accounting code
|
@@ -19063,6 +19221,8 @@ components:
|
|
19063
19221
|
title: Ramp Intervals
|
19064
19222
|
items:
|
19065
19223
|
"$ref": "#/components/schemas/PlanRampInterval"
|
19224
|
+
custom_fields:
|
19225
|
+
"$ref": "#/components/schemas/CustomFields"
|
19066
19226
|
revenue_schedule_type:
|
19067
19227
|
type: string
|
19068
19228
|
title: Revenue schedule type
|
@@ -19277,6 +19437,8 @@ components:
|
|
19277
19437
|
title: Ramp Intervals
|
19278
19438
|
items:
|
19279
19439
|
"$ref": "#/components/schemas/PlanRampInterval"
|
19440
|
+
custom_fields:
|
19441
|
+
"$ref": "#/components/schemas/CustomFields"
|
19280
19442
|
revenue_schedule_type:
|
19281
19443
|
type: string
|
19282
19444
|
title: Revenue schedule type
|
@@ -20257,7 +20419,7 @@ components:
|
|
20257
20419
|
If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object
|
20258
20420
|
must include one to many tiers with `ending_quantity` and `unit_amount`.
|
20259
20421
|
There must be one tier with an `ending_quantity` of 999999999 which is the
|
20260
|
-
default if not provided. See our [Guide](https://
|
20422
|
+
default if not provided. See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html)
|
20261
20423
|
for an overview of how to configure quantity-based pricing models.
|
20262
20424
|
usage_percentage:
|
20263
20425
|
type: number
|
@@ -20266,7 +20428,7 @@ components:
|
|
20266
20428
|
description: The percentage taken of the monetary amount of usage tracked.
|
20267
20429
|
This can be up to 4 decimal places. A value between 0.0 and 100.0. Required
|
20268
20430
|
if `add_on_type` is usage and `usage_type` is percentage. Must be omitted
|
20269
|
-
otherwise. `usage_percentage` does not support tiers. See our [Guide](https://
|
20431
|
+
otherwise. `usage_percentage` does not support tiers. See our [Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html)
|
20270
20432
|
for an overview of how to configure usage add-ons.
|
20271
20433
|
revenue_schedule_type:
|
20272
20434
|
type: string
|
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: 3.
|
4
|
+
version: 3.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -306,7 +306,7 @@ metadata:
|
|
306
306
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
307
307
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
308
308
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
309
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.
|
309
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.24.0
|
310
310
|
post_install_message:
|
311
311
|
rdoc_options: []
|
312
312
|
require_paths:
|