stripe 18.1.0.pre.alpha.1 → 18.1.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 (279) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +8 -565
  3. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +2 -0
  4. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +2 -0
  5. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +2 -0
  6. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +2 -0
  7. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
  8. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +15 -1
  9. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +30 -1
  10. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +30 -1
  11. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +30 -1
  12. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +30 -1
  13. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +2 -0
  14. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +2 -0
  15. data/lib/stripe/events/{v1_sigma_scheduled_query_run_created_event.rb → v2_payments_off_session_payment_attempt_failed_event.rb} +7 -7
  16. data/lib/stripe/events/{v1_radar_early_fraud_warning_created_event.rb → v2_payments_off_session_payment_attempt_started_event.rb} +9 -7
  17. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -0
  18. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -0
  19. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
  20. data/lib/stripe/object_types.rb +3 -0
  21. data/lib/stripe/params/invoice_create_preview_params.rb +42 -6
  22. data/lib/stripe/params/quote_create_params.rb +15 -3
  23. data/lib/stripe/params/quote_update_params.rb +15 -3
  24. data/lib/stripe/params/subscription_create_params.rb +17 -1
  25. data/lib/stripe/params/subscription_item_create_params.rb +17 -1
  26. data/lib/stripe/params/subscription_item_update_params.rb +17 -1
  27. data/lib/stripe/params/subscription_schedule_amend_params.rb +15 -3
  28. data/lib/stripe/params/subscription_schedule_create_params.rb +10 -2
  29. data/lib/stripe/params/subscription_schedule_update_params.rb +10 -2
  30. data/lib/stripe/params/subscription_update_params.rb +17 -1
  31. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
  32. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
  33. data/lib/stripe/params/v2/billing/service_action_create_params.rb +24 -0
  34. data/lib/stripe/params/v2/core/account_create_params.rb +118 -3
  35. data/lib/stripe/params/v2/core/account_token_create_params.rb +1259 -0
  36. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  37. data/lib/stripe/params/v2/core/account_update_params.rb +119 -4
  38. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
  39. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  40. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  41. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
  42. data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
  43. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  44. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  45. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  46. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
  47. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +12 -0
  48. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +12 -0
  49. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +12 -0
  50. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +5 -9
  51. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +13 -89
  52. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
  53. data/lib/stripe/params.rb +7 -0
  54. data/lib/stripe/resources/delegated_checkout/requested_session.rb +15 -1
  55. data/lib/stripe/resources/payment_method.rb +2 -2
  56. data/lib/stripe/resources/quote.rb +8 -118
  57. data/lib/stripe/resources/quote_line.rb +6 -0
  58. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +7 -87
  59. data/lib/stripe/resources/subscription.rb +3 -87
  60. data/lib/stripe/resources/subscription_item.rb +24 -1
  61. data/lib/stripe/resources/subscription_schedule.rb +7 -87
  62. data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
  63. data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
  64. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
  65. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
  66. data/lib/stripe/resources/v2/billing/service_action.rb +32 -2
  67. data/lib/stripe/resources/v2/core/account.rb +341 -10
  68. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  69. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  70. data/lib/stripe/resources/v2/core/event.rb +0 -2
  71. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
  72. data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
  73. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  74. data/lib/stripe/resources/v2/money_management/financial_account.rb +49 -1
  75. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
  76. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +46 -2
  77. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +61 -3
  78. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +46 -2
  79. data/lib/stripe/resources/v2/money_management/received_credit.rb +32 -0
  80. data/lib/stripe/resources/v2/money_management/received_debit.rb +32 -0
  81. data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
  82. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
  83. data/lib/stripe/resources/v2/payments/off_session_payment.rb +23 -79
  84. data/lib/stripe/resources.rb +5 -186
  85. data/lib/stripe/services/payment_method_service.rb +1 -1
  86. data/lib/stripe/services/v2/core/account_service.rb +2 -1
  87. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  88. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  89. data/lib/stripe/services/v2/core_service.rb +2 -1
  90. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  91. data/lib/stripe/services/v2/money_management_service.rb +3 -1
  92. data/lib/stripe/services.rb +3 -0
  93. data/lib/stripe/version.rb +1 -1
  94. data/rbi/stripe.rbi +5579 -1470
  95. metadata +17 -188
  96. data/lib/stripe/events/v1_account_updated_event.rb +0 -44
  97. data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
  98. data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
  99. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
  100. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
  101. data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
  102. data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
  103. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
  104. data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
  105. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
  106. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
  107. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
  108. data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
  109. data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
  110. data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
  111. data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
  112. data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
  113. data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
  114. data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
  115. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
  116. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
  117. data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
  118. data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
  119. data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
  120. data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
  121. data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
  122. data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
  123. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
  124. data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
  125. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
  126. data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
  127. data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
  128. data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
  129. data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
  130. data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
  131. data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
  132. data/lib/stripe/events/v1_customer_created_event.rb +0 -44
  133. data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
  134. data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
  135. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
  136. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
  137. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
  138. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
  139. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
  140. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
  141. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
  142. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
  143. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
  144. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
  145. data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
  146. data/lib/stripe/events/v1_file_created_event.rb +0 -44
  147. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
  148. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
  149. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
  150. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
  151. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
  152. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
  153. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
  154. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
  155. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
  156. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
  157. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
  158. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
  159. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
  160. data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
  161. data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
  162. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
  163. data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
  164. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
  165. data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
  166. data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
  167. data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
  168. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
  169. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
  170. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
  171. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
  172. data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
  173. data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
  174. data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
  175. data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
  176. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
  177. data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
  178. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
  179. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
  180. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
  181. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
  182. data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
  183. data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
  184. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
  185. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
  186. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
  187. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
  188. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
  189. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
  190. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
  191. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
  192. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
  193. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
  194. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
  195. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
  196. data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
  197. data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
  198. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
  199. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
  200. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
  201. data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
  202. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
  203. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
  204. data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
  205. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
  206. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
  207. data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
  208. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
  209. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
  210. data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
  211. data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
  212. data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
  213. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
  214. data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
  215. data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
  216. data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
  217. data/lib/stripe/events/v1_payout_created_event.rb +0 -44
  218. data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
  219. data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
  220. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
  221. data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
  222. data/lib/stripe/events/v1_person_created_event.rb +0 -44
  223. data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
  224. data/lib/stripe/events/v1_person_updated_event.rb +0 -44
  225. data/lib/stripe/events/v1_plan_created_event.rb +0 -44
  226. data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
  227. data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
  228. data/lib/stripe/events/v1_price_created_event.rb +0 -44
  229. data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
  230. data/lib/stripe/events/v1_price_updated_event.rb +0 -44
  231. data/lib/stripe/events/v1_product_created_event.rb +0 -44
  232. data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
  233. data/lib/stripe/events/v1_product_updated_event.rb +0 -44
  234. data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
  235. data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
  236. data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
  237. data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
  238. data/lib/stripe/events/v1_quote_created_event.rb +0 -44
  239. data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
  240. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
  241. data/lib/stripe/events/v1_refund_created_event.rb +0 -44
  242. data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
  243. data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
  244. data/lib/stripe/events/v1_review_closed_event.rb +0 -44
  245. data/lib/stripe/events/v1_review_opened_event.rb +0 -44
  246. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
  247. data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
  248. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
  249. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
  250. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
  251. data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
  252. data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
  253. data/lib/stripe/events/v1_source_failed_event.rb +0 -44
  254. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
  255. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
  256. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
  257. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
  258. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
  259. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
  260. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
  261. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
  262. data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
  263. data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
  264. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
  265. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
  266. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
  267. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
  268. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
  269. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
  270. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
  271. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
  272. data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
  273. data/lib/stripe/events/v1_topup_created_event.rb +0 -44
  274. data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
  275. data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
  276. data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
  277. data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
  278. data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
  279. data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
@@ -352,9 +352,9 @@ module Stripe
352
352
  attr_reader :exempt
353
353
  # A recent IP address of the customer used for tax reporting and tax location inference.
354
354
  attr_reader :ip_address
355
- # The customer’s identified tax location - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`.
355
+ # The [identified](https://docs.stripe.com/tax/customer-locations#address-hierarchy-other) tax location of the customer. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`.
356
356
  attr_reader :location
357
- # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
357
+ # The data source used to identify the customer's tax location. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
358
358
  attr_reader :location_source
359
359
 
360
360
  def self.inner_class_types
@@ -461,7 +461,7 @@ module Stripe
461
461
  @field_remappings = {}
462
462
  end
463
463
  end
464
- # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field.
464
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions.
465
465
  attr_reader :automatic_indirect_tax
466
466
 
467
467
  def self.inner_class_types
@@ -2153,6 +2153,93 @@ module Stripe
2153
2153
  end
2154
2154
  end
2155
2155
 
2156
+ class KonbiniPayments < ::Stripe::StripeObject
2157
+ class Support < ::Stripe::StripeObject
2158
+ class Hours < ::Stripe::StripeObject
2159
+ # Support hours end time (JST time of day) for in `HH:MM` format.
2160
+ attr_reader :end_time
2161
+ # Support hours start time (JST time of day) for in `HH:MM` format.
2162
+ attr_reader :start_time
2163
+
2164
+ def self.inner_class_types
2165
+ @inner_class_types = {}
2166
+ end
2167
+
2168
+ def self.field_remappings
2169
+ @field_remappings = {}
2170
+ end
2171
+ end
2172
+ # Support email address for Konbini payments.
2173
+ attr_reader :email
2174
+ # Support hours for Konbini payments.
2175
+ attr_reader :hours
2176
+ # Support phone number for Konbini payments.
2177
+ attr_reader :phone
2178
+
2179
+ def self.inner_class_types
2180
+ @inner_class_types = { hours: Hours }
2181
+ end
2182
+
2183
+ def self.field_remappings
2184
+ @field_remappings = {}
2185
+ end
2186
+ end
2187
+ # Support for Konbini payments.
2188
+ attr_reader :support
2189
+
2190
+ def self.inner_class_types
2191
+ @inner_class_types = { support: Support }
2192
+ end
2193
+
2194
+ def self.field_remappings
2195
+ @field_remappings = {}
2196
+ end
2197
+ end
2198
+
2199
+ class ScriptStatementDescriptor < ::Stripe::StripeObject
2200
+ class Kana < ::Stripe::StripeObject
2201
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
2202
+ attr_reader :descriptor
2203
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
2204
+ attr_reader :prefix
2205
+
2206
+ def self.inner_class_types
2207
+ @inner_class_types = {}
2208
+ end
2209
+
2210
+ def self.field_remappings
2211
+ @field_remappings = {}
2212
+ end
2213
+ end
2214
+
2215
+ class Kanji < ::Stripe::StripeObject
2216
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
2217
+ attr_reader :descriptor
2218
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
2219
+ attr_reader :prefix
2220
+
2221
+ def self.inner_class_types
2222
+ @inner_class_types = {}
2223
+ end
2224
+
2225
+ def self.field_remappings
2226
+ @field_remappings = {}
2227
+ end
2228
+ end
2229
+ # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
2230
+ attr_reader :kana
2231
+ # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
2232
+ attr_reader :kanji
2233
+
2234
+ def self.inner_class_types
2235
+ @inner_class_types = { kana: Kana, kanji: Kanji }
2236
+ end
2237
+
2238
+ def self.field_remappings
2239
+ @field_remappings = {}
2240
+ end
2241
+ end
2242
+
2156
2243
  class SepaDebitPayments < ::Stripe::StripeObject
2157
2244
  # Creditor ID for SEPA debit payments.
2158
2245
  attr_reader :creditor_id
@@ -2233,8 +2320,12 @@ module Stripe
2233
2320
  attr_reader :capabilities
2234
2321
  # Card payments settings.
2235
2322
  attr_reader :card_payments
2323
+ # Settings specific to Konbini payments on the account.
2324
+ attr_reader :konbini_payments
2236
2325
  # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
2237
2326
  attr_reader :mcc
2327
+ # Settings for the default text that appears on statements for language variations.
2328
+ attr_reader :script_statement_descriptor
2238
2329
  # Settings used for SEPA debit payments.
2239
2330
  attr_reader :sepa_debit_payments
2240
2331
  # Statement descriptor.
@@ -2248,6 +2339,8 @@ module Stripe
2248
2339
  branding: Branding,
2249
2340
  capabilities: Capabilities,
2250
2341
  card_payments: CardPayments,
2342
+ konbini_payments: KonbiniPayments,
2343
+ script_statement_descriptor: ScriptStatementDescriptor,
2251
2344
  sepa_debit_payments: SepaDebitPayments,
2252
2345
  statement_descriptor: StatementDescriptor,
2253
2346
  support: Support,
@@ -2609,6 +2702,37 @@ module Stripe
2609
2702
  end
2610
2703
 
2611
2704
  class HoldsCurrencies < ::Stripe::StripeObject
2705
+ class Eur < ::Stripe::StripeObject
2706
+ class StatusDetail < ::Stripe::StripeObject
2707
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
2708
+ attr_reader :code
2709
+ # Machine-readable code explaining how to make the Capability active.
2710
+ attr_reader :resolution
2711
+
2712
+ def self.inner_class_types
2713
+ @inner_class_types = {}
2714
+ end
2715
+
2716
+ def self.field_remappings
2717
+ @field_remappings = {}
2718
+ end
2719
+ end
2720
+ # Whether the Capability has been requested.
2721
+ attr_reader :requested
2722
+ # The status of the Capability.
2723
+ attr_reader :status
2724
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
2725
+ attr_reader :status_details
2726
+
2727
+ def self.inner_class_types
2728
+ @inner_class_types = { status_details: StatusDetail }
2729
+ end
2730
+
2731
+ def self.field_remappings
2732
+ @field_remappings = {}
2733
+ end
2734
+ end
2735
+
2612
2736
  class Gbp < ::Stripe::StripeObject
2613
2737
  class StatusDetail < ::Stripe::StripeObject
2614
2738
  # Machine-readable code explaining the reason for the Capability to be in its current status.
@@ -2701,6 +2825,8 @@ module Stripe
2701
2825
  @field_remappings = {}
2702
2826
  end
2703
2827
  end
2828
+ # Can hold storage-type funds on Stripe in EUR.
2829
+ attr_reader :eur
2704
2830
  # Can hold storage-type funds on Stripe in GBP.
2705
2831
  attr_reader :gbp
2706
2832
  # Can hold storage-type funds on Stripe in USD.
@@ -2709,7 +2835,7 @@ module Stripe
2709
2835
  attr_reader :usdc
2710
2836
 
2711
2837
  def self.inner_class_types
2712
- @inner_class_types = { gbp: Gbp, usd: Usd, usdc: Usdc }
2838
+ @inner_class_types = { eur: Eur, gbp: Gbp, usd: Usd, usdc: Usdc }
2713
2839
  end
2714
2840
 
2715
2841
  def self.field_remappings
@@ -3148,6 +3274,8 @@ module Stripe
3148
3274
  attr_reader :fees_collector
3149
3275
  # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
3150
3276
  attr_reader :losses_collector
3277
+ # A value indicating responsibility for collecting requirements on this account.
3278
+ attr_reader :requirements_collector
3151
3279
 
3152
3280
  def self.inner_class_types
3153
3281
  @inner_class_types = {}
@@ -3175,6 +3303,179 @@ module Stripe
3175
3303
  end
3176
3304
  end
3177
3305
 
3306
+ class FutureRequirements < ::Stripe::StripeObject
3307
+ class Entry < ::Stripe::StripeObject
3308
+ class Error < ::Stripe::StripeObject
3309
+ # Machine-readable code describing the error.
3310
+ attr_reader :code
3311
+ # Human-readable description of the error.
3312
+ attr_reader :description
3313
+
3314
+ def self.inner_class_types
3315
+ @inner_class_types = {}
3316
+ end
3317
+
3318
+ def self.field_remappings
3319
+ @field_remappings = {}
3320
+ end
3321
+ end
3322
+
3323
+ class Impact < ::Stripe::StripeObject
3324
+ class RestrictsCapability < ::Stripe::StripeObject
3325
+ class Deadline < ::Stripe::StripeObject
3326
+ # The current status of the requirement's impact.
3327
+ attr_reader :status
3328
+
3329
+ def self.inner_class_types
3330
+ @inner_class_types = {}
3331
+ end
3332
+
3333
+ def self.field_remappings
3334
+ @field_remappings = {}
3335
+ end
3336
+ end
3337
+ # The name of the Capability which will be restricted.
3338
+ attr_reader :capability
3339
+ # The configuration which specifies the Capability which will be restricted.
3340
+ attr_reader :configuration
3341
+ # Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction.
3342
+ attr_reader :deadline
3343
+
3344
+ def self.inner_class_types
3345
+ @inner_class_types = { deadline: Deadline }
3346
+ end
3347
+
3348
+ def self.field_remappings
3349
+ @field_remappings = {}
3350
+ end
3351
+ end
3352
+ # The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe.
3353
+ attr_reader :restricts_capabilities
3354
+
3355
+ def self.inner_class_types
3356
+ @inner_class_types = { restricts_capabilities: RestrictsCapability }
3357
+ end
3358
+
3359
+ def self.field_remappings
3360
+ @field_remappings = {}
3361
+ end
3362
+ end
3363
+
3364
+ class MinimumDeadline < ::Stripe::StripeObject
3365
+ # The current status of the requirement's impact.
3366
+ attr_reader :status
3367
+
3368
+ def self.inner_class_types
3369
+ @inner_class_types = {}
3370
+ end
3371
+
3372
+ def self.field_remappings
3373
+ @field_remappings = {}
3374
+ end
3375
+ end
3376
+
3377
+ class Reference < ::Stripe::StripeObject
3378
+ # If `inquiry` is the type, the inquiry token.
3379
+ attr_reader :inquiry
3380
+ # If `resource` is the type, the resource token.
3381
+ attr_reader :resource
3382
+ # The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field.
3383
+ # Otherwise the type is an API resource, the token for which can be found in the "resource" field.
3384
+ attr_reader :type
3385
+
3386
+ def self.inner_class_types
3387
+ @inner_class_types = {}
3388
+ end
3389
+
3390
+ def self.field_remappings
3391
+ @field_remappings = {}
3392
+ end
3393
+ end
3394
+
3395
+ class RequestedReason < ::Stripe::StripeObject
3396
+ # Machine-readable description of Stripe's reason for collecting the requirement.
3397
+ attr_reader :code
3398
+
3399
+ def self.inner_class_types
3400
+ @inner_class_types = {}
3401
+ end
3402
+
3403
+ def self.field_remappings
3404
+ @field_remappings = {}
3405
+ end
3406
+ end
3407
+ # Whether the responsibility is with the integrator or with Stripe (to review info, to wait for some condition, etc.) to action the requirement.
3408
+ attr_reader :awaiting_action_from
3409
+ # Machine-readable string describing the requirement.
3410
+ attr_reader :description
3411
+ # Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe.
3412
+ attr_reader :errors
3413
+ # A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information.
3414
+ attr_reader :impact
3415
+ # The soonest point when the account will be impacted by not providing the requirement.
3416
+ attr_reader :minimum_deadline
3417
+ # A reference to the location of the requirement.
3418
+ attr_reader :reference
3419
+ # A list of reasons why Stripe is collecting the requirement.
3420
+ attr_reader :requested_reasons
3421
+
3422
+ def self.inner_class_types
3423
+ @inner_class_types = {
3424
+ errors: Error,
3425
+ impact: Impact,
3426
+ minimum_deadline: MinimumDeadline,
3427
+ reference: Reference,
3428
+ requested_reasons: RequestedReason,
3429
+ }
3430
+ end
3431
+
3432
+ def self.field_remappings
3433
+ @field_remappings = {}
3434
+ end
3435
+ end
3436
+
3437
+ class Summary < ::Stripe::StripeObject
3438
+ class MinimumDeadline < ::Stripe::StripeObject
3439
+ # The current strictest status of all requirements on the Account.
3440
+ attr_reader :status
3441
+ # The soonest RFC3339 date & time UTC value a requirement can impact the Account.
3442
+ attr_reader :time
3443
+
3444
+ def self.inner_class_types
3445
+ @inner_class_types = {}
3446
+ end
3447
+
3448
+ def self.field_remappings
3449
+ @field_remappings = {}
3450
+ end
3451
+ end
3452
+ # The soonest date and time a requirement on the Account will become `past due`. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
3453
+ attr_reader :minimum_deadline
3454
+
3455
+ def self.inner_class_types
3456
+ @inner_class_types = { minimum_deadline: MinimumDeadline }
3457
+ end
3458
+
3459
+ def self.field_remappings
3460
+ @field_remappings = {}
3461
+ end
3462
+ end
3463
+ # A list of requirements for the Account.
3464
+ attr_reader :entries
3465
+ # The time at which the future requirements become effective.
3466
+ attr_reader :minimum_transition_date
3467
+ # An object containing an overview of requirements for the Account.
3468
+ attr_reader :summary
3469
+
3470
+ def self.inner_class_types
3471
+ @inner_class_types = { entries: Entry, summary: Summary }
3472
+ end
3473
+
3474
+ def self.field_remappings
3475
+ @field_remappings = {}
3476
+ end
3477
+ end
3478
+
3178
3479
  class Identity < ::Stripe::StripeObject
3179
3480
  class Attestations < ::Stripe::StripeObject
3180
3481
  class DirectorshipDeclaration < ::Stripe::StripeObject
@@ -3873,13 +4174,27 @@ module Stripe
3873
4174
  end
3874
4175
 
3875
4176
  class AnnualRevenue < ::Stripe::StripeObject
4177
+ class Amount < ::Stripe::StripeObject
4178
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
4179
+ attr_reader :value
4180
+ # 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).
4181
+ attr_reader :currency
4182
+
4183
+ def self.inner_class_types
4184
+ @inner_class_types = {}
4185
+ end
4186
+
4187
+ def self.field_remappings
4188
+ @field_remappings = {}
4189
+ end
4190
+ end
3876
4191
  # A non-negative integer representing the amount in the smallest currency unit.
3877
4192
  attr_reader :amount
3878
4193
  # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
3879
4194
  attr_reader :fiscal_year_end
3880
4195
 
3881
4196
  def self.inner_class_types
3882
- @inner_class_types = {}
4197
+ @inner_class_types = { amount: Amount }
3883
4198
  end
3884
4199
 
3885
4200
  def self.field_remappings
@@ -4108,11 +4423,25 @@ module Stripe
4108
4423
  end
4109
4424
 
4110
4425
  class MonthlyEstimatedRevenue < ::Stripe::StripeObject
4426
+ class Amount < ::Stripe::StripeObject
4427
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
4428
+ attr_reader :value
4429
+ # 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).
4430
+ attr_reader :currency
4431
+
4432
+ def self.inner_class_types
4433
+ @inner_class_types = {}
4434
+ end
4435
+
4436
+ def self.field_remappings
4437
+ @field_remappings = {}
4438
+ end
4439
+ end
4111
4440
  # A non-negative integer representing the amount in the smallest currency unit.
4112
4441
  attr_reader :amount
4113
4442
 
4114
4443
  def self.inner_class_types
4115
- @inner_class_types = {}
4444
+ @inner_class_types = { amount: Amount }
4116
4445
  end
4117
4446
 
4118
4447
  def self.field_remappings
@@ -4825,7 +5154,8 @@ module Stripe
4825
5154
  attr_reader :inquiry
4826
5155
  # If `resource` is the type, the resource token.
4827
5156
  attr_reader :resource
4828
- # The type of the reference. An additional hash is included with a name matching the type. It contains additional information specific to the type.
5157
+ # The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field.
5158
+ # Otherwise the type is an API resource, the token for which can be found in the "resource" field.
4829
5159
  attr_reader :type
4830
5160
 
4831
5161
  def self.inner_class_types
@@ -4905,8 +5235,6 @@ module Stripe
4905
5235
  @field_remappings = {}
4906
5236
  end
4907
5237
  end
4908
- # A value indicating responsibility for collecting requirements on this account.
4909
- attr_reader :collector
4910
5238
  # A list of requirements for the Account.
4911
5239
  attr_reader :entries
4912
5240
  # An object containing an overview of requirements for the Account.
@@ -4936,6 +5264,8 @@ module Stripe
4936
5264
  attr_reader :defaults
4937
5265
  # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
4938
5266
  attr_reader :display_name
5267
+ # Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when.
5268
+ attr_reader :future_requirements
4939
5269
  # Unique identifier for the Account.
4940
5270
  attr_reader :id
4941
5271
  # Information about the company, individual, and business represented by the Account.
@@ -4944,7 +5274,7 @@ module Stripe
4944
5274
  attr_reader :metadata
4945
5275
  # String representing the object's type. Objects of the same type share the same value of the object field.
4946
5276
  attr_reader :object
4947
- # Information about the requirements for the Account, including what information needs to be collected, and by when.
5277
+ # Information about the active requirements for the Account, including what information needs to be collected, and by when.
4948
5278
  attr_reader :requirements
4949
5279
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
4950
5280
  attr_reader :livemode
@@ -4953,6 +5283,7 @@ module Stripe
4953
5283
  @inner_class_types = {
4954
5284
  configuration: Configuration,
4955
5285
  defaults: Defaults,
5286
+ future_requirements: FutureRequirements,
4956
5287
  identity: Identity,
4957
5288
  requirements: Requirements,
4958
5289
  }
@@ -0,0 +1,37 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ # Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person.
8
+ class AccountPersonToken < APIResource
9
+ OBJECT_NAME = "v2.core.account_person_token"
10
+ def self.object_name
11
+ "v2.core.account_person_token"
12
+ end
13
+
14
+ # Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
15
+ attr_reader :created
16
+ # Time at which the token will expire.
17
+ attr_reader :expires_at
18
+ # Unique identifier for the token.
19
+ attr_reader :id
20
+ # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode.
21
+ attr_reader :livemode
22
+ # String representing the object's type. Objects of the same type share the same value of the object field.
23
+ attr_reader :object
24
+ # Determines if the token has already been used (tokens can only be used once).
25
+ attr_reader :used
26
+
27
+ def self.inner_class_types
28
+ @inner_class_types = {}
29
+ end
30
+
31
+ def self.field_remappings
32
+ @field_remappings = {}
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,37 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account.
8
+ class AccountToken < APIResource
9
+ OBJECT_NAME = "v2.core.account_token"
10
+ def self.object_name
11
+ "v2.core.account_token"
12
+ end
13
+
14
+ # Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
15
+ attr_reader :created
16
+ # Time at which the token will expire.
17
+ attr_reader :expires_at
18
+ # Unique identifier for the token.
19
+ attr_reader :id
20
+ # Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode.
21
+ attr_reader :livemode
22
+ # String representing the object's type. Objects of the same type share the same value of the object field.
23
+ attr_reader :object
24
+ # Determines if the token has already been used (tokens can only be used once).
25
+ attr_reader :used
26
+
27
+ def self.inner_class_types
28
+ @inner_class_types = {}
29
+ end
30
+
31
+ def self.field_remappings
32
+ @field_remappings = {}
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -55,8 +55,6 @@ module Stripe
55
55
  attr_reader :reason
56
56
  # The type of the event.
57
57
  attr_reader :type
58
- # For interop events, this is the snapshot event ID.
59
- attr_reader :v1_event_id
60
58
 
61
59
  def self.inner_class_types
62
60
  @inner_class_types = { reason: Reason }
@@ -9,6 +9,20 @@ module Stripe
9
9
  "financial_address_generated_microdeposits"
10
10
  end
11
11
 
12
+ class Amount < ::Stripe::StripeObject
13
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
14
+ attr_reader :value
15
+ # 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).
16
+ attr_reader :currency
17
+
18
+ def self.inner_class_types
19
+ @inner_class_types = {}
20
+ end
21
+
22
+ def self.field_remappings
23
+ @field_remappings = {}
24
+ end
25
+ end
12
26
  # The amounts of the microdeposits that were generated.
13
27
  attr_reader :amounts
14
28
  # String representing the object's type. Objects of the same type share the same value of the object field.
@@ -19,7 +33,7 @@ module Stripe
19
33
  attr_reader :livemode
20
34
 
21
35
  def self.inner_class_types
22
- @inner_class_types = {}
36
+ @inner_class_types = { amounts: Amount }
23
37
  end
24
38
 
25
39
  def self.field_remappings
@@ -35,6 +35,21 @@ module Stripe
35
35
  @field_remappings = {}
36
36
  end
37
37
  end
38
+
39
+ class Amount < ::Stripe::StripeObject
40
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
41
+ attr_reader :value
42
+ # 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).
43
+ attr_reader :currency
44
+
45
+ def self.inner_class_types
46
+ @inner_class_types = {}
47
+ end
48
+
49
+ def self.field_remappings
50
+ @field_remappings = {}
51
+ end
52
+ end
38
53
  # If applicable, contains information about the original flow linked to this Adjustment.
39
54
  attr_reader :adjusted_flow
40
55
  # The amount of the Adjustment.
@@ -55,7 +70,7 @@ module Stripe
55
70
  attr_reader :livemode
56
71
 
57
72
  def self.inner_class_types
58
- @inner_class_types = { adjusted_flow: AdjustedFlow }
73
+ @inner_class_types = { adjusted_flow: AdjustedFlow, amount: Amount }
59
74
  end
60
75
 
61
76
  def self.field_remappings