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.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +2 -27
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/error_object.rb +48 -19
  5. data/lib/stripe/event_types.rb +15 -0
  6. data/lib/stripe/events/v2_billing_contract_activated_event.rb +44 -0
  7. data/lib/stripe/events/v2_billing_contract_canceled_event.rb +44 -0
  8. data/lib/stripe/events/v2_billing_contract_created_event.rb +44 -0
  9. data/lib/stripe/events/v2_billing_contract_ended_event.rb +44 -0
  10. data/lib/stripe/events/v2_billing_contract_updated_event.rb +44 -0
  11. data/lib/stripe/object_types.rb +0 -1
  12. data/lib/stripe/params/account_create_params.rb +2 -0
  13. data/lib/stripe/params/account_person_create_params.rb +6 -0
  14. data/lib/stripe/params/account_person_update_params.rb +6 -0
  15. data/lib/stripe/params/account_session_create_params.rb +0 -42
  16. data/lib/stripe/params/account_update_params.rb +2 -0
  17. data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
  18. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  19. data/lib/stripe/params/capital/financing_transaction_list_params.rb +2 -2
  20. data/lib/stripe/params/checkout/session_create_params.rb +1 -1
  21. data/lib/stripe/params/invoice_create_preview_params.rb +2 -2
  22. data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
  23. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  24. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
  25. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
  26. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  27. data/lib/stripe/params/payment_intent_confirm_params.rb +10 -1
  28. data/lib/stripe/params/payment_intent_create_params.rb +10 -1
  29. data/lib/stripe/params/payment_intent_update_params.rb +10 -1
  30. data/lib/stripe/params/payment_record_create_params.rb +109 -0
  31. data/lib/stripe/params/promotion_code_create_params.rb +1 -1
  32. data/lib/stripe/params/promotion_code_update_params.rb +1 -1
  33. data/lib/stripe/params/refund_create_params.rb +4 -0
  34. data/lib/stripe/params/subscription_schedule_create_params.rb +138 -2
  35. data/lib/stripe/params/subscription_schedule_list_params.rb +1 -1
  36. data/lib/stripe/params/subscription_schedule_update_params.rb +139 -3
  37. data/lib/stripe/params/terminal/reader_activate_gift_card_params.rb +35 -0
  38. data/lib/stripe/params/terminal/reader_cashout_gift_card_params.rb +21 -0
  39. data/lib/stripe/params/terminal/reader_check_gift_card_balance_params.rb +21 -0
  40. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +4 -0
  41. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +4 -0
  42. data/lib/stripe/params/terminal/reader_reload_gift_card_params.rb +27 -0
  43. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
  44. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  45. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
  46. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
  47. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  48. data/lib/stripe/params/token_create_params.rb +8 -0
  49. data/lib/stripe/params/v2/billing/contract_cancel_params.rb +1 -1
  50. data/lib/stripe/params/v2/billing/contract_create_params.rb +13 -175
  51. data/lib/stripe/params/v2/billing/contract_list_params.rb +1 -1
  52. data/lib/stripe/params/v2/billing/contract_update_params.rb +48 -495
  53. data/lib/stripe/params/v2/core/account_list_params.rb +9 -1
  54. data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +2 -2
  55. data/lib/stripe/params.rb +10 -8
  56. data/lib/stripe/resources/account.rb +55 -3
  57. data/lib/stripe/resources/account_session.rb +8 -0
  58. data/lib/stripe/resources/balance_transaction.rb +1 -1
  59. data/lib/stripe/resources/bank_account.rb +2 -2
  60. data/lib/stripe/resources/billing/alert_recovered.rb +17 -1
  61. data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
  62. data/lib/stripe/resources/capability.rb +2 -2
  63. data/lib/stripe/resources/capital/financing_transaction.rb +1 -1
  64. data/lib/stripe/resources/charge.rb +1 -1
  65. data/lib/stripe/resources/checkout/session.rb +23 -5
  66. data/lib/stripe/resources/confirmation_token.rb +1 -1
  67. data/lib/stripe/resources/dispute.rb +4 -2
  68. data/lib/stripe/resources/financial_connections/session.rb +5 -0
  69. data/lib/stripe/resources/invoice.rb +4 -1
  70. data/lib/stripe/resources/issuing/authorization.rb +52 -1
  71. data/lib/stripe/resources/issuing/card.rb +2 -0
  72. data/lib/stripe/resources/issuing/transaction.rb +48 -2
  73. data/lib/stripe/resources/order.rb +1 -1
  74. data/lib/stripe/resources/payment_attempt_record.rb +2 -2
  75. data/lib/stripe/resources/payment_intent.rb +28 -0
  76. data/lib/stripe/resources/payment_method.rb +3 -3
  77. data/lib/stripe/resources/payment_record.rb +14 -2
  78. data/lib/stripe/resources/person.rb +2 -2
  79. data/lib/stripe/resources/profile.rb +14 -14
  80. data/lib/stripe/resources/quote.rb +22 -1
  81. data/lib/stripe/resources/quote_preview_invoice.rb +4 -1
  82. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +169 -2
  83. data/lib/stripe/resources/setup_attempt.rb +16 -0
  84. data/lib/stripe/resources/setup_intent.rb +3 -0
  85. data/lib/stripe/resources/shared_payment/granted_token.rb +1 -1
  86. data/lib/stripe/resources/shared_payment/issued_token.rb +18 -1
  87. data/lib/stripe/resources/subscription_schedule.rb +169 -2
  88. data/lib/stripe/resources/tax/calculation.rb +1 -1
  89. data/lib/stripe/resources/tax/registration.rb +32 -0
  90. data/lib/stripe/resources/tax/transaction.rb +1 -1
  91. data/lib/stripe/resources/terminal/reader.rb +173 -0
  92. data/lib/stripe/resources/v2/billing/contract.rb +47 -330
  93. data/lib/stripe/resources/v2/billing/contract_pricing_line_quantity_change.rb +2 -2
  94. data/lib/stripe/resources/v2/core/account.rb +18 -0
  95. data/lib/stripe/resources/v2/money_management/payout_method.rb +16 -0
  96. data/lib/stripe/resources/v2/money_management/received_credit.rb +30 -0
  97. data/lib/stripe/resources/v2/signals/account_signal.rb +4 -1
  98. data/lib/stripe/resources.rb +15 -2
  99. data/lib/stripe/services/account_person_service.rb +1 -1
  100. data/lib/stripe/services/account_service.rb +1 -1
  101. data/lib/stripe/services/dispute_service.rb +1 -1
  102. data/lib/stripe/services/payment_method_service.rb +1 -1
  103. data/lib/stripe/services/payment_record_service.rb +12 -0
  104. data/lib/stripe/services/terminal/reader_service.rb +44 -0
  105. data/lib/stripe/services/v1_services.rb +1 -2
  106. data/lib/stripe/services/v2/billing/contract_service.rb +7 -7
  107. data/lib/stripe/services/v2/signals/account_signal_service.rb +1 -1
  108. data/lib/stripe/services.rb +0 -2
  109. data/lib/stripe/stripe_event_notification_handler.rb +30 -0
  110. data/lib/stripe/telemetry_id.rb +65 -0
  111. data/lib/stripe/version.rb +1 -1
  112. data/lib/stripe.rb +2 -0
  113. data/rbi/stripe.rbi +2023 -1531
  114. metadata +13 -8
  115. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
  116. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
  117. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
  118. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
  119. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -153
  120. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -57
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module Billing
7
- # Main Contract resource representing a comprehensive billing agreement
7
+ # Contract resource representing a comprehensive sales agreement
8
8
  class Contract < APIResource
9
9
  OBJECT_NAME = "v2.billing.contract"
10
10
  def self.object_name
@@ -140,51 +140,6 @@ module Stripe
140
140
  end
141
141
  end
142
142
 
143
- class OneTimeFees < ::Stripe::StripeObject
144
- class Data < ::Stripe::StripeObject
145
- class BillAt < ::Stripe::StripeObject
146
- # The timestamp at which the fee will be billed.
147
- attr_reader :timestamp
148
-
149
- def self.inner_class_types
150
- @inner_class_types = {}
151
- end
152
-
153
- def self.field_remappings
154
- @field_remappings = {}
155
- end
156
- end
157
- # The amount billed for this fee.
158
- attr_reader :amount
159
- # When this fee will be billed. Always contains a concrete timestamp.
160
- attr_reader :bill_at
161
- # The ID of the one-time fee.
162
- attr_reader :id
163
- # The user-provided lookup key.
164
- attr_reader :lookup_key
165
- # The ID of the v1 Product for this fee.
166
- attr_reader :product
167
-
168
- def self.inner_class_types
169
- @inner_class_types = { bill_at: BillAt }
170
- end
171
-
172
- def self.field_remappings
173
- @field_remappings = {}
174
- end
175
- end
176
- # The one-time fees for this page.
177
- attr_reader :data
178
-
179
- def self.inner_class_types
180
- @inner_class_types = { data: Data }
181
- end
182
-
183
- def self.field_remappings
184
- @field_remappings = {}
185
- end
186
- end
187
-
188
143
  class PricingLines < ::Stripe::StripeObject
189
144
  class Data < ::Stripe::StripeObject
190
145
  class EndsAt < ::Stripe::StripeObject
@@ -218,51 +173,16 @@ module Stripe
218
173
  end
219
174
 
220
175
  class OverwritePrice < ::Stripe::StripeObject
221
- class Tier < ::Stripe::StripeObject
222
- # Price for the entire tier, represented as a decimal string in minor currency units.
223
- attr_reader :flat_amount
224
- # Per-unit price for units included in this tier, represented as a decimal string in minor currency units.
225
- attr_reader :unit_amount
226
- # Up to and including this quantity will be contained in the tier.
227
- attr_reader :up_to_decimal
228
- # No upper bound to this tier.
229
- attr_reader :up_to_inf
230
-
231
- def self.inner_class_types
232
- @inner_class_types = {}
233
- end
234
-
235
- def self.field_remappings
236
- @field_remappings = {}
237
- end
238
-
239
- def self.field_encodings
240
- @field_encodings = { up_to_decimal: :decimal_string }
241
- end
242
- end
243
- # Defines whether the tiered price should be graduated or volume-based.
244
- attr_reader :tiering_mode
245
- # Each element represents a pricing tier.
246
- attr_reader :tiers
247
176
  # The per-unit amount to be charged, represented as a decimal string in minor currency units.
248
177
  attr_reader :unit_amount
249
178
 
250
179
  def self.inner_class_types
251
- @inner_class_types = { tiers: Tier }
180
+ @inner_class_types = {}
252
181
  end
253
182
 
254
183
  def self.field_remappings
255
184
  @field_remappings = {}
256
185
  end
257
-
258
- def self.field_encodings
259
- @field_encodings = {
260
- tiers: {
261
- kind: :array,
262
- element: { kind: :object, fields: { up_to_decimal: :decimal_string } },
263
- },
264
- }
265
- end
266
186
  end
267
187
 
268
188
  class StartsAt < ::Stripe::StripeObject
@@ -277,15 +197,17 @@ module Stripe
277
197
  @field_remappings = {}
278
198
  end
279
199
  end
280
- # Resolved timestamp when this override ends.
200
+ # Timestamp when this override ends.
281
201
  attr_reader :ends_at
202
+ # The ID of the pricing override.
203
+ attr_reader :id
282
204
  # The user-provided lookup key for this override.
283
205
  attr_reader :lookup_key
284
206
  # Details for an overwrite_price override.
285
207
  attr_reader :overwrite_price
286
- # The ID of the pricing line override.
287
- attr_reader :pricing_override
288
- # Resolved timestamp when this override starts.
208
+ # The priority of this override relative to others. Lower number = higher priority.
209
+ attr_reader :priority
210
+ # Timestamp when this override starts.
289
211
  attr_reader :starts_at
290
212
  # The type of override.
291
213
  attr_reader :type
@@ -301,20 +223,6 @@ module Stripe
301
223
  def self.field_remappings
302
224
  @field_remappings = {}
303
225
  end
304
-
305
- def self.field_encodings
306
- @field_encodings = {
307
- overwrite_price: {
308
- kind: :object,
309
- fields: {
310
- tiers: {
311
- kind: :array,
312
- element: { kind: :object, fields: { up_to_decimal: :decimal_string } },
313
- },
314
- },
315
- },
316
- }
317
- end
318
226
  end
319
227
  # The pricing line overrides.
320
228
  attr_reader :data
@@ -326,31 +234,6 @@ module Stripe
326
234
  def self.field_remappings
327
235
  @field_remappings = {}
328
236
  end
329
-
330
- def self.field_encodings
331
- @field_encodings = {
332
- data: {
333
- kind: :array,
334
- element: {
335
- kind: :object,
336
- fields: {
337
- overwrite_price: {
338
- kind: :object,
339
- fields: {
340
- tiers: {
341
- kind: :array,
342
- element: {
343
- kind: :object,
344
- fields: { up_to_decimal: :decimal_string },
345
- },
346
- },
347
- },
348
- },
349
- },
350
- },
351
- },
352
- }
353
- end
354
237
  end
355
238
  # The current quantity on this pricing line.
356
239
  attr_reader :current_quantity
@@ -368,34 +251,7 @@ module Stripe
368
251
  end
369
252
 
370
253
  def self.field_encodings
371
- @field_encodings = {
372
- current_quantity: :decimal_string,
373
- pricing_overrides: {
374
- kind: :object,
375
- fields: {
376
- data: {
377
- kind: :array,
378
- element: {
379
- kind: :object,
380
- fields: {
381
- overwrite_price: {
382
- kind: :object,
383
- fields: {
384
- tiers: {
385
- kind: :array,
386
- element: {
387
- kind: :object,
388
- fields: { up_to_decimal: :decimal_string },
389
- },
390
- },
391
- },
392
- },
393
- },
394
- },
395
- },
396
- },
397
- },
398
- }
254
+ @field_encodings = { current_quantity: :decimal_string }
399
255
  end
400
256
  end
401
257
  # V1 price details. Present when `type` is `price`.
@@ -413,37 +269,7 @@ module Stripe
413
269
 
414
270
  def self.field_encodings
415
271
  @field_encodings = {
416
- price_details: {
417
- kind: :object,
418
- fields: {
419
- current_quantity: :decimal_string,
420
- pricing_overrides: {
421
- kind: :object,
422
- fields: {
423
- data: {
424
- kind: :array,
425
- element: {
426
- kind: :object,
427
- fields: {
428
- overwrite_price: {
429
- kind: :object,
430
- fields: {
431
- tiers: {
432
- kind: :array,
433
- element: {
434
- kind: :object,
435
- fields: { up_to_decimal: :decimal_string },
436
- },
437
- },
438
- },
439
- },
440
- },
441
- },
442
- },
443
- },
444
- },
445
- },
446
- },
272
+ price_details: { kind: :object, fields: { current_quantity: :decimal_string } },
447
273
  }
448
274
  end
449
275
  end
@@ -460,17 +286,17 @@ module Stripe
460
286
  @field_remappings = {}
461
287
  end
462
288
  end
463
- # Resolved timestamp when the pricing line ends.
289
+ # Timestamp when the pricing line ends.
464
290
  attr_reader :ends_at
465
- # The ID of the pricing line.
291
+ # The id of the pricing line.
466
292
  attr_reader :id
467
293
  # The user-provided lookup key for the pricing line.
468
294
  attr_reader :lookup_key
469
- # Set of key-value pairs that you can attach to an object.
295
+ # Set of key-value pairs.
470
296
  attr_reader :metadata
471
297
  # The pricing configuration for the pricing line.
472
298
  attr_reader :pricing
473
- # Resolved timestamp when the pricing line starts.
299
+ # Timestamp when the pricing line starts.
474
300
  attr_reader :starts_at
475
301
 
476
302
  def self.inner_class_types
@@ -486,37 +312,7 @@ module Stripe
486
312
  pricing: {
487
313
  kind: :object,
488
314
  fields: {
489
- price_details: {
490
- kind: :object,
491
- fields: {
492
- current_quantity: :decimal_string,
493
- pricing_overrides: {
494
- kind: :object,
495
- fields: {
496
- data: {
497
- kind: :array,
498
- element: {
499
- kind: :object,
500
- fields: {
501
- overwrite_price: {
502
- kind: :object,
503
- fields: {
504
- tiers: {
505
- kind: :array,
506
- element: {
507
- kind: :object,
508
- fields: { up_to_decimal: :decimal_string },
509
- },
510
- },
511
- },
512
- },
513
- },
514
- },
515
- },
516
- },
517
- },
518
- },
519
- },
315
+ price_details: { kind: :object, fields: { current_quantity: :decimal_string } },
520
316
  },
521
317
  },
522
318
  }
@@ -543,37 +339,7 @@ module Stripe
543
339
  pricing: {
544
340
  kind: :object,
545
341
  fields: {
546
- price_details: {
547
- kind: :object,
548
- fields: {
549
- current_quantity: :decimal_string,
550
- pricing_overrides: {
551
- kind: :object,
552
- fields: {
553
- data: {
554
- kind: :array,
555
- element: {
556
- kind: :object,
557
- fields: {
558
- overwrite_price: {
559
- kind: :object,
560
- fields: {
561
- tiers: {
562
- kind: :array,
563
- element: {
564
- kind: :object,
565
- fields: { up_to_decimal: :decimal_string },
566
- },
567
- },
568
- },
569
- },
570
- },
571
- },
572
- },
573
- },
574
- },
575
- },
576
- },
342
+ price_details: { kind: :object, fields: { current_quantity: :decimal_string } },
577
343
  },
578
344
  },
579
345
  },
@@ -598,7 +364,7 @@ module Stripe
598
364
  end
599
365
  end
600
366
 
601
- class Multiplier < ::Stripe::StripeObject
367
+ class MultiplyPricing < ::Stripe::StripeObject
602
368
  class Criterion < ::Stripe::StripeObject
603
369
  # Filter by pricing line IDs.
604
370
  attr_reader :pricing_line_ids
@@ -615,9 +381,9 @@ module Stripe
615
381
  @field_remappings = {}
616
382
  end
617
383
  end
618
- # Criteria determining which rates the multiplier applies to.
384
+ # Criteria determining which rates the multiply_pricing override applies to.
619
385
  attr_reader :criteria
620
- # The multiplier factor, represented as a decimal string. e.g. "0.8" for a 20% reduction.
386
+ # The multiply_pricing factor, represented as a decimal string. e.g. "0.8" for a 20% reduction.
621
387
  attr_reader :factor
622
388
 
623
389
  def self.inner_class_types
@@ -647,8 +413,8 @@ module Stripe
647
413
  attr_reader :id
648
414
  # The user-provided lookup key for the pricing override.
649
415
  attr_reader :lookup_key
650
- # Details for a multiplier override.
651
- attr_reader :multiplier
416
+ # Details for a multiply_pricing override.
417
+ attr_reader :multiply_pricing
652
418
  # The priority of this override relative to others. Lower number = higher priority.
653
419
  attr_reader :priority
654
420
  # Resolved timestamp when the pricing override starts.
@@ -657,7 +423,11 @@ module Stripe
657
423
  attr_reader :type
658
424
 
659
425
  def self.inner_class_types
660
- @inner_class_types = { ends_at: EndsAt, multiplier: Multiplier, starts_at: StartsAt }
426
+ @inner_class_types = {
427
+ ends_at: EndsAt,
428
+ multiply_pricing: MultiplyPricing,
429
+ starts_at: StartsAt,
430
+ }
661
431
  end
662
432
 
663
433
  def self.field_remappings
@@ -676,84 +446,58 @@ module Stripe
676
446
  end
677
447
  end
678
448
 
679
- class StatusDetails < ::Stripe::StripeObject
680
- class Active < ::Stripe::StripeObject
681
- # The timestamp when the contract was activated.
682
- attr_reader :activated_at
683
-
684
- def self.inner_class_types
685
- @inner_class_types = {}
686
- end
687
-
688
- def self.field_remappings
689
- @field_remappings = {}
690
- end
691
- end
692
-
693
- class Canceled < ::Stripe::StripeObject
694
- # The timestamp when the contract was canceled.
695
- attr_reader :canceled_at
696
-
697
- def self.inner_class_types
698
- @inner_class_types = {}
699
- end
700
-
701
- def self.field_remappings
702
- @field_remappings = {}
703
- end
704
- end
705
- # Details of the active contract status.
706
- attr_reader :active
707
- # Details of the canceled contract status.
708
- attr_reader :canceled
449
+ class StatusTransitions < ::Stripe::StripeObject
450
+ # The timestamp when the contract was activated.
451
+ attr_reader :activated_at
452
+ # The timestamp when the contract was canceled.
453
+ attr_reader :canceled_at
454
+ # The timestamp when the contract ended.
455
+ attr_reader :ended_at
709
456
 
710
457
  def self.inner_class_types
711
- @inner_class_types = { active: Active, canceled: Canceled }
458
+ @inner_class_types = {}
712
459
  end
713
460
 
714
461
  def self.field_remappings
715
462
  @field_remappings = {}
716
463
  end
717
464
  end
718
- # The billing cycle anchor for the contract.
465
+ # The billing cycle anchor.
719
466
  attr_reader :billing_cycle_anchor
720
- # The billing settings for the contract.
467
+ # The billing settings.
721
468
  attr_reader :billing_settings
722
469
  # A unique user-provided contract number e.g. C-2026-0001.
723
470
  attr_reader :contract_number
724
- # Timestamp of when the object was created.
471
+ # Timestamp of when the contract was created.
725
472
  attr_reader :created
726
- # The currency of the contract.
473
+ # The currency.
727
474
  attr_reader :currency
728
- # The ID of the customer associated with the contract.
475
+ # The customer id.
729
476
  attr_reader :customer
730
- # The ID of the contract object.
477
+ # The contract id.
731
478
  attr_reader :id
732
479
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
733
480
  attr_reader :livemode
734
- # Set of key-value pairs that you can attach to an object.
481
+ # Set of key-value pairs.
735
482
  attr_reader :metadata
736
483
  # String representing the object's type. Objects of the same type share the same value of the object field.
737
484
  attr_reader :object
738
- # The one-time fees of the contract. Only populated when `one_time_fees` is passed in the `include` parameter.
739
- attr_reader :one_time_fees
740
- # The pricing lines of the contract. Only populated when `pricing_lines` is passed in the `include` parameter.
485
+ # The pricing lines. Only populated when `pricing_lines` is passed in the `include` parameter.
741
486
  attr_reader :pricing_lines
742
- # The pricing overrides of the contract. Only populated when `pricing_overrides` is passed in the `include` parameter.
487
+ # The pricing overrides. Only populated when `pricing_overrides` is passed in the `include` parameter.
743
488
  attr_reader :pricing_overrides
744
489
  # The current status of the contract.
745
490
  attr_reader :status
746
- # Information about the contract status transitions.
747
- attr_reader :status_details
491
+ # Historical timestamps of when the contract transitioned into each status.
492
+ attr_reader :status_transitions
748
493
 
749
494
  def self.inner_class_types
750
495
  @inner_class_types = {
751
496
  billing_cycle_anchor: BillingCycleAnchor,
752
497
  billing_settings: BillingSettings,
753
- one_time_fees: OneTimeFees,
754
498
  pricing_lines: PricingLines,
755
499
  pricing_overrides: PricingOverrides,
756
- status_details: StatusDetails,
500
+ status_transitions: StatusTransitions,
757
501
  }
758
502
  end
759
503
 
@@ -776,34 +520,7 @@ module Stripe
776
520
  fields: {
777
521
  price_details: {
778
522
  kind: :object,
779
- fields: {
780
- current_quantity: :decimal_string,
781
- pricing_overrides: {
782
- kind: :object,
783
- fields: {
784
- data: {
785
- kind: :array,
786
- element: {
787
- kind: :object,
788
- fields: {
789
- overwrite_price: {
790
- kind: :object,
791
- fields: {
792
- tiers: {
793
- kind: :array,
794
- element: {
795
- kind: :object,
796
- fields: { up_to_decimal: :decimal_string },
797
- },
798
- },
799
- },
800
- },
801
- },
802
- },
803
- },
804
- },
805
- },
806
- },
523
+ fields: { current_quantity: :decimal_string },
807
524
  },
808
525
  },
809
526
  },
@@ -29,7 +29,7 @@ module Stripe
29
29
  attr_reader :created
30
30
  # The timestamp when this quantity change takes effect.
31
31
  attr_reader :effective_at
32
- # The ID of the quantity change object.
32
+ # The id of the quantity change object.
33
33
  attr_reader :id
34
34
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
35
35
  attr_reader :livemode
@@ -37,7 +37,7 @@ module Stripe
37
37
  attr_reader :object
38
38
  # The pricing configuration for the associated pricing line.
39
39
  attr_reader :pricing
40
- # The ID of the pricing line associated with this quantity change.
40
+ # The id of the pricing line associated with this quantity change.
41
41
  attr_reader :pricing_line
42
42
  # The quantity at the effective time.
43
43
  attr_reader :quantity
@@ -19720,6 +19720,21 @@ module Stripe
19720
19720
  end
19721
19721
  end
19722
19722
 
19723
+ class RelatedNetworkObject < ::Stripe::StripeObject
19724
+ # The ID of the network business profile associated with this Account.
19725
+ attr_reader :network_business_profile
19726
+ # Closed Enum. The type of related network object.
19727
+ attr_reader :type
19728
+
19729
+ def self.inner_class_types
19730
+ @inner_class_types = {}
19731
+ end
19732
+
19733
+ def self.field_remappings
19734
+ @field_remappings = {}
19735
+ end
19736
+ end
19737
+
19723
19738
  class Requirements < ::Stripe::StripeObject
19724
19739
  class Entry < ::Stripe::StripeObject
19725
19740
  class Error < ::Stripe::StripeObject
@@ -19920,6 +19935,8 @@ module Stripe
19920
19935
  attr_reader :metadata
19921
19936
  # String representing the object's type. Objects of the same type share the same value of the object field.
19922
19937
  attr_reader :object
19938
+ # The network object related to this Account.
19939
+ attr_reader :related_network_object
19923
19940
  # Information about the active requirements for the Account, including what information needs to be collected, and by when.
19924
19941
  attr_reader :requirements
19925
19942
 
@@ -19929,6 +19946,7 @@ module Stripe
19929
19946
  defaults: Defaults,
19930
19947
  future_requirements: FutureRequirements,
19931
19948
  identity: Identity,
19949
+ related_network_object: RelatedNetworkObject,
19932
19950
  requirements: Requirements,
19933
19951
  }
19934
19952
  end
@@ -108,6 +108,19 @@ module Stripe
108
108
  end
109
109
  end
110
110
 
111
+ class NetworkBusinessProfileWallet < ::Stripe::StripeObject
112
+ # The Network ID of the Stripe profile.
113
+ attr_reader :network_business_profile
114
+
115
+ def self.inner_class_types
116
+ @inner_class_types = {}
117
+ end
118
+
119
+ def self.field_remappings
120
+ @field_remappings = {}
121
+ end
122
+ end
123
+
111
124
  class UsageStatus < ::Stripe::StripeObject
112
125
  # Payments status - used when sending OutboundPayments (sending funds to recipients).
113
126
  attr_reader :payments
@@ -140,6 +153,8 @@ module Stripe
140
153
  attr_reader :latest_outbound_setup_intent
141
154
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
142
155
  attr_reader :livemode
156
+ # The PayoutMethodNetworkBusinessProfileWallet object details.
157
+ attr_reader :network_business_profile_wallet
143
158
  # String representing the object's type. Objects of the same type share the same value of the object field.
144
159
  attr_reader :object
145
160
  # Whether the Payout Method is currently unusable for money movement, despite potentially being correctly set up.
@@ -156,6 +171,7 @@ module Stripe
156
171
  bank_account: BankAccount,
157
172
  card: Card,
158
173
  crypto_wallet: CryptoWallet,
174
+ network_business_profile_wallet: NetworkBusinessProfileWallet,
159
175
  usage_status: UsageStatus,
160
176
  }
161
177
  end
@@ -345,6 +345,33 @@ module Stripe
345
345
  @field_remappings = {}
346
346
  end
347
347
  end
348
+
349
+ class StripeNetworkTransfer < ::Stripe::StripeObject
350
+ class From < ::Stripe::StripeObject
351
+ # The network ID of the sender.
352
+ attr_reader :network_business_profile
353
+ # Open Enum. The type of the sender.
354
+ attr_reader :type
355
+
356
+ def self.inner_class_types
357
+ @inner_class_types = {}
358
+ end
359
+
360
+ def self.field_remappings
361
+ @field_remappings = {}
362
+ end
363
+ end
364
+ # Information about the sender of the network transfer.
365
+ attr_reader :from
366
+
367
+ def self.inner_class_types
368
+ @inner_class_types = { from: From }
369
+ end
370
+
371
+ def self.field_remappings
372
+ @field_remappings = {}
373
+ end
374
+ end
348
375
  # The amount and currency of the ReceivedCredit.
349
376
  attr_reader :amount
350
377
  # This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if `type` field value is `balance_transfer`.
@@ -380,6 +407,8 @@ module Stripe
380
407
  attr_reader :status_transitions
381
408
  # This object stores details about the stripe balance pay refund that resulted in the ReceivedCredit. Present if `type` field value is `stripe_balance_payment`.
382
409
  attr_reader :stripe_balance_payment
410
+ # This object stores details about the Stripe network transfer that resulted in the ReceivedCredit. Present if `type` field value is `stripe_network_transfer`.
411
+ attr_reader :stripe_network_transfer
383
412
  # Open Enum. The type of flow that caused the ReceivedCredit.
384
413
  attr_reader :type
385
414
 
@@ -392,6 +421,7 @@ module Stripe
392
421
  status_details: StatusDetails,
393
422
  status_transitions: StatusTransitions,
394
423
  stripe_balance_payment: StripeBalancePayment,
424
+ stripe_network_transfer: StripeNetworkTransfer,
395
425
  }
396
426
  end
397
427