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
|
@@ -1951,7 +1951,7 @@ module Stripe
|
|
|
1951
1951
|
|
|
1952
1952
|
class MoneyServices < ::Stripe::RequestParams
|
|
1953
1953
|
class AccountFunding < ::Stripe::RequestParams
|
|
1954
|
-
class
|
|
1954
|
+
class SenderDetails < ::Stripe::RequestParams
|
|
1955
1955
|
class Address < ::Stripe::RequestParams
|
|
1956
1956
|
# City, district, suburb, town, or village.
|
|
1957
1957
|
attr_accessor :city
|
|
@@ -2003,113 +2003,126 @@ module Stripe
|
|
|
2003
2003
|
attr_accessor :date_of_birth
|
|
2004
2004
|
# Email address.
|
|
2005
2005
|
attr_accessor :email
|
|
2006
|
-
#
|
|
2007
|
-
attr_accessor :
|
|
2006
|
+
# Given (first) name.
|
|
2007
|
+
attr_accessor :given_name
|
|
2008
2008
|
# Phone number.
|
|
2009
2009
|
attr_accessor :phone
|
|
2010
|
+
# Surname (family name).
|
|
2011
|
+
attr_accessor :surname
|
|
2010
2012
|
|
|
2011
|
-
def initialize(
|
|
2013
|
+
def initialize(
|
|
2014
|
+
address: nil,
|
|
2015
|
+
date_of_birth: nil,
|
|
2016
|
+
email: nil,
|
|
2017
|
+
given_name: nil,
|
|
2018
|
+
phone: nil,
|
|
2019
|
+
surname: nil
|
|
2020
|
+
)
|
|
2012
2021
|
@address = address
|
|
2013
2022
|
@date_of_birth = date_of_birth
|
|
2014
2023
|
@email = email
|
|
2015
|
-
@
|
|
2024
|
+
@given_name = given_name
|
|
2016
2025
|
@phone = phone
|
|
2026
|
+
@surname = surname
|
|
2017
2027
|
end
|
|
2018
2028
|
end
|
|
2029
|
+
# Inline identity details for the sender of this account funding transaction.
|
|
2030
|
+
attr_accessor :sender_details
|
|
2019
2031
|
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2025
|
-
attr_accessor :country
|
|
2026
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
2027
|
-
attr_accessor :line1
|
|
2028
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2029
|
-
attr_accessor :line2
|
|
2030
|
-
# ZIP or postal code.
|
|
2031
|
-
attr_accessor :postal_code
|
|
2032
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2033
|
-
attr_accessor :state
|
|
2034
|
-
|
|
2035
|
-
def initialize(
|
|
2036
|
-
city: nil,
|
|
2037
|
-
country: nil,
|
|
2038
|
-
line1: nil,
|
|
2039
|
-
line2: nil,
|
|
2040
|
-
postal_code: nil,
|
|
2041
|
-
state: nil
|
|
2042
|
-
)
|
|
2043
|
-
@city = city
|
|
2044
|
-
@country = country
|
|
2045
|
-
@line1 = line1
|
|
2046
|
-
@line2 = line2
|
|
2047
|
-
@postal_code = postal_code
|
|
2048
|
-
@state = state
|
|
2049
|
-
end
|
|
2050
|
-
end
|
|
2032
|
+
def initialize(sender_details: nil)
|
|
2033
|
+
@sender_details = sender_details
|
|
2034
|
+
end
|
|
2035
|
+
end
|
|
2051
2036
|
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2037
|
+
class BeneficiaryDetails < ::Stripe::RequestParams
|
|
2038
|
+
class Address < ::Stripe::RequestParams
|
|
2039
|
+
# City, district, suburb, town, or village.
|
|
2040
|
+
attr_accessor :city
|
|
2041
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2042
|
+
attr_accessor :country
|
|
2043
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2044
|
+
attr_accessor :line1
|
|
2045
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2046
|
+
attr_accessor :line2
|
|
2047
|
+
# ZIP or postal code.
|
|
2048
|
+
attr_accessor :postal_code
|
|
2049
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2050
|
+
attr_accessor :state
|
|
2059
2051
|
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2052
|
+
def initialize(
|
|
2053
|
+
city: nil,
|
|
2054
|
+
country: nil,
|
|
2055
|
+
line1: nil,
|
|
2056
|
+
line2: nil,
|
|
2057
|
+
postal_code: nil,
|
|
2058
|
+
state: nil
|
|
2059
|
+
)
|
|
2060
|
+
@city = city
|
|
2061
|
+
@country = country
|
|
2062
|
+
@line1 = line1
|
|
2063
|
+
@line2 = line2
|
|
2064
|
+
@postal_code = postal_code
|
|
2065
|
+
@state = state
|
|
2065
2066
|
end
|
|
2066
|
-
|
|
2067
|
-
attr_accessor :address
|
|
2068
|
-
# Date of birth.
|
|
2069
|
-
attr_accessor :date_of_birth
|
|
2070
|
-
# Email address.
|
|
2071
|
-
attr_accessor :email
|
|
2072
|
-
# Full name.
|
|
2073
|
-
attr_accessor :name
|
|
2074
|
-
# Phone number.
|
|
2075
|
-
attr_accessor :phone
|
|
2067
|
+
end
|
|
2076
2068
|
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2069
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
2070
|
+
# Day of birth, between 1 and 31.
|
|
2071
|
+
attr_accessor :day
|
|
2072
|
+
# Month of birth, between 1 and 12.
|
|
2073
|
+
attr_accessor :month
|
|
2074
|
+
# Four-digit year of birth.
|
|
2075
|
+
attr_accessor :year
|
|
2076
|
+
|
|
2077
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2078
|
+
@day = day
|
|
2079
|
+
@month = month
|
|
2080
|
+
@year = year
|
|
2083
2081
|
end
|
|
2084
2082
|
end
|
|
2085
|
-
#
|
|
2086
|
-
attr_accessor :
|
|
2087
|
-
#
|
|
2088
|
-
attr_accessor :
|
|
2089
|
-
#
|
|
2090
|
-
attr_accessor :
|
|
2091
|
-
#
|
|
2092
|
-
attr_accessor :
|
|
2083
|
+
# An opaque identifier for the beneficiary's account (e.g. bank account number, card first6+last4, or other unique identifier).
|
|
2084
|
+
attr_accessor :account_reference
|
|
2085
|
+
# Address.
|
|
2086
|
+
attr_accessor :address
|
|
2087
|
+
# Date of birth.
|
|
2088
|
+
attr_accessor :date_of_birth
|
|
2089
|
+
# Email address.
|
|
2090
|
+
attr_accessor :email
|
|
2091
|
+
# Given (first) name.
|
|
2092
|
+
attr_accessor :given_name
|
|
2093
|
+
# Phone number.
|
|
2094
|
+
attr_accessor :phone
|
|
2095
|
+
# Surname (family name).
|
|
2096
|
+
attr_accessor :surname
|
|
2093
2097
|
|
|
2094
2098
|
def initialize(
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
+
account_reference: nil,
|
|
2100
|
+
address: nil,
|
|
2101
|
+
date_of_birth: nil,
|
|
2102
|
+
email: nil,
|
|
2103
|
+
given_name: nil,
|
|
2104
|
+
phone: nil,
|
|
2105
|
+
surname: nil
|
|
2099
2106
|
)
|
|
2100
|
-
@
|
|
2101
|
-
@
|
|
2102
|
-
@
|
|
2103
|
-
@
|
|
2107
|
+
@account_reference = account_reference
|
|
2108
|
+
@address = address
|
|
2109
|
+
@date_of_birth = date_of_birth
|
|
2110
|
+
@email = email
|
|
2111
|
+
@given_name = given_name
|
|
2112
|
+
@phone = phone
|
|
2113
|
+
@surname = surname
|
|
2104
2114
|
end
|
|
2105
2115
|
end
|
|
2106
|
-
# Account funding transaction details including sender
|
|
2116
|
+
# Account funding transaction details including sender information.
|
|
2107
2117
|
attr_accessor :account_funding
|
|
2118
|
+
# Inline identity details for the beneficiary of this transaction.
|
|
2119
|
+
attr_accessor :beneficiary_details
|
|
2108
2120
|
# The type of money services transaction.
|
|
2109
2121
|
attr_accessor :transaction_type
|
|
2110
2122
|
|
|
2111
|
-
def initialize(account_funding: nil, transaction_type: nil)
|
|
2123
|
+
def initialize(account_funding: nil, beneficiary_details: nil, transaction_type: nil)
|
|
2112
2124
|
@account_funding = account_funding
|
|
2125
|
+
@beneficiary_details = beneficiary_details
|
|
2113
2126
|
@transaction_type = transaction_type
|
|
2114
2127
|
end
|
|
2115
2128
|
end
|
|
@@ -2575,6 +2588,7 @@ module Stripe
|
|
|
2575
2588
|
|
|
2576
2589
|
class Sunbit < ::Stripe::RequestParams; end
|
|
2577
2590
|
class Swish < ::Stripe::RequestParams; end
|
|
2591
|
+
class Tamara < ::Stripe::RequestParams; end
|
|
2578
2592
|
class Twint < ::Stripe::RequestParams; end
|
|
2579
2593
|
|
|
2580
2594
|
class Upi < ::Stripe::RequestParams
|
|
@@ -2756,6 +2770,8 @@ module Stripe
|
|
|
2756
2770
|
attr_accessor :sunbit
|
|
2757
2771
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
2758
2772
|
attr_accessor :swish
|
|
2773
|
+
# If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
|
|
2774
|
+
attr_accessor :tamara
|
|
2759
2775
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
2760
2776
|
attr_accessor :twint
|
|
2761
2777
|
# 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.
|
|
@@ -2832,6 +2848,7 @@ module Stripe
|
|
|
2832
2848
|
stripe_balance: nil,
|
|
2833
2849
|
sunbit: nil,
|
|
2834
2850
|
swish: nil,
|
|
2851
|
+
tamara: nil,
|
|
2835
2852
|
twint: nil,
|
|
2836
2853
|
type: nil,
|
|
2837
2854
|
upi: nil,
|
|
@@ -2901,6 +2918,7 @@ module Stripe
|
|
|
2901
2918
|
@stripe_balance = stripe_balance
|
|
2902
2919
|
@sunbit = sunbit
|
|
2903
2920
|
@swish = swish
|
|
2921
|
+
@tamara = tamara
|
|
2904
2922
|
@twint = twint
|
|
2905
2923
|
@type = type
|
|
2906
2924
|
@upi = upi
|
|
@@ -3200,6 +3218,18 @@ module Stripe
|
|
|
3200
3218
|
end
|
|
3201
3219
|
|
|
3202
3220
|
class Card < ::Stripe::RequestParams
|
|
3221
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3222
|
+
# Attribute for param field days
|
|
3223
|
+
attr_accessor :days
|
|
3224
|
+
# Attribute for param field hours
|
|
3225
|
+
attr_accessor :hours
|
|
3226
|
+
|
|
3227
|
+
def initialize(days: nil, hours: nil)
|
|
3228
|
+
@days = days
|
|
3229
|
+
@hours = hours
|
|
3230
|
+
end
|
|
3231
|
+
end
|
|
3232
|
+
|
|
3203
3233
|
class Installments < ::Stripe::RequestParams
|
|
3204
3234
|
class Plan < ::Stripe::RequestParams
|
|
3205
3235
|
# For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
@@ -3276,73 +3306,11 @@ module Stripe
|
|
|
3276
3306
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3277
3307
|
class MoneyServices < ::Stripe::RequestParams
|
|
3278
3308
|
class AccountFunding < ::Stripe::RequestParams
|
|
3279
|
-
class LiquidAsset < ::Stripe::RequestParams
|
|
3280
|
-
class Crypto < ::Stripe::RequestParams
|
|
3281
|
-
# The cryptocurrency currency code (e.g. BTC, ETH).
|
|
3282
|
-
attr_accessor :currency_code
|
|
3283
|
-
|
|
3284
|
-
def initialize(currency_code: nil)
|
|
3285
|
-
@currency_code = currency_code
|
|
3286
|
-
end
|
|
3287
|
-
end
|
|
3288
|
-
|
|
3289
|
-
class Security < ::Stripe::RequestParams
|
|
3290
|
-
# The security's ticker symbol (e.g. AAPL).
|
|
3291
|
-
attr_accessor :ticker_symbol
|
|
3292
|
-
|
|
3293
|
-
def initialize(ticker_symbol: nil)
|
|
3294
|
-
@ticker_symbol = ticker_symbol
|
|
3295
|
-
end
|
|
3296
|
-
end
|
|
3297
|
-
# Details for a cryptocurrency liquid asset funding transaction.
|
|
3298
|
-
attr_accessor :crypto
|
|
3299
|
-
# Details for a security liquid asset funding transaction.
|
|
3300
|
-
attr_accessor :security
|
|
3301
|
-
|
|
3302
|
-
def initialize(crypto: nil, security: nil)
|
|
3303
|
-
@crypto = crypto
|
|
3304
|
-
@security = security
|
|
3305
|
-
end
|
|
3306
|
-
end
|
|
3307
|
-
|
|
3308
|
-
class Wallet < ::Stripe::RequestParams
|
|
3309
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3310
|
-
class Merchant < ::Stripe::RequestParams
|
|
3311
|
-
# The merchant category code of the merchant.
|
|
3312
|
-
attr_accessor :mcc
|
|
3313
|
-
# The merchant's name.
|
|
3314
|
-
attr_accessor :name
|
|
3315
|
-
|
|
3316
|
-
def initialize(mcc: nil, name: nil)
|
|
3317
|
-
@mcc = mcc
|
|
3318
|
-
@name = name
|
|
3319
|
-
end
|
|
3320
|
-
end
|
|
3321
|
-
# The merchant where the staged wallet purchase is made.
|
|
3322
|
-
attr_accessor :merchant
|
|
3323
|
-
|
|
3324
|
-
def initialize(merchant: nil)
|
|
3325
|
-
@merchant = merchant
|
|
3326
|
-
end
|
|
3327
|
-
end
|
|
3328
|
-
# Details for a staged purchase.
|
|
3329
|
-
attr_accessor :staged_purchase
|
|
3330
|
-
|
|
3331
|
-
def initialize(staged_purchase: nil)
|
|
3332
|
-
@staged_purchase = staged_purchase
|
|
3333
|
-
end
|
|
3334
|
-
end
|
|
3335
3309
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3336
3310
|
attr_accessor :digital_asset_category
|
|
3337
|
-
# Details for a liquid asset (crypto or security) funding transaction.
|
|
3338
|
-
attr_accessor :liquid_asset
|
|
3339
|
-
# Details for a wallet funding transaction.
|
|
3340
|
-
attr_accessor :wallet
|
|
3341
3311
|
|
|
3342
|
-
def initialize(digital_asset_category: nil
|
|
3312
|
+
def initialize(digital_asset_category: nil)
|
|
3343
3313
|
@digital_asset_category = digital_asset_category
|
|
3344
|
-
@liquid_asset = liquid_asset
|
|
3345
|
-
@wallet = wallet
|
|
3346
3314
|
end
|
|
3347
3315
|
end
|
|
3348
3316
|
# Payment method specific account funding transaction details.
|
|
@@ -3476,6 +3444,14 @@ module Stripe
|
|
|
3476
3444
|
@version = version
|
|
3477
3445
|
end
|
|
3478
3446
|
end
|
|
3447
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3448
|
+
#
|
|
3449
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3450
|
+
attr_accessor :capture_by
|
|
3451
|
+
# 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.
|
|
3452
|
+
#
|
|
3453
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3454
|
+
attr_accessor :capture_delay
|
|
3479
3455
|
# Controls when the funds are captured from the customer's account.
|
|
3480
3456
|
#
|
|
3481
3457
|
# 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.
|
|
@@ -3537,6 +3513,8 @@ module Stripe
|
|
|
3537
3513
|
attr_accessor :three_d_secure
|
|
3538
3514
|
|
|
3539
3515
|
def initialize(
|
|
3516
|
+
capture_by: nil,
|
|
3517
|
+
capture_delay: nil,
|
|
3540
3518
|
capture_method: nil,
|
|
3541
3519
|
cvc_token: nil,
|
|
3542
3520
|
installments: nil,
|
|
@@ -3559,6 +3537,8 @@ module Stripe
|
|
|
3559
3537
|
statement_details: nil,
|
|
3560
3538
|
three_d_secure: nil
|
|
3561
3539
|
)
|
|
3540
|
+
@capture_by = capture_by
|
|
3541
|
+
@capture_delay = capture_delay
|
|
3562
3542
|
@capture_method = capture_method
|
|
3563
3543
|
@cvc_token = cvc_token
|
|
3564
3544
|
@installments = installments
|
|
@@ -3584,76 +3564,26 @@ module Stripe
|
|
|
3584
3564
|
end
|
|
3585
3565
|
|
|
3586
3566
|
class CardPresent < ::Stripe::RequestParams
|
|
3567
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3568
|
+
# Attribute for param field days
|
|
3569
|
+
attr_accessor :days
|
|
3570
|
+
# Attribute for param field hours
|
|
3571
|
+
attr_accessor :hours
|
|
3572
|
+
|
|
3573
|
+
def initialize(days: nil, hours: nil)
|
|
3574
|
+
@days = days
|
|
3575
|
+
@hours = hours
|
|
3576
|
+
end
|
|
3577
|
+
end
|
|
3578
|
+
|
|
3587
3579
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3588
3580
|
class MoneyServices < ::Stripe::RequestParams
|
|
3589
3581
|
class AccountFunding < ::Stripe::RequestParams
|
|
3590
|
-
class LiquidAsset < ::Stripe::RequestParams
|
|
3591
|
-
class Crypto < ::Stripe::RequestParams
|
|
3592
|
-
# The cryptocurrency currency code (e.g. BTC, ETH).
|
|
3593
|
-
attr_accessor :currency_code
|
|
3594
|
-
|
|
3595
|
-
def initialize(currency_code: nil)
|
|
3596
|
-
@currency_code = currency_code
|
|
3597
|
-
end
|
|
3598
|
-
end
|
|
3599
|
-
|
|
3600
|
-
class Security < ::Stripe::RequestParams
|
|
3601
|
-
# The security's ticker symbol (e.g. AAPL).
|
|
3602
|
-
attr_accessor :ticker_symbol
|
|
3603
|
-
|
|
3604
|
-
def initialize(ticker_symbol: nil)
|
|
3605
|
-
@ticker_symbol = ticker_symbol
|
|
3606
|
-
end
|
|
3607
|
-
end
|
|
3608
|
-
# Details for a cryptocurrency liquid asset funding transaction.
|
|
3609
|
-
attr_accessor :crypto
|
|
3610
|
-
# Details for a security liquid asset funding transaction.
|
|
3611
|
-
attr_accessor :security
|
|
3612
|
-
|
|
3613
|
-
def initialize(crypto: nil, security: nil)
|
|
3614
|
-
@crypto = crypto
|
|
3615
|
-
@security = security
|
|
3616
|
-
end
|
|
3617
|
-
end
|
|
3618
|
-
|
|
3619
|
-
class Wallet < ::Stripe::RequestParams
|
|
3620
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3621
|
-
class Merchant < ::Stripe::RequestParams
|
|
3622
|
-
# The merchant category code of the merchant.
|
|
3623
|
-
attr_accessor :mcc
|
|
3624
|
-
# The merchant's name.
|
|
3625
|
-
attr_accessor :name
|
|
3626
|
-
|
|
3627
|
-
def initialize(mcc: nil, name: nil)
|
|
3628
|
-
@mcc = mcc
|
|
3629
|
-
@name = name
|
|
3630
|
-
end
|
|
3631
|
-
end
|
|
3632
|
-
# The merchant where the staged wallet purchase is made.
|
|
3633
|
-
attr_accessor :merchant
|
|
3634
|
-
|
|
3635
|
-
def initialize(merchant: nil)
|
|
3636
|
-
@merchant = merchant
|
|
3637
|
-
end
|
|
3638
|
-
end
|
|
3639
|
-
# Details for a staged purchase.
|
|
3640
|
-
attr_accessor :staged_purchase
|
|
3641
|
-
|
|
3642
|
-
def initialize(staged_purchase: nil)
|
|
3643
|
-
@staged_purchase = staged_purchase
|
|
3644
|
-
end
|
|
3645
|
-
end
|
|
3646
3582
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3647
3583
|
attr_accessor :digital_asset_category
|
|
3648
|
-
# Details for a liquid asset (crypto or security) funding transaction.
|
|
3649
|
-
attr_accessor :liquid_asset
|
|
3650
|
-
# Details for a wallet funding transaction.
|
|
3651
|
-
attr_accessor :wallet
|
|
3652
3584
|
|
|
3653
|
-
def initialize(digital_asset_category: nil
|
|
3585
|
+
def initialize(digital_asset_category: nil)
|
|
3654
3586
|
@digital_asset_category = digital_asset_category
|
|
3655
|
-
@liquid_asset = liquid_asset
|
|
3656
|
-
@wallet = wallet
|
|
3657
3587
|
end
|
|
3658
3588
|
end
|
|
3659
3589
|
# Payment method specific account funding transaction details.
|
|
@@ -3679,6 +3609,14 @@ module Stripe
|
|
|
3679
3609
|
@requested_priority = requested_priority
|
|
3680
3610
|
end
|
|
3681
3611
|
end
|
|
3612
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3613
|
+
#
|
|
3614
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3615
|
+
attr_accessor :capture_by
|
|
3616
|
+
# 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.
|
|
3617
|
+
#
|
|
3618
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3619
|
+
attr_accessor :capture_delay
|
|
3682
3620
|
# Controls when the funds are captured from the customer's account.
|
|
3683
3621
|
#
|
|
3684
3622
|
# 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.
|
|
@@ -3691,23 +3629,31 @@ module Stripe
|
|
|
3691
3629
|
attr_accessor :request_extended_authorization
|
|
3692
3630
|
# 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.
|
|
3693
3631
|
attr_accessor :request_incremental_authorization_support
|
|
3632
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
3633
|
+
attr_accessor :request_multicapture
|
|
3694
3634
|
# Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
|
|
3695
3635
|
attr_accessor :request_reauthorization
|
|
3696
3636
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
3697
3637
|
attr_accessor :routing
|
|
3698
3638
|
|
|
3699
3639
|
def initialize(
|
|
3640
|
+
capture_by: nil,
|
|
3641
|
+
capture_delay: nil,
|
|
3700
3642
|
capture_method: nil,
|
|
3701
3643
|
payment_details: nil,
|
|
3702
3644
|
request_extended_authorization: nil,
|
|
3703
3645
|
request_incremental_authorization_support: nil,
|
|
3646
|
+
request_multicapture: nil,
|
|
3704
3647
|
request_reauthorization: nil,
|
|
3705
3648
|
routing: nil
|
|
3706
3649
|
)
|
|
3650
|
+
@capture_by = capture_by
|
|
3651
|
+
@capture_delay = capture_delay
|
|
3707
3652
|
@capture_method = capture_method
|
|
3708
3653
|
@payment_details = payment_details
|
|
3709
3654
|
@request_extended_authorization = request_extended_authorization
|
|
3710
3655
|
@request_incremental_authorization_support = request_incremental_authorization_support
|
|
3656
|
+
@request_multicapture = request_multicapture
|
|
3711
3657
|
@request_reauthorization = request_reauthorization
|
|
3712
3658
|
@routing = routing
|
|
3713
3659
|
end
|
|
@@ -3749,6 +3695,18 @@ module Stripe
|
|
|
3749
3695
|
@static_address = static_address
|
|
3750
3696
|
end
|
|
3751
3697
|
end
|
|
3698
|
+
|
|
3699
|
+
class TransactionVerificationOptions < ::Stripe::RequestParams
|
|
3700
|
+
# The network on which the transaction was submitted.
|
|
3701
|
+
attr_accessor :network
|
|
3702
|
+
# The hash of the onchain transaction to verify.
|
|
3703
|
+
attr_accessor :transaction_hash
|
|
3704
|
+
|
|
3705
|
+
def initialize(network: nil, transaction_hash: nil)
|
|
3706
|
+
@network = network
|
|
3707
|
+
@transaction_hash = transaction_hash
|
|
3708
|
+
end
|
|
3709
|
+
end
|
|
3752
3710
|
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3753
3711
|
attr_accessor :deposit_options
|
|
3754
3712
|
# The mode of the crypto payment.
|
|
@@ -3763,11 +3721,19 @@ module Stripe
|
|
|
3763
3721
|
#
|
|
3764
3722
|
# 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`.
|
|
3765
3723
|
attr_accessor :setup_future_usage
|
|
3724
|
+
# Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
|
|
3725
|
+
attr_accessor :transaction_verification_options
|
|
3766
3726
|
|
|
3767
|
-
def initialize(
|
|
3727
|
+
def initialize(
|
|
3728
|
+
deposit_options: nil,
|
|
3729
|
+
mode: nil,
|
|
3730
|
+
setup_future_usage: nil,
|
|
3731
|
+
transaction_verification_options: nil
|
|
3732
|
+
)
|
|
3768
3733
|
@deposit_options = deposit_options
|
|
3769
3734
|
@mode = mode
|
|
3770
3735
|
@setup_future_usage = setup_future_usage
|
|
3736
|
+
@transaction_verification_options = transaction_verification_options
|
|
3771
3737
|
end
|
|
3772
3738
|
end
|
|
3773
3739
|
|
|
@@ -3852,7 +3818,24 @@ module Stripe
|
|
|
3852
3818
|
end
|
|
3853
3819
|
end
|
|
3854
3820
|
|
|
3855
|
-
class GiftCard < ::Stripe::RequestParams
|
|
3821
|
+
class GiftCard < ::Stripe::RequestParams
|
|
3822
|
+
# Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
|
|
3823
|
+
attr_accessor :ignore_application_fee
|
|
3824
|
+
# Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card.
|
|
3825
|
+
attr_accessor :ignore_transfer_data
|
|
3826
|
+
# Request partial authorization on this PaymentIntent.
|
|
3827
|
+
attr_accessor :request_partial_authorization
|
|
3828
|
+
|
|
3829
|
+
def initialize(
|
|
3830
|
+
ignore_application_fee: nil,
|
|
3831
|
+
ignore_transfer_data: nil,
|
|
3832
|
+
request_partial_authorization: nil
|
|
3833
|
+
)
|
|
3834
|
+
@ignore_application_fee = ignore_application_fee
|
|
3835
|
+
@ignore_transfer_data = ignore_transfer_data
|
|
3836
|
+
@request_partial_authorization = request_partial_authorization
|
|
3837
|
+
end
|
|
3838
|
+
end
|
|
3856
3839
|
|
|
3857
3840
|
class Giropay < ::Stripe::RequestParams
|
|
3858
3841
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -5864,6 +5847,8 @@ module Stripe
|
|
|
5864
5847
|
class WechatPay < ::Stripe::RequestParams
|
|
5865
5848
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
5866
5849
|
attr_accessor :app_id
|
|
5850
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
5851
|
+
attr_accessor :buyer_id
|
|
5867
5852
|
# The client type that the end customer will pay from
|
|
5868
5853
|
attr_accessor :client
|
|
5869
5854
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -5877,8 +5862,9 @@ module Stripe
|
|
|
5877
5862
|
# 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`.
|
|
5878
5863
|
attr_accessor :setup_future_usage
|
|
5879
5864
|
|
|
5880
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
5865
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
5881
5866
|
@app_id = app_id
|
|
5867
|
+
@buyer_id = buyer_id
|
|
5882
5868
|
@client = client
|
|
5883
5869
|
@setup_future_usage = setup_future_usage
|
|
5884
5870
|
end
|