stripe 13.5.0.pre.beta.1 → 13.6.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -34
- data/Gemfile +4 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/billing/credit_grant.rb +8 -2
- data/lib/stripe/resources/charge.rb +1 -1
- data/lib/stripe/resources/checkout/session.rb +30 -3
- data/lib/stripe/resources/identity/verification_session.rb +2 -2
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/order.rb +20 -2
- data/lib/stripe/resources/payment_intent.rb +89 -16
- data/lib/stripe/resources/product.rb +4 -0
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/reader.rb +61 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +6 -2
- data/lib/stripe/services/checkout/session_service.rb +20 -3
- data/lib/stripe/services/identity/verification_session_service.rb +1 -1
- data/lib/stripe/services/order_service.rb +16 -2
- data/lib/stripe/services/payment_intent_service.rb +75 -12
- data/lib/stripe/services/product_service.rb +4 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe/resources/account.rbi +1 -1
- data/rbi/stripe/resources/billing/credit_grant.rbi +10 -3
- data/rbi/stripe/resources/charge.rbi +1 -1
- data/rbi/stripe/resources/checkout/session.rbi +40 -8
- data/rbi/stripe/resources/identity/verification_session.rbi +2 -2
- data/rbi/stripe/resources/invoice_line_item.rbi +130 -33
- data/rbi/stripe/resources/order.rbi +26 -6
- data/rbi/stripe/resources/payment_intent.rbi +94 -28
- data/rbi/stripe/resources/product.rbi +5 -1
- data/rbi/stripe/resources/tax/calculation.rbi +1 -1
- data/rbi/stripe/resources/tax_rate.rbi +1 -1
- data/rbi/stripe/resources/terminal/reader.rbi +17 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +7 -3
- data/rbi/stripe/services/checkout/session_service.rbi +25 -8
- data/rbi/stripe/services/identity/verification_session_service.rbi +1 -1
- data/rbi/stripe/services/order_service.rbi +20 -6
- data/rbi/stripe/services/payment_intent_service.rbi +75 -24
- data/rbi/stripe/services/product_service.rbi +5 -1
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +29 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13dc406d6f0427488d90dcccfae2d6c31b9e5ae387a95dd770e44c73489ca101
|
4
|
+
data.tar.gz: 496ee7abc576c8e3f0e41187c2d42a93889a8b9a4144382f210b15e6875e80ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b38763557e4e35365b2d62012899584b7bd994a9f14ec66beb27d63399e5a66d505b277481fe7de8131717387b82e98fc4c8348705d49b5c8118da5044930fba
|
7
|
+
data.tar.gz: 15eaf7ae6327ca8d59b9bd6fc4b9cd32bc57ee42a76f8281b9bbcbb3857158d98aedc337595c3233d70199cc31dd8c714bea6b8fc8f6ce74dc28954517a2b492
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 13.6.0-beta.1 - 2025-03-18
|
4
|
+
* [#1550](https://github.com/stripe/stripe-ruby/pull/1550) Merge from stripe-ruby master
|
5
|
+
* [#1546](https://github.com/stripe/stripe-ruby/pull/1546) Beta SDK updates between Open API versions 1473 and 1505
|
6
|
+
|
7
|
+
* Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader`
|
8
|
+
* [#1545](https://github.com/stripe/stripe-ruby/pull/1545) fix ruby merge conflict for beta
|
9
|
+
|
3
10
|
## 13.5.0-beta.1 - 2025-02-07
|
4
11
|
* [#1527](https://github.com/stripe/stripe-ruby/pull/1527) Update generated code for beta
|
5
12
|
|
13
|
+
## 13.5.0 - 2025-02-24
|
14
|
+
* [#1534](https://github.com/stripe/stripe-ruby/pull/1534) Update generated code
|
15
|
+
* Fixed `Stripe::InvoiceLineItem.update` method.
|
16
|
+
* [#1536](https://github.com/stripe/stripe-ruby/pull/1536) Fix InvoiceLineItem parent class
|
17
|
+
* Fix bug where `Stripe::InvoiceLineItem` had the incorrect parent class, making it error when `update` was called
|
18
|
+
* [#1533](https://github.com/stripe/stripe-ruby/pull/1533) add codeowners file
|
6
19
|
|
7
20
|
## 13.4.1 - 2025-01-28
|
8
21
|
* [#1528](https://github.com/stripe/stripe-ruby/pull/1528) Update generated code
|
@@ -31,15 +44,15 @@
|
|
31
44
|
* Support parameter and resource fields with typed RBIs
|
32
45
|
* [#1509](https://github.com/stripe/stripe-ruby/pull/1509) (beta) Publish RBIs with gem
|
33
46
|
* [#1505](https://github.com/stripe/stripe-ruby/pull/1505) Add method parameter type classes to all resources and services
|
34
|
-
|
35
|
-
* Add method parameter classes for all resources and service methods.
|
47
|
+
|
48
|
+
* Add method parameter classes for all resources and service methods.
|
36
49
|
* These changes are NOT breaking and are purely additive. The method parameter classes are not required, we still accept hashes as well as the new `RequestParams` classes. Any additional gated parameters are still available to pass via hash. Resource fields define publicly documented fields and other deserialized fields are still accessible.
|
37
50
|
|
38
51
|
## 13.3.1 - 2025-01-13
|
39
52
|
* [#1512](https://github.com/stripe/stripe-ruby/pull/1512) Import global configuration for options not available on StripeClient options
|
40
53
|
* Fixes bug where `StripeClient` was not falling back to global options for options that are not available to be set per-client
|
41
54
|
* [#1516](https://github.com/stripe/stripe-ruby/pull/1516) ThinEvent reason and livemode
|
42
|
-
- Add `livemode` and optional `reason` fields to ThinEvent
|
55
|
+
- Add `livemode` and optional `reason` fields to ThinEvent
|
43
56
|
* [#1518](https://github.com/stripe/stripe-ruby/pull/1518) Pin ubuntu version in Test action
|
44
57
|
* [#1508](https://github.com/stripe/stripe-ruby/pull/1508) Added pull request template
|
45
58
|
|
@@ -47,15 +60,15 @@
|
|
47
60
|
* [#1500](https://github.com/stripe/stripe-ruby/pull/1500) This release changes the pinned API version to `2024-12-18.acacia`.
|
48
61
|
|
49
62
|
* [#1507](https://github.com/stripe/stripe-ruby/pull/1507) Pass requestor to all deserialized objects including lists
|
50
|
-
|
63
|
+
|
51
64
|
* Fixes bug where `StripeObject` retrieved from lists could not be used to make requests, such as `refresh`
|
52
65
|
|
53
66
|
## 13.3.0-beta.3 - 2024-12-12
|
54
67
|
* [#1499](https://github.com/stripe/stripe-ruby/pull/1499) Update generated code for beta
|
55
|
-
* Add support for `AllowRedisplay` on `Card` and `Source`
|
56
|
-
* Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `CheckoutSessionCollectedInformationTaxIdsType` and `OrderTaxDetailsTaxIdsType`
|
57
|
-
* Add support for new value `network_fallback` on enum `IssuingAuthorizationRequestHistoryReason`
|
58
|
-
* Remove support for `AmountRefunded` on `PaymentRecord`
|
68
|
+
* Add support for `AllowRedisplay` on `Card` and `Source`
|
69
|
+
* Add support for new values `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `CheckoutSessionCollectedInformationTaxIdsType` and `OrderTaxDetailsTaxIdsType`
|
70
|
+
* Add support for new value `network_fallback` on enum `IssuingAuthorizationRequestHistoryReason`
|
71
|
+
* Remove support for `AmountRefunded` on `PaymentRecord`
|
59
72
|
* Add support for `Account` on `TerminalReaderActionCollectPaymentMethod`, `TerminalReaderActionConfirmPaymentIntent`, `TerminalReaderActionProcessPaymentIntent`, and `TerminalReaderActionRefundPayment`
|
60
73
|
|
61
74
|
## 13.3.0-beta.2 - 2024-12-05
|
@@ -105,40 +118,40 @@
|
|
105
118
|
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
106
119
|
|
107
120
|
## 13.1.0-beta.1 - 2024-10-03
|
108
|
-
* [#1465](https://github.com/stripe/stripe-ruby/pull/1465) Updates to the `Preview` class
|
121
|
+
* [#1465](https://github.com/stripe/stripe-ruby/pull/1465) Updates to the `Preview` class
|
109
122
|
* Remove `Stripe::Preview`. Use `StripeClient#raw_request` instead (see below).
|
110
123
|
* Marked `Stripe.raw_request` and `Stripe.deserialize` as deprecated. Use `StripeClient#raw_request` and `StripeClient#deserialize` instead. In StripeClient, the params and opts parameters are passed as keyword arguments:
|
111
124
|
```ruby
|
112
125
|
# Before
|
113
126
|
resp = Stripe.raw_request(:post, "v1/charges", , {p1: "p1"}, {stripe_account: "acct_123"})
|
114
127
|
charge = Stripe.deserialize(resp.data)
|
115
|
-
|
128
|
+
|
116
129
|
# After
|
117
|
-
client = StripeClient.new("sk_test_123")
|
130
|
+
client = StripeClient.new("sk_test_123")
|
118
131
|
resp = client.raw_request(:post, "/v1/charges", params: {p1: "p1"}, opts: {stripe_account: "acct_123"})
|
119
132
|
charge = client.deserialize(resp.data)
|
120
133
|
```
|
121
134
|
|
122
135
|
## 13.0.2 - 2024-10-23
|
123
136
|
* [#1473](https://github.com/stripe/stripe-ruby/pull/1473) Always return the result of APIResource#refresh in APIResource.retrieve
|
124
|
-
|
137
|
+
|
125
138
|
* Fix bug where we would not return the mutated `self` object when calling `APIResource.retrieve`
|
126
139
|
|
127
140
|
## 13.0.1 - 2024-10-18
|
128
141
|
* [#1471](https://github.com/stripe/stripe-ruby/pull/1471) update object tags for meter-related classes
|
129
|
-
|
142
|
+
|
130
143
|
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
|
131
144
|
* [#1470](https://github.com/stripe/stripe-ruby/pull/1470) Cleaned up examples and added documentation
|
132
145
|
|
133
146
|
## 13.0.0 - 2024-10-01
|
134
147
|
* [#1458](https://github.com/stripe/stripe-ruby/pull/1458) Support for APIs in the new API version 2024-09-30.acacia
|
135
|
-
|
148
|
+
|
136
149
|
This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading.
|
137
|
-
|
138
|
-
### ⚠️ Breaking changes
|
139
|
-
|
150
|
+
|
151
|
+
### ⚠️ Breaking changes
|
152
|
+
|
140
153
|
Please refer to our [migration guide for v13](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13) for more information about the backwards incompatible changes.
|
141
|
-
|
154
|
+
|
142
155
|
#### ❗ `StripeClient` and related changes
|
143
156
|
* Move `StripeClient` and requestor logic to `APIRequestor`.
|
144
157
|
* `StripeClient#request` is still available, but is deprecated and will be removed. We encourage `StripeClient#raw_request` as a replacement (see other breaking changes for more detail).
|
@@ -146,21 +159,21 @@
|
|
146
159
|
* No global config: you can simultaneously use multiple clients with different configuration options (such as API keys)
|
147
160
|
* No extra API calls. All API endpoints can be accessed with a single method call. You don't have to call `retrieve` before doing an `update`.
|
148
161
|
* No static methods. Much easier mocking.
|
149
|
-
|
162
|
+
|
150
163
|
#### Other breaking changes
|
151
|
-
|
164
|
+
|
152
165
|
* Adjust default values around retries for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
|
153
166
|
- max retries: `0` -> `2`
|
154
167
|
- max retry delay (seconds) `2` -> `5`
|
155
168
|
* Remove `StripeClient#connection_manager`. This was a legacy method from years ago.
|
156
|
-
* Singleton `retrieve` method now requires `params` to be passed as the first argument. Existing calls to singleton `retrieve` method with only `opts` argument will have to be updated to account for the addition of `params` argument.
|
169
|
+
* Singleton `retrieve` method now requires `params` to be passed as the first argument. Existing calls to singleton `retrieve` method with only `opts` argument will have to be updated to account for the addition of `params` argument.
|
157
170
|
```ruby
|
158
171
|
params = { expand: ["available"] }
|
159
172
|
opts = { stripe_account: "acct_123" }
|
160
|
-
|
173
|
+
|
161
174
|
# ❌ No longer works
|
162
175
|
Stripe::Balance.retrieve(opts)
|
163
|
-
|
176
|
+
|
164
177
|
# ✅ Correct way to call retrieve method
|
165
178
|
Stripe::Balance.retrieve(params, opts)
|
166
179
|
```
|
@@ -169,7 +182,7 @@
|
|
169
182
|
```ruby
|
170
183
|
# Instead of
|
171
184
|
Stripe::APIResource.request(:get, "/v1/endpoint", params, opts)
|
172
|
-
|
185
|
+
|
173
186
|
# do
|
174
187
|
client = Stripe::StripeClient.new(...)
|
175
188
|
resp = client.raw_request(:get, "/v1/endpoint", params: params, opts: opts)
|
@@ -185,15 +198,15 @@
|
|
185
198
|
# Before
|
186
199
|
obj, api_key = StripeClient.execute_request(method, path, api_base: nil,
|
187
200
|
api_key: nil, headers: {}, params: {}, usage: [])
|
188
|
-
|
201
|
+
|
189
202
|
# is now, with base_address being one of [:api, :files, :connect, :meter_events]
|
190
|
-
|
203
|
+
|
191
204
|
obj, opts = APIRequestor.execute_request(method, path, base_address,
|
192
205
|
params: {}, opts: {}, usage: [])
|
193
206
|
puts(opts) # will output {api_key: "sk_test_123", stripe_account: "acct_123"}
|
194
207
|
```
|
195
|
-
|
196
|
-
|
208
|
+
|
209
|
+
|
197
210
|
### Additions
|
198
211
|
* Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview)
|
199
212
|
* Add method `parse_thin_event()` on the `StripeClient` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview).
|
@@ -250,7 +263,7 @@
|
|
250
263
|
|
251
264
|
* [#1433](https://github.com/stripe/stripe-ruby/pull/1433) Add usage to raw_request call
|
252
265
|
* [#1431](https://github.com/stripe/stripe-ruby/pull/1431) Add `raw_request`
|
253
|
-
|
266
|
+
|
254
267
|
- Adds the ability to make raw requests to the Stripe API, by providing an HTTP method and url. This is an alternative to using `Stripe::APIResource.request(...)` to make custom requests, which is discouraged and will be broken in a future major version.
|
255
268
|
|
256
269
|
## 12.2.0-beta.1 - 2024-07-05
|
@@ -263,8 +276,8 @@
|
|
263
276
|
* [#1425](https://github.com/stripe/stripe-ruby/pull/1425) Update generated code
|
264
277
|
* Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice`
|
265
278
|
* [#1420](https://github.com/stripe/stripe-ruby/pull/1420) Update static methods for delete/list on BankAccount/Card to throw NotImplementedError
|
266
|
-
* The below methods have been throwing `InvalidRequestError` because the urls used to make the requests have been buggy. Updating them to throw `NotImplementedError` instead just like their counterparts for update & retrieve because they cannot be implemented without the parent id.
|
267
|
-
|
279
|
+
* The below methods have been throwing `InvalidRequestError` because the urls used to make the requests have been buggy. Updating them to throw `NotImplementedError` instead just like their counterparts for update & retrieve because they cannot be implemented without the parent id.
|
280
|
+
|
268
281
|
Methods affected | Use these instead in the context of payment method | Use these in the context of external accounts
|
269
282
|
------ | ------ | ----
|
270
283
|
Stripe:: BankAccount.delete | Stripe::Customer.delete_source | Stripe::Account.delete_external_account
|
@@ -276,12 +289,12 @@
|
|
276
289
|
|
277
290
|
## 12.0.0 - 2024-06-24
|
278
291
|
* [#1418](https://github.com/stripe/stripe-ruby/pull/1418) Add missing static method for verify on BankAccount
|
279
|
-
* [#1419](https://github.com/stripe/stripe-ruby/pull/1419)
|
280
|
-
|
292
|
+
* [#1419](https://github.com/stripe/stripe-ruby/pull/1419)
|
293
|
+
|
281
294
|
This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
|
282
295
|
|
283
296
|
### Additions
|
284
|
-
|
297
|
+
|
285
298
|
* Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
|
286
299
|
|
287
300
|
## 11.7.0 - 2024-06-13
|
data/Gemfile
CHANGED
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1505
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.
|
1
|
+
13.6.0-beta.1
|
data/lib/stripe/api_version.rb
CHANGED
@@ -124,7 +124,7 @@ module Stripe
|
|
124
124
|
end
|
125
125
|
# Amount of this credit grant.
|
126
126
|
attr_accessor :amount
|
127
|
-
# Configuration specifying what this credit grant applies to.
|
127
|
+
# Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
|
128
128
|
attr_accessor :applicability_config
|
129
129
|
# The category of this credit grant.
|
130
130
|
attr_accessor :category
|
@@ -140,6 +140,8 @@ module Stripe
|
|
140
140
|
attr_accessor :metadata
|
141
141
|
# A descriptive name shown in the Dashboard.
|
142
142
|
attr_accessor :name
|
143
|
+
# The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
|
144
|
+
attr_accessor :priority
|
143
145
|
|
144
146
|
def initialize(
|
145
147
|
amount: nil,
|
@@ -150,7 +152,8 @@ module Stripe
|
|
150
152
|
expand: nil,
|
151
153
|
expires_at: nil,
|
152
154
|
metadata: nil,
|
153
|
-
name: nil
|
155
|
+
name: nil,
|
156
|
+
priority: nil
|
154
157
|
)
|
155
158
|
@amount = amount
|
156
159
|
@applicability_config = applicability_config
|
@@ -161,6 +164,7 @@ module Stripe
|
|
161
164
|
@expires_at = expires_at
|
162
165
|
@metadata = metadata
|
163
166
|
@name = name
|
167
|
+
@priority = priority
|
164
168
|
end
|
165
169
|
end
|
166
170
|
|
@@ -229,6 +233,8 @@ module Stripe
|
|
229
233
|
attr_reader :name
|
230
234
|
# String representing the object's type. Objects of the same type share the same value.
|
231
235
|
attr_reader :object
|
236
|
+
# The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
237
|
+
attr_reader :priority
|
232
238
|
# ID of the test clock this credit grant belongs to.
|
233
239
|
attr_reader :test_clock
|
234
240
|
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
@@ -1167,7 +1167,7 @@ module Stripe
|
|
1167
1167
|
attr_reader :swish
|
1168
1168
|
# Attribute for field twint
|
1169
1169
|
attr_reader :twint
|
1170
|
-
# The type of transaction-specific details of the payment method used in the payment
|
1170
|
+
# The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
|
1171
1171
|
# An additional hash is included on `payment_method_details` with a name matching this value.
|
1172
1172
|
# It contains information specific to the payment method.
|
1173
1173
|
attr_reader :type
|
@@ -354,6 +354,8 @@ module Stripe
|
|
354
354
|
#
|
355
355
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
356
356
|
attr_reader :setup_future_usage
|
357
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
358
|
+
attr_reader :target_date
|
357
359
|
# Bank account verification method.
|
358
360
|
attr_reader :verification_method
|
359
361
|
end
|
@@ -411,6 +413,8 @@ module Stripe
|
|
411
413
|
#
|
412
414
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
413
415
|
attr_reader :setup_future_usage
|
416
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
417
|
+
attr_reader :target_date
|
414
418
|
end
|
415
419
|
|
416
420
|
class BacsDebit < Stripe::StripeObject
|
@@ -428,6 +432,8 @@ module Stripe
|
|
428
432
|
#
|
429
433
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
430
434
|
attr_reader :setup_future_usage
|
435
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
436
|
+
attr_reader :target_date
|
431
437
|
end
|
432
438
|
|
433
439
|
class Bancontact < Stripe::StripeObject
|
@@ -801,6 +807,8 @@ module Stripe
|
|
801
807
|
#
|
802
808
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
803
809
|
attr_reader :setup_future_usage
|
810
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
811
|
+
attr_reader :target_date
|
804
812
|
end
|
805
813
|
|
806
814
|
class Sofort < Stripe::StripeObject
|
@@ -853,6 +861,8 @@ module Stripe
|
|
853
861
|
#
|
854
862
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
855
863
|
attr_reader :setup_future_usage
|
864
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
865
|
+
attr_reader :target_date
|
856
866
|
# Bank account verification method.
|
857
867
|
attr_reader :verification_method
|
858
868
|
end
|
@@ -1818,6 +1828,8 @@ module Stripe
|
|
1818
1828
|
#
|
1819
1829
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
1820
1830
|
attr_accessor :setup_future_usage
|
1831
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
1832
|
+
attr_accessor :target_date
|
1821
1833
|
# Verification method for the intent
|
1822
1834
|
attr_accessor :verification_method
|
1823
1835
|
|
@@ -1825,11 +1837,13 @@ module Stripe
|
|
1825
1837
|
currency: nil,
|
1826
1838
|
mandate_options: nil,
|
1827
1839
|
setup_future_usage: nil,
|
1840
|
+
target_date: nil,
|
1828
1841
|
verification_method: nil
|
1829
1842
|
)
|
1830
1843
|
@currency = currency
|
1831
1844
|
@mandate_options = mandate_options
|
1832
1845
|
@setup_future_usage = setup_future_usage
|
1846
|
+
@target_date = target_date
|
1833
1847
|
@verification_method = verification_method
|
1834
1848
|
end
|
1835
1849
|
end
|
@@ -1903,9 +1917,12 @@ module Stripe
|
|
1903
1917
|
#
|
1904
1918
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
1905
1919
|
attr_accessor :setup_future_usage
|
1920
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
1921
|
+
attr_accessor :target_date
|
1906
1922
|
|
1907
|
-
def initialize(setup_future_usage: nil)
|
1923
|
+
def initialize(setup_future_usage: nil, target_date: nil)
|
1908
1924
|
@setup_future_usage = setup_future_usage
|
1925
|
+
@target_date = target_date
|
1909
1926
|
end
|
1910
1927
|
end
|
1911
1928
|
|
@@ -1928,10 +1945,13 @@ module Stripe
|
|
1928
1945
|
#
|
1929
1946
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
1930
1947
|
attr_accessor :setup_future_usage
|
1948
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
1949
|
+
attr_accessor :target_date
|
1931
1950
|
|
1932
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
1951
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
1933
1952
|
@mandate_options = mandate_options
|
1934
1953
|
@setup_future_usage = setup_future_usage
|
1954
|
+
@target_date = target_date
|
1935
1955
|
end
|
1936
1956
|
end
|
1937
1957
|
|
@@ -2520,10 +2540,13 @@ module Stripe
|
|
2520
2540
|
#
|
2521
2541
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
2522
2542
|
attr_accessor :setup_future_usage
|
2543
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
2544
|
+
attr_accessor :target_date
|
2523
2545
|
|
2524
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
2546
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
2525
2547
|
@mandate_options = mandate_options
|
2526
2548
|
@setup_future_usage = setup_future_usage
|
2549
|
+
@target_date = target_date
|
2527
2550
|
end
|
2528
2551
|
end
|
2529
2552
|
|
@@ -2573,16 +2596,20 @@ module Stripe
|
|
2573
2596
|
#
|
2574
2597
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
2575
2598
|
attr_accessor :setup_future_usage
|
2599
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
2600
|
+
attr_accessor :target_date
|
2576
2601
|
# Verification method for the intent
|
2577
2602
|
attr_accessor :verification_method
|
2578
2603
|
|
2579
2604
|
def initialize(
|
2580
2605
|
financial_connections: nil,
|
2581
2606
|
setup_future_usage: nil,
|
2607
|
+
target_date: nil,
|
2582
2608
|
verification_method: nil
|
2583
2609
|
)
|
2584
2610
|
@financial_connections = financial_connections
|
2585
2611
|
@setup_future_usage = setup_future_usage
|
2612
|
+
@target_date = target_date
|
2586
2613
|
@verification_method = verification_method
|
2587
2614
|
end
|
2588
2615
|
end
|
@@ -227,7 +227,7 @@ module Stripe
|
|
227
227
|
attr_accessor :options
|
228
228
|
# Details provided about the user being verified. These details may be shown to the user.
|
229
229
|
attr_accessor :provided_details
|
230
|
-
#
|
230
|
+
# Customer ID
|
231
231
|
attr_accessor :related_customer
|
232
232
|
# The URL that the user will be redirected to upon completing the verification flow.
|
233
233
|
attr_accessor :return_url
|
@@ -372,7 +372,7 @@ module Stripe
|
|
372
372
|
attr_reader :provided_details
|
373
373
|
# Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
|
374
374
|
attr_reader :redaction
|
375
|
-
#
|
375
|
+
# Customer ID
|
376
376
|
attr_reader :related_customer
|
377
377
|
# Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
|
378
378
|
attr_reader :status
|
@@ -5,7 +5,7 @@ module Stripe
|
|
5
5
|
# Invoice Line Items represent the individual lines within an [invoice](https://stripe.com/docs/api/invoices) and only exist within the context of an invoice.
|
6
6
|
#
|
7
7
|
# Each line item is backed by either an [invoice item](https://stripe.com/docs/api/invoiceitems) or a [subscription item](https://stripe.com/docs/api/subscription_items).
|
8
|
-
class InvoiceLineItem <
|
8
|
+
class InvoiceLineItem < APIResource
|
9
9
|
include Stripe::APIOperations::Save
|
10
10
|
|
11
11
|
OBJECT_NAME = "line_item"
|
@@ -93,6 +93,8 @@ module Stripe
|
|
93
93
|
#
|
94
94
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
95
95
|
attr_reader :setup_future_usage
|
96
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
97
|
+
attr_reader :target_date
|
96
98
|
# Bank account verification method.
|
97
99
|
attr_reader :verification_method
|
98
100
|
end
|
@@ -305,6 +307,8 @@ module Stripe
|
|
305
307
|
#
|
306
308
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
307
309
|
attr_reader :setup_future_usage
|
310
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
311
|
+
attr_reader :target_date
|
308
312
|
end
|
309
313
|
|
310
314
|
class Sofort < Stripe::StripeObject
|
@@ -804,16 +808,20 @@ module Stripe
|
|
804
808
|
#
|
805
809
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
806
810
|
attr_accessor :setup_future_usage
|
811
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
812
|
+
attr_accessor :target_date
|
807
813
|
# Bank account verification method.
|
808
814
|
attr_accessor :verification_method
|
809
815
|
|
810
816
|
def initialize(
|
811
817
|
mandate_options: nil,
|
812
818
|
setup_future_usage: nil,
|
819
|
+
target_date: nil,
|
813
820
|
verification_method: nil
|
814
821
|
)
|
815
822
|
@mandate_options = mandate_options
|
816
823
|
@setup_future_usage = setup_future_usage
|
824
|
+
@target_date = target_date
|
817
825
|
@verification_method = verification_method
|
818
826
|
end
|
819
827
|
end
|
@@ -1173,10 +1181,13 @@ module Stripe
|
|
1173
1181
|
#
|
1174
1182
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
1175
1183
|
attr_accessor :setup_future_usage
|
1184
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
1185
|
+
attr_accessor :target_date
|
1176
1186
|
|
1177
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
1187
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
1178
1188
|
@mandate_options = mandate_options
|
1179
1189
|
@setup_future_usage = setup_future_usage
|
1190
|
+
@target_date = target_date
|
1180
1191
|
end
|
1181
1192
|
end
|
1182
1193
|
|
@@ -1870,16 +1881,20 @@ module Stripe
|
|
1870
1881
|
#
|
1871
1882
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
1872
1883
|
attr_accessor :setup_future_usage
|
1884
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
1885
|
+
attr_accessor :target_date
|
1873
1886
|
# Bank account verification method.
|
1874
1887
|
attr_accessor :verification_method
|
1875
1888
|
|
1876
1889
|
def initialize(
|
1877
1890
|
mandate_options: nil,
|
1878
1891
|
setup_future_usage: nil,
|
1892
|
+
target_date: nil,
|
1879
1893
|
verification_method: nil
|
1880
1894
|
)
|
1881
1895
|
@mandate_options = mandate_options
|
1882
1896
|
@setup_future_usage = setup_future_usage
|
1897
|
+
@target_date = target_date
|
1883
1898
|
@verification_method = verification_method
|
1884
1899
|
end
|
1885
1900
|
end
|
@@ -2239,10 +2254,13 @@ module Stripe
|
|
2239
2254
|
#
|
2240
2255
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2241
2256
|
attr_accessor :setup_future_usage
|
2257
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
2258
|
+
attr_accessor :target_date
|
2242
2259
|
|
2243
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
2260
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
2244
2261
|
@mandate_options = mandate_options
|
2245
2262
|
@setup_future_usage = setup_future_usage
|
2263
|
+
@target_date = target_date
|
2246
2264
|
end
|
2247
2265
|
end
|
2248
2266
|
|