stripe 15.5.0 → 15.6.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 (803) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1723 -642
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_requestor.rb +34 -0
  7. data/lib/stripe/api_version.rb +1 -2
  8. data/lib/stripe/errors.rb +63 -0
  9. data/lib/stripe/event_types.rb +185 -0
  10. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
  11. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
  12. data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
  13. data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
  14. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
  15. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
  17. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
  18. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
  20. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
  29. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
  30. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
  31. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
  32. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
  33. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
  34. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
  35. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
  41. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
  42. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
  43. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
  44. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
  45. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
  46. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
  47. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
  48. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  49. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  50. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  51. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  52. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  53. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  54. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  55. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  56. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +23 -0
  57. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +21 -0
  58. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  59. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  60. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  61. data/lib/stripe/events/v2_core_account_link_returned_event.rb +13 -0
  62. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  63. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  64. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  65. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  66. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
  67. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
  68. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
  69. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
  70. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
  71. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
  72. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
  73. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
  74. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
  75. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
  76. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
  77. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
  78. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
  79. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
  80. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
  81. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
  82. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  83. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  84. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  85. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  86. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  87. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  88. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  89. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  90. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  91. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  92. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  93. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  94. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  95. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  96. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  97. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  98. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  99. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  100. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  101. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  102. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  103. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  104. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  105. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +21 -0
  106. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  107. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  108. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  109. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  110. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  111. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  112. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  113. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  114. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  115. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  116. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  117. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  118. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +22 -0
  119. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  120. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  121. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  122. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  123. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
  124. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
  125. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
  126. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
  127. data/lib/stripe/object_types.rb +80 -0
  128. data/lib/stripe/resources/account.rb +1137 -42
  129. data/lib/stripe/resources/account_link.rb +8 -0
  130. data/lib/stripe/resources/account_notice.rb +147 -0
  131. data/lib/stripe/resources/account_session.rb +688 -8
  132. data/lib/stripe/resources/apple_pay_domain.rb +8 -0
  133. data/lib/stripe/resources/application.rb +8 -0
  134. data/lib/stripe/resources/application_fee.rb +16 -0
  135. data/lib/stripe/resources/application_fee_refund.rb +8 -0
  136. data/lib/stripe/resources/apps/secret.rb +16 -0
  137. data/lib/stripe/resources/balance.rb +159 -0
  138. data/lib/stripe/resources/balance_settings.rb +152 -0
  139. data/lib/stripe/resources/balance_transaction.rb +16 -0
  140. data/lib/stripe/resources/bank_account.rb +40 -0
  141. data/lib/stripe/resources/billing/alert.rb +203 -1
  142. data/lib/stripe/resources/billing/alert_triggered.rb +14 -0
  143. data/lib/stripe/resources/billing/credit_balance_summary.rb +132 -0
  144. data/lib/stripe/resources/billing/credit_balance_transaction.rb +161 -0
  145. data/lib/stripe/resources/billing/credit_grant.rb +143 -2
  146. data/lib/stripe/resources/billing/meter.rb +45 -0
  147. data/lib/stripe/resources/billing/meter_event.rb +8 -0
  148. data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
  149. data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
  150. data/lib/stripe/resources/billing/meter_usage.rb +31 -0
  151. data/lib/stripe/resources/billing/meter_usage_row.rb +36 -0
  152. data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
  153. data/lib/stripe/resources/billing_portal/session.rb +107 -0
  154. data/lib/stripe/resources/capability.rb +56 -0
  155. data/lib/stripe/resources/capital/financing_offer.rb +203 -0
  156. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  157. data/lib/stripe/resources/capital/financing_transaction.rb +138 -0
  158. data/lib/stripe/resources/card.rb +18 -0
  159. data/lib/stripe/resources/cash_balance.rb +18 -0
  160. data/lib/stripe/resources/charge.rb +2587 -15
  161. data/lib/stripe/resources/checkout/session.rb +1583 -15
  162. data/lib/stripe/resources/climate/order.rb +32 -0
  163. data/lib/stripe/resources/climate/product.rb +16 -0
  164. data/lib/stripe/resources/climate/supplier.rb +16 -0
  165. data/lib/stripe/resources/confirmation_token.rb +1126 -34
  166. data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
  167. data/lib/stripe/resources/country_spec.rb +32 -0
  168. data/lib/stripe/resources/coupon.rb +66 -1
  169. data/lib/stripe/resources/credit_note.rb +76 -0
  170. data/lib/stripe/resources/credit_note_line_item.rb +62 -0
  171. data/lib/stripe/resources/customer.rb +79 -0
  172. data/lib/stripe/resources/customer_balance_transaction.rb +10 -0
  173. data/lib/stripe/resources/customer_cash_balance_transaction.rb +110 -0
  174. data/lib/stripe/resources/customer_session.rb +58 -1
  175. data/lib/stripe/resources/discount.rb +10 -0
  176. data/lib/stripe/resources/dispute.rb +177 -0
  177. data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
  178. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
  179. data/lib/stripe/resources/entitlements/feature.rb +8 -0
  180. data/lib/stripe/resources/ephemeral_key.rb +8 -0
  181. data/lib/stripe/resources/event.rb +87 -0
  182. data/lib/stripe/resources/exchange_rate.rb +8 -0
  183. data/lib/stripe/resources/file.rb +8 -0
  184. data/lib/stripe/resources/file_link.rb +8 -0
  185. data/lib/stripe/resources/financial_connections/account.rb +101 -1
  186. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  187. data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
  188. data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
  189. data/lib/stripe/resources/financial_connections/institution.rb +145 -0
  190. data/lib/stripe/resources/financial_connections/session.rb +124 -2
  191. data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
  192. data/lib/stripe/resources/forwarding/request.rb +52 -0
  193. data/lib/stripe/resources/funding_instructions.rb +193 -0
  194. data/lib/stripe/resources/fx_quote.rb +234 -0
  195. data/lib/stripe/resources/identity/verification_report.rb +166 -1
  196. data/lib/stripe/resources/identity/verification_session.rb +136 -1
  197. data/lib/stripe/resources/invoice.rb +1591 -18
  198. data/lib/stripe/resources/invoice_item.rb +214 -2
  199. data/lib/stripe/resources/invoice_line_item.rb +293 -1
  200. data/lib/stripe/resources/invoice_payment.rb +30 -1
  201. data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
  202. data/lib/stripe/resources/issuing/authorization.rb +177 -0
  203. data/lib/stripe/resources/issuing/card.rb +96 -8
  204. data/lib/stripe/resources/issuing/cardholder.rb +112 -1
  205. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +684 -0
  206. data/lib/stripe/resources/issuing/dispute.rb +97 -0
  207. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
  208. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +94 -0
  209. data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
  210. data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
  211. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  212. data/lib/stripe/resources/issuing/token.rb +61 -0
  213. data/lib/stripe/resources/issuing/transaction.rb +157 -0
  214. data/lib/stripe/resources/line_item.rb +91 -0
  215. data/lib/stripe/resources/login_link.rb +8 -0
  216. data/lib/stripe/resources/mandate.rb +331 -12
  217. data/lib/stripe/resources/margin.rb +123 -0
  218. data/lib/stripe/resources/order.rb +3306 -0
  219. data/lib/stripe/resources/payment_attempt_record.rb +2056 -0
  220. data/lib/stripe/resources/payment_intent.rb +11019 -3714
  221. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
  222. data/lib/stripe/resources/payment_link.rb +337 -0
  223. data/lib/stripe/resources/payment_method.rb +1074 -35
  224. data/lib/stripe/resources/payment_method_configuration.rb +1260 -4
  225. data/lib/stripe/resources/payment_method_domain.rb +111 -0
  226. data/lib/stripe/resources/payment_record.rb +2602 -0
  227. data/lib/stripe/resources/payout.rb +16 -0
  228. data/lib/stripe/resources/person.rb +180 -0
  229. data/lib/stripe/resources/plan.rb +24 -0
  230. data/lib/stripe/resources/price.rb +109 -0
  231. data/lib/stripe/resources/privacy/redaction_job.rb +314 -0
  232. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  233. data/lib/stripe/resources/product.rb +27 -0
  234. data/lib/stripe/resources/product_feature.rb +8 -0
  235. data/lib/stripe/resources/promotion_code.rb +34 -0
  236. data/lib/stripe/resources/quote.rb +2512 -49
  237. data/lib/stripe/resources/quote_line.rb +521 -0
  238. data/lib/stripe/resources/quote_preview_invoice.rb +1134 -0
  239. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +718 -0
  240. data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
  241. data/lib/stripe/resources/radar/value_list.rb +8 -0
  242. data/lib/stripe/resources/radar/value_list_item.rb +8 -0
  243. data/lib/stripe/resources/refund.rb +389 -19
  244. data/lib/stripe/resources/reporting/report_run.rb +16 -0
  245. data/lib/stripe/resources/reporting/report_type.rb +8 -0
  246. data/lib/stripe/resources/reserve_transaction.rb +8 -0
  247. data/lib/stripe/resources/reversal.rb +8 -0
  248. data/lib/stripe/resources/review.rb +24 -0
  249. data/lib/stripe/resources/setup_attempt.rb +352 -17
  250. data/lib/stripe/resources/setup_intent.rb +1065 -12
  251. data/lib/stripe/resources/shipping_rate.rb +48 -0
  252. data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
  253. data/lib/stripe/resources/source.rb +303 -0
  254. data/lib/stripe/resources/source_mandate_notification.rb +32 -0
  255. data/lib/stripe/resources/source_transaction.rb +54 -0
  256. data/lib/stripe/resources/subscription.rb +720 -11
  257. data/lib/stripe/resources/subscription_item.rb +108 -3
  258. data/lib/stripe/resources/subscription_schedule.rb +1321 -10
  259. data/lib/stripe/resources/tax/association.rb +98 -0
  260. data/lib/stripe/resources/tax/calculation.rb +109 -0
  261. data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
  262. data/lib/stripe/resources/tax/form.rb +318 -0
  263. data/lib/stripe/resources/tax/registration.rb +1232 -0
  264. data/lib/stripe/resources/tax/settings.rb +61 -1
  265. data/lib/stripe/resources/tax/transaction.rb +93 -0
  266. data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
  267. data/lib/stripe/resources/tax_code.rb +8 -0
  268. data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
  269. data/lib/stripe/resources/tax_id.rb +36 -2
  270. data/lib/stripe/resources/tax_rate.rb +16 -0
  271. data/lib/stripe/resources/terminal/configuration.rb +332 -0
  272. data/lib/stripe/resources/terminal/connection_token.rb +8 -0
  273. data/lib/stripe/resources/terminal/location.rb +16 -0
  274. data/lib/stripe/resources/terminal/onboarding_link.rb +108 -0
  275. data/lib/stripe/resources/terminal/reader.rb +249 -0
  276. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  277. data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
  278. data/lib/stripe/resources/token.rb +8 -0
  279. data/lib/stripe/resources/topup.rb +8 -0
  280. data/lib/stripe/resources/transfer.rb +14 -0
  281. data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
  282. data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
  283. data/lib/stripe/resources/treasury/financial_account.rb +83 -3
  284. data/lib/stripe/resources/treasury/financial_account_features.rb +194 -0
  285. data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
  286. data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
  287. data/lib/stripe/resources/treasury/outbound_transfer.rb +151 -0
  288. data/lib/stripe/resources/treasury/received_credit.rb +135 -1
  289. data/lib/stripe/resources/treasury/received_debit.rb +129 -1
  290. data/lib/stripe/resources/treasury/transaction.rb +36 -0
  291. data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
  292. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  293. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  294. data/lib/stripe/resources/v2/billing/cadence.rb +323 -0
  295. data/lib/stripe/resources/v2/billing/collection_setting.rb +296 -0
  296. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +284 -0
  297. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  298. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  299. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  300. data/lib/stripe/resources/v2/billing/license_fee.rb +103 -0
  301. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  302. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  303. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  304. data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
  305. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
  306. data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
  307. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  308. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  309. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  310. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +90 -0
  311. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  312. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  313. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  314. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +107 -0
  315. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +90 -0
  316. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  317. data/lib/stripe/resources/v2/billing/service_action.rb +232 -0
  318. data/lib/stripe/resources/v2/core/account.rb +3838 -0
  319. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  320. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +81 -0
  321. data/lib/stripe/resources/v2/core/person.rb +477 -0
  322. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  323. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
  324. data/lib/stripe/resources/v2/event.rb +26 -0
  325. data/lib/stripe/resources/v2/event_destination.rb +44 -0
  326. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  327. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  328. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  329. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  330. data/lib/stripe/resources/v2/money_management/financial_address.rb +100 -0
  331. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
  332. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  333. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  334. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  335. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  336. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  337. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  338. data/lib/stripe/resources/v2/money_management/received_credit.rb +199 -0
  339. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  340. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  341. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  342. data/lib/stripe/resources/v2/payments/off_session_payment.rb +113 -0
  343. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  344. data/lib/stripe/resources/v2/reporting/report_run.rb +158 -0
  345. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  346. data/lib/stripe/resources/webhook_endpoint.rb +8 -0
  347. data/lib/stripe/resources.rb +194 -0
  348. data/lib/stripe/services/account_notice_service.rb +101 -0
  349. data/lib/stripe/services/account_service.rb +562 -1
  350. data/lib/stripe/services/account_session_service.rb +226 -1
  351. data/lib/stripe/services/balance_settings_service.rb +99 -0
  352. data/lib/stripe/services/billing/alert_service.rb +75 -1
  353. data/lib/stripe/services/billing/credit_balance_summary_service.rb +17 -2
  354. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  355. data/lib/stripe/services/billing/credit_grant_service.rb +37 -2
  356. data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
  357. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  358. data/lib/stripe/services/billing_service.rb +2 -1
  359. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  360. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  361. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  362. data/lib/stripe/services/capital_service.rb +15 -0
  363. data/lib/stripe/services/charge_service.rb +1418 -0
  364. data/lib/stripe/services/checkout/session_service.rb +472 -5
  365. data/lib/stripe/services/coupon_service.rb +17 -1
  366. data/lib/stripe/services/credit_note_service.rb +4 -0
  367. data/lib/stripe/services/customer_session_service.rb +4 -1
  368. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
  369. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  370. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  371. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  372. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  373. data/lib/stripe/services/financial_connections_service.rb +2 -1
  374. data/lib/stripe/services/fx_quote_service.rb +123 -0
  375. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  376. data/lib/stripe/services/invoice_item_service.rb +74 -2
  377. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  378. data/lib/stripe/services/invoice_payment_service.rb +4 -1
  379. data/lib/stripe/services/invoice_service.rb +1078 -16
  380. data/lib/stripe/services/issuing/card_service.rb +0 -8
  381. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  382. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  383. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  384. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  385. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  386. data/lib/stripe/services/issuing_service.rb +5 -1
  387. data/lib/stripe/services/mandate_service.rb +40 -0
  388. data/lib/stripe/services/margin_service.rb +119 -0
  389. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  390. data/lib/stripe/services/order_service.rb +2388 -0
  391. data/lib/stripe/services/payment_attempt_record_service.rb +52 -0
  392. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  393. data/lib/stripe/services/payment_intent_service.rb +7630 -2215
  394. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  395. data/lib/stripe/services/payment_method_service.rb +120 -1
  396. data/lib/stripe/services/payment_record_service.rb +562 -0
  397. data/lib/stripe/services/price_service.rb +19 -0
  398. data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
  399. data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
  400. data/lib/stripe/services/privacy_service.rb +13 -0
  401. data/lib/stripe/services/promotion_code_service.rb +8 -0
  402. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  403. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  404. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  405. data/lib/stripe/services/quote_service.rb +1723 -8
  406. data/lib/stripe/services/setup_intent_service.rb +691 -9
  407. data/lib/stripe/services/subscription_item_service.rb +75 -3
  408. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  409. data/lib/stripe/services/subscription_service.rb +336 -9
  410. data/lib/stripe/services/tax/association_service.rb +31 -0
  411. data/lib/stripe/services/tax/form_service.rb +100 -0
  412. data/lib/stripe/services/tax_id_service.rb +8 -2
  413. data/lib/stripe/services/tax_service.rb +3 -1
  414. data/lib/stripe/services/terminal/configuration_service.rb +26 -0
  415. data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
  416. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  417. data/lib/stripe/services/terminal_service.rb +3 -1
  418. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
  419. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  420. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  421. data/lib/stripe/services/transfer_service.rb +4 -0
  422. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  423. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  424. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  425. data/lib/stripe/services/v1_services.rb +11 -1
  426. data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
  427. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
  428. data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
  429. data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
  430. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
  431. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
  432. data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
  433. data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
  434. data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
  435. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
  436. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
  437. data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
  438. data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
  439. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
  440. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
  441. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
  442. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
  443. data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
  444. data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
  445. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
  446. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
  447. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
  448. data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
  449. data/lib/stripe/services/v2/billing_service.rb +18 -1
  450. data/lib/stripe/services/v2/core/account_link_service.rb +114 -0
  451. data/lib/stripe/services/v2/core/account_service.rb +4536 -0
  452. data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
  453. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
  454. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
  455. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
  456. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  457. data/lib/stripe/services/v2/core_service.rb +5 -1
  458. data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
  459. data/lib/stripe/services/v2/money_management/financial_account_service.rb +119 -0
  460. data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
  461. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
  462. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
  463. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
  464. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
  465. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
  466. data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
  467. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  468. data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
  469. data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
  470. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
  471. data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
  472. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  473. data/lib/stripe/services/v2/payment_service.rb +15 -0
  474. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +152 -0
  475. data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
  476. data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
  477. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  478. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
  479. data/lib/stripe/services/v2/tax_service.rb +15 -0
  480. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  481. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +53 -0
  482. data/lib/stripe/services/v2_services.rb +6 -1
  483. data/lib/stripe/services.rb +84 -0
  484. data/lib/stripe/stripe_configuration.rb +3 -1
  485. data/lib/stripe/stripe_object.rb +26 -2
  486. data/lib/stripe/util.rb +16 -6
  487. data/lib/stripe/version.rb +1 -1
  488. data/lib/stripe.rb +53 -0
  489. data/rbi/stripe.rbi +280174 -0
  490. data/stripe.gemspec +4 -1
  491. metadata +283 -324
  492. data/rbi/stripe/resources/account.rbi +0 -4991
  493. data/rbi/stripe/resources/account_link.rbi +0 -76
  494. data/rbi/stripe/resources/account_session.rbi +0 -1173
  495. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
  496. data/rbi/stripe/resources/application.rbi +0 -20
  497. data/rbi/stripe/resources/application_fee.rbi +0 -118
  498. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  499. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  500. data/rbi/stripe/resources/balance.rbi +0 -230
  501. data/rbi/stripe/resources/balance_transaction.rbi +0 -147
  502. data/rbi/stripe/resources/bank_account.rbi +0 -127
  503. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  504. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  505. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  506. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  507. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  508. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  509. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  510. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  511. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  512. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
  513. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  514. data/rbi/stripe/resources/capability.rbi +0 -125
  515. data/rbi/stripe/resources/card.rbi +0 -125
  516. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  517. data/rbi/stripe/resources/charge.rbi +0 -2136
  518. data/rbi/stripe/resources/checkout/session.rbi +0 -4105
  519. data/rbi/stripe/resources/climate/order.rbi +0 -245
  520. data/rbi/stripe/resources/climate/product.rbi +0 -75
  521. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  522. data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
  523. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  524. data/rbi/stripe/resources/country_spec.rbi +0 -85
  525. data/rbi/stripe/resources/coupon.rbi +0 -250
  526. data/rbi/stripe/resources/credit_note.rbi +0 -752
  527. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  528. data/rbi/stripe/resources/customer.rbi +0 -993
  529. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  530. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  531. data/rbi/stripe/resources/customer_session.rbi +0 -200
  532. data/rbi/stripe/resources/discount.rbi +0 -53
  533. data/rbi/stripe/resources/dispute.rbi +0 -761
  534. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  535. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  536. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  537. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  538. data/rbi/stripe/resources/event.rbi +0 -137
  539. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  540. data/rbi/stripe/resources/file.rbi +0 -143
  541. data/rbi/stripe/resources/file_link.rbi +0 -141
  542. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  543. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  544. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  545. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  546. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  547. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  548. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  549. data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
  550. data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
  551. data/rbi/stripe/resources/invoice.rbi +0 -3894
  552. data/rbi/stripe/resources/invoice_item.rbi +0 -470
  553. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  554. data/rbi/stripe/resources/invoice_payment.rbi +0 -121
  555. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  556. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  557. data/rbi/stripe/resources/issuing/card.rbi +0 -749
  558. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  559. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  560. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  561. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  562. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  563. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  564. data/rbi/stripe/resources/line_item.rbi +0 -72
  565. data/rbi/stripe/resources/login_link.rbi +0 -19
  566. data/rbi/stripe/resources/mandate.rbi +0 -191
  567. data/rbi/stripe/resources/payment_intent.rbi +0 -10011
  568. data/rbi/stripe/resources/payment_link.rbi +0 -1891
  569. data/rbi/stripe/resources/payment_method.rbi +0 -1770
  570. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
  571. data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
  572. data/rbi/stripe/resources/payout.rbi +0 -307
  573. data/rbi/stripe/resources/person.rbi +0 -401
  574. data/rbi/stripe/resources/plan.rbi +0 -371
  575. data/rbi/stripe/resources/price.rbi +0 -694
  576. data/rbi/stripe/resources/product.rbi +0 -553
  577. data/rbi/stripe/resources/product_feature.rbi +0 -26
  578. data/rbi/stripe/resources/promotion_code.rbi +0 -264
  579. data/rbi/stripe/resources/quote.rbi +0 -1137
  580. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  581. data/rbi/stripe/resources/radar/value_list.rbi +0 -168
  582. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
  583. data/rbi/stripe/resources/refund.rbi +0 -523
  584. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  585. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  586. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  587. data/rbi/stripe/resources/reversal.rbi +0 -51
  588. data/rbi/stripe/resources/review.rbi +0 -154
  589. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  590. data/rbi/stripe/resources/setup_intent.rbi +0 -3974
  591. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  592. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  593. data/rbi/stripe/resources/source.rbi +0 -1496
  594. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  595. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  596. data/rbi/stripe/resources/subscription.rbi +0 -2154
  597. data/rbi/stripe/resources/subscription_item.rbi +0 -404
  598. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
  599. data/rbi/stripe/resources/tax/calculation.rbi +0 -478
  600. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
  601. data/rbi/stripe/resources/tax/registration.rbi +0 -3216
  602. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  603. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  604. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  605. data/rbi/stripe/resources/tax_code.rbi +0 -44
  606. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  607. data/rbi/stripe/resources/tax_id.rbi +0 -165
  608. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  609. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
  610. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  611. data/rbi/stripe/resources/terminal/location.rbi +0 -222
  612. data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
  613. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
  614. data/rbi/stripe/resources/token.rbi +0 -1281
  615. data/rbi/stripe/resources/topup.rbi +0 -222
  616. data/rbi/stripe/resources/transfer.rbi +0 -199
  617. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  618. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  619. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
  620. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  621. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  622. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  623. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  624. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  625. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  626. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  627. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  628. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  629. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  630. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  631. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  632. data/rbi/stripe/resources/v2/event.rbi +0 -48
  633. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  634. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
  635. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  636. data/rbi/stripe/services/account_link_service.rbi +0 -60
  637. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  638. data/rbi/stripe/services/account_person_service.rbi +0 -1007
  639. data/rbi/stripe/services/account_service.rbi +0 -4281
  640. data/rbi/stripe/services/account_session_service.rbi +0 -748
  641. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
  642. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  643. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  644. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  645. data/rbi/stripe/services/apps_service.rbi +0 -9
  646. data/rbi/stripe/services/balance_service.rbi +0 -21
  647. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  648. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  649. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  650. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  651. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  652. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  653. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  654. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  655. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  656. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
  657. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  658. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  659. data/rbi/stripe/services/billing_service.rbi +0 -15
  660. data/rbi/stripe/services/charge_service.rbi +0 -448
  661. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  662. data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
  663. data/rbi/stripe/services/checkout_service.rbi +0 -9
  664. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  665. data/rbi/stripe/services/climate/product_service.rbi +0 -46
  666. data/rbi/stripe/services/climate_service.rbi +0 -11
  667. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  668. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  669. data/rbi/stripe/services/coupon_service.rbi +0 -194
  670. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  671. data/rbi/stripe/services/credit_note_service.rbi +0 -415
  672. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  673. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  674. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  675. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  676. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  677. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  678. data/rbi/stripe/services/customer_service.rbi +0 -635
  679. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  680. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
  681. data/rbi/stripe/services/dispute_service.rbi +0 -424
  682. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  683. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  684. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  685. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  686. data/rbi/stripe/services/event_service.rbi +0 -83
  687. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  688. data/rbi/stripe/services/file_link_service.rbi +0 -124
  689. data/rbi/stripe/services/file_service.rbi +0 -116
  690. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  691. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  692. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  693. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  694. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  695. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  696. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  697. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  698. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
  699. data/rbi/stripe/services/identity_service.rbi +0 -10
  700. data/rbi/stripe/services/invoice_item_service.rbi +0 -366
  701. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  702. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  703. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  704. data/rbi/stripe/services/invoice_service.rbi +0 -3073
  705. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  706. data/rbi/stripe/services/issuing/card_service.rbi +0 -503
  707. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  708. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  709. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  710. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  711. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  712. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  713. data/rbi/stripe/services/issuing_service.rbi +0 -16
  714. data/rbi/stripe/services/mandate_service.rbi +0 -20
  715. data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
  716. data/rbi/stripe/services/payment_link_service.rbi +0 -1441
  717. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
  718. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  719. data/rbi/stripe/services/payment_method_service.rbi +0 -781
  720. data/rbi/stripe/services/payout_service.rbi +0 -209
  721. data/rbi/stripe/services/plan_service.rbi +0 -282
  722. data/rbi/stripe/services/price_service.rbi +0 -546
  723. data/rbi/stripe/services/product_feature_service.rbi +0 -67
  724. data/rbi/stripe/services/product_service.rbi +0 -477
  725. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  726. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  727. data/rbi/stripe/services/quote_service.rbi +0 -695
  728. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  729. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
  730. data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
  731. data/rbi/stripe/services/radar_service.rbi +0 -11
  732. data/rbi/stripe/services/refund_service.rbi +0 -185
  733. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  734. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  735. data/rbi/stripe/services/reporting_service.rbi +0 -10
  736. data/rbi/stripe/services/review_service.rbi +0 -84
  737. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  738. data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
  739. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  740. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  741. data/rbi/stripe/services/sigma_service.rbi +0 -9
  742. data/rbi/stripe/services/source_service.rbi +0 -663
  743. data/rbi/stripe/services/subscription_item_service.rbi +0 -350
  744. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
  745. data/rbi/stripe/services/subscription_service.rbi +0 -1768
  746. data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
  747. data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
  748. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  749. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  750. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  751. data/rbi/stripe/services/tax_id_service.rbi +0 -110
  752. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  753. data/rbi/stripe/services/tax_service.rbi +0 -12
  754. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
  755. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  756. data/rbi/stripe/services/terminal/location_service.rbi +0 -182
  757. data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
  758. data/rbi/stripe/services/terminal_service.rbi +0 -12
  759. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  760. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  761. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  762. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  763. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  764. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  765. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  766. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  767. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
  768. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  769. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
  770. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  771. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  772. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  773. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  774. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  775. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  776. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  777. data/rbi/stripe/services/token_service.rbi +0 -1255
  778. data/rbi/stripe/services/topup_service.rbi +0 -176
  779. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  780. data/rbi/stripe/services/transfer_service.rbi +0 -152
  781. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  782. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  783. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  784. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
  785. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  786. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  787. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  788. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  789. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  790. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  791. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  792. data/rbi/stripe/services/treasury_service.rbi +0 -18
  793. data/rbi/stripe/services/v1_services.rbi +0 -77
  794. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  795. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  796. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
  797. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  798. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  799. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
  800. data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
  801. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  802. data/rbi/stripe/services/v2_services.rbi +0 -10
  803. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -34,6 +34,14 @@ module Stripe
34
34
  attr_reader :postal_code
35
35
  # State, county, province, or region.
36
36
  attr_reader :state
37
+
38
+ def self.inner_class_types
39
+ @inner_class_types = {}
40
+ end
41
+
42
+ def self.field_remappings
43
+ @field_remappings = {}
44
+ end
37
45
  end
38
46
  # Billing address.
39
47
  attr_reader :address
@@ -45,6 +53,14 @@ module Stripe
45
53
  attr_reader :phone
46
54
  # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
47
55
  attr_reader :tax_id
56
+
57
+ def self.inner_class_types
58
+ @inner_class_types = { address: Address }
59
+ end
60
+
61
+ def self.field_remappings
62
+ @field_remappings = {}
63
+ end
48
64
  end
49
65
 
50
66
  class FraudDetails < Stripe::StripeObject
@@ -52,6 +68,14 @@ module Stripe
52
68
  attr_reader :stripe_report
53
69
  # Assessments reported by you. If set, possible values of are `safe` and `fraudulent`.
54
70
  attr_reader :user_report
71
+
72
+ def self.inner_class_types
73
+ @inner_class_types = {}
74
+ end
75
+
76
+ def self.field_remappings
77
+ @field_remappings = {}
78
+ end
55
79
  end
56
80
 
57
81
  class Level3 < Stripe::StripeObject
@@ -68,6 +92,14 @@ module Stripe
68
92
  attr_reader :tax_amount
69
93
  # Attribute for field unit_cost
70
94
  attr_reader :unit_cost
95
+
96
+ def self.inner_class_types
97
+ @inner_class_types = {}
98
+ end
99
+
100
+ def self.field_remappings
101
+ @field_remappings = {}
102
+ end
71
103
  end
72
104
  # Attribute for field customer_reference
73
105
  attr_reader :customer_reference
@@ -81,6 +113,14 @@ module Stripe
81
113
  attr_reader :shipping_amount
82
114
  # Attribute for field shipping_from_zip
83
115
  attr_reader :shipping_from_zip
116
+
117
+ def self.inner_class_types
118
+ @inner_class_types = { line_items: LineItem }
119
+ end
120
+
121
+ def self.field_remappings
122
+ @field_remappings = {}
123
+ end
84
124
  end
85
125
 
86
126
  class Outcome < Stripe::StripeObject
@@ -91,6 +131,14 @@ module Stripe
91
131
  attr_reader :id
92
132
  # The predicate to evaluate the payment against.
93
133
  attr_reader :predicate
134
+
135
+ def self.inner_class_types
136
+ @inner_class_types = {}
137
+ end
138
+
139
+ def self.field_remappings
140
+ @field_remappings = {}
141
+ end
94
142
  end
95
143
  # An enumerated value providing a more detailed explanation on [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines).
96
144
  attr_reader :advice_code
@@ -112,6 +160,14 @@ module Stripe
112
160
  attr_reader :seller_message
113
161
  # Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. See [understanding declines](https://stripe.com/docs/declines) and [Radar reviews](https://stripe.com/docs/radar/reviews) for details.
114
162
  attr_reader :type
163
+
164
+ def self.inner_class_types
165
+ @inner_class_types = { rule: Rule }
166
+ end
167
+
168
+ def self.field_remappings
169
+ @field_remappings = {}
170
+ end
115
171
  end
116
172
 
117
173
  class PaymentMethodDetails < Stripe::StripeObject
@@ -124,6 +180,14 @@ module Stripe
124
180
  attr_reader :routing_number
125
181
  # SWIFT code of the bank associated with the routing number.
126
182
  attr_reader :swift_code
183
+
184
+ def self.inner_class_types
185
+ @inner_class_types = {}
186
+ end
187
+
188
+ def self.field_remappings
189
+ @field_remappings = {}
190
+ end
127
191
  end
128
192
 
129
193
  class AchDebit < Stripe::StripeObject
@@ -139,6 +203,14 @@ module Stripe
139
203
  attr_reader :last4
140
204
  # Routing transit number of the bank account.
141
205
  attr_reader :routing_number
206
+
207
+ def self.inner_class_types
208
+ @inner_class_types = {}
209
+ end
210
+
211
+ def self.field_remappings
212
+ @field_remappings = {}
213
+ end
142
214
  end
143
215
 
144
216
  class AcssDebit < Stripe::StripeObject
@@ -154,6 +226,14 @@ module Stripe
154
226
  attr_reader :mandate
155
227
  # Transit number of the bank account.
156
228
  attr_reader :transit_number
229
+
230
+ def self.inner_class_types
231
+ @inner_class_types = {}
232
+ end
233
+
234
+ def self.field_remappings
235
+ @field_remappings = {}
236
+ end
157
237
  end
158
238
 
159
239
  class Affirm < Stripe::StripeObject
@@ -163,6 +243,14 @@ module Stripe
163
243
  attr_reader :reader
164
244
  # The Affirm transaction ID associated with this payment.
165
245
  attr_reader :transaction_id
246
+
247
+ def self.inner_class_types
248
+ @inner_class_types = {}
249
+ end
250
+
251
+ def self.field_remappings
252
+ @field_remappings = {}
253
+ end
166
254
  end
167
255
 
168
256
  class AfterpayClearpay < Stripe::StripeObject
@@ -170,6 +258,14 @@ module Stripe
170
258
  attr_reader :order_id
171
259
  # Order identifier shown to the merchant in Afterpay’s online portal.
172
260
  attr_reader :reference
261
+
262
+ def self.inner_class_types
263
+ @inner_class_types = {}
264
+ end
265
+
266
+ def self.field_remappings
267
+ @field_remappings = {}
268
+ end
173
269
  end
174
270
 
175
271
  class Alipay < Stripe::StripeObject
@@ -179,17 +275,41 @@ module Stripe
179
275
  attr_reader :fingerprint
180
276
  # Transaction ID of this particular Alipay transaction.
181
277
  attr_reader :transaction_id
278
+
279
+ def self.inner_class_types
280
+ @inner_class_types = {}
281
+ end
282
+
283
+ def self.field_remappings
284
+ @field_remappings = {}
285
+ end
182
286
  end
183
287
 
184
288
  class Alma < Stripe::StripeObject
185
289
  class Installments < Stripe::StripeObject
186
290
  # The number of installments.
187
291
  attr_reader :count
292
+
293
+ def self.inner_class_types
294
+ @inner_class_types = {}
295
+ end
296
+
297
+ def self.field_remappings
298
+ @field_remappings = {}
299
+ end
188
300
  end
189
301
  # Attribute for field installments
190
302
  attr_reader :installments
191
303
  # The Alma transaction ID associated with this payment.
192
304
  attr_reader :transaction_id
305
+
306
+ def self.inner_class_types
307
+ @inner_class_types = { installments: Installments }
308
+ end
309
+
310
+ def self.field_remappings
311
+ @field_remappings = {}
312
+ end
193
313
  end
194
314
 
195
315
  class AmazonPay < Stripe::StripeObject
@@ -197,6 +317,8 @@ module Stripe
197
317
  class Card < Stripe::StripeObject
198
318
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
199
319
  attr_reader :brand
320
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
321
+ attr_reader :brand_product
200
322
  # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
201
323
  attr_reader :country
202
324
  # Two-digit number representing the card's expiration month.
@@ -207,16 +329,40 @@ module Stripe
207
329
  attr_reader :funding
208
330
  # The last four digits of the card.
209
331
  attr_reader :last4
332
+
333
+ def self.inner_class_types
334
+ @inner_class_types = {}
335
+ end
336
+
337
+ def self.field_remappings
338
+ @field_remappings = {}
339
+ end
210
340
  end
211
341
  # Attribute for field card
212
342
  attr_reader :card
213
343
  # funding type of the underlying payment method.
214
344
  attr_reader :type
345
+
346
+ def self.inner_class_types
347
+ @inner_class_types = { card: Card }
348
+ end
349
+
350
+ def self.field_remappings
351
+ @field_remappings = {}
352
+ end
215
353
  end
216
354
  # Attribute for field funding
217
355
  attr_reader :funding
218
356
  # The Amazon Pay transaction ID associated with this payment.
219
357
  attr_reader :transaction_id
358
+
359
+ def self.inner_class_types
360
+ @inner_class_types = { funding: Funding }
361
+ end
362
+
363
+ def self.field_remappings
364
+ @field_remappings = {}
365
+ end
220
366
  end
221
367
 
222
368
  class AuBecsDebit < Stripe::StripeObject
@@ -228,6 +374,14 @@ module Stripe
228
374
  attr_reader :last4
229
375
  # ID of the mandate used to make this payment.
230
376
  attr_reader :mandate
377
+
378
+ def self.inner_class_types
379
+ @inner_class_types = {}
380
+ end
381
+
382
+ def self.field_remappings
383
+ @field_remappings = {}
384
+ end
231
385
  end
232
386
 
233
387
  class BacsDebit < Stripe::StripeObject
@@ -239,6 +393,14 @@ module Stripe
239
393
  attr_reader :mandate
240
394
  # Sort code of the bank account. (e.g., `10-20-30`)
241
395
  attr_reader :sort_code
396
+
397
+ def self.inner_class_types
398
+ @inner_class_types = {}
399
+ end
400
+
401
+ def self.field_remappings
402
+ @field_remappings = {}
403
+ end
242
404
  end
243
405
 
244
406
  class Bancontact < Stripe::StripeObject
@@ -260,21 +422,53 @@ module Stripe
260
422
  # Owner's verified full name. Values are verified or provided by Bancontact directly
261
423
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
262
424
  attr_reader :verified_name
425
+
426
+ def self.inner_class_types
427
+ @inner_class_types = {}
428
+ end
429
+
430
+ def self.field_remappings
431
+ @field_remappings = {}
432
+ end
263
433
  end
264
434
 
265
435
  class Billie < Stripe::StripeObject
266
436
  # The Billie transaction ID associated with this payment.
267
437
  attr_reader :transaction_id
438
+
439
+ def self.inner_class_types
440
+ @inner_class_types = {}
441
+ end
442
+
443
+ def self.field_remappings
444
+ @field_remappings = {}
445
+ end
268
446
  end
269
447
 
270
448
  class Blik < Stripe::StripeObject
271
449
  # A unique and immutable identifier assigned by BLIK to every buyer.
272
450
  attr_reader :buyer_id
451
+
452
+ def self.inner_class_types
453
+ @inner_class_types = {}
454
+ end
455
+
456
+ def self.field_remappings
457
+ @field_remappings = {}
458
+ end
273
459
  end
274
460
 
275
461
  class Boleto < Stripe::StripeObject
276
462
  # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
277
463
  attr_reader :tax_id
464
+
465
+ def self.inner_class_types
466
+ @inner_class_types = {}
467
+ end
468
+
469
+ def self.field_remappings
470
+ @field_remappings = {}
471
+ end
278
472
  end
279
473
 
280
474
  class Card < Stripe::StripeObject
@@ -285,16 +479,53 @@ module Stripe
285
479
  attr_reader :address_postal_code_check
286
480
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
287
481
  attr_reader :cvc_check
482
+
483
+ def self.inner_class_types
484
+ @inner_class_types = {}
485
+ end
486
+
487
+ def self.field_remappings
488
+ @field_remappings = {}
489
+ end
490
+ end
491
+
492
+ class DecrementalAuthorization < Stripe::StripeObject
493
+ # Indicates whether or not the decremental authorization feature is supported.
494
+ attr_reader :status
495
+
496
+ def self.inner_class_types
497
+ @inner_class_types = {}
498
+ end
499
+
500
+ def self.field_remappings
501
+ @field_remappings = {}
502
+ end
288
503
  end
289
504
 
290
505
  class ExtendedAuthorization < Stripe::StripeObject
291
506
  # Indicates whether or not the capture window is extended beyond the standard authorization.
292
507
  attr_reader :status
508
+
509
+ def self.inner_class_types
510
+ @inner_class_types = {}
511
+ end
512
+
513
+ def self.field_remappings
514
+ @field_remappings = {}
515
+ end
293
516
  end
294
517
 
295
518
  class IncrementalAuthorization < Stripe::StripeObject
296
519
  # Indicates whether or not the incremental authorization feature is supported.
297
520
  attr_reader :status
521
+
522
+ def self.inner_class_types
523
+ @inner_class_types = {}
524
+ end
525
+
526
+ def self.field_remappings
527
+ @field_remappings = {}
528
+ end
298
529
  end
299
530
 
300
531
  class Installments < Stripe::StripeObject
@@ -306,19 +537,51 @@ module Stripe
306
537
  attr_reader :interval
307
538
  # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
308
539
  attr_reader :type
540
+
541
+ def self.inner_class_types
542
+ @inner_class_types = {}
543
+ end
544
+
545
+ def self.field_remappings
546
+ @field_remappings = {}
547
+ end
309
548
  end
310
549
  # Installment plan selected for the payment.
311
550
  attr_reader :plan
551
+
552
+ def self.inner_class_types
553
+ @inner_class_types = { plan: Plan }
554
+ end
555
+
556
+ def self.field_remappings
557
+ @field_remappings = {}
558
+ end
312
559
  end
313
560
 
314
561
  class Multicapture < Stripe::StripeObject
315
562
  # Indicates whether or not multiple captures are supported.
316
563
  attr_reader :status
564
+
565
+ def self.inner_class_types
566
+ @inner_class_types = {}
567
+ end
568
+
569
+ def self.field_remappings
570
+ @field_remappings = {}
571
+ end
317
572
  end
318
573
 
319
574
  class NetworkToken < Stripe::StripeObject
320
575
  # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
321
576
  attr_reader :used
577
+
578
+ def self.inner_class_types
579
+ @inner_class_types = {}
580
+ end
581
+
582
+ def self.field_remappings
583
+ @field_remappings = {}
584
+ end
322
585
  end
323
586
 
324
587
  class Overcapture < Stripe::StripeObject
@@ -326,6 +589,27 @@ module Stripe
326
589
  attr_reader :maximum_amount_capturable
327
590
  # Indicates whether or not the authorized amount can be over-captured.
328
591
  attr_reader :status
592
+
593
+ def self.inner_class_types
594
+ @inner_class_types = {}
595
+ end
596
+
597
+ def self.field_remappings
598
+ @field_remappings = {}
599
+ end
600
+ end
601
+
602
+ class PartialAuthorization < Stripe::StripeObject
603
+ # Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
604
+ attr_reader :status
605
+
606
+ def self.inner_class_types
607
+ @inner_class_types = {}
608
+ end
609
+
610
+ def self.field_remappings
611
+ @field_remappings = {}
612
+ end
329
613
  end
330
614
 
331
615
  class ThreeDSecure < Stripe::StripeObject
@@ -350,13 +634,56 @@ module Stripe
350
634
  attr_reader :transaction_id
351
635
  # The version of 3D Secure that was used.
352
636
  attr_reader :version
637
+
638
+ def self.inner_class_types
639
+ @inner_class_types = {}
640
+ end
641
+
642
+ def self.field_remappings
643
+ @field_remappings = {}
644
+ end
353
645
  end
354
646
 
355
647
  class Wallet < Stripe::StripeObject
356
- class AmexExpressCheckout < Stripe::StripeObject; end
357
- class ApplePay < Stripe::StripeObject; end
358
- class GooglePay < Stripe::StripeObject; end
359
- class Link < Stripe::StripeObject; end
648
+ class AmexExpressCheckout < Stripe::StripeObject
649
+ def self.inner_class_types
650
+ @inner_class_types = {}
651
+ end
652
+
653
+ def self.field_remappings
654
+ @field_remappings = {}
655
+ end
656
+ end
657
+
658
+ class ApplePay < Stripe::StripeObject
659
+ def self.inner_class_types
660
+ @inner_class_types = {}
661
+ end
662
+
663
+ def self.field_remappings
664
+ @field_remappings = {}
665
+ end
666
+ end
667
+
668
+ class GooglePay < Stripe::StripeObject
669
+ def self.inner_class_types
670
+ @inner_class_types = {}
671
+ end
672
+
673
+ def self.field_remappings
674
+ @field_remappings = {}
675
+ end
676
+ end
677
+
678
+ class Link < Stripe::StripeObject
679
+ def self.inner_class_types
680
+ @inner_class_types = {}
681
+ end
682
+
683
+ def self.field_remappings
684
+ @field_remappings = {}
685
+ end
686
+ end
360
687
 
361
688
  class Masterpass < Stripe::StripeObject
362
689
  class BillingAddress < Stripe::StripeObject
@@ -372,6 +699,14 @@ module Stripe
372
699
  attr_reader :postal_code
373
700
  # State, county, province, or region.
374
701
  attr_reader :state
702
+
703
+ def self.inner_class_types
704
+ @inner_class_types = {}
705
+ end
706
+
707
+ def self.field_remappings
708
+ @field_remappings = {}
709
+ end
375
710
  end
376
711
 
377
712
  class ShippingAddress < Stripe::StripeObject
@@ -387,6 +722,14 @@ module Stripe
387
722
  attr_reader :postal_code
388
723
  # State, county, province, or region.
389
724
  attr_reader :state
725
+
726
+ def self.inner_class_types
727
+ @inner_class_types = {}
728
+ end
729
+
730
+ def self.field_remappings
731
+ @field_remappings = {}
732
+ end
390
733
  end
391
734
  # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
392
735
  attr_reader :billing_address
@@ -396,9 +739,28 @@ module Stripe
396
739
  attr_reader :name
397
740
  # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
398
741
  attr_reader :shipping_address
742
+
743
+ def self.inner_class_types
744
+ @inner_class_types = {
745
+ billing_address: BillingAddress,
746
+ shipping_address: ShippingAddress,
747
+ }
748
+ end
749
+
750
+ def self.field_remappings
751
+ @field_remappings = {}
752
+ end
399
753
  end
400
754
 
401
- class SamsungPay < Stripe::StripeObject; end
755
+ class SamsungPay < Stripe::StripeObject
756
+ def self.inner_class_types
757
+ @inner_class_types = {}
758
+ end
759
+
760
+ def self.field_remappings
761
+ @field_remappings = {}
762
+ end
763
+ end
402
764
 
403
765
  class VisaCheckout < Stripe::StripeObject
404
766
  class BillingAddress < Stripe::StripeObject
@@ -414,6 +776,14 @@ module Stripe
414
776
  attr_reader :postal_code
415
777
  # State, county, province, or region.
416
778
  attr_reader :state
779
+
780
+ def self.inner_class_types
781
+ @inner_class_types = {}
782
+ end
783
+
784
+ def self.field_remappings
785
+ @field_remappings = {}
786
+ end
417
787
  end
418
788
 
419
789
  class ShippingAddress < Stripe::StripeObject
@@ -429,6 +799,14 @@ module Stripe
429
799
  attr_reader :postal_code
430
800
  # State, county, province, or region.
431
801
  attr_reader :state
802
+
803
+ def self.inner_class_types
804
+ @inner_class_types = {}
805
+ end
806
+
807
+ def self.field_remappings
808
+ @field_remappings = {}
809
+ end
432
810
  end
433
811
  # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
434
812
  attr_reader :billing_address
@@ -438,6 +816,17 @@ module Stripe
438
816
  attr_reader :name
439
817
  # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
440
818
  attr_reader :shipping_address
819
+
820
+ def self.inner_class_types
821
+ @inner_class_types = {
822
+ billing_address: BillingAddress,
823
+ shipping_address: ShippingAddress,
824
+ }
825
+ end
826
+
827
+ def self.field_remappings
828
+ @field_remappings = {}
829
+ end
441
830
  end
442
831
  # Attribute for field amex_express_checkout
443
832
  attr_reader :amex_express_checkout
@@ -457,9 +846,27 @@ module Stripe
457
846
  attr_reader :type
458
847
  # Attribute for field visa_checkout
459
848
  attr_reader :visa_checkout
849
+
850
+ def self.inner_class_types
851
+ @inner_class_types = {
852
+ amex_express_checkout: AmexExpressCheckout,
853
+ apple_pay: ApplePay,
854
+ google_pay: GooglePay,
855
+ link: Link,
856
+ masterpass: Masterpass,
857
+ samsung_pay: SamsungPay,
858
+ visa_checkout: VisaCheckout,
859
+ }
860
+ end
861
+
862
+ def self.field_remappings
863
+ @field_remappings = {}
864
+ end
460
865
  end
461
866
  # The authorized amount.
462
867
  attr_reader :amount_authorized
868
+ # The latest amount intended to be authorized by this charge.
869
+ attr_reader :amount_requested
463
870
  # Authorization code on the charge.
464
871
  attr_reader :authorization_code
465
872
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
@@ -470,6 +877,8 @@ module Stripe
470
877
  attr_reader :checks
471
878
  # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
472
879
  attr_reader :country
880
+ # Attribute for field decremental_authorization
881
+ attr_reader :decremental_authorization
473
882
  # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
474
883
  attr_reader :description
475
884
  # Two-digit number representing the card's expiration month.
@@ -510,12 +919,34 @@ module Stripe
510
919
  attr_reader :network_transaction_id
511
920
  # Attribute for field overcapture
512
921
  attr_reader :overcapture
922
+ # Attribute for field partial_authorization
923
+ attr_reader :partial_authorization
513
924
  # Status of a card based on the card issuer.
514
925
  attr_reader :regulated_status
515
926
  # Populated if this transaction used 3D Secure authentication.
516
927
  attr_reader :three_d_secure
517
928
  # If this Card is part of a card wallet, this contains the details of the card wallet.
518
929
  attr_reader :wallet
930
+
931
+ def self.inner_class_types
932
+ @inner_class_types = {
933
+ checks: Checks,
934
+ decremental_authorization: DecrementalAuthorization,
935
+ extended_authorization: ExtendedAuthorization,
936
+ incremental_authorization: IncrementalAuthorization,
937
+ installments: Installments,
938
+ multicapture: Multicapture,
939
+ network_token: NetworkToken,
940
+ overcapture: Overcapture,
941
+ partial_authorization: PartialAuthorization,
942
+ three_d_secure: ThreeDSecure,
943
+ wallet: Wallet,
944
+ }
945
+ end
946
+
947
+ def self.field_remappings
948
+ @field_remappings = {}
949
+ end
519
950
  end
520
951
 
521
952
  class CardPresent < Stripe::StripeObject
@@ -524,6 +955,14 @@ module Stripe
524
955
  attr_reader :stored_at
525
956
  # The method used to process this payment method offline. Only deferred is allowed.
526
957
  attr_reader :type
958
+
959
+ def self.inner_class_types
960
+ @inner_class_types = {}
961
+ end
962
+
963
+ def self.field_remappings
964
+ @field_remappings = {}
965
+ end
527
966
  end
528
967
 
529
968
  class Receipt < Stripe::StripeObject
@@ -545,11 +984,27 @@ module Stripe
545
984
  attr_reader :terminal_verification_results
546
985
  # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
547
986
  attr_reader :transaction_status_information
987
+
988
+ def self.inner_class_types
989
+ @inner_class_types = {}
990
+ end
991
+
992
+ def self.field_remappings
993
+ @field_remappings = {}
994
+ end
548
995
  end
549
996
 
550
997
  class Wallet < Stripe::StripeObject
551
998
  # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
552
999
  attr_reader :type
1000
+
1001
+ def self.inner_class_types
1002
+ @inner_class_types = {}
1003
+ end
1004
+
1005
+ def self.field_remappings
1006
+ @field_remappings = {}
1007
+ end
553
1008
  end
554
1009
  # The authorized amount
555
1010
  attr_reader :amount_authorized
@@ -603,6 +1058,14 @@ module Stripe
603
1058
  attr_reader :receipt
604
1059
  # Attribute for field wallet
605
1060
  attr_reader :wallet
1061
+
1062
+ def self.inner_class_types
1063
+ @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
1064
+ end
1065
+
1066
+ def self.field_remappings
1067
+ @field_remappings = {}
1068
+ end
606
1069
  end
607
1070
 
608
1071
  class Cashapp < Stripe::StripeObject
@@ -612,6 +1075,14 @@ module Stripe
612
1075
  attr_reader :cashtag
613
1076
  # A unique and immutable identifier of payments assigned by Cash App
614
1077
  attr_reader :transaction_id
1078
+
1079
+ def self.inner_class_types
1080
+ @inner_class_types = {}
1081
+ end
1082
+
1083
+ def self.field_remappings
1084
+ @field_remappings = {}
1085
+ end
615
1086
  end
616
1087
 
617
1088
  class Crypto < Stripe::StripeObject
@@ -623,9 +1094,25 @@ module Stripe
623
1094
  attr_reader :token_currency
624
1095
  # The blockchain transaction hash of the crypto payment.
625
1096
  attr_reader :transaction_hash
1097
+
1098
+ def self.inner_class_types
1099
+ @inner_class_types = {}
1100
+ end
1101
+
1102
+ def self.field_remappings
1103
+ @field_remappings = {}
1104
+ end
626
1105
  end
627
1106
 
628
- class CustomerBalance < Stripe::StripeObject; end
1107
+ class CustomerBalance < Stripe::StripeObject
1108
+ def self.inner_class_types
1109
+ @inner_class_types = {}
1110
+ end
1111
+
1112
+ def self.field_remappings
1113
+ @field_remappings = {}
1114
+ end
1115
+ end
629
1116
 
630
1117
  class Eps < Stripe::StripeObject
631
1118
  # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
@@ -634,6 +1121,14 @@ module Stripe
634
1121
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
635
1122
  # EPS rarely provides this information so the attribute is usually empty.
636
1123
  attr_reader :verified_name
1124
+
1125
+ def self.inner_class_types
1126
+ @inner_class_types = {}
1127
+ end
1128
+
1129
+ def self.field_remappings
1130
+ @field_remappings = {}
1131
+ end
637
1132
  end
638
1133
 
639
1134
  class Fpx < Stripe::StripeObject
@@ -643,6 +1138,14 @@ module Stripe
643
1138
  attr_reader :bank
644
1139
  # Unique transaction id generated by FPX for every request from the merchant
645
1140
  attr_reader :transaction_id
1141
+
1142
+ def self.inner_class_types
1143
+ @inner_class_types = {}
1144
+ end
1145
+
1146
+ def self.field_remappings
1147
+ @field_remappings = {}
1148
+ end
646
1149
  end
647
1150
 
648
1151
  class Giropay < Stripe::StripeObject
@@ -656,11 +1159,58 @@ module Stripe
656
1159
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
657
1160
  # Giropay rarely provides this information so the attribute is usually empty.
658
1161
  attr_reader :verified_name
1162
+
1163
+ def self.inner_class_types
1164
+ @inner_class_types = {}
1165
+ end
1166
+
1167
+ def self.field_remappings
1168
+ @field_remappings = {}
1169
+ end
1170
+ end
1171
+
1172
+ class Gopay < Stripe::StripeObject
1173
+ def self.inner_class_types
1174
+ @inner_class_types = {}
1175
+ end
1176
+
1177
+ def self.field_remappings
1178
+ @field_remappings = {}
1179
+ end
659
1180
  end
660
1181
 
661
1182
  class Grabpay < Stripe::StripeObject
662
1183
  # Unique transaction id generated by GrabPay
663
1184
  attr_reader :transaction_id
1185
+
1186
+ def self.inner_class_types
1187
+ @inner_class_types = {}
1188
+ end
1189
+
1190
+ def self.field_remappings
1191
+ @field_remappings = {}
1192
+ end
1193
+ end
1194
+
1195
+ class IdBankTransfer < Stripe::StripeObject
1196
+ # Account number of the bank account to transfer funds to.
1197
+ attr_reader :account_number
1198
+ # Bank where the account is located.
1199
+ attr_reader :bank
1200
+ # Local bank code of the bank.
1201
+ attr_reader :bank_code
1202
+ # Name of the bank associated with the bank account.
1203
+ attr_reader :bank_name
1204
+ # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
1205
+ attr_reader :display_name
1206
+
1207
+ def self.inner_class_types
1208
+ @inner_class_types = {}
1209
+ end
1210
+
1211
+ def self.field_remappings
1212
+ @field_remappings = {}
1213
+ end
664
1214
  end
665
1215
 
666
1216
  class Ideal < Stripe::StripeObject
@@ -677,6 +1227,14 @@ module Stripe
677
1227
  # Owner's verified full name. Values are verified or provided by iDEAL directly
678
1228
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
679
1229
  attr_reader :verified_name
1230
+
1231
+ def self.inner_class_types
1232
+ @inner_class_types = {}
1233
+ end
1234
+
1235
+ def self.field_remappings
1236
+ @field_remappings = {}
1237
+ end
680
1238
  end
681
1239
 
682
1240
  class InteracPresent < Stripe::StripeObject
@@ -699,6 +1257,14 @@ module Stripe
699
1257
  attr_reader :terminal_verification_results
700
1258
  # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
701
1259
  attr_reader :transaction_status_information
1260
+
1261
+ def self.inner_class_types
1262
+ @inner_class_types = {}
1263
+ end
1264
+
1265
+ def self.field_remappings
1266
+ @field_remappings = {}
1267
+ end
702
1268
  end
703
1269
  # Card brand. Can be `interac`, `mastercard` or `visa`.
704
1270
  attr_reader :brand
@@ -738,6 +1304,14 @@ module Stripe
738
1304
  attr_reader :read_method
739
1305
  # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
740
1306
  attr_reader :receipt
1307
+
1308
+ def self.inner_class_types
1309
+ @inner_class_types = { receipt: Receipt }
1310
+ end
1311
+
1312
+ def self.field_remappings
1313
+ @field_remappings = {}
1314
+ end
741
1315
  end
742
1316
 
743
1317
  class KakaoPay < Stripe::StripeObject
@@ -745,6 +1319,14 @@ module Stripe
745
1319
  attr_reader :buyer_id
746
1320
  # The Kakao Pay transaction ID associated with this payment.
747
1321
  attr_reader :transaction_id
1322
+
1323
+ def self.inner_class_types
1324
+ @inner_class_types = {}
1325
+ end
1326
+
1327
+ def self.field_remappings
1328
+ @field_remappings = {}
1329
+ end
748
1330
  end
749
1331
 
750
1332
  class Klarna < Stripe::StripeObject
@@ -752,9 +1334,25 @@ module Stripe
752
1334
  class Address < Stripe::StripeObject
753
1335
  # The payer address country
754
1336
  attr_reader :country
1337
+
1338
+ def self.inner_class_types
1339
+ @inner_class_types = {}
1340
+ end
1341
+
1342
+ def self.field_remappings
1343
+ @field_remappings = {}
1344
+ end
755
1345
  end
756
1346
  # The payer's address
757
1347
  attr_reader :address
1348
+
1349
+ def self.inner_class_types
1350
+ @inner_class_types = { address: Address }
1351
+ end
1352
+
1353
+ def self.field_remappings
1354
+ @field_remappings = {}
1355
+ end
758
1356
  end
759
1357
  # The payer details for this transaction.
760
1358
  attr_reader :payer_details
@@ -764,15 +1362,39 @@ module Stripe
764
1362
  # Preferred language of the Klarna authorization page that the customer is redirected to.
765
1363
  # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
766
1364
  attr_reader :preferred_locale
1365
+
1366
+ def self.inner_class_types
1367
+ @inner_class_types = { payer_details: PayerDetails }
1368
+ end
1369
+
1370
+ def self.field_remappings
1371
+ @field_remappings = {}
1372
+ end
767
1373
  end
768
1374
 
769
1375
  class Konbini < Stripe::StripeObject
770
1376
  class Store < Stripe::StripeObject
771
1377
  # The name of the convenience store chain where the payment was completed.
772
1378
  attr_reader :chain
1379
+
1380
+ def self.inner_class_types
1381
+ @inner_class_types = {}
1382
+ end
1383
+
1384
+ def self.field_remappings
1385
+ @field_remappings = {}
1386
+ end
773
1387
  end
774
1388
  # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
775
1389
  attr_reader :store
1390
+
1391
+ def self.inner_class_types
1392
+ @inner_class_types = { store: Store }
1393
+ end
1394
+
1395
+ def self.field_remappings
1396
+ @field_remappings = {}
1397
+ end
776
1398
  end
777
1399
 
778
1400
  class KrCard < Stripe::StripeObject
@@ -784,12 +1406,38 @@ module Stripe
784
1406
  attr_reader :last4
785
1407
  # The Korean Card transaction ID associated with this payment.
786
1408
  attr_reader :transaction_id
1409
+
1410
+ def self.inner_class_types
1411
+ @inner_class_types = {}
1412
+ end
1413
+
1414
+ def self.field_remappings
1415
+ @field_remappings = {}
1416
+ end
787
1417
  end
788
1418
 
789
1419
  class Link < Stripe::StripeObject
790
1420
  # Two-letter ISO code representing the funding source country beneath the Link payment.
791
1421
  # You could use this attribute to get a sense of international fees.
792
1422
  attr_reader :country
1423
+
1424
+ def self.inner_class_types
1425
+ @inner_class_types = {}
1426
+ end
1427
+
1428
+ def self.field_remappings
1429
+ @field_remappings = {}
1430
+ end
1431
+ end
1432
+
1433
+ class MbWay < Stripe::StripeObject
1434
+ def self.inner_class_types
1435
+ @inner_class_types = {}
1436
+ end
1437
+
1438
+ def self.field_remappings
1439
+ @field_remappings = {}
1440
+ end
793
1441
  end
794
1442
 
795
1443
  class Mobilepay < Stripe::StripeObject
@@ -804,9 +1452,25 @@ module Stripe
804
1452
  attr_reader :exp_year
805
1453
  # The last 4 digits of the card
806
1454
  attr_reader :last4
1455
+
1456
+ def self.inner_class_types
1457
+ @inner_class_types = {}
1458
+ end
1459
+
1460
+ def self.field_remappings
1461
+ @field_remappings = {}
1462
+ end
807
1463
  end
808
1464
  # Internal card details
809
1465
  attr_reader :card
1466
+
1467
+ def self.inner_class_types
1468
+ @inner_class_types = { card: Card }
1469
+ end
1470
+
1471
+ def self.field_remappings
1472
+ @field_remappings = {}
1473
+ end
810
1474
  end
811
1475
 
812
1476
  class Multibanco < Stripe::StripeObject
@@ -814,6 +1478,14 @@ module Stripe
814
1478
  attr_reader :entity
815
1479
  # Reference number associated with this Multibanco payment.
816
1480
  attr_reader :reference
1481
+
1482
+ def self.inner_class_types
1483
+ @inner_class_types = {}
1484
+ end
1485
+
1486
+ def self.field_remappings
1487
+ @field_remappings = {}
1488
+ end
817
1489
  end
818
1490
 
819
1491
  class NaverPay < Stripe::StripeObject
@@ -821,6 +1493,14 @@ module Stripe
821
1493
  attr_reader :buyer_id
822
1494
  # The Naver Pay transaction ID associated with this payment.
823
1495
  attr_reader :transaction_id
1496
+
1497
+ def self.inner_class_types
1498
+ @inner_class_types = {}
1499
+ end
1500
+
1501
+ def self.field_remappings
1502
+ @field_remappings = {}
1503
+ end
824
1504
  end
825
1505
 
826
1506
  class NzBankAccount < Stripe::StripeObject
@@ -836,11 +1516,27 @@ module Stripe
836
1516
  attr_reader :last4
837
1517
  # The suffix of the bank account number.
838
1518
  attr_reader :suffix
1519
+
1520
+ def self.inner_class_types
1521
+ @inner_class_types = {}
1522
+ end
1523
+
1524
+ def self.field_remappings
1525
+ @field_remappings = {}
1526
+ end
839
1527
  end
840
1528
 
841
1529
  class Oxxo < Stripe::StripeObject
842
1530
  # OXXO reference number
843
1531
  attr_reader :number
1532
+
1533
+ def self.inner_class_types
1534
+ @inner_class_types = {}
1535
+ end
1536
+
1537
+ def self.field_remappings
1538
+ @field_remappings = {}
1539
+ end
844
1540
  end
845
1541
 
846
1542
  class P24 < Stripe::StripeObject
@@ -852,24 +1548,52 @@ module Stripe
852
1548
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
853
1549
  # Przelewy24 rarely provides this information so the attribute is usually empty.
854
1550
  attr_reader :verified_name
1551
+
1552
+ def self.inner_class_types
1553
+ @inner_class_types = {}
1554
+ end
1555
+
1556
+ def self.field_remappings
1557
+ @field_remappings = {}
1558
+ end
855
1559
  end
856
1560
 
857
- class PayByBank < Stripe::StripeObject; end
1561
+ class PayByBank < Stripe::StripeObject
1562
+ def self.inner_class_types
1563
+ @inner_class_types = {}
1564
+ end
1565
+
1566
+ def self.field_remappings
1567
+ @field_remappings = {}
1568
+ end
1569
+ end
858
1570
 
859
1571
  class Payco < Stripe::StripeObject
860
1572
  # A unique identifier for the buyer as determined by the local payment processor.
861
1573
  attr_reader :buyer_id
862
1574
  # The Payco transaction ID associated with this payment.
863
1575
  attr_reader :transaction_id
1576
+
1577
+ def self.inner_class_types
1578
+ @inner_class_types = {}
1579
+ end
1580
+
1581
+ def self.field_remappings
1582
+ @field_remappings = {}
1583
+ end
864
1584
  end
865
1585
 
866
1586
  class Paynow < Stripe::StripeObject
867
- # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
868
- attr_reader :location
869
- # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
870
- attr_reader :reader
871
1587
  # Reference number associated with this PayNow payment
872
1588
  attr_reader :reference
1589
+
1590
+ def self.inner_class_types
1591
+ @inner_class_types = {}
1592
+ end
1593
+
1594
+ def self.field_remappings
1595
+ @field_remappings = {}
1596
+ end
873
1597
  end
874
1598
 
875
1599
  class Paypal < Stripe::StripeObject
@@ -878,6 +1602,60 @@ module Stripe
878
1602
  attr_reader :dispute_categories
879
1603
  # Indicates whether the transaction is eligible for PayPal's seller protection.
880
1604
  attr_reader :status
1605
+
1606
+ def self.inner_class_types
1607
+ @inner_class_types = {}
1608
+ end
1609
+
1610
+ def self.field_remappings
1611
+ @field_remappings = {}
1612
+ end
1613
+ end
1614
+
1615
+ class Shipping < Stripe::StripeObject
1616
+ # City, district, suburb, town, or village.
1617
+ attr_reader :city
1618
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1619
+ attr_reader :country
1620
+ # Address line 1 (e.g., street, PO Box, or company name).
1621
+ attr_reader :line1
1622
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1623
+ attr_reader :line2
1624
+ # ZIP or postal code.
1625
+ attr_reader :postal_code
1626
+ # State, county, province, or region.
1627
+ attr_reader :state
1628
+
1629
+ def self.inner_class_types
1630
+ @inner_class_types = {}
1631
+ end
1632
+
1633
+ def self.field_remappings
1634
+ @field_remappings = {}
1635
+ end
1636
+ end
1637
+
1638
+ class VerifiedAddress < Stripe::StripeObject
1639
+ # City, district, suburb, town, or village.
1640
+ attr_reader :city
1641
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1642
+ attr_reader :country
1643
+ # Address line 1 (e.g., street, PO Box, or company name).
1644
+ attr_reader :line1
1645
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1646
+ attr_reader :line2
1647
+ # ZIP or postal code.
1648
+ attr_reader :postal_code
1649
+ # State, county, province, or region.
1650
+ attr_reader :state
1651
+
1652
+ def self.inner_class_types
1653
+ @inner_class_types = {}
1654
+ end
1655
+
1656
+ def self.field_remappings
1657
+ @field_remappings = {}
1658
+ end
881
1659
  end
882
1660
  # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
883
1661
  attr_reader :country
@@ -891,18 +1669,101 @@ module Stripe
891
1669
  attr_reader :payer_name
892
1670
  # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
893
1671
  attr_reader :seller_protection
1672
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
1673
+ # execution. This shipping address will not be updated if the merchant updates the shipping
1674
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1675
+ attr_reader :shipping
894
1676
  # A unique ID generated by PayPal for this transaction.
895
1677
  attr_reader :transaction_id
1678
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
1679
+ # execution. This shipping address will not be updated if the merchant updates the shipping
1680
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1681
+ attr_reader :verified_address
1682
+ # Owner's verified email. Values are verified or provided by PayPal directly
1683
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1684
+ attr_reader :verified_email
1685
+ # Owner's verified full name. Values are verified or provided by PayPal directly
1686
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1687
+ attr_reader :verified_name
1688
+
1689
+ def self.inner_class_types
1690
+ @inner_class_types = {
1691
+ seller_protection: SellerProtection,
1692
+ shipping: Shipping,
1693
+ verified_address: VerifiedAddress,
1694
+ }
1695
+ end
1696
+
1697
+ def self.field_remappings
1698
+ @field_remappings = {}
1699
+ end
1700
+ end
1701
+
1702
+ class Payto < Stripe::StripeObject
1703
+ # Bank-State-Branch number of the bank account.
1704
+ attr_reader :bsb_number
1705
+ # Last four digits of the bank account number.
1706
+ attr_reader :last4
1707
+ # ID of the mandate used to make this payment.
1708
+ attr_reader :mandate
1709
+ # The PayID alias for the bank account.
1710
+ attr_reader :pay_id
1711
+
1712
+ def self.inner_class_types
1713
+ @inner_class_types = {}
1714
+ end
1715
+
1716
+ def self.field_remappings
1717
+ @field_remappings = {}
1718
+ end
896
1719
  end
897
1720
 
898
1721
  class Pix < Stripe::StripeObject
899
1722
  # Unique transaction id generated by BCB
900
1723
  attr_reader :bank_transaction_id
1724
+ # ID of the multi use Mandate generated by the PaymentIntent
1725
+ attr_reader :mandate
1726
+
1727
+ def self.inner_class_types
1728
+ @inner_class_types = {}
1729
+ end
1730
+
1731
+ def self.field_remappings
1732
+ @field_remappings = {}
1733
+ end
901
1734
  end
902
1735
 
903
1736
  class Promptpay < Stripe::StripeObject
904
1737
  # Bill reference generated by PromptPay
905
1738
  attr_reader :reference
1739
+
1740
+ def self.inner_class_types
1741
+ @inner_class_types = {}
1742
+ end
1743
+
1744
+ def self.field_remappings
1745
+ @field_remappings = {}
1746
+ end
1747
+ end
1748
+
1749
+ class Qris < Stripe::StripeObject
1750
+ def self.inner_class_types
1751
+ @inner_class_types = {}
1752
+ end
1753
+
1754
+ def self.field_remappings
1755
+ @field_remappings = {}
1756
+ end
1757
+ end
1758
+
1759
+ class Rechnung < Stripe::StripeObject
1760
+ def self.inner_class_types
1761
+ @inner_class_types = {}
1762
+ end
1763
+
1764
+ def self.field_remappings
1765
+ @field_remappings = {}
1766
+ end
906
1767
  end
907
1768
 
908
1769
  class RevolutPay < Stripe::StripeObject
@@ -910,6 +1771,8 @@ module Stripe
910
1771
  class Card < Stripe::StripeObject
911
1772
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
912
1773
  attr_reader :brand
1774
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
1775
+ attr_reader :brand_product
913
1776
  # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
914
1777
  attr_reader :country
915
1778
  # Two-digit number representing the card's expiration month.
@@ -920,16 +1783,40 @@ module Stripe
920
1783
  attr_reader :funding
921
1784
  # The last four digits of the card.
922
1785
  attr_reader :last4
1786
+
1787
+ def self.inner_class_types
1788
+ @inner_class_types = {}
1789
+ end
1790
+
1791
+ def self.field_remappings
1792
+ @field_remappings = {}
1793
+ end
923
1794
  end
924
1795
  # Attribute for field card
925
1796
  attr_reader :card
926
1797
  # funding type of the underlying payment method.
927
1798
  attr_reader :type
1799
+
1800
+ def self.inner_class_types
1801
+ @inner_class_types = { card: Card }
1802
+ end
1803
+
1804
+ def self.field_remappings
1805
+ @field_remappings = {}
1806
+ end
928
1807
  end
929
1808
  # Attribute for field funding
930
1809
  attr_reader :funding
931
1810
  # The Revolut Pay transaction ID associated with this payment.
932
1811
  attr_reader :transaction_id
1812
+
1813
+ def self.inner_class_types
1814
+ @inner_class_types = { funding: Funding }
1815
+ end
1816
+
1817
+ def self.field_remappings
1818
+ @field_remappings = {}
1819
+ end
933
1820
  end
934
1821
 
935
1822
  class SamsungPay < Stripe::StripeObject
@@ -937,11 +1824,27 @@ module Stripe
937
1824
  attr_reader :buyer_id
938
1825
  # The Samsung Pay transaction ID associated with this payment.
939
1826
  attr_reader :transaction_id
1827
+
1828
+ def self.inner_class_types
1829
+ @inner_class_types = {}
1830
+ end
1831
+
1832
+ def self.field_remappings
1833
+ @field_remappings = {}
1834
+ end
940
1835
  end
941
1836
 
942
1837
  class Satispay < Stripe::StripeObject
943
1838
  # The Satispay transaction ID associated with this payment.
944
1839
  attr_reader :transaction_id
1840
+
1841
+ def self.inner_class_types
1842
+ @inner_class_types = {}
1843
+ end
1844
+
1845
+ def self.field_remappings
1846
+ @field_remappings = {}
1847
+ end
945
1848
  end
946
1849
 
947
1850
  class SepaCreditTransfer < Stripe::StripeObject
@@ -951,6 +1854,14 @@ module Stripe
951
1854
  attr_reader :bic
952
1855
  # IBAN of the bank account to transfer funds to.
953
1856
  attr_reader :iban
1857
+
1858
+ def self.inner_class_types
1859
+ @inner_class_types = {}
1860
+ end
1861
+
1862
+ def self.field_remappings
1863
+ @field_remappings = {}
1864
+ end
954
1865
  end
955
1866
 
956
1867
  class SepaDebit < Stripe::StripeObject
@@ -966,6 +1877,24 @@ module Stripe
966
1877
  attr_reader :last4
967
1878
  # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve).
968
1879
  attr_reader :mandate
1880
+
1881
+ def self.inner_class_types
1882
+ @inner_class_types = {}
1883
+ end
1884
+
1885
+ def self.field_remappings
1886
+ @field_remappings = {}
1887
+ end
1888
+ end
1889
+
1890
+ class Shopeepay < Stripe::StripeObject
1891
+ def self.inner_class_types
1892
+ @inner_class_types = {}
1893
+ end
1894
+
1895
+ def self.field_remappings
1896
+ @field_remappings = {}
1897
+ end
969
1898
  end
970
1899
 
971
1900
  class Sofort < Stripe::StripeObject
@@ -989,9 +1918,40 @@ module Stripe
989
1918
  # Owner's verified full name. Values are verified or provided by SOFORT directly
990
1919
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
991
1920
  attr_reader :verified_name
1921
+
1922
+ def self.inner_class_types
1923
+ @inner_class_types = {}
1924
+ end
1925
+
1926
+ def self.field_remappings
1927
+ @field_remappings = {}
1928
+ end
992
1929
  end
993
1930
 
994
- class StripeAccount < Stripe::StripeObject; end
1931
+ class StripeAccount < Stripe::StripeObject
1932
+ def self.inner_class_types
1933
+ @inner_class_types = {}
1934
+ end
1935
+
1936
+ def self.field_remappings
1937
+ @field_remappings = {}
1938
+ end
1939
+ end
1940
+
1941
+ class StripeBalance < Stripe::StripeObject
1942
+ # The connected account ID whose Stripe balance to use as the source of payment
1943
+ attr_reader :account
1944
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1945
+ attr_reader :source_type
1946
+
1947
+ def self.inner_class_types
1948
+ @inner_class_types = {}
1949
+ end
1950
+
1951
+ def self.field_remappings
1952
+ @field_remappings = {}
1953
+ end
1954
+ end
995
1955
 
996
1956
  class Swish < Stripe::StripeObject
997
1957
  # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
@@ -1000,9 +1960,25 @@ module Stripe
1000
1960
  attr_reader :payment_reference
1001
1961
  # The last four digits of the Swish account phone number
1002
1962
  attr_reader :verified_phone_last4
1963
+
1964
+ def self.inner_class_types
1965
+ @inner_class_types = {}
1966
+ end
1967
+
1968
+ def self.field_remappings
1969
+ @field_remappings = {}
1970
+ end
1003
1971
  end
1004
1972
 
1005
- class Twint < Stripe::StripeObject; end
1973
+ class Twint < Stripe::StripeObject
1974
+ def self.inner_class_types
1975
+ @inner_class_types = {}
1976
+ end
1977
+
1978
+ def self.field_remappings
1979
+ @field_remappings = {}
1980
+ end
1981
+ end
1006
1982
 
1007
1983
  class UsBankAccount < Stripe::StripeObject
1008
1984
  # Account holder type: individual or company.
@@ -1021,9 +1997,25 @@ module Stripe
1021
1997
  attr_reader :payment_reference
1022
1998
  # Routing number of the bank account.
1023
1999
  attr_reader :routing_number
2000
+
2001
+ def self.inner_class_types
2002
+ @inner_class_types = {}
2003
+ end
2004
+
2005
+ def self.field_remappings
2006
+ @field_remappings = {}
2007
+ end
1024
2008
  end
1025
2009
 
1026
- class Wechat < Stripe::StripeObject; end
2010
+ class Wechat < Stripe::StripeObject
2011
+ def self.inner_class_types
2012
+ @inner_class_types = {}
2013
+ end
2014
+
2015
+ def self.field_remappings
2016
+ @field_remappings = {}
2017
+ end
2018
+ end
1027
2019
 
1028
2020
  class WechatPay < Stripe::StripeObject
1029
2021
  # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
@@ -1034,9 +2026,25 @@ module Stripe
1034
2026
  attr_reader :reader
1035
2027
  # Transaction ID of this particular WeChat Pay transaction.
1036
2028
  attr_reader :transaction_id
2029
+
2030
+ def self.inner_class_types
2031
+ @inner_class_types = {}
2032
+ end
2033
+
2034
+ def self.field_remappings
2035
+ @field_remappings = {}
2036
+ end
1037
2037
  end
1038
2038
 
1039
- class Zip < Stripe::StripeObject; end
2039
+ class Zip < Stripe::StripeObject
2040
+ def self.inner_class_types
2041
+ @inner_class_types = {}
2042
+ end
2043
+
2044
+ def self.field_remappings
2045
+ @field_remappings = {}
2046
+ end
2047
+ end
1040
2048
  # Attribute for field ach_credit_transfer
1041
2049
  attr_reader :ach_credit_transfer
1042
2050
  # Attribute for field ach_debit
@@ -1081,8 +2089,12 @@ module Stripe
1081
2089
  attr_reader :fpx
1082
2090
  # Attribute for field giropay
1083
2091
  attr_reader :giropay
2092
+ # Attribute for field gopay
2093
+ attr_reader :gopay
1084
2094
  # Attribute for field grabpay
1085
2095
  attr_reader :grabpay
2096
+ # Attribute for field id_bank_transfer
2097
+ attr_reader :id_bank_transfer
1086
2098
  # Attribute for field ideal
1087
2099
  attr_reader :ideal
1088
2100
  # Attribute for field interac_present
@@ -1097,6 +2109,8 @@ module Stripe
1097
2109
  attr_reader :kr_card
1098
2110
  # Attribute for field link
1099
2111
  attr_reader :link
2112
+ # Attribute for field mb_way
2113
+ attr_reader :mb_way
1100
2114
  # Attribute for field mobilepay
1101
2115
  attr_reader :mobilepay
1102
2116
  # Attribute for field multibanco
@@ -1117,10 +2131,16 @@ module Stripe
1117
2131
  attr_reader :paynow
1118
2132
  # Attribute for field paypal
1119
2133
  attr_reader :paypal
2134
+ # Attribute for field payto
2135
+ attr_reader :payto
1120
2136
  # Attribute for field pix
1121
2137
  attr_reader :pix
1122
2138
  # Attribute for field promptpay
1123
2139
  attr_reader :promptpay
2140
+ # Attribute for field qris
2141
+ attr_reader :qris
2142
+ # Attribute for field rechnung
2143
+ attr_reader :rechnung
1124
2144
  # Attribute for field revolut_pay
1125
2145
  attr_reader :revolut_pay
1126
2146
  # Attribute for field samsung_pay
@@ -1131,10 +2151,14 @@ module Stripe
1131
2151
  attr_reader :sepa_credit_transfer
1132
2152
  # Attribute for field sepa_debit
1133
2153
  attr_reader :sepa_debit
2154
+ # Attribute for field shopeepay
2155
+ attr_reader :shopeepay
1134
2156
  # Attribute for field sofort
1135
2157
  attr_reader :sofort
1136
2158
  # Attribute for field stripe_account
1137
2159
  attr_reader :stripe_account
2160
+ # Attribute for field stripe_balance
2161
+ attr_reader :stripe_balance
1138
2162
  # Attribute for field swish
1139
2163
  attr_reader :swish
1140
2164
  # Attribute for field twint
@@ -1151,6 +2175,78 @@ module Stripe
1151
2175
  attr_reader :wechat_pay
1152
2176
  # Attribute for field zip
1153
2177
  attr_reader :zip
2178
+
2179
+ def self.inner_class_types
2180
+ @inner_class_types = {
2181
+ ach_credit_transfer: AchCreditTransfer,
2182
+ ach_debit: AchDebit,
2183
+ acss_debit: AcssDebit,
2184
+ affirm: Affirm,
2185
+ afterpay_clearpay: AfterpayClearpay,
2186
+ alipay: Alipay,
2187
+ alma: Alma,
2188
+ amazon_pay: AmazonPay,
2189
+ au_becs_debit: AuBecsDebit,
2190
+ bacs_debit: BacsDebit,
2191
+ bancontact: Bancontact,
2192
+ billie: Billie,
2193
+ blik: Blik,
2194
+ boleto: Boleto,
2195
+ card: Card,
2196
+ card_present: CardPresent,
2197
+ cashapp: Cashapp,
2198
+ crypto: Crypto,
2199
+ customer_balance: CustomerBalance,
2200
+ eps: Eps,
2201
+ fpx: Fpx,
2202
+ giropay: Giropay,
2203
+ gopay: Gopay,
2204
+ grabpay: Grabpay,
2205
+ id_bank_transfer: IdBankTransfer,
2206
+ ideal: Ideal,
2207
+ interac_present: InteracPresent,
2208
+ kakao_pay: KakaoPay,
2209
+ klarna: Klarna,
2210
+ konbini: Konbini,
2211
+ kr_card: KrCard,
2212
+ link: Link,
2213
+ mb_way: MbWay,
2214
+ mobilepay: Mobilepay,
2215
+ multibanco: Multibanco,
2216
+ naver_pay: NaverPay,
2217
+ nz_bank_account: NzBankAccount,
2218
+ oxxo: Oxxo,
2219
+ p24: P24,
2220
+ pay_by_bank: PayByBank,
2221
+ payco: Payco,
2222
+ paynow: Paynow,
2223
+ paypal: Paypal,
2224
+ payto: Payto,
2225
+ pix: Pix,
2226
+ promptpay: Promptpay,
2227
+ qris: Qris,
2228
+ rechnung: Rechnung,
2229
+ revolut_pay: RevolutPay,
2230
+ samsung_pay: SamsungPay,
2231
+ satispay: Satispay,
2232
+ sepa_credit_transfer: SepaCreditTransfer,
2233
+ sepa_debit: SepaDebit,
2234
+ shopeepay: Shopeepay,
2235
+ sofort: Sofort,
2236
+ stripe_account: StripeAccount,
2237
+ stripe_balance: StripeBalance,
2238
+ swish: Swish,
2239
+ twint: Twint,
2240
+ us_bank_account: UsBankAccount,
2241
+ wechat: Wechat,
2242
+ wechat_pay: WechatPay,
2243
+ zip: Zip,
2244
+ }
2245
+ end
2246
+
2247
+ def self.field_remappings
2248
+ @field_remappings = {}
2249
+ end
1154
2250
  end
1155
2251
 
1156
2252
  class PresentmentDetails < Stripe::StripeObject
@@ -1158,11 +2254,27 @@ module Stripe
1158
2254
  attr_reader :presentment_amount
1159
2255
  # Currency presented to the customer during payment.
1160
2256
  attr_reader :presentment_currency
2257
+
2258
+ def self.inner_class_types
2259
+ @inner_class_types = {}
2260
+ end
2261
+
2262
+ def self.field_remappings
2263
+ @field_remappings = {}
2264
+ end
1161
2265
  end
1162
2266
 
1163
2267
  class RadarOptions < Stripe::StripeObject
1164
2268
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
1165
2269
  attr_reader :session
2270
+
2271
+ def self.inner_class_types
2272
+ @inner_class_types = {}
2273
+ end
2274
+
2275
+ def self.field_remappings
2276
+ @field_remappings = {}
2277
+ end
1166
2278
  end
1167
2279
 
1168
2280
  class Shipping < Stripe::StripeObject
@@ -1179,6 +2291,14 @@ module Stripe
1179
2291
  attr_reader :postal_code
1180
2292
  # State, county, province, or region.
1181
2293
  attr_reader :state
2294
+
2295
+ def self.inner_class_types
2296
+ @inner_class_types = {}
2297
+ end
2298
+
2299
+ def self.field_remappings
2300
+ @field_remappings = {}
2301
+ end
1182
2302
  end
1183
2303
  # Attribute for field address
1184
2304
  attr_reader :address
@@ -1190,6 +2310,14 @@ module Stripe
1190
2310
  attr_reader :phone
1191
2311
  # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
1192
2312
  attr_reader :tracking_number
2313
+
2314
+ def self.inner_class_types
2315
+ @inner_class_types = { address: Address }
2316
+ end
2317
+
2318
+ def self.field_remappings
2319
+ @field_remappings = {}
2320
+ end
1193
2321
  end
1194
2322
 
1195
2323
  class TransferData < Stripe::StripeObject
@@ -1197,6 +2325,14 @@ module Stripe
1197
2325
  attr_reader :amount
1198
2326
  # ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.
1199
2327
  attr_reader :destination
2328
+
2329
+ def self.inner_class_types
2330
+ @inner_class_types = {}
2331
+ end
2332
+
2333
+ def self.field_remappings
2334
+ @field_remappings = {}
2335
+ end
1200
2336
  end
1201
2337
 
1202
2338
  class ListParams < Stripe::RequestParams
@@ -1433,6 +2569,711 @@ module Stripe
1433
2569
  end
1434
2570
  end
1435
2571
 
2572
+ class PaymentDetails < Stripe::RequestParams
2573
+ class CarRental < Stripe::RequestParams
2574
+ class Affiliate < Stripe::RequestParams
2575
+ # The name of the affiliate that originated the purchase.
2576
+ attr_accessor :name
2577
+
2578
+ def initialize(name: nil)
2579
+ @name = name
2580
+ end
2581
+ end
2582
+
2583
+ class Delivery < Stripe::RequestParams
2584
+ class Recipient < Stripe::RequestParams
2585
+ # The email of the recipient the ticket is delivered to.
2586
+ attr_accessor :email
2587
+ # The name of the recipient the ticket is delivered to.
2588
+ attr_accessor :name
2589
+ # The phone number of the recipient the ticket is delivered to.
2590
+ attr_accessor :phone
2591
+
2592
+ def initialize(email: nil, name: nil, phone: nil)
2593
+ @email = email
2594
+ @name = name
2595
+ @phone = phone
2596
+ end
2597
+ end
2598
+ # The delivery method for the payment
2599
+ attr_accessor :mode
2600
+ # Details of the recipient.
2601
+ attr_accessor :recipient
2602
+
2603
+ def initialize(mode: nil, recipient: nil)
2604
+ @mode = mode
2605
+ @recipient = recipient
2606
+ end
2607
+ end
2608
+
2609
+ class Distance < Stripe::RequestParams
2610
+ # Distance traveled.
2611
+ attr_accessor :amount
2612
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
2613
+ attr_accessor :unit
2614
+
2615
+ def initialize(amount: nil, unit: nil)
2616
+ @amount = amount
2617
+ @unit = unit
2618
+ end
2619
+ end
2620
+
2621
+ class Driver < Stripe::RequestParams
2622
+ # Driver's identification number.
2623
+ attr_accessor :driver_identification_number
2624
+ # Driver's tax number.
2625
+ attr_accessor :driver_tax_number
2626
+ # Full name of the person or entity on the car reservation.
2627
+ attr_accessor :name
2628
+
2629
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
2630
+ @driver_identification_number = driver_identification_number
2631
+ @driver_tax_number = driver_tax_number
2632
+ @name = name
2633
+ end
2634
+ end
2635
+
2636
+ class PickupAddress < Stripe::RequestParams
2637
+ # City, district, suburb, town, or village.
2638
+ attr_accessor :city
2639
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2640
+ attr_accessor :country
2641
+ # Address line 1 (e.g., street, PO Box, or company name).
2642
+ attr_accessor :line1
2643
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2644
+ attr_accessor :line2
2645
+ # ZIP or postal code.
2646
+ attr_accessor :postal_code
2647
+ # State, county, province, or region.
2648
+ attr_accessor :state
2649
+
2650
+ def initialize(
2651
+ city: nil,
2652
+ country: nil,
2653
+ line1: nil,
2654
+ line2: nil,
2655
+ postal_code: nil,
2656
+ state: nil
2657
+ )
2658
+ @city = city
2659
+ @country = country
2660
+ @line1 = line1
2661
+ @line2 = line2
2662
+ @postal_code = postal_code
2663
+ @state = state
2664
+ end
2665
+ end
2666
+
2667
+ class ReturnAddress < Stripe::RequestParams
2668
+ # City, district, suburb, town, or village.
2669
+ attr_accessor :city
2670
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2671
+ attr_accessor :country
2672
+ # Address line 1 (e.g., street, PO Box, or company name).
2673
+ attr_accessor :line1
2674
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2675
+ attr_accessor :line2
2676
+ # ZIP or postal code.
2677
+ attr_accessor :postal_code
2678
+ # State, county, province, or region.
2679
+ attr_accessor :state
2680
+
2681
+ def initialize(
2682
+ city: nil,
2683
+ country: nil,
2684
+ line1: nil,
2685
+ line2: nil,
2686
+ postal_code: nil,
2687
+ state: nil
2688
+ )
2689
+ @city = city
2690
+ @country = country
2691
+ @line1 = line1
2692
+ @line2 = line2
2693
+ @postal_code = postal_code
2694
+ @state = state
2695
+ end
2696
+ end
2697
+ # Affiliate details for this purchase.
2698
+ attr_accessor :affiliate
2699
+ # The booking number associated with the car rental.
2700
+ attr_accessor :booking_number
2701
+ # Class code of the car.
2702
+ attr_accessor :car_class_code
2703
+ # Make of the car.
2704
+ attr_accessor :car_make
2705
+ # Model of the car.
2706
+ attr_accessor :car_model
2707
+ # The name of the rental car company.
2708
+ attr_accessor :company
2709
+ # The customer service phone number of the car rental company.
2710
+ attr_accessor :customer_service_phone_number
2711
+ # Number of days the car is being rented.
2712
+ attr_accessor :days_rented
2713
+ # Delivery details for this purchase.
2714
+ attr_accessor :delivery
2715
+ # The details of the distance traveled during the rental period.
2716
+ attr_accessor :distance
2717
+ # The details of the passengers in the travel reservation
2718
+ attr_accessor :drivers
2719
+ # List of additional charges being billed.
2720
+ attr_accessor :extra_charges
2721
+ # Indicates if the customer did not keep nor cancel their booking.
2722
+ attr_accessor :no_show
2723
+ # Car pick-up address.
2724
+ attr_accessor :pickup_address
2725
+ # Car pick-up time. Measured in seconds since the Unix epoch.
2726
+ attr_accessor :pickup_at
2727
+ # Name of the pickup location.
2728
+ attr_accessor :pickup_location_name
2729
+ # Rental rate.
2730
+ attr_accessor :rate_amount
2731
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
2732
+ attr_accessor :rate_interval
2733
+ # The name of the person or entity renting the car.
2734
+ attr_accessor :renter_name
2735
+ # Car return address.
2736
+ attr_accessor :return_address
2737
+ # Car return time. Measured in seconds since the Unix epoch.
2738
+ attr_accessor :return_at
2739
+ # Name of the return location.
2740
+ attr_accessor :return_location_name
2741
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
2742
+ attr_accessor :tax_exempt
2743
+ # The vehicle identification number.
2744
+ attr_accessor :vehicle_identification_number
2745
+
2746
+ def initialize(
2747
+ affiliate: nil,
2748
+ booking_number: nil,
2749
+ car_class_code: nil,
2750
+ car_make: nil,
2751
+ car_model: nil,
2752
+ company: nil,
2753
+ customer_service_phone_number: nil,
2754
+ days_rented: nil,
2755
+ delivery: nil,
2756
+ distance: nil,
2757
+ drivers: nil,
2758
+ extra_charges: nil,
2759
+ no_show: nil,
2760
+ pickup_address: nil,
2761
+ pickup_at: nil,
2762
+ pickup_location_name: nil,
2763
+ rate_amount: nil,
2764
+ rate_interval: nil,
2765
+ renter_name: nil,
2766
+ return_address: nil,
2767
+ return_at: nil,
2768
+ return_location_name: nil,
2769
+ tax_exempt: nil,
2770
+ vehicle_identification_number: nil
2771
+ )
2772
+ @affiliate = affiliate
2773
+ @booking_number = booking_number
2774
+ @car_class_code = car_class_code
2775
+ @car_make = car_make
2776
+ @car_model = car_model
2777
+ @company = company
2778
+ @customer_service_phone_number = customer_service_phone_number
2779
+ @days_rented = days_rented
2780
+ @delivery = delivery
2781
+ @distance = distance
2782
+ @drivers = drivers
2783
+ @extra_charges = extra_charges
2784
+ @no_show = no_show
2785
+ @pickup_address = pickup_address
2786
+ @pickup_at = pickup_at
2787
+ @pickup_location_name = pickup_location_name
2788
+ @rate_amount = rate_amount
2789
+ @rate_interval = rate_interval
2790
+ @renter_name = renter_name
2791
+ @return_address = return_address
2792
+ @return_at = return_at
2793
+ @return_location_name = return_location_name
2794
+ @tax_exempt = tax_exempt
2795
+ @vehicle_identification_number = vehicle_identification_number
2796
+ end
2797
+ end
2798
+
2799
+ class EventDetails < Stripe::RequestParams
2800
+ class Address < Stripe::RequestParams
2801
+ # City, district, suburb, town, or village.
2802
+ attr_accessor :city
2803
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2804
+ attr_accessor :country
2805
+ # Address line 1 (e.g., street, PO Box, or company name).
2806
+ attr_accessor :line1
2807
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2808
+ attr_accessor :line2
2809
+ # ZIP or postal code.
2810
+ attr_accessor :postal_code
2811
+ # State, county, province, or region.
2812
+ attr_accessor :state
2813
+
2814
+ def initialize(
2815
+ city: nil,
2816
+ country: nil,
2817
+ line1: nil,
2818
+ line2: nil,
2819
+ postal_code: nil,
2820
+ state: nil
2821
+ )
2822
+ @city = city
2823
+ @country = country
2824
+ @line1 = line1
2825
+ @line2 = line2
2826
+ @postal_code = postal_code
2827
+ @state = state
2828
+ end
2829
+ end
2830
+
2831
+ class Affiliate < Stripe::RequestParams
2832
+ # The name of the affiliate that originated the purchase.
2833
+ attr_accessor :name
2834
+
2835
+ def initialize(name: nil)
2836
+ @name = name
2837
+ end
2838
+ end
2839
+
2840
+ class Delivery < Stripe::RequestParams
2841
+ class Recipient < Stripe::RequestParams
2842
+ # The email of the recipient the ticket is delivered to.
2843
+ attr_accessor :email
2844
+ # The name of the recipient the ticket is delivered to.
2845
+ attr_accessor :name
2846
+ # The phone number of the recipient the ticket is delivered to.
2847
+ attr_accessor :phone
2848
+
2849
+ def initialize(email: nil, name: nil, phone: nil)
2850
+ @email = email
2851
+ @name = name
2852
+ @phone = phone
2853
+ end
2854
+ end
2855
+ # The delivery method for the payment
2856
+ attr_accessor :mode
2857
+ # Details of the recipient.
2858
+ attr_accessor :recipient
2859
+
2860
+ def initialize(mode: nil, recipient: nil)
2861
+ @mode = mode
2862
+ @recipient = recipient
2863
+ end
2864
+ end
2865
+ # Indicates if the tickets are digitally checked when entering the venue.
2866
+ attr_accessor :access_controlled_venue
2867
+ # The event location's address.
2868
+ attr_accessor :address
2869
+ # Affiliate details for this purchase.
2870
+ attr_accessor :affiliate
2871
+ # The name of the company
2872
+ attr_accessor :company
2873
+ # Delivery details for this purchase.
2874
+ attr_accessor :delivery
2875
+ # Event end time. Measured in seconds since the Unix epoch.
2876
+ attr_accessor :ends_at
2877
+ # Type of the event entertainment (concert, sports event etc)
2878
+ attr_accessor :genre
2879
+ # The name of the event.
2880
+ attr_accessor :name
2881
+ # Event start time. Measured in seconds since the Unix epoch.
2882
+ attr_accessor :starts_at
2883
+
2884
+ def initialize(
2885
+ access_controlled_venue: nil,
2886
+ address: nil,
2887
+ affiliate: nil,
2888
+ company: nil,
2889
+ delivery: nil,
2890
+ ends_at: nil,
2891
+ genre: nil,
2892
+ name: nil,
2893
+ starts_at: nil
2894
+ )
2895
+ @access_controlled_venue = access_controlled_venue
2896
+ @address = address
2897
+ @affiliate = affiliate
2898
+ @company = company
2899
+ @delivery = delivery
2900
+ @ends_at = ends_at
2901
+ @genre = genre
2902
+ @name = name
2903
+ @starts_at = starts_at
2904
+ end
2905
+ end
2906
+
2907
+ class Flight < Stripe::RequestParams
2908
+ class Affiliate < Stripe::RequestParams
2909
+ # The name of the affiliate that originated the purchase.
2910
+ attr_accessor :name
2911
+
2912
+ def initialize(name: nil)
2913
+ @name = name
2914
+ end
2915
+ end
2916
+
2917
+ class Delivery < Stripe::RequestParams
2918
+ class Recipient < Stripe::RequestParams
2919
+ # The email of the recipient the ticket is delivered to.
2920
+ attr_accessor :email
2921
+ # The name of the recipient the ticket is delivered to.
2922
+ attr_accessor :name
2923
+ # The phone number of the recipient the ticket is delivered to.
2924
+ attr_accessor :phone
2925
+
2926
+ def initialize(email: nil, name: nil, phone: nil)
2927
+ @email = email
2928
+ @name = name
2929
+ @phone = phone
2930
+ end
2931
+ end
2932
+ # The delivery method for the payment
2933
+ attr_accessor :mode
2934
+ # Details of the recipient.
2935
+ attr_accessor :recipient
2936
+
2937
+ def initialize(mode: nil, recipient: nil)
2938
+ @mode = mode
2939
+ @recipient = recipient
2940
+ end
2941
+ end
2942
+
2943
+ class Passenger < Stripe::RequestParams
2944
+ # Full name of the person or entity on the flight reservation.
2945
+ attr_accessor :name
2946
+
2947
+ def initialize(name: nil)
2948
+ @name = name
2949
+ end
2950
+ end
2951
+
2952
+ class Segment < Stripe::RequestParams
2953
+ # The flight segment amount.
2954
+ attr_accessor :amount
2955
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
2956
+ attr_accessor :arrival_airport
2957
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
2958
+ attr_accessor :arrives_at
2959
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
2960
+ attr_accessor :carrier
2961
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
2962
+ attr_accessor :departs_at
2963
+ # The International Air Transport Association (IATA) airport code for the departure airport.
2964
+ attr_accessor :departure_airport
2965
+ # The flight number associated with the segment
2966
+ attr_accessor :flight_number
2967
+ # The fare class for the segment.
2968
+ attr_accessor :service_class
2969
+
2970
+ def initialize(
2971
+ amount: nil,
2972
+ arrival_airport: nil,
2973
+ arrives_at: nil,
2974
+ carrier: nil,
2975
+ departs_at: nil,
2976
+ departure_airport: nil,
2977
+ flight_number: nil,
2978
+ service_class: nil
2979
+ )
2980
+ @amount = amount
2981
+ @arrival_airport = arrival_airport
2982
+ @arrives_at = arrives_at
2983
+ @carrier = carrier
2984
+ @departs_at = departs_at
2985
+ @departure_airport = departure_airport
2986
+ @flight_number = flight_number
2987
+ @service_class = service_class
2988
+ end
2989
+ end
2990
+ # Affiliate details for this purchase.
2991
+ attr_accessor :affiliate
2992
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
2993
+ attr_accessor :agency_number
2994
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
2995
+ attr_accessor :carrier
2996
+ # Delivery details for this purchase.
2997
+ attr_accessor :delivery
2998
+ # The name of the person or entity on the reservation.
2999
+ attr_accessor :passenger_name
3000
+ # The details of the passengers in the travel reservation.
3001
+ attr_accessor :passengers
3002
+ # The individual flight segments associated with the trip.
3003
+ attr_accessor :segments
3004
+ # The ticket number associated with the travel reservation.
3005
+ attr_accessor :ticket_number
3006
+
3007
+ def initialize(
3008
+ affiliate: nil,
3009
+ agency_number: nil,
3010
+ carrier: nil,
3011
+ delivery: nil,
3012
+ passenger_name: nil,
3013
+ passengers: nil,
3014
+ segments: nil,
3015
+ ticket_number: nil
3016
+ )
3017
+ @affiliate = affiliate
3018
+ @agency_number = agency_number
3019
+ @carrier = carrier
3020
+ @delivery = delivery
3021
+ @passenger_name = passenger_name
3022
+ @passengers = passengers
3023
+ @segments = segments
3024
+ @ticket_number = ticket_number
3025
+ end
3026
+ end
3027
+
3028
+ class Lodging < Stripe::RequestParams
3029
+ class Address < Stripe::RequestParams
3030
+ # City, district, suburb, town, or village.
3031
+ attr_accessor :city
3032
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3033
+ attr_accessor :country
3034
+ # Address line 1 (e.g., street, PO Box, or company name).
3035
+ attr_accessor :line1
3036
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3037
+ attr_accessor :line2
3038
+ # ZIP or postal code.
3039
+ attr_accessor :postal_code
3040
+ # State, county, province, or region.
3041
+ attr_accessor :state
3042
+
3043
+ def initialize(
3044
+ city: nil,
3045
+ country: nil,
3046
+ line1: nil,
3047
+ line2: nil,
3048
+ postal_code: nil,
3049
+ state: nil
3050
+ )
3051
+ @city = city
3052
+ @country = country
3053
+ @line1 = line1
3054
+ @line2 = line2
3055
+ @postal_code = postal_code
3056
+ @state = state
3057
+ end
3058
+ end
3059
+
3060
+ class Affiliate < Stripe::RequestParams
3061
+ # The name of the affiliate that originated the purchase.
3062
+ attr_accessor :name
3063
+
3064
+ def initialize(name: nil)
3065
+ @name = name
3066
+ end
3067
+ end
3068
+
3069
+ class Delivery < Stripe::RequestParams
3070
+ class Recipient < Stripe::RequestParams
3071
+ # The email of the recipient the ticket is delivered to.
3072
+ attr_accessor :email
3073
+ # The name of the recipient the ticket is delivered to.
3074
+ attr_accessor :name
3075
+ # The phone number of the recipient the ticket is delivered to.
3076
+ attr_accessor :phone
3077
+
3078
+ def initialize(email: nil, name: nil, phone: nil)
3079
+ @email = email
3080
+ @name = name
3081
+ @phone = phone
3082
+ end
3083
+ end
3084
+ # The delivery method for the payment
3085
+ attr_accessor :mode
3086
+ # Details of the recipient.
3087
+ attr_accessor :recipient
3088
+
3089
+ def initialize(mode: nil, recipient: nil)
3090
+ @mode = mode
3091
+ @recipient = recipient
3092
+ end
3093
+ end
3094
+
3095
+ class Passenger < Stripe::RequestParams
3096
+ # Full name of the person or entity on the lodging reservation.
3097
+ attr_accessor :name
3098
+
3099
+ def initialize(name: nil)
3100
+ @name = name
3101
+ end
3102
+ end
3103
+ # The lodging location's address.
3104
+ attr_accessor :address
3105
+ # The number of adults on the booking
3106
+ attr_accessor :adults
3107
+ # Affiliate details for this purchase.
3108
+ attr_accessor :affiliate
3109
+ # The booking number associated with the lodging reservation.
3110
+ attr_accessor :booking_number
3111
+ # The lodging category
3112
+ attr_accessor :category
3113
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
3114
+ attr_accessor :checkin_at
3115
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
3116
+ attr_accessor :checkout_at
3117
+ # The customer service phone number of the lodging company.
3118
+ attr_accessor :customer_service_phone_number
3119
+ # The daily lodging room rate.
3120
+ attr_accessor :daily_room_rate_amount
3121
+ # Delivery details for this purchase.
3122
+ attr_accessor :delivery
3123
+ # List of additional charges being billed.
3124
+ attr_accessor :extra_charges
3125
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
3126
+ attr_accessor :fire_safety_act_compliance
3127
+ # The name of the lodging location.
3128
+ attr_accessor :name
3129
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
3130
+ attr_accessor :no_show
3131
+ # The number of rooms on the booking
3132
+ attr_accessor :number_of_rooms
3133
+ # The details of the passengers in the travel reservation
3134
+ attr_accessor :passengers
3135
+ # The phone number of the lodging location.
3136
+ attr_accessor :property_phone_number
3137
+ # The room class for this purchase.
3138
+ attr_accessor :room_class
3139
+ # The number of room nights
3140
+ attr_accessor :room_nights
3141
+ # The total tax amount associating with the room reservation.
3142
+ attr_accessor :total_room_tax_amount
3143
+ # The total tax amount
3144
+ attr_accessor :total_tax_amount
3145
+
3146
+ def initialize(
3147
+ address: nil,
3148
+ adults: nil,
3149
+ affiliate: nil,
3150
+ booking_number: nil,
3151
+ category: nil,
3152
+ checkin_at: nil,
3153
+ checkout_at: nil,
3154
+ customer_service_phone_number: nil,
3155
+ daily_room_rate_amount: nil,
3156
+ delivery: nil,
3157
+ extra_charges: nil,
3158
+ fire_safety_act_compliance: nil,
3159
+ name: nil,
3160
+ no_show: nil,
3161
+ number_of_rooms: nil,
3162
+ passengers: nil,
3163
+ property_phone_number: nil,
3164
+ room_class: nil,
3165
+ room_nights: nil,
3166
+ total_room_tax_amount: nil,
3167
+ total_tax_amount: nil
3168
+ )
3169
+ @address = address
3170
+ @adults = adults
3171
+ @affiliate = affiliate
3172
+ @booking_number = booking_number
3173
+ @category = category
3174
+ @checkin_at = checkin_at
3175
+ @checkout_at = checkout_at
3176
+ @customer_service_phone_number = customer_service_phone_number
3177
+ @daily_room_rate_amount = daily_room_rate_amount
3178
+ @delivery = delivery
3179
+ @extra_charges = extra_charges
3180
+ @fire_safety_act_compliance = fire_safety_act_compliance
3181
+ @name = name
3182
+ @no_show = no_show
3183
+ @number_of_rooms = number_of_rooms
3184
+ @passengers = passengers
3185
+ @property_phone_number = property_phone_number
3186
+ @room_class = room_class
3187
+ @room_nights = room_nights
3188
+ @total_room_tax_amount = total_room_tax_amount
3189
+ @total_tax_amount = total_tax_amount
3190
+ end
3191
+ end
3192
+
3193
+ class Subscription < Stripe::RequestParams
3194
+ class Affiliate < Stripe::RequestParams
3195
+ # The name of the affiliate that originated the purchase.
3196
+ attr_accessor :name
3197
+
3198
+ def initialize(name: nil)
3199
+ @name = name
3200
+ end
3201
+ end
3202
+
3203
+ class BillingInterval < Stripe::RequestParams
3204
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3205
+ attr_accessor :count
3206
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3207
+ attr_accessor :interval
3208
+
3209
+ def initialize(count: nil, interval: nil)
3210
+ @count = count
3211
+ @interval = interval
3212
+ end
3213
+ end
3214
+ # Affiliate details for this purchase.
3215
+ attr_accessor :affiliate
3216
+ # Info whether the subscription will be auto renewed upon expiry.
3217
+ attr_accessor :auto_renewal
3218
+ # Subscription billing details for this purchase.
3219
+ attr_accessor :billing_interval
3220
+ # Subscription end time. Measured in seconds since the Unix epoch.
3221
+ attr_accessor :ends_at
3222
+ # Name of the product on subscription. e.g. Apple Music Subscription
3223
+ attr_accessor :name
3224
+ # Subscription start time. Measured in seconds since the Unix epoch.
3225
+ attr_accessor :starts_at
3226
+
3227
+ def initialize(
3228
+ affiliate: nil,
3229
+ auto_renewal: nil,
3230
+ billing_interval: nil,
3231
+ ends_at: nil,
3232
+ name: nil,
3233
+ starts_at: nil
3234
+ )
3235
+ @affiliate = affiliate
3236
+ @auto_renewal = auto_renewal
3237
+ @billing_interval = billing_interval
3238
+ @ends_at = ends_at
3239
+ @name = name
3240
+ @starts_at = starts_at
3241
+ end
3242
+ end
3243
+ # Car rental details for this PaymentIntent.
3244
+ attr_accessor :car_rental
3245
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
3246
+ attr_accessor :customer_reference
3247
+ # Event details for this PaymentIntent
3248
+ attr_accessor :event_details
3249
+ # Flight reservation details for this PaymentIntent
3250
+ attr_accessor :flight
3251
+ # Lodging reservation details for this PaymentIntent
3252
+ attr_accessor :lodging
3253
+ # A unique value assigned by the business to identify the transaction.
3254
+ attr_accessor :order_reference
3255
+ # Subscription details for this PaymentIntent
3256
+ attr_accessor :subscription
3257
+
3258
+ def initialize(
3259
+ car_rental: nil,
3260
+ customer_reference: nil,
3261
+ event_details: nil,
3262
+ flight: nil,
3263
+ lodging: nil,
3264
+ order_reference: nil,
3265
+ subscription: nil
3266
+ )
3267
+ @car_rental = car_rental
3268
+ @customer_reference = customer_reference
3269
+ @event_details = event_details
3270
+ @flight = flight
3271
+ @lodging = lodging
3272
+ @order_reference = order_reference
3273
+ @subscription = subscription
3274
+ end
3275
+ end
3276
+
1436
3277
  class Shipping < Stripe::RequestParams
1437
3278
  class Address < Stripe::RequestParams
1438
3279
  # City, district, suburb, town, or village.
@@ -1493,6 +3334,8 @@ module Stripe
1493
3334
  attr_accessor :fraud_details
1494
3335
  # 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`.
1495
3336
  attr_accessor :metadata
3337
+ # Provides industry-specific information about the charge.
3338
+ attr_accessor :payment_details
1496
3339
  # This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
1497
3340
  attr_accessor :receipt_email
1498
3341
  # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
@@ -1506,6 +3349,7 @@ module Stripe
1506
3349
  expand: nil,
1507
3350
  fraud_details: nil,
1508
3351
  metadata: nil,
3352
+ payment_details: nil,
1509
3353
  receipt_email: nil,
1510
3354
  shipping: nil,
1511
3355
  transfer_group: nil
@@ -1515,6 +3359,7 @@ module Stripe
1515
3359
  @expand = expand
1516
3360
  @fraud_details = fraud_details
1517
3361
  @metadata = metadata
3362
+ @payment_details = payment_details
1518
3363
  @receipt_email = receipt_email
1519
3364
  @shipping = shipping
1520
3365
  @transfer_group = transfer_group
@@ -1540,6 +3385,711 @@ module Stripe
1540
3385
  end
1541
3386
 
1542
3387
  class CaptureParams < Stripe::RequestParams
3388
+ class PaymentDetails < Stripe::RequestParams
3389
+ class CarRental < Stripe::RequestParams
3390
+ class Affiliate < Stripe::RequestParams
3391
+ # The name of the affiliate that originated the purchase.
3392
+ attr_accessor :name
3393
+
3394
+ def initialize(name: nil)
3395
+ @name = name
3396
+ end
3397
+ end
3398
+
3399
+ class Delivery < Stripe::RequestParams
3400
+ class Recipient < Stripe::RequestParams
3401
+ # The email of the recipient the ticket is delivered to.
3402
+ attr_accessor :email
3403
+ # The name of the recipient the ticket is delivered to.
3404
+ attr_accessor :name
3405
+ # The phone number of the recipient the ticket is delivered to.
3406
+ attr_accessor :phone
3407
+
3408
+ def initialize(email: nil, name: nil, phone: nil)
3409
+ @email = email
3410
+ @name = name
3411
+ @phone = phone
3412
+ end
3413
+ end
3414
+ # The delivery method for the payment
3415
+ attr_accessor :mode
3416
+ # Details of the recipient.
3417
+ attr_accessor :recipient
3418
+
3419
+ def initialize(mode: nil, recipient: nil)
3420
+ @mode = mode
3421
+ @recipient = recipient
3422
+ end
3423
+ end
3424
+
3425
+ class Distance < Stripe::RequestParams
3426
+ # Distance traveled.
3427
+ attr_accessor :amount
3428
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
3429
+ attr_accessor :unit
3430
+
3431
+ def initialize(amount: nil, unit: nil)
3432
+ @amount = amount
3433
+ @unit = unit
3434
+ end
3435
+ end
3436
+
3437
+ class Driver < Stripe::RequestParams
3438
+ # Driver's identification number.
3439
+ attr_accessor :driver_identification_number
3440
+ # Driver's tax number.
3441
+ attr_accessor :driver_tax_number
3442
+ # Full name of the person or entity on the car reservation.
3443
+ attr_accessor :name
3444
+
3445
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
3446
+ @driver_identification_number = driver_identification_number
3447
+ @driver_tax_number = driver_tax_number
3448
+ @name = name
3449
+ end
3450
+ end
3451
+
3452
+ class PickupAddress < Stripe::RequestParams
3453
+ # City, district, suburb, town, or village.
3454
+ attr_accessor :city
3455
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3456
+ attr_accessor :country
3457
+ # Address line 1 (e.g., street, PO Box, or company name).
3458
+ attr_accessor :line1
3459
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3460
+ attr_accessor :line2
3461
+ # ZIP or postal code.
3462
+ attr_accessor :postal_code
3463
+ # State, county, province, or region.
3464
+ attr_accessor :state
3465
+
3466
+ def initialize(
3467
+ city: nil,
3468
+ country: nil,
3469
+ line1: nil,
3470
+ line2: nil,
3471
+ postal_code: nil,
3472
+ state: nil
3473
+ )
3474
+ @city = city
3475
+ @country = country
3476
+ @line1 = line1
3477
+ @line2 = line2
3478
+ @postal_code = postal_code
3479
+ @state = state
3480
+ end
3481
+ end
3482
+
3483
+ class ReturnAddress < Stripe::RequestParams
3484
+ # City, district, suburb, town, or village.
3485
+ attr_accessor :city
3486
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3487
+ attr_accessor :country
3488
+ # Address line 1 (e.g., street, PO Box, or company name).
3489
+ attr_accessor :line1
3490
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3491
+ attr_accessor :line2
3492
+ # ZIP or postal code.
3493
+ attr_accessor :postal_code
3494
+ # State, county, province, or region.
3495
+ attr_accessor :state
3496
+
3497
+ def initialize(
3498
+ city: nil,
3499
+ country: nil,
3500
+ line1: nil,
3501
+ line2: nil,
3502
+ postal_code: nil,
3503
+ state: nil
3504
+ )
3505
+ @city = city
3506
+ @country = country
3507
+ @line1 = line1
3508
+ @line2 = line2
3509
+ @postal_code = postal_code
3510
+ @state = state
3511
+ end
3512
+ end
3513
+ # Affiliate details for this purchase.
3514
+ attr_accessor :affiliate
3515
+ # The booking number associated with the car rental.
3516
+ attr_accessor :booking_number
3517
+ # Class code of the car.
3518
+ attr_accessor :car_class_code
3519
+ # Make of the car.
3520
+ attr_accessor :car_make
3521
+ # Model of the car.
3522
+ attr_accessor :car_model
3523
+ # The name of the rental car company.
3524
+ attr_accessor :company
3525
+ # The customer service phone number of the car rental company.
3526
+ attr_accessor :customer_service_phone_number
3527
+ # Number of days the car is being rented.
3528
+ attr_accessor :days_rented
3529
+ # Delivery details for this purchase.
3530
+ attr_accessor :delivery
3531
+ # The details of the distance traveled during the rental period.
3532
+ attr_accessor :distance
3533
+ # The details of the passengers in the travel reservation
3534
+ attr_accessor :drivers
3535
+ # List of additional charges being billed.
3536
+ attr_accessor :extra_charges
3537
+ # Indicates if the customer did not keep nor cancel their booking.
3538
+ attr_accessor :no_show
3539
+ # Car pick-up address.
3540
+ attr_accessor :pickup_address
3541
+ # Car pick-up time. Measured in seconds since the Unix epoch.
3542
+ attr_accessor :pickup_at
3543
+ # Name of the pickup location.
3544
+ attr_accessor :pickup_location_name
3545
+ # Rental rate.
3546
+ attr_accessor :rate_amount
3547
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
3548
+ attr_accessor :rate_interval
3549
+ # The name of the person or entity renting the car.
3550
+ attr_accessor :renter_name
3551
+ # Car return address.
3552
+ attr_accessor :return_address
3553
+ # Car return time. Measured in seconds since the Unix epoch.
3554
+ attr_accessor :return_at
3555
+ # Name of the return location.
3556
+ attr_accessor :return_location_name
3557
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
3558
+ attr_accessor :tax_exempt
3559
+ # The vehicle identification number.
3560
+ attr_accessor :vehicle_identification_number
3561
+
3562
+ def initialize(
3563
+ affiliate: nil,
3564
+ booking_number: nil,
3565
+ car_class_code: nil,
3566
+ car_make: nil,
3567
+ car_model: nil,
3568
+ company: nil,
3569
+ customer_service_phone_number: nil,
3570
+ days_rented: nil,
3571
+ delivery: nil,
3572
+ distance: nil,
3573
+ drivers: nil,
3574
+ extra_charges: nil,
3575
+ no_show: nil,
3576
+ pickup_address: nil,
3577
+ pickup_at: nil,
3578
+ pickup_location_name: nil,
3579
+ rate_amount: nil,
3580
+ rate_interval: nil,
3581
+ renter_name: nil,
3582
+ return_address: nil,
3583
+ return_at: nil,
3584
+ return_location_name: nil,
3585
+ tax_exempt: nil,
3586
+ vehicle_identification_number: nil
3587
+ )
3588
+ @affiliate = affiliate
3589
+ @booking_number = booking_number
3590
+ @car_class_code = car_class_code
3591
+ @car_make = car_make
3592
+ @car_model = car_model
3593
+ @company = company
3594
+ @customer_service_phone_number = customer_service_phone_number
3595
+ @days_rented = days_rented
3596
+ @delivery = delivery
3597
+ @distance = distance
3598
+ @drivers = drivers
3599
+ @extra_charges = extra_charges
3600
+ @no_show = no_show
3601
+ @pickup_address = pickup_address
3602
+ @pickup_at = pickup_at
3603
+ @pickup_location_name = pickup_location_name
3604
+ @rate_amount = rate_amount
3605
+ @rate_interval = rate_interval
3606
+ @renter_name = renter_name
3607
+ @return_address = return_address
3608
+ @return_at = return_at
3609
+ @return_location_name = return_location_name
3610
+ @tax_exempt = tax_exempt
3611
+ @vehicle_identification_number = vehicle_identification_number
3612
+ end
3613
+ end
3614
+
3615
+ class EventDetails < Stripe::RequestParams
3616
+ class Address < Stripe::RequestParams
3617
+ # City, district, suburb, town, or village.
3618
+ attr_accessor :city
3619
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3620
+ attr_accessor :country
3621
+ # Address line 1 (e.g., street, PO Box, or company name).
3622
+ attr_accessor :line1
3623
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3624
+ attr_accessor :line2
3625
+ # ZIP or postal code.
3626
+ attr_accessor :postal_code
3627
+ # State, county, province, or region.
3628
+ attr_accessor :state
3629
+
3630
+ def initialize(
3631
+ city: nil,
3632
+ country: nil,
3633
+ line1: nil,
3634
+ line2: nil,
3635
+ postal_code: nil,
3636
+ state: nil
3637
+ )
3638
+ @city = city
3639
+ @country = country
3640
+ @line1 = line1
3641
+ @line2 = line2
3642
+ @postal_code = postal_code
3643
+ @state = state
3644
+ end
3645
+ end
3646
+
3647
+ class Affiliate < Stripe::RequestParams
3648
+ # The name of the affiliate that originated the purchase.
3649
+ attr_accessor :name
3650
+
3651
+ def initialize(name: nil)
3652
+ @name = name
3653
+ end
3654
+ end
3655
+
3656
+ class Delivery < Stripe::RequestParams
3657
+ class Recipient < Stripe::RequestParams
3658
+ # The email of the recipient the ticket is delivered to.
3659
+ attr_accessor :email
3660
+ # The name of the recipient the ticket is delivered to.
3661
+ attr_accessor :name
3662
+ # The phone number of the recipient the ticket is delivered to.
3663
+ attr_accessor :phone
3664
+
3665
+ def initialize(email: nil, name: nil, phone: nil)
3666
+ @email = email
3667
+ @name = name
3668
+ @phone = phone
3669
+ end
3670
+ end
3671
+ # The delivery method for the payment
3672
+ attr_accessor :mode
3673
+ # Details of the recipient.
3674
+ attr_accessor :recipient
3675
+
3676
+ def initialize(mode: nil, recipient: nil)
3677
+ @mode = mode
3678
+ @recipient = recipient
3679
+ end
3680
+ end
3681
+ # Indicates if the tickets are digitally checked when entering the venue.
3682
+ attr_accessor :access_controlled_venue
3683
+ # The event location's address.
3684
+ attr_accessor :address
3685
+ # Affiliate details for this purchase.
3686
+ attr_accessor :affiliate
3687
+ # The name of the company
3688
+ attr_accessor :company
3689
+ # Delivery details for this purchase.
3690
+ attr_accessor :delivery
3691
+ # Event end time. Measured in seconds since the Unix epoch.
3692
+ attr_accessor :ends_at
3693
+ # Type of the event entertainment (concert, sports event etc)
3694
+ attr_accessor :genre
3695
+ # The name of the event.
3696
+ attr_accessor :name
3697
+ # Event start time. Measured in seconds since the Unix epoch.
3698
+ attr_accessor :starts_at
3699
+
3700
+ def initialize(
3701
+ access_controlled_venue: nil,
3702
+ address: nil,
3703
+ affiliate: nil,
3704
+ company: nil,
3705
+ delivery: nil,
3706
+ ends_at: nil,
3707
+ genre: nil,
3708
+ name: nil,
3709
+ starts_at: nil
3710
+ )
3711
+ @access_controlled_venue = access_controlled_venue
3712
+ @address = address
3713
+ @affiliate = affiliate
3714
+ @company = company
3715
+ @delivery = delivery
3716
+ @ends_at = ends_at
3717
+ @genre = genre
3718
+ @name = name
3719
+ @starts_at = starts_at
3720
+ end
3721
+ end
3722
+
3723
+ class Flight < Stripe::RequestParams
3724
+ class Affiliate < Stripe::RequestParams
3725
+ # The name of the affiliate that originated the purchase.
3726
+ attr_accessor :name
3727
+
3728
+ def initialize(name: nil)
3729
+ @name = name
3730
+ end
3731
+ end
3732
+
3733
+ class Delivery < Stripe::RequestParams
3734
+ class Recipient < Stripe::RequestParams
3735
+ # The email of the recipient the ticket is delivered to.
3736
+ attr_accessor :email
3737
+ # The name of the recipient the ticket is delivered to.
3738
+ attr_accessor :name
3739
+ # The phone number of the recipient the ticket is delivered to.
3740
+ attr_accessor :phone
3741
+
3742
+ def initialize(email: nil, name: nil, phone: nil)
3743
+ @email = email
3744
+ @name = name
3745
+ @phone = phone
3746
+ end
3747
+ end
3748
+ # The delivery method for the payment
3749
+ attr_accessor :mode
3750
+ # Details of the recipient.
3751
+ attr_accessor :recipient
3752
+
3753
+ def initialize(mode: nil, recipient: nil)
3754
+ @mode = mode
3755
+ @recipient = recipient
3756
+ end
3757
+ end
3758
+
3759
+ class Passenger < Stripe::RequestParams
3760
+ # Full name of the person or entity on the flight reservation.
3761
+ attr_accessor :name
3762
+
3763
+ def initialize(name: nil)
3764
+ @name = name
3765
+ end
3766
+ end
3767
+
3768
+ class Segment < Stripe::RequestParams
3769
+ # The flight segment amount.
3770
+ attr_accessor :amount
3771
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
3772
+ attr_accessor :arrival_airport
3773
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
3774
+ attr_accessor :arrives_at
3775
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
3776
+ attr_accessor :carrier
3777
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
3778
+ attr_accessor :departs_at
3779
+ # The International Air Transport Association (IATA) airport code for the departure airport.
3780
+ attr_accessor :departure_airport
3781
+ # The flight number associated with the segment
3782
+ attr_accessor :flight_number
3783
+ # The fare class for the segment.
3784
+ attr_accessor :service_class
3785
+
3786
+ def initialize(
3787
+ amount: nil,
3788
+ arrival_airport: nil,
3789
+ arrives_at: nil,
3790
+ carrier: nil,
3791
+ departs_at: nil,
3792
+ departure_airport: nil,
3793
+ flight_number: nil,
3794
+ service_class: nil
3795
+ )
3796
+ @amount = amount
3797
+ @arrival_airport = arrival_airport
3798
+ @arrives_at = arrives_at
3799
+ @carrier = carrier
3800
+ @departs_at = departs_at
3801
+ @departure_airport = departure_airport
3802
+ @flight_number = flight_number
3803
+ @service_class = service_class
3804
+ end
3805
+ end
3806
+ # Affiliate details for this purchase.
3807
+ attr_accessor :affiliate
3808
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
3809
+ attr_accessor :agency_number
3810
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
3811
+ attr_accessor :carrier
3812
+ # Delivery details for this purchase.
3813
+ attr_accessor :delivery
3814
+ # The name of the person or entity on the reservation.
3815
+ attr_accessor :passenger_name
3816
+ # The details of the passengers in the travel reservation.
3817
+ attr_accessor :passengers
3818
+ # The individual flight segments associated with the trip.
3819
+ attr_accessor :segments
3820
+ # The ticket number associated with the travel reservation.
3821
+ attr_accessor :ticket_number
3822
+
3823
+ def initialize(
3824
+ affiliate: nil,
3825
+ agency_number: nil,
3826
+ carrier: nil,
3827
+ delivery: nil,
3828
+ passenger_name: nil,
3829
+ passengers: nil,
3830
+ segments: nil,
3831
+ ticket_number: nil
3832
+ )
3833
+ @affiliate = affiliate
3834
+ @agency_number = agency_number
3835
+ @carrier = carrier
3836
+ @delivery = delivery
3837
+ @passenger_name = passenger_name
3838
+ @passengers = passengers
3839
+ @segments = segments
3840
+ @ticket_number = ticket_number
3841
+ end
3842
+ end
3843
+
3844
+ class Lodging < Stripe::RequestParams
3845
+ class Address < Stripe::RequestParams
3846
+ # City, district, suburb, town, or village.
3847
+ attr_accessor :city
3848
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3849
+ attr_accessor :country
3850
+ # Address line 1 (e.g., street, PO Box, or company name).
3851
+ attr_accessor :line1
3852
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3853
+ attr_accessor :line2
3854
+ # ZIP or postal code.
3855
+ attr_accessor :postal_code
3856
+ # State, county, province, or region.
3857
+ attr_accessor :state
3858
+
3859
+ def initialize(
3860
+ city: nil,
3861
+ country: nil,
3862
+ line1: nil,
3863
+ line2: nil,
3864
+ postal_code: nil,
3865
+ state: nil
3866
+ )
3867
+ @city = city
3868
+ @country = country
3869
+ @line1 = line1
3870
+ @line2 = line2
3871
+ @postal_code = postal_code
3872
+ @state = state
3873
+ end
3874
+ end
3875
+
3876
+ class Affiliate < Stripe::RequestParams
3877
+ # The name of the affiliate that originated the purchase.
3878
+ attr_accessor :name
3879
+
3880
+ def initialize(name: nil)
3881
+ @name = name
3882
+ end
3883
+ end
3884
+
3885
+ class Delivery < Stripe::RequestParams
3886
+ class Recipient < Stripe::RequestParams
3887
+ # The email of the recipient the ticket is delivered to.
3888
+ attr_accessor :email
3889
+ # The name of the recipient the ticket is delivered to.
3890
+ attr_accessor :name
3891
+ # The phone number of the recipient the ticket is delivered to.
3892
+ attr_accessor :phone
3893
+
3894
+ def initialize(email: nil, name: nil, phone: nil)
3895
+ @email = email
3896
+ @name = name
3897
+ @phone = phone
3898
+ end
3899
+ end
3900
+ # The delivery method for the payment
3901
+ attr_accessor :mode
3902
+ # Details of the recipient.
3903
+ attr_accessor :recipient
3904
+
3905
+ def initialize(mode: nil, recipient: nil)
3906
+ @mode = mode
3907
+ @recipient = recipient
3908
+ end
3909
+ end
3910
+
3911
+ class Passenger < Stripe::RequestParams
3912
+ # Full name of the person or entity on the lodging reservation.
3913
+ attr_accessor :name
3914
+
3915
+ def initialize(name: nil)
3916
+ @name = name
3917
+ end
3918
+ end
3919
+ # The lodging location's address.
3920
+ attr_accessor :address
3921
+ # The number of adults on the booking
3922
+ attr_accessor :adults
3923
+ # Affiliate details for this purchase.
3924
+ attr_accessor :affiliate
3925
+ # The booking number associated with the lodging reservation.
3926
+ attr_accessor :booking_number
3927
+ # The lodging category
3928
+ attr_accessor :category
3929
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
3930
+ attr_accessor :checkin_at
3931
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
3932
+ attr_accessor :checkout_at
3933
+ # The customer service phone number of the lodging company.
3934
+ attr_accessor :customer_service_phone_number
3935
+ # The daily lodging room rate.
3936
+ attr_accessor :daily_room_rate_amount
3937
+ # Delivery details for this purchase.
3938
+ attr_accessor :delivery
3939
+ # List of additional charges being billed.
3940
+ attr_accessor :extra_charges
3941
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
3942
+ attr_accessor :fire_safety_act_compliance
3943
+ # The name of the lodging location.
3944
+ attr_accessor :name
3945
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
3946
+ attr_accessor :no_show
3947
+ # The number of rooms on the booking
3948
+ attr_accessor :number_of_rooms
3949
+ # The details of the passengers in the travel reservation
3950
+ attr_accessor :passengers
3951
+ # The phone number of the lodging location.
3952
+ attr_accessor :property_phone_number
3953
+ # The room class for this purchase.
3954
+ attr_accessor :room_class
3955
+ # The number of room nights
3956
+ attr_accessor :room_nights
3957
+ # The total tax amount associating with the room reservation.
3958
+ attr_accessor :total_room_tax_amount
3959
+ # The total tax amount
3960
+ attr_accessor :total_tax_amount
3961
+
3962
+ def initialize(
3963
+ address: nil,
3964
+ adults: nil,
3965
+ affiliate: nil,
3966
+ booking_number: nil,
3967
+ category: nil,
3968
+ checkin_at: nil,
3969
+ checkout_at: nil,
3970
+ customer_service_phone_number: nil,
3971
+ daily_room_rate_amount: nil,
3972
+ delivery: nil,
3973
+ extra_charges: nil,
3974
+ fire_safety_act_compliance: nil,
3975
+ name: nil,
3976
+ no_show: nil,
3977
+ number_of_rooms: nil,
3978
+ passengers: nil,
3979
+ property_phone_number: nil,
3980
+ room_class: nil,
3981
+ room_nights: nil,
3982
+ total_room_tax_amount: nil,
3983
+ total_tax_amount: nil
3984
+ )
3985
+ @address = address
3986
+ @adults = adults
3987
+ @affiliate = affiliate
3988
+ @booking_number = booking_number
3989
+ @category = category
3990
+ @checkin_at = checkin_at
3991
+ @checkout_at = checkout_at
3992
+ @customer_service_phone_number = customer_service_phone_number
3993
+ @daily_room_rate_amount = daily_room_rate_amount
3994
+ @delivery = delivery
3995
+ @extra_charges = extra_charges
3996
+ @fire_safety_act_compliance = fire_safety_act_compliance
3997
+ @name = name
3998
+ @no_show = no_show
3999
+ @number_of_rooms = number_of_rooms
4000
+ @passengers = passengers
4001
+ @property_phone_number = property_phone_number
4002
+ @room_class = room_class
4003
+ @room_nights = room_nights
4004
+ @total_room_tax_amount = total_room_tax_amount
4005
+ @total_tax_amount = total_tax_amount
4006
+ end
4007
+ end
4008
+
4009
+ class Subscription < Stripe::RequestParams
4010
+ class Affiliate < Stripe::RequestParams
4011
+ # The name of the affiliate that originated the purchase.
4012
+ attr_accessor :name
4013
+
4014
+ def initialize(name: nil)
4015
+ @name = name
4016
+ end
4017
+ end
4018
+
4019
+ class BillingInterval < Stripe::RequestParams
4020
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
4021
+ attr_accessor :count
4022
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
4023
+ attr_accessor :interval
4024
+
4025
+ def initialize(count: nil, interval: nil)
4026
+ @count = count
4027
+ @interval = interval
4028
+ end
4029
+ end
4030
+ # Affiliate details for this purchase.
4031
+ attr_accessor :affiliate
4032
+ # Info whether the subscription will be auto renewed upon expiry.
4033
+ attr_accessor :auto_renewal
4034
+ # Subscription billing details for this purchase.
4035
+ attr_accessor :billing_interval
4036
+ # Subscription end time. Measured in seconds since the Unix epoch.
4037
+ attr_accessor :ends_at
4038
+ # Name of the product on subscription. e.g. Apple Music Subscription
4039
+ attr_accessor :name
4040
+ # Subscription start time. Measured in seconds since the Unix epoch.
4041
+ attr_accessor :starts_at
4042
+
4043
+ def initialize(
4044
+ affiliate: nil,
4045
+ auto_renewal: nil,
4046
+ billing_interval: nil,
4047
+ ends_at: nil,
4048
+ name: nil,
4049
+ starts_at: nil
4050
+ )
4051
+ @affiliate = affiliate
4052
+ @auto_renewal = auto_renewal
4053
+ @billing_interval = billing_interval
4054
+ @ends_at = ends_at
4055
+ @name = name
4056
+ @starts_at = starts_at
4057
+ end
4058
+ end
4059
+ # Car rental details for this PaymentIntent.
4060
+ attr_accessor :car_rental
4061
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
4062
+ attr_accessor :customer_reference
4063
+ # Event details for this PaymentIntent
4064
+ attr_accessor :event_details
4065
+ # Flight reservation details for this PaymentIntent
4066
+ attr_accessor :flight
4067
+ # Lodging reservation details for this PaymentIntent
4068
+ attr_accessor :lodging
4069
+ # A unique value assigned by the business to identify the transaction.
4070
+ attr_accessor :order_reference
4071
+ # Subscription details for this PaymentIntent
4072
+ attr_accessor :subscription
4073
+
4074
+ def initialize(
4075
+ car_rental: nil,
4076
+ customer_reference: nil,
4077
+ event_details: nil,
4078
+ flight: nil,
4079
+ lodging: nil,
4080
+ order_reference: nil,
4081
+ subscription: nil
4082
+ )
4083
+ @car_rental = car_rental
4084
+ @customer_reference = customer_reference
4085
+ @event_details = event_details
4086
+ @flight = flight
4087
+ @lodging = lodging
4088
+ @order_reference = order_reference
4089
+ @subscription = subscription
4090
+ end
4091
+ end
4092
+
1543
4093
  class TransferData < Stripe::RequestParams
1544
4094
  # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1545
4095
  attr_accessor :amount
@@ -1556,6 +4106,8 @@ module Stripe
1556
4106
  attr_accessor :application_fee_amount
1557
4107
  # Specifies which fields in the response should be expanded.
1558
4108
  attr_accessor :expand
4109
+ # Provides industry-specific information about the charge.
4110
+ attr_accessor :payment_details
1559
4111
  # The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
1560
4112
  attr_accessor :receipt_email
1561
4113
  # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@@ -1574,6 +4126,7 @@ module Stripe
1574
4126
  application_fee: nil,
1575
4127
  application_fee_amount: nil,
1576
4128
  expand: nil,
4129
+ payment_details: nil,
1577
4130
  receipt_email: nil,
1578
4131
  statement_descriptor: nil,
1579
4132
  statement_descriptor_suffix: nil,
@@ -1584,6 +4137,7 @@ module Stripe
1584
4137
  @application_fee = application_fee
1585
4138
  @application_fee_amount = application_fee_amount
1586
4139
  @expand = expand
4140
+ @payment_details = payment_details
1587
4141
  @receipt_email = receipt_email
1588
4142
  @statement_descriptor = statement_descriptor
1589
4143
  @statement_descriptor_suffix = statement_descriptor_suffix
@@ -1747,5 +4301,23 @@ module Stripe
1747
4301
  opts: opts
1748
4302
  )
1749
4303
  end
4304
+
4305
+ def self.inner_class_types
4306
+ @inner_class_types = {
4307
+ billing_details: BillingDetails,
4308
+ fraud_details: FraudDetails,
4309
+ level3: Level3,
4310
+ outcome: Outcome,
4311
+ payment_method_details: PaymentMethodDetails,
4312
+ presentment_details: PresentmentDetails,
4313
+ radar_options: RadarOptions,
4314
+ shipping: Shipping,
4315
+ transfer_data: TransferData,
4316
+ }
4317
+ end
4318
+
4319
+ def self.field_remappings
4320
+ @field_remappings = {}
4321
+ end
1750
4322
  end
1751
4323
  end