stripe 17.3.0.pre.alpha.2 → 18.1.0.pre.alpha.1

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/object_types.rb +2 -0
  4. data/lib/stripe/params/account_create_params.rb +27 -10
  5. data/lib/stripe/params/account_person_create_params.rb +9 -9
  6. data/lib/stripe/params/account_person_update_params.rb +9 -9
  7. data/lib/stripe/params/account_update_params.rb +27 -10
  8. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  9. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +2 -2
  10. data/lib/stripe/params/charge_capture_params.rb +941 -2
  11. data/lib/stripe/params/charge_update_params.rb +941 -2
  12. data/lib/stripe/params/checkout/session_create_params.rb +3 -3
  13. data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
  14. data/lib/stripe/params/customer_session_create_params.rb +1 -1
  15. data/lib/stripe/params/invoice_create_preview_params.rb +28 -1
  16. data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
  17. data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
  18. data/lib/stripe/params/order_create_params.rb +938 -1
  19. data/lib/stripe/params/order_update_params.rb +938 -1
  20. data/lib/stripe/params/payment_intent_capture_params.rb +962 -13
  21. data/lib/stripe/params/payment_intent_confirm_params.rb +2017 -123
  22. data/lib/stripe/params/payment_intent_create_params.rb +2017 -123
  23. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -13
  24. data/lib/stripe/params/payment_intent_update_params.rb +2017 -123
  25. data/lib/stripe/params/payment_method_list_params.rb +8 -0
  26. data/lib/stripe/params/quote_create_params.rb +18 -18
  27. data/lib/stripe/params/quote_update_params.rb +18 -18
  28. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  29. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  30. data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
  31. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -3
  32. data/lib/stripe/params/setup_intent_create_params.rb +3 -3
  33. data/lib/stripe/params/setup_intent_update_params.rb +3 -3
  34. data/lib/stripe/params/subscription_schedule_amend_params.rb +28 -1
  35. data/lib/stripe/params/tax/registration_create_params.rb +1 -1
  36. data/lib/stripe/params/terminal/configuration_create_params.rb +9 -9
  37. data/lib/stripe/params/terminal/configuration_update_params.rb +9 -9
  38. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
  39. data/lib/stripe/params/token_create_params.rb +18 -18
  40. data/lib/stripe/params/transfer_create_params.rb +5 -5
  41. data/lib/stripe/params.rb +4 -0
  42. data/lib/stripe/resources/account.rb +19 -1
  43. data/lib/stripe/resources/application_fee.rb +2 -2
  44. data/lib/stripe/resources/balance_transfer.rb +139 -0
  45. data/lib/stripe/resources/bank_account.rb +2 -2
  46. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -2
  47. data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
  48. data/lib/stripe/resources/capital/financing_offer.rb +6 -6
  49. data/lib/stripe/resources/capital/financing_summary.rb +7 -7
  50. data/lib/stripe/resources/charge.rb +5 -3
  51. data/lib/stripe/resources/checkout/session.rb +3 -3
  52. data/lib/stripe/resources/confirmation_token.rb +1 -1
  53. data/lib/stripe/resources/delegated_checkout/requested_session.rb +50 -50
  54. data/lib/stripe/resources/financial_connections/account.rb +22 -0
  55. data/lib/stripe/resources/invoice.rb +1 -1
  56. data/lib/stripe/resources/issuing/card.rb +18 -0
  57. data/lib/stripe/resources/mandate.rb +3 -3
  58. data/lib/stripe/resources/payment_attempt_record.rb +8 -6
  59. data/lib/stripe/resources/payment_intent.rb +38 -26
  60. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
  61. data/lib/stripe/resources/payment_method.rb +1 -1
  62. data/lib/stripe/resources/payment_record.rb +8 -6
  63. data/lib/stripe/resources/person.rb +36 -36
  64. data/lib/stripe/resources/quote.rb +27 -27
  65. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  66. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +9 -9
  67. data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
  68. data/lib/stripe/resources/refund.rb +31 -0
  69. data/lib/stripe/resources/setup_attempt.rb +1 -1
  70. data/lib/stripe/resources/setup_intent.rb +3 -3
  71. data/lib/stripe/resources/subscription.rb +9 -9
  72. data/lib/stripe/resources/subscription_schedule.rb +9 -9
  73. data/lib/stripe/resources/transfer.rb +4 -4
  74. data/lib/stripe/resources.rb +2 -0
  75. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  76. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  77. data/lib/stripe/services/radar_service.rb +2 -1
  78. data/lib/stripe/services/v1_services.rb +2 -1
  79. data/lib/stripe/services.rb +2 -0
  80. data/lib/stripe/util.rb +2 -5
  81. data/lib/stripe/version.rb +1 -1
  82. data/rbi/stripe.rbi +17737 -652
  83. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c31ae29ddaf0f6ec74f612be51b27f8cbb35b26c099ac2fcc974c0d50d0c617f
4
- data.tar.gz: ffd2d27b3a0fe5a4f63d1b294faf56f70dd4acad17635ff06ba75cd056128cef
3
+ metadata.gz: e7d6c22fa67a7d8ce9ab565436441b402665a8ef93d4cc3f00faf7852d8054e0
4
+ data.tar.gz: 337b0f5390a84da8c3e791a156dc38fc8cbc3db85344adc2ba5425bc15ab5cd9
5
5
  SHA512:
6
- metadata.gz: '089d9919a183366dd5cab2f9717c1aa16bd2d65e355b763f6c430aaae7a4526ed4d9f96ad112b5e5a6bfa0f710ef4f35d9d893c844f6f12baf7ebc925557b3ee'
7
- data.tar.gz: c91f3855248ff9fa0cc9ceb27d7c6525237980aa54e6e1cc9d97c42802bf7e2999712d8c21a0173ccf7cd33c595048eb1e5b3047d6001eb809f71b08a1e6e090
6
+ metadata.gz: 83c4eb2a49f557abc973a419857e0a5c7c2d2339ca68834783c523ac40bdb32a94f87fa2779c7336c13217241afa1eacd62146e0fc38fa0be90f5874d831ef21
7
+ data.tar.gz: 2186305b9c3d0f98e405e79c3f380ef738e389c433ca6ad7f3090d76a3c30749624ecdcc66853b4ca3f7fa545c3fe780f2770d15a18c2883186fd62051237c27
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2025-10-29.preview"
6
+ CURRENT = "2025-11-17.preview"
7
7
  end
8
8
  end
@@ -24,6 +24,7 @@ module Stripe
24
24
  Balance.object_name => Balance,
25
25
  BalanceSettings.object_name => BalanceSettings,
26
26
  BalanceTransaction.object_name => BalanceTransaction,
27
+ BalanceTransfer.object_name => BalanceTransfer,
27
28
  BankAccount.object_name => BankAccount,
28
29
  Billing::Alert.object_name => Billing::Alert,
29
30
  Billing::AlertTriggered.object_name => Billing::AlertTriggered,
@@ -129,6 +130,7 @@ module Stripe
129
130
  QuoteLine.object_name => QuoteLine,
130
131
  QuotePreviewInvoice.object_name => QuotePreviewInvoice,
131
132
  QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
133
+ Radar::AccountEvaluation.object_name => Radar::AccountEvaluation,
132
134
  Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
133
135
  Radar::ValueList.object_name => Radar::ValueList,
134
136
  Radar::ValueListItem.object_name => Radar::ValueListItem,
@@ -110,6 +110,8 @@ module Stripe
110
110
  attr_accessor :name
111
111
  # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
112
112
  attr_accessor :product_description
113
+ # A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods.
114
+ attr_accessor :specified_commercial_transactions_act_url
113
115
  # A publicly available mailing address for sending support issues to.
114
116
  attr_accessor :support_address
115
117
  # A publicly available email address for sending support issues to.
@@ -129,6 +131,7 @@ module Stripe
129
131
  monthly_estimated_revenue: nil,
130
132
  name: nil,
131
133
  product_description: nil,
134
+ specified_commercial_transactions_act_url: nil,
132
135
  support_address: nil,
133
136
  support_email: nil,
134
137
  support_phone: nil,
@@ -142,6 +145,7 @@ module Stripe
142
145
  @monthly_estimated_revenue = monthly_estimated_revenue
143
146
  @name = name
144
147
  @product_description = product_description
148
+ @specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
145
149
  @support_address = support_address
146
150
  @support_email = support_email
147
151
  @support_phone = support_phone
@@ -1967,14 +1971,14 @@ module Stripe
1967
1971
  attr_accessor :registered_address
1968
1972
  # Describes the person’s relationship to the account.
1969
1973
  attr_accessor :relationship
1970
- # The last four digits of the individual's Social Security Number (U.S. only).
1971
- attr_accessor :ssn_last_4
1972
- # The individual's verification document information.
1973
- attr_accessor :verification
1974
1974
  # The credit applicant's self-reported yearly income in minor units.
1975
1975
  attr_accessor :self_reported_income
1976
1976
  # The credit applicant's self-reported monthly housing payment in minor units.
1977
1977
  attr_accessor :self_reported_monthly_housing_payment
1978
+ # The last four digits of the individual's Social Security Number (U.S. only).
1979
+ attr_accessor :ssn_last_4
1980
+ # The individual's verification document information.
1981
+ attr_accessor :verification
1978
1982
 
1979
1983
  def initialize(
1980
1984
  address: nil,
@@ -1998,10 +2002,10 @@ module Stripe
1998
2002
  political_exposure: nil,
1999
2003
  registered_address: nil,
2000
2004
  relationship: nil,
2001
- ssn_last_4: nil,
2002
- verification: nil,
2003
2005
  self_reported_income: nil,
2004
- self_reported_monthly_housing_payment: nil
2006
+ self_reported_monthly_housing_payment: nil,
2007
+ ssn_last_4: nil,
2008
+ verification: nil
2005
2009
  )
2006
2010
  @address = address
2007
2011
  @address_kana = address_kana
@@ -2024,10 +2028,10 @@ module Stripe
2024
2028
  @political_exposure = political_exposure
2025
2029
  @registered_address = registered_address
2026
2030
  @relationship = relationship
2027
- @ssn_last_4 = ssn_last_4
2028
- @verification = verification
2029
2031
  @self_reported_income = self_reported_income
2030
2032
  @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
2033
+ @ssn_last_4 = ssn_last_4
2034
+ @verification = verification
2031
2035
  end
2032
2036
  end
2033
2037
 
@@ -2172,7 +2176,7 @@ module Stripe
2172
2176
  end
2173
2177
 
2174
2178
  class Invoices < ::Stripe::RequestParams
2175
- # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
2179
+ # Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
2176
2180
  attr_accessor :hosted_payment_method_save
2177
2181
 
2178
2182
  def initialize(hosted_payment_method_save: nil)
@@ -2244,6 +2248,15 @@ module Stripe
2244
2248
  end
2245
2249
  end
2246
2250
 
2251
+ class PaypayPayments < ::Stripe::RequestParams
2252
+ # Whether your business sells digital content or not.
2253
+ attr_accessor :goods_type
2254
+
2255
+ def initialize(goods_type: nil)
2256
+ @goods_type = goods_type
2257
+ end
2258
+ end
2259
+
2247
2260
  class TaxForms < ::Stripe::RequestParams
2248
2261
  # Whether the account opted out of receiving their tax forms by postal delivery.
2249
2262
  attr_accessor :consented_to_paperless_delivery
@@ -2293,6 +2306,8 @@ module Stripe
2293
2306
  attr_accessor :payments
2294
2307
  # Settings specific to the account's payouts.
2295
2308
  attr_accessor :payouts
2309
+ # Settings specific to the PayPay payments method.
2310
+ attr_accessor :paypay_payments
2296
2311
  # Settings specific to the account's tax forms.
2297
2312
  attr_accessor :tax_forms
2298
2313
  # Settings specific to the account's Treasury FinancialAccounts.
@@ -2308,6 +2323,7 @@ module Stripe
2308
2323
  invoices: nil,
2309
2324
  payments: nil,
2310
2325
  payouts: nil,
2326
+ paypay_payments: nil,
2311
2327
  tax_forms: nil,
2312
2328
  treasury: nil
2313
2329
  )
@@ -2320,6 +2336,7 @@ module Stripe
2320
2336
  @invoices = invoices
2321
2337
  @payments = payments
2322
2338
  @payouts = payouts
2339
+ @paypay_payments = paypay_payments
2323
2340
  @tax_forms = tax_forms
2324
2341
  @treasury = treasury
2325
2342
  end
@@ -387,16 +387,16 @@ module Stripe
387
387
  attr_accessor :registered_address
388
388
  # The relationship that this person has with the account's legal entity.
389
389
  attr_accessor :relationship
390
+ # The credit applicant's self-reported yearly income in minor units.
391
+ attr_accessor :self_reported_income
392
+ # The credit applicant's self-reported monthly housing payment in minor units.
393
+ attr_accessor :self_reported_monthly_housing_payment
390
394
  # The last four digits of the person's Social Security number (U.S. only).
391
395
  attr_accessor :ssn_last_4
392
396
  # Demographic data related to the person.
393
397
  attr_accessor :us_cfpb_data
394
398
  # The person's verification status.
395
399
  attr_accessor :verification
396
- # The credit applicant's self-reported yearly income in minor units.
397
- attr_accessor :self_reported_income
398
- # The credit applicant's self-reported monthly housing payment in minor units.
399
- attr_accessor :self_reported_monthly_housing_payment
400
400
 
401
401
  def initialize(
402
402
  additional_tos_acceptances: nil,
@@ -425,11 +425,11 @@ module Stripe
425
425
  political_exposure: nil,
426
426
  registered_address: nil,
427
427
  relationship: nil,
428
+ self_reported_income: nil,
429
+ self_reported_monthly_housing_payment: nil,
428
430
  ssn_last_4: nil,
429
431
  us_cfpb_data: nil,
430
- verification: nil,
431
- self_reported_income: nil,
432
- self_reported_monthly_housing_payment: nil
432
+ verification: nil
433
433
  )
434
434
  @additional_tos_acceptances = additional_tos_acceptances
435
435
  @address = address
@@ -457,11 +457,11 @@ module Stripe
457
457
  @political_exposure = political_exposure
458
458
  @registered_address = registered_address
459
459
  @relationship = relationship
460
+ @self_reported_income = self_reported_income
461
+ @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
460
462
  @ssn_last_4 = ssn_last_4
461
463
  @us_cfpb_data = us_cfpb_data
462
464
  @verification = verification
463
- @self_reported_income = self_reported_income
464
- @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
465
465
  end
466
466
  end
467
467
  end
@@ -387,16 +387,16 @@ module Stripe
387
387
  attr_accessor :registered_address
388
388
  # The relationship that this person has with the account's legal entity.
389
389
  attr_accessor :relationship
390
+ # The credit applicant's self-reported yearly income in minor units.
391
+ attr_accessor :self_reported_income
392
+ # The credit applicant's self-reported monthly housing payment in minor units.
393
+ attr_accessor :self_reported_monthly_housing_payment
390
394
  # The last four digits of the person's Social Security number (U.S. only).
391
395
  attr_accessor :ssn_last_4
392
396
  # Demographic data related to the person.
393
397
  attr_accessor :us_cfpb_data
394
398
  # The person's verification status.
395
399
  attr_accessor :verification
396
- # The credit applicant's self-reported yearly income in minor units.
397
- attr_accessor :self_reported_income
398
- # The credit applicant's self-reported monthly housing payment in minor units.
399
- attr_accessor :self_reported_monthly_housing_payment
400
400
 
401
401
  def initialize(
402
402
  additional_tos_acceptances: nil,
@@ -425,11 +425,11 @@ module Stripe
425
425
  political_exposure: nil,
426
426
  registered_address: nil,
427
427
  relationship: nil,
428
+ self_reported_income: nil,
429
+ self_reported_monthly_housing_payment: nil,
428
430
  ssn_last_4: nil,
429
431
  us_cfpb_data: nil,
430
- verification: nil,
431
- self_reported_income: nil,
432
- self_reported_monthly_housing_payment: nil
432
+ verification: nil
433
433
  )
434
434
  @additional_tos_acceptances = additional_tos_acceptances
435
435
  @address = address
@@ -457,11 +457,11 @@ module Stripe
457
457
  @political_exposure = political_exposure
458
458
  @registered_address = registered_address
459
459
  @relationship = relationship
460
+ @self_reported_income = self_reported_income
461
+ @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
460
462
  @ssn_last_4 = ssn_last_4
461
463
  @us_cfpb_data = us_cfpb_data
462
464
  @verification = verification
463
- @self_reported_income = self_reported_income
464
- @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
465
465
  end
466
466
  end
467
467
  end
@@ -110,6 +110,8 @@ module Stripe
110
110
  attr_accessor :name
111
111
  # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
112
112
  attr_accessor :product_description
113
+ # A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
114
+ attr_accessor :specified_commercial_transactions_act_url
113
115
  # A publicly available mailing address for sending support issues to.
114
116
  attr_accessor :support_address
115
117
  # A publicly available email address for sending support issues to.
@@ -129,6 +131,7 @@ module Stripe
129
131
  monthly_estimated_revenue: nil,
130
132
  name: nil,
131
133
  product_description: nil,
134
+ specified_commercial_transactions_act_url: nil,
132
135
  support_address: nil,
133
136
  support_email: nil,
134
137
  support_phone: nil,
@@ -142,6 +145,7 @@ module Stripe
142
145
  @monthly_estimated_revenue = monthly_estimated_revenue
143
146
  @name = name
144
147
  @product_description = product_description
148
+ @specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
145
149
  @support_address = support_address
146
150
  @support_email = support_email
147
151
  @support_phone = support_phone
@@ -1886,14 +1890,14 @@ module Stripe
1886
1890
  attr_accessor :registered_address
1887
1891
  # Describes the person’s relationship to the account.
1888
1892
  attr_accessor :relationship
1889
- # The last four digits of the individual's Social Security Number (U.S. only).
1890
- attr_accessor :ssn_last_4
1891
- # The individual's verification document information.
1892
- attr_accessor :verification
1893
1893
  # The credit applicant's self-reported yearly income in minor units.
1894
1894
  attr_accessor :self_reported_income
1895
1895
  # The credit applicant's self-reported monthly housing payment in minor units.
1896
1896
  attr_accessor :self_reported_monthly_housing_payment
1897
+ # The last four digits of the individual's Social Security Number (U.S. only).
1898
+ attr_accessor :ssn_last_4
1899
+ # The individual's verification document information.
1900
+ attr_accessor :verification
1897
1901
 
1898
1902
  def initialize(
1899
1903
  address: nil,
@@ -1917,10 +1921,10 @@ module Stripe
1917
1921
  political_exposure: nil,
1918
1922
  registered_address: nil,
1919
1923
  relationship: nil,
1920
- ssn_last_4: nil,
1921
- verification: nil,
1922
1924
  self_reported_income: nil,
1923
- self_reported_monthly_housing_payment: nil
1925
+ self_reported_monthly_housing_payment: nil,
1926
+ ssn_last_4: nil,
1927
+ verification: nil
1924
1928
  )
1925
1929
  @address = address
1926
1930
  @address_kana = address_kana
@@ -1943,10 +1947,10 @@ module Stripe
1943
1947
  @political_exposure = political_exposure
1944
1948
  @registered_address = registered_address
1945
1949
  @relationship = relationship
1946
- @ssn_last_4 = ssn_last_4
1947
- @verification = verification
1948
1950
  @self_reported_income = self_reported_income
1949
1951
  @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
1952
+ @ssn_last_4 = ssn_last_4
1953
+ @verification = verification
1950
1954
  end
1951
1955
  end
1952
1956
 
@@ -2093,7 +2097,7 @@ module Stripe
2093
2097
  class Invoices < ::Stripe::RequestParams
2094
2098
  # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
2095
2099
  attr_accessor :default_account_tax_ids
2096
- # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
2100
+ # Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
2097
2101
  attr_accessor :hosted_payment_method_save
2098
2102
 
2099
2103
  def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
@@ -2166,6 +2170,15 @@ module Stripe
2166
2170
  end
2167
2171
  end
2168
2172
 
2173
+ class PaypayPayments < ::Stripe::RequestParams
2174
+ # Whether your business sells digital content or not.
2175
+ attr_accessor :goods_type
2176
+
2177
+ def initialize(goods_type: nil)
2178
+ @goods_type = goods_type
2179
+ end
2180
+ end
2181
+
2169
2182
  class TaxForms < ::Stripe::RequestParams
2170
2183
  # Whether the account opted out of receiving their tax forms by postal delivery.
2171
2184
  attr_accessor :consented_to_paperless_delivery
@@ -2215,6 +2228,8 @@ module Stripe
2215
2228
  attr_accessor :payments
2216
2229
  # Settings specific to the account's payouts.
2217
2230
  attr_accessor :payouts
2231
+ # Settings specific to the PayPay payments method.
2232
+ attr_accessor :paypay_payments
2218
2233
  # Settings specific to the account's tax forms.
2219
2234
  attr_accessor :tax_forms
2220
2235
  # Settings specific to the account's Treasury FinancialAccounts.
@@ -2230,6 +2245,7 @@ module Stripe
2230
2245
  invoices: nil,
2231
2246
  payments: nil,
2232
2247
  payouts: nil,
2248
+ paypay_payments: nil,
2233
2249
  tax_forms: nil,
2234
2250
  treasury: nil
2235
2251
  )
@@ -2242,6 +2258,7 @@ module Stripe
2242
2258
  @invoices = invoices
2243
2259
  @payments = payments
2244
2260
  @payouts = payouts
2261
+ @paypay_payments = paypay_payments
2245
2262
  @tax_forms = tax_forms
2246
2263
  @treasury = treasury
2247
2264
  end
@@ -0,0 +1,66 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class BalanceTransferCreateParams < ::Stripe::RequestParams
6
+ class DestinationBalance < ::Stripe::RequestParams
7
+ # Destination balance type to push funds into for the Balance Transfer.
8
+ attr_accessor :type
9
+
10
+ def initialize(type: nil)
11
+ @type = type
12
+ end
13
+ end
14
+
15
+ class SourceBalance < ::Stripe::RequestParams
16
+ class AllocatedFunds < ::Stripe::RequestParams
17
+ # The charge ID that the funds are originally sourced from. Required if `type` is `charge`.
18
+ attr_accessor :charge
19
+ # The type of object that the funds are originally sourced from. One of `charge`.
20
+ attr_accessor :type
21
+
22
+ def initialize(charge: nil, type: nil)
23
+ @charge = charge
24
+ @type = type
25
+ end
26
+ end
27
+ # Attribute for param field allocated_funds
28
+ attr_accessor :allocated_funds
29
+ # Source balance type to pull funds from for the Balance Transfer.
30
+ attr_accessor :type
31
+
32
+ def initialize(allocated_funds: nil, type: nil)
33
+ @allocated_funds = allocated_funds
34
+ @type = type
35
+ end
36
+ end
37
+ # A positive integer representing how much to transfer in the smallest currency unit.
38
+ attr_accessor :amount
39
+ # 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).
40
+ attr_accessor :currency
41
+ # The balance to which funds are transferred.
42
+ attr_accessor :destination_balance
43
+ # Specifies which fields in the response should be expanded.
44
+ attr_accessor :expand
45
+ # Set of [key-value pairs](https://stripe.com/docs/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`.
46
+ attr_accessor :metadata
47
+ # The balance from which funds are transferred, including details specific to the balance you choose.
48
+ attr_accessor :source_balance
49
+
50
+ def initialize(
51
+ amount: nil,
52
+ currency: nil,
53
+ destination_balance: nil,
54
+ expand: nil,
55
+ metadata: nil,
56
+ source_balance: nil
57
+ )
58
+ @amount = amount
59
+ @currency = currency
60
+ @destination_balance = destination_balance
61
+ @expand = expand
62
+ @metadata = metadata
63
+ @source_balance = source_balance
64
+ end
65
+ end
66
+ end
@@ -6,13 +6,13 @@ module Stripe
6
6
  module Analytics
7
7
  class MeterUsageRetrieveParams < ::Stripe::RequestParams
8
8
  class Meter < ::Stripe::RequestParams
9
- # Key-value pairs used to filter usage events by meter dimension values. If specified, usage will be filtered for matching usage events.
9
+ # Key-value pairs used to filter usage events by meter dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
10
10
  attr_accessor :dimension_filters
11
11
  # List of meter dimension keys to group by. If specified, usage events will be grouped by the given meter dimension key's values.
12
12
  attr_accessor :dimension_group_by_keys
13
13
  # Meter id to query usage for.
14
14
  attr_accessor :meter
15
- # Key-value pairs used to filter usage events by high cardinality tenant dimension values. If specified, usage will be filtered for matching usage events.
15
+ # Key-value pairs used to filter usage events by high cardinality tenant dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
16
16
  attr_accessor :tenant_filters
17
17
  # List of high cardinality tenant dimension keys to group by. If specified, usage events will be grouped by the given tenant dimension key's values.
18
18
  attr_accessor :tenant_group_by_keys