stripe 15.5.0.pre.beta.2 → 15.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/API_VERSION +1 -1
- data/CHANGELOG.md +53 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +18 -18
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +23 -23
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/account_session.rb +94 -13
- data/lib/stripe/resources/balance.rb +2 -7
- data/lib/stripe/resources/balance_settings.rb +72 -65
- data/lib/stripe/resources/billing/meter.rb +2 -2
- data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
- data/lib/stripe/resources/charge.rb +40 -5
- data/lib/stripe/resources/checkout/session.rb +109 -5
- data/lib/stripe/resources/credit_note.rb +3 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/invoice.rb +44 -1
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/issuing/card.rb +8 -0
- data/lib/stripe/resources/mandate.rb +65 -1
- data/lib/stripe/resources/payment_attempt_record.rb +90 -10
- data/lib/stripe/resources/payment_intent.rb +182 -4
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/payment_record.rb +111 -14
- data/lib/stripe/resources/promotion_code.rb +5 -2
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +4 -1
- data/lib/stripe/resources/setup_intent.rb +194 -1
- data/lib/stripe/resources/subscription.rb +107 -9
- data/lib/stripe/resources/subscription_schedule.rb +124 -2
- data/lib/stripe/resources/terminal/configuration.rb +82 -0
- data/lib/stripe/resources/terminal/reader.rb +22 -0
- data/lib/stripe/resources/v2/core/account.rb +8 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/services/account_session_service.rb +64 -13
- data/lib/stripe/services/balance_settings_service.rb +44 -41
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
- data/lib/stripe/services/checkout/session_service.rb +86 -4
- data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/customer_service.rb +4 -4
- data/lib/stripe/services/file_link_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +43 -0
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
- data/lib/stripe/services/payment_intent_service.rb +157 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +25 -5
- data/lib/stripe/services/quote_service.rb +4 -4
- data/lib/stripe/services/setup_intent_service.rb +153 -0
- data/lib/stripe/services/subscription_schedule_service.rb +100 -2
- data/lib/stripe/services/subscription_service.rb +107 -9
- data/lib/stripe/services/terminal/configuration_service.rb +64 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +5 -5
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +16 -2
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
- data/lib/stripe/services/v2/money_management_service.rb +3 -3
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +142341 -140132
- metadata +2 -2
@@ -179,7 +179,7 @@ module Stripe
|
|
179
179
|
attr_reader :message
|
180
180
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
181
181
|
attr_reader :network_advice_code
|
182
|
-
# For
|
182
|
+
# For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
183
183
|
attr_reader :network_decline_code
|
184
184
|
# If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
|
185
185
|
attr_reader :param
|
@@ -3467,6 +3467,41 @@ module Stripe
|
|
3467
3467
|
end
|
3468
3468
|
end
|
3469
3469
|
|
3470
|
+
class Period < Stripe::RequestParams
|
3471
|
+
class End < Stripe::RequestParams
|
3472
|
+
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
3473
|
+
attr_accessor :timestamp
|
3474
|
+
# Select how to calculate the end of the invoice item period.
|
3475
|
+
attr_accessor :type
|
3476
|
+
|
3477
|
+
def initialize(timestamp: nil, type: nil)
|
3478
|
+
@timestamp = timestamp
|
3479
|
+
@type = type
|
3480
|
+
end
|
3481
|
+
end
|
3482
|
+
|
3483
|
+
class Start < Stripe::RequestParams
|
3484
|
+
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
3485
|
+
attr_accessor :timestamp
|
3486
|
+
# Select how to calculate the start of the invoice item period.
|
3487
|
+
attr_accessor :type
|
3488
|
+
|
3489
|
+
def initialize(timestamp: nil, type: nil)
|
3490
|
+
@timestamp = timestamp
|
3491
|
+
@type = type
|
3492
|
+
end
|
3493
|
+
end
|
3494
|
+
# End of the invoice item period.
|
3495
|
+
attr_accessor :end
|
3496
|
+
# Start of the invoice item period.
|
3497
|
+
attr_accessor :start
|
3498
|
+
|
3499
|
+
def initialize(end_: nil, start: nil)
|
3500
|
+
@end = end_
|
3501
|
+
@start = start
|
3502
|
+
end
|
3503
|
+
end
|
3504
|
+
|
3470
3505
|
class PriceData < Stripe::RequestParams
|
3471
3506
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
3472
3507
|
attr_accessor :currency
|
@@ -3495,6 +3530,10 @@ module Stripe
|
|
3495
3530
|
end
|
3496
3531
|
# The coupons to redeem into discounts for the item.
|
3497
3532
|
attr_accessor :discounts
|
3533
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
3534
|
+
attr_accessor :metadata
|
3535
|
+
# The period associated with this invoice item. Defaults to the period of the underlying subscription that surrounds the start of the phase.
|
3536
|
+
attr_accessor :period
|
3498
3537
|
# The ID of the price object. One of `price` or `price_data` is required.
|
3499
3538
|
attr_accessor :price
|
3500
3539
|
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
@@ -3506,12 +3545,16 @@ module Stripe
|
|
3506
3545
|
|
3507
3546
|
def initialize(
|
3508
3547
|
discounts: nil,
|
3548
|
+
metadata: nil,
|
3549
|
+
period: nil,
|
3509
3550
|
price: nil,
|
3510
3551
|
price_data: nil,
|
3511
3552
|
quantity: nil,
|
3512
3553
|
tax_rates: nil
|
3513
3554
|
)
|
3514
3555
|
@discounts = discounts
|
3556
|
+
@metadata = metadata
|
3557
|
+
@period = period
|
3515
3558
|
@price = price
|
3516
3559
|
@price_data = price_data
|
3517
3560
|
@quantity = quantity
|
@@ -40,7 +40,7 @@ module Stripe
|
|
40
40
|
class Payment < Stripe::RequestParams
|
41
41
|
# Only return invoice payments associated by this payment intent ID.
|
42
42
|
attr_accessor :payment_intent
|
43
|
-
#
|
43
|
+
# Only return invoice payments associated by this payment record ID.
|
44
44
|
attr_accessor :payment_record
|
45
45
|
# Only return invoice payments associated by this payment type.
|
46
46
|
attr_accessor :type
|
@@ -343,6 +343,10 @@ module Stripe
|
|
343
343
|
attr_accessor :cardholder
|
344
344
|
# The currency for the card.
|
345
345
|
attr_accessor :currency
|
346
|
+
# The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
|
347
|
+
attr_accessor :exp_month
|
348
|
+
# The desired 4-digit expiration year for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
|
349
|
+
attr_accessor :exp_year
|
346
350
|
# Specifies which fields in the response should be expanded.
|
347
351
|
attr_accessor :expand
|
348
352
|
# The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
|
@@ -371,6 +375,8 @@ module Stripe
|
|
371
375
|
def initialize(
|
372
376
|
cardholder: nil,
|
373
377
|
currency: nil,
|
378
|
+
exp_month: nil,
|
379
|
+
exp_year: nil,
|
374
380
|
expand: nil,
|
375
381
|
financial_account: nil,
|
376
382
|
metadata: nil,
|
@@ -386,6 +392,8 @@ module Stripe
|
|
386
392
|
)
|
387
393
|
@cardholder = cardholder
|
388
394
|
@currency = currency
|
395
|
+
@exp_month = exp_month
|
396
|
+
@exp_year = exp_year
|
389
397
|
@expand = expand
|
390
398
|
@financial_account = financial_account
|
391
399
|
@metadata = metadata
|
@@ -4,6 +4,8 @@
|
|
4
4
|
module Stripe
|
5
5
|
# A Mandate is a record of the permission that your customer gives you to debit their payment method.
|
6
6
|
class Mandate < APIResource
|
7
|
+
extend Stripe::APIOperations::List
|
8
|
+
|
7
9
|
OBJECT_NAME = "mandate"
|
8
10
|
def self.object_name
|
9
11
|
"mandate"
|
@@ -28,7 +30,12 @@ module Stripe
|
|
28
30
|
attr_reader :type
|
29
31
|
end
|
30
32
|
|
31
|
-
class MultiUse < Stripe::StripeObject
|
33
|
+
class MultiUse < Stripe::StripeObject
|
34
|
+
# The amount of the payment on a multi use mandate.
|
35
|
+
attr_reader :amount
|
36
|
+
# The currency of the payment on a multi use mandate.
|
37
|
+
attr_reader :currency
|
38
|
+
end
|
32
39
|
|
33
40
|
class PaymentMethodDetails < Stripe::StripeObject
|
34
41
|
class AcssDebit < Stripe::StripeObject
|
@@ -98,6 +105,21 @@ module Stripe
|
|
98
105
|
attr_reader :start_date
|
99
106
|
end
|
100
107
|
|
108
|
+
class Pix < Stripe::StripeObject
|
109
|
+
# Determines if the amount includes the IOF tax.
|
110
|
+
attr_reader :amount_includes_iof
|
111
|
+
# Type of amount.
|
112
|
+
attr_reader :amount_type
|
113
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
114
|
+
attr_reader :end_date
|
115
|
+
# Schedule at which the future payments will be charged.
|
116
|
+
attr_reader :payment_schedule
|
117
|
+
# Subscription name displayed to buyers in their bank app.
|
118
|
+
attr_reader :reference
|
119
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
120
|
+
attr_reader :start_date
|
121
|
+
end
|
122
|
+
|
101
123
|
class RevolutPay < Stripe::StripeObject; end
|
102
124
|
|
103
125
|
class SepaDebit < Stripe::StripeObject
|
@@ -139,6 +161,8 @@ module Stripe
|
|
139
161
|
attr_reader :paypal
|
140
162
|
# Attribute for field payto
|
141
163
|
attr_reader :payto
|
164
|
+
# Attribute for field pix
|
165
|
+
attr_reader :pix
|
142
166
|
# Attribute for field revolut_pay
|
143
167
|
attr_reader :revolut_pay
|
144
168
|
# Attribute for field sepa_debit
|
@@ -155,6 +179,41 @@ module Stripe
|
|
155
179
|
# The currency of the payment on a single use mandate.
|
156
180
|
attr_reader :currency
|
157
181
|
end
|
182
|
+
|
183
|
+
class ListParams < Stripe::RequestParams
|
184
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
185
|
+
attr_accessor :ending_before
|
186
|
+
# Specifies which fields in the response should be expanded.
|
187
|
+
attr_accessor :expand
|
188
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
189
|
+
attr_accessor :limit
|
190
|
+
# The Stripe account ID that the mandates are intended for. Learn more about the [use case for connected accounts payments](https://stripe.com/docs/payments/connected-accounts).
|
191
|
+
attr_accessor :on_behalf_of
|
192
|
+
# Attribute for param field payment_method
|
193
|
+
attr_accessor :payment_method
|
194
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
195
|
+
attr_accessor :starting_after
|
196
|
+
# The status of the mandates to retrieve. Status indicates whether or not you can use it to initiate a payment, and can have a value of `active`, `pending`, or `inactive`.
|
197
|
+
attr_accessor :status
|
198
|
+
|
199
|
+
def initialize(
|
200
|
+
ending_before: nil,
|
201
|
+
expand: nil,
|
202
|
+
limit: nil,
|
203
|
+
on_behalf_of: nil,
|
204
|
+
payment_method: nil,
|
205
|
+
starting_after: nil,
|
206
|
+
status: nil
|
207
|
+
)
|
208
|
+
@ending_before = ending_before
|
209
|
+
@expand = expand
|
210
|
+
@limit = limit
|
211
|
+
@on_behalf_of = on_behalf_of
|
212
|
+
@payment_method = payment_method
|
213
|
+
@starting_after = starting_after
|
214
|
+
@status = status
|
215
|
+
end
|
216
|
+
end
|
158
217
|
# Attribute for field customer_acceptance
|
159
218
|
attr_reader :customer_acceptance
|
160
219
|
# Unique identifier for the object.
|
@@ -177,5 +236,10 @@ module Stripe
|
|
177
236
|
attr_reader :status
|
178
237
|
# The type of the mandate.
|
179
238
|
attr_reader :type
|
239
|
+
|
240
|
+
# Retrieves a list of Mandates for a given PaymentMethod.
|
241
|
+
def self.list(params = {}, opts = {})
|
242
|
+
request_stripe_object(method: :get, path: "/v1/mandates", params: params, opts: opts)
|
243
|
+
end
|
180
244
|
end
|
181
245
|
end
|
@@ -14,31 +14,52 @@ module Stripe
|
|
14
14
|
"payment_attempt_record"
|
15
15
|
end
|
16
16
|
|
17
|
+
class Amount < Stripe::StripeObject
|
18
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
19
|
+
attr_reader :currency
|
20
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
21
|
+
attr_reader :value
|
22
|
+
end
|
23
|
+
|
24
|
+
class AmountAuthorized < Stripe::StripeObject
|
25
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
26
|
+
attr_reader :currency
|
27
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
28
|
+
attr_reader :value
|
29
|
+
end
|
30
|
+
|
17
31
|
class AmountCanceled < Stripe::StripeObject
|
18
32
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
19
33
|
attr_reader :currency
|
20
|
-
# A positive integer representing the amount in the [
|
34
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
21
35
|
attr_reader :value
|
22
36
|
end
|
23
37
|
|
24
38
|
class AmountFailed < Stripe::StripeObject
|
25
39
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
26
40
|
attr_reader :currency
|
27
|
-
# A positive integer representing the amount in the [
|
41
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
28
42
|
attr_reader :value
|
29
43
|
end
|
30
44
|
|
31
45
|
class AmountGuaranteed < Stripe::StripeObject
|
32
46
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
33
47
|
attr_reader :currency
|
34
|
-
# A positive integer representing the amount in the [
|
48
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
49
|
+
attr_reader :value
|
50
|
+
end
|
51
|
+
|
52
|
+
class AmountRefunded < Stripe::StripeObject
|
53
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
54
|
+
attr_reader :currency
|
55
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
35
56
|
attr_reader :value
|
36
57
|
end
|
37
58
|
|
38
59
|
class AmountRequested < Stripe::StripeObject
|
39
60
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
40
61
|
attr_reader :currency
|
41
|
-
# A positive integer representing the amount in the [
|
62
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
42
63
|
attr_reader :value
|
43
64
|
end
|
44
65
|
|
@@ -120,7 +141,16 @@ module Stripe
|
|
120
141
|
attr_reader :transaction_id
|
121
142
|
end
|
122
143
|
|
123
|
-
class Alma < Stripe::StripeObject
|
144
|
+
class Alma < Stripe::StripeObject
|
145
|
+
class Installments < Stripe::StripeObject
|
146
|
+
# The number of installments.
|
147
|
+
attr_reader :count
|
148
|
+
end
|
149
|
+
# Attribute for field installments
|
150
|
+
attr_reader :installments
|
151
|
+
# The Alma transaction ID associated with this payment.
|
152
|
+
attr_reader :transaction_id
|
153
|
+
end
|
124
154
|
|
125
155
|
class AmazonPay < Stripe::StripeObject
|
126
156
|
class Funding < Stripe::StripeObject
|
@@ -147,6 +177,8 @@ module Stripe
|
|
147
177
|
end
|
148
178
|
# Attribute for field funding
|
149
179
|
attr_reader :funding
|
180
|
+
# The Amazon Pay transaction ID associated with this payment.
|
181
|
+
attr_reader :transaction_id
|
150
182
|
end
|
151
183
|
|
152
184
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -192,7 +224,10 @@ module Stripe
|
|
192
224
|
attr_reader :verified_name
|
193
225
|
end
|
194
226
|
|
195
|
-
class Billie < Stripe::StripeObject
|
227
|
+
class Billie < Stripe::StripeObject
|
228
|
+
# The Billie transaction ID associated with this payment.
|
229
|
+
attr_reader :transaction_id
|
230
|
+
end
|
196
231
|
|
197
232
|
class BillingDetails < Stripe::StripeObject
|
198
233
|
class Address < Stripe::StripeObject
|
@@ -533,6 +568,8 @@ module Stripe
|
|
533
568
|
class KakaoPay < Stripe::StripeObject
|
534
569
|
# A unique identifier for the buyer as determined by the local payment processor.
|
535
570
|
attr_reader :buyer_id
|
571
|
+
# The Kakao Pay transaction ID associated with this payment.
|
572
|
+
attr_reader :transaction_id
|
536
573
|
end
|
537
574
|
|
538
575
|
class Klarna < Stripe::StripeObject
|
@@ -570,6 +607,8 @@ module Stripe
|
|
570
607
|
attr_reader :buyer_id
|
571
608
|
# The last four digits of the card. This may not be present for American Express cards.
|
572
609
|
attr_reader :last4
|
610
|
+
# The Korean Card transaction ID associated with this payment.
|
611
|
+
attr_reader :transaction_id
|
573
612
|
end
|
574
613
|
|
575
614
|
class Link < Stripe::StripeObject
|
@@ -607,6 +646,8 @@ module Stripe
|
|
607
646
|
class NaverPay < Stripe::StripeObject
|
608
647
|
# A unique identifier for the buyer as determined by the local payment processor.
|
609
648
|
attr_reader :buyer_id
|
649
|
+
# The Naver Pay transaction ID associated with this payment.
|
650
|
+
attr_reader :transaction_id
|
610
651
|
end
|
611
652
|
|
612
653
|
class NzBankAccount < Stripe::StripeObject
|
@@ -645,9 +686,15 @@ module Stripe
|
|
645
686
|
class Payco < Stripe::StripeObject
|
646
687
|
# A unique identifier for the buyer as determined by the local payment processor.
|
647
688
|
attr_reader :buyer_id
|
689
|
+
# The Payco transaction ID associated with this payment.
|
690
|
+
attr_reader :transaction_id
|
648
691
|
end
|
649
692
|
|
650
693
|
class Paynow < Stripe::StripeObject
|
694
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
695
|
+
attr_reader :location
|
696
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
697
|
+
attr_reader :reader
|
651
698
|
# Reference number associated with this PayNow payment
|
652
699
|
attr_reader :reference
|
653
700
|
end
|
@@ -733,6 +780,8 @@ module Stripe
|
|
733
780
|
class Pix < Stripe::StripeObject
|
734
781
|
# Unique transaction id generated by BCB
|
735
782
|
attr_reader :bank_transaction_id
|
783
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
784
|
+
attr_reader :mandate
|
736
785
|
end
|
737
786
|
|
738
787
|
class Promptpay < Stripe::StripeObject
|
@@ -768,14 +817,21 @@ module Stripe
|
|
768
817
|
end
|
769
818
|
# Attribute for field funding
|
770
819
|
attr_reader :funding
|
820
|
+
# The Revolut Pay transaction ID associated with this payment.
|
821
|
+
attr_reader :transaction_id
|
771
822
|
end
|
772
823
|
|
773
824
|
class SamsungPay < Stripe::StripeObject
|
774
825
|
# A unique identifier for the buyer as determined by the local payment processor.
|
775
826
|
attr_reader :buyer_id
|
827
|
+
# The Samsung Pay transaction ID associated with this payment.
|
828
|
+
attr_reader :transaction_id
|
776
829
|
end
|
777
830
|
|
778
|
-
class Satispay < Stripe::StripeObject
|
831
|
+
class Satispay < Stripe::StripeObject
|
832
|
+
# The Satispay transaction ID associated with this payment.
|
833
|
+
attr_reader :transaction_id
|
834
|
+
end
|
779
835
|
|
780
836
|
class SepaCreditTransfer < Stripe::StripeObject
|
781
837
|
# Name of the bank associated with the bank account.
|
@@ -1019,6 +1075,19 @@ module Stripe
|
|
1019
1075
|
attr_reader :zip
|
1020
1076
|
end
|
1021
1077
|
|
1078
|
+
class ProcessorDetails < Stripe::StripeObject
|
1079
|
+
class Custom < Stripe::StripeObject
|
1080
|
+
# An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
1081
|
+
attr_reader :payment_reference
|
1082
|
+
end
|
1083
|
+
# Custom processors represent payment processors not modeled directly in
|
1084
|
+
# the Stripe API. This resource consists of details about the custom processor
|
1085
|
+
# used for this payment attempt.
|
1086
|
+
attr_reader :custom
|
1087
|
+
# The processor used for this payment attempt.
|
1088
|
+
attr_reader :type
|
1089
|
+
end
|
1090
|
+
|
1022
1091
|
class ShippingDetails < Stripe::StripeObject
|
1023
1092
|
class Address < Stripe::StripeObject
|
1024
1093
|
# City, district, suburb, town, or village.
|
@@ -1045,22 +1114,33 @@ module Stripe
|
|
1045
1114
|
class ListParams < Stripe::RequestParams
|
1046
1115
|
# Specifies which fields in the response should be expanded.
|
1047
1116
|
attr_accessor :expand
|
1117
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1118
|
+
attr_accessor :limit
|
1048
1119
|
# The ID of the Payment Record.
|
1049
1120
|
attr_accessor :payment_record
|
1050
1121
|
|
1051
|
-
def initialize(expand: nil, payment_record: nil)
|
1122
|
+
def initialize(expand: nil, limit: nil, payment_record: nil)
|
1052
1123
|
@expand = expand
|
1124
|
+
@limit = limit
|
1053
1125
|
@payment_record = payment_record
|
1054
1126
|
end
|
1055
1127
|
end
|
1056
1128
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1129
|
+
attr_reader :amount
|
1130
|
+
# A representation of an amount of money, consisting of an amount and a currency.
|
1131
|
+
attr_reader :amount_authorized
|
1132
|
+
# A representation of an amount of money, consisting of an amount and a currency.
|
1057
1133
|
attr_reader :amount_canceled
|
1058
1134
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1059
1135
|
attr_reader :amount_failed
|
1060
1136
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1061
1137
|
attr_reader :amount_guaranteed
|
1062
1138
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1139
|
+
attr_reader :amount_refunded
|
1140
|
+
# A representation of an amount of money, consisting of an amount and a currency.
|
1063
1141
|
attr_reader :amount_requested
|
1142
|
+
# ID of the Connect application that created the PaymentAttemptRecord.
|
1143
|
+
attr_reader :application
|
1064
1144
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
1065
1145
|
attr_reader :created
|
1066
1146
|
# Customer information for this payment.
|
@@ -1081,8 +1161,8 @@ module Stripe
|
|
1081
1161
|
attr_reader :payment_method_details
|
1082
1162
|
# ID of the Payment Record this Payment Attempt Record belongs to.
|
1083
1163
|
attr_reader :payment_record
|
1084
|
-
#
|
1085
|
-
attr_reader :
|
1164
|
+
# Processor information associated with this payment.
|
1165
|
+
attr_reader :processor_details
|
1086
1166
|
# Indicates who reported the payment.
|
1087
1167
|
attr_reader :reported_by
|
1088
1168
|
# Shipping information for this payment.
|