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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2eb96bb7744d73267612e216f61c240873c83e409b782f0011fcec3c1be8dcf2
|
|
4
|
+
data.tar.gz: 62978eb5bff3b925480f19781a019d5c387ec119b26eb4238af30e40d2e338e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bef31833bb0c2883af7d915d5c754fb93f0ee03bec23208de2ce710bb71a2ecd43ec35121365bf253180f065017a40856d2bdb50e44c001e63656e9655ec098
|
|
7
|
+
data.tar.gz: bd157ce91d3030cb2dbbf04e0459606cb73a3918953420517d4c9add76718941eaa1b472b95879d1c7c5ffa8c50bf7519a14a7b85e2471109ad618883320218b
|
|
@@ -541,6 +541,15 @@ module Stripe
|
|
|
541
541
|
end
|
|
542
542
|
end
|
|
543
543
|
|
|
544
|
+
class Item < ::Stripe::RequestParams
|
|
545
|
+
# The type of item.
|
|
546
|
+
attr_accessor :type
|
|
547
|
+
|
|
548
|
+
def initialize(type: nil)
|
|
549
|
+
@type = type
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
544
553
|
class LineItem < ::Stripe::RequestParams
|
|
545
554
|
class AdjustableQuantity < ::Stripe::RequestParams
|
|
546
555
|
# Set to true if the quantity can be adjusted to any non-negative integer.
|
|
@@ -2709,6 +2718,8 @@ module Stripe
|
|
|
2709
2718
|
attr_accessor :integration_identifier
|
|
2710
2719
|
# Generate a post-purchase Invoice for one-time payments.
|
|
2711
2720
|
attr_accessor :invoice_creation
|
|
2721
|
+
# A list of items the customer will purchase.
|
|
2722
|
+
attr_accessor :items
|
|
2712
2723
|
# A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.
|
|
2713
2724
|
#
|
|
2714
2725
|
# For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
|
|
@@ -2843,6 +2854,7 @@ module Stripe
|
|
|
2843
2854
|
expires_at: nil,
|
|
2844
2855
|
integration_identifier: nil,
|
|
2845
2856
|
invoice_creation: nil,
|
|
2857
|
+
items: nil,
|
|
2846
2858
|
line_items: nil,
|
|
2847
2859
|
locale: nil,
|
|
2848
2860
|
managed_payments: nil,
|
|
@@ -2899,6 +2911,7 @@ module Stripe
|
|
|
2899
2911
|
@expires_at = expires_at
|
|
2900
2912
|
@integration_identifier = integration_identifier
|
|
2901
2913
|
@invoice_creation = invoice_creation
|
|
2914
|
+
@items = items
|
|
2902
2915
|
@line_items = line_items
|
|
2903
2916
|
@locale = locale
|
|
2904
2917
|
@managed_payments = managed_payments
|
|
@@ -348,6 +348,7 @@ module Stripe
|
|
|
348
348
|
|
|
349
349
|
class Sunbit < ::Stripe::RequestParams; end
|
|
350
350
|
class Swish < ::Stripe::RequestParams; end
|
|
351
|
+
class Tamara < ::Stripe::RequestParams; end
|
|
351
352
|
class Twint < ::Stripe::RequestParams; end
|
|
352
353
|
|
|
353
354
|
class Upi < ::Stripe::RequestParams
|
|
@@ -529,6 +530,8 @@ module Stripe
|
|
|
529
530
|
attr_accessor :sunbit
|
|
530
531
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
531
532
|
attr_accessor :swish
|
|
533
|
+
# If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
|
|
534
|
+
attr_accessor :tamara
|
|
532
535
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
533
536
|
attr_accessor :twint
|
|
534
537
|
# 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.
|
|
@@ -605,6 +608,7 @@ module Stripe
|
|
|
605
608
|
stripe_balance: nil,
|
|
606
609
|
sunbit: nil,
|
|
607
610
|
swish: nil,
|
|
611
|
+
tamara: nil,
|
|
608
612
|
twint: nil,
|
|
609
613
|
type: nil,
|
|
610
614
|
upi: nil,
|
|
@@ -674,6 +678,7 @@ module Stripe
|
|
|
674
678
|
@stripe_balance = stripe_balance
|
|
675
679
|
@sunbit = sunbit
|
|
676
680
|
@swish = swish
|
|
681
|
+
@tamara = tamara
|
|
677
682
|
@twint = twint
|
|
678
683
|
@type = type
|
|
679
684
|
@upi = upi
|
|
@@ -1728,6 +1728,8 @@ module Stripe
|
|
|
1728
1728
|
class WechatPay < ::Stripe::RequestParams
|
|
1729
1729
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
1730
1730
|
attr_accessor :app_id
|
|
1731
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
1732
|
+
attr_accessor :buyer_id
|
|
1731
1733
|
# The client type that the end customer will pay from
|
|
1732
1734
|
attr_accessor :client
|
|
1733
1735
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1741,8 +1743,9 @@ module Stripe
|
|
|
1741
1743
|
# 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`.
|
|
1742
1744
|
attr_accessor :setup_future_usage
|
|
1743
1745
|
|
|
1744
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
1746
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
1745
1747
|
@app_id = app_id
|
|
1748
|
+
@buyer_id = buyer_id
|
|
1746
1749
|
@client = client
|
|
1747
1750
|
@setup_future_usage = setup_future_usage
|
|
1748
1751
|
end
|
|
@@ -1732,6 +1732,8 @@ module Stripe
|
|
|
1732
1732
|
class WechatPay < ::Stripe::RequestParams
|
|
1733
1733
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
1734
1734
|
attr_accessor :app_id
|
|
1735
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
1736
|
+
attr_accessor :buyer_id
|
|
1735
1737
|
# The client type that the end customer will pay from
|
|
1736
1738
|
attr_accessor :client
|
|
1737
1739
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1745,8 +1747,9 @@ module Stripe
|
|
|
1745
1747
|
# 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`.
|
|
1746
1748
|
attr_accessor :setup_future_usage
|
|
1747
1749
|
|
|
1748
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
1750
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
1749
1751
|
@app_id = app_id
|
|
1752
|
+
@buyer_id = buyer_id
|
|
1750
1753
|
@client = client
|
|
1751
1754
|
@setup_future_usage = setup_future_usage
|
|
1752
1755
|
end
|
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentAttemptRecordReportGuaranteedParams < ::Stripe::RequestParams
|
|
6
|
+
class PaymentMethodDetails < ::Stripe::RequestParams
|
|
7
|
+
class Card < ::Stripe::RequestParams
|
|
8
|
+
class Checks < ::Stripe::RequestParams
|
|
9
|
+
# The result of the check on the cardholder's address line 1.
|
|
10
|
+
attr_accessor :address_line1_check
|
|
11
|
+
# The result of the check on the cardholder's postal code.
|
|
12
|
+
attr_accessor :address_postal_code_check
|
|
13
|
+
# The result of the check on the card's CVC.
|
|
14
|
+
attr_accessor :cvc_check
|
|
15
|
+
|
|
16
|
+
def initialize(address_line1_check: nil, address_postal_code_check: nil, cvc_check: nil)
|
|
17
|
+
@address_line1_check = address_line1_check
|
|
18
|
+
@address_postal_code_check = address_postal_code_check
|
|
19
|
+
@cvc_check = cvc_check
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# Verification checks performed on the card.
|
|
23
|
+
attr_accessor :checks
|
|
24
|
+
|
|
25
|
+
def initialize(checks: nil)
|
|
26
|
+
@checks = checks
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Information about the card payment method used to make this payment.
|
|
30
|
+
attr_accessor :card
|
|
31
|
+
# The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
|
|
32
|
+
attr_accessor :type
|
|
33
|
+
|
|
34
|
+
def initialize(card: nil, type: nil)
|
|
35
|
+
@card = card
|
|
36
|
+
@type = type
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
6
40
|
class ProcessorDetails < ::Stripe::RequestParams
|
|
7
41
|
class Custom < ::Stripe::RequestParams
|
|
8
42
|
# An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
|
@@ -30,6 +64,8 @@ module Stripe
|
|
|
30
64
|
attr_accessor :metadata
|
|
31
65
|
# Payment evaluations associated with this reported payment.
|
|
32
66
|
attr_accessor :payment_evaluations
|
|
67
|
+
# Information about the Payment Method debited for this payment.
|
|
68
|
+
attr_accessor :payment_method_details
|
|
33
69
|
# Processor information for this payment.
|
|
34
70
|
attr_accessor :processor_details
|
|
35
71
|
|
|
@@ -38,12 +74,14 @@ module Stripe
|
|
|
38
74
|
guaranteed_at: nil,
|
|
39
75
|
metadata: nil,
|
|
40
76
|
payment_evaluations: nil,
|
|
77
|
+
payment_method_details: nil,
|
|
41
78
|
processor_details: nil
|
|
42
79
|
)
|
|
43
80
|
@expand = expand
|
|
44
81
|
@guaranteed_at = guaranteed_at
|
|
45
82
|
@metadata = metadata
|
|
46
83
|
@payment_evaluations = payment_evaluations
|
|
84
|
+
@payment_method_details = payment_method_details
|
|
47
85
|
@processor_details = processor_details
|
|
48
86
|
end
|
|
49
87
|
end
|
|
@@ -15,6 +15,18 @@ module Stripe
|
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
class Failed < ::Stripe::RequestParams
|
|
19
|
+
# When the reported refund failed. Measured in seconds since the Unix epoch.
|
|
20
|
+
attr_accessor :failed_at
|
|
21
|
+
# Provides the reason for the refund failure. Possible values are: `lost_or_stolen_card`, `expired_or_canceled_card`, `charge_for_pending_refund_disputed`, `insufficient_funds`, `declined`, `merchant_request`, or `unknown`.
|
|
22
|
+
attr_accessor :failure_reason
|
|
23
|
+
|
|
24
|
+
def initialize(failed_at: nil, failure_reason: nil)
|
|
25
|
+
@failed_at = failed_at
|
|
26
|
+
@failure_reason = failure_reason
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
18
30
|
class ProcessorDetails < ::Stripe::RequestParams
|
|
19
31
|
class Custom < ::Stripe::RequestParams
|
|
20
32
|
# A reference to the external refund. This field must be unique across all refunds.
|
|
@@ -47,6 +59,8 @@ module Stripe
|
|
|
47
59
|
attr_accessor :amount
|
|
48
60
|
# Specifies which fields in the response should be expanded.
|
|
49
61
|
attr_accessor :expand
|
|
62
|
+
# Information about the refund failure.
|
|
63
|
+
attr_accessor :failed
|
|
50
64
|
# When the reported refund was initiated. Measured in seconds since the Unix epoch.
|
|
51
65
|
attr_accessor :initiated_at
|
|
52
66
|
# 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`.
|
|
@@ -55,24 +69,30 @@ module Stripe
|
|
|
55
69
|
attr_accessor :outcome
|
|
56
70
|
# Processor information for this refund.
|
|
57
71
|
attr_accessor :processor_details
|
|
72
|
+
# A key to group refunds together.
|
|
73
|
+
attr_accessor :refund_group
|
|
58
74
|
# Information about the payment attempt refund.
|
|
59
75
|
attr_accessor :refunded
|
|
60
76
|
|
|
61
77
|
def initialize(
|
|
62
78
|
amount: nil,
|
|
63
79
|
expand: nil,
|
|
80
|
+
failed: nil,
|
|
64
81
|
initiated_at: nil,
|
|
65
82
|
metadata: nil,
|
|
66
83
|
outcome: nil,
|
|
67
84
|
processor_details: nil,
|
|
85
|
+
refund_group: nil,
|
|
68
86
|
refunded: nil
|
|
69
87
|
)
|
|
70
88
|
@amount = amount
|
|
71
89
|
@expand = expand
|
|
90
|
+
@failed = failed
|
|
72
91
|
@initiated_at = initiated_at
|
|
73
92
|
@metadata = metadata
|
|
74
93
|
@outcome = outcome
|
|
75
94
|
@processor_details = processor_details
|
|
95
|
+
@refund_group = refund_group
|
|
76
96
|
@refunded = refunded
|
|
77
97
|
end
|
|
78
98
|
end
|
|
@@ -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
|
|
@@ -3288,41 +3306,11 @@ module Stripe
|
|
|
3288
3306
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3289
3307
|
class MoneyServices < ::Stripe::RequestParams
|
|
3290
3308
|
class AccountFunding < ::Stripe::RequestParams
|
|
3291
|
-
class Wallet < ::Stripe::RequestParams
|
|
3292
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3293
|
-
class Merchant < ::Stripe::RequestParams
|
|
3294
|
-
# The merchant category code of the merchant.
|
|
3295
|
-
attr_accessor :mcc
|
|
3296
|
-
# The merchant's name.
|
|
3297
|
-
attr_accessor :name
|
|
3298
|
-
|
|
3299
|
-
def initialize(mcc: nil, name: nil)
|
|
3300
|
-
@mcc = mcc
|
|
3301
|
-
@name = name
|
|
3302
|
-
end
|
|
3303
|
-
end
|
|
3304
|
-
# The merchant where the staged wallet purchase is made.
|
|
3305
|
-
attr_accessor :merchant
|
|
3306
|
-
|
|
3307
|
-
def initialize(merchant: nil)
|
|
3308
|
-
@merchant = merchant
|
|
3309
|
-
end
|
|
3310
|
-
end
|
|
3311
|
-
# Details for a staged purchase.
|
|
3312
|
-
attr_accessor :staged_purchase
|
|
3313
|
-
|
|
3314
|
-
def initialize(staged_purchase: nil)
|
|
3315
|
-
@staged_purchase = staged_purchase
|
|
3316
|
-
end
|
|
3317
|
-
end
|
|
3318
3309
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3319
3310
|
attr_accessor :digital_asset_category
|
|
3320
|
-
# Details for a wallet funding transaction.
|
|
3321
|
-
attr_accessor :wallet
|
|
3322
3311
|
|
|
3323
|
-
def initialize(digital_asset_category: nil
|
|
3312
|
+
def initialize(digital_asset_category: nil)
|
|
3324
3313
|
@digital_asset_category = digital_asset_category
|
|
3325
|
-
@wallet = wallet
|
|
3326
3314
|
end
|
|
3327
3315
|
end
|
|
3328
3316
|
# Payment method specific account funding transaction details.
|
|
@@ -3591,41 +3579,11 @@ module Stripe
|
|
|
3591
3579
|
class PaymentDetails < ::Stripe::RequestParams
|
|
3592
3580
|
class MoneyServices < ::Stripe::RequestParams
|
|
3593
3581
|
class AccountFunding < ::Stripe::RequestParams
|
|
3594
|
-
class Wallet < ::Stripe::RequestParams
|
|
3595
|
-
class StagedPurchase < ::Stripe::RequestParams
|
|
3596
|
-
class Merchant < ::Stripe::RequestParams
|
|
3597
|
-
# The merchant category code of the merchant.
|
|
3598
|
-
attr_accessor :mcc
|
|
3599
|
-
# The merchant's name.
|
|
3600
|
-
attr_accessor :name
|
|
3601
|
-
|
|
3602
|
-
def initialize(mcc: nil, name: nil)
|
|
3603
|
-
@mcc = mcc
|
|
3604
|
-
@name = name
|
|
3605
|
-
end
|
|
3606
|
-
end
|
|
3607
|
-
# The merchant where the staged wallet purchase is made.
|
|
3608
|
-
attr_accessor :merchant
|
|
3609
|
-
|
|
3610
|
-
def initialize(merchant: nil)
|
|
3611
|
-
@merchant = merchant
|
|
3612
|
-
end
|
|
3613
|
-
end
|
|
3614
|
-
# Details for a staged purchase.
|
|
3615
|
-
attr_accessor :staged_purchase
|
|
3616
|
-
|
|
3617
|
-
def initialize(staged_purchase: nil)
|
|
3618
|
-
@staged_purchase = staged_purchase
|
|
3619
|
-
end
|
|
3620
|
-
end
|
|
3621
3582
|
# The category of digital asset being acquired through this account funding transaction.
|
|
3622
3583
|
attr_accessor :digital_asset_category
|
|
3623
|
-
# Details for a wallet funding transaction.
|
|
3624
|
-
attr_accessor :wallet
|
|
3625
3584
|
|
|
3626
|
-
def initialize(digital_asset_category: nil
|
|
3585
|
+
def initialize(digital_asset_category: nil)
|
|
3627
3586
|
@digital_asset_category = digital_asset_category
|
|
3628
|
-
@wallet = wallet
|
|
3629
3587
|
end
|
|
3630
3588
|
end
|
|
3631
3589
|
# Payment method specific account funding transaction details.
|
|
@@ -3737,6 +3695,18 @@ module Stripe
|
|
|
3737
3695
|
@static_address = static_address
|
|
3738
3696
|
end
|
|
3739
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
|
|
3740
3710
|
# Specific configuration for this PaymentIntent when the mode is `deposit`.
|
|
3741
3711
|
attr_accessor :deposit_options
|
|
3742
3712
|
# The mode of the crypto payment.
|
|
@@ -3751,11 +3721,19 @@ module Stripe
|
|
|
3751
3721
|
#
|
|
3752
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`.
|
|
3753
3723
|
attr_accessor :setup_future_usage
|
|
3724
|
+
# Specific configuration for this PaymentIntent when the mode is `transaction_verification`.
|
|
3725
|
+
attr_accessor :transaction_verification_options
|
|
3754
3726
|
|
|
3755
|
-
def initialize(
|
|
3727
|
+
def initialize(
|
|
3728
|
+
deposit_options: nil,
|
|
3729
|
+
mode: nil,
|
|
3730
|
+
setup_future_usage: nil,
|
|
3731
|
+
transaction_verification_options: nil
|
|
3732
|
+
)
|
|
3756
3733
|
@deposit_options = deposit_options
|
|
3757
3734
|
@mode = mode
|
|
3758
3735
|
@setup_future_usage = setup_future_usage
|
|
3736
|
+
@transaction_verification_options = transaction_verification_options
|
|
3759
3737
|
end
|
|
3760
3738
|
end
|
|
3761
3739
|
|
|
@@ -5869,6 +5847,8 @@ module Stripe
|
|
|
5869
5847
|
class WechatPay < ::Stripe::RequestParams
|
|
5870
5848
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
5871
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
|
|
5872
5852
|
# The client type that the end customer will pay from
|
|
5873
5853
|
attr_accessor :client
|
|
5874
5854
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -5882,8 +5862,9 @@ module Stripe
|
|
|
5882
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`.
|
|
5883
5863
|
attr_accessor :setup_future_usage
|
|
5884
5864
|
|
|
5885
|
-
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)
|
|
5886
5866
|
@app_id = app_id
|
|
5867
|
+
@buyer_id = buyer_id
|
|
5887
5868
|
@client = client
|
|
5888
5869
|
@setup_future_usage = setup_future_usage
|
|
5889
5870
|
end
|