stripe 19.7.0.pre.alpha.1 → 19.7.0.pre.alpha.2
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 +2 -2
- data/lib/stripe/event_types.rb +32 -0
- data/lib/stripe/events/v2_core_health_metronome_notification_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_metronome_notification_latency_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_money_management_payout_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v2_signals_payment_retry_evaluations_retry_recommended_event.rb +46 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +8 -1
- data/lib/stripe/params/billing/feedback_option_create_params.rb +18 -0
- data/lib/stripe/params/billing/feedback_option_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/feedback_option_list_params.rb +27 -0
- data/lib/stripe/params/billing/feedback_option_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/feedback_option_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +4 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +4 -1
- data/lib/stripe/params/checkout/session_create_params.rb +4 -1
- data/lib/stripe/params/checkout/session_update_params.rb +53 -0
- data/lib/stripe/params/customer_session_create_params.rb +26 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +9 -5
- data/lib/stripe/params/payment_intent_create_params.rb +9 -5
- data/lib/stripe/params/payment_intent_update_params.rb +9 -5
- data/lib/stripe/params/payment_link_update_params.rb +32 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +19 -0
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +4 -1
- data/lib/stripe/params/setup_intent_create_params.rb +4 -5
- data/lib/stripe/params/setup_intent_update_params.rb +4 -5
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +21 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +21 -1
- data/lib/stripe/params/subscription_cancel_params.rb +4 -1
- data/lib/stripe/params/subscription_update_params.rb +8 -1
- data/lib/stripe/params/tax/registration_create_params.rb +351 -27
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +21 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +34 -0
- data/lib/stripe/params/v2/billing/contract_update_params.rb +91 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +6 -5
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +31 -1
- data/lib/stripe/params/v2/core/{approval_request_submit_params.rb → approval_request_update_params.rb} +2 -2
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +13 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +32 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_create_params.rb +20 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_update_params.rb +20 -0
- data/lib/stripe/params/v2/{core/approval_request_execute_params.rb → signals/payment_retry_signal_retrieve_params.rb} +2 -2
- data/lib/stripe/params/v2/tax/integration_configuration_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/integration_configuration_update_params.rb +25 -0
- data/lib/stripe/params.rb +31 -4
- data/lib/stripe/resources/account.rb +2 -0
- data/lib/stripe/resources/account_session.rb +27 -0
- data/lib/stripe/resources/billing/feedback_option.rb +59 -1
- data/lib/stripe/resources/charge.rb +16 -0
- data/lib/stripe/resources/checkout/session.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +15 -0
- data/lib/stripe/resources/customer_tax_exemption.rb +6 -6
- data/lib/stripe/resources/identity/verification_report.rb +24 -0
- data/lib/stripe/resources/payment_attempt_record.rb +16 -0
- data/lib/stripe/resources/payment_intent.rb +26 -0
- data/lib/stripe/resources/payment_record.rb +16 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +2 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +17 -1
- data/lib/stripe/resources/shared_payment/issued_token.rb +17 -1
- data/lib/stripe/resources/terminal/reader.rb +1 -1
- data/lib/stripe/resources/v2/billing/contract.rb +48 -0
- data/lib/stripe/resources/v2/core/account.rb +2 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +72 -14
- data/lib/stripe/resources/v2/core/event_notification.rb +6 -3
- data/lib/stripe/resources/v2/core/fee_batch.rb +2 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +2 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +75 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
- data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +36 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +50 -26
- data/lib/stripe/resources/v2/signals/payment_retry_evaluation.rb +47 -0
- data/lib/stripe/resources/v2/signals/payment_retry_signal.rb +56 -0
- data/lib/stripe/resources/v2/tax/integration_configuration.rb +44 -0
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/billing/feedback_option_service.rb +63 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/oauth_service.rb +1 -1
- data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/v2/billing/contract_service.rb +5 -0
- data/lib/stripe/services/v2/core/approval_request_service.rb +4 -16
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/signals/payment_retry_evaluation_service.rb +62 -0
- data/lib/stripe/services/v2/signals/payment_retry_signal_service.rb +21 -0
- data/lib/stripe/services/v2/signals_service.rb +4 -1
- data/lib/stripe/services/v2/tax/integration_configuration_service.rb +32 -0
- data/lib/stripe/services/v2/tax_service.rb +3 -1
- data/lib/stripe/services.rb +10 -0
- data/lib/stripe/stripe_event_notification_handler.rb +32 -0
- data/lib/stripe/util.rb +32 -0
- data/lib/stripe/v2_list_object.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3252 -521
- metadata +34 -4
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Radar
|
|
6
|
+
class BillingEvaluationCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
|
8
|
+
# ID for the Radar Session to associate with the billing evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions about the customer behind the upcoming payment.
|
|
9
|
+
attr_accessor :radar_session
|
|
10
|
+
|
|
11
|
+
def initialize(radar_session: nil)
|
|
12
|
+
@radar_session = radar_session
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class CustomerDetails < ::Stripe::RequestParams
|
|
17
|
+
class Data < ::Stripe::RequestParams
|
|
18
|
+
# The email address of the customer being evaluated.
|
|
19
|
+
attr_accessor :email
|
|
20
|
+
# The full name or business name of the customer being evaluated.
|
|
21
|
+
attr_accessor :name
|
|
22
|
+
# The phone number of the customer being evaluated.
|
|
23
|
+
attr_accessor :phone
|
|
24
|
+
|
|
25
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
26
|
+
@email = email
|
|
27
|
+
@name = name
|
|
28
|
+
@phone = phone
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
# The ID of the customer whose upcoming payment is being evaluated.
|
|
32
|
+
attr_accessor :customer
|
|
33
|
+
# The ID of the Account representing the customer whose upcoming payment is being evaluated.
|
|
34
|
+
attr_accessor :customer_account
|
|
35
|
+
# Attributes of the customer being evaluated. Supply these when the customer isn't represented by a Customer or an Account. If `customer` or `customer_account` is also supplied, the attributes on that object are used and these are ignored.
|
|
36
|
+
attr_accessor :data
|
|
37
|
+
|
|
38
|
+
def initialize(customer: nil, customer_account: nil, data: nil)
|
|
39
|
+
@customer = customer
|
|
40
|
+
@customer_account = customer_account
|
|
41
|
+
@data = data
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
46
|
+
class MoneyMovementDetails < ::Stripe::RequestParams
|
|
47
|
+
class Card < ::Stripe::RequestParams
|
|
48
|
+
# Describes the presence of the customer during the payment.
|
|
49
|
+
attr_accessor :customer_presence
|
|
50
|
+
# Describes the type of payment.
|
|
51
|
+
attr_accessor :payment_type
|
|
52
|
+
|
|
53
|
+
def initialize(customer_presence: nil, payment_type: nil)
|
|
54
|
+
@customer_presence = customer_presence
|
|
55
|
+
@payment_type = payment_type
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
# Describes card money movement details.
|
|
59
|
+
attr_accessor :card
|
|
60
|
+
# Describes the type of money movement. Currently only `card` is supported.
|
|
61
|
+
attr_accessor :money_movement_type
|
|
62
|
+
|
|
63
|
+
def initialize(card: nil, money_movement_type: nil)
|
|
64
|
+
@card = card
|
|
65
|
+
@money_movement_type = money_movement_type
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class PaymentMethodDetails < ::Stripe::RequestParams
|
|
70
|
+
class BillingDetails < ::Stripe::RequestParams
|
|
71
|
+
class Address < ::Stripe::RequestParams
|
|
72
|
+
# City, district, suburb, town, or village.
|
|
73
|
+
attr_accessor :city
|
|
74
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
75
|
+
attr_accessor :country
|
|
76
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
77
|
+
attr_accessor :line1
|
|
78
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
79
|
+
attr_accessor :line2
|
|
80
|
+
# ZIP or postal code.
|
|
81
|
+
attr_accessor :postal_code
|
|
82
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
83
|
+
attr_accessor :state
|
|
84
|
+
|
|
85
|
+
def initialize(
|
|
86
|
+
city: nil,
|
|
87
|
+
country: nil,
|
|
88
|
+
line1: nil,
|
|
89
|
+
line2: nil,
|
|
90
|
+
postal_code: nil,
|
|
91
|
+
state: nil
|
|
92
|
+
)
|
|
93
|
+
@city = city
|
|
94
|
+
@country = country
|
|
95
|
+
@line1 = line1
|
|
96
|
+
@line2 = line2
|
|
97
|
+
@postal_code = postal_code
|
|
98
|
+
@state = state
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
# Billing address.
|
|
102
|
+
attr_accessor :address
|
|
103
|
+
# Email address.
|
|
104
|
+
attr_accessor :email
|
|
105
|
+
# Full name.
|
|
106
|
+
attr_accessor :name
|
|
107
|
+
# Billing phone number (including extension).
|
|
108
|
+
attr_accessor :phone
|
|
109
|
+
|
|
110
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
|
111
|
+
@address = address
|
|
112
|
+
@email = email
|
|
113
|
+
@name = name
|
|
114
|
+
@phone = phone
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
# Billing information associated with the payment method used for the upcoming payment.
|
|
118
|
+
attr_accessor :billing_details
|
|
119
|
+
# ID of the payment method that the upcoming payment is charged to.
|
|
120
|
+
attr_accessor :payment_method
|
|
121
|
+
|
|
122
|
+
def initialize(billing_details: nil, payment_method: nil)
|
|
123
|
+
@billing_details = billing_details
|
|
124
|
+
@payment_method = payment_method
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
class ShippingDetails < ::Stripe::RequestParams
|
|
129
|
+
class Address < ::Stripe::RequestParams
|
|
130
|
+
# City, district, suburb, town, or village.
|
|
131
|
+
attr_accessor :city
|
|
132
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
133
|
+
attr_accessor :country
|
|
134
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
135
|
+
attr_accessor :line1
|
|
136
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
137
|
+
attr_accessor :line2
|
|
138
|
+
# ZIP or postal code.
|
|
139
|
+
attr_accessor :postal_code
|
|
140
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
141
|
+
attr_accessor :state
|
|
142
|
+
|
|
143
|
+
def initialize(
|
|
144
|
+
city: nil,
|
|
145
|
+
country: nil,
|
|
146
|
+
line1: nil,
|
|
147
|
+
line2: nil,
|
|
148
|
+
postal_code: nil,
|
|
149
|
+
state: nil
|
|
150
|
+
)
|
|
151
|
+
@city = city
|
|
152
|
+
@country = country
|
|
153
|
+
@line1 = line1
|
|
154
|
+
@line2 = line2
|
|
155
|
+
@postal_code = postal_code
|
|
156
|
+
@state = state
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
# Shipping address.
|
|
160
|
+
attr_accessor :address
|
|
161
|
+
# Shipping name.
|
|
162
|
+
attr_accessor :name
|
|
163
|
+
# Shipping phone number.
|
|
164
|
+
attr_accessor :phone
|
|
165
|
+
|
|
166
|
+
def initialize(address: nil, name: nil, phone: nil)
|
|
167
|
+
@address = address
|
|
168
|
+
@name = name
|
|
169
|
+
@phone = phone
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
# The amount that the upcoming payment collects. A positive integer representing how much is charged in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency).
|
|
173
|
+
attr_accessor :amount
|
|
174
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
175
|
+
attr_accessor :currency
|
|
176
|
+
# An arbitrary description of the upcoming payment.
|
|
177
|
+
attr_accessor :description
|
|
178
|
+
# Details about how the money for the upcoming payment moves.
|
|
179
|
+
attr_accessor :money_movement_details
|
|
180
|
+
# Details about the payment method that the upcoming payment is charged to.
|
|
181
|
+
attr_accessor :payment_method_details
|
|
182
|
+
# Shipping details for the goods or services covered by the upcoming payment.
|
|
183
|
+
attr_accessor :shipping_details
|
|
184
|
+
# The statement descriptor that appears on the customer's statement for the upcoming payment.
|
|
185
|
+
attr_accessor :statement_descriptor
|
|
186
|
+
|
|
187
|
+
def initialize(
|
|
188
|
+
amount: nil,
|
|
189
|
+
currency: nil,
|
|
190
|
+
description: nil,
|
|
191
|
+
money_movement_details: nil,
|
|
192
|
+
payment_method_details: nil,
|
|
193
|
+
shipping_details: nil,
|
|
194
|
+
statement_descriptor: nil
|
|
195
|
+
)
|
|
196
|
+
@amount = amount
|
|
197
|
+
@currency = currency
|
|
198
|
+
@description = description
|
|
199
|
+
@money_movement_details = money_movement_details
|
|
200
|
+
@payment_method_details = payment_method_details
|
|
201
|
+
@shipping_details = shipping_details
|
|
202
|
+
@statement_descriptor = statement_descriptor
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
# Details about the client device to associate with the billing evaluation.
|
|
206
|
+
attr_accessor :client_device_metadata_details
|
|
207
|
+
# Details about the customer whose upcoming payment is being evaluated.
|
|
208
|
+
attr_accessor :customer_details
|
|
209
|
+
# Specifies which fields in the response should be expanded.
|
|
210
|
+
attr_accessor :expand
|
|
211
|
+
# 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`.
|
|
212
|
+
attr_accessor :metadata
|
|
213
|
+
# Details about the upcoming payment being evaluated.
|
|
214
|
+
attr_accessor :payment_details
|
|
215
|
+
|
|
216
|
+
def initialize(
|
|
217
|
+
client_device_metadata_details: nil,
|
|
218
|
+
customer_details: nil,
|
|
219
|
+
expand: nil,
|
|
220
|
+
metadata: nil,
|
|
221
|
+
payment_details: nil
|
|
222
|
+
)
|
|
223
|
+
@client_device_metadata_details = client_device_metadata_details
|
|
224
|
+
@customer_details = customer_details
|
|
225
|
+
@expand = expand
|
|
226
|
+
@metadata = metadata
|
|
227
|
+
@payment_details = payment_details
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
end
|
|
@@ -76,7 +76,7 @@ module Stripe
|
|
|
76
76
|
@payment_type = payment_type
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
|
-
# Describes card money movement details
|
|
79
|
+
# Describes card money movement details.
|
|
80
80
|
attr_accessor :card
|
|
81
81
|
# Describes the type of money movement. Currently only `card` is supported.
|
|
82
82
|
attr_accessor :money_movement_type
|
|
@@ -789,9 +789,12 @@ module Stripe
|
|
|
789
789
|
end
|
|
790
790
|
# Additional fields for Mandate creation
|
|
791
791
|
attr_accessor :mandate_options
|
|
792
|
+
# Attribute for param field verification_method
|
|
793
|
+
attr_accessor :verification_method
|
|
792
794
|
|
|
793
|
-
def initialize(mandate_options: nil)
|
|
795
|
+
def initialize(mandate_options: nil, verification_method: nil)
|
|
794
796
|
@mandate_options = mandate_options
|
|
797
|
+
@verification_method = verification_method
|
|
795
798
|
end
|
|
796
799
|
end
|
|
797
800
|
|
|
@@ -803,9 +803,12 @@ module Stripe
|
|
|
803
803
|
end
|
|
804
804
|
# Additional fields for Mandate creation
|
|
805
805
|
attr_accessor :mandate_options
|
|
806
|
+
# Attribute for param field verification_method
|
|
807
|
+
attr_accessor :verification_method
|
|
806
808
|
|
|
807
|
-
def initialize(mandate_options: nil)
|
|
809
|
+
def initialize(mandate_options: nil, verification_method: nil)
|
|
808
810
|
@mandate_options = mandate_options
|
|
811
|
+
@verification_method = verification_method
|
|
809
812
|
end
|
|
810
813
|
end
|
|
811
814
|
|
|
@@ -1460,8 +1463,6 @@ module Stripe
|
|
|
1460
1463
|
attr_accessor :payment_method_data
|
|
1461
1464
|
# Payment method-specific configuration for this SetupIntent.
|
|
1462
1465
|
attr_accessor :payment_method_options
|
|
1463
|
-
# The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
1464
|
-
attr_accessor :payment_method_types
|
|
1465
1466
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm).
|
|
1466
1467
|
attr_accessor :return_url
|
|
1467
1468
|
# Provides industry-specific information about the SetupIntent.
|
|
@@ -1494,7 +1495,6 @@ module Stripe
|
|
|
1494
1495
|
payment_method_configuration: nil,
|
|
1495
1496
|
payment_method_data: nil,
|
|
1496
1497
|
payment_method_options: nil,
|
|
1497
|
-
payment_method_types: nil,
|
|
1498
1498
|
return_url: nil,
|
|
1499
1499
|
setup_details: nil,
|
|
1500
1500
|
single_use: nil,
|
|
@@ -1519,7 +1519,6 @@ module Stripe
|
|
|
1519
1519
|
@payment_method_configuration = payment_method_configuration
|
|
1520
1520
|
@payment_method_data = payment_method_data
|
|
1521
1521
|
@payment_method_options = payment_method_options
|
|
1522
|
-
@payment_method_types = payment_method_types
|
|
1523
1522
|
@return_url = return_url
|
|
1524
1523
|
@setup_details = setup_details
|
|
1525
1524
|
@single_use = single_use
|
|
@@ -750,9 +750,12 @@ module Stripe
|
|
|
750
750
|
end
|
|
751
751
|
# Additional fields for Mandate creation
|
|
752
752
|
attr_accessor :mandate_options
|
|
753
|
+
# Attribute for param field verification_method
|
|
754
|
+
attr_accessor :verification_method
|
|
753
755
|
|
|
754
|
-
def initialize(mandate_options: nil)
|
|
756
|
+
def initialize(mandate_options: nil, verification_method: nil)
|
|
755
757
|
@mandate_options = mandate_options
|
|
758
|
+
@verification_method = verification_method
|
|
756
759
|
end
|
|
757
760
|
end
|
|
758
761
|
|
|
@@ -1383,8 +1386,6 @@ module Stripe
|
|
|
1383
1386
|
attr_accessor :payment_method_data
|
|
1384
1387
|
# Payment method-specific configuration for this SetupIntent.
|
|
1385
1388
|
attr_accessor :payment_method_options
|
|
1386
|
-
# The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
1387
|
-
attr_accessor :payment_method_types
|
|
1388
1389
|
# Provides industry-specific information about the SetupIntent.
|
|
1389
1390
|
attr_accessor :setup_details
|
|
1390
1391
|
|
|
@@ -1402,7 +1403,6 @@ module Stripe
|
|
|
1402
1403
|
payment_method_configuration: nil,
|
|
1403
1404
|
payment_method_data: nil,
|
|
1404
1405
|
payment_method_options: nil,
|
|
1405
|
-
payment_method_types: nil,
|
|
1406
1406
|
setup_details: nil
|
|
1407
1407
|
)
|
|
1408
1408
|
@allowed_payment_method_types = allowed_payment_method_types
|
|
@@ -1418,7 +1418,6 @@ module Stripe
|
|
|
1418
1418
|
@payment_method_configuration = payment_method_configuration
|
|
1419
1419
|
@payment_method_data = payment_method_data
|
|
1420
1420
|
@payment_method_options = payment_method_options
|
|
1421
|
-
@payment_method_types = payment_method_types
|
|
1422
1421
|
@setup_details = setup_details
|
|
1423
1422
|
end
|
|
1424
1423
|
end
|
|
@@ -5,19 +5,39 @@ module Stripe
|
|
|
5
5
|
module SharedPayment
|
|
6
6
|
class GrantedTokenCreateParams < ::Stripe::RequestParams
|
|
7
7
|
class UsageLimits < ::Stripe::RequestParams
|
|
8
|
+
class Recurring < ::Stripe::RequestParams
|
|
9
|
+
# The interval at which the shared payment token's amount usage restrictions reset.
|
|
10
|
+
attr_accessor :interval
|
|
11
|
+
# The number of intervals between each reset. Defaults to 1.
|
|
12
|
+
attr_accessor :interval_count
|
|
13
|
+
|
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
|
15
|
+
@interval = interval
|
|
16
|
+
@interval_count = interval_count
|
|
17
|
+
end
|
|
18
|
+
end
|
|
8
19
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
9
20
|
attr_accessor :currency
|
|
10
21
|
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
11
22
|
attr_accessor :expires_at
|
|
12
23
|
# Max amount that can be captured using this SharedPaymentToken
|
|
13
24
|
attr_accessor :max_amount
|
|
25
|
+
# The recurring schedule for the shared payment token's amount usage restrictions.
|
|
26
|
+
attr_accessor :recurring
|
|
14
27
|
# The recurring interval at which the shared payment token's amount usage restrictions reset.
|
|
15
28
|
attr_accessor :recurring_interval
|
|
16
29
|
|
|
17
|
-
def initialize(
|
|
30
|
+
def initialize(
|
|
31
|
+
currency: nil,
|
|
32
|
+
expires_at: nil,
|
|
33
|
+
max_amount: nil,
|
|
34
|
+
recurring: nil,
|
|
35
|
+
recurring_interval: nil
|
|
36
|
+
)
|
|
18
37
|
@currency = currency
|
|
19
38
|
@expires_at = expires_at
|
|
20
39
|
@max_amount = max_amount
|
|
40
|
+
@recurring = recurring
|
|
21
41
|
@recurring_interval = recurring_interval
|
|
22
42
|
end
|
|
23
43
|
end
|
|
@@ -17,19 +17,39 @@ module Stripe
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
class UsageLimits < ::Stripe::RequestParams
|
|
20
|
+
class Recurring < ::Stripe::RequestParams
|
|
21
|
+
# The interval at which the shared payment token's amount usage restrictions reset.
|
|
22
|
+
attr_accessor :interval
|
|
23
|
+
# The number of intervals between each reset. Defaults to 1.
|
|
24
|
+
attr_accessor :interval_count
|
|
25
|
+
|
|
26
|
+
def initialize(interval: nil, interval_count: nil)
|
|
27
|
+
@interval = interval
|
|
28
|
+
@interval_count = interval_count
|
|
29
|
+
end
|
|
30
|
+
end
|
|
20
31
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
21
32
|
attr_accessor :currency
|
|
22
33
|
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
23
34
|
attr_accessor :expires_at
|
|
24
35
|
# Max amount that can be captured using this SharedPaymentToken
|
|
25
36
|
attr_accessor :max_amount
|
|
37
|
+
# The recurring schedule for the shared payment token's amount usage restrictions.
|
|
38
|
+
attr_accessor :recurring
|
|
26
39
|
# The recurring interval at which the shared payment token's amount usage restrictions reset.
|
|
27
40
|
attr_accessor :recurring_interval
|
|
28
41
|
|
|
29
|
-
def initialize(
|
|
42
|
+
def initialize(
|
|
43
|
+
currency: nil,
|
|
44
|
+
expires_at: nil,
|
|
45
|
+
max_amount: nil,
|
|
46
|
+
recurring: nil,
|
|
47
|
+
recurring_interval: nil
|
|
48
|
+
)
|
|
30
49
|
@currency = currency
|
|
31
50
|
@expires_at = expires_at
|
|
32
51
|
@max_amount = max_amount
|
|
52
|
+
@recurring = recurring
|
|
33
53
|
@recurring_interval = recurring_interval
|
|
34
54
|
end
|
|
35
55
|
end
|
|
@@ -8,10 +8,13 @@ module Stripe
|
|
|
8
8
|
attr_accessor :comment
|
|
9
9
|
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
|
|
10
10
|
attr_accessor :feedback
|
|
11
|
+
# Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
|
|
12
|
+
attr_accessor :feedback_option
|
|
11
13
|
|
|
12
|
-
def initialize(comment: nil, feedback: nil)
|
|
14
|
+
def initialize(comment: nil, feedback: nil, feedback_option: nil)
|
|
13
15
|
@comment = comment
|
|
14
16
|
@feedback = feedback
|
|
17
|
+
@feedback_option = feedback_option
|
|
15
18
|
end
|
|
16
19
|
end
|
|
17
20
|
# Details about why this subscription was cancelled
|
|
@@ -248,10 +248,13 @@ module Stripe
|
|
|
248
248
|
attr_accessor :comment
|
|
249
249
|
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
|
|
250
250
|
attr_accessor :feedback
|
|
251
|
+
# Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
|
|
252
|
+
attr_accessor :feedback_option
|
|
251
253
|
|
|
252
|
-
def initialize(comment: nil, feedback: nil)
|
|
254
|
+
def initialize(comment: nil, feedback: nil, feedback_option: nil)
|
|
253
255
|
@comment = comment
|
|
254
256
|
@feedback = feedback
|
|
257
|
+
@feedback_option = feedback_option
|
|
255
258
|
end
|
|
256
259
|
end
|
|
257
260
|
|
|
@@ -1160,6 +1163,8 @@ module Stripe
|
|
|
1160
1163
|
attr_accessor :pending_invoice_item_interval
|
|
1161
1164
|
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1162
1165
|
attr_accessor :prebilling
|
|
1166
|
+
# Token used to resolve the presentment currency and FX rate applied to this subscription's adaptive pricing.
|
|
1167
|
+
attr_accessor :pricing_token
|
|
1163
1168
|
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
1164
1169
|
attr_accessor :proration_behavior
|
|
1165
1170
|
# If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
|
|
@@ -1202,6 +1207,7 @@ module Stripe
|
|
|
1202
1207
|
payment_settings: nil,
|
|
1203
1208
|
pending_invoice_item_interval: nil,
|
|
1204
1209
|
prebilling: nil,
|
|
1210
|
+
pricing_token: nil,
|
|
1205
1211
|
proration_behavior: nil,
|
|
1206
1212
|
proration_date: nil,
|
|
1207
1213
|
transfer_data: nil,
|
|
@@ -1237,6 +1243,7 @@ module Stripe
|
|
|
1237
1243
|
@payment_settings = payment_settings
|
|
1238
1244
|
@pending_invoice_item_interval = pending_invoice_item_interval
|
|
1239
1245
|
@prebilling = prebilling
|
|
1246
|
+
@pricing_token = pricing_token
|
|
1240
1247
|
@proration_behavior = proration_behavior
|
|
1241
1248
|
@proration_date = proration_date
|
|
1242
1249
|
@transfer_data = transfer_data
|