stripe 21.2.0.pre.alpha.1 → 21.2.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_operations/singleton_save.rb +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +22 -0
- data/lib/stripe/events/v2_money_management_dispute_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_lost_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_won_event.rb +44 -0
- data/lib/stripe/events/v2_risk_evaluation_outcome_delinquency_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
- data/lib/stripe/params/checkout/session_create_params.rb +208 -4
- data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +37 -1
- data/lib/stripe/params/crypto/onramp_session_create_params.rb +4 -0
- data/lib/stripe/params/customer_create_params.rb +7 -1
- data/lib/stripe/params/customer_update_params.rb +7 -1
- data/lib/stripe/params/invoice_rendering_template_create_params.rb +14 -2
- data/lib/stripe/params/invoice_rendering_template_update_params.rb +14 -2
- data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +96 -4
- data/lib/stripe/params/payment_intent_create_params.rb +96 -4
- data/lib/stripe/params/payment_intent_update_params.rb +96 -4
- data/lib/stripe/params/payment_method_configuration_create_params.rb +63 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +63 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +15 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +182 -9
- data/lib/stripe/params/v2/billing/contract_update_params.rb +328 -16
- data/lib/stripe/params/v2/core/account_create_params.rb +432 -3
- data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +436 -4
- data/lib/stripe/params/v2/core/fee_batch_list_params.rb +7 -1
- data/lib/stripe/params/v2/money_management/dispute_adjustment_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/dispute_adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/dispute_create_params.rb +37 -0
- data/lib/stripe/params/v2/money_management/dispute_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/dispute_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +41 -1
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +24 -8
- data/lib/stripe/params/v2/money_management/spending_mandate_create_params.rb +51 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/spending_mandate_update_params.rb +39 -0
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +20 -1
- data/lib/stripe/params/v2/risk/evaluation_outcome_list_params.rb +34 -0
- data/lib/stripe/params/v2/risk/evaluation_outcome_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params.rb +19 -0
- data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params.rb +12 -0
- data/lib/stripe/params.rb +27 -5
- data/lib/stripe/resources/billing_portal/session.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +1 -1
- data/lib/stripe/resources/charge.rb +32 -0
- data/lib/stripe/resources/checkout/session.rb +65 -2
- data/lib/stripe/resources/confirmation_token.rb +54 -2
- data/lib/stripe/resources/customer.rb +4 -0
- data/lib/stripe/resources/customer_tax_exemption.rb +2 -0
- data/lib/stripe/resources/dispute.rb +4 -0
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +0 -30
- data/lib/stripe/resources/invoice_rendering_template.rb +19 -1
- data/lib/stripe/resources/issuing/authorization.rb +18 -0
- data/lib/stripe/resources/issuing/card.rb +28 -0
- data/lib/stripe/resources/issuing/transaction.rb +18 -0
- data/lib/stripe/resources/mandate.rb +65 -0
- data/lib/stripe/resources/payment_attempt_record.rb +46 -0
- data/lib/stripe/resources/payment_intent.rb +113 -103
- data/lib/stripe/resources/payment_link.rb +2 -0
- data/lib/stripe/resources/payment_method.rb +53 -1
- data/lib/stripe/resources/payment_method_configuration.rb +102 -0
- data/lib/stripe/resources/payment_record.rb +46 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -30
- data/lib/stripe/resources/radar/account_evaluation.rb +36 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/risk/form.rb +44 -1
- data/lib/stripe/resources/setup_attempt.rb +91 -0
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/source.rb +2 -2
- data/lib/stripe/resources/subscription.rb +0 -20
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax/form.rb +6 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +1 -1
- data/lib/stripe/resources/terminal/onboarding_link.rb +2 -1
- data/lib/stripe/resources/terminal/reader.rb +17 -1
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -1
- data/lib/stripe/resources/three_d_secure/authentication.rb +1 -1
- data/lib/stripe/resources/v2/billing/contract.rb +285 -6
- data/lib/stripe/resources/v2/billing/contract_term.rb +133 -6
- data/lib/stripe/resources/v2/core/account.rb +2709 -322
- data/lib/stripe/resources/v2/core/fee_batch.rb +3 -0
- data/lib/stripe/resources/v2/core/fee_entry.rb +33 -3
- data/lib/stripe/resources/v2/money_management/dispute.rb +78 -0
- data/lib/stripe/resources/v2/money_management/dispute_adjustment.rb +53 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +45 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +6 -4
- data/lib/stripe/resources/v2/money_management/received_debit.rb +27 -1
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +18 -2
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources/v2/risk/evaluation_outcome.rb +305 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +34 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
- data/lib/stripe/resources.rb +30 -0
- data/lib/stripe/services/checkout/session_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +0 -11
- data/lib/stripe/services/risk/form_service.rb +44 -1
- data/lib/stripe/services/subscription_service.rb +0 -11
- data/lib/stripe/services/terminal/onboarding_link_service.rb +1 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +1 -1
- data/lib/stripe/services/v2/core/fee_batch_service.rb +4 -1
- data/lib/stripe/services/v2/core/fee_entry_service.rb +3 -1
- data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +1 -0
- data/lib/stripe/services/v2/money_management/dispute_adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/dispute_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +6 -3
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +26 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services/v2/risk/evaluation_outcome_service.rb +32 -0
- data/lib/stripe/services/v2/risk_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management/inbound_transfer_service.rb +34 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +8 -0
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_event_notification_handler.rb +24 -0
- data/lib/stripe/stripe_object.rb +14 -4
- data/lib/stripe/util.rb +21 -2
- data/lib/stripe/v2_type_coercion.rb +6 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -0
- data/rbi/stripe.rbi +8211 -782
- metadata +26 -4
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +0 -19
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
|
@@ -61,15 +61,64 @@ module Stripe
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
class Overwrite < ::Stripe::RequestParams
|
|
64
|
+
class Tier < ::Stripe::RequestParams
|
|
65
|
+
# Flat amount in minor currency units.
|
|
66
|
+
attr_accessor :flat_amount_decimal
|
|
67
|
+
# Per-unit amount in minor currency units.
|
|
68
|
+
attr_accessor :unit_amount_decimal
|
|
69
|
+
# Inclusive whole-number upper bound. Omitted for an unbounded final tier.
|
|
70
|
+
attr_accessor :up_to
|
|
71
|
+
|
|
72
|
+
def initialize(flat_amount_decimal: nil, unit_amount_decimal: nil, up_to: nil)
|
|
73
|
+
@flat_amount_decimal = flat_amount_decimal
|
|
74
|
+
@unit_amount_decimal = unit_amount_decimal
|
|
75
|
+
@up_to = up_to
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
def self.field_encodings
|
|
79
|
+
@field_encodings = {
|
|
80
|
+
flat_amount_decimal: :decimal_string,
|
|
81
|
+
unit_amount_decimal: :decimal_string,
|
|
82
|
+
up_to: :int64_string,
|
|
83
|
+
}
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
# Whether the replacement pricing is per unit or tiered.
|
|
87
|
+
attr_accessor :billing_scheme
|
|
88
|
+
# Replacement pricing tiers.
|
|
89
|
+
attr_accessor :tiers
|
|
90
|
+
# How the pricing tiers are applied.
|
|
91
|
+
attr_accessor :tiers_mode
|
|
64
92
|
# The replacement per-unit amount in minor currency units.
|
|
65
93
|
attr_accessor :unit_amount_decimal
|
|
66
94
|
|
|
67
|
-
def initialize(
|
|
95
|
+
def initialize(
|
|
96
|
+
billing_scheme: nil,
|
|
97
|
+
tiers: nil,
|
|
98
|
+
tiers_mode: nil,
|
|
99
|
+
unit_amount_decimal: nil
|
|
100
|
+
)
|
|
101
|
+
@billing_scheme = billing_scheme
|
|
102
|
+
@tiers = tiers
|
|
103
|
+
@tiers_mode = tiers_mode
|
|
68
104
|
@unit_amount_decimal = unit_amount_decimal
|
|
69
105
|
end
|
|
70
106
|
|
|
71
107
|
def self.field_encodings
|
|
72
|
-
@field_encodings = {
|
|
108
|
+
@field_encodings = {
|
|
109
|
+
tiers: {
|
|
110
|
+
kind: :array,
|
|
111
|
+
element: {
|
|
112
|
+
kind: :object,
|
|
113
|
+
fields: {
|
|
114
|
+
flat_amount_decimal: :decimal_string,
|
|
115
|
+
unit_amount_decimal: :decimal_string,
|
|
116
|
+
up_to: :int64_string,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
unit_amount_decimal: :decimal_string,
|
|
121
|
+
}
|
|
73
122
|
end
|
|
74
123
|
end
|
|
75
124
|
|
|
@@ -120,7 +169,23 @@ module Stripe
|
|
|
120
169
|
def self.field_encodings
|
|
121
170
|
@field_encodings = {
|
|
122
171
|
multiply: { kind: :object, fields: { factor: :decimal_string } },
|
|
123
|
-
overwrite: {
|
|
172
|
+
overwrite: {
|
|
173
|
+
kind: :object,
|
|
174
|
+
fields: {
|
|
175
|
+
tiers: {
|
|
176
|
+
kind: :array,
|
|
177
|
+
element: {
|
|
178
|
+
kind: :object,
|
|
179
|
+
fields: {
|
|
180
|
+
flat_amount_decimal: :decimal_string,
|
|
181
|
+
unit_amount_decimal: :decimal_string,
|
|
182
|
+
up_to: :int64_string,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
unit_amount_decimal: :decimal_string,
|
|
187
|
+
},
|
|
188
|
+
},
|
|
124
189
|
}
|
|
125
190
|
end
|
|
126
191
|
end
|
|
@@ -184,14 +249,24 @@ module Stripe
|
|
|
184
249
|
@type = type
|
|
185
250
|
end
|
|
186
251
|
end
|
|
187
|
-
# Non-negative amount with an explicit currency that must match the contract's currency.
|
|
188
|
-
attr_accessor :amount
|
|
189
252
|
# A finite bill date. Resolved once per request, including on idempotent retries.
|
|
190
253
|
attr_accessor :bill_at
|
|
254
|
+
# Positive installment quantity. Defaults to 1 when omitted.
|
|
255
|
+
attr_accessor :quantity
|
|
256
|
+
# Positive unit price in minor units of the contract's currency, before multiplying by quantity.
|
|
257
|
+
attr_accessor :unit_amount_decimal
|
|
191
258
|
|
|
192
|
-
def initialize(
|
|
193
|
-
@amount = amount
|
|
259
|
+
def initialize(bill_at: nil, quantity: nil, unit_amount_decimal: nil)
|
|
194
260
|
@bill_at = bill_at
|
|
261
|
+
@quantity = quantity
|
|
262
|
+
@unit_amount_decimal = unit_amount_decimal
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
def self.field_encodings
|
|
266
|
+
@field_encodings = {
|
|
267
|
+
quantity: :decimal_string,
|
|
268
|
+
unit_amount_decimal: :decimal_string,
|
|
269
|
+
}
|
|
195
270
|
end
|
|
196
271
|
end
|
|
197
272
|
# Between one and ten installments. Empty schedules are allowed only on update.
|
|
@@ -203,6 +278,18 @@ module Stripe
|
|
|
203
278
|
@custom = custom
|
|
204
279
|
@type = type
|
|
205
280
|
end
|
|
281
|
+
|
|
282
|
+
def self.field_encodings
|
|
283
|
+
@field_encodings = {
|
|
284
|
+
custom: {
|
|
285
|
+
kind: :array,
|
|
286
|
+
element: {
|
|
287
|
+
kind: :object,
|
|
288
|
+
fields: { quantity: :decimal_string, unit_amount_decimal: :decimal_string },
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
}
|
|
292
|
+
end
|
|
206
293
|
end
|
|
207
294
|
|
|
208
295
|
class ServicePeriod < ::Stripe::RequestParams
|
|
@@ -251,6 +338,23 @@ module Stripe
|
|
|
251
338
|
@product = product
|
|
252
339
|
@service_period = service_period
|
|
253
340
|
end
|
|
341
|
+
|
|
342
|
+
def self.field_encodings
|
|
343
|
+
@field_encodings = {
|
|
344
|
+
bill_schedule: {
|
|
345
|
+
kind: :object,
|
|
346
|
+
fields: {
|
|
347
|
+
custom: {
|
|
348
|
+
kind: :array,
|
|
349
|
+
element: {
|
|
350
|
+
kind: :object,
|
|
351
|
+
fields: { quantity: :decimal_string, unit_amount_decimal: :decimal_string },
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
}
|
|
357
|
+
end
|
|
254
358
|
end
|
|
255
359
|
# Lookup key unique across all term types on the contract.
|
|
256
360
|
attr_accessor :lookup_key
|
|
@@ -287,10 +391,46 @@ module Stripe
|
|
|
287
391
|
kind: :object,
|
|
288
392
|
fields: {
|
|
289
393
|
multiply: { kind: :object, fields: { factor: :decimal_string } },
|
|
290
|
-
overwrite: {
|
|
394
|
+
overwrite: {
|
|
395
|
+
kind: :object,
|
|
396
|
+
fields: {
|
|
397
|
+
tiers: {
|
|
398
|
+
kind: :array,
|
|
399
|
+
element: {
|
|
400
|
+
kind: :object,
|
|
401
|
+
fields: {
|
|
402
|
+
flat_amount_decimal: :decimal_string,
|
|
403
|
+
unit_amount_decimal: :decimal_string,
|
|
404
|
+
up_to: :int64_string,
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
unit_amount_decimal: :decimal_string,
|
|
409
|
+
},
|
|
410
|
+
},
|
|
291
411
|
},
|
|
292
412
|
},
|
|
293
413
|
recurring_price: { kind: :object, fields: { quantity: :decimal_string } },
|
|
414
|
+
scheduled_fee: {
|
|
415
|
+
kind: :object,
|
|
416
|
+
fields: {
|
|
417
|
+
bill_schedule: {
|
|
418
|
+
kind: :object,
|
|
419
|
+
fields: {
|
|
420
|
+
custom: {
|
|
421
|
+
kind: :array,
|
|
422
|
+
element: {
|
|
423
|
+
kind: :object,
|
|
424
|
+
fields: {
|
|
425
|
+
quantity: :decimal_string,
|
|
426
|
+
unit_amount_decimal: :decimal_string,
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
},
|
|
294
434
|
}
|
|
295
435
|
end
|
|
296
436
|
end
|
|
@@ -411,14 +551,24 @@ module Stripe
|
|
|
411
551
|
@type = type
|
|
412
552
|
end
|
|
413
553
|
end
|
|
414
|
-
# Non-negative amount with an explicit currency that must match the contract's currency.
|
|
415
|
-
attr_accessor :amount
|
|
416
554
|
# A finite bill date. Resolved once per request, including on idempotent retries.
|
|
417
555
|
attr_accessor :bill_at
|
|
556
|
+
# Positive installment quantity. Defaults to 1 when omitted.
|
|
557
|
+
attr_accessor :quantity
|
|
558
|
+
# Positive unit price in minor units of the contract's currency, before multiplying by quantity.
|
|
559
|
+
attr_accessor :unit_amount_decimal
|
|
418
560
|
|
|
419
|
-
def initialize(
|
|
420
|
-
@amount = amount
|
|
561
|
+
def initialize(bill_at: nil, quantity: nil, unit_amount_decimal: nil)
|
|
421
562
|
@bill_at = bill_at
|
|
563
|
+
@quantity = quantity
|
|
564
|
+
@unit_amount_decimal = unit_amount_decimal
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
def self.field_encodings
|
|
568
|
+
@field_encodings = {
|
|
569
|
+
quantity: :decimal_string,
|
|
570
|
+
unit_amount_decimal: :decimal_string,
|
|
571
|
+
}
|
|
422
572
|
end
|
|
423
573
|
end
|
|
424
574
|
# Full replacement of up to ten unbilled installments. An explicit empty array cancels all of them.
|
|
@@ -430,6 +580,18 @@ module Stripe
|
|
|
430
580
|
@custom = custom
|
|
431
581
|
@type = type
|
|
432
582
|
end
|
|
583
|
+
|
|
584
|
+
def self.field_encodings
|
|
585
|
+
@field_encodings = {
|
|
586
|
+
custom: {
|
|
587
|
+
kind: :array,
|
|
588
|
+
element: {
|
|
589
|
+
kind: :object,
|
|
590
|
+
fields: { quantity: :decimal_string, unit_amount_decimal: :decimal_string },
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
}
|
|
594
|
+
end
|
|
433
595
|
end
|
|
434
596
|
|
|
435
597
|
class ServicePeriod < ::Stripe::RequestParams
|
|
@@ -475,6 +637,23 @@ module Stripe
|
|
|
475
637
|
@bill_schedule = bill_schedule
|
|
476
638
|
@service_period = service_period
|
|
477
639
|
end
|
|
640
|
+
|
|
641
|
+
def self.field_encodings
|
|
642
|
+
@field_encodings = {
|
|
643
|
+
bill_schedule: {
|
|
644
|
+
kind: :object,
|
|
645
|
+
fields: {
|
|
646
|
+
custom: {
|
|
647
|
+
kind: :array,
|
|
648
|
+
element: {
|
|
649
|
+
kind: :object,
|
|
650
|
+
fields: { quantity: :decimal_string, unit_amount_decimal: :decimal_string },
|
|
651
|
+
},
|
|
652
|
+
},
|
|
653
|
+
},
|
|
654
|
+
},
|
|
655
|
+
}
|
|
656
|
+
end
|
|
478
657
|
end
|
|
479
658
|
|
|
480
659
|
class Term < ::Stripe::RequestParams
|
|
@@ -519,6 +698,26 @@ module Stripe
|
|
|
519
698
|
def self.field_encodings
|
|
520
699
|
@field_encodings = {
|
|
521
700
|
recurring_price: { kind: :object, fields: { quantity: :decimal_string } },
|
|
701
|
+
scheduled_fee: {
|
|
702
|
+
kind: :object,
|
|
703
|
+
fields: {
|
|
704
|
+
bill_schedule: {
|
|
705
|
+
kind: :object,
|
|
706
|
+
fields: {
|
|
707
|
+
custom: {
|
|
708
|
+
kind: :array,
|
|
709
|
+
element: {
|
|
710
|
+
kind: :object,
|
|
711
|
+
fields: {
|
|
712
|
+
quantity: :decimal_string,
|
|
713
|
+
unit_amount_decimal: :decimal_string,
|
|
714
|
+
},
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
},
|
|
522
721
|
}
|
|
523
722
|
end
|
|
524
723
|
end
|
|
@@ -547,15 +746,73 @@ module Stripe
|
|
|
547
746
|
kind: :object,
|
|
548
747
|
fields: {
|
|
549
748
|
multiply: { kind: :object, fields: { factor: :decimal_string } },
|
|
550
|
-
overwrite: {
|
|
749
|
+
overwrite: {
|
|
750
|
+
kind: :object,
|
|
751
|
+
fields: {
|
|
752
|
+
tiers: {
|
|
753
|
+
kind: :array,
|
|
754
|
+
element: {
|
|
755
|
+
kind: :object,
|
|
756
|
+
fields: {
|
|
757
|
+
flat_amount_decimal: :decimal_string,
|
|
758
|
+
unit_amount_decimal: :decimal_string,
|
|
759
|
+
up_to: :int64_string,
|
|
760
|
+
},
|
|
761
|
+
},
|
|
762
|
+
},
|
|
763
|
+
unit_amount_decimal: :decimal_string,
|
|
764
|
+
},
|
|
765
|
+
},
|
|
551
766
|
},
|
|
552
767
|
},
|
|
553
768
|
recurring_price: { kind: :object, fields: { quantity: :decimal_string } },
|
|
769
|
+
scheduled_fee: {
|
|
770
|
+
kind: :object,
|
|
771
|
+
fields: {
|
|
772
|
+
bill_schedule: {
|
|
773
|
+
kind: :object,
|
|
774
|
+
fields: {
|
|
775
|
+
custom: {
|
|
776
|
+
kind: :array,
|
|
777
|
+
element: {
|
|
778
|
+
kind: :object,
|
|
779
|
+
fields: {
|
|
780
|
+
quantity: :decimal_string,
|
|
781
|
+
unit_amount_decimal: :decimal_string,
|
|
782
|
+
},
|
|
783
|
+
},
|
|
784
|
+
},
|
|
785
|
+
},
|
|
786
|
+
},
|
|
787
|
+
},
|
|
788
|
+
},
|
|
554
789
|
},
|
|
555
790
|
},
|
|
556
791
|
update_term: {
|
|
557
792
|
kind: :object,
|
|
558
|
-
fields: {
|
|
793
|
+
fields: {
|
|
794
|
+
recurring_price: { kind: :object, fields: { quantity: :decimal_string } },
|
|
795
|
+
scheduled_fee: {
|
|
796
|
+
kind: :object,
|
|
797
|
+
fields: {
|
|
798
|
+
bill_schedule: {
|
|
799
|
+
kind: :object,
|
|
800
|
+
fields: {
|
|
801
|
+
custom: {
|
|
802
|
+
kind: :array,
|
|
803
|
+
element: {
|
|
804
|
+
kind: :object,
|
|
805
|
+
fields: {
|
|
806
|
+
quantity: :decimal_string,
|
|
807
|
+
unit_amount_decimal: :decimal_string,
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
},
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
},
|
|
814
|
+
},
|
|
815
|
+
},
|
|
559
816
|
},
|
|
560
817
|
}
|
|
561
818
|
end
|
|
@@ -689,16 +946,71 @@ module Stripe
|
|
|
689
946
|
multiply: { kind: :object, fields: { factor: :decimal_string } },
|
|
690
947
|
overwrite: {
|
|
691
948
|
kind: :object,
|
|
692
|
-
fields: {
|
|
949
|
+
fields: {
|
|
950
|
+
tiers: {
|
|
951
|
+
kind: :array,
|
|
952
|
+
element: {
|
|
953
|
+
kind: :object,
|
|
954
|
+
fields: {
|
|
955
|
+
flat_amount_decimal: :decimal_string,
|
|
956
|
+
unit_amount_decimal: :decimal_string,
|
|
957
|
+
up_to: :int64_string,
|
|
958
|
+
},
|
|
959
|
+
},
|
|
960
|
+
},
|
|
961
|
+
unit_amount_decimal: :decimal_string,
|
|
962
|
+
},
|
|
693
963
|
},
|
|
694
964
|
},
|
|
695
965
|
},
|
|
696
966
|
recurring_price: { kind: :object, fields: { quantity: :decimal_string } },
|
|
967
|
+
scheduled_fee: {
|
|
968
|
+
kind: :object,
|
|
969
|
+
fields: {
|
|
970
|
+
bill_schedule: {
|
|
971
|
+
kind: :object,
|
|
972
|
+
fields: {
|
|
973
|
+
custom: {
|
|
974
|
+
kind: :array,
|
|
975
|
+
element: {
|
|
976
|
+
kind: :object,
|
|
977
|
+
fields: {
|
|
978
|
+
quantity: :decimal_string,
|
|
979
|
+
unit_amount_decimal: :decimal_string,
|
|
980
|
+
},
|
|
981
|
+
},
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
},
|
|
986
|
+
},
|
|
697
987
|
},
|
|
698
988
|
},
|
|
699
989
|
update_term: {
|
|
700
990
|
kind: :object,
|
|
701
|
-
fields: {
|
|
991
|
+
fields: {
|
|
992
|
+
recurring_price: { kind: :object, fields: { quantity: :decimal_string } },
|
|
993
|
+
scheduled_fee: {
|
|
994
|
+
kind: :object,
|
|
995
|
+
fields: {
|
|
996
|
+
bill_schedule: {
|
|
997
|
+
kind: :object,
|
|
998
|
+
fields: {
|
|
999
|
+
custom: {
|
|
1000
|
+
kind: :array,
|
|
1001
|
+
element: {
|
|
1002
|
+
kind: :object,
|
|
1003
|
+
fields: {
|
|
1004
|
+
quantity: :decimal_string,
|
|
1005
|
+
unit_amount_decimal: :decimal_string,
|
|
1006
|
+
},
|
|
1007
|
+
},
|
|
1008
|
+
},
|
|
1009
|
+
},
|
|
1010
|
+
},
|
|
1011
|
+
},
|
|
1012
|
+
},
|
|
1013
|
+
},
|
|
702
1014
|
},
|
|
703
1015
|
},
|
|
704
1016
|
},
|