stripe 19.4.0.pre.alpha.2 → 19.4.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/api_requestor.rb +2 -27
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/error_object.rb +48 -19
- data/lib/stripe/event_types.rb +15 -0
- data/lib/stripe/events/v2_billing_contract_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_ended_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +0 -1
- data/lib/stripe/params/account_create_params.rb +2 -0
- data/lib/stripe/params/account_person_create_params.rb +6 -0
- data/lib/stripe/params/account_person_update_params.rb +6 -0
- data/lib/stripe/params/account_session_create_params.rb +0 -42
- data/lib/stripe/params/account_update_params.rb +2 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +2 -2
- data/lib/stripe/params/checkout/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +10 -1
- data/lib/stripe/params/payment_intent_create_params.rb +10 -1
- data/lib/stripe/params/payment_intent_update_params.rb +10 -1
- data/lib/stripe/params/payment_record_create_params.rb +109 -0
- data/lib/stripe/params/promotion_code_create_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +138 -2
- data/lib/stripe/params/subscription_schedule_list_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +139 -3
- data/lib/stripe/params/terminal/reader_activate_gift_card_params.rb +35 -0
- data/lib/stripe/params/terminal/reader_cashout_gift_card_params.rb +21 -0
- data/lib/stripe/params/terminal/reader_check_gift_card_balance_params.rb +21 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +4 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +4 -0
- data/lib/stripe/params/terminal/reader_reload_gift_card_params.rb +27 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -1
- data/lib/stripe/params/token_create_params.rb +8 -0
- data/lib/stripe/params/v2/billing/contract_cancel_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +13 -175
- data/lib/stripe/params/v2/billing/contract_list_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_update_params.rb +48 -495
- data/lib/stripe/params/v2/core/account_list_params.rb +9 -1
- data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +2 -2
- data/lib/stripe/params.rb +10 -8
- data/lib/stripe/resources/account.rb +55 -3
- data/lib/stripe/resources/account_session.rb +8 -0
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/alert_recovered.rb +17 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
- data/lib/stripe/resources/capability.rb +2 -2
- data/lib/stripe/resources/capital/financing_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +1 -1
- data/lib/stripe/resources/checkout/session.rb +23 -5
- data/lib/stripe/resources/confirmation_token.rb +1 -1
- data/lib/stripe/resources/dispute.rb +4 -2
- data/lib/stripe/resources/financial_connections/session.rb +5 -0
- data/lib/stripe/resources/invoice.rb +4 -1
- data/lib/stripe/resources/issuing/authorization.rb +52 -1
- data/lib/stripe/resources/issuing/card.rb +2 -0
- data/lib/stripe/resources/issuing/transaction.rb +48 -2
- data/lib/stripe/resources/order.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +2 -2
- data/lib/stripe/resources/payment_intent.rb +28 -0
- data/lib/stripe/resources/payment_method.rb +3 -3
- data/lib/stripe/resources/payment_record.rb +14 -2
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/profile.rb +14 -14
- data/lib/stripe/resources/quote.rb +22 -1
- data/lib/stripe/resources/quote_preview_invoice.rb +4 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +169 -2
- data/lib/stripe/resources/setup_attempt.rb +16 -0
- data/lib/stripe/resources/setup_intent.rb +3 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +1 -1
- data/lib/stripe/resources/shared_payment/issued_token.rb +18 -1
- data/lib/stripe/resources/subscription_schedule.rb +169 -2
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +32 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/terminal/reader.rb +173 -0
- data/lib/stripe/resources/v2/billing/contract.rb +47 -330
- data/lib/stripe/resources/v2/billing/contract_pricing_line_quantity_change.rb +2 -2
- data/lib/stripe/resources/v2/core/account.rb +18 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +16 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +30 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +4 -1
- data/lib/stripe/resources.rb +15 -2
- data/lib/stripe/services/account_person_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +1 -1
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +12 -0
- data/lib/stripe/services/terminal/reader_service.rb +44 -0
- data/lib/stripe/services/v1_services.rb +1 -2
- data/lib/stripe/services/v2/billing/contract_service.rb +7 -7
- data/lib/stripe/services/v2/signals/account_signal_service.rb +1 -1
- data/lib/stripe/services.rb +0 -2
- data/lib/stripe/stripe_event_notification_handler.rb +30 -0
- data/lib/stripe/telemetry_id.rb +65 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +2 -0
- data/rbi/stripe.rbi +2023 -1531
- metadata +13 -8
- data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
- data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
- data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
- data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
- data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -153
- data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -57
|
@@ -178,6 +178,138 @@ module Stripe
|
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
+
class PauseSchedule < ::Stripe::RequestParams
|
|
182
|
+
class Pause < ::Stripe::RequestParams
|
|
183
|
+
class PauseAt < ::Stripe::RequestParams
|
|
184
|
+
# The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
|
|
185
|
+
attr_accessor :timestamp
|
|
186
|
+
# When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
|
|
187
|
+
attr_accessor :type
|
|
188
|
+
|
|
189
|
+
def initialize(timestamp: nil, type: nil)
|
|
190
|
+
@timestamp = timestamp
|
|
191
|
+
@type = type
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
class Settings < ::Stripe::RequestParams
|
|
196
|
+
class BillFor < ::Stripe::RequestParams
|
|
197
|
+
class OutstandingUsageThrough < ::Stripe::RequestParams
|
|
198
|
+
# Determines whether to collect metered usage accrued up to the pause date.
|
|
199
|
+
attr_accessor :type
|
|
200
|
+
|
|
201
|
+
def initialize(type: nil)
|
|
202
|
+
@type = type
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
class UnusedTimeFrom < ::Stripe::RequestParams
|
|
207
|
+
# Determines which point in the billing period unused time is credited from.
|
|
208
|
+
attr_accessor :type
|
|
209
|
+
|
|
210
|
+
def initialize(type: nil)
|
|
211
|
+
@type = type
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
# Controls whether to collect metered usage accrued up to the pause date.
|
|
215
|
+
attr_accessor :outstanding_usage_through
|
|
216
|
+
# Controls how unused time on subscription items is credited when pausing.
|
|
217
|
+
attr_accessor :unused_time_from
|
|
218
|
+
|
|
219
|
+
def initialize(outstanding_usage_through: nil, unused_time_from: nil)
|
|
220
|
+
@outstanding_usage_through = outstanding_usage_through
|
|
221
|
+
@unused_time_from = unused_time_from
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
# Controls what to bill for when pausing the subscription.
|
|
225
|
+
attr_accessor :bill_for
|
|
226
|
+
# Determines whether to generate an invoice for outstanding amounts when pausing.
|
|
227
|
+
attr_accessor :invoicing_behavior
|
|
228
|
+
# The pause type. Currently only `subscription` is supported.
|
|
229
|
+
attr_accessor :type
|
|
230
|
+
|
|
231
|
+
def initialize(bill_for: nil, invoicing_behavior: nil, type: nil)
|
|
232
|
+
@bill_for = bill_for
|
|
233
|
+
@invoicing_behavior = invoicing_behavior
|
|
234
|
+
@type = type
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
# When to pause the subscription.
|
|
238
|
+
attr_accessor :pause_at
|
|
239
|
+
# Settings controlling billing behavior during the pause.
|
|
240
|
+
attr_accessor :settings
|
|
241
|
+
|
|
242
|
+
def initialize(pause_at: nil, settings: nil)
|
|
243
|
+
@pause_at = pause_at
|
|
244
|
+
@settings = settings
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
class Resume < ::Stripe::RequestParams
|
|
249
|
+
class ResumeAt < ::Stripe::RequestParams
|
|
250
|
+
class Duration < ::Stripe::RequestParams
|
|
251
|
+
# The time unit for the resume duration. One of `day`, `week`, `month`, or `year`.
|
|
252
|
+
attr_accessor :interval
|
|
253
|
+
# The number of intervals after which the subscription resumes.
|
|
254
|
+
attr_accessor :interval_count
|
|
255
|
+
|
|
256
|
+
def initialize(interval: nil, interval_count: nil)
|
|
257
|
+
@interval = interval
|
|
258
|
+
@interval_count = interval_count
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
# The duration after which to resume the subscription. Required when `type` is `duration`.
|
|
262
|
+
attr_accessor :duration
|
|
263
|
+
# The Unix timestamp at which to resume the subscription. Required when `type` is `timestamp`.
|
|
264
|
+
attr_accessor :timestamp
|
|
265
|
+
# When to resume the subscription. Use `now` to resume immediately, `duration` to resume after a set duration, or `timestamp` to resume at a specific time.
|
|
266
|
+
attr_accessor :type
|
|
267
|
+
|
|
268
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
269
|
+
@duration = duration
|
|
270
|
+
@timestamp = timestamp
|
|
271
|
+
@type = type
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
class Settings < ::Stripe::RequestParams
|
|
276
|
+
# Controls the billing cycle anchor when the subscription resumes.
|
|
277
|
+
attr_accessor :billing_cycle_anchor
|
|
278
|
+
# Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_attempt`.
|
|
279
|
+
attr_accessor :payment_behavior
|
|
280
|
+
# Determines how to handle prorations when the subscription resumes. The default is `create_prorations`.
|
|
281
|
+
attr_accessor :proration_behavior
|
|
282
|
+
|
|
283
|
+
def initialize(billing_cycle_anchor: nil, payment_behavior: nil, proration_behavior: nil)
|
|
284
|
+
@billing_cycle_anchor = billing_cycle_anchor
|
|
285
|
+
@payment_behavior = payment_behavior
|
|
286
|
+
@proration_behavior = proration_behavior
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
# When to resume the subscription.
|
|
290
|
+
attr_accessor :resume_at
|
|
291
|
+
# Settings controlling how the subscription resumes.
|
|
292
|
+
attr_accessor :settings
|
|
293
|
+
|
|
294
|
+
def initialize(resume_at: nil, settings: nil)
|
|
295
|
+
@resume_at = resume_at
|
|
296
|
+
@settings = settings
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
# A unique identifier for this pause schedule entry.
|
|
300
|
+
attr_accessor :key
|
|
301
|
+
# Configuration for when and how the subscription pauses.
|
|
302
|
+
attr_accessor :pause
|
|
303
|
+
# Configuration for when and how the subscription resumes.
|
|
304
|
+
attr_accessor :resume
|
|
305
|
+
|
|
306
|
+
def initialize(key: nil, pause: nil, resume: nil)
|
|
307
|
+
@key = key
|
|
308
|
+
@pause = pause
|
|
309
|
+
@resume = resume
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
|
|
181
313
|
class Phase < ::Stripe::RequestParams
|
|
182
314
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
183
315
|
class Discount < ::Stripe::RequestParams
|
|
@@ -488,7 +620,7 @@ module Stripe
|
|
|
488
620
|
end
|
|
489
621
|
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
|
490
622
|
attr_accessor :account_tax_ids
|
|
491
|
-
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `
|
|
623
|
+
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
|
|
492
624
|
attr_accessor :days_until_due
|
|
493
625
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
494
626
|
attr_accessor :issuer
|
|
@@ -791,7 +923,7 @@ module Stripe
|
|
|
791
923
|
attr_accessor :pause_collection
|
|
792
924
|
# Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
793
925
|
attr_accessor :proration_behavior
|
|
794
|
-
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
|
926
|
+
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase. Prefer to specify `now` over an explicit timestamp when appropriate to avoid unexpected behavior due to request delays or clock skew resulting in the phase being slightly backdated or postdated.
|
|
795
927
|
attr_accessor :start_date
|
|
796
928
|
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
|
797
929
|
attr_accessor :transfer_data
|
|
@@ -799,7 +931,7 @@ module Stripe
|
|
|
799
931
|
attr_accessor :trial
|
|
800
932
|
# Specify trial behavior when crossing phase boundaries
|
|
801
933
|
attr_accessor :trial_continuation
|
|
802
|
-
# Sets the phase to trialing from the start date to this date. Must be
|
|
934
|
+
# Sets the phase to trialing from the start date to this date. Must be within the phase. When combined with `trial=true`, it must match the phase end date.
|
|
803
935
|
attr_accessor :trial_end
|
|
804
936
|
# Settings related to subscription trials.
|
|
805
937
|
attr_accessor :trial_settings
|
|
@@ -903,6 +1035,8 @@ module Stripe
|
|
|
903
1035
|
attr_accessor :expand
|
|
904
1036
|
# 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`.
|
|
905
1037
|
attr_accessor :metadata
|
|
1038
|
+
# Sets the pause schedules for the subscription schedule. Include a `key` to update an existing entry or omit it to add a new one. Pass `""` to clear all entries or `[]` to leave them unchanged.
|
|
1039
|
+
attr_accessor :pause_schedules
|
|
906
1040
|
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
|
|
907
1041
|
attr_accessor :phases
|
|
908
1042
|
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
@@ -917,6 +1051,7 @@ module Stripe
|
|
|
917
1051
|
end_behavior: nil,
|
|
918
1052
|
expand: nil,
|
|
919
1053
|
metadata: nil,
|
|
1054
|
+
pause_schedules: nil,
|
|
920
1055
|
phases: nil,
|
|
921
1056
|
prebilling: nil,
|
|
922
1057
|
proration_behavior: nil
|
|
@@ -927,6 +1062,7 @@ module Stripe
|
|
|
927
1062
|
@end_behavior = end_behavior
|
|
928
1063
|
@expand = expand
|
|
929
1064
|
@metadata = metadata
|
|
1065
|
+
@pause_schedules = pause_schedules
|
|
930
1066
|
@phases = phases
|
|
931
1067
|
@prebilling = prebilling
|
|
932
1068
|
@proration_behavior = proration_behavior
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Terminal
|
|
6
|
+
class ReaderActivateGiftCardParams < ::Stripe::RequestParams
|
|
7
|
+
class Balance < ::Stripe::RequestParams
|
|
8
|
+
# The initial balance amount to be loaded when activating the gift card, in the smallest currency unit
|
|
9
|
+
attr_accessor :amount
|
|
10
|
+
# 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).
|
|
11
|
+
attr_accessor :currency
|
|
12
|
+
|
|
13
|
+
def initialize(amount: nil, currency: nil)
|
|
14
|
+
@amount = amount
|
|
15
|
+
@currency = currency
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
# The initial balance to set on the gift card.
|
|
19
|
+
attr_accessor :balance
|
|
20
|
+
# The brand of the gift card.
|
|
21
|
+
attr_accessor :brand
|
|
22
|
+
# Specifies which fields in the response should be expanded.
|
|
23
|
+
attr_accessor :expand
|
|
24
|
+
# The Stripe account ID to process the gift card operation on behalf of.
|
|
25
|
+
attr_accessor :on_behalf_of
|
|
26
|
+
|
|
27
|
+
def initialize(balance: nil, brand: nil, expand: nil, on_behalf_of: nil)
|
|
28
|
+
@balance = balance
|
|
29
|
+
@brand = brand
|
|
30
|
+
@expand = expand
|
|
31
|
+
@on_behalf_of = on_behalf_of
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Terminal
|
|
6
|
+
class ReaderCashoutGiftCardParams < ::Stripe::RequestParams
|
|
7
|
+
# The brand of the gift card.
|
|
8
|
+
attr_accessor :brand
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# The Stripe account ID to process the gift card operation on behalf of.
|
|
12
|
+
attr_accessor :on_behalf_of
|
|
13
|
+
|
|
14
|
+
def initialize(brand: nil, expand: nil, on_behalf_of: nil)
|
|
15
|
+
@brand = brand
|
|
16
|
+
@expand = expand
|
|
17
|
+
@on_behalf_of = on_behalf_of
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Terminal
|
|
6
|
+
class ReaderCheckGiftCardBalanceParams < ::Stripe::RequestParams
|
|
7
|
+
# The brand of the gift card.
|
|
8
|
+
attr_accessor :brand
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# The Stripe account ID to process the gift card operation on behalf of.
|
|
12
|
+
attr_accessor :on_behalf_of
|
|
13
|
+
|
|
14
|
+
def initialize(brand: nil, expand: nil, on_behalf_of: nil)
|
|
15
|
+
@brand = brand
|
|
16
|
+
@expand = expand
|
|
17
|
+
@on_behalf_of = on_behalf_of
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -17,6 +17,8 @@ module Stripe
|
|
|
17
17
|
attr_accessor :allow_redisplay
|
|
18
18
|
# Enables cancel button on transaction screens.
|
|
19
19
|
attr_accessor :enable_customer_cancellation
|
|
20
|
+
# The gift card brand to use in the transaction.
|
|
21
|
+
attr_accessor :gift_card_brand
|
|
20
22
|
# Override showing a tipping selection screen on this transaction.
|
|
21
23
|
attr_accessor :skip_tipping
|
|
22
24
|
# Tipping configuration for this transaction.
|
|
@@ -25,11 +27,13 @@ module Stripe
|
|
|
25
27
|
def initialize(
|
|
26
28
|
allow_redisplay: nil,
|
|
27
29
|
enable_customer_cancellation: nil,
|
|
30
|
+
gift_card_brand: nil,
|
|
28
31
|
skip_tipping: nil,
|
|
29
32
|
tipping: nil
|
|
30
33
|
)
|
|
31
34
|
@allow_redisplay = allow_redisplay
|
|
32
35
|
@enable_customer_cancellation = enable_customer_cancellation
|
|
36
|
+
@gift_card_brand = gift_card_brand
|
|
33
37
|
@skip_tipping = skip_tipping
|
|
34
38
|
@tipping = tipping
|
|
35
39
|
end
|
|
@@ -17,6 +17,8 @@ module Stripe
|
|
|
17
17
|
attr_accessor :allow_redisplay
|
|
18
18
|
# Enables cancel button on transaction screens.
|
|
19
19
|
attr_accessor :enable_customer_cancellation
|
|
20
|
+
# The gift card brand to use in the transaction.
|
|
21
|
+
attr_accessor :gift_card_brand
|
|
20
22
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
|
|
21
23
|
attr_accessor :return_url
|
|
22
24
|
# Override showing a tipping selection screen on this transaction.
|
|
@@ -27,12 +29,14 @@ module Stripe
|
|
|
27
29
|
def initialize(
|
|
28
30
|
allow_redisplay: nil,
|
|
29
31
|
enable_customer_cancellation: nil,
|
|
32
|
+
gift_card_brand: nil,
|
|
30
33
|
return_url: nil,
|
|
31
34
|
skip_tipping: nil,
|
|
32
35
|
tipping: nil
|
|
33
36
|
)
|
|
34
37
|
@allow_redisplay = allow_redisplay
|
|
35
38
|
@enable_customer_cancellation = enable_customer_cancellation
|
|
39
|
+
@gift_card_brand = gift_card_brand
|
|
36
40
|
@return_url = return_url
|
|
37
41
|
@skip_tipping = skip_tipping
|
|
38
42
|
@tipping = tipping
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Terminal
|
|
6
|
+
class ReaderReloadGiftCardParams < ::Stripe::RequestParams
|
|
7
|
+
# The amount to add to the gift card balance, in the smallest currency unit.
|
|
8
|
+
attr_accessor :amount
|
|
9
|
+
# The brand of the gift card.
|
|
10
|
+
attr_accessor :brand
|
|
11
|
+
# 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).
|
|
12
|
+
attr_accessor :currency
|
|
13
|
+
# Specifies which fields in the response should be expanded.
|
|
14
|
+
attr_accessor :expand
|
|
15
|
+
# The Stripe account ID to process the gift card operation on behalf of.
|
|
16
|
+
attr_accessor :on_behalf_of
|
|
17
|
+
|
|
18
|
+
def initialize(amount: nil, brand: nil, currency: nil, expand: nil, on_behalf_of: nil)
|
|
19
|
+
@amount = amount
|
|
20
|
+
@brand = brand
|
|
21
|
+
@currency = currency
|
|
22
|
+
@expand = expand
|
|
23
|
+
@on_behalf_of = on_behalf_of
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -45,7 +45,7 @@ module Stripe
|
|
|
45
45
|
|
|
46
46
|
class ReportedBreakdown < ::Stripe::RequestParams
|
|
47
47
|
class Fuel < ::Stripe::RequestParams
|
|
48
|
-
# Gross fuel amount that should equal Fuel Volume
|
|
48
|
+
# Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
|
|
49
49
|
attr_accessor :gross_amount_decimal
|
|
50
50
|
|
|
51
51
|
def initialize(gross_amount_decimal: nil)
|
|
@@ -47,7 +47,7 @@ module Stripe
|
|
|
47
47
|
|
|
48
48
|
class ReportedBreakdown < ::Stripe::RequestParams
|
|
49
49
|
class Fuel < ::Stripe::RequestParams
|
|
50
|
-
# Gross fuel amount that should equal Fuel Volume
|
|
50
|
+
# Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
|
|
51
51
|
attr_accessor :gross_amount_decimal
|
|
52
52
|
|
|
53
53
|
def initialize(gross_amount_decimal: nil)
|
|
@@ -35,7 +35,7 @@ module Stripe
|
|
|
35
35
|
|
|
36
36
|
class ReportedBreakdown < ::Stripe::RequestParams
|
|
37
37
|
class Fuel < ::Stripe::RequestParams
|
|
38
|
-
# Gross fuel amount that should equal Fuel Volume
|
|
38
|
+
# Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
|
|
39
39
|
attr_accessor :gross_amount_decimal
|
|
40
40
|
|
|
41
41
|
def initialize(gross_amount_decimal: nil)
|
|
@@ -96,7 +96,7 @@ module Stripe
|
|
|
96
96
|
|
|
97
97
|
class ReportedBreakdown < ::Stripe::RequestParams
|
|
98
98
|
class Fuel < ::Stripe::RequestParams
|
|
99
|
-
# Gross fuel amount that should equal Fuel Volume
|
|
99
|
+
# Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
|
|
100
100
|
attr_accessor :gross_amount_decimal
|
|
101
101
|
|
|
102
102
|
def initialize(gross_amount_decimal: nil)
|
|
@@ -87,7 +87,7 @@ module Stripe
|
|
|
87
87
|
|
|
88
88
|
class ReportedBreakdown < ::Stripe::RequestParams
|
|
89
89
|
class Fuel < ::Stripe::RequestParams
|
|
90
|
-
# Gross fuel amount that should equal Fuel Volume
|
|
90
|
+
# Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
|
|
91
91
|
attr_accessor :gross_amount_decimal
|
|
92
92
|
|
|
93
93
|
def initialize(gross_amount_decimal: nil)
|
|
@@ -226,6 +226,8 @@ module Stripe
|
|
|
226
226
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
|
227
227
|
attr_accessor :structure
|
|
228
228
|
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
|
|
229
|
+
#
|
|
230
|
+
# Changing this value requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
|
|
229
231
|
attr_accessor :tax_id
|
|
230
232
|
# The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
|
|
231
233
|
attr_accessor :tax_id_registrar
|
|
@@ -1197,8 +1199,12 @@ module Stripe
|
|
|
1197
1199
|
# The person's gender (International regulations require either "male" or "female").
|
|
1198
1200
|
attr_accessor :gender
|
|
1199
1201
|
# The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
|
|
1202
|
+
#
|
|
1203
|
+
# Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
|
|
1200
1204
|
attr_accessor :id_number
|
|
1201
1205
|
# The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
|
|
1206
|
+
#
|
|
1207
|
+
# Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
|
|
1202
1208
|
attr_accessor :id_number_secondary
|
|
1203
1209
|
# The person's last name.
|
|
1204
1210
|
attr_accessor :last_name
|
|
@@ -1225,6 +1231,8 @@ module Stripe
|
|
|
1225
1231
|
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
1226
1232
|
attr_accessor :self_reported_monthly_housing_payment
|
|
1227
1233
|
# The last four digits of the person's Social Security number (U.S. only).
|
|
1234
|
+
#
|
|
1235
|
+
# Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
|
|
1228
1236
|
attr_accessor :ssn_last_4
|
|
1229
1237
|
# Demographic data related to the person.
|
|
1230
1238
|
attr_accessor :us_cfpb_data
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
module Billing
|
|
7
7
|
class ContractCancelParams < ::Stripe::RequestParams
|
|
8
8
|
class CancelPricingLine < ::Stripe::RequestParams
|
|
9
|
-
# The
|
|
9
|
+
# The id of the pricing line.
|
|
10
10
|
attr_accessor :id
|
|
11
11
|
# The lookup key of the pricing line.
|
|
12
12
|
attr_accessor :lookup_key
|