stripe 15.1.0.pre.beta.2 → 15.2.0.pre.beta.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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +6 -0
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_version.rb +1 -1
  7. data/lib/stripe/event_types.rb +15 -0
  8. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  9. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  10. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +1 -1
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +1 -1
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +1 -1
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +1 -1
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +1 -1
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +1 -1
  18. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +1 -1
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +1 -1
  21. data/lib/stripe/events/v2_core_account_person_created_event.rb +1 -1
  22. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +1 -1
  23. data/lib/stripe/events/v2_core_account_person_updated_event.rb +1 -1
  24. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  25. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +1 -1
  28. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +1 -1
  30. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +1 -1
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +1 -1
  32. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +1 -1
  33. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +1 -1
  35. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +1 -1
  36. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +1 -1
  37. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +1 -1
  38. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +1 -1
  39. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +1 -1
  41. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +1 -1
  42. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +1 -1
  43. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +1 -1
  44. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +1 -1
  45. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +1 -1
  46. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +1 -1
  47. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +1 -1
  48. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +1 -1
  49. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  50. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  51. data/lib/stripe/object_types.rb +0 -1
  52. data/lib/stripe/resources/account.rb +2 -2
  53. data/lib/stripe/resources/charge.rb +2 -2
  54. data/lib/stripe/resources/checkout/session.rb +7 -3
  55. data/lib/stripe/resources/confirmation_token.rb +5 -3
  56. data/lib/stripe/resources/customer.rb +2 -2
  57. data/lib/stripe/resources/invoice.rb +10 -2
  58. data/lib/stripe/resources/order.rb +3 -3
  59. data/lib/stripe/resources/payment_intent.rb +4 -4
  60. data/lib/stripe/resources/payment_method.rb +2 -0
  61. data/lib/stripe/resources/privacy/redaction_job.rb +22 -1
  62. data/lib/stripe/resources/quote.rb +6 -0
  63. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  64. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +2 -0
  65. data/lib/stripe/resources/subscription.rb +8 -2
  66. data/lib/stripe/resources/subscription_schedule.rb +6 -0
  67. data/lib/stripe/resources/tax/calculation.rb +2 -2
  68. data/lib/stripe/resources/tax/registration.rb +60 -0
  69. data/lib/stripe/resources/tax/transaction.rb +1 -1
  70. data/lib/stripe/resources/tax_id.rb +2 -2
  71. data/lib/stripe/resources/treasury/outbound_payment.rb +1 -4
  72. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  73. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  74. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  75. data/lib/stripe/resources/v2/core/account.rb +44 -13
  76. data/lib/stripe/resources/v2/core/account_link.rb +3 -1
  77. data/lib/stripe/resources/v2/core/person.rb +4 -0
  78. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +4 -2
  79. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +5 -3
  80. data/lib/stripe/resources/v2/event.rb +2 -2
  81. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  82. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +2 -0
  83. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +2 -0
  84. data/lib/stripe/resources/v2/money_management/adjustment.rb +3 -1
  85. data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -1
  86. data/lib/stripe/resources/v2/money_management/financial_address.rb +2 -0
  87. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  88. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +3 -1
  89. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +8 -0
  90. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +2 -0
  91. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +3 -1
  92. data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
  93. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +2 -0
  94. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  95. data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
  96. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  97. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  98. data/lib/stripe/resources.rb +11 -1
  99. data/lib/stripe/services/account_external_account_service.rb +1 -1
  100. data/lib/stripe/services/account_service.rb +2 -2
  101. data/lib/stripe/services/charge_service.rb +2 -2
  102. data/lib/stripe/services/checkout/session_service.rb +4 -0
  103. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  104. data/lib/stripe/services/customer_service.rb +1 -1
  105. data/lib/stripe/services/customer_tax_id_service.rb +1 -1
  106. data/lib/stripe/services/external_account_service.rb +1 -1
  107. data/lib/stripe/services/invoice_service.rb +9 -1
  108. data/lib/stripe/services/order_service.rb +2 -2
  109. data/lib/stripe/services/payment_intent_service.rb +4 -4
  110. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -20
  111. data/lib/stripe/services/quote_service.rb +4 -0
  112. data/lib/stripe/services/subscription_schedule_service.rb +4 -0
  113. data/lib/stripe/services/subscription_service.rb +5 -1
  114. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  115. data/lib/stripe/services/tax/registration_service.rb +39 -0
  116. data/lib/stripe/services/tax_id_service.rb +1 -1
  117. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
  118. data/lib/stripe/services/treasury/outbound_payment_service.rb +1 -4
  119. data/lib/stripe/services/v2/core/account_service.rb +15 -7
  120. data/lib/stripe/services/v2/core/accounts/person_service.rb +8 -0
  121. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +1 -1
  122. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +5 -5
  123. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +16 -0
  124. data/lib/stripe/version.rb +1 -1
  125. data/rbi/stripe.rbi +465 -190
  126. metadata +13 -3
  127. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +0 -35
@@ -91,6 +91,11 @@ module Stripe
91
91
  attr_reader :type
92
92
  end
93
93
 
94
+ class Bf < Stripe::StripeObject
95
+ # Type of registration in `country`.
96
+ attr_reader :type
97
+ end
98
+
94
99
  class Bg < Stripe::StripeObject
95
100
  class Standard < Stripe::StripeObject
96
101
  # Place of supply scheme used in an EU standard registration.
@@ -148,6 +153,11 @@ module Stripe
148
153
  attr_reader :type
149
154
  end
150
155
 
156
+ class Cm < Stripe::StripeObject
157
+ # Type of registration in `country`.
158
+ attr_reader :type
159
+ end
160
+
151
161
  class Co < Stripe::StripeObject
152
162
  # Type of registration in `country`.
153
163
  attr_reader :type
@@ -158,6 +168,11 @@ module Stripe
158
168
  attr_reader :type
159
169
  end
160
170
 
171
+ class Cv < Stripe::StripeObject
172
+ # Type of registration in `country`.
173
+ attr_reader :type
174
+ end
175
+
161
176
  class Cy < Stripe::StripeObject
162
177
  class Standard < Stripe::StripeObject
163
178
  # Place of supply scheme used in an EU standard registration.
@@ -713,6 +728,8 @@ module Stripe
713
728
  attr_reader :bd
714
729
  # Attribute for field be
715
730
  attr_reader :be
731
+ # Attribute for field bf
732
+ attr_reader :bf
716
733
  # Attribute for field bg
717
734
  attr_reader :bg
718
735
  # Attribute for field bh
@@ -731,10 +748,14 @@ module Stripe
731
748
  attr_reader :ch
732
749
  # Attribute for field cl
733
750
  attr_reader :cl
751
+ # Attribute for field cm
752
+ attr_reader :cm
734
753
  # Attribute for field co
735
754
  attr_reader :co
736
755
  # Attribute for field cr
737
756
  attr_reader :cr
757
+ # Attribute for field cv
758
+ attr_reader :cv
738
759
  # Attribute for field cy
739
760
  attr_reader :cy
740
761
  # Attribute for field cz
@@ -1040,6 +1061,15 @@ module Stripe
1040
1061
  end
1041
1062
  end
1042
1063
 
1064
+ class Bf < Stripe::RequestParams
1065
+ # Type of registration to be created in `country`.
1066
+ attr_accessor :type
1067
+
1068
+ def initialize(type: nil)
1069
+ @type = type
1070
+ end
1071
+ end
1072
+
1043
1073
  class Bg < Stripe::RequestParams
1044
1074
  class Standard < Stripe::RequestParams
1045
1075
  # Place of supply scheme used in an EU standard registration.
@@ -1143,6 +1173,15 @@ module Stripe
1143
1173
  end
1144
1174
  end
1145
1175
 
1176
+ class Cm < Stripe::RequestParams
1177
+ # Type of registration to be created in `country`.
1178
+ attr_accessor :type
1179
+
1180
+ def initialize(type: nil)
1181
+ @type = type
1182
+ end
1183
+ end
1184
+
1146
1185
  class Co < Stripe::RequestParams
1147
1186
  # Type of registration to be created in `country`.
1148
1187
  attr_accessor :type
@@ -1161,6 +1200,15 @@ module Stripe
1161
1200
  end
1162
1201
  end
1163
1202
 
1203
+ class Cv < Stripe::RequestParams
1204
+ # Type of registration to be created in `country`.
1205
+ attr_accessor :type
1206
+
1207
+ def initialize(type: nil)
1208
+ @type = type
1209
+ end
1210
+ end
1211
+
1164
1212
  class Cy < Stripe::RequestParams
1165
1213
  class Standard < Stripe::RequestParams
1166
1214
  # Place of supply scheme used in an EU standard registration.
@@ -2151,6 +2199,8 @@ module Stripe
2151
2199
  attr_accessor :bd
2152
2200
  # Options for the registration in BE.
2153
2201
  attr_accessor :be
2202
+ # Options for the registration in BF.
2203
+ attr_accessor :bf
2154
2204
  # Options for the registration in BG.
2155
2205
  attr_accessor :bg
2156
2206
  # Options for the registration in BH.
@@ -2169,10 +2219,14 @@ module Stripe
2169
2219
  attr_accessor :ch
2170
2220
  # Options for the registration in CL.
2171
2221
  attr_accessor :cl
2222
+ # Options for the registration in CM.
2223
+ attr_accessor :cm
2172
2224
  # Options for the registration in CO.
2173
2225
  attr_accessor :co
2174
2226
  # Options for the registration in CR.
2175
2227
  attr_accessor :cr
2228
+ # Options for the registration in CV.
2229
+ attr_accessor :cv
2176
2230
  # Options for the registration in CY.
2177
2231
  attr_accessor :cy
2178
2232
  # Options for the registration in CZ.
@@ -2331,6 +2385,7 @@ module Stripe
2331
2385
  bb: nil,
2332
2386
  bd: nil,
2333
2387
  be: nil,
2388
+ bf: nil,
2334
2389
  bg: nil,
2335
2390
  bh: nil,
2336
2391
  bj: nil,
@@ -2340,8 +2395,10 @@ module Stripe
2340
2395
  cd: nil,
2341
2396
  ch: nil,
2342
2397
  cl: nil,
2398
+ cm: nil,
2343
2399
  co: nil,
2344
2400
  cr: nil,
2401
+ cv: nil,
2345
2402
  cy: nil,
2346
2403
  cz: nil,
2347
2404
  de: nil,
@@ -2427,6 +2484,7 @@ module Stripe
2427
2484
  @bb = bb
2428
2485
  @bd = bd
2429
2486
  @be = be
2487
+ @bf = bf
2430
2488
  @bg = bg
2431
2489
  @bh = bh
2432
2490
  @bj = bj
@@ -2436,8 +2494,10 @@ module Stripe
2436
2494
  @cd = cd
2437
2495
  @ch = ch
2438
2496
  @cl = cl
2497
+ @cm = cm
2439
2498
  @co = co
2440
2499
  @cr = cr
2500
+ @cv = cv
2441
2501
  @cy = cy
2442
2502
  @cz = cz
2443
2503
  @de = de
@@ -29,7 +29,7 @@ module Stripe
29
29
  end
30
30
 
31
31
  class TaxId < Stripe::StripeObject
32
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
32
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
33
33
  attr_reader :type
34
34
  # The value of the tax ID.
35
35
  attr_reader :value
@@ -101,7 +101,7 @@ module Stripe
101
101
  attr_accessor :expand
102
102
  # The account or customer the tax ID belongs to. Defaults to `owner[type]=self`.
103
103
  attr_accessor :owner
104
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
104
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
105
105
  attr_accessor :type
106
106
  # Value of the tax ID.
107
107
  attr_accessor :value
@@ -129,7 +129,7 @@ module Stripe
129
129
  attr_reader :object
130
130
  # The account or customer the tax ID belongs to.
131
131
  attr_reader :owner
132
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown`
132
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown`
133
133
  attr_reader :type
134
134
  # Value of the tax ID.
135
135
  attr_reader :value
@@ -220,15 +220,12 @@ module Stripe
220
220
  attr_accessor :name
221
221
  # Billing phone number (including extension).
222
222
  attr_accessor :phone
223
- # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
224
- attr_accessor :tax_id
225
223
 
226
- def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
224
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
227
225
  @address = address
228
226
  @email = email
229
227
  @name = name
230
228
  @phone = phone
231
- @tax_id = tax_id
232
229
  end
233
230
  end
234
231
 
@@ -17,8 +17,6 @@ module Stripe
17
17
  attr_reader :event_name
18
18
  # A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period.
19
19
  attr_reader :identifier
20
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
21
- attr_reader :livemode
22
20
  # String representing the object's type. Objects of the same type share the same value of the object field.
23
21
  attr_reader :object
24
22
  # The payload of the event. This must contain the fields corresponding to a meter’s
@@ -28,6 +26,8 @@ module Stripe
28
26
  # The time of the event. Must be within the past 35 calendar days or up to
29
27
  # 5 minutes in the future. Defaults to current timestamp if not specified.
30
28
  attr_reader :timestamp
29
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
30
+ attr_reader :livemode
31
31
  end
32
32
  end
33
33
  end
@@ -22,14 +22,14 @@ module Stripe
22
22
  attr_reader :event_name
23
23
  # The unique id of this meter event adjustment.
24
24
  attr_reader :id
25
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
26
- attr_reader :livemode
27
25
  # String representing the object's type. Objects of the same type share the same value of the object field.
28
26
  attr_reader :object
29
27
  # Open Enum. The meter event adjustment’s status.
30
28
  attr_reader :status
31
29
  # Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
32
30
  attr_reader :type
31
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
32
+ attr_reader :livemode
33
33
  end
34
34
  end
35
35
  end
@@ -19,10 +19,10 @@ module Stripe
19
19
  attr_reader :expires_at
20
20
  # The unique id of this auth session.
21
21
  attr_reader :id
22
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
23
- attr_reader :livemode
24
22
  # String representing the object's type. Objects of the same type share the same value of the object field.
25
23
  attr_reader :object
24
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
25
+ attr_reader :livemode
26
26
  end
27
27
  end
28
28
  end
@@ -735,6 +735,25 @@ module Stripe
735
735
  attr_reader :status_details
736
736
  end
737
737
 
738
+ class StripeBalance < Stripe::StripeObject
739
+ class Payouts < Stripe::StripeObject
740
+ class StatusDetail < Stripe::StripeObject
741
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
742
+ attr_reader :code
743
+ # Machine-readable code explaining how to make the Capability active.
744
+ attr_reader :resolution
745
+ end
746
+ # Whether the Capability has been requested.
747
+ attr_reader :requested
748
+ # The status of the Capability.
749
+ attr_reader :status
750
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
751
+ attr_reader :status_details
752
+ end
753
+ # Allows the account to do payouts using their Stripe Balance (/v1/balance).
754
+ attr_reader :payouts
755
+ end
756
+
738
757
  class SwishPayments < Stripe::StripeObject
739
758
  class StatusDetail < Stripe::StripeObject
740
759
  # Machine-readable code explaining the reason for the Capability to be in its current status.
@@ -874,6 +893,8 @@ module Stripe
874
893
  attr_reader :sepa_bank_transfer_payments
875
894
  # Allow the merchant to process SEPA Direct Debit payments.
876
895
  attr_reader :sepa_debit_payments
896
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
897
+ attr_reader :stripe_balance
877
898
  # Allow the merchant to process Swish payments.
878
899
  attr_reader :swish_payments
879
900
  # Allow the merchant to process TWINT payments.
@@ -1005,6 +1026,21 @@ module Stripe
1005
1026
  end
1006
1027
 
1007
1028
  class StripeBalance < Stripe::StripeObject
1029
+ class Payouts < Stripe::StripeObject
1030
+ class StatusDetail < Stripe::StripeObject
1031
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1032
+ attr_reader :code
1033
+ # Machine-readable code explaining how to make the Capability active.
1034
+ attr_reader :resolution
1035
+ end
1036
+ # Whether the Capability has been requested.
1037
+ attr_reader :requested
1038
+ # The status of the Capability.
1039
+ attr_reader :status
1040
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1041
+ attr_reader :status_details
1042
+ end
1043
+
1008
1044
  class StripeTransfers < Stripe::StripeObject
1009
1045
  class StatusDetail < Stripe::StripeObject
1010
1046
  # Machine-readable code explaining the reason for the Capability to be in its current status.
@@ -1019,14 +1055,16 @@ module Stripe
1019
1055
  # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1020
1056
  attr_reader :status_details
1021
1057
  end
1022
- # Allows the recipient to receive /v1/transfers into their Stripe Balance (/v1/balance).
1058
+ # Allows the account to do payouts using their Stripe Balance (/v1/balance).
1059
+ attr_reader :payouts
1060
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1023
1061
  attr_reader :stripe_transfers
1024
1062
  end
1025
1063
  # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1026
1064
  attr_reader :bank_accounts
1027
1065
  # Capability that enable OutboundPayments to a debit card linked to this Account.
1028
1066
  attr_reader :cards
1029
- # Capabilities that enable the recipient to receive money into their Stripe Balance (/v1/balance).
1067
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1030
1068
  attr_reader :stripe_balance
1031
1069
  end
1032
1070
 
@@ -1463,6 +1501,8 @@ module Stripe
1463
1501
  end
1464
1502
 
1465
1503
  class Relationship < Stripe::StripeObject
1504
+ # Whether the individual is an authorizer of the Account’s legal entity.
1505
+ attr_reader :authorizer
1466
1506
  # Whether the individual is a director of the Account’s legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
1467
1507
  attr_reader :director
1468
1508
  # Whether the individual has significant responsibility to control, manage, or direct the organization.
@@ -1619,19 +1659,8 @@ module Stripe
1619
1659
  # Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction.
1620
1660
  attr_reader :deadline
1621
1661
  end
1622
-
1623
- class RestrictsPayouts < Stripe::StripeObject
1624
- class Deadline < Stripe::StripeObject
1625
- # The current status of the requirement's impact.
1626
- attr_reader :status
1627
- end
1628
- # Details about when in the Account's lifecycle the requirement must be collected by the avoid the earliest specified impact.
1629
- attr_reader :deadline
1630
- end
1631
1662
  # The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe.
1632
1663
  attr_reader :restricts_capabilities
1633
- # Details about payouts restrictions that will be enforced if the requirement is not collected and satisfactory to Stripe.
1634
- attr_reader :restricts_payouts
1635
1664
  end
1636
1665
 
1637
1666
  class MinimumDeadline < Stripe::StripeObject
@@ -1709,6 +1738,8 @@ module Stripe
1709
1738
  attr_reader :object
1710
1739
  # Information about the requirements for the Account, including what information needs to be collected, and by when.
1711
1740
  attr_reader :requirements
1741
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1742
+ attr_reader :livemode
1712
1743
  end
1713
1744
  end
1714
1745
  end
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module Core
7
- # AccountLinks are the means by which a Merchant grants an Account permission to access Stripe-hosted application, such as Recipient Onboarding.
7
+ # AccountLinks are the means by which a Merchant grants an Account permission to access Stripe-hosted applications, such as Recipient Onboarding. This API is only available for users enrolled in the public preview for Global Payouts.
8
8
  class AccountLink < APIResource
9
9
  OBJECT_NAME = "v2.core.account_link"
10
10
  def self.object_name
@@ -48,6 +48,8 @@ module Stripe
48
48
  attr_reader :url
49
49
  # The use case of AccountLink the user is requesting.
50
50
  attr_reader :use_case
51
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
52
+ attr_reader :livemode
51
53
  end
52
54
  end
53
55
  end
@@ -145,6 +145,8 @@ module Stripe
145
145
  end
146
146
 
147
147
  class Relationship < Stripe::StripeObject
148
+ # Whether the individual is an authorizer of the Account’s legal entity.
149
+ attr_reader :authorizer
148
150
  # Whether the individual is a director of the Account’s legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
149
151
  attr_reader :director
150
152
  # Whether the individual has significant responsibility to control, manage, or direct the organization.
@@ -266,6 +268,8 @@ module Stripe
266
268
  attr_reader :surname
267
269
  # Time at which the object was last updated. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
268
270
  attr_reader :updated
271
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
272
+ attr_reader :livemode
269
273
  end
270
274
  end
271
275
  end
@@ -5,7 +5,7 @@ module Stripe
5
5
  module V2
6
6
  module Core
7
7
  module Vault
8
- # Use the GbBankAccounts API to create and manage GB bank account objects
8
+ # Use the GBBankAccounts API to create and manage GB bank account objects
9
9
  class GbBankAccount < APIResource
10
10
  OBJECT_NAME = "v2.core.vault.gb_bank_account"
11
11
  def self.object_name
@@ -57,7 +57,7 @@ module Stripe
57
57
  attr_reader :confirmation_of_payee
58
58
  # Creation time.
59
59
  attr_reader :created
60
- # The ID of the GbBankAccount object.
60
+ # The ID of the GBBankAccount object.
61
61
  attr_reader :id
62
62
  # The last 4 digits of the account number or IBAN.
63
63
  attr_reader :last4
@@ -65,6 +65,8 @@ module Stripe
65
65
  attr_reader :object
66
66
  # The Sort Code of the bank account.
67
67
  attr_reader :sort_code
68
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
69
+ attr_reader :livemode
68
70
  end
69
71
  end
70
72
  end
@@ -5,14 +5,14 @@ module Stripe
5
5
  module V2
6
6
  module Core
7
7
  module Vault
8
- # Use the UsBankAccounts API to create and manage US bank accounts objects that you can use to receive funds. Note that these are not interchangeable with v1 Tokens.
8
+ # Use the USBankAccounts API to create and manage US bank accounts objects that you can use to receive funds. Note that these are not interchangeable with v1 Tokens.
9
9
  class UsBankAccount < APIResource
10
10
  OBJECT_NAME = "v2.core.vault.us_bank_account"
11
11
  def self.object_name
12
12
  "v2.core.vault.us_bank_account"
13
13
  end
14
14
 
15
- # Whether this UsBankAccount object was archived.
15
+ # Whether this USBankAccount object was archived.
16
16
  attr_reader :archived
17
17
  # Closed Enum. The type of bank account (checking or savings).
18
18
  attr_reader :bank_account_type
@@ -22,7 +22,7 @@ module Stripe
22
22
  attr_reader :created
23
23
  # The fedwire routing number of the bank account.
24
24
  attr_reader :fedwire_routing_number
25
- # The ID of the UsBankAccount object.
25
+ # The ID of the USBankAccount object.
26
26
  attr_reader :id
27
27
  # The last 4 digits of the account number.
28
28
  attr_reader :last4
@@ -30,6 +30,8 @@ module Stripe
30
30
  attr_reader :object
31
31
  # The ACH routing number of the bank account.
32
32
  attr_reader :routing_number
33
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
34
+ attr_reader :livemode
33
35
  end
34
36
  end
35
37
  end
@@ -28,14 +28,14 @@ module Stripe
28
28
  attr_reader :created
29
29
  # Unique identifier for the event.
30
30
  attr_reader :id
31
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
32
- attr_reader :livemode
33
31
  # String representing the object's type. Objects of the same type share the same value of the object field.
34
32
  attr_reader :object
35
33
  # Reason for the event.
36
34
  attr_reader :reason
37
35
  # The type of the event.
38
36
  attr_reader :type
37
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
38
+ attr_reader :livemode
39
39
  end
40
40
  end
41
41
  end
@@ -46,8 +46,6 @@ module Stripe
46
46
  attr_reader :events_from
47
47
  # Unique identifier for the object.
48
48
  attr_reader :id
49
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
50
- attr_reader :livemode
51
49
  # Metadata.
52
50
  attr_reader :metadata
53
51
  # Event destination name.
@@ -64,6 +62,8 @@ module Stripe
64
62
  attr_reader :type
65
63
  # Time at which the object was last updated.
66
64
  attr_reader :updated
65
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
66
+ attr_reader :livemode
67
67
  # Amazon EventBridge configuration.
68
68
  attr_reader :amazon_eventbridge
69
69
  # Webhook endpoint configuration.
@@ -13,6 +13,8 @@ module Stripe
13
13
  attr_reader :object
14
14
  # The status of the request, signifying whether a simulated credit was initiated.
15
15
  attr_reader :status
16
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
17
+ attr_reader :livemode
16
18
  end
17
19
  end
18
20
  end
@@ -15,6 +15,8 @@ module Stripe
15
15
  attr_reader :object
16
16
  # Closed Enum. The status of the request.
17
17
  attr_reader :status
18
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
19
+ attr_reader :livemode
18
20
  end
19
21
  end
20
22
  end
@@ -41,8 +41,10 @@ module Stripe
41
41
  attr_reader :id
42
42
  # String representing the object's type. Objects of the same type share the same value of the object field.
43
43
  attr_reader :object
44
- # A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe’s money transmission licenses.
44
+ # A link to the Stripe-hosted receipt that is provided when money movement is considered regulated under Stripe’s money transmission licenses. The receipt link remains active for 60 days from the Adjustment creation date. After this period, the link will expire and the receipt url value will be null.
45
45
  attr_reader :receipt_url
46
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
47
+ attr_reader :livemode
46
48
  end
47
49
  end
48
50
  end
@@ -43,13 +43,15 @@ module Stripe
43
43
  attr_reader :object
44
44
  # If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`.
45
45
  attr_reader :other
46
- # An enum value that specifies which state the FinancialAccount is in.
46
+ # Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.
47
47
  attr_reader :status
48
48
  # If this is a `storage` FinancialAccount, this hash includes details specific to `storage` FinancialAccounts.
49
49
  attr_reader :storage
50
50
  # Type of the FinancialAccount. An additional hash is included on the FinancialAccount with a name matching this value.
51
51
  # It contains additional information specific to the FinancialAccount type.
52
52
  attr_reader :type
53
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
54
+ attr_reader :livemode
53
55
  end
54
56
  end
55
57
  end
@@ -60,6 +60,8 @@ module Stripe
60
60
  attr_reader :object
61
61
  # Closed Enum. An enum representing the status of the FinancialAddress. This indicates whether or not the FinancialAddress can be used for any money movement flows.
62
62
  attr_reader :status
63
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
64
+ attr_reader :livemode
63
65
  end
64
66
  end
65
67
  end
@@ -86,6 +86,8 @@ module Stripe
86
86
  attr_reader :to
87
87
  # A list of history objects, representing changes in the state of the InboundTransfer.
88
88
  attr_reader :transfer_history
89
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
90
+ attr_reader :livemode
89
91
  end
90
92
  end
91
93
  end
@@ -102,7 +102,7 @@ module Stripe
102
102
  attr_reader :object
103
103
  # The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
104
104
  attr_reader :outbound_payment_quote
105
- # A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
105
+ # A link to the Stripe-hosted receipt for this OutboundPayment. The receipt link remains active for 60 days from the OutboundPayment creation date. After this period, the link will expire and the receipt url value will be null.
106
106
  attr_reader :receipt_url
107
107
  # Details about the OutboundPayment notification settings for recipient.
108
108
  attr_reader :recipient_notification
@@ -121,6 +121,8 @@ module Stripe
121
121
  attr_reader :to
122
122
  # A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
123
123
  attr_reader :trace_id
124
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
125
+ attr_reader :livemode
124
126
  end
125
127
  end
126
128
  end
@@ -35,6 +35,12 @@ module Stripe
35
35
  # The exchange rate going from_currency -> to_currency.
36
36
  attr_reader :exchange_rate
37
37
  end
38
+ # The duration the exchange rate lock remains valid from creation time. Allowed value is five_minutes.
39
+ attr_reader :lock_duration
40
+ # Time at which the rate lock will expire, measured in seconds since the Unix epoch.
41
+ attr_reader :lock_expires_at
42
+ # Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp. Value can be active or expired.
43
+ attr_reader :lock_status
38
44
  # Key pair: from currency Value: exchange rate going from_currency -> to_currency.
39
45
  attr_reader :rates
40
46
  # The currency that the transaction is exchanging to.
@@ -68,6 +74,8 @@ module Stripe
68
74
  attr_reader :object
69
75
  # Details about the recipient of an OutboundPaymentQuote.
70
76
  attr_reader :to
77
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
78
+ attr_reader :livemode
71
79
  end
72
80
  end
73
81
  end
@@ -37,6 +37,8 @@ module Stripe
37
37
  attr_reader :status
38
38
  # The intended money movement flow this payout method should be set up for, specified in params.
39
39
  attr_reader :usage_intent
40
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
41
+ attr_reader :livemode
40
42
  end
41
43
  end
42
44
  end