stripe 19.3.0.pre.alpha.2 → 19.3.0.pre.alpha.3
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/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/payment_attempt_record_report_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
- data/lib/stripe/params/payment_intent_confirm_params.rb +72 -67
- data/lib/stripe/params/payment_intent_create_params.rb +72 -67
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
- data/lib/stripe/params/payment_intent_update_params.rb +72 -67
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
- 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/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/v2/billing/contract_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_update_params.rb +1 -1
- data/lib/stripe/params.rb +23 -0
- data/lib/stripe/resources/charge.rb +31 -1
- data/lib/stripe/resources/checkout/session.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +16 -0
- data/lib/stripe/resources/gift_card.rb +144 -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/payment_attempt_record.rb +67 -1
- data/lib/stripe/resources/payment_intent.rb +86 -19
- data/lib/stripe/resources/payment_method.rb +16 -0
- data/lib/stripe/resources/payment_record.rb +67 -1
- data/lib/stripe/resources/setup_intent.rb +2 -0
- 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 +1 -1
- 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/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 +2017 -1228
- metadata +19 -2
|
@@ -255,6 +255,18 @@ module Stripe
|
|
|
255
255
|
@service_not_as_described = service_not_as_described
|
|
256
256
|
end
|
|
257
257
|
end
|
|
258
|
+
|
|
259
|
+
class ProvisionalCredit < ::Stripe::RequestParams
|
|
260
|
+
# The time at which the platform granted the provisional credit to their user.
|
|
261
|
+
attr_accessor :granted_at
|
|
262
|
+
# The time at which the platform revoked the provisional credit from their user.
|
|
263
|
+
attr_accessor :revoked_at
|
|
264
|
+
|
|
265
|
+
def initialize(granted_at: nil, revoked_at: nil)
|
|
266
|
+
@granted_at = granted_at
|
|
267
|
+
@revoked_at = revoked_at
|
|
268
|
+
end
|
|
269
|
+
end
|
|
258
270
|
# The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
259
271
|
attr_accessor :amount
|
|
260
272
|
# Evidence provided for the dispute.
|
|
@@ -263,12 +275,21 @@ module Stripe
|
|
|
263
275
|
attr_accessor :expand
|
|
264
276
|
# 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`.
|
|
265
277
|
attr_accessor :metadata
|
|
278
|
+
# Provisional credit information for this dispute.
|
|
279
|
+
attr_accessor :provisional_credit
|
|
266
280
|
|
|
267
|
-
def initialize(
|
|
281
|
+
def initialize(
|
|
282
|
+
amount: nil,
|
|
283
|
+
evidence: nil,
|
|
284
|
+
expand: nil,
|
|
285
|
+
metadata: nil,
|
|
286
|
+
provisional_credit: nil
|
|
287
|
+
)
|
|
268
288
|
@amount = amount
|
|
269
289
|
@evidence = evidence
|
|
270
290
|
@expand = expand
|
|
271
291
|
@metadata = metadata
|
|
292
|
+
@provisional_credit = provisional_credit
|
|
272
293
|
end
|
|
273
294
|
end
|
|
274
295
|
end
|
|
@@ -11,12 +11,21 @@ module Stripe
|
|
|
11
11
|
attr_accessor :metadata
|
|
12
12
|
# Payment evaluations associated with this reported payment.
|
|
13
13
|
attr_accessor :payment_evaluations
|
|
14
|
+
# The reason the payment attempt was canceled.
|
|
15
|
+
attr_accessor :reason
|
|
14
16
|
|
|
15
|
-
def initialize(
|
|
17
|
+
def initialize(
|
|
18
|
+
canceled_at: nil,
|
|
19
|
+
expand: nil,
|
|
20
|
+
metadata: nil,
|
|
21
|
+
payment_evaluations: nil,
|
|
22
|
+
reason: nil
|
|
23
|
+
)
|
|
16
24
|
@canceled_at = canceled_at
|
|
17
25
|
@expand = expand
|
|
18
26
|
@metadata = metadata
|
|
19
27
|
@payment_evaluations = payment_evaluations
|
|
28
|
+
@reason = reason
|
|
20
29
|
end
|
|
21
30
|
end
|
|
22
31
|
end
|
|
@@ -1881,171 +1881,6 @@ module Stripe
|
|
|
1881
1881
|
end
|
|
1882
1882
|
end
|
|
1883
1883
|
|
|
1884
|
-
class MoneyServices < ::Stripe::RequestParams
|
|
1885
|
-
class AccountFunding < ::Stripe::RequestParams
|
|
1886
|
-
class BeneficiaryDetails < ::Stripe::RequestParams
|
|
1887
|
-
class Address < ::Stripe::RequestParams
|
|
1888
|
-
# City, district, suburb, town, or village.
|
|
1889
|
-
attr_accessor :city
|
|
1890
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1891
|
-
attr_accessor :country
|
|
1892
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1893
|
-
attr_accessor :line1
|
|
1894
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1895
|
-
attr_accessor :line2
|
|
1896
|
-
# ZIP or postal code.
|
|
1897
|
-
attr_accessor :postal_code
|
|
1898
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1899
|
-
attr_accessor :state
|
|
1900
|
-
|
|
1901
|
-
def initialize(
|
|
1902
|
-
city: nil,
|
|
1903
|
-
country: nil,
|
|
1904
|
-
line1: nil,
|
|
1905
|
-
line2: nil,
|
|
1906
|
-
postal_code: nil,
|
|
1907
|
-
state: nil
|
|
1908
|
-
)
|
|
1909
|
-
@city = city
|
|
1910
|
-
@country = country
|
|
1911
|
-
@line1 = line1
|
|
1912
|
-
@line2 = line2
|
|
1913
|
-
@postal_code = postal_code
|
|
1914
|
-
@state = state
|
|
1915
|
-
end
|
|
1916
|
-
end
|
|
1917
|
-
|
|
1918
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
1919
|
-
# Day of birth, between 1 and 31.
|
|
1920
|
-
attr_accessor :day
|
|
1921
|
-
# Month of birth, between 1 and 12.
|
|
1922
|
-
attr_accessor :month
|
|
1923
|
-
# Four-digit year of birth.
|
|
1924
|
-
attr_accessor :year
|
|
1925
|
-
|
|
1926
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
1927
|
-
@day = day
|
|
1928
|
-
@month = month
|
|
1929
|
-
@year = year
|
|
1930
|
-
end
|
|
1931
|
-
end
|
|
1932
|
-
# Address.
|
|
1933
|
-
attr_accessor :address
|
|
1934
|
-
# Date of birth.
|
|
1935
|
-
attr_accessor :date_of_birth
|
|
1936
|
-
# Email address.
|
|
1937
|
-
attr_accessor :email
|
|
1938
|
-
# Full name.
|
|
1939
|
-
attr_accessor :name
|
|
1940
|
-
# Phone number.
|
|
1941
|
-
attr_accessor :phone
|
|
1942
|
-
|
|
1943
|
-
def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
|
|
1944
|
-
@address = address
|
|
1945
|
-
@date_of_birth = date_of_birth
|
|
1946
|
-
@email = email
|
|
1947
|
-
@name = name
|
|
1948
|
-
@phone = phone
|
|
1949
|
-
end
|
|
1950
|
-
end
|
|
1951
|
-
|
|
1952
|
-
class SenderDetails < ::Stripe::RequestParams
|
|
1953
|
-
class Address < ::Stripe::RequestParams
|
|
1954
|
-
# City, district, suburb, town, or village.
|
|
1955
|
-
attr_accessor :city
|
|
1956
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1957
|
-
attr_accessor :country
|
|
1958
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1959
|
-
attr_accessor :line1
|
|
1960
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1961
|
-
attr_accessor :line2
|
|
1962
|
-
# ZIP or postal code.
|
|
1963
|
-
attr_accessor :postal_code
|
|
1964
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1965
|
-
attr_accessor :state
|
|
1966
|
-
|
|
1967
|
-
def initialize(
|
|
1968
|
-
city: nil,
|
|
1969
|
-
country: nil,
|
|
1970
|
-
line1: nil,
|
|
1971
|
-
line2: nil,
|
|
1972
|
-
postal_code: nil,
|
|
1973
|
-
state: nil
|
|
1974
|
-
)
|
|
1975
|
-
@city = city
|
|
1976
|
-
@country = country
|
|
1977
|
-
@line1 = line1
|
|
1978
|
-
@line2 = line2
|
|
1979
|
-
@postal_code = postal_code
|
|
1980
|
-
@state = state
|
|
1981
|
-
end
|
|
1982
|
-
end
|
|
1983
|
-
|
|
1984
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
1985
|
-
# Day of birth, between 1 and 31.
|
|
1986
|
-
attr_accessor :day
|
|
1987
|
-
# Month of birth, between 1 and 12.
|
|
1988
|
-
attr_accessor :month
|
|
1989
|
-
# Four-digit year of birth.
|
|
1990
|
-
attr_accessor :year
|
|
1991
|
-
|
|
1992
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
1993
|
-
@day = day
|
|
1994
|
-
@month = month
|
|
1995
|
-
@year = year
|
|
1996
|
-
end
|
|
1997
|
-
end
|
|
1998
|
-
# Address.
|
|
1999
|
-
attr_accessor :address
|
|
2000
|
-
# Date of birth.
|
|
2001
|
-
attr_accessor :date_of_birth
|
|
2002
|
-
# Email address.
|
|
2003
|
-
attr_accessor :email
|
|
2004
|
-
# Full name.
|
|
2005
|
-
attr_accessor :name
|
|
2006
|
-
# Phone number.
|
|
2007
|
-
attr_accessor :phone
|
|
2008
|
-
|
|
2009
|
-
def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
|
|
2010
|
-
@address = address
|
|
2011
|
-
@date_of_birth = date_of_birth
|
|
2012
|
-
@email = email
|
|
2013
|
-
@name = name
|
|
2014
|
-
@phone = phone
|
|
2015
|
-
end
|
|
2016
|
-
end
|
|
2017
|
-
# ID of the Account representing the beneficiary in this account funding transaction.
|
|
2018
|
-
attr_accessor :beneficiary_account
|
|
2019
|
-
# Inline identity details for the beneficiary of this account funding transaction.
|
|
2020
|
-
attr_accessor :beneficiary_details
|
|
2021
|
-
# ID of the Account representing the sender in this account funding transaction.
|
|
2022
|
-
attr_accessor :sender_account
|
|
2023
|
-
# Inline identity details for the sender of this account funding transaction.
|
|
2024
|
-
attr_accessor :sender_details
|
|
2025
|
-
|
|
2026
|
-
def initialize(
|
|
2027
|
-
beneficiary_account: nil,
|
|
2028
|
-
beneficiary_details: nil,
|
|
2029
|
-
sender_account: nil,
|
|
2030
|
-
sender_details: nil
|
|
2031
|
-
)
|
|
2032
|
-
@beneficiary_account = beneficiary_account
|
|
2033
|
-
@beneficiary_details = beneficiary_details
|
|
2034
|
-
@sender_account = sender_account
|
|
2035
|
-
@sender_details = sender_details
|
|
2036
|
-
end
|
|
2037
|
-
end
|
|
2038
|
-
# Account funding transaction details including sender and beneficiary information.
|
|
2039
|
-
attr_accessor :account_funding
|
|
2040
|
-
# The type of money services transaction.
|
|
2041
|
-
attr_accessor :transaction_type
|
|
2042
|
-
|
|
2043
|
-
def initialize(account_funding: nil, transaction_type: nil)
|
|
2044
|
-
@account_funding = account_funding
|
|
2045
|
-
@transaction_type = transaction_type
|
|
2046
|
-
end
|
|
2047
|
-
end
|
|
2048
|
-
|
|
2049
1884
|
class Subscription < ::Stripe::RequestParams
|
|
2050
1885
|
class Affiliate < ::Stripe::RequestParams
|
|
2051
1886
|
# The name of the affiliate that originated the purchase.
|
|
@@ -2116,8 +1951,6 @@ module Stripe
|
|
|
2116
1951
|
attr_accessor :lodging
|
|
2117
1952
|
# Lodging data for this PaymentIntent.
|
|
2118
1953
|
attr_accessor :lodging_data
|
|
2119
|
-
# Money services details for this PaymentIntent.
|
|
2120
|
-
attr_accessor :money_services
|
|
2121
1954
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
2122
1955
|
#
|
|
2123
1956
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
@@ -2135,7 +1968,6 @@ module Stripe
|
|
|
2135
1968
|
flight_data: nil,
|
|
2136
1969
|
lodging: nil,
|
|
2137
1970
|
lodging_data: nil,
|
|
2138
|
-
money_services: nil,
|
|
2139
1971
|
order_reference: nil,
|
|
2140
1972
|
subscription: nil
|
|
2141
1973
|
)
|
|
@@ -2148,7 +1980,6 @@ module Stripe
|
|
|
2148
1980
|
@flight_data = flight_data
|
|
2149
1981
|
@lodging = lodging
|
|
2150
1982
|
@lodging_data = lodging_data
|
|
2151
|
-
@money_services = money_services
|
|
2152
1983
|
@order_reference = order_reference
|
|
2153
1984
|
@subscription = subscription
|
|
2154
1985
|
end
|
|
@@ -3200,6 +3200,18 @@ module Stripe
|
|
|
3200
3200
|
end
|
|
3201
3201
|
|
|
3202
3202
|
class Card < ::Stripe::RequestParams
|
|
3203
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3204
|
+
# Attribute for param field days
|
|
3205
|
+
attr_accessor :days
|
|
3206
|
+
# Attribute for param field hours
|
|
3207
|
+
attr_accessor :hours
|
|
3208
|
+
|
|
3209
|
+
def initialize(days: nil, hours: nil)
|
|
3210
|
+
@days = days
|
|
3211
|
+
@hours = hours
|
|
3212
|
+
end
|
|
3213
|
+
end
|
|
3214
|
+
|
|
3203
3215
|
class Installments < ::Stripe::RequestParams
|
|
3204
3216
|
class Plan < ::Stripe::RequestParams
|
|
3205
3217
|
# For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
@@ -3276,35 +3288,6 @@ module Stripe
|
|
|
3276
3288
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3277
3289
|
class MoneyServices < ::Stripe::RequestParams
|
|
3278
3290
|
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
3291
|
class Wallet < ::Stripe::RequestParams
|
|
3309
3292
|
class StagedPurchase < ::Stripe::RequestParams
|
|
3310
3293
|
class Merchant < ::Stripe::RequestParams
|
|
@@ -3334,14 +3317,11 @@ module Stripe
|
|
|
3334
3317
|
end
|
|
3335
3318
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3336
3319
|
attr_accessor :digital_asset_category
|
|
3337
|
-
# Details for a liquid asset (crypto or security) funding transaction.
|
|
3338
|
-
attr_accessor :liquid_asset
|
|
3339
3320
|
# Details for a wallet funding transaction.
|
|
3340
3321
|
attr_accessor :wallet
|
|
3341
3322
|
|
|
3342
|
-
def initialize(digital_asset_category: nil,
|
|
3323
|
+
def initialize(digital_asset_category: nil, wallet: nil)
|
|
3343
3324
|
@digital_asset_category = digital_asset_category
|
|
3344
|
-
@liquid_asset = liquid_asset
|
|
3345
3325
|
@wallet = wallet
|
|
3346
3326
|
end
|
|
3347
3327
|
end
|
|
@@ -3476,6 +3456,14 @@ module Stripe
|
|
|
3476
3456
|
@version = version
|
|
3477
3457
|
end
|
|
3478
3458
|
end
|
|
3459
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3460
|
+
#
|
|
3461
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3462
|
+
attr_accessor :capture_by
|
|
3463
|
+
# 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.
|
|
3464
|
+
#
|
|
3465
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3466
|
+
attr_accessor :capture_delay
|
|
3479
3467
|
# Controls when the funds are captured from the customer's account.
|
|
3480
3468
|
#
|
|
3481
3469
|
# 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 +3525,8 @@ module Stripe
|
|
|
3537
3525
|
attr_accessor :three_d_secure
|
|
3538
3526
|
|
|
3539
3527
|
def initialize(
|
|
3528
|
+
capture_by: nil,
|
|
3529
|
+
capture_delay: nil,
|
|
3540
3530
|
capture_method: nil,
|
|
3541
3531
|
cvc_token: nil,
|
|
3542
3532
|
installments: nil,
|
|
@@ -3559,6 +3549,8 @@ module Stripe
|
|
|
3559
3549
|
statement_details: nil,
|
|
3560
3550
|
three_d_secure: nil
|
|
3561
3551
|
)
|
|
3552
|
+
@capture_by = capture_by
|
|
3553
|
+
@capture_delay = capture_delay
|
|
3562
3554
|
@capture_method = capture_method
|
|
3563
3555
|
@cvc_token = cvc_token
|
|
3564
3556
|
@installments = installments
|
|
@@ -3584,38 +3576,21 @@ module Stripe
|
|
|
3584
3576
|
end
|
|
3585
3577
|
|
|
3586
3578
|
class CardPresent < ::Stripe::RequestParams
|
|
3579
|
+
class CaptureDelay < ::Stripe::RequestParams
|
|
3580
|
+
# Attribute for param field days
|
|
3581
|
+
attr_accessor :days
|
|
3582
|
+
# Attribute for param field hours
|
|
3583
|
+
attr_accessor :hours
|
|
3584
|
+
|
|
3585
|
+
def initialize(days: nil, hours: nil)
|
|
3586
|
+
@days = days
|
|
3587
|
+
@hours = hours
|
|
3588
|
+
end
|
|
3589
|
+
end
|
|
3590
|
+
|
|
3587
3591
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3588
3592
|
class MoneyServices < ::Stripe::RequestParams
|
|
3589
3593
|
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
3594
|
class Wallet < ::Stripe::RequestParams
|
|
3620
3595
|
class StagedPurchase < ::Stripe::RequestParams
|
|
3621
3596
|
class Merchant < ::Stripe::RequestParams
|
|
@@ -3645,14 +3620,11 @@ module Stripe
|
|
|
3645
3620
|
end
|
|
3646
3621
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3647
3622
|
attr_accessor :digital_asset_category
|
|
3648
|
-
# Details for a liquid asset (crypto or security) funding transaction.
|
|
3649
|
-
attr_accessor :liquid_asset
|
|
3650
3623
|
# Details for a wallet funding transaction.
|
|
3651
3624
|
attr_accessor :wallet
|
|
3652
3625
|
|
|
3653
|
-
def initialize(digital_asset_category: nil,
|
|
3626
|
+
def initialize(digital_asset_category: nil, wallet: nil)
|
|
3654
3627
|
@digital_asset_category = digital_asset_category
|
|
3655
|
-
@liquid_asset = liquid_asset
|
|
3656
3628
|
@wallet = wallet
|
|
3657
3629
|
end
|
|
3658
3630
|
end
|
|
@@ -3679,6 +3651,14 @@ module Stripe
|
|
|
3679
3651
|
@requested_priority = requested_priority
|
|
3680
3652
|
end
|
|
3681
3653
|
end
|
|
3654
|
+
# Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`.
|
|
3655
|
+
#
|
|
3656
|
+
# If omitted, funds are captured before the authorization expires.
|
|
3657
|
+
attr_accessor :capture_by
|
|
3658
|
+
# 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.
|
|
3659
|
+
#
|
|
3660
|
+
# You can only set this if `capture_method` is `automatic_delayed` and `capture_by` is `target_delay`.
|
|
3661
|
+
attr_accessor :capture_delay
|
|
3682
3662
|
# Controls when the funds are captured from the customer's account.
|
|
3683
3663
|
#
|
|
3684
3664
|
# 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 +3671,31 @@ module Stripe
|
|
|
3691
3671
|
attr_accessor :request_extended_authorization
|
|
3692
3672
|
# 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
3673
|
attr_accessor :request_incremental_authorization_support
|
|
3674
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
3675
|
+
attr_accessor :request_multicapture
|
|
3694
3676
|
# Request ability to [reauthorize](https://docs.stripe.com/payments/reauthorization) for this PaymentIntent.
|
|
3695
3677
|
attr_accessor :request_reauthorization
|
|
3696
3678
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
3697
3679
|
attr_accessor :routing
|
|
3698
3680
|
|
|
3699
3681
|
def initialize(
|
|
3682
|
+
capture_by: nil,
|
|
3683
|
+
capture_delay: nil,
|
|
3700
3684
|
capture_method: nil,
|
|
3701
3685
|
payment_details: nil,
|
|
3702
3686
|
request_extended_authorization: nil,
|
|
3703
3687
|
request_incremental_authorization_support: nil,
|
|
3688
|
+
request_multicapture: nil,
|
|
3704
3689
|
request_reauthorization: nil,
|
|
3705
3690
|
routing: nil
|
|
3706
3691
|
)
|
|
3692
|
+
@capture_by = capture_by
|
|
3693
|
+
@capture_delay = capture_delay
|
|
3707
3694
|
@capture_method = capture_method
|
|
3708
3695
|
@payment_details = payment_details
|
|
3709
3696
|
@request_extended_authorization = request_extended_authorization
|
|
3710
3697
|
@request_incremental_authorization_support = request_incremental_authorization_support
|
|
3698
|
+
@request_multicapture = request_multicapture
|
|
3711
3699
|
@request_reauthorization = request_reauthorization
|
|
3712
3700
|
@routing = routing
|
|
3713
3701
|
end
|
|
@@ -3852,7 +3840,24 @@ module Stripe
|
|
|
3852
3840
|
end
|
|
3853
3841
|
end
|
|
3854
3842
|
|
|
3855
|
-
class GiftCard < ::Stripe::RequestParams
|
|
3843
|
+
class GiftCard < ::Stripe::RequestParams
|
|
3844
|
+
# Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
|
|
3845
|
+
attr_accessor :ignore_application_fee
|
|
3846
|
+
# Set to `yes` to ignore transfer data on the PaymentIntent when redeeming this gift card.
|
|
3847
|
+
attr_accessor :ignore_transfer_data
|
|
3848
|
+
# Request partial authorization on this PaymentIntent.
|
|
3849
|
+
attr_accessor :request_partial_authorization
|
|
3850
|
+
|
|
3851
|
+
def initialize(
|
|
3852
|
+
ignore_application_fee: nil,
|
|
3853
|
+
ignore_transfer_data: nil,
|
|
3854
|
+
request_partial_authorization: nil
|
|
3855
|
+
)
|
|
3856
|
+
@ignore_application_fee = ignore_application_fee
|
|
3857
|
+
@ignore_transfer_data = ignore_transfer_data
|
|
3858
|
+
@request_partial_authorization = request_partial_authorization
|
|
3859
|
+
end
|
|
3860
|
+
end
|
|
3856
3861
|
|
|
3857
3862
|
class Giropay < ::Stripe::RequestParams
|
|
3858
3863
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|