recurly 4.39.0 → 4.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9834825d05fc3ef9111a875a8fae61f5938d458f8127974130b2655e9c8aeb06
4
- data.tar.gz: f206903d330ff561a2acb319410148bcfcd3e5824811f0ef637ddc45d9ee2c8d
3
+ metadata.gz: 843ef045e84fa504d343018c8ffe5a603ff38f7f2fe7506a4fc6c49b335ede21
4
+ data.tar.gz: 7ef23498bd6f64129e6ee0381530a3ce68bc280f8814948ee2dbcccee4be8429
5
5
  SHA512:
6
- metadata.gz: d2ae09ec231a22717cc08f125a0e0c89d1092c7653d04a3ad37abbb66af61589a8ce2ff46a0584d1f749184a4303f2eecb1799e08227bf1f5220e781567ef5b0
7
- data.tar.gz: 4af28009963ed13fb24367ef7485bb92372296861af6391fa2555da4e79df605234063041fb568ff6c61dc834e082706ca1534616ad7d5d5ce6ff2a8136d27b9
6
+ metadata.gz: 0de429f909022b74b0e9e533aa768e3a990b9cef8a7cc9649ebb1c31621b67b83cad24588091c313f2b02b42e45a881771ce54283516a1cd8dc9efb43aee3c8f
7
+ data.tar.gz: 696b8c39a4d0234878700454d4ff83da034ef2beaed761e09344fd4851dfac563e9cac76341f3089860c40b4cf9e565c6dfef0642085359cba899937f87b6113
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.39.0
2
+ current_version = 4.41.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,12 +1,24 @@
1
1
  # Changelog
2
2
 
3
- ## [4.39.0](https://github.com/recurly/recurly-client-ruby/tree/4.39.0) (2023-07-26)
3
+ ## [4.41.0](https://github.com/recurly/recurly-client-ruby/tree/4.41.0) (2023-08-10)
4
4
 
5
- [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.38.0...4.39.0)
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.40.0...4.41.0)
6
6
 
7
7
 
8
8
  **Merged Pull Requests**
9
9
 
10
+ - Generated Latest Changes for v2021-02-25 (action_result) [#864](https://github.com/recurly/recurly-client-ruby/pull/864) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
14
+ ## [4.40.0](https://github.com/recurly/recurly-client-ruby/tree/4.40.0) (2023-07-27)
15
+
16
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.38.0...4.40.0)
17
+
18
+
19
+ **Merged Pull Requests**
20
+
21
+ - Generated Latest Changes for v2021-02-25 (Ramp Dates, Net Terms, Invoice Business Entity) [#860](https://github.com/recurly/recurly-client-ruby/pull/860) ([recurly-integrations](https://github.com/recurly-integrations))
10
22
  - Generated Latest Changes for v2021-02-25 (App Management - External Subscriptions) [#859](https://github.com/recurly/recurly-client-ruby/pull/859) ([recurly-integrations](https://github.com/recurly-integrations))
11
23
 
12
24
 
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.39'
8
+ gem 'recurly', '~> 4.41'
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.
@@ -7,7 +7,7 @@ module Recurly
7
7
  class GatewayAttributes < Request
8
8
 
9
9
  # @!attribute account_reference
10
- # @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code.
10
+ # @return [String] Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code. For Braintree the PayPal PayerID is populated in the response.
11
11
  define_attribute :account_reference, String
12
12
  end
13
13
  end
@@ -23,9 +23,13 @@ module Recurly
23
23
  define_attribute :currency, String
24
24
 
25
25
  # @!attribute net_terms
26
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
26
+ # @return [Integer] Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
27
27
  define_attribute :net_terms, Integer
28
28
 
29
+ # @!attribute net_terms_type
30
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
31
+ define_attribute :net_terms_type, String
32
+
29
33
  # @!attribute po_number
30
34
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
31
35
  define_attribute :po_number, String
@@ -47,9 +47,13 @@ module Recurly
47
47
  define_attribute :line_items, Array, { :item_type => :LineItemCreate }
48
48
 
49
49
  # @!attribute net_terms
50
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
50
+ # @return [Integer] Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
51
51
  define_attribute :net_terms, Integer
52
52
 
53
+ # @!attribute net_terms_type
54
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
55
+ define_attribute :net_terms_type, String
56
+
53
57
  # @!attribute po_number
54
58
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
55
59
  define_attribute :po_number, String
@@ -27,9 +27,13 @@ module Recurly
27
27
  define_attribute :custom_fields, Array, { :item_type => :CustomField }
28
28
 
29
29
  # @!attribute net_terms
30
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
30
+ # @return [Integer] Integer normally paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. During a subscription change, it's not necessary to provide both the `Net Terms Type` and `Net Terms` parameters. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
31
31
  define_attribute :net_terms, Integer
32
32
 
33
+ # @!attribute net_terms_type
34
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
35
+ define_attribute :net_terms_type, String
36
+
33
37
  # @!attribute plan_code
34
38
  # @return [String] If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used.
35
39
  define_attribute :plan_code, String
@@ -51,9 +51,13 @@ module Recurly
51
51
  define_attribute :gift_card_redemption_code, String
52
52
 
53
53
  # @!attribute net_terms
54
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
54
+ # @return [Integer] Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
55
55
  define_attribute :net_terms, Integer
56
56
 
57
+ # @!attribute net_terms_type
58
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
59
+ define_attribute :net_terms_type, String
60
+
57
61
  # @!attribute next_bill_date
58
62
  # @return [DateTime] If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. The initial invoice will be prorated for the period between the subscription's activation date and the billing period end date. Subsequent periods will be based off the plan interval. For a subscription with a trial period, this will change when the trial expires.
59
63
  define_attribute :next_bill_date, DateTime
@@ -31,9 +31,13 @@ module Recurly
31
31
  define_attribute :gateway_code, String
32
32
 
33
33
  # @!attribute net_terms
34
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
34
+ # @return [Integer] Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
35
35
  define_attribute :net_terms, Integer
36
36
 
37
+ # @!attribute net_terms_type
38
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
39
+ define_attribute :net_terms_type, String
40
+
37
41
  # @!attribute next_bill_date
38
42
  # @return [DateTime] If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. For a subscription in a trial period, this will change when the trial expires. This parameter is useful for postponement of a subscription to change its billing date without proration.
39
43
  define_attribute :next_bill_date, DateTime
@@ -7,7 +7,7 @@ module Recurly
7
7
  class GatewayAttributes < Resource
8
8
 
9
9
  # @!attribute account_reference
10
- # @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created.
10
+ # @return [String] Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response.
11
11
  define_attribute :account_reference, String
12
12
  end
13
13
  end
@@ -83,9 +83,13 @@ module Recurly
83
83
  define_attribute :line_items, Array, { :item_type => :LineItem }
84
84
 
85
85
  # @!attribute net_terms
86
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
86
+ # @return [Integer] Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
87
87
  define_attribute :net_terms, Integer
88
88
 
89
+ # @!attribute net_terms_type
90
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
91
+ define_attribute :net_terms_type, String
92
+
89
93
  # @!attribute number
90
94
  # @return [String] If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.
91
95
  define_attribute :number, String
@@ -6,6 +6,10 @@ module Recurly
6
6
  module Resources
7
7
  class InvoiceMini < Resource
8
8
 
9
+ # @!attribute business_entity_id
10
+ # @return [String] Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled.
11
+ define_attribute :business_entity_id, String
12
+
9
13
  # @!attribute id
10
14
  # @return [String] Invoice ID
11
15
  define_attribute :id, String
@@ -10,6 +10,10 @@ module Recurly
10
10
  # @return [AccountMini] Account mini details
11
11
  define_attribute :account, :AccountMini
12
12
 
13
+ # @!attribute action_result
14
+ # @return [Hash] Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort.
15
+ define_attribute :action_result, Hash
16
+
13
17
  # @!attribute activated_at
14
18
  # @return [DateTime] Activated at
15
19
  define_attribute :activated_at, DateTime
@@ -103,9 +107,13 @@ module Recurly
103
107
  define_attribute :id, String
104
108
 
105
109
  # @!attribute net_terms
106
- # @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after its created. If an invoice is due net 30, it will become past due at 31 days exactly.
110
+ # @return [Integer] Integer paired with `Net Terms Type` and representing the number of days past the current date (for `net` Net Terms Type) or days after the last day of the current month (for `eom` Net Terms Type) that the invoice will become past due. For any value, an additional 24 hours is added to ensure the customer has the entire last day to make payment before becoming past due. For example: If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created. If an invoice is due `net 30`, it will become past due at 31 days exactly. If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month. When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`. For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
107
111
  define_attribute :net_terms, Integer
108
112
 
113
+ # @!attribute net_terms_type
114
+ # @return [String] Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month. This field is only available when the EOM Net Terms feature is enabled.
115
+ define_attribute :net_terms_type, String
116
+
109
117
  # @!attribute object
110
118
  # @return [String] Object type
111
119
  define_attribute :object, String
@@ -6,6 +6,10 @@ module Recurly
6
6
  module Resources
7
7
  class SubscriptionRampIntervalResponse < Resource
8
8
 
9
+ # @!attribute ending_on
10
+ # @return [DateTime] Date the ramp interval ends
11
+ define_attribute :ending_on, DateTime
12
+
9
13
  # @!attribute remaining_billing_cycles
10
14
  # @return [Integer] Represents how many billing cycles are left in a ramp interval.
11
15
  define_attribute :remaining_billing_cycles, Integer
@@ -14,6 +18,10 @@ module Recurly
14
18
  # @return [Integer] Represents the billing cycle where a ramp interval starts.
15
19
  define_attribute :starting_billing_cycle, Integer
16
20
 
21
+ # @!attribute starting_on
22
+ # @return [DateTime] Date the ramp interval starts
23
+ define_attribute :starting_on, DateTime
24
+
17
25
  # @!attribute unit_amount
18
26
  # @return [Float] Represents the price for the ramp interval.
19
27
  define_attribute :unit_amount, Float
@@ -10,6 +10,10 @@ module Recurly
10
10
  # @return [AccountMini] Account mini details
11
11
  define_attribute :account, :AccountMini
12
12
 
13
+ # @!attribute action_result
14
+ # @return [Hash] Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort.
15
+ define_attribute :action_result, Hash
16
+
13
17
  # @!attribute amount
14
18
  # @return [Float] Total transaction amount sent to the payment gateway.
15
19
  define_attribute :amount, Float
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.39.0"
2
+ VERSION = "4.41.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -15202,7 +15202,7 @@ paths:
15202
15202
 
15203
15203
  Use for **Adyen HPP** and **Online Banking** transaction requests.
15204
15204
  This runs the validations but not the transactions.
15205
- The API request allows the inclusion of one of the following fields: **external_hpp_type** with `'adyen'` and **online_banking_payment_type** with `'ideal'` or `'sofort'` in the **billing_info** object.
15205
+ The API request allows the inclusion of the following field: **external_hpp_type** with `'adyen'` in the **billing_info** object.
15206
15206
 
15207
15207
  For additional information regarding shipping fees, please see https://docs.recurly.com/docs/shipping
15208
15208
 
@@ -18204,9 +18204,10 @@ components:
18204
18204
  properties:
18205
18205
  account_reference:
18206
18206
  type: string
18207
- description: Used by Adyen gateways. The Shopper Reference value used
18208
- when the external token was created. Must be used in conjunction with
18209
- gateway_token and gateway_code.
18207
+ description: Used by Adyen and Braintree gateways. For Adyen the Shopper
18208
+ Reference value used when the external token was created. Must be
18209
+ used in conjunction with gateway_token and gateway_code. For Braintree
18210
+ the PayPal PayerID is populated in the response.
18210
18211
  maxLength: 264
18211
18212
  amazon_billing_agreement_id:
18212
18213
  type: string
@@ -18291,6 +18292,7 @@ components:
18291
18292
  "$ref": "#/components/schemas/ExternalHppTypeEnum"
18292
18293
  online_banking_payment_type:
18293
18294
  "$ref": "#/components/schemas/OnlineBankingPaymentTypeEnum"
18295
+ deprecated: true
18294
18296
  card_type:
18295
18297
  "$ref": "#/components/schemas/CardTypeEnum"
18296
18298
  BillingInfoVerify:
@@ -19332,13 +19334,24 @@ components:
19332
19334
  net_terms:
19333
19335
  type: integer
19334
19336
  title: Net terms
19335
- description: Integer representing the number of days after an invoice's
19336
- creation that the invoice will become past due. If an invoice's net terms
19337
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
19338
- after it’s created. If an invoice is due net 30, it will become past due
19339
- at 31 days exactly.
19337
+ description: |-
19338
+ Integer paired with `Net Terms Type` and representing the number
19339
+ of days past the current date (for `net` Net Terms Type) or days after
19340
+ the last day of the current month (for `eom` Net Terms Type) that the
19341
+ invoice will become past due. For any value, an additional 24 hours is
19342
+ added to ensure the customer has the entire last day to make payment before
19343
+ becoming past due. For example:
19344
+
19345
+ If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
19346
+ If an invoice is due `net 30`, it will become past due at 31 days exactly.
19347
+ If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
19348
+
19349
+ When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
19350
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
19340
19351
  minimum: 0
19341
19352
  default: 0
19353
+ net_terms_type:
19354
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
19342
19355
  address:
19343
19356
  "$ref": "#/components/schemas/InvoiceAddress"
19344
19357
  shipping_address:
@@ -19516,13 +19529,24 @@ components:
19516
19529
  net_terms:
19517
19530
  type: integer
19518
19531
  title: Net terms
19519
- description: Integer representing the number of days after an invoice's
19520
- creation that the invoice will become past due. If an invoice's net terms
19521
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
19522
- after it’s created. If an invoice is due net 30, it will become past due
19523
- at 31 days exactly.
19524
- default: 0
19532
+ description: |-
19533
+ Integer paired with `Net Terms Type` and representing the number
19534
+ of days past the current date (for `net` Net Terms Type) or days after
19535
+ the last day of the current month (for `eom` Net Terms Type) that the
19536
+ invoice will become past due. For any value, an additional 24 hours is
19537
+ added to ensure the customer has the entire last day to make payment before
19538
+ becoming past due. For example:
19539
+
19540
+ If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
19541
+ If an invoice is due `net 30`, it will become past due at 31 days exactly.
19542
+ If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
19543
+
19544
+ When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
19545
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
19525
19546
  minimum: 0
19547
+ default: 0
19548
+ net_terms_type:
19549
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
19526
19550
  po_number:
19527
19551
  type: string
19528
19552
  title: Purchase order number
@@ -19629,6 +19653,11 @@ components:
19629
19653
  number:
19630
19654
  type: string
19631
19655
  title: Invoice number
19656
+ business_entity_id:
19657
+ type: string
19658
+ title: Business Entity ID
19659
+ description: Unique ID to identify the business entity assigned to the invoice.
19660
+ Available when the `Multiple Business Entities` feature is enabled.
19632
19661
  type:
19633
19662
  title: Invoice type
19634
19663
  "$ref": "#/components/schemas/InvoiceTypeEnum"
@@ -21600,13 +21629,24 @@ components:
21600
21629
  net_terms:
21601
21630
  type: integer
21602
21631
  title: Net terms
21603
- description: Integer representing the number of days after an invoice's
21604
- creation that the invoice will become past due. If an invoice's net terms
21605
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
21606
- after it’s created. If an invoice is due net 30, it will become past due
21607
- at 31 days exactly.
21632
+ description: |-
21633
+ Integer paired with `Net Terms Type` and representing the number
21634
+ of days past the current date (for `net` Net Terms Type) or days after
21635
+ the last day of the current month (for `eom` Net Terms Type) that the
21636
+ invoice will become past due. For any value, an additional 24 hours is
21637
+ added to ensure the customer has the entire last day to make payment before
21638
+ becoming past due. For example:
21639
+
21640
+ If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
21641
+ If an invoice is due `net 30`, it will become past due at 31 days exactly.
21642
+ If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
21643
+
21644
+ When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
21645
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
21608
21646
  minimum: 0
21609
21647
  default: 0
21648
+ net_terms_type:
21649
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
21610
21650
  terms_and_conditions:
21611
21651
  type: string
21612
21652
  title: Terms and conditions
@@ -21673,6 +21713,12 @@ components:
21673
21713
  format: date-time
21674
21714
  description: When the subscription was converted from a gift card.
21675
21715
  title: Converted at
21716
+ action_result:
21717
+ type: object
21718
+ description: Action result params to be used in Recurly-JS to complete a
21719
+ payment when using asynchronous payment methods, e.g., Boleto, iDEAL and
21720
+ Sofort.
21721
+ title: Action result
21676
21722
  SubscriptionAddOn:
21677
21723
  type: object
21678
21724
  title: Subscription Add-on
@@ -22162,13 +22208,17 @@ components:
22162
22208
  net_terms:
22163
22209
  type: integer
22164
22210
  title: Net terms
22165
- description: Integer representing the number of days after an invoice's
22166
- creation that the invoice will become past due. If an invoice's net terms
22167
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
22168
- after it’s created. If an invoice is due net 30, it will become past due
22169
- at 31 days exactly.
22211
+ description: |-
22212
+ Integer normally paired with `Net Terms Type` and representing the number of days past
22213
+ the current date (for `net` Net Terms Type) or days after the last day of the current
22214
+ month (for `eom` Net Terms Type) that the invoice will become past due. During a subscription
22215
+ change, it's not necessary to provide both the `Net Terms Type` and `Net Terms` parameters.
22216
+
22217
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22170
22218
  minimum: 0
22171
22219
  default: 0
22220
+ net_terms_type:
22221
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
22172
22222
  transaction_type:
22173
22223
  description: An optional type designation for the payment gateway transaction
22174
22224
  created by this request. Supports 'moto' value, which is the acronym for
@@ -22373,13 +22423,24 @@ components:
22373
22423
  net_terms:
22374
22424
  type: integer
22375
22425
  title: Net terms
22376
- description: Integer representing the number of days after an invoice's
22377
- creation that the invoice will become past due. If an invoice's net terms
22378
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
22379
- after it’s created. If an invoice is due net 30, it will become past due
22380
- at 31 days exactly.
22426
+ description: |-
22427
+ Integer paired with `Net Terms Type` and representing the number
22428
+ of days past the current date (for `net` Net Terms Type) or days after
22429
+ the last day of the current month (for `eom` Net Terms Type) that the
22430
+ invoice will become past due. For any value, an additional 24 hours is
22431
+ added to ensure the customer has the entire last day to make payment before
22432
+ becoming past due. For example:
22433
+
22434
+ If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
22435
+ If an invoice is due `net 30`, it will become past due at 31 days exactly.
22436
+ If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
22437
+
22438
+ When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
22439
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22381
22440
  minimum: 0
22382
22441
  default: 0
22442
+ net_terms_type:
22443
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
22383
22444
  transaction_type:
22384
22445
  description: An optional type designation for the payment gateway transaction
22385
22446
  created by this request. Supports 'moto' value, which is the acronym for
@@ -22549,13 +22610,24 @@ components:
22549
22610
  net_terms:
22550
22611
  type: integer
22551
22612
  title: Terms that the subscription is due on
22552
- description: Integer representing the number of days after an invoice's
22553
- creation that the invoice will become past due. If an invoice's net terms
22554
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
22555
- after it’s created. If an invoice is due net 30, it will become past due
22556
- at 31 days exactly.
22613
+ description: |-
22614
+ Integer paired with `Net Terms Type` and representing the number
22615
+ of days past the current date (for `net` Net Terms Type) or days after
22616
+ the last day of the current month (for `eom` Net Terms Type) that the
22617
+ invoice will become past due. For any value, an additional 24 hours is
22618
+ added to ensure the customer has the entire last day to make payment before
22619
+ becoming past due. For example:
22620
+
22621
+ If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
22622
+ If an invoice is due `net 30`, it will become past due at 31 days exactly.
22623
+ If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
22624
+
22625
+ When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
22626
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
22557
22627
  minimum: 0
22558
22628
  default: 0
22629
+ net_terms_type:
22630
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
22559
22631
  gateway_code:
22560
22632
  type: string
22561
22633
  title: Gateway Code
@@ -22694,6 +22766,14 @@ components:
22694
22766
  remaining_billing_cycles:
22695
22767
  type: integer
22696
22768
  description: Represents how many billing cycles are left in a ramp interval.
22769
+ starting_on:
22770
+ type: string
22771
+ format: date-time
22772
+ title: Date the ramp interval starts
22773
+ ending_on:
22774
+ type: string
22775
+ format: date-time
22776
+ title: Date the ramp interval ends
22697
22777
  unit_amount:
22698
22778
  type: number
22699
22779
  format: float
@@ -22954,6 +23034,12 @@ components:
22954
23034
  format: date-time
22955
23035
  title: Collected at, or if not collected yet, the time the transaction was
22956
23036
  created.
23037
+ action_result:
23038
+ type: object
23039
+ description: Action result params to be used in Recurly-JS to complete a
23040
+ payment when using asynchronous payment methods, e.g., Boleto, iDEAL and
23041
+ Sofort.
23042
+ title: Action result
22957
23043
  ExternalTransaction:
22958
23044
  type: object
22959
23045
  properties:
@@ -23253,13 +23339,24 @@ components:
23253
23339
  net_terms:
23254
23340
  type: integer
23255
23341
  title: Net terms
23256
- description: Integer representing the number of days after an invoice's
23257
- creation that the invoice will become past due. If an invoice's net terms
23258
- are set to '0', it is due 'On Receipt' and will become past due 24 hours
23259
- after it’s created. If an invoice is due net 30, it will become past due
23260
- at 31 days exactly.
23342
+ description: |-
23343
+ Integer paired with `Net Terms Type` and representing the number
23344
+ of days past the current date (for `net` Net Terms Type) or days after
23345
+ the last day of the current month (for `eom` Net Terms Type) that the
23346
+ invoice will become past due. For any value, an additional 24 hours is
23347
+ added to ensure the customer has the entire last day to make payment before
23348
+ becoming past due. For example:
23349
+
23350
+ If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
23351
+ If an invoice is due `net 30`, it will become past due at 31 days exactly.
23352
+ If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
23353
+
23354
+ When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
23355
+ For more information please visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
23261
23356
  minimum: 0
23262
23357
  default: 0
23358
+ net_terms_type:
23359
+ "$ref": "#/components/schemas/NetTermsTypeEnum"
23263
23360
  terms_and_conditions:
23264
23361
  type: string
23265
23362
  title: Terms and conditions
@@ -24065,8 +24162,9 @@ components:
24065
24162
  properties:
24066
24163
  account_reference:
24067
24164
  type: string
24068
- description: Used by Adyen gateways. The Shopper Reference value used
24069
- when the external token was created.
24165
+ description: Used by Adyen and Braintree gateways. For Adyen the Shopper
24166
+ Reference value used when the external token was created. For Braintree
24167
+ the PayPal PayerID is populated in the response.
24070
24168
  maxLength: 264
24071
24169
  billing_agreement_id:
24072
24170
  type: string
@@ -24798,6 +24896,19 @@ components:
24798
24896
  - at_range_start
24799
24897
  - evenly
24800
24898
  - never
24899
+ NetTermsTypeEnum:
24900
+ type: string
24901
+ title: Net Terms Type
24902
+ description: |
24903
+ Optionally supplied string that may be either `net` or `eom` (end-of-month).
24904
+ When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.
24905
+ When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.
24906
+
24907
+ This field is only available when the EOM Net Terms feature is enabled.
24908
+ enum:
24909
+ - net
24910
+ - eom
24911
+ default: net
24801
24912
  InvoiceTypeEnum:
24802
24913
  type: string
24803
24914
  enum:
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.39.0
4
+ version: 4.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-26 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -345,7 +345,7 @@ metadata:
345
345
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
346
346
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
347
347
  homepage_uri: https://github.com/recurly/recurly-client-ruby
348
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.39.0
348
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.41.0
349
349
  post_install_message:
350
350
  rdoc_options: []
351
351
  require_paths:
@@ -361,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
361
361
  - !ruby/object:Gem::Version
362
362
  version: '0'
363
363
  requirements: []
364
- rubygems_version: 3.0.3
364
+ rubygems_version: 3.0.3.1
365
365
  signing_key:
366
366
  specification_version: 4
367
367
  summary: The ruby client for Recurly's V3 API