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.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/singleton_save.rb +4 -4
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +22 -0
  5. data/lib/stripe/events/v2_money_management_dispute_adjustment_created_event.rb +44 -0
  6. data/lib/stripe/events/v2_money_management_dispute_created_event.rb +44 -0
  7. data/lib/stripe/events/v2_money_management_dispute_lost_event.rb +44 -0
  8. data/lib/stripe/events/v2_money_management_dispute_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_money_management_dispute_won_event.rb +44 -0
  10. data/lib/stripe/events/v2_risk_evaluation_outcome_delinquency_ready_event.rb +44 -0
  11. data/lib/stripe/object_types.rb +3 -0
  12. data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
  13. data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
  14. data/lib/stripe/params/checkout/session_create_params.rb +208 -4
  15. data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +37 -1
  16. data/lib/stripe/params/crypto/onramp_session_create_params.rb +4 -0
  17. data/lib/stripe/params/customer_create_params.rb +7 -1
  18. data/lib/stripe/params/customer_update_params.rb +7 -1
  19. data/lib/stripe/params/invoice_rendering_template_create_params.rb +14 -2
  20. data/lib/stripe/params/invoice_rendering_template_update_params.rb +14 -2
  21. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  22. data/lib/stripe/params/payment_intent_confirm_params.rb +96 -4
  23. data/lib/stripe/params/payment_intent_create_params.rb +96 -4
  24. data/lib/stripe/params/payment_intent_update_params.rb +96 -4
  25. data/lib/stripe/params/payment_method_configuration_create_params.rb +63 -0
  26. data/lib/stripe/params/payment_method_configuration_update_params.rb +63 -0
  27. data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
  28. data/lib/stripe/params/terminal/configuration_create_params.rb +1 -1
  29. data/lib/stripe/params/terminal/configuration_update_params.rb +1 -1
  30. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +15 -1
  31. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  32. data/lib/stripe/params/v2/billing/contract_create_params.rb +182 -9
  33. data/lib/stripe/params/v2/billing/contract_update_params.rb +328 -16
  34. data/lib/stripe/params/v2/core/account_create_params.rb +432 -3
  35. data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -1
  36. data/lib/stripe/params/v2/core/account_update_params.rb +436 -4
  37. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +7 -1
  38. data/lib/stripe/params/v2/money_management/dispute_adjustment_list_params.rb +23 -0
  39. data/lib/stripe/params/v2/money_management/dispute_adjustment_retrieve_params.rb +10 -0
  40. data/lib/stripe/params/v2/money_management/dispute_create_params.rb +37 -0
  41. data/lib/stripe/params/v2/money_management/dispute_list_params.rb +26 -0
  42. data/lib/stripe/params/v2/money_management/dispute_retrieve_params.rb +10 -0
  43. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +41 -1
  44. data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +24 -8
  45. data/lib/stripe/params/v2/money_management/spending_mandate_create_params.rb +51 -0
  46. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +4 -1
  47. data/lib/stripe/params/v2/money_management/spending_mandate_update_params.rb +39 -0
  48. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +20 -1
  49. data/lib/stripe/params/v2/risk/evaluation_outcome_list_params.rb +34 -0
  50. data/lib/stripe/params/v2/risk/evaluation_outcome_retrieve_params.rb +10 -0
  51. data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params.rb +19 -0
  52. data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params.rb +12 -0
  53. data/lib/stripe/params.rb +27 -5
  54. data/lib/stripe/resources/billing_portal/session.rb +16 -0
  55. data/lib/stripe/resources/cash_balance.rb +1 -1
  56. data/lib/stripe/resources/charge.rb +32 -0
  57. data/lib/stripe/resources/checkout/session.rb +65 -2
  58. data/lib/stripe/resources/confirmation_token.rb +54 -2
  59. data/lib/stripe/resources/customer.rb +4 -0
  60. data/lib/stripe/resources/customer_tax_exemption.rb +2 -0
  61. data/lib/stripe/resources/dispute.rb +4 -0
  62. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  63. data/lib/stripe/resources/invoice.rb +0 -30
  64. data/lib/stripe/resources/invoice_rendering_template.rb +19 -1
  65. data/lib/stripe/resources/issuing/authorization.rb +18 -0
  66. data/lib/stripe/resources/issuing/card.rb +28 -0
  67. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  68. data/lib/stripe/resources/mandate.rb +65 -0
  69. data/lib/stripe/resources/payment_attempt_record.rb +46 -0
  70. data/lib/stripe/resources/payment_intent.rb +113 -103
  71. data/lib/stripe/resources/payment_link.rb +2 -0
  72. data/lib/stripe/resources/payment_method.rb +53 -1
  73. data/lib/stripe/resources/payment_method_configuration.rb +102 -0
  74. data/lib/stripe/resources/payment_record.rb +46 -0
  75. data/lib/stripe/resources/quote_preview_invoice.rb +0 -30
  76. data/lib/stripe/resources/radar/account_evaluation.rb +36 -2
  77. data/lib/stripe/resources/reserve/plan.rb +1 -1
  78. data/lib/stripe/resources/risk/form.rb +44 -1
  79. data/lib/stripe/resources/setup_attempt.rb +91 -0
  80. data/lib/stripe/resources/setup_intent.rb +1 -1
  81. data/lib/stripe/resources/source.rb +2 -2
  82. data/lib/stripe/resources/subscription.rb +0 -20
  83. data/lib/stripe/resources/tax/calculation.rb +1 -1
  84. data/lib/stripe/resources/tax/form.rb +6 -0
  85. data/lib/stripe/resources/tax/transaction.rb +1 -1
  86. data/lib/stripe/resources/terminal/configuration.rb +1 -1
  87. data/lib/stripe/resources/terminal/onboarding_link.rb +2 -1
  88. data/lib/stripe/resources/terminal/reader.rb +17 -1
  89. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -1
  90. data/lib/stripe/resources/three_d_secure/authentication.rb +1 -1
  91. data/lib/stripe/resources/v2/billing/contract.rb +285 -6
  92. data/lib/stripe/resources/v2/billing/contract_term.rb +133 -6
  93. data/lib/stripe/resources/v2/core/account.rb +2709 -322
  94. data/lib/stripe/resources/v2/core/fee_batch.rb +3 -0
  95. data/lib/stripe/resources/v2/core/fee_entry.rb +33 -3
  96. data/lib/stripe/resources/v2/money_management/dispute.rb +78 -0
  97. data/lib/stripe/resources/v2/money_management/dispute_adjustment.rb +53 -0
  98. data/lib/stripe/resources/v2/money_management/financial_account.rb +45 -0
  99. data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +6 -4
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +27 -1
  101. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +18 -2
  102. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  103. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  104. data/lib/stripe/resources/v2/risk/evaluation_outcome.rb +305 -0
  105. data/lib/stripe/resources/v2/signals/account_evaluation.rb +34 -0
  106. data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
  107. data/lib/stripe/resources.rb +30 -0
  108. data/lib/stripe/services/checkout/session_service.rb +1 -1
  109. data/lib/stripe/services/payment_intent_service.rb +0 -11
  110. data/lib/stripe/services/risk/form_service.rb +44 -1
  111. data/lib/stripe/services/subscription_service.rb +0 -11
  112. data/lib/stripe/services/terminal/onboarding_link_service.rb +1 -0
  113. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +1 -1
  114. data/lib/stripe/services/v2/core/fee_batch_service.rb +4 -1
  115. data/lib/stripe/services/v2/core/fee_entry_service.rb +3 -1
  116. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +1 -0
  117. data/lib/stripe/services/v2/money_management/dispute_adjustment_service.rb +32 -0
  118. data/lib/stripe/services/v2/money_management/dispute_service.rb +46 -0
  119. data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +6 -3
  120. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +26 -0
  121. data/lib/stripe/services/v2/money_management_service.rb +3 -1
  122. data/lib/stripe/services/v2/risk/evaluation_outcome_service.rb +32 -0
  123. data/lib/stripe/services/v2/risk_service.rb +2 -1
  124. data/lib/stripe/services/v2/test_helpers/money_management/inbound_transfer_service.rb +34 -0
  125. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +8 -0
  126. data/lib/stripe/services.rb +11 -0
  127. data/lib/stripe/stripe_client.rb +1 -1
  128. data/lib/stripe/stripe_event_notification_handler.rb +24 -0
  129. data/lib/stripe/stripe_object.rb +14 -4
  130. data/lib/stripe/util.rb +21 -2
  131. data/lib/stripe/v2_type_coercion.rb +6 -2
  132. data/lib/stripe/version.rb +1 -1
  133. data/lib/stripe/webhook.rb +1 -0
  134. data/rbi/stripe.rbi +8211 -782
  135. metadata +26 -4
  136. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +0 -19
  137. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
@@ -974,6 +974,8 @@ module Stripe
974
974
  attr_reader :amount_tax_display
975
975
  # ID of the invoice rendering template to be used for the generated invoice.
976
976
  attr_reader :template
977
+ # The version of the invoice rendering template to be used for the generated invoice. If null, the latest version of the template will be used. Only available in unified mode.
978
+ attr_reader :template_version
977
979
 
978
980
  def self.inner_class_types
979
981
  @inner_class_types = {}
@@ -1298,6 +1300,57 @@ module Stripe
1298
1300
  end
1299
1301
  end
1300
1302
 
1303
+ class OneTimePrice < ::Stripe::StripeObject
1304
+ class Item < ::Stripe::StripeObject
1305
+ class AdjustableQuantity < ::Stripe::StripeObject
1306
+ # Whether the quantity is adjustable.
1307
+ attr_reader :enabled
1308
+ # The maximum quantity the customer can purchase.
1309
+ attr_reader :maximum
1310
+ # The minimum quantity the customer can purchase.
1311
+ attr_reader :minimum
1312
+
1313
+ def self.inner_class_types
1314
+ @inner_class_types = {}
1315
+ end
1316
+
1317
+ def self.field_remappings
1318
+ @field_remappings = {}
1319
+ end
1320
+ end
1321
+ # The adjustable quantity settings for this one-time price item.
1322
+ attr_reader :adjustable_quantity
1323
+ # The price for this one-time price item.
1324
+ attr_reader :price
1325
+ # The quantity for this one-time price item.
1326
+ attr_reader :quantity
1327
+ # The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.
1328
+ attr_reader :tax_rates
1329
+
1330
+ def self.inner_class_types
1331
+ @inner_class_types = { adjustable_quantity: AdjustableQuantity }
1332
+ end
1333
+
1334
+ def self.field_remappings
1335
+ @field_remappings = {}
1336
+ end
1337
+ end
1338
+ # The description for the one-time price.
1339
+ attr_reader :description
1340
+ # The items in the one-time price configuration.
1341
+ attr_reader :items
1342
+ # Set of key-value pairs attached to the one-time price.
1343
+ attr_reader :metadata
1344
+
1345
+ def self.inner_class_types
1346
+ @inner_class_types = { items: Item }
1347
+ end
1348
+
1349
+ def self.field_remappings
1350
+ @field_remappings = {}
1351
+ end
1352
+ end
1353
+
1301
1354
  class Subscription < ::Stripe::StripeObject
1302
1355
  class Item < ::Stripe::StripeObject
1303
1356
  class AdjustableQuantity < ::Stripe::StripeObject
@@ -1428,13 +1481,19 @@ module Stripe
1428
1481
  attr_reader :key
1429
1482
  # Attribute for field metronome_commit
1430
1483
  attr_reader :metronome_commit
1484
+ # Attribute for field one_time_price
1485
+ attr_reader :one_time_price
1431
1486
  # Attribute for field subscription
1432
1487
  attr_reader :subscription
1433
1488
  # The type of the item.
1434
1489
  attr_reader :type
1435
1490
 
1436
1491
  def self.inner_class_types
1437
- @inner_class_types = { metronome_commit: MetronomeCommit, subscription: Subscription }
1492
+ @inner_class_types = {
1493
+ metronome_commit: MetronomeCommit,
1494
+ one_time_price: OneTimePrice,
1495
+ subscription: Subscription,
1496
+ }
1438
1497
  end
1439
1498
 
1440
1499
  def self.field_remappings
@@ -1491,6 +1550,10 @@ module Stripe
1491
1550
  class AdConversion < ::Stripe::StripeObject
1492
1551
  # Whether the customer consented to sending conversion data to an advertising platform.
1493
1552
  attr_reader :consent_collected
1553
+ # The URL of the web page where the customer converted.
1554
+ attr_reader :source_url
1555
+ # The user agent of the browser where the customer converted.
1556
+ attr_reader :user_agent
1494
1557
 
1495
1558
  def self.inner_class_types
1496
1559
  @inner_class_types = {}
@@ -3880,7 +3943,7 @@ module Stripe
3880
3943
 
3881
3944
  # Updates a Checkout Session object.
3882
3945
  #
3883
- # Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/advanced/dynamic-updates)
3946
+ # Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/checkout/dynamic-updates)
3884
3947
  def self.update(session, params = {}, opts = {})
3885
3948
  request_stripe_object(
3886
3949
  method: :post,
@@ -378,6 +378,33 @@ module Stripe
378
378
  class GeneratedFrom < ::Stripe::StripeObject
379
379
  class PaymentMethodDetails < ::Stripe::StripeObject
380
380
  class CardPresent < ::Stripe::StripeObject
381
+ class Benefits < ::Stripe::StripeObject
382
+ class FrMealVoucher < ::Stripe::StripeObject
383
+ # The 14-digit SIRET of the meal voucher acceptor used for this charge.
384
+ attr_reader :siret
385
+
386
+ def self.inner_class_types
387
+ @inner_class_types = {}
388
+ end
389
+
390
+ def self.field_remappings
391
+ @field_remappings = {}
392
+ end
393
+ end
394
+ # Attribute for field fr_meal_voucher
395
+ attr_reader :fr_meal_voucher
396
+ # Issuer of the benefit card utilized on this payment
397
+ attr_reader :issuer
398
+
399
+ def self.inner_class_types
400
+ @inner_class_types = { fr_meal_voucher: FrMealVoucher }
401
+ end
402
+
403
+ def self.field_remappings
404
+ @field_remappings = {}
405
+ end
406
+ end
407
+
381
408
  class Fleet < ::Stripe::StripeObject
382
409
  class TransactionDatum < ::Stripe::StripeObject
383
410
  # The prompt that the Terminal SDK displays to collect this Fleet value.
@@ -507,6 +534,8 @@ module Stripe
507
534
  end
508
535
  # The authorized amount
509
536
  attr_reader :amount_authorized
537
+ # Attribute for field benefits
538
+ attr_reader :benefits
510
539
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
511
540
  attr_reader :brand
512
541
  # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@@ -574,6 +603,7 @@ module Stripe
574
603
 
575
604
  def self.inner_class_types
576
605
  @inner_class_types = {
606
+ benefits: Benefits,
577
607
  fleet: Fleet,
578
608
  multicapture: Multicapture,
579
609
  offline: Offline,
@@ -919,6 +949,21 @@ module Stripe
919
949
  end
920
950
 
921
951
  class CardPresent < ::Stripe::StripeObject
952
+ class Benefits < ::Stripe::StripeObject
953
+ # Issuer of this benefit card
954
+ attr_reader :issuer
955
+ # Available benefit programs for this card
956
+ attr_reader :programs
957
+
958
+ def self.inner_class_types
959
+ @inner_class_types = {}
960
+ end
961
+
962
+ def self.field_remappings
963
+ @field_remappings = {}
964
+ end
965
+ end
966
+
922
967
  class Networks < ::Stripe::StripeObject
923
968
  # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
924
969
  attr_reader :available
@@ -961,6 +1006,8 @@ module Stripe
961
1006
  @field_remappings = {}
962
1007
  end
963
1008
  end
1009
+ # Attribute for field benefits
1010
+ attr_reader :benefits
964
1011
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
965
1012
  attr_reader :brand
966
1013
  # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@@ -999,7 +1046,12 @@ module Stripe
999
1046
  attr_reader :wallet
1000
1047
 
1001
1048
  def self.inner_class_types
1002
- @inner_class_types = { networks: Networks, offline: Offline, wallet: Wallet }
1049
+ @inner_class_types = {
1050
+ benefits: Benefits,
1051
+ networks: Networks,
1052
+ offline: Offline,
1053
+ wallet: Wallet,
1054
+ }
1003
1055
  end
1004
1056
 
1005
1057
  def self.field_remappings
@@ -2205,7 +2257,7 @@ module Stripe
2205
2257
  "ConfirmationToken"
2206
2258
  end
2207
2259
 
2208
- # Creates a test mode Confirmation Token server side for your integration tests.
2260
+ # Creates a test Confirmation Token server side for your integration tests.
2209
2261
  def self.create(params = {}, opts = {})
2210
2262
  request_stripe_object(
2211
2263
  method: :post,
@@ -98,6 +98,10 @@ module Stripe
98
98
  class AdConversion < ::Stripe::StripeObject
99
99
  # Whether the customer consented to sending conversion data to an advertising platform.
100
100
  attr_reader :consent_collected
101
+ # The URL of the web page where the customer converted.
102
+ attr_reader :source_url
103
+ # The user agent of the browser where the customer converted.
104
+ attr_reader :user_agent
101
105
 
102
106
  def self.inner_class_types
103
107
  @inner_class_types = {}
@@ -82,6 +82,8 @@ module Stripe
82
82
  attr_reader :country
83
83
  # Time at which the object was created. Measured in seconds since the Unix epoch.
84
84
  attr_reader :created
85
+ # How was the exemption created
86
+ attr_reader :creation_source
85
87
  # ID of the customer this tax exemption belongs to.
86
88
  attr_reader :customer
87
89
  # Present and true when the exemption has been deleted.
@@ -333,6 +333,8 @@ module Stripe
333
333
  @field_remappings = {}
334
334
  end
335
335
  end
336
+ # If the dispute was eligible for appeal, whether the appeal was submitted manually, with Smart Disputes, or not submitted.
337
+ attr_reader :appeal_method
336
338
  # Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
337
339
  attr_reader :due_by
338
340
  # Attribute for field enhanced_eligibility
@@ -391,6 +393,8 @@ module Stripe
391
393
  class Klarna < ::Stripe::StripeObject
392
394
  # Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason
393
395
  attr_reader :chargeback_loss_reason_code
396
+ # The ID of the dispute in Klarna.
397
+ attr_reader :dispute_id
394
398
  # The reason for the dispute as defined by Klarna
395
399
  attr_reader :reason_code
396
400
 
@@ -534,6 +534,37 @@ module Stripe
534
534
  @field_remappings = {}
535
535
  end
536
536
  end
537
+
538
+ class SuspiciousBehavior < ::Stripe::StripeObject
539
+ class Indicator < ::Stripe::StripeObject
540
+ # A brief explanation of how this indicator contributed to the risk level.
541
+ attr_reader :explanation
542
+ # The effect this indicator had on the overall risk level.
543
+ attr_reader :impact
544
+ # The name of the specific indicator used in the risk assessment.
545
+ attr_reader :indicator
546
+
547
+ def self.inner_class_types
548
+ @inner_class_types = {}
549
+ end
550
+
551
+ def self.field_remappings
552
+ @field_remappings = {}
553
+ end
554
+ end
555
+ # Array of objects representing individual factors that contributed to the calculated risk level.
556
+ attr_reader :indicators
557
+ # Categorical assessment of the behavior risk.
558
+ attr_reader :risk_level
559
+
560
+ def self.inner_class_types
561
+ @inner_class_types = { indicators: Indicator }
562
+ end
563
+
564
+ def self.field_remappings
565
+ @field_remappings = {}
566
+ end
567
+ end
537
568
  # Attribute for field fraudulent_document
538
569
  attr_reader :fraudulent_document
539
570
  # Attribute for field fraudulent_email
@@ -544,6 +575,8 @@ module Stripe
544
575
  attr_reader :fraudulent_phone
545
576
  # Attribute for field fraudulent_selfie
546
577
  attr_reader :fraudulent_selfie
578
+ # Attribute for field suspicious_behavior
579
+ attr_reader :suspicious_behavior
547
580
 
548
581
  def self.inner_class_types
549
582
  @inner_class_types = {
@@ -552,6 +585,7 @@ module Stripe
552
585
  fraudulent_person: FraudulentPerson,
553
586
  fraudulent_phone: FraudulentPhone,
554
587
  fraudulent_selfie: FraudulentSelfie,
588
+ suspicious_behavior: SuspiciousBehavior,
555
589
  }
556
590
  end
557
591
 
@@ -76,33 +76,6 @@ module Stripe
76
76
  end
77
77
  end
78
78
 
79
- class AppliedCreditMemos < ::Stripe::StripeObject
80
- class Data < ::Stripe::StripeObject
81
- # The credit currently applied to this invoice from the Credit Memo, in cents (or local equivalent). Applying credit reduces `amount_due` and `amount_remaining` without changing `amount_paid`.
82
- attr_reader :applied_amount
83
- # The ID of the Credit Memo whose credit is applied to this invoice.
84
- attr_reader :credit_memo
85
-
86
- def self.inner_class_types
87
- @inner_class_types = {}
88
- end
89
-
90
- def self.field_remappings
91
- @field_remappings = {}
92
- end
93
- end
94
- # The Credit Memos with credit currently applied to this invoice, with one entry per Credit Memo. An invoice can have credit applied from at most 10 Credit Memos, so the list is returned in full.
95
- attr_reader :data
96
-
97
- def self.inner_class_types
98
- @inner_class_types = { data: Data }
99
- end
100
-
101
- def self.field_remappings
102
- @field_remappings = {}
103
- end
104
- end
105
-
106
79
  class AutomaticTax < ::Stripe::StripeObject
107
80
  class EnablementDetails < ::Stripe::StripeObject
108
81
  class IntegrationConfigurationDisabledReason < ::Stripe::StripeObject
@@ -1271,8 +1244,6 @@ module Stripe
1271
1244
  attr_reader :amounts_due
1272
1245
  # ID of the Connect Application that created the invoice.
1273
1246
  attr_reader :application
1274
- # Attribute for field applied_credit_memos
1275
- attr_reader :applied_credit_memos
1276
1247
  # Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
1277
1248
  attr_reader :attempt_count
1278
1249
  # Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.
@@ -1733,7 +1704,6 @@ module Stripe
1733
1704
  def self.inner_class_types
1734
1705
  @inner_class_types = {
1735
1706
  amounts_due: AmountsDue,
1736
- applied_credit_memos: AppliedCreditMemos,
1737
1707
  automatic_tax: AutomaticTax,
1738
1708
  confirmation_secret: ConfirmationSecret,
1739
1709
  custom_fields: CustomField,
@@ -32,6 +32,19 @@ module Stripe
32
32
  class RenderingSettings < ::Stripe::StripeObject
33
33
  class InvoicePdf < ::Stripe::StripeObject
34
34
  class Block < ::Stripe::StripeObject
35
+ class CustomPlainText < ::Stripe::StripeObject
36
+ # Literal text to render, preserving whitespace and newlines.
37
+ attr_reader :plain_text
38
+
39
+ def self.inner_class_types
40
+ @inner_class_types = {}
41
+ end
42
+
43
+ def self.field_remappings
44
+ @field_remappings = {}
45
+ end
46
+ end
47
+
35
48
  class CustomPlainTextCel < ::Stripe::StripeObject
36
49
  # A CEL expression that returns text using the invoice context.
37
50
  attr_reader :cel_expression
@@ -44,6 +57,8 @@ module Stripe
44
57
  @field_remappings = {}
45
58
  end
46
59
  end
60
+ # Attribute for field custom_plain_text
61
+ attr_reader :custom_plain_text
47
62
  # Attribute for field custom_plain_text_cel
48
63
  attr_reader :custom_plain_text_cel
49
64
  # The key of this block in the template.
@@ -52,7 +67,10 @@ module Stripe
52
67
  attr_reader :type
53
68
 
54
69
  def self.inner_class_types
55
- @inner_class_types = { custom_plain_text_cel: CustomPlainTextCel }
70
+ @inner_class_types = {
71
+ custom_plain_text: CustomPlainText,
72
+ custom_plain_text_cel: CustomPlainTextCel,
73
+ }
56
74
  end
57
75
 
58
76
  def self.field_remappings
@@ -33,6 +33,21 @@ module Stripe
33
33
  end
34
34
  end
35
35
 
36
+ class AtmData < ::Stripe::StripeObject
37
+ # The ATM location as provided by the card network, such as a street address or branch descriptor. Not a validated postal address.
38
+ attr_reader :location_descriptor
39
+ # The ATM institution or operator name, label, or identifier as provided by the card network. Not guaranteed to be human-readable.
40
+ attr_reader :name_descriptor
41
+
42
+ def self.inner_class_types
43
+ @inner_class_types = {}
44
+ end
45
+
46
+ def self.field_remappings
47
+ @field_remappings = {}
48
+ end
49
+ end
50
+
36
51
  class BalanceResponse < ::Stripe::StripeObject
37
52
  # The cardholder account type affected by this authorization.
38
53
  attr_reader :account_type
@@ -1358,6 +1373,8 @@ module Stripe
1358
1373
  attr_reader :amount_details
1359
1374
  # Whether the authorization has been approved.
1360
1375
  attr_reader :approved
1376
+ # Details about ATM activity, such as the ATM name and location. Present only for ATM transactions (MCC 6011) on supported networks; null otherwise.
1377
+ attr_reader :atm_data
1361
1378
  # How the card details were provided.
1362
1379
  attr_reader :authorization_method
1363
1380
  # Attribute for field balance_response
@@ -1659,6 +1676,7 @@ module Stripe
1659
1676
  def self.inner_class_types
1660
1677
  @inner_class_types = {
1661
1678
  amount_details: AmountDetails,
1679
+ atm_data: AtmData,
1662
1680
  balance_response: BalanceResponse,
1663
1681
  crypto_transactions: CryptoTransaction,
1664
1682
  enriched_merchant_data: EnrichedMerchantData,
@@ -33,6 +33,31 @@ module Stripe
33
33
  end
34
34
  end
35
35
 
36
+ class FlexibleCredential < ::Stripe::StripeObject
37
+ class SecondaryCredential < ::Stripe::StripeObject
38
+ # The funding source that this credential can support.
39
+ attr_reader :funding
40
+
41
+ def self.inner_class_types
42
+ @inner_class_types = {}
43
+ end
44
+
45
+ def self.field_remappings
46
+ @field_remappings = {}
47
+ end
48
+ end
49
+ # Details about the secondary credentials for this card.
50
+ attr_reader :secondary_credentials
51
+
52
+ def self.inner_class_types
53
+ @inner_class_types = { secondary_credentials: SecondaryCredential }
54
+ end
55
+
56
+ def self.field_remappings
57
+ @field_remappings = {}
58
+ end
59
+ end
60
+
36
61
  class LatestFraudWarning < ::Stripe::StripeObject
37
62
  # Timestamp of the most recent fraud warning.
38
63
  attr_reader :started_at
@@ -336,6 +361,8 @@ module Stripe
336
361
  attr_reader :exp_year
337
362
  # The financial account this card is attached to.
338
363
  attr_reader :financial_account
364
+ # Details about the flexible credential configuration for this card. This is only populated when enrolled to flex credentials, and is omitted unless you explicitly request it with `include[]=flexible_credential`.
365
+ attr_reader :flexible_credential
339
366
  # Unique identifier for the object.
340
367
  attr_reader :id
341
368
  # The last 4 digits of the card number.
@@ -515,6 +542,7 @@ module Stripe
515
542
  def self.inner_class_types
516
543
  @inner_class_types = {
517
544
  crypto_wallet: CryptoWallet,
545
+ flexible_credential: FlexibleCredential,
518
546
  latest_fraud_warning: LatestFraudWarning,
519
547
  lifecycle_controls: LifecycleControls,
520
548
  product_graduation_state: ProductGraduationState,
@@ -32,6 +32,21 @@ module Stripe
32
32
  end
33
33
  end
34
34
 
35
+ class AtmData < ::Stripe::StripeObject
36
+ # The ATM location as provided by the card network, such as a street address or branch descriptor. Not a validated postal address.
37
+ attr_reader :location_descriptor
38
+ # The ATM institution or operator name, label, or identifier as provided by the card network. Not guaranteed to be human-readable.
39
+ attr_reader :name_descriptor
40
+
41
+ def self.inner_class_types
42
+ @inner_class_types = {}
43
+ end
44
+
45
+ def self.field_remappings
46
+ @field_remappings = {}
47
+ end
48
+ end
49
+
35
50
  class CryptoTransaction < ::Stripe::StripeObject
36
51
  class CryptoTransactionConfirmed < ::Stripe::StripeObject
37
52
  class Fee < ::Stripe::StripeObject
@@ -693,6 +708,8 @@ module Stripe
693
708
  attr_reader :amount
694
709
  # Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
695
710
  attr_reader :amount_details
711
+ # Details about ATM activity, such as the ATM name and location. Present only for ATM transactions (MCC 6011) on supported networks; null otherwise.
712
+ attr_reader :atm_data
696
713
  # The `Authorization` object that led to this transaction.
697
714
  attr_reader :authorization
698
715
  # ID of the [balance transaction](https://docs.stripe.com/api/balance_transactions) associated with this transaction.
@@ -818,6 +835,7 @@ module Stripe
818
835
  def self.inner_class_types
819
836
  @inner_class_types = {
820
837
  amount_details: AmountDetails,
838
+ atm_data: AtmData,
821
839
  crypto_transactions: CryptoTransaction,
822
840
  merchant_data: MerchantData,
823
841
  network_data: NetworkData,
@@ -89,6 +89,16 @@ module Stripe
89
89
  end
90
90
  end
91
91
 
92
+ class AeonPay < ::Stripe::StripeObject
93
+ def self.inner_class_types
94
+ @inner_class_types = {}
95
+ end
96
+
97
+ def self.field_remappings
98
+ @field_remappings = {}
99
+ end
100
+ end
101
+
92
102
  class AmazonPay < ::Stripe::StripeObject
93
103
  def self.inner_class_types
94
104
  @inner_class_types = {}
@@ -112,6 +122,16 @@ module Stripe
112
122
  end
113
123
  end
114
124
 
125
+ class AuPay < ::Stripe::StripeObject
126
+ def self.inner_class_types
127
+ @inner_class_types = {}
128
+ end
129
+
130
+ def self.field_remappings
131
+ @field_remappings = {}
132
+ end
133
+ end
134
+
115
135
  class BacsDebit < ::Stripe::StripeObject
116
136
  # The display name for the account on this mandate.
117
137
  attr_reader :display_name
@@ -203,6 +223,16 @@ module Stripe
203
223
  end
204
224
  end
205
225
 
226
+ class Dbarai < ::Stripe::StripeObject
227
+ def self.inner_class_types
228
+ @inner_class_types = {}
229
+ end
230
+
231
+ def self.field_remappings
232
+ @field_remappings = {}
233
+ end
234
+ end
235
+
206
236
  class KakaoPay < ::Stripe::StripeObject
207
237
  def self.inner_class_types
208
238
  @inner_class_types = {}
@@ -243,6 +273,16 @@ module Stripe
243
273
  end
244
274
  end
245
275
 
276
+ class Merpay < ::Stripe::StripeObject
277
+ def self.inner_class_types
278
+ @inner_class_types = {}
279
+ end
280
+
281
+ def self.field_remappings
282
+ @field_remappings = {}
283
+ end
284
+ end
285
+
246
286
  class NaverPay < ::Stripe::StripeObject
247
287
  def self.inner_class_types
248
288
  @inner_class_types = {}
@@ -331,6 +371,16 @@ module Stripe
331
371
  end
332
372
  end
333
373
 
374
+ class RakutenPay < ::Stripe::StripeObject
375
+ def self.inner_class_types
376
+ @inner_class_types = {}
377
+ end
378
+
379
+ def self.field_remappings
380
+ @field_remappings = {}
381
+ end
382
+ end
383
+
334
384
  class RevolutPay < ::Stripe::StripeObject
335
385
  def self.inner_class_types
336
386
  @inner_class_types = {}
@@ -412,10 +462,14 @@ module Stripe
412
462
  end
413
463
  # Attribute for field acss_debit
414
464
  attr_reader :acss_debit
465
+ # Attribute for field aeon_pay
466
+ attr_reader :aeon_pay
415
467
  # Attribute for field amazon_pay
416
468
  attr_reader :amazon_pay
417
469
  # Attribute for field au_becs_debit
418
470
  attr_reader :au_becs_debit
471
+ # Attribute for field au_pay
472
+ attr_reader :au_pay
419
473
  # Attribute for field bacs_debit
420
474
  attr_reader :bacs_debit
421
475
  # Attribute for field blik
@@ -424,6 +478,8 @@ module Stripe
424
478
  attr_reader :card
425
479
  # Attribute for field cashapp
426
480
  attr_reader :cashapp
481
+ # Attribute for field dbarai
482
+ attr_reader :dbarai
427
483
  # Attribute for field kakao_pay
428
484
  attr_reader :kakao_pay
429
485
  # Attribute for field klarna
@@ -432,6 +488,8 @@ module Stripe
432
488
  attr_reader :kr_card
433
489
  # Attribute for field link
434
490
  attr_reader :link
491
+ # Attribute for field merpay
492
+ attr_reader :merpay
435
493
  # Attribute for field naver_pay
436
494
  attr_reader :naver_pay
437
495
  # Attribute for field nz_bank_account
@@ -442,6 +500,8 @@ module Stripe
442
500
  attr_reader :payto
443
501
  # Attribute for field pix
444
502
  attr_reader :pix
503
+ # Attribute for field rakuten_pay
504
+ attr_reader :rakuten_pay
445
505
  # Attribute for field revolut_pay
446
506
  attr_reader :revolut_pay
447
507
  # Attribute for field sepa_debit
@@ -460,21 +520,26 @@ module Stripe
460
520
  def self.inner_class_types
461
521
  @inner_class_types = {
462
522
  acss_debit: AcssDebit,
523
+ aeon_pay: AeonPay,
463
524
  amazon_pay: AmazonPay,
464
525
  au_becs_debit: AuBecsDebit,
526
+ au_pay: AuPay,
465
527
  bacs_debit: BacsDebit,
466
528
  blik: Blik,
467
529
  card: Card,
468
530
  cashapp: Cashapp,
531
+ dbarai: Dbarai,
469
532
  kakao_pay: KakaoPay,
470
533
  klarna: Klarna,
471
534
  kr_card: KrCard,
472
535
  link: Link,
536
+ merpay: Merpay,
473
537
  naver_pay: NaverPay,
474
538
  nz_bank_account: NzBankAccount,
475
539
  paypal: Paypal,
476
540
  payto: Payto,
477
541
  pix: Pix,
542
+ rakuten_pay: RakutenPay,
478
543
  revolut_pay: RevolutPay,
479
544
  sepa_debit: SepaDebit,
480
545
  toss_pay: TossPay,