stripe 19.4.0.pre.alpha.1 → 19.4.0.pre.alpha.2
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/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/account_create_params.rb +1 -1
- data/lib/stripe/params/account_update_params.rb +1 -1
- data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +1 -1
- data/lib/stripe/params/checkout/session_create_params.rb +55 -3
- data/lib/stripe/params/confirmation_token_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/crypto/customer_consumer_wallet_list_params.rb +24 -0
- data/lib/stripe/params/crypto/customer_payment_token_list_params.rb +24 -0
- data/lib/stripe/params/crypto/customer_retrieve_params.rb +15 -0
- data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +56 -0
- data/lib/stripe/params/crypto/onramp_session_create_params.rb +122 -0
- data/lib/stripe/params/crypto/onramp_session_list_params.rb +62 -0
- data/lib/stripe/params/crypto/onramp_session_quote_params.rb +15 -0
- data/lib/stripe/params/crypto/onramp_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/crypto/onramp_transaction_limits_retrieve_params.rb +33 -0
- data/lib/stripe/params/dispute_update_params.rb +17 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +52 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -1
- data/lib/stripe/params/order_create_params.rb +1 -1
- data/lib/stripe/params/order_update_params.rb +1 -1
- data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +38 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +4 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +51 -3
- data/lib/stripe/params/payment_intent_create_params.rb +51 -3
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +51 -3
- data/lib/stripe/params/payment_link_create_params.rb +1 -1
- data/lib/stripe/params/payment_method_create_params.rb +1 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +38 -0
- data/lib/stripe/params/payment_record_report_refund_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1 -1
- data/lib/stripe/params/setup_intent_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_update_params.rb +1 -1
- data/lib/stripe/params/subscription_create_params.rb +28 -1
- data/lib/stripe/params/subscription_pause_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +29 -2
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +1 -1
- data/lib/stripe/params/topup_create_params.rb +24 -0
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +18 -1
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +7 -1
- data/lib/stripe/params.rb +21 -0
- data/lib/stripe/resources/balance_transaction.rb +3 -3
- data/lib/stripe/resources/capital/financing_offer.rb +2 -0
- data/lib/stripe/resources/capital/financing_summary.rb +2 -0
- data/lib/stripe/resources/card.rb +16 -1
- data/lib/stripe/resources/charge.rb +30 -0
- data/lib/stripe/resources/checkout/session.rb +155 -1
- data/lib/stripe/resources/confirmation_token.rb +9 -0
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/crypto/customer.rb +73 -0
- data/lib/stripe/resources/crypto/customer_consumer_wallet.rb +35 -0
- data/lib/stripe/resources/crypto/customer_payment_token.rb +84 -0
- data/lib/stripe/resources/crypto/onramp_session.rb +218 -0
- data/lib/stripe/resources/crypto/onramp_transaction_limits.rb +33 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/dispute.rb +32 -0
- data/lib/stripe/resources/financial_connections/account.rb +20 -1
- data/lib/stripe/resources/financial_connections/authorization.rb +18 -1
- data/lib/stripe/resources/gift_card_operation.rb +1 -14
- data/lib/stripe/resources/issuing/authorization.rb +20 -0
- data/lib/stripe/resources/issuing/card.rb +18 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -0
- data/lib/stripe/resources/issuing/token.rb +2 -0
- data/lib/stripe/resources/issuing/transaction.rb +18 -0
- data/lib/stripe/resources/order.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +8 -2
- data/lib/stripe/resources/payment_intent.rb +65 -1
- data/lib/stripe/resources/payment_method.rb +25 -0
- data/lib/stripe/resources/payment_record.rb +8 -2
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/reserve/hold.rb +18 -1
- data/lib/stripe/resources/setup_attempt.rb +16 -0
- data/lib/stripe/resources/setup_intent.rb +16 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +9 -0
- data/lib/stripe/resources/source.rb +16 -0
- data/lib/stripe/resources/subscription.rb +24 -3
- data/lib/stripe/resources/tax_fund.rb +16 -16
- data/lib/stripe/resources/token.rb +15 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +44 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +8 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +8 -0
- data/lib/stripe/resources.rb +13 -0
- data/lib/stripe/services/balance_transaction_service.rb +2 -2
- data/lib/stripe/services/credit_note_service.rb +2 -0
- data/lib/stripe/services/crypto/customer_consumer_wallet_service.rb +19 -0
- data/lib/stripe/services/crypto/customer_payment_token_service.rb +19 -0
- data/lib/stripe/services/crypto/customer_service.rb +27 -0
- data/lib/stripe/services/crypto/onramp_session_service.rb +69 -0
- data/lib/stripe/services/crypto/onramp_transaction_limits_service.rb +19 -0
- data/lib/stripe/services/crypto_service.rb +15 -0
- data/lib/stripe/services/subscription_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services.rb +15 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +2468 -118
- metadata +22 -2
|
@@ -5,6 +5,15 @@ module Stripe
|
|
|
5
5
|
class DisputeUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class Evidence < ::Stripe::RequestParams
|
|
7
7
|
class EnhancedEvidence < ::Stripe::RequestParams
|
|
8
|
+
class MastercardCompliance < ::Stripe::RequestParams
|
|
9
|
+
# A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute.
|
|
10
|
+
attr_accessor :fee_acknowledged
|
|
11
|
+
|
|
12
|
+
def initialize(fee_acknowledged: nil)
|
|
13
|
+
@fee_acknowledged = fee_acknowledged
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
8
17
|
class VisaCompellingEvidence3 < ::Stripe::RequestParams
|
|
9
18
|
class DisputedTransaction < ::Stripe::RequestParams
|
|
10
19
|
class ShippingAddress < ::Stripe::RequestParams
|
|
@@ -162,12 +171,19 @@ module Stripe
|
|
|
162
171
|
@fee_acknowledged = fee_acknowledged
|
|
163
172
|
end
|
|
164
173
|
end
|
|
174
|
+
# Evidence provided for Mastercard compliance evidence submission.
|
|
175
|
+
attr_accessor :mastercard_compliance
|
|
165
176
|
# Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
|
|
166
177
|
attr_accessor :visa_compelling_evidence_3
|
|
167
178
|
# Evidence provided for Visa compliance evidence submission.
|
|
168
179
|
attr_accessor :visa_compliance
|
|
169
180
|
|
|
170
|
-
def initialize(
|
|
181
|
+
def initialize(
|
|
182
|
+
mastercard_compliance: nil,
|
|
183
|
+
visa_compelling_evidence_3: nil,
|
|
184
|
+
visa_compliance: nil
|
|
185
|
+
)
|
|
186
|
+
@mastercard_compliance = mastercard_compliance
|
|
171
187
|
@visa_compelling_evidence_3 = visa_compelling_evidence_3
|
|
172
188
|
@visa_compliance = visa_compliance
|
|
173
189
|
end
|
|
@@ -47,7 +47,7 @@ module Stripe
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
class Limits < ::Stripe::RequestParams
|
|
50
|
-
# The number of accounts that can be linked in this Session.
|
|
50
|
+
# The number of accounts that can be linked in this Session. Pass an empty value to allow any number of accounts.
|
|
51
51
|
attr_accessor :accounts
|
|
52
52
|
|
|
53
53
|
def initialize(accounts: nil)
|
|
@@ -233,7 +233,7 @@ module Stripe
|
|
|
233
233
|
attr_accessor :quantity
|
|
234
234
|
# Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
|
|
235
235
|
attr_accessor :quantity_decimal
|
|
236
|
-
# A list of up to
|
|
236
|
+
# A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
|
|
237
237
|
attr_accessor :tax_amounts
|
|
238
238
|
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
|
|
239
239
|
attr_accessor :tax_rates
|
|
@@ -2271,7 +2271,7 @@ module Stripe
|
|
|
2271
2271
|
attr_accessor :deleted
|
|
2272
2272
|
# The coupons to redeem into discounts for the subscription item.
|
|
2273
2273
|
attr_accessor :discounts
|
|
2274
|
-
# Subscription item to update.
|
|
2274
|
+
# Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing).
|
|
2275
2275
|
attr_accessor :id
|
|
2276
2276
|
# Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
2277
2277
|
attr_accessor :metadata
|
|
@@ -2321,6 +2321,49 @@ module Stripe
|
|
|
2321
2321
|
end
|
|
2322
2322
|
end
|
|
2323
2323
|
|
|
2324
|
+
class Pause < ::Stripe::RequestParams
|
|
2325
|
+
class BillFor < ::Stripe::RequestParams
|
|
2326
|
+
class OutstandingUsageThrough < ::Stripe::RequestParams
|
|
2327
|
+
# When to bill metered usage in the current period.
|
|
2328
|
+
attr_accessor :type
|
|
2329
|
+
|
|
2330
|
+
def initialize(type: nil)
|
|
2331
|
+
@type = type
|
|
2332
|
+
end
|
|
2333
|
+
end
|
|
2334
|
+
|
|
2335
|
+
class UnusedTimeFrom < ::Stripe::RequestParams
|
|
2336
|
+
# When to credit for unused time.
|
|
2337
|
+
attr_accessor :type
|
|
2338
|
+
|
|
2339
|
+
def initialize(type: nil)
|
|
2340
|
+
@type = type
|
|
2341
|
+
end
|
|
2342
|
+
end
|
|
2343
|
+
# Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`.
|
|
2344
|
+
attr_accessor :outstanding_usage_through
|
|
2345
|
+
# Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`.
|
|
2346
|
+
attr_accessor :unused_time_from
|
|
2347
|
+
|
|
2348
|
+
def initialize(outstanding_usage_through: nil, unused_time_from: nil)
|
|
2349
|
+
@outstanding_usage_through = outstanding_usage_through
|
|
2350
|
+
@unused_time_from = unused_time_from
|
|
2351
|
+
end
|
|
2352
|
+
end
|
|
2353
|
+
# Controls what to bill for when pausing the subscription.
|
|
2354
|
+
attr_accessor :bill_for
|
|
2355
|
+
# Determines how to handle debits and credits when pausing. Defaults to `pending_invoice_item`.
|
|
2356
|
+
attr_accessor :invoicing_behavior
|
|
2357
|
+
# The type of pause to apply. Defaults to `subscription`.
|
|
2358
|
+
attr_accessor :type
|
|
2359
|
+
|
|
2360
|
+
def initialize(bill_for: nil, invoicing_behavior: nil, type: nil)
|
|
2361
|
+
@bill_for = bill_for
|
|
2362
|
+
@invoicing_behavior = invoicing_behavior
|
|
2363
|
+
@type = type
|
|
2364
|
+
end
|
|
2365
|
+
end
|
|
2366
|
+
|
|
2324
2367
|
class Prebilling < ::Stripe::RequestParams
|
|
2325
2368
|
# This is used to determine the number of billing cycles to prebill.
|
|
2326
2369
|
attr_accessor :iterations
|
|
@@ -2345,6 +2388,12 @@ module Stripe
|
|
|
2345
2388
|
attr_accessor :default_tax_rates
|
|
2346
2389
|
# A list of up to 20 subscription items, each with an attached price.
|
|
2347
2390
|
attr_accessor :items
|
|
2391
|
+
# Previews the invoice that would be generated when pausing the subscription. Passing an empty hash won't preview pausing and instead returns the next invoice.
|
|
2392
|
+
#
|
|
2393
|
+
# To receive a preview invoice, set `invoicing_behavior` to `invoice`. A preview isn't available if the `bill_for` options produce no billable amounts.
|
|
2394
|
+
#
|
|
2395
|
+
# `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either.
|
|
2396
|
+
attr_accessor :pause
|
|
2348
2397
|
# The pre-billing to apply to the subscription as a preview.
|
|
2349
2398
|
attr_accessor :prebilling
|
|
2350
2399
|
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
@@ -2367,6 +2416,7 @@ module Stripe
|
|
|
2367
2416
|
cancel_now: nil,
|
|
2368
2417
|
default_tax_rates: nil,
|
|
2369
2418
|
items: nil,
|
|
2419
|
+
pause: nil,
|
|
2370
2420
|
prebilling: nil,
|
|
2371
2421
|
proration_behavior: nil,
|
|
2372
2422
|
proration_date: nil,
|
|
@@ -2382,6 +2432,7 @@ module Stripe
|
|
|
2382
2432
|
@cancel_now = cancel_now
|
|
2383
2433
|
@default_tax_rates = default_tax_rates
|
|
2384
2434
|
@items = items
|
|
2435
|
+
@pause = pause
|
|
2385
2436
|
@prebilling = prebilling
|
|
2386
2437
|
@proration_behavior = proration_behavior
|
|
2387
2438
|
@proration_date = proration_date
|
|
@@ -232,7 +232,7 @@ module Stripe
|
|
|
232
232
|
attr_accessor :quantity
|
|
233
233
|
# Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
|
|
234
234
|
attr_accessor :quantity_decimal
|
|
235
|
-
# A list of up to
|
|
235
|
+
# A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
|
|
236
236
|
attr_accessor :tax_amounts
|
|
237
237
|
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
|
|
238
238
|
attr_accessor :tax_rates
|
|
@@ -233,7 +233,7 @@ module Stripe
|
|
|
233
233
|
attr_accessor :quantity
|
|
234
234
|
# Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
|
|
235
235
|
attr_accessor :quantity_decimal
|
|
236
|
-
# A list of up to
|
|
236
|
+
# A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
|
|
237
237
|
attr_accessor :tax_amounts
|
|
238
238
|
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
|
|
239
239
|
attr_accessor :tax_rates
|
|
@@ -1726,7 +1726,7 @@ module Stripe
|
|
|
1726
1726
|
end
|
|
1727
1727
|
|
|
1728
1728
|
class WechatPay < ::Stripe::RequestParams
|
|
1729
|
-
# The app ID registered with WeChat Pay. Only required when client is ios or
|
|
1729
|
+
# The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
|
|
1730
1730
|
attr_accessor :app_id
|
|
1731
1731
|
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
1732
1732
|
attr_accessor :buyer_id
|
|
@@ -1730,7 +1730,7 @@ module Stripe
|
|
|
1730
1730
|
end
|
|
1731
1731
|
|
|
1732
1732
|
class WechatPay < ::Stripe::RequestParams
|
|
1733
|
-
# The app ID registered with WeChat Pay. Only required when client is ios or
|
|
1733
|
+
# The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
|
|
1734
1734
|
attr_accessor :app_id
|
|
1735
1735
|
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
1736
1736
|
attr_accessor :buyer_id
|
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentAttemptRecordReportFailedParams < ::Stripe::RequestParams
|
|
6
|
+
class PaymentMethodDetails < ::Stripe::RequestParams
|
|
7
|
+
class Card < ::Stripe::RequestParams
|
|
8
|
+
class Checks < ::Stripe::RequestParams
|
|
9
|
+
# The result of the check on the cardholder's address line 1.
|
|
10
|
+
attr_accessor :address_line1_check
|
|
11
|
+
# The result of the check on the cardholder's postal code.
|
|
12
|
+
attr_accessor :address_postal_code_check
|
|
13
|
+
# The result of the check on the card's CVC.
|
|
14
|
+
attr_accessor :cvc_check
|
|
15
|
+
|
|
16
|
+
def initialize(address_line1_check: nil, address_postal_code_check: nil, cvc_check: nil)
|
|
17
|
+
@address_line1_check = address_line1_check
|
|
18
|
+
@address_postal_code_check = address_postal_code_check
|
|
19
|
+
@cvc_check = cvc_check
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# Verification checks performed on the card.
|
|
23
|
+
attr_accessor :checks
|
|
24
|
+
|
|
25
|
+
def initialize(checks: nil)
|
|
26
|
+
@checks = checks
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Information about the card payment method used to make this payment.
|
|
30
|
+
attr_accessor :card
|
|
31
|
+
# The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
|
|
32
|
+
attr_accessor :type
|
|
33
|
+
|
|
34
|
+
def initialize(card: nil, type: nil)
|
|
35
|
+
@card = card
|
|
36
|
+
@type = type
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
6
40
|
class ProcessorDetails < ::Stripe::RequestParams
|
|
7
41
|
class Custom < ::Stripe::RequestParams
|
|
8
42
|
# An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
|
@@ -32,6 +66,8 @@ module Stripe
|
|
|
32
66
|
attr_accessor :metadata
|
|
33
67
|
# Payment evaluations associated with this reported payment.
|
|
34
68
|
attr_accessor :payment_evaluations
|
|
69
|
+
# Information about the Payment Method debited for this payment.
|
|
70
|
+
attr_accessor :payment_method_details
|
|
35
71
|
# Processor information for this payment.
|
|
36
72
|
attr_accessor :processor_details
|
|
37
73
|
|
|
@@ -41,6 +77,7 @@ module Stripe
|
|
|
41
77
|
failure_code: nil,
|
|
42
78
|
metadata: nil,
|
|
43
79
|
payment_evaluations: nil,
|
|
80
|
+
payment_method_details: nil,
|
|
44
81
|
processor_details: nil
|
|
45
82
|
)
|
|
46
83
|
@expand = expand
|
|
@@ -48,6 +85,7 @@ module Stripe
|
|
|
48
85
|
@failure_code = failure_code
|
|
49
86
|
@metadata = metadata
|
|
50
87
|
@payment_evaluations = payment_evaluations
|
|
88
|
+
@payment_method_details = payment_method_details
|
|
51
89
|
@processor_details = processor_details
|
|
52
90
|
end
|
|
53
91
|
end
|
|
@@ -69,6 +69,8 @@ module Stripe
|
|
|
69
69
|
attr_accessor :outcome
|
|
70
70
|
# Processor information for this refund.
|
|
71
71
|
attr_accessor :processor_details
|
|
72
|
+
# The reason for the refund. One of `duplicate`, `fraudulent`, or `requested_by_customer`.
|
|
73
|
+
attr_accessor :reason
|
|
72
74
|
# A key to group refunds together.
|
|
73
75
|
attr_accessor :refund_group
|
|
74
76
|
# Information about the payment attempt refund.
|
|
@@ -82,6 +84,7 @@ module Stripe
|
|
|
82
84
|
metadata: nil,
|
|
83
85
|
outcome: nil,
|
|
84
86
|
processor_details: nil,
|
|
87
|
+
reason: nil,
|
|
85
88
|
refund_group: nil,
|
|
86
89
|
refunded: nil
|
|
87
90
|
)
|
|
@@ -92,6 +95,7 @@ module Stripe
|
|
|
92
95
|
@metadata = metadata
|
|
93
96
|
@outcome = outcome
|
|
94
97
|
@processor_details = processor_details
|
|
98
|
+
@reason = reason
|
|
95
99
|
@refund_group = refund_group
|
|
96
100
|
@refunded = refunded
|
|
97
101
|
end
|
|
@@ -2779,7 +2779,7 @@ module Stripe
|
|
|
2779
2779
|
attr_accessor :sofort
|
|
2780
2780
|
# This hash contains details about the Stripe balance payment method.
|
|
2781
2781
|
attr_accessor :stripe_balance
|
|
2782
|
-
# If this is a
|
|
2782
|
+
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
2783
2783
|
attr_accessor :sunbit
|
|
2784
2784
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
2785
2785
|
attr_accessor :swish
|
|
@@ -3697,6 +3697,15 @@ module Stripe
|
|
|
3697
3697
|
end
|
|
3698
3698
|
|
|
3699
3699
|
class Crypto < ::Stripe::RequestParams
|
|
3700
|
+
class AmountReconciliation < ::Stripe::RequestParams
|
|
3701
|
+
# Controls how crypto funding amounts are reconciled for the PaymentIntent.
|
|
3702
|
+
attr_accessor :type
|
|
3703
|
+
|
|
3704
|
+
def initialize(type: nil)
|
|
3705
|
+
@type = type
|
|
3706
|
+
end
|
|
3707
|
+
end
|
|
3708
|
+
|
|
3700
3709
|
class DepositOptions < ::Stripe::RequestParams
|
|
3701
3710
|
# The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
|
|
3702
3711
|
attr_accessor :networks
|
|
@@ -3720,6 +3729,8 @@ module Stripe
|
|
|
3720
3729
|
@transaction_hash = transaction_hash
|
|
3721
3730
|
end
|
|
3722
3731
|
end
|
|
3732
|
+
# Controls how crypto funding amounts are reconciled for this PaymentIntent.
|
|
3733
|
+
attr_accessor :amount_reconciliation
|
|
3723
3734
|
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3724
3735
|
attr_accessor :deposit_options
|
|
3725
3736
|
# The mode of the crypto payment.
|
|
@@ -3738,11 +3749,13 @@ module Stripe
|
|
|
3738
3749
|
attr_accessor :transaction_verification_options
|
|
3739
3750
|
|
|
3740
3751
|
def initialize(
|
|
3752
|
+
amount_reconciliation: nil,
|
|
3741
3753
|
deposit_options: nil,
|
|
3742
3754
|
mode: nil,
|
|
3743
3755
|
setup_future_usage: nil,
|
|
3744
3756
|
transaction_verification_options: nil
|
|
3745
3757
|
)
|
|
3758
|
+
@amount_reconciliation = amount_reconciliation
|
|
3746
3759
|
@deposit_options = deposit_options
|
|
3747
3760
|
@mode = mode
|
|
3748
3761
|
@setup_future_usage = setup_future_usage
|
|
@@ -5569,9 +5582,18 @@ module Stripe
|
|
|
5569
5582
|
#
|
|
5570
5583
|
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
5571
5584
|
attr_accessor :capture_method
|
|
5585
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5586
|
+
#
|
|
5587
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5588
|
+
#
|
|
5589
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5590
|
+
#
|
|
5591
|
+
# 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).
|
|
5592
|
+
attr_accessor :setup_future_usage
|
|
5572
5593
|
|
|
5573
|
-
def initialize(capture_method: nil)
|
|
5594
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
5574
5595
|
@capture_method = capture_method
|
|
5596
|
+
@setup_future_usage = setup_future_usage
|
|
5575
5597
|
end
|
|
5576
5598
|
end
|
|
5577
5599
|
|
|
@@ -5684,6 +5706,28 @@ module Stripe
|
|
|
5684
5706
|
end
|
|
5685
5707
|
end
|
|
5686
5708
|
|
|
5709
|
+
class Sunbit < ::Stripe::RequestParams
|
|
5710
|
+
# Controls when the funds are captured from the customer's account.
|
|
5711
|
+
#
|
|
5712
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
5713
|
+
#
|
|
5714
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
5715
|
+
attr_accessor :capture_method
|
|
5716
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5717
|
+
#
|
|
5718
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5719
|
+
#
|
|
5720
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5721
|
+
#
|
|
5722
|
+
# 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).
|
|
5723
|
+
attr_accessor :setup_future_usage
|
|
5724
|
+
|
|
5725
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
5726
|
+
@capture_method = capture_method
|
|
5727
|
+
@setup_future_usage = setup_future_usage
|
|
5728
|
+
end
|
|
5729
|
+
end
|
|
5730
|
+
|
|
5687
5731
|
class Swish < ::Stripe::RequestParams
|
|
5688
5732
|
# A reference for this payment to be displayed in the Swish app.
|
|
5689
5733
|
attr_accessor :reference
|
|
@@ -5858,7 +5902,7 @@ module Stripe
|
|
|
5858
5902
|
end
|
|
5859
5903
|
|
|
5860
5904
|
class WechatPay < ::Stripe::RequestParams
|
|
5861
|
-
# The app ID registered with WeChat Pay. Only required when client is ios or
|
|
5905
|
+
# The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
|
|
5862
5906
|
attr_accessor :app_id
|
|
5863
5907
|
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
5864
5908
|
attr_accessor :buyer_id
|
|
@@ -6013,6 +6057,8 @@ module Stripe
|
|
|
6013
6057
|
attr_accessor :sofort
|
|
6014
6058
|
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
6015
6059
|
attr_accessor :stripe_balance
|
|
6060
|
+
# If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
|
|
6061
|
+
attr_accessor :sunbit
|
|
6016
6062
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
6017
6063
|
attr_accessor :swish
|
|
6018
6064
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -6084,6 +6130,7 @@ module Stripe
|
|
|
6084
6130
|
shopeepay: nil,
|
|
6085
6131
|
sofort: nil,
|
|
6086
6132
|
stripe_balance: nil,
|
|
6133
|
+
sunbit: nil,
|
|
6087
6134
|
swish: nil,
|
|
6088
6135
|
twint: nil,
|
|
6089
6136
|
upi: nil,
|
|
@@ -6148,6 +6195,7 @@ module Stripe
|
|
|
6148
6195
|
@shopeepay = shopeepay
|
|
6149
6196
|
@sofort = sofort
|
|
6150
6197
|
@stripe_balance = stripe_balance
|
|
6198
|
+
@sunbit = sunbit
|
|
6151
6199
|
@swish = swish
|
|
6152
6200
|
@twint = twint
|
|
6153
6201
|
@upi = upi
|
|
@@ -2793,7 +2793,7 @@ module Stripe
|
|
|
2793
2793
|
attr_accessor :sofort
|
|
2794
2794
|
# This hash contains details about the Stripe balance payment method.
|
|
2795
2795
|
attr_accessor :stripe_balance
|
|
2796
|
-
# If this is a
|
|
2796
|
+
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
2797
2797
|
attr_accessor :sunbit
|
|
2798
2798
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
2799
2799
|
attr_accessor :swish
|
|
@@ -3711,6 +3711,15 @@ module Stripe
|
|
|
3711
3711
|
end
|
|
3712
3712
|
|
|
3713
3713
|
class Crypto < ::Stripe::RequestParams
|
|
3714
|
+
class AmountReconciliation < ::Stripe::RequestParams
|
|
3715
|
+
# Controls how crypto funding amounts are reconciled for the PaymentIntent.
|
|
3716
|
+
attr_accessor :type
|
|
3717
|
+
|
|
3718
|
+
def initialize(type: nil)
|
|
3719
|
+
@type = type
|
|
3720
|
+
end
|
|
3721
|
+
end
|
|
3722
|
+
|
|
3714
3723
|
class DepositOptions < ::Stripe::RequestParams
|
|
3715
3724
|
# The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
|
|
3716
3725
|
attr_accessor :networks
|
|
@@ -3734,6 +3743,8 @@ module Stripe
|
|
|
3734
3743
|
@transaction_hash = transaction_hash
|
|
3735
3744
|
end
|
|
3736
3745
|
end
|
|
3746
|
+
# Controls how crypto funding amounts are reconciled for this PaymentIntent.
|
|
3747
|
+
attr_accessor :amount_reconciliation
|
|
3737
3748
|
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3738
3749
|
attr_accessor :deposit_options
|
|
3739
3750
|
# The mode of the crypto payment.
|
|
@@ -3752,11 +3763,13 @@ module Stripe
|
|
|
3752
3763
|
attr_accessor :transaction_verification_options
|
|
3753
3764
|
|
|
3754
3765
|
def initialize(
|
|
3766
|
+
amount_reconciliation: nil,
|
|
3755
3767
|
deposit_options: nil,
|
|
3756
3768
|
mode: nil,
|
|
3757
3769
|
setup_future_usage: nil,
|
|
3758
3770
|
transaction_verification_options: nil
|
|
3759
3771
|
)
|
|
3772
|
+
@amount_reconciliation = amount_reconciliation
|
|
3760
3773
|
@deposit_options = deposit_options
|
|
3761
3774
|
@mode = mode
|
|
3762
3775
|
@setup_future_usage = setup_future_usage
|
|
@@ -5583,9 +5596,18 @@ module Stripe
|
|
|
5583
5596
|
#
|
|
5584
5597
|
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
5585
5598
|
attr_accessor :capture_method
|
|
5599
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5600
|
+
#
|
|
5601
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5602
|
+
#
|
|
5603
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5604
|
+
#
|
|
5605
|
+
# 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).
|
|
5606
|
+
attr_accessor :setup_future_usage
|
|
5586
5607
|
|
|
5587
|
-
def initialize(capture_method: nil)
|
|
5608
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
5588
5609
|
@capture_method = capture_method
|
|
5610
|
+
@setup_future_usage = setup_future_usage
|
|
5589
5611
|
end
|
|
5590
5612
|
end
|
|
5591
5613
|
|
|
@@ -5698,6 +5720,28 @@ module Stripe
|
|
|
5698
5720
|
end
|
|
5699
5721
|
end
|
|
5700
5722
|
|
|
5723
|
+
class Sunbit < ::Stripe::RequestParams
|
|
5724
|
+
# Controls when the funds are captured from the customer's account.
|
|
5725
|
+
#
|
|
5726
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
5727
|
+
#
|
|
5728
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
5729
|
+
attr_accessor :capture_method
|
|
5730
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5731
|
+
#
|
|
5732
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5733
|
+
#
|
|
5734
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5735
|
+
#
|
|
5736
|
+
# 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).
|
|
5737
|
+
attr_accessor :setup_future_usage
|
|
5738
|
+
|
|
5739
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
5740
|
+
@capture_method = capture_method
|
|
5741
|
+
@setup_future_usage = setup_future_usage
|
|
5742
|
+
end
|
|
5743
|
+
end
|
|
5744
|
+
|
|
5701
5745
|
class Swish < ::Stripe::RequestParams
|
|
5702
5746
|
# A reference for this payment to be displayed in the Swish app.
|
|
5703
5747
|
attr_accessor :reference
|
|
@@ -5872,7 +5916,7 @@ module Stripe
|
|
|
5872
5916
|
end
|
|
5873
5917
|
|
|
5874
5918
|
class WechatPay < ::Stripe::RequestParams
|
|
5875
|
-
# The app ID registered with WeChat Pay. Only required when client is ios or
|
|
5919
|
+
# The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
|
|
5876
5920
|
attr_accessor :app_id
|
|
5877
5921
|
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
5878
5922
|
attr_accessor :buyer_id
|
|
@@ -6027,6 +6071,8 @@ module Stripe
|
|
|
6027
6071
|
attr_accessor :sofort
|
|
6028
6072
|
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
6029
6073
|
attr_accessor :stripe_balance
|
|
6074
|
+
# If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
|
|
6075
|
+
attr_accessor :sunbit
|
|
6030
6076
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
6031
6077
|
attr_accessor :swish
|
|
6032
6078
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -6098,6 +6144,7 @@ module Stripe
|
|
|
6098
6144
|
shopeepay: nil,
|
|
6099
6145
|
sofort: nil,
|
|
6100
6146
|
stripe_balance: nil,
|
|
6147
|
+
sunbit: nil,
|
|
6101
6148
|
swish: nil,
|
|
6102
6149
|
twint: nil,
|
|
6103
6150
|
upi: nil,
|
|
@@ -6162,6 +6209,7 @@ module Stripe
|
|
|
6162
6209
|
@shopeepay = shopeepay
|
|
6163
6210
|
@sofort = sofort
|
|
6164
6211
|
@stripe_balance = stripe_balance
|
|
6212
|
+
@sunbit = sunbit
|
|
6165
6213
|
@swish = swish
|
|
6166
6214
|
@twint = twint
|
|
6167
6215
|
@upi = upi
|
|
@@ -9,7 +9,7 @@ module Stripe
|
|
|
9
9
|
attr_accessor :limit
|
|
10
10
|
# A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
|
|
11
11
|
attr_accessor :page
|
|
12
|
-
# The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-
|
|
12
|
+
# The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents).
|
|
13
13
|
attr_accessor :query
|
|
14
14
|
|
|
15
15
|
def initialize(expand: nil, limit: nil, page: nil, query: nil)
|