stripe 19.3.0.pre.alpha.3 → 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/params/checkout/session_create_params.rb +13 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +5 -0
- 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_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +20 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +127 -146
- data/lib/stripe/params/payment_intent_create_params.rb +127 -146
- data/lib/stripe/params/payment_intent_update_params.rb +127 -146
- data/lib/stripe/params/payment_method_create_params.rb +5 -0
- 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/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/test_helpers/confirmation_token_create_params.rb +5 -0
- 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 +2 -0
- data/lib/stripe/resources/account_session.rb +2 -0
- data/lib/stripe/resources/charge.rb +18 -2
- data/lib/stripe/resources/checkout/session.rb +0 -2
- data/lib/stripe/resources/confirmation_token.rb +13 -2
- data/lib/stripe/resources/gift_card.rb +2 -0
- data/lib/stripe/resources/mandate.rb +18 -0
- data/lib/stripe/resources/order.rb +2 -0
- data/lib/stripe/resources/payment_attempt_record.rb +16 -0
- data/lib/stripe/resources/payment_intent.rb +199 -67
- data/lib/stripe/resources/payment_method.rb +13 -2
- data/lib/stripe/resources/payment_record.rb +16 -0
- data/lib/stripe/resources/product.rb +32 -0
- data/lib/stripe/resources/setup_intent.rb +16 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +13 -2
- data/lib/stripe/resources/v2/core/account.rb +11539 -325
- data/lib/stripe/services/radar/customer_evaluation_service.rb +11 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +17192 -1459
- metadata +6 -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
|
|
@@ -3302,41 +3320,11 @@ module Stripe
|
|
|
3302
3320
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3303
3321
|
class MoneyServices < ::Stripe::RequestParams
|
|
3304
3322
|
class AccountFunding < ::Stripe::RequestParams
|
|
3305
|
-
class Wallet < ::Stripe::RequestParams
|
|
3306
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3307
|
-
class Merchant < ::Stripe::RequestParams
|
|
3308
|
-
# The merchant category code of the merchant.
|
|
3309
|
-
attr_accessor :mcc
|
|
3310
|
-
# The merchant's name.
|
|
3311
|
-
attr_accessor :name
|
|
3312
|
-
|
|
3313
|
-
def initialize(mcc: nil, name: nil)
|
|
3314
|
-
@mcc = mcc
|
|
3315
|
-
@name = name
|
|
3316
|
-
end
|
|
3317
|
-
end
|
|
3318
|
-
# The merchant where the staged wallet purchase is made.
|
|
3319
|
-
attr_accessor :merchant
|
|
3320
|
-
|
|
3321
|
-
def initialize(merchant: nil)
|
|
3322
|
-
@merchant = merchant
|
|
3323
|
-
end
|
|
3324
|
-
end
|
|
3325
|
-
# Details for a staged purchase.
|
|
3326
|
-
attr_accessor :staged_purchase
|
|
3327
|
-
|
|
3328
|
-
def initialize(staged_purchase: nil)
|
|
3329
|
-
@staged_purchase = staged_purchase
|
|
3330
|
-
end
|
|
3331
|
-
end
|
|
3332
3323
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3333
3324
|
attr_accessor :digital_asset_category
|
|
3334
|
-
# Details for a wallet funding transaction.
|
|
3335
|
-
attr_accessor :wallet
|
|
3336
3325
|
|
|
3337
|
-
def initialize(digital_asset_category: nil
|
|
3326
|
+
def initialize(digital_asset_category: nil)
|
|
3338
3327
|
@digital_asset_category = digital_asset_category
|
|
3339
|
-
@wallet = wallet
|
|
3340
3328
|
end
|
|
3341
3329
|
end
|
|
3342
3330
|
# Payment method specific account funding transaction details.
|
|
@@ -3605,41 +3593,11 @@ module Stripe
|
|
|
3605
3593
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3606
3594
|
class MoneyServices < ::Stripe::RequestParams
|
|
3607
3595
|
class AccountFunding < ::Stripe::RequestParams
|
|
3608
|
-
class Wallet < ::Stripe::RequestParams
|
|
3609
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3610
|
-
class Merchant < ::Stripe::RequestParams
|
|
3611
|
-
# The merchant category code of the merchant.
|
|
3612
|
-
attr_accessor :mcc
|
|
3613
|
-
# The merchant's name.
|
|
3614
|
-
attr_accessor :name
|
|
3615
|
-
|
|
3616
|
-
def initialize(mcc: nil, name: nil)
|
|
3617
|
-
@mcc = mcc
|
|
3618
|
-
@name = name
|
|
3619
|
-
end
|
|
3620
|
-
end
|
|
3621
|
-
# The merchant where the staged wallet purchase is made.
|
|
3622
|
-
attr_accessor :merchant
|
|
3623
|
-
|
|
3624
|
-
def initialize(merchant: nil)
|
|
3625
|
-
@merchant = merchant
|
|
3626
|
-
end
|
|
3627
|
-
end
|
|
3628
|
-
# Details for a staged purchase.
|
|
3629
|
-
attr_accessor :staged_purchase
|
|
3630
|
-
|
|
3631
|
-
def initialize(staged_purchase: nil)
|
|
3632
|
-
@staged_purchase = staged_purchase
|
|
3633
|
-
end
|
|
3634
|
-
end
|
|
3635
3596
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3636
3597
|
attr_accessor :digital_asset_category
|
|
3637
|
-
# Details for a wallet funding transaction.
|
|
3638
|
-
attr_accessor :wallet
|
|
3639
3598
|
|
|
3640
|
-
def initialize(digital_asset_category: nil
|
|
3599
|
+
def initialize(digital_asset_category: nil)
|
|
3641
3600
|
@digital_asset_category = digital_asset_category
|
|
3642
|
-
@wallet = wallet
|
|
3643
3601
|
end
|
|
3644
3602
|
end
|
|
3645
3603
|
# Payment method specific account funding transaction details.
|
|
@@ -3751,6 +3709,18 @@ module Stripe
|
|
|
3751
3709
|
@static_address = static_address
|
|
3752
3710
|
end
|
|
3753
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
|
|
3754
3724
|
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3755
3725
|
attr_accessor :deposit_options
|
|
3756
3726
|
# The mode of the crypto payment.
|
|
@@ -3765,11 +3735,19 @@ module Stripe
|
|
|
3765
3735
|
#
|
|
3766
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`.
|
|
3767
3737
|
attr_accessor :setup_future_usage
|
|
3738
|
+
# Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
|
|
3739
|
+
attr_accessor :transaction_verification_options
|
|
3768
3740
|
|
|
3769
|
-
def initialize(
|
|
3741
|
+
def initialize(
|
|
3742
|
+
deposit_options: nil,
|
|
3743
|
+
mode: nil,
|
|
3744
|
+
setup_future_usage: nil,
|
|
3745
|
+
transaction_verification_options: nil
|
|
3746
|
+
)
|
|
3770
3747
|
@deposit_options = deposit_options
|
|
3771
3748
|
@mode = mode
|
|
3772
3749
|
@setup_future_usage = setup_future_usage
|
|
3750
|
+
@transaction_verification_options = transaction_verification_options
|
|
3773
3751
|
end
|
|
3774
3752
|
end
|
|
3775
3753
|
|
|
@@ -5883,6 +5861,8 @@ module Stripe
|
|
|
5883
5861
|
class WechatPay < ::Stripe::RequestParams
|
|
5884
5862
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
5885
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
|
|
5886
5866
|
# The client type that the end customer will pay from
|
|
5887
5867
|
attr_accessor :client
|
|
5888
5868
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -5896,8 +5876,9 @@ module Stripe
|
|
|
5896
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`.
|
|
5897
5877
|
attr_accessor :setup_future_usage
|
|
5898
5878
|
|
|
5899
|
-
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)
|
|
5900
5880
|
@app_id = app_id
|
|
5881
|
+
@buyer_id = buyer_id
|
|
5901
5882
|
@client = client
|
|
5902
5883
|
@setup_future_usage = setup_future_usage
|
|
5903
5884
|
end
|