stripe 19.3.0.pre.alpha.2 → 19.3.0.pre.alpha.4
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_requestor.rb +31 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/charge_capture_params.rb +0 -169
- data/lib/stripe/params/charge_update_params.rb +0 -169
- data/lib/stripe/params/checkout/session_create_params.rb +13 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/gift_card_activate_params.rb +30 -0
- data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
- data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
- data/lib/stripe/params/gift_card_create_params.rb +28 -0
- data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_reload_params.rb +22 -0
- data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
- data/lib/stripe/params/order_create_params.rb +4 -1
- data/lib/stripe/params/order_update_params.rb +4 -1
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +20 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
- data/lib/stripe/params/payment_intent_confirm_params.rb +197 -211
- data/lib/stripe/params/payment_intent_create_params.rb +197 -211
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
- data/lib/stripe/params/payment_intent_update_params.rb +197 -211
- data/lib/stripe/params/payment_method_create_params.rb +5 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +27 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +27 -1
- data/lib/stripe/params/payment_record_report_refund_params.rb +20 -0
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +38 -4
- data/lib/stripe/params/radar/customer_evaluation_create_params.rb +19 -2
- data/lib/stripe/params/radar/customer_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/refund_list_params.rb +8 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +5 -0
- data/lib/stripe/params/setup_intent_create_params.rb +5 -0
- data/lib/stripe/params/setup_intent_update_params.rb +5 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +42 -0
- data/lib/stripe/params/tax_fund_list_params.rb +42 -0
- data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/v2/billing/contract_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_update_params.rb +1 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +1620 -81
- data/lib/stripe/params/v2/core/account_update_params.rb +1620 -81
- data/lib/stripe/params.rb +25 -0
- data/lib/stripe/resources/account_session.rb +2 -0
- data/lib/stripe/resources/charge.rb +49 -3
- data/lib/stripe/resources/checkout/session.rb +16 -2
- data/lib/stripe/resources/confirmation_token.rb +29 -2
- data/lib/stripe/resources/gift_card.rb +146 -0
- data/lib/stripe/resources/gift_card_operation.rb +289 -0
- data/lib/stripe/resources/issuing/authorization.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +24 -0
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/mandate.rb +18 -0
- data/lib/stripe/resources/order.rb +2 -0
- data/lib/stripe/resources/payment_attempt_record.rb +83 -1
- data/lib/stripe/resources/payment_intent.rb +281 -82
- data/lib/stripe/resources/payment_method.rb +29 -2
- data/lib/stripe/resources/payment_record.rb +83 -1
- data/lib/stripe/resources/product.rb +32 -0
- data/lib/stripe/resources/setup_intent.rb +18 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +13 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +41 -1
- data/lib/stripe/resources/tax/transaction_line_item.rb +41 -1
- data/lib/stripe/resources/tax_fund.rb +179 -0
- data/lib/stripe/resources/v2/core/account.rb +11540 -326
- data/lib/stripe/resources/v2/core/fee_batch.rb +86 -3
- data/lib/stripe/resources/v2/core/fee_entry.rb +40 -2
- data/lib/stripe/resources/v2/money_management/inbound_transfer.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/resources.rb +6 -0
- data/lib/stripe/services/gift_card_operation_service.rb +17 -0
- data/lib/stripe/services/gift_card_service.rb +77 -0
- data/lib/stripe/services/payment_intent_service.rb +11 -0
- data/lib/stripe/services/radar/customer_evaluation_service.rb +11 -0
- data/lib/stripe/services/tax_fund_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +4 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
- data/lib/stripe/services.rb +6 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +19043 -2521
- metadata +23 -5
|
@@ -1965,7 +1965,7 @@ module Stripe
|
|
|
1965
1965
|
|
|
1966
1966
|
class MoneyServices < ::Stripe::RequestParams
|
|
1967
1967
|
class AccountFunding < ::Stripe::RequestParams
|
|
1968
|
-
class
|
|
1968
|
+
class SenderDetails < ::Stripe::RequestParams
|
|
1969
1969
|
class Address < ::Stripe::RequestParams
|
|
1970
1970
|
# City, district, suburb, town, or village.
|
|
1971
1971
|
attr_accessor :city
|
|
@@ -2017,113 +2017,126 @@ module Stripe
|
|
|
2017
2017
|
attr_accessor :date_of_birth
|
|
2018
2018
|
# Email address.
|
|
2019
2019
|
attr_accessor :email
|
|
2020
|
-
#
|
|
2021
|
-
attr_accessor :
|
|
2020
|
+
# Given (first) name.
|
|
2021
|
+
attr_accessor :given_name
|
|
2022
2022
|
# Phone number.
|
|
2023
2023
|
attr_accessor :phone
|
|
2024
|
+
# Surname (family name).
|
|
2025
|
+
attr_accessor :surname
|
|
2024
2026
|
|
|
2025
|
-
def initialize(
|
|
2027
|
+
def initialize(
|
|
2028
|
+
address: nil,
|
|
2029
|
+
date_of_birth: nil,
|
|
2030
|
+
email: nil,
|
|
2031
|
+
given_name: nil,
|
|
2032
|
+
phone: nil,
|
|
2033
|
+
surname: nil
|
|
2034
|
+
)
|
|
2026
2035
|
@address = address
|
|
2027
2036
|
@date_of_birth = date_of_birth
|
|
2028
2037
|
@email = email
|
|
2029
|
-
@
|
|
2038
|
+
@given_name = given_name
|
|
2030
2039
|
@phone = phone
|
|
2040
|
+
@surname = surname
|
|
2031
2041
|
end
|
|
2032
2042
|
end
|
|
2043
|
+
# Inline identity details for the sender of this account funding transaction.
|
|
2044
|
+
attr_accessor :sender_details
|
|
2033
2045
|
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2039
|
-
attr_accessor :country
|
|
2040
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
2041
|
-
attr_accessor :line1
|
|
2042
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2043
|
-
attr_accessor :line2
|
|
2044
|
-
# ZIP or postal code.
|
|
2045
|
-
attr_accessor :postal_code
|
|
2046
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2047
|
-
attr_accessor :state
|
|
2048
|
-
|
|
2049
|
-
def initialize(
|
|
2050
|
-
city: nil,
|
|
2051
|
-
country: nil,
|
|
2052
|
-
line1: nil,
|
|
2053
|
-
line2: nil,
|
|
2054
|
-
postal_code: nil,
|
|
2055
|
-
state: nil
|
|
2056
|
-
)
|
|
2057
|
-
@city = city
|
|
2058
|
-
@country = country
|
|
2059
|
-
@line1 = line1
|
|
2060
|
-
@line2 = line2
|
|
2061
|
-
@postal_code = postal_code
|
|
2062
|
-
@state = state
|
|
2063
|
-
end
|
|
2064
|
-
end
|
|
2046
|
+
def initialize(sender_details: nil)
|
|
2047
|
+
@sender_details = sender_details
|
|
2048
|
+
end
|
|
2049
|
+
end
|
|
2065
2050
|
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2051
|
+
class BeneficiaryDetails < ::Stripe::RequestParams
|
|
2052
|
+
class Address < ::Stripe::RequestParams
|
|
2053
|
+
# City, district, suburb, town, or village.
|
|
2054
|
+
attr_accessor :city
|
|
2055
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2056
|
+
attr_accessor :country
|
|
2057
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2058
|
+
attr_accessor :line1
|
|
2059
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2060
|
+
attr_accessor :line2
|
|
2061
|
+
# ZIP or postal code.
|
|
2062
|
+
attr_accessor :postal_code
|
|
2063
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2064
|
+
attr_accessor :state
|
|
2073
2065
|
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2066
|
+
def initialize(
|
|
2067
|
+
city: nil,
|
|
2068
|
+
country: nil,
|
|
2069
|
+
line1: nil,
|
|
2070
|
+
line2: nil,
|
|
2071
|
+
postal_code: nil,
|
|
2072
|
+
state: nil
|
|
2073
|
+
)
|
|
2074
|
+
@city = city
|
|
2075
|
+
@country = country
|
|
2076
|
+
@line1 = line1
|
|
2077
|
+
@line2 = line2
|
|
2078
|
+
@postal_code = postal_code
|
|
2079
|
+
@state = state
|
|
2079
2080
|
end
|
|
2080
|
-
|
|
2081
|
-
attr_accessor :address
|
|
2082
|
-
# Date of birth.
|
|
2083
|
-
attr_accessor :date_of_birth
|
|
2084
|
-
# Email address.
|
|
2085
|
-
attr_accessor :email
|
|
2086
|
-
# Full name.
|
|
2087
|
-
attr_accessor :name
|
|
2088
|
-
# Phone number.
|
|
2089
|
-
attr_accessor :phone
|
|
2081
|
+
end
|
|
2090
2082
|
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2083
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
2084
|
+
# Day of birth, between 1 and 31.
|
|
2085
|
+
attr_accessor :day
|
|
2086
|
+
# Month of birth, between 1 and 12.
|
|
2087
|
+
attr_accessor :month
|
|
2088
|
+
# Four-digit year of birth.
|
|
2089
|
+
attr_accessor :year
|
|
2090
|
+
|
|
2091
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2092
|
+
@day = day
|
|
2093
|
+
@month = month
|
|
2094
|
+
@year = year
|
|
2097
2095
|
end
|
|
2098
2096
|
end
|
|
2099
|
-
#
|
|
2100
|
-
attr_accessor :
|
|
2101
|
-
#
|
|
2102
|
-
attr_accessor :
|
|
2103
|
-
#
|
|
2104
|
-
attr_accessor :
|
|
2105
|
-
#
|
|
2106
|
-
attr_accessor :
|
|
2097
|
+
# An opaque identifier for the beneficiary's account (e.g. bank account number, card first6+last4, or other unique identifier).
|
|
2098
|
+
attr_accessor :account_reference
|
|
2099
|
+
# Address.
|
|
2100
|
+
attr_accessor :address
|
|
2101
|
+
# Date of birth.
|
|
2102
|
+
attr_accessor :date_of_birth
|
|
2103
|
+
# Email address.
|
|
2104
|
+
attr_accessor :email
|
|
2105
|
+
# Given (first) name.
|
|
2106
|
+
attr_accessor :given_name
|
|
2107
|
+
# Phone number.
|
|
2108
|
+
attr_accessor :phone
|
|
2109
|
+
# Surname (family name).
|
|
2110
|
+
attr_accessor :surname
|
|
2107
2111
|
|
|
2108
2112
|
def initialize(
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
+
account_reference: nil,
|
|
2114
|
+
address: nil,
|
|
2115
|
+
date_of_birth: nil,
|
|
2116
|
+
email: nil,
|
|
2117
|
+
given_name: nil,
|
|
2118
|
+
phone: nil,
|
|
2119
|
+
surname: nil
|
|
2113
2120
|
)
|
|
2114
|
-
@
|
|
2115
|
-
@
|
|
2116
|
-
@
|
|
2117
|
-
@
|
|
2121
|
+
@account_reference = account_reference
|
|
2122
|
+
@address = address
|
|
2123
|
+
@date_of_birth = date_of_birth
|
|
2124
|
+
@email = email
|
|
2125
|
+
@given_name = given_name
|
|
2126
|
+
@phone = phone
|
|
2127
|
+
@surname = surname
|
|
2118
2128
|
end
|
|
2119
2129
|
end
|
|
2120
|
-
# Account funding transaction details including sender
|
|
2130
|
+
# Account funding transaction details including sender information.
|
|
2121
2131
|
attr_accessor :account_funding
|
|
2132
|
+
# Inline identity details for the beneficiary of this transaction.
|
|
2133
|
+
attr_accessor :beneficiary_details
|
|
2122
2134
|
# The type of money services transaction.
|
|
2123
2135
|
attr_accessor :transaction_type
|
|
2124
2136
|
|
|
2125
|
-
def initialize(account_funding: nil, transaction_type: nil)
|
|
2137
|
+
def initialize(account_funding: nil, beneficiary_details: nil, transaction_type: nil)
|
|
2126
2138
|
@account_funding = account_funding
|
|
2139
|
+
@beneficiary_details = beneficiary_details
|
|
2127
2140
|
@transaction_type = transaction_type
|
|
2128
2141
|
end
|
|
2129
2142
|
end
|
|
@@ -2589,6 +2602,7 @@ module Stripe
|
|
|
2589
2602
|
|
|
2590
2603
|
class Sunbit < ::Stripe::RequestParams; end
|
|
2591
2604
|
class Swish < ::Stripe::RequestParams; end
|
|
2605
|
+
class Tamara < ::Stripe::RequestParams; end
|
|
2592
2606
|
class Twint < ::Stripe::RequestParams; end
|
|
2593
2607
|
|
|
2594
2608
|
class Upi < ::Stripe::RequestParams
|
|
@@ -2770,6 +2784,8 @@ module Stripe
|
|
|
2770
2784
|
attr_accessor :sunbit
|
|
2771
2785
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
2772
2786
|
attr_accessor :swish
|
|
2787
|
+
# If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
|
|
2788
|
+
attr_accessor :tamara
|
|
2773
2789
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
2774
2790
|
attr_accessor :twint
|
|
2775
2791
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
@@ -2846,6 +2862,7 @@ module Stripe
|
|
|
2846
2862
|
stripe_balance: nil,
|
|
2847
2863
|
sunbit: nil,
|
|
2848
2864
|
swish: nil,
|
|
2865
|
+
tamara: nil,
|
|
2849
2866
|
twint: nil,
|
|
2850
2867
|
type: nil,
|
|
2851
2868
|
upi: nil,
|
|
@@ -2915,6 +2932,7 @@ module Stripe
|
|
|
2915
2932
|
@stripe_balance = stripe_balance
|
|
2916
2933
|
@sunbit = sunbit
|
|
2917
2934
|
@swish = swish
|
|
2935
|
+
@tamara = tamara
|
|
2918
2936
|
@twint = twint
|
|
2919
2937
|
@type = type
|
|
2920
2938
|
@upi = upi
|
|
@@ -3214,6 +3232,18 @@ module Stripe
|
|
|
3214
3232
|
end
|
|
3215
3233
|
|
|
3216
3234
|
class Card < ::Stripe::RequestParams
|
|
3235
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3236
|
+
# Attribute for param field days
|
|
3237
|
+
attr_accessor :days
|
|
3238
|
+
# Attribute for param field hours
|
|
3239
|
+
attr_accessor :hours
|
|
3240
|
+
|
|
3241
|
+
def initialize(days: nil, hours: nil)
|
|
3242
|
+
@days = days
|
|
3243
|
+
@hours = hours
|
|
3244
|
+
end
|
|
3245
|
+
end
|
|
3246
|
+
|
|
3217
3247
|
class Installments < ::Stripe::RequestParams
|
|
3218
3248
|
class Plan < ::Stripe::RequestParams
|
|
3219
3249
|
# For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
@@ -3290,73 +3320,11 @@ module Stripe
|
|
|
3290
3320
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3291
3321
|
class MoneyServices < ::Stripe::RequestParams
|
|
3292
3322
|
class AccountFunding < ::Stripe::RequestParams
|
|
3293
|
-
class LiquidAsset < ::Stripe::RequestParams
|
|
3294
|
-
class Crypto < ::Stripe::RequestParams
|
|
3295
|
-
# The cryptocurrency currency code (e.g. BTC, ETH).
|
|
3296
|
-
attr_accessor :currency_code
|
|
3297
|
-
|
|
3298
|
-
def initialize(currency_code: nil)
|
|
3299
|
-
@currency_code = currency_code
|
|
3300
|
-
end
|
|
3301
|
-
end
|
|
3302
|
-
|
|
3303
|
-
class Security < ::Stripe::RequestParams
|
|
3304
|
-
# The security's ticker symbol (e.g. AAPL).
|
|
3305
|
-
attr_accessor :ticker_symbol
|
|
3306
|
-
|
|
3307
|
-
def initialize(ticker_symbol: nil)
|
|
3308
|
-
@ticker_symbol = ticker_symbol
|
|
3309
|
-
end
|
|
3310
|
-
end
|
|
3311
|
-
# Details for a cryptocurrency liquid asset funding transaction.
|
|
3312
|
-
attr_accessor :crypto
|
|
3313
|
-
# Details for a security liquid asset funding transaction.
|
|
3314
|
-
attr_accessor :security
|
|
3315
|
-
|
|
3316
|
-
def initialize(crypto: nil, security: nil)
|
|
3317
|
-
@crypto = crypto
|
|
3318
|
-
@security = security
|
|
3319
|
-
end
|
|
3320
|
-
end
|
|
3321
|
-
|
|
3322
|
-
class Wallet < ::Stripe::RequestParams
|
|
3323
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3324
|
-
class Merchant < ::Stripe::RequestParams
|
|
3325
|
-
# The merchant category code of the merchant.
|
|
3326
|
-
attr_accessor :mcc
|
|
3327
|
-
# The merchant's name.
|
|
3328
|
-
attr_accessor :name
|
|
3329
|
-
|
|
3330
|
-
def initialize(mcc: nil, name: nil)
|
|
3331
|
-
@mcc = mcc
|
|
3332
|
-
@name = name
|
|
3333
|
-
end
|
|
3334
|
-
end
|
|
3335
|
-
# The merchant where the staged wallet purchase is made.
|
|
3336
|
-
attr_accessor :merchant
|
|
3337
|
-
|
|
3338
|
-
def initialize(merchant: nil)
|
|
3339
|
-
@merchant = merchant
|
|
3340
|
-
end
|
|
3341
|
-
end
|
|
3342
|
-
# Details for a staged purchase.
|
|
3343
|
-
attr_accessor :staged_purchase
|
|
3344
|
-
|
|
3345
|
-
def initialize(staged_purchase: nil)
|
|
3346
|
-
@staged_purchase = staged_purchase
|
|
3347
|
-
end
|
|
3348
|
-
end
|
|
3349
3323
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3350
3324
|
attr_accessor :digital_asset_category
|
|
3351
|
-
# Details for a liquid asset (crypto or security) funding transaction.
|
|
3352
|
-
attr_accessor :liquid_asset
|
|
3353
|
-
# Details for a wallet funding transaction.
|
|
3354
|
-
attr_accessor :wallet
|
|
3355
3325
|
|
|
3356
|
-
def initialize(digital_asset_category: nil
|
|
3326
|
+
def initialize(digital_asset_category: nil)
|
|
3357
3327
|
@digital_asset_category = digital_asset_category
|
|
3358
|
-
@liquid_asset = liquid_asset
|
|
3359
|
-
@wallet = wallet
|
|
3360
3328
|
end
|
|
3361
3329
|
end
|
|
3362
3330
|
# Payment method specific account funding transaction details.
|
|
@@ -3490,6 +3458,14 @@ module Stripe
|
|
|
3490
3458
|
@version = version
|
|
3491
3459
|
end
|
|
3492
3460
|
end
|
|
3461
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3462
|
+
#
|
|
3463
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3464
|
+
attr_accessor :capture_by
|
|
3465
|
+
# The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
|
|
3466
|
+
#
|
|
3467
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3468
|
+
attr_accessor :capture_delay
|
|
3493
3469
|
# Controls when the funds are captured from the customer's account.
|
|
3494
3470
|
#
|
|
3495
3471
|
# 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.
|
|
@@ -3551,6 +3527,8 @@ module Stripe
|
|
|
3551
3527
|
attr_accessor :three_d_secure
|
|
3552
3528
|
|
|
3553
3529
|
def initialize(
|
|
3530
|
+
capture_by: nil,
|
|
3531
|
+
capture_delay: nil,
|
|
3554
3532
|
capture_method: nil,
|
|
3555
3533
|
cvc_token: nil,
|
|
3556
3534
|
installments: nil,
|
|
@@ -3573,6 +3551,8 @@ module Stripe
|
|
|
3573
3551
|
statement_details: nil,
|
|
3574
3552
|
three_d_secure: nil
|
|
3575
3553
|
)
|
|
3554
|
+
@capture_by = capture_by
|
|
3555
|
+
@capture_delay = capture_delay
|
|
3576
3556
|
@capture_method = capture_method
|
|
3577
3557
|
@cvc_token = cvc_token
|
|
3578
3558
|
@installments = installments
|
|
@@ -3598,76 +3578,26 @@ module Stripe
|
|
|
3598
3578
|
end
|
|
3599
3579
|
|
|
3600
3580
|
class CardPresent < ::Stripe::RequestParams
|
|
3581
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3582
|
+
# Attribute for param field days
|
|
3583
|
+
attr_accessor :days
|
|
3584
|
+
# Attribute for param field hours
|
|
3585
|
+
attr_accessor :hours
|
|
3586
|
+
|
|
3587
|
+
def initialize(days: nil, hours: nil)
|
|
3588
|
+
@days = days
|
|
3589
|
+
@hours = hours
|
|
3590
|
+
end
|
|
3591
|
+
end
|
|
3592
|
+
|
|
3601
3593
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3602
3594
|
class MoneyServices < ::Stripe::RequestParams
|
|
3603
3595
|
class AccountFunding < ::Stripe::RequestParams
|
|
3604
|
-
class LiquidAsset < ::Stripe::RequestParams
|
|
3605
|
-
class Crypto < ::Stripe::RequestParams
|
|
3606
|
-
# The cryptocurrency currency code (e.g. BTC, ETH).
|
|
3607
|
-
attr_accessor :currency_code
|
|
3608
|
-
|
|
3609
|
-
def initialize(currency_code: nil)
|
|
3610
|
-
@currency_code = currency_code
|
|
3611
|
-
end
|
|
3612
|
-
end
|
|
3613
|
-
|
|
3614
|
-
class Security < ::Stripe::RequestParams
|
|
3615
|
-
# The security's ticker symbol (e.g. AAPL).
|
|
3616
|
-
attr_accessor :ticker_symbol
|
|
3617
|
-
|
|
3618
|
-
def initialize(ticker_symbol: nil)
|
|
3619
|
-
@ticker_symbol = ticker_symbol
|
|
3620
|
-
end
|
|
3621
|
-
end
|
|
3622
|
-
# Details for a cryptocurrency liquid asset funding transaction.
|
|
3623
|
-
attr_accessor :crypto
|
|
3624
|
-
# Details for a security liquid asset funding transaction.
|
|
3625
|
-
attr_accessor :security
|
|
3626
|
-
|
|
3627
|
-
def initialize(crypto: nil, security: nil)
|
|
3628
|
-
@crypto = crypto
|
|
3629
|
-
@security = security
|
|
3630
|
-
end
|
|
3631
|
-
end
|
|
3632
|
-
|
|
3633
|
-
class Wallet < ::Stripe::RequestParams
|
|
3634
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3635
|
-
class Merchant < ::Stripe::RequestParams
|
|
3636
|
-
# The merchant category code of the merchant.
|
|
3637
|
-
attr_accessor :mcc
|
|
3638
|
-
# The merchant's name.
|
|
3639
|
-
attr_accessor :name
|
|
3640
|
-
|
|
3641
|
-
def initialize(mcc: nil, name: nil)
|
|
3642
|
-
@mcc = mcc
|
|
3643
|
-
@name = name
|
|
3644
|
-
end
|
|
3645
|
-
end
|
|
3646
|
-
# The merchant where the staged wallet purchase is made.
|
|
3647
|
-
attr_accessor :merchant
|
|
3648
|
-
|
|
3649
|
-
def initialize(merchant: nil)
|
|
3650
|
-
@merchant = merchant
|
|
3651
|
-
end
|
|
3652
|
-
end
|
|
3653
|
-
# Details for a staged purchase.
|
|
3654
|
-
attr_accessor :staged_purchase
|
|
3655
|
-
|
|
3656
|
-
def initialize(staged_purchase: nil)
|
|
3657
|
-
@staged_purchase = staged_purchase
|
|
3658
|
-
end
|
|
3659
|
-
end
|
|
3660
3596
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3661
3597
|
attr_accessor :digital_asset_category
|
|
3662
|
-
# Details for a liquid asset (crypto or security) funding transaction.
|
|
3663
|
-
attr_accessor :liquid_asset
|
|
3664
|
-
# Details for a wallet funding transaction.
|
|
3665
|
-
attr_accessor :wallet
|
|
3666
3598
|
|
|
3667
|
-
def initialize(digital_asset_category: nil
|
|
3599
|
+
def initialize(digital_asset_category: nil)
|
|
3668
3600
|
@digital_asset_category = digital_asset_category
|
|
3669
|
-
@liquid_asset = liquid_asset
|
|
3670
|
-
@wallet = wallet
|
|
3671
3601
|
end
|
|
3672
3602
|
end
|
|
3673
3603
|
# Payment method specific account funding transaction details.
|
|
@@ -3693,6 +3623,14 @@ module Stripe
|
|
|
3693
3623
|
@requested_priority = requested_priority
|
|
3694
3624
|
end
|
|
3695
3625
|
end
|
|
3626
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3627
|
+
#
|
|
3628
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3629
|
+
attr_accessor :capture_by
|
|
3630
|
+
# The number of days or hours to delay the capture of the funds. You can set both days and hours as long as the total delay does not exceed 30 days.
|
|
3631
|
+
#
|
|
3632
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3633
|
+
attr_accessor :capture_delay
|
|
3696
3634
|
# Controls when the funds are captured from the customer's account.
|
|
3697
3635
|
#
|
|
3698
3636
|
# 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.
|
|
@@ -3705,23 +3643,31 @@ module Stripe
|
|
|
3705
3643
|
attr_accessor :request_extended_authorization
|
|
3706
3644
|
# Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
|
|
3707
3645
|
attr_accessor :request_incremental_authorization_support
|
|
3646
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
3647
|
+
attr_accessor :request_multicapture
|
|
3708
3648
|
# Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
|
|
3709
3649
|
attr_accessor :request_reauthorization
|
|
3710
3650
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
3711
3651
|
attr_accessor :routing
|
|
3712
3652
|
|
|
3713
3653
|
def initialize(
|
|
3654
|
+
capture_by: nil,
|
|
3655
|
+
capture_delay: nil,
|
|
3714
3656
|
capture_method: nil,
|
|
3715
3657
|
payment_details: nil,
|
|
3716
3658
|
request_extended_authorization: nil,
|
|
3717
3659
|
request_incremental_authorization_support: nil,
|
|
3660
|
+
request_multicapture: nil,
|
|
3718
3661
|
request_reauthorization: nil,
|
|
3719
3662
|
routing: nil
|
|
3720
3663
|
)
|
|
3664
|
+
@capture_by = capture_by
|
|
3665
|
+
@capture_delay = capture_delay
|
|
3721
3666
|
@capture_method = capture_method
|
|
3722
3667
|
@payment_details = payment_details
|
|
3723
3668
|
@request_extended_authorization = request_extended_authorization
|
|
3724
3669
|
@request_incremental_authorization_support = request_incremental_authorization_support
|
|
3670
|
+
@request_multicapture = request_multicapture
|
|
3725
3671
|
@request_reauthorization = request_reauthorization
|
|
3726
3672
|
@routing = routing
|
|
3727
3673
|
end
|
|
@@ -3763,6 +3709,18 @@ module Stripe
|
|
|
3763
3709
|
@static_address = static_address
|
|
3764
3710
|
end
|
|
3765
3711
|
end
|
|
3712
|
+
|
|
3713
|
+
class TransactionVerificationOptions < ::Stripe::RequestParams
|
|
3714
|
+
# The network on which the transaction was submitted.
|
|
3715
|
+
attr_accessor :network
|
|
3716
|
+
# The hash of the onchain transaction to verify.
|
|
3717
|
+
attr_accessor :transaction_hash
|
|
3718
|
+
|
|
3719
|
+
def initialize(network: nil, transaction_hash: nil)
|
|
3720
|
+
@network = network
|
|
3721
|
+
@transaction_hash = transaction_hash
|
|
3722
|
+
end
|
|
3723
|
+
end
|
|
3766
3724
|
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3767
3725
|
attr_accessor :deposit_options
|
|
3768
3726
|
# The mode of the crypto payment.
|
|
@@ -3777,11 +3735,19 @@ module Stripe
|
|
|
3777
3735
|
#
|
|
3778
3736
|
# 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`.
|
|
3779
3737
|
attr_accessor :setup_future_usage
|
|
3738
|
+
# Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
|
|
3739
|
+
attr_accessor :transaction_verification_options
|
|
3780
3740
|
|
|
3781
|
-
def initialize(
|
|
3741
|
+
def initialize(
|
|
3742
|
+
deposit_options: nil,
|
|
3743
|
+
mode: nil,
|
|
3744
|
+
setup_future_usage: nil,
|
|
3745
|
+
transaction_verification_options: nil
|
|
3746
|
+
)
|
|
3782
3747
|
@deposit_options = deposit_options
|
|
3783
3748
|
@mode = mode
|
|
3784
3749
|
@setup_future_usage = setup_future_usage
|
|
3750
|
+
@transaction_verification_options = transaction_verification_options
|
|
3785
3751
|
end
|
|
3786
3752
|
end
|
|
3787
3753
|
|
|
@@ -3866,7 +3832,24 @@ module Stripe
|
|
|
3866
3832
|
end
|
|
3867
3833
|
end
|
|
3868
3834
|
|
|
3869
|
-
class GiftCard < ::Stripe::RequestParams
|
|
3835
|
+
class GiftCard < ::Stripe::RequestParams
|
|
3836
|
+
# Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
|
|
3837
|
+
attr_accessor :ignore_application_fee
|
|
3838
|
+
# Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card.
|
|
3839
|
+
attr_accessor :ignore_transfer_data
|
|
3840
|
+
# Request partial authorization on this PaymentIntent.
|
|
3841
|
+
attr_accessor :request_partial_authorization
|
|
3842
|
+
|
|
3843
|
+
def initialize(
|
|
3844
|
+
ignore_application_fee: nil,
|
|
3845
|
+
ignore_transfer_data: nil,
|
|
3846
|
+
request_partial_authorization: nil
|
|
3847
|
+
)
|
|
3848
|
+
@ignore_application_fee = ignore_application_fee
|
|
3849
|
+
@ignore_transfer_data = ignore_transfer_data
|
|
3850
|
+
@request_partial_authorization = request_partial_authorization
|
|
3851
|
+
end
|
|
3852
|
+
end
|
|
3870
3853
|
|
|
3871
3854
|
class Giropay < ::Stripe::RequestParams
|
|
3872
3855
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -5878,6 +5861,8 @@ module Stripe
|
|
|
5878
5861
|
class WechatPay < ::Stripe::RequestParams
|
|
5879
5862
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
5880
5863
|
attr_accessor :app_id
|
|
5864
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
5865
|
+
attr_accessor :buyer_id
|
|
5881
5866
|
# The client type that the end customer will pay from
|
|
5882
5867
|
attr_accessor :client
|
|
5883
5868
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -5891,8 +5876,9 @@ module Stripe
|
|
|
5891
5876
|
# 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`.
|
|
5892
5877
|
attr_accessor :setup_future_usage
|
|
5893
5878
|
|
|
5894
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
5879
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
5895
5880
|
@app_id = app_id
|
|
5881
|
+
@buyer_id = buyer_id
|
|
5896
5882
|
@client = client
|
|
5897
5883
|
@setup_future_usage = setup_future_usage
|
|
5898
5884
|
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentIntentUpdateCryptoRefundAddressParams < ::Stripe::RequestParams
|
|
6
|
+
# Specifies which fields in the response should be expanded.
|
|
7
|
+
attr_accessor :expand
|
|
8
|
+
# The blockchain network for the refund address.
|
|
9
|
+
attr_accessor :network
|
|
10
|
+
# The wallet address that should receive refunds for deposits on the specified network.
|
|
11
|
+
attr_accessor :refund_address
|
|
12
|
+
|
|
13
|
+
def initialize(expand: nil, network: nil, refund_address: nil)
|
|
14
|
+
@expand = expand
|
|
15
|
+
@network = network
|
|
16
|
+
@refund_address = refund_address
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|