stripe 19.1.0 → 19.2.0
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 +3 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +16 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/account_create_params.rb +26 -0
- data/lib/stripe/params/account_update_params.rb +26 -0
- data/lib/stripe/params/balance_settings_update_params.rb +42 -2
- data/lib/stripe/params/charge_create_params.rb +4 -1
- data/lib/stripe/params/checkout/session_create_params.rb +28 -15
- data/lib/stripe/params/confirmation_token_create_params.rb +11 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +60 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +38 -5
- data/lib/stripe/params/payment_intent_create_params.rb +65 -6
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
- data/lib/stripe/params/payment_intent_update_params.rb +58 -5
- data/lib/stripe/params/payment_link_create_params.rb +30 -1
- data/lib/stripe/params/payment_link_update_params.rb +29 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +43 -1
- data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +43 -1
- data/lib/stripe/params/payment_method_create_params.rb +11 -1
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +18 -2
- data/lib/stripe/params/setup_intent_create_params.rb +18 -2
- data/lib/stripe/params/setup_intent_update_params.rb +18 -2
- data/lib/stripe/params/subscription_create_params.rb +61 -11
- data/lib/stripe/params/subscription_item_create_params.rb +1 -7
- data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
- data/lib/stripe/params/subscription_item_update_params.rb +1 -7
- data/lib/stripe/params/subscription_schedule_create_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +4 -0
- data/lib/stripe/params/subscription_update_params.rb +62 -8
- data/lib/stripe/params/terminal/configuration_create_params.rb +52 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +52 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -1
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
- data/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
- data/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +28 -6
- data/lib/stripe/params/v2/core/account_token_create_params.rb +27 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +29 -7
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +23 -0
- data/lib/stripe/params.rb +1342 -614
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/account.rb +4 -0
- data/lib/stripe/resources/balance_settings.rb +42 -2
- data/lib/stripe/resources/charge.rb +35 -0
- data/lib/stripe/resources/checkout/session.rb +23 -7
- data/lib/stripe/resources/confirmation_token.rb +26 -0
- data/lib/stripe/resources/discount.rb +2 -2
- data/lib/stripe/resources/invoice.rb +2 -0
- data/lib/stripe/resources/invoice_item.rb +34 -1
- data/lib/stripe/resources/issuing/dispute.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/mandate.rb +13 -0
- data/lib/stripe/resources/payment_attempt_record.rb +40 -10
- data/lib/stripe/resources/payment_intent.rb +71 -5
- data/lib/stripe/resources/payment_link.rb +40 -0
- data/lib/stripe/resources/payment_method.rb +26 -0
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +40 -10
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +13 -0
- data/lib/stripe/resources/setup_attempt.rb +13 -0
- data/lib/stripe/resources/setup_intent.rb +26 -0
- data/lib/stripe/resources/subscription.rb +77 -4
- data/lib/stripe/resources/subscription_item.rb +2 -0
- data/lib/stripe/resources/subscription_schedule.rb +2 -0
- data/lib/stripe/resources/terminal/configuration.rb +64 -0
- data/lib/stripe/resources/terminal/reader.rb +116 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +3 -3
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +3 -3
- data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +37 -10
- data/lib/stripe/resources/v2/core/account_token.rb +1 -1
- data/lib/stripe/resources/v2/core/event.rb +1 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +24 -0
- data/lib/stripe/resources.rb +500 -178
- data/lib/stripe/services/payment_intent_service.rb +3 -1
- data/lib/stripe/services/subscription_service.rb +2 -2
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -1
- data/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
- data/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
- data/lib/stripe/services/v2/commerce_service.rb +15 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/event_service.rb +2 -1
- data/lib/stripe/services/v2_services.rb +2 -1
- data/lib/stripe/services.rb +469 -189
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +25 -4
- data/rbi/stripe.rbi +2785 -253
- metadata +14 -2
|
@@ -80,13 +80,7 @@ module Stripe
|
|
|
80
80
|
attr_accessor :expand
|
|
81
81
|
# 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`.
|
|
82
82
|
attr_accessor :metadata
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
# Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.
|
|
86
|
-
#
|
|
87
|
-
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).
|
|
88
|
-
#
|
|
89
|
-
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
|
|
83
|
+
# Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
|
|
90
84
|
attr_accessor :payment_behavior
|
|
91
85
|
# The identifier of the plan to add to the subscription.
|
|
92
86
|
attr_accessor :plan
|
|
@@ -5,13 +5,7 @@ module Stripe
|
|
|
5
5
|
class SubscriptionItemDeleteParams < ::Stripe::RequestParams
|
|
6
6
|
# Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`.
|
|
7
7
|
attr_accessor :clear_usage
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
# Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.
|
|
11
|
-
#
|
|
12
|
-
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).
|
|
13
|
-
#
|
|
14
|
-
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
|
|
8
|
+
# Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
|
|
15
9
|
attr_accessor :payment_behavior
|
|
16
10
|
# 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`.
|
|
17
11
|
attr_accessor :proration_behavior
|
|
@@ -82,13 +82,7 @@ module Stripe
|
|
|
82
82
|
attr_accessor :metadata
|
|
83
83
|
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
|
|
84
84
|
attr_accessor :off_session
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
# Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.
|
|
88
|
-
#
|
|
89
|
-
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).
|
|
90
|
-
#
|
|
91
|
-
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
|
|
85
|
+
# Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
|
|
92
86
|
attr_accessor :payment_behavior
|
|
93
87
|
# The identifier of the new plan for this subscription item.
|
|
94
88
|
attr_accessor :plan
|
|
@@ -224,6 +224,8 @@ module Stripe
|
|
|
224
224
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
225
225
|
end
|
|
226
226
|
end
|
|
227
|
+
# Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.
|
|
228
|
+
attr_accessor :discountable
|
|
227
229
|
# The coupons to redeem into discounts for the item.
|
|
228
230
|
attr_accessor :discounts
|
|
229
231
|
# 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`.
|
|
@@ -240,6 +242,7 @@ module Stripe
|
|
|
240
242
|
attr_accessor :tax_rates
|
|
241
243
|
|
|
242
244
|
def initialize(
|
|
245
|
+
discountable: nil,
|
|
243
246
|
discounts: nil,
|
|
244
247
|
metadata: nil,
|
|
245
248
|
period: nil,
|
|
@@ -248,6 +251,7 @@ module Stripe
|
|
|
248
251
|
quantity: nil,
|
|
249
252
|
tax_rates: nil
|
|
250
253
|
)
|
|
254
|
+
@discountable = discountable
|
|
251
255
|
@discounts = discounts
|
|
252
256
|
@metadata = metadata
|
|
253
257
|
@period = period
|
|
@@ -204,6 +204,8 @@ module Stripe
|
|
|
204
204
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
205
205
|
end
|
|
206
206
|
end
|
|
207
|
+
# Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.
|
|
208
|
+
attr_accessor :discountable
|
|
207
209
|
# The coupons to redeem into discounts for the item.
|
|
208
210
|
attr_accessor :discounts
|
|
209
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`.
|
|
@@ -220,6 +222,7 @@ module Stripe
|
|
|
220
222
|
attr_accessor :tax_rates
|
|
221
223
|
|
|
222
224
|
def initialize(
|
|
225
|
+
discountable: nil,
|
|
223
226
|
discounts: nil,
|
|
224
227
|
metadata: nil,
|
|
225
228
|
period: nil,
|
|
@@ -228,6 +231,7 @@ module Stripe
|
|
|
228
231
|
quantity: nil,
|
|
229
232
|
tax_rates: nil
|
|
230
233
|
)
|
|
234
|
+
@discountable = discountable
|
|
231
235
|
@discounts = discounts
|
|
232
236
|
@metadata = metadata
|
|
233
237
|
@period = period
|
|
@@ -84,6 +84,8 @@ module Stripe
|
|
|
84
84
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
|
+
# Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.
|
|
88
|
+
attr_accessor :discountable
|
|
87
89
|
# The coupons to redeem into discounts for the item.
|
|
88
90
|
attr_accessor :discounts
|
|
89
91
|
# 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`.
|
|
@@ -100,6 +102,7 @@ module Stripe
|
|
|
100
102
|
attr_accessor :tax_rates
|
|
101
103
|
|
|
102
104
|
def initialize(
|
|
105
|
+
discountable: nil,
|
|
103
106
|
discounts: nil,
|
|
104
107
|
metadata: nil,
|
|
105
108
|
period: nil,
|
|
@@ -108,6 +111,7 @@ module Stripe
|
|
|
108
111
|
quantity: nil,
|
|
109
112
|
tax_rates: nil
|
|
110
113
|
)
|
|
114
|
+
@discountable = discountable
|
|
111
115
|
@discounts = discounts
|
|
112
116
|
@metadata = metadata
|
|
113
117
|
@period = period
|
|
@@ -147,6 +151,58 @@ module Stripe
|
|
|
147
151
|
end
|
|
148
152
|
end
|
|
149
153
|
|
|
154
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
155
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
156
|
+
# The ID of the price object.
|
|
157
|
+
attr_accessor :price
|
|
158
|
+
# Controls which subscription items the billing schedule applies to.
|
|
159
|
+
attr_accessor :type
|
|
160
|
+
|
|
161
|
+
def initialize(price: nil, type: nil)
|
|
162
|
+
@price = price
|
|
163
|
+
@type = type
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
class BillUntil < ::Stripe::RequestParams
|
|
168
|
+
class Duration < ::Stripe::RequestParams
|
|
169
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
170
|
+
attr_accessor :interval
|
|
171
|
+
# The multiplier applied to the interval.
|
|
172
|
+
attr_accessor :interval_count
|
|
173
|
+
|
|
174
|
+
def initialize(interval: nil, interval_count: nil)
|
|
175
|
+
@interval = interval
|
|
176
|
+
@interval_count = interval_count
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
# Specifies the billing period.
|
|
180
|
+
attr_accessor :duration
|
|
181
|
+
# The end date of the billing schedule.
|
|
182
|
+
attr_accessor :timestamp
|
|
183
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
184
|
+
attr_accessor :type
|
|
185
|
+
|
|
186
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
187
|
+
@duration = duration
|
|
188
|
+
@timestamp = timestamp
|
|
189
|
+
@type = type
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
# Configure billing schedule differently for individual subscription items.
|
|
193
|
+
attr_accessor :applies_to
|
|
194
|
+
# The end date for the billing schedule.
|
|
195
|
+
attr_accessor :bill_until
|
|
196
|
+
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
197
|
+
attr_accessor :key
|
|
198
|
+
|
|
199
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
200
|
+
@applies_to = applies_to
|
|
201
|
+
@bill_until = bill_until
|
|
202
|
+
@key = key
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
150
206
|
class BillingThresholds < ::Stripe::RequestParams
|
|
151
207
|
# Monetary threshold that triggers the subscription to advance to a new billing period
|
|
152
208
|
attr_accessor :amount_gte
|
|
@@ -666,6 +722,8 @@ module Stripe
|
|
|
666
722
|
attr_accessor :automatic_tax
|
|
667
723
|
# Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
668
724
|
attr_accessor :billing_cycle_anchor
|
|
725
|
+
# Sets the billing schedules for the subscription.
|
|
726
|
+
attr_accessor :billing_schedules
|
|
669
727
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
|
670
728
|
attr_accessor :billing_thresholds
|
|
671
729
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
|
@@ -686,7 +744,7 @@ module Stripe
|
|
|
686
744
|
attr_accessor :default_tax_rates
|
|
687
745
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
688
746
|
attr_accessor :description
|
|
689
|
-
# The coupons to redeem into discounts for the subscription. If not specified or empty,
|
|
747
|
+
# The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts.
|
|
690
748
|
attr_accessor :discounts
|
|
691
749
|
# Specifies which fields in the response should be expanded.
|
|
692
750
|
attr_accessor :expand
|
|
@@ -702,13 +760,7 @@ module Stripe
|
|
|
702
760
|
attr_accessor :on_behalf_of
|
|
703
761
|
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
704
762
|
attr_accessor :pause_collection
|
|
705
|
-
#
|
|
706
|
-
#
|
|
707
|
-
# Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.
|
|
708
|
-
#
|
|
709
|
-
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes).
|
|
710
|
-
#
|
|
711
|
-
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
|
|
763
|
+
# Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
|
|
712
764
|
attr_accessor :payment_behavior
|
|
713
765
|
# Payment settings to pass to invoices created by the subscription.
|
|
714
766
|
attr_accessor :payment_settings
|
|
@@ -732,6 +784,7 @@ module Stripe
|
|
|
732
784
|
application_fee_percent: nil,
|
|
733
785
|
automatic_tax: nil,
|
|
734
786
|
billing_cycle_anchor: nil,
|
|
787
|
+
billing_schedules: nil,
|
|
735
788
|
billing_thresholds: nil,
|
|
736
789
|
cancel_at: nil,
|
|
737
790
|
cancel_at_period_end: nil,
|
|
@@ -764,6 +817,7 @@ module Stripe
|
|
|
764
817
|
@application_fee_percent = application_fee_percent
|
|
765
818
|
@automatic_tax = automatic_tax
|
|
766
819
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
820
|
+
@billing_schedules = billing_schedules
|
|
767
821
|
@billing_thresholds = billing_thresholds
|
|
768
822
|
@cancel_at = cancel_at
|
|
769
823
|
@cancel_at_period_end = cancel_at_period_end
|
|
@@ -475,6 +475,15 @@ module Stripe
|
|
|
475
475
|
end
|
|
476
476
|
end
|
|
477
477
|
|
|
478
|
+
class VerifoneM425 < ::Stripe::RequestParams
|
|
479
|
+
# A File ID representing an image you want to display on the reader.
|
|
480
|
+
attr_accessor :splashscreen
|
|
481
|
+
|
|
482
|
+
def initialize(splashscreen: nil)
|
|
483
|
+
@splashscreen = splashscreen
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
|
478
487
|
class VerifoneP400 < ::Stripe::RequestParams
|
|
479
488
|
# A File ID representing an image you want to display on the reader.
|
|
480
489
|
attr_accessor :splashscreen
|
|
@@ -484,6 +493,33 @@ module Stripe
|
|
|
484
493
|
end
|
|
485
494
|
end
|
|
486
495
|
|
|
496
|
+
class VerifoneP630 < ::Stripe::RequestParams
|
|
497
|
+
# A File ID representing an image you want to display on the reader.
|
|
498
|
+
attr_accessor :splashscreen
|
|
499
|
+
|
|
500
|
+
def initialize(splashscreen: nil)
|
|
501
|
+
@splashscreen = splashscreen
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
class VerifoneUx700 < ::Stripe::RequestParams
|
|
506
|
+
# A File ID representing an image you want to display on the reader.
|
|
507
|
+
attr_accessor :splashscreen
|
|
508
|
+
|
|
509
|
+
def initialize(splashscreen: nil)
|
|
510
|
+
@splashscreen = splashscreen
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
class VerifoneV660p < ::Stripe::RequestParams
|
|
515
|
+
# A File ID representing an image you want to display on the reader.
|
|
516
|
+
attr_accessor :splashscreen
|
|
517
|
+
|
|
518
|
+
def initialize(splashscreen: nil)
|
|
519
|
+
@splashscreen = splashscreen
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
|
|
487
523
|
class Wifi < ::Stripe::RequestParams
|
|
488
524
|
class EnterpriseEapPeap < ::Stripe::RequestParams
|
|
489
525
|
# A File ID representing a PEM file containing the server certificate
|
|
@@ -582,8 +618,16 @@ module Stripe
|
|
|
582
618
|
attr_accessor :stripe_s710
|
|
583
619
|
# Tipping configurations for readers that support on-reader tips.
|
|
584
620
|
attr_accessor :tipping
|
|
621
|
+
# An object containing device type specific settings for Verifone M425 readers.
|
|
622
|
+
attr_accessor :verifone_m425
|
|
585
623
|
# An object containing device type specific settings for Verifone P400 readers.
|
|
586
624
|
attr_accessor :verifone_p400
|
|
625
|
+
# An object containing device type specific settings for Verifone P630 readers.
|
|
626
|
+
attr_accessor :verifone_p630
|
|
627
|
+
# An object containing device type specific settings for Verifone UX700 readers.
|
|
628
|
+
attr_accessor :verifone_ux700
|
|
629
|
+
# An object containing device type specific settings for Verifone V660p readers.
|
|
630
|
+
attr_accessor :verifone_v660p
|
|
587
631
|
# Configurations for connecting to a WiFi network.
|
|
588
632
|
attr_accessor :wifi
|
|
589
633
|
|
|
@@ -598,7 +642,11 @@ module Stripe
|
|
|
598
642
|
stripe_s700: nil,
|
|
599
643
|
stripe_s710: nil,
|
|
600
644
|
tipping: nil,
|
|
645
|
+
verifone_m425: nil,
|
|
601
646
|
verifone_p400: nil,
|
|
647
|
+
verifone_p630: nil,
|
|
648
|
+
verifone_ux700: nil,
|
|
649
|
+
verifone_v660p: nil,
|
|
602
650
|
wifi: nil
|
|
603
651
|
)
|
|
604
652
|
@bbpos_wisepad3 = bbpos_wisepad3
|
|
@@ -611,7 +659,11 @@ module Stripe
|
|
|
611
659
|
@stripe_s700 = stripe_s700
|
|
612
660
|
@stripe_s710 = stripe_s710
|
|
613
661
|
@tipping = tipping
|
|
662
|
+
@verifone_m425 = verifone_m425
|
|
614
663
|
@verifone_p400 = verifone_p400
|
|
664
|
+
@verifone_p630 = verifone_p630
|
|
665
|
+
@verifone_ux700 = verifone_ux700
|
|
666
|
+
@verifone_v660p = verifone_v660p
|
|
615
667
|
@wifi = wifi
|
|
616
668
|
end
|
|
617
669
|
end
|
|
@@ -475,6 +475,15 @@ module Stripe
|
|
|
475
475
|
end
|
|
476
476
|
end
|
|
477
477
|
|
|
478
|
+
class VerifoneM425 < ::Stripe::RequestParams
|
|
479
|
+
# A File ID representing an image you want to display on the reader.
|
|
480
|
+
attr_accessor :splashscreen
|
|
481
|
+
|
|
482
|
+
def initialize(splashscreen: nil)
|
|
483
|
+
@splashscreen = splashscreen
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
|
478
487
|
class VerifoneP400 < ::Stripe::RequestParams
|
|
479
488
|
# A File ID representing an image you want to display on the reader.
|
|
480
489
|
attr_accessor :splashscreen
|
|
@@ -484,6 +493,33 @@ module Stripe
|
|
|
484
493
|
end
|
|
485
494
|
end
|
|
486
495
|
|
|
496
|
+
class VerifoneP630 < ::Stripe::RequestParams
|
|
497
|
+
# A File ID representing an image you want to display on the reader.
|
|
498
|
+
attr_accessor :splashscreen
|
|
499
|
+
|
|
500
|
+
def initialize(splashscreen: nil)
|
|
501
|
+
@splashscreen = splashscreen
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
class VerifoneUx700 < ::Stripe::RequestParams
|
|
506
|
+
# A File ID representing an image you want to display on the reader.
|
|
507
|
+
attr_accessor :splashscreen
|
|
508
|
+
|
|
509
|
+
def initialize(splashscreen: nil)
|
|
510
|
+
@splashscreen = splashscreen
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
class VerifoneV660p < ::Stripe::RequestParams
|
|
515
|
+
# A File ID representing an image you want to display on the reader.
|
|
516
|
+
attr_accessor :splashscreen
|
|
517
|
+
|
|
518
|
+
def initialize(splashscreen: nil)
|
|
519
|
+
@splashscreen = splashscreen
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
|
|
487
523
|
class Wifi < ::Stripe::RequestParams
|
|
488
524
|
class EnterpriseEapPeap < ::Stripe::RequestParams
|
|
489
525
|
# A File ID representing a PEM file containing the server certificate
|
|
@@ -582,8 +618,16 @@ module Stripe
|
|
|
582
618
|
attr_accessor :stripe_s710
|
|
583
619
|
# Tipping configurations for readers that support on-reader tips.
|
|
584
620
|
attr_accessor :tipping
|
|
621
|
+
# An object containing device type specific settings for Verifone M425 readers.
|
|
622
|
+
attr_accessor :verifone_m425
|
|
585
623
|
# An object containing device type specific settings for Verifone P400 readers.
|
|
586
624
|
attr_accessor :verifone_p400
|
|
625
|
+
# An object containing device type specific settings for Verifone P630 readers.
|
|
626
|
+
attr_accessor :verifone_p630
|
|
627
|
+
# An object containing device type specific settings for Verifone UX700 readers.
|
|
628
|
+
attr_accessor :verifone_ux700
|
|
629
|
+
# An object containing device type specific settings for Verifone V660p readers.
|
|
630
|
+
attr_accessor :verifone_v660p
|
|
587
631
|
# Configurations for connecting to a WiFi network.
|
|
588
632
|
attr_accessor :wifi
|
|
589
633
|
|
|
@@ -598,7 +642,11 @@ module Stripe
|
|
|
598
642
|
stripe_s700: nil,
|
|
599
643
|
stripe_s710: nil,
|
|
600
644
|
tipping: nil,
|
|
645
|
+
verifone_m425: nil,
|
|
601
646
|
verifone_p400: nil,
|
|
647
|
+
verifone_p630: nil,
|
|
648
|
+
verifone_ux700: nil,
|
|
649
|
+
verifone_v660p: nil,
|
|
602
650
|
wifi: nil
|
|
603
651
|
)
|
|
604
652
|
@bbpos_wisepad3 = bbpos_wisepad3
|
|
@@ -611,7 +659,11 @@ module Stripe
|
|
|
611
659
|
@stripe_s700 = stripe_s700
|
|
612
660
|
@stripe_s710 = stripe_s710
|
|
613
661
|
@tipping = tipping
|
|
662
|
+
@verifone_m425 = verifone_m425
|
|
614
663
|
@verifone_p400 = verifone_p400
|
|
664
|
+
@verifone_p630 = verifone_p630
|
|
665
|
+
@verifone_ux700 = verifone_ux700
|
|
666
|
+
@verifone_v660p = verifone_v660p
|
|
615
667
|
@wifi = wifi
|
|
616
668
|
end
|
|
617
669
|
end
|
|
@@ -104,6 +104,7 @@ module Stripe
|
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
+
class Bizum < ::Stripe::RequestParams; end
|
|
107
108
|
class Blik < ::Stripe::RequestParams; end
|
|
108
109
|
|
|
109
110
|
class Boleto < ::Stripe::RequestParams
|
|
@@ -271,6 +272,7 @@ module Stripe
|
|
|
271
272
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
272
273
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
273
274
|
class Satispay < ::Stripe::RequestParams; end
|
|
275
|
+
class Scalapay < ::Stripe::RequestParams; end
|
|
274
276
|
|
|
275
277
|
class SepaDebit < ::Stripe::RequestParams
|
|
276
278
|
# IBAN of the bank account.
|
|
@@ -373,6 +375,8 @@ module Stripe
|
|
|
373
375
|
attr_accessor :billie
|
|
374
376
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
|
375
377
|
attr_accessor :billing_details
|
|
378
|
+
# If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
|
|
379
|
+
attr_accessor :bizum
|
|
376
380
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
|
377
381
|
attr_accessor :blik
|
|
378
382
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
|
@@ -403,7 +407,7 @@ module Stripe
|
|
|
403
407
|
attr_accessor :konbini
|
|
404
408
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
|
405
409
|
attr_accessor :kr_card
|
|
406
|
-
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
410
|
+
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
|
|
407
411
|
attr_accessor :link
|
|
408
412
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
409
413
|
attr_accessor :mb_way
|
|
@@ -443,6 +447,8 @@ module Stripe
|
|
|
443
447
|
attr_accessor :samsung_pay
|
|
444
448
|
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
|
445
449
|
attr_accessor :satispay
|
|
450
|
+
# If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
|
|
451
|
+
attr_accessor :scalapay
|
|
446
452
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
447
453
|
attr_accessor :sepa_debit
|
|
448
454
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
@@ -477,6 +483,7 @@ module Stripe
|
|
|
477
483
|
bancontact: nil,
|
|
478
484
|
billie: nil,
|
|
479
485
|
billing_details: nil,
|
|
486
|
+
bizum: nil,
|
|
480
487
|
blik: nil,
|
|
481
488
|
boleto: nil,
|
|
482
489
|
cashapp: nil,
|
|
@@ -512,6 +519,7 @@ module Stripe
|
|
|
512
519
|
revolut_pay: nil,
|
|
513
520
|
samsung_pay: nil,
|
|
514
521
|
satispay: nil,
|
|
522
|
+
scalapay: nil,
|
|
515
523
|
sepa_debit: nil,
|
|
516
524
|
sofort: nil,
|
|
517
525
|
sunbit: nil,
|
|
@@ -535,6 +543,7 @@ module Stripe
|
|
|
535
543
|
@bancontact = bancontact
|
|
536
544
|
@billie = billie
|
|
537
545
|
@billing_details = billing_details
|
|
546
|
+
@bizum = bizum
|
|
538
547
|
@blik = blik
|
|
539
548
|
@boleto = boleto
|
|
540
549
|
@cashapp = cashapp
|
|
@@ -570,6 +579,7 @@ module Stripe
|
|
|
570
579
|
@revolut_pay = revolut_pay
|
|
571
580
|
@samsung_pay = samsung_pay
|
|
572
581
|
@satispay = satispay
|
|
582
|
+
@scalapay = scalapay
|
|
573
583
|
@sepa_debit = sepa_debit
|
|
574
584
|
@sofort = sofort
|
|
575
585
|
@sunbit = sunbit
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module TestHelpers
|
|
6
6
|
class TestClockCreateParams < ::Stripe::RequestParams
|
|
7
|
+
# Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock.
|
|
8
|
+
attr_accessor :customer
|
|
7
9
|
# Specifies which fields in the response should be expanded.
|
|
8
10
|
attr_accessor :expand
|
|
9
11
|
# The initial frozen time for this test clock.
|
|
@@ -11,7 +13,8 @@ module Stripe
|
|
|
11
13
|
# The name for this test clock.
|
|
12
14
|
attr_accessor :name
|
|
13
15
|
|
|
14
|
-
def initialize(expand: nil, frozen_time: nil, name: nil)
|
|
16
|
+
def initialize(customer: nil, expand: nil, frozen_time: nil, name: nil)
|
|
17
|
+
@customer = customer
|
|
15
18
|
@expand = expand
|
|
16
19
|
@frozen_time = frozen_time
|
|
17
20
|
@name = name
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
module Billing
|
|
7
7
|
class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams
|
|
8
8
|
class Cancel < ::Stripe::RequestParams
|
|
9
|
-
#
|
|
9
|
+
# The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them.
|
|
10
10
|
attr_accessor :identifier
|
|
11
11
|
|
|
12
12
|
def initialize(identifier: nil)
|
|
@@ -17,7 +17,7 @@ module Stripe
|
|
|
17
17
|
attr_accessor :cancel
|
|
18
18
|
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
19
19
|
attr_accessor :event_name
|
|
20
|
-
# Specifies
|
|
20
|
+
# Specifies the type of cancellation. Currently supports canceling a single event.
|
|
21
21
|
attr_accessor :type
|
|
22
22
|
|
|
23
23
|
def initialize(cancel: nil, event_name: nil, type: nil)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Commerce
|
|
7
|
+
module ProductCatalog
|
|
8
|
+
class ImportCreateParams < ::Stripe::RequestParams
|
|
9
|
+
# The type of catalog data to import.
|
|
10
|
+
attr_accessor :feed_type
|
|
11
|
+
# Additional information about the import in a structured format.
|
|
12
|
+
attr_accessor :metadata
|
|
13
|
+
# The strategy for handling existing catalog data during import.
|
|
14
|
+
attr_accessor :mode
|
|
15
|
+
|
|
16
|
+
def initialize(feed_type: nil, metadata: nil, mode: nil)
|
|
17
|
+
@feed_type = feed_type
|
|
18
|
+
@metadata = metadata
|
|
19
|
+
@mode = mode
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Commerce
|
|
7
|
+
module ProductCatalog
|
|
8
|
+
class ImportListParams < ::Stripe::RequestParams
|
|
9
|
+
# Filter for objects created at the specified timestamp.
|
|
10
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
11
|
+
attr_accessor :created
|
|
12
|
+
# Filter for objects created after the specified timestamp.
|
|
13
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
14
|
+
attr_accessor :created_gt
|
|
15
|
+
# Filter for objects created on or after the specified timestamp.
|
|
16
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
17
|
+
attr_accessor :created_gte
|
|
18
|
+
# Filter for objects created before the specified timestamp.
|
|
19
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
20
|
+
attr_accessor :created_lt
|
|
21
|
+
# Filter for objects created on or before the specified timestamp.
|
|
22
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
23
|
+
attr_accessor :created_lte
|
|
24
|
+
# Filter by the type of feed data being imported.
|
|
25
|
+
attr_accessor :feed_type
|
|
26
|
+
# The maximum number of results per page.
|
|
27
|
+
attr_accessor :limit
|
|
28
|
+
# Filter by import status.
|
|
29
|
+
attr_accessor :status
|
|
30
|
+
|
|
31
|
+
def initialize(
|
|
32
|
+
created: nil,
|
|
33
|
+
created_gt: nil,
|
|
34
|
+
created_gte: nil,
|
|
35
|
+
created_lt: nil,
|
|
36
|
+
created_lte: nil,
|
|
37
|
+
feed_type: nil,
|
|
38
|
+
limit: nil,
|
|
39
|
+
status: nil
|
|
40
|
+
)
|
|
41
|
+
@created = created
|
|
42
|
+
@created_gt = created_gt
|
|
43
|
+
@created_gte = created_gte
|
|
44
|
+
@created_lt = created_lt
|
|
45
|
+
@created_lte = created_lte
|
|
46
|
+
@feed_type = feed_type
|
|
47
|
+
@limit = limit
|
|
48
|
+
@status = status
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|