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
@@ -0,0 +1,2602 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe.
6
+ # For example, you can create a Payment Record to model a payment made on a different payment processor,
7
+ # in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or
8
+ # more Payment Attempt Records, which represent individual attempts made on a payment network.
9
+ class PaymentRecord < APIResource
10
+ OBJECT_NAME = "payment_record"
11
+ def self.object_name
12
+ "payment_record"
13
+ end
14
+
15
+ class Amount < Stripe::StripeObject
16
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
17
+ attr_reader :currency
18
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
19
+ attr_reader :value
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
28
+ end
29
+
30
+ class AmountAuthorized < Stripe::StripeObject
31
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
32
+ attr_reader :currency
33
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
34
+ attr_reader :value
35
+
36
+ def self.inner_class_types
37
+ @inner_class_types = {}
38
+ end
39
+
40
+ def self.field_remappings
41
+ @field_remappings = {}
42
+ end
43
+ end
44
+
45
+ class AmountCanceled < Stripe::StripeObject
46
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
47
+ attr_reader :currency
48
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
49
+ attr_reader :value
50
+
51
+ def self.inner_class_types
52
+ @inner_class_types = {}
53
+ end
54
+
55
+ def self.field_remappings
56
+ @field_remappings = {}
57
+ end
58
+ end
59
+
60
+ class AmountFailed < Stripe::StripeObject
61
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
62
+ attr_reader :currency
63
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
64
+ attr_reader :value
65
+
66
+ def self.inner_class_types
67
+ @inner_class_types = {}
68
+ end
69
+
70
+ def self.field_remappings
71
+ @field_remappings = {}
72
+ end
73
+ end
74
+
75
+ class AmountGuaranteed < Stripe::StripeObject
76
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
77
+ attr_reader :currency
78
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
79
+ attr_reader :value
80
+
81
+ def self.inner_class_types
82
+ @inner_class_types = {}
83
+ end
84
+
85
+ def self.field_remappings
86
+ @field_remappings = {}
87
+ end
88
+ end
89
+
90
+ class AmountRefunded < Stripe::StripeObject
91
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
92
+ attr_reader :currency
93
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
94
+ attr_reader :value
95
+
96
+ def self.inner_class_types
97
+ @inner_class_types = {}
98
+ end
99
+
100
+ def self.field_remappings
101
+ @field_remappings = {}
102
+ end
103
+ end
104
+
105
+ class AmountRequested < Stripe::StripeObject
106
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
107
+ attr_reader :currency
108
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
109
+ attr_reader :value
110
+
111
+ def self.inner_class_types
112
+ @inner_class_types = {}
113
+ end
114
+
115
+ def self.field_remappings
116
+ @field_remappings = {}
117
+ end
118
+ end
119
+
120
+ class CustomerDetails < Stripe::StripeObject
121
+ # ID of the Stripe Customer associated with this payment.
122
+ attr_reader :customer
123
+ # The customer's email address.
124
+ attr_reader :email
125
+ # The customer's name.
126
+ attr_reader :name
127
+ # The customer's phone number.
128
+ attr_reader :phone
129
+
130
+ def self.inner_class_types
131
+ @inner_class_types = {}
132
+ end
133
+
134
+ def self.field_remappings
135
+ @field_remappings = {}
136
+ end
137
+ end
138
+
139
+ class PaymentMethodDetails < Stripe::StripeObject
140
+ class AchCreditTransfer < Stripe::StripeObject
141
+ # Account number to transfer funds to.
142
+ attr_reader :account_number
143
+ # Name of the bank associated with the routing number.
144
+ attr_reader :bank_name
145
+ # Routing transit number for the bank account to transfer funds to.
146
+ attr_reader :routing_number
147
+ # SWIFT code of the bank associated with the routing number.
148
+ attr_reader :swift_code
149
+
150
+ def self.inner_class_types
151
+ @inner_class_types = {}
152
+ end
153
+
154
+ def self.field_remappings
155
+ @field_remappings = {}
156
+ end
157
+ end
158
+
159
+ class AchDebit < Stripe::StripeObject
160
+ # Type of entity that holds the account. This can be either `individual` or `company`.
161
+ attr_reader :account_holder_type
162
+ # Name of the bank associated with the bank account.
163
+ attr_reader :bank_name
164
+ # Two-letter ISO code representing the country the bank account is located in.
165
+ attr_reader :country
166
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
167
+ attr_reader :fingerprint
168
+ # Last four digits of the bank account number.
169
+ attr_reader :last4
170
+ # Routing transit number of the bank account.
171
+ attr_reader :routing_number
172
+
173
+ def self.inner_class_types
174
+ @inner_class_types = {}
175
+ end
176
+
177
+ def self.field_remappings
178
+ @field_remappings = {}
179
+ end
180
+ end
181
+
182
+ class AcssDebit < Stripe::StripeObject
183
+ # Name of the bank associated with the bank account.
184
+ attr_reader :bank_name
185
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
186
+ attr_reader :fingerprint
187
+ # Institution number of the bank account
188
+ attr_reader :institution_number
189
+ # Last four digits of the bank account number.
190
+ attr_reader :last4
191
+ # ID of the mandate used to make this payment.
192
+ attr_reader :mandate
193
+ # Transit number of the bank account.
194
+ attr_reader :transit_number
195
+
196
+ def self.inner_class_types
197
+ @inner_class_types = {}
198
+ end
199
+
200
+ def self.field_remappings
201
+ @field_remappings = {}
202
+ end
203
+ end
204
+
205
+ class Affirm < Stripe::StripeObject
206
+ # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
207
+ attr_reader :location
208
+ # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
209
+ attr_reader :reader
210
+ # The Affirm transaction ID associated with this payment.
211
+ attr_reader :transaction_id
212
+
213
+ def self.inner_class_types
214
+ @inner_class_types = {}
215
+ end
216
+
217
+ def self.field_remappings
218
+ @field_remappings = {}
219
+ end
220
+ end
221
+
222
+ class AfterpayClearpay < Stripe::StripeObject
223
+ # The Afterpay order ID associated with this payment intent.
224
+ attr_reader :order_id
225
+ # Order identifier shown to the merchant in Afterpay’s online portal.
226
+ attr_reader :reference
227
+
228
+ def self.inner_class_types
229
+ @inner_class_types = {}
230
+ end
231
+
232
+ def self.field_remappings
233
+ @field_remappings = {}
234
+ end
235
+ end
236
+
237
+ class Alipay < Stripe::StripeObject
238
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
239
+ attr_reader :buyer_id
240
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
241
+ attr_reader :fingerprint
242
+ # Transaction ID of this particular Alipay transaction.
243
+ attr_reader :transaction_id
244
+
245
+ def self.inner_class_types
246
+ @inner_class_types = {}
247
+ end
248
+
249
+ def self.field_remappings
250
+ @field_remappings = {}
251
+ end
252
+ end
253
+
254
+ class Alma < Stripe::StripeObject
255
+ class Installments < Stripe::StripeObject
256
+ # The number of installments.
257
+ attr_reader :count
258
+
259
+ def self.inner_class_types
260
+ @inner_class_types = {}
261
+ end
262
+
263
+ def self.field_remappings
264
+ @field_remappings = {}
265
+ end
266
+ end
267
+ # Attribute for field installments
268
+ attr_reader :installments
269
+ # The Alma transaction ID associated with this payment.
270
+ attr_reader :transaction_id
271
+
272
+ def self.inner_class_types
273
+ @inner_class_types = { installments: Installments }
274
+ end
275
+
276
+ def self.field_remappings
277
+ @field_remappings = {}
278
+ end
279
+ end
280
+
281
+ class AmazonPay < Stripe::StripeObject
282
+ class Funding < Stripe::StripeObject
283
+ class Card < Stripe::StripeObject
284
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
285
+ attr_reader :brand
286
+ # 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.)
287
+ attr_reader :brand_product
288
+ # 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.
289
+ attr_reader :country
290
+ # Two-digit number representing the card's expiration month.
291
+ attr_reader :exp_month
292
+ # Four-digit number representing the card's expiration year.
293
+ attr_reader :exp_year
294
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
295
+ attr_reader :funding
296
+ # The last four digits of the card.
297
+ attr_reader :last4
298
+
299
+ def self.inner_class_types
300
+ @inner_class_types = {}
301
+ end
302
+
303
+ def self.field_remappings
304
+ @field_remappings = {}
305
+ end
306
+ end
307
+ # Attribute for field card
308
+ attr_reader :card
309
+ # funding type of the underlying payment method.
310
+ attr_reader :type
311
+
312
+ def self.inner_class_types
313
+ @inner_class_types = { card: Card }
314
+ end
315
+
316
+ def self.field_remappings
317
+ @field_remappings = {}
318
+ end
319
+ end
320
+ # Attribute for field funding
321
+ attr_reader :funding
322
+ # The Amazon Pay transaction ID associated with this payment.
323
+ attr_reader :transaction_id
324
+
325
+ def self.inner_class_types
326
+ @inner_class_types = { funding: Funding }
327
+ end
328
+
329
+ def self.field_remappings
330
+ @field_remappings = {}
331
+ end
332
+ end
333
+
334
+ class AuBecsDebit < Stripe::StripeObject
335
+ # Bank-State-Branch number of the bank account.
336
+ attr_reader :bsb_number
337
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
338
+ attr_reader :fingerprint
339
+ # Last four digits of the bank account number.
340
+ attr_reader :last4
341
+ # ID of the mandate used to make this payment.
342
+ attr_reader :mandate
343
+
344
+ def self.inner_class_types
345
+ @inner_class_types = {}
346
+ end
347
+
348
+ def self.field_remappings
349
+ @field_remappings = {}
350
+ end
351
+ end
352
+
353
+ class BacsDebit < Stripe::StripeObject
354
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
355
+ attr_reader :fingerprint
356
+ # Last four digits of the bank account number.
357
+ attr_reader :last4
358
+ # ID of the mandate used to make this payment.
359
+ attr_reader :mandate
360
+ # Sort code of the bank account. (e.g., `10-20-30`)
361
+ attr_reader :sort_code
362
+
363
+ def self.inner_class_types
364
+ @inner_class_types = {}
365
+ end
366
+
367
+ def self.field_remappings
368
+ @field_remappings = {}
369
+ end
370
+ end
371
+
372
+ class Bancontact < Stripe::StripeObject
373
+ # Bank code of bank associated with the bank account.
374
+ attr_reader :bank_code
375
+ # Name of the bank associated with the bank account.
376
+ attr_reader :bank_name
377
+ # Bank Identifier Code of the bank associated with the bank account.
378
+ attr_reader :bic
379
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
380
+ attr_reader :generated_sepa_debit
381
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
382
+ attr_reader :generated_sepa_debit_mandate
383
+ # Last four characters of the IBAN.
384
+ attr_reader :iban_last4
385
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
386
+ # Can be one of `en`, `de`, `fr`, or `nl`
387
+ attr_reader :preferred_language
388
+ # Owner's verified full name. Values are verified or provided by Bancontact directly
389
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
390
+ attr_reader :verified_name
391
+
392
+ def self.inner_class_types
393
+ @inner_class_types = {}
394
+ end
395
+
396
+ def self.field_remappings
397
+ @field_remappings = {}
398
+ end
399
+ end
400
+
401
+ class Billie < Stripe::StripeObject
402
+ # The Billie transaction ID associated with this payment.
403
+ attr_reader :transaction_id
404
+
405
+ def self.inner_class_types
406
+ @inner_class_types = {}
407
+ end
408
+
409
+ def self.field_remappings
410
+ @field_remappings = {}
411
+ end
412
+ end
413
+
414
+ class BillingDetails < Stripe::StripeObject
415
+ class Address < Stripe::StripeObject
416
+ # City, district, suburb, town, or village.
417
+ attr_reader :city
418
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
419
+ attr_reader :country
420
+ # Address line 1 (e.g., street, PO Box, or company name).
421
+ attr_reader :line1
422
+ # Address line 2 (e.g., apartment, suite, unit, or building).
423
+ attr_reader :line2
424
+ # ZIP or postal code.
425
+ attr_reader :postal_code
426
+ # State, county, province, or region.
427
+ attr_reader :state
428
+
429
+ def self.inner_class_types
430
+ @inner_class_types = {}
431
+ end
432
+
433
+ def self.field_remappings
434
+ @field_remappings = {}
435
+ end
436
+ end
437
+ # A representation of a physical address.
438
+ attr_reader :address
439
+ # The billing email associated with the method of payment.
440
+ attr_reader :email
441
+ # The billing name associated with the method of payment.
442
+ attr_reader :name
443
+ # The billing phone number associated with the method of payment.
444
+ attr_reader :phone
445
+
446
+ def self.inner_class_types
447
+ @inner_class_types = { address: Address }
448
+ end
449
+
450
+ def self.field_remappings
451
+ @field_remappings = {}
452
+ end
453
+ end
454
+
455
+ class Blik < Stripe::StripeObject
456
+ # A unique and immutable identifier assigned by BLIK to every buyer.
457
+ attr_reader :buyer_id
458
+
459
+ def self.inner_class_types
460
+ @inner_class_types = {}
461
+ end
462
+
463
+ def self.field_remappings
464
+ @field_remappings = {}
465
+ end
466
+ end
467
+
468
+ class Boleto < Stripe::StripeObject
469
+ # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
470
+ attr_reader :tax_id
471
+
472
+ def self.inner_class_types
473
+ @inner_class_types = {}
474
+ end
475
+
476
+ def self.field_remappings
477
+ @field_remappings = {}
478
+ end
479
+ end
480
+
481
+ class Card < Stripe::StripeObject
482
+ class Checks < Stripe::StripeObject
483
+ # Attribute for field address_line1_check
484
+ attr_reader :address_line1_check
485
+ # Attribute for field address_postal_code_check
486
+ attr_reader :address_postal_code_check
487
+ # Attribute for field cvc_check
488
+ attr_reader :cvc_check
489
+
490
+ def self.inner_class_types
491
+ @inner_class_types = {}
492
+ end
493
+
494
+ def self.field_remappings
495
+ @field_remappings = {}
496
+ end
497
+ end
498
+
499
+ class NetworkToken < Stripe::StripeObject
500
+ # Attribute for field used
501
+ attr_reader :used
502
+
503
+ def self.inner_class_types
504
+ @inner_class_types = {}
505
+ end
506
+
507
+ def self.field_remappings
508
+ @field_remappings = {}
509
+ end
510
+ end
511
+
512
+ class ThreeDSecure < Stripe::StripeObject
513
+ # Attribute for field authentication_flow
514
+ attr_reader :authentication_flow
515
+ # Attribute for field result
516
+ attr_reader :result
517
+ # Attribute for field result_reason
518
+ attr_reader :result_reason
519
+ # Attribute for field version
520
+ attr_reader :version
521
+
522
+ def self.inner_class_types
523
+ @inner_class_types = {}
524
+ end
525
+
526
+ def self.field_remappings
527
+ @field_remappings = {}
528
+ end
529
+ end
530
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
531
+ attr_reader :brand
532
+ # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
533
+ attr_reader :capture_before
534
+ # Check results by Card networks on Card address and CVC at time of payment.
535
+ attr_reader :checks
536
+ # 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.
537
+ attr_reader :country
538
+ # Two-digit number representing the card's expiration month.
539
+ attr_reader :exp_month
540
+ # Four-digit number representing the card's expiration year.
541
+ attr_reader :exp_year
542
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
543
+ #
544
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
545
+ attr_reader :fingerprint
546
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
547
+ attr_reader :funding
548
+ # The last four digits of the card.
549
+ attr_reader :last4
550
+ # True if this payment was marked as MOTO and out of scope for SCA.
551
+ attr_reader :moto
552
+ # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
553
+ attr_reader :network
554
+ # If this card has network token credentials, this contains the details of the network token credentials.
555
+ attr_reader :network_token
556
+ # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
557
+ attr_reader :network_transaction_id
558
+ # Populated if this transaction used 3D Secure authentication.
559
+ attr_reader :three_d_secure
560
+
561
+ def self.inner_class_types
562
+ @inner_class_types = {
563
+ checks: Checks,
564
+ network_token: NetworkToken,
565
+ three_d_secure: ThreeDSecure,
566
+ }
567
+ end
568
+
569
+ def self.field_remappings
570
+ @field_remappings = {}
571
+ end
572
+ end
573
+
574
+ class CardPresent < Stripe::StripeObject
575
+ class Offline < Stripe::StripeObject
576
+ # Time at which the payment was collected while offline
577
+ attr_reader :stored_at
578
+ # The method used to process this payment method offline. Only deferred is allowed.
579
+ attr_reader :type
580
+
581
+ def self.inner_class_types
582
+ @inner_class_types = {}
583
+ end
584
+
585
+ def self.field_remappings
586
+ @field_remappings = {}
587
+ end
588
+ end
589
+
590
+ class Receipt < Stripe::StripeObject
591
+ # The type of account being debited or credited
592
+ attr_reader :account_type
593
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
594
+ attr_reader :application_cryptogram
595
+ # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
596
+ attr_reader :application_preferred_name
597
+ # Identifier for this transaction.
598
+ attr_reader :authorization_code
599
+ # EMV tag 8A. A code returned by the card issuer.
600
+ attr_reader :authorization_response_code
601
+ # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
602
+ attr_reader :cardholder_verification_method
603
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
604
+ attr_reader :dedicated_file_name
605
+ # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
606
+ attr_reader :terminal_verification_results
607
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
608
+ attr_reader :transaction_status_information
609
+
610
+ def self.inner_class_types
611
+ @inner_class_types = {}
612
+ end
613
+
614
+ def self.field_remappings
615
+ @field_remappings = {}
616
+ end
617
+ end
618
+
619
+ class Wallet < Stripe::StripeObject
620
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
621
+ attr_reader :type
622
+
623
+ def self.inner_class_types
624
+ @inner_class_types = {}
625
+ end
626
+
627
+ def self.field_remappings
628
+ @field_remappings = {}
629
+ end
630
+ end
631
+ # The authorized amount
632
+ attr_reader :amount_authorized
633
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
634
+ attr_reader :brand
635
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
636
+ attr_reader :brand_product
637
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
638
+ attr_reader :capture_before
639
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
640
+ attr_reader :cardholder_name
641
+ # 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.
642
+ attr_reader :country
643
+ # 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.)
644
+ attr_reader :description
645
+ # Authorization response cryptogram.
646
+ attr_reader :emv_auth_data
647
+ # Two-digit number representing the card's expiration month.
648
+ attr_reader :exp_month
649
+ # Four-digit number representing the card's expiration year.
650
+ attr_reader :exp_year
651
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
652
+ #
653
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
654
+ attr_reader :fingerprint
655
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
656
+ attr_reader :funding
657
+ # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
658
+ attr_reader :generated_card
659
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
660
+ attr_reader :iin
661
+ # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
662
+ attr_reader :incremental_authorization_supported
663
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
664
+ attr_reader :issuer
665
+ # The last four digits of the card.
666
+ attr_reader :last4
667
+ # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
668
+ attr_reader :network
669
+ # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
670
+ attr_reader :network_transaction_id
671
+ # Details about payments collected offline.
672
+ attr_reader :offline
673
+ # Defines whether the authorized amount can be over-captured or not
674
+ attr_reader :overcapture_supported
675
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
676
+ attr_reader :preferred_locales
677
+ # How card details were read in this transaction.
678
+ attr_reader :read_method
679
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
680
+ attr_reader :receipt
681
+ # Attribute for field wallet
682
+ attr_reader :wallet
683
+
684
+ def self.inner_class_types
685
+ @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
686
+ end
687
+
688
+ def self.field_remappings
689
+ @field_remappings = {}
690
+ end
691
+ end
692
+
693
+ class Cashapp < Stripe::StripeObject
694
+ # A unique and immutable identifier assigned by Cash App to every buyer.
695
+ attr_reader :buyer_id
696
+ # A public identifier for buyers using Cash App.
697
+ attr_reader :cashtag
698
+ # A unique and immutable identifier of payments assigned by Cash App
699
+ attr_reader :transaction_id
700
+
701
+ def self.inner_class_types
702
+ @inner_class_types = {}
703
+ end
704
+
705
+ def self.field_remappings
706
+ @field_remappings = {}
707
+ end
708
+ end
709
+
710
+ class Crypto < Stripe::StripeObject
711
+ # The wallet address of the customer.
712
+ attr_reader :buyer_address
713
+ # The blockchain network that the transaction was sent on.
714
+ attr_reader :network
715
+ # The token currency that the transaction was sent with.
716
+ attr_reader :token_currency
717
+ # The blockchain transaction hash of the crypto payment.
718
+ attr_reader :transaction_hash
719
+
720
+ def self.inner_class_types
721
+ @inner_class_types = {}
722
+ end
723
+
724
+ def self.field_remappings
725
+ @field_remappings = {}
726
+ end
727
+ end
728
+
729
+ class Custom < Stripe::StripeObject
730
+ # Display name for the custom (user-defined) payment method type used to make this payment.
731
+ attr_reader :display_name
732
+ # The custom payment method type associated with this payment.
733
+ attr_reader :type
734
+
735
+ def self.inner_class_types
736
+ @inner_class_types = {}
737
+ end
738
+
739
+ def self.field_remappings
740
+ @field_remappings = {}
741
+ end
742
+ end
743
+
744
+ class CustomerBalance < Stripe::StripeObject
745
+ def self.inner_class_types
746
+ @inner_class_types = {}
747
+ end
748
+
749
+ def self.field_remappings
750
+ @field_remappings = {}
751
+ end
752
+ end
753
+
754
+ class Eps < Stripe::StripeObject
755
+ # 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`.
756
+ attr_reader :bank
757
+ # Owner's verified full name. Values are verified or provided by EPS directly
758
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
759
+ # EPS rarely provides this information so the attribute is usually empty.
760
+ attr_reader :verified_name
761
+
762
+ def self.inner_class_types
763
+ @inner_class_types = {}
764
+ end
765
+
766
+ def self.field_remappings
767
+ @field_remappings = {}
768
+ end
769
+ end
770
+
771
+ class Fpx < Stripe::StripeObject
772
+ # Account holder type, if provided. Can be one of `individual` or `company`.
773
+ attr_reader :account_holder_type
774
+ # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
775
+ attr_reader :bank
776
+ # Unique transaction id generated by FPX for every request from the merchant
777
+ attr_reader :transaction_id
778
+
779
+ def self.inner_class_types
780
+ @inner_class_types = {}
781
+ end
782
+
783
+ def self.field_remappings
784
+ @field_remappings = {}
785
+ end
786
+ end
787
+
788
+ class Giropay < Stripe::StripeObject
789
+ # Bank code of bank associated with the bank account.
790
+ attr_reader :bank_code
791
+ # Name of the bank associated with the bank account.
792
+ attr_reader :bank_name
793
+ # Bank Identifier Code of the bank associated with the bank account.
794
+ attr_reader :bic
795
+ # Owner's verified full name. Values are verified or provided by Giropay directly
796
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
797
+ # Giropay rarely provides this information so the attribute is usually empty.
798
+ attr_reader :verified_name
799
+
800
+ def self.inner_class_types
801
+ @inner_class_types = {}
802
+ end
803
+
804
+ def self.field_remappings
805
+ @field_remappings = {}
806
+ end
807
+ end
808
+
809
+ class Gopay < Stripe::StripeObject
810
+ def self.inner_class_types
811
+ @inner_class_types = {}
812
+ end
813
+
814
+ def self.field_remappings
815
+ @field_remappings = {}
816
+ end
817
+ end
818
+
819
+ class Grabpay < Stripe::StripeObject
820
+ # Unique transaction id generated by GrabPay
821
+ attr_reader :transaction_id
822
+
823
+ def self.inner_class_types
824
+ @inner_class_types = {}
825
+ end
826
+
827
+ def self.field_remappings
828
+ @field_remappings = {}
829
+ end
830
+ end
831
+
832
+ class IdBankTransfer < Stripe::StripeObject
833
+ # Account number of the bank account to transfer funds to.
834
+ attr_reader :account_number
835
+ # Bank where the account is located.
836
+ attr_reader :bank
837
+ # Local bank code of the bank.
838
+ attr_reader :bank_code
839
+ # Name of the bank associated with the bank account.
840
+ attr_reader :bank_name
841
+ # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
842
+ attr_reader :display_name
843
+
844
+ def self.inner_class_types
845
+ @inner_class_types = {}
846
+ end
847
+
848
+ def self.field_remappings
849
+ @field_remappings = {}
850
+ end
851
+ end
852
+
853
+ class Ideal < Stripe::StripeObject
854
+ # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
855
+ attr_reader :bank
856
+ # The Bank Identifier Code of the customer's bank.
857
+ attr_reader :bic
858
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
859
+ attr_reader :generated_sepa_debit
860
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
861
+ attr_reader :generated_sepa_debit_mandate
862
+ # Last four characters of the IBAN.
863
+ attr_reader :iban_last4
864
+ # Owner's verified full name. Values are verified or provided by iDEAL directly
865
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
866
+ attr_reader :verified_name
867
+
868
+ def self.inner_class_types
869
+ @inner_class_types = {}
870
+ end
871
+
872
+ def self.field_remappings
873
+ @field_remappings = {}
874
+ end
875
+ end
876
+
877
+ class InteracPresent < Stripe::StripeObject
878
+ class Receipt < Stripe::StripeObject
879
+ # The type of account being debited or credited
880
+ attr_reader :account_type
881
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
882
+ attr_reader :application_cryptogram
883
+ # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
884
+ attr_reader :application_preferred_name
885
+ # Identifier for this transaction.
886
+ attr_reader :authorization_code
887
+ # EMV tag 8A. A code returned by the card issuer.
888
+ attr_reader :authorization_response_code
889
+ # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
890
+ attr_reader :cardholder_verification_method
891
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
892
+ attr_reader :dedicated_file_name
893
+ # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
894
+ attr_reader :terminal_verification_results
895
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
896
+ attr_reader :transaction_status_information
897
+
898
+ def self.inner_class_types
899
+ @inner_class_types = {}
900
+ end
901
+
902
+ def self.field_remappings
903
+ @field_remappings = {}
904
+ end
905
+ end
906
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
907
+ attr_reader :brand
908
+ # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
909
+ attr_reader :cardholder_name
910
+ # 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.
911
+ attr_reader :country
912
+ # 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.)
913
+ attr_reader :description
914
+ # Authorization response cryptogram.
915
+ attr_reader :emv_auth_data
916
+ # Two-digit number representing the card's expiration month.
917
+ attr_reader :exp_month
918
+ # Four-digit number representing the card's expiration year.
919
+ attr_reader :exp_year
920
+ # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
921
+ #
922
+ # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
923
+ attr_reader :fingerprint
924
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
925
+ attr_reader :funding
926
+ # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
927
+ attr_reader :generated_card
928
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
929
+ attr_reader :iin
930
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
931
+ attr_reader :issuer
932
+ # The last four digits of the card.
933
+ attr_reader :last4
934
+ # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
935
+ attr_reader :network
936
+ # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
937
+ attr_reader :network_transaction_id
938
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
939
+ attr_reader :preferred_locales
940
+ # How card details were read in this transaction.
941
+ attr_reader :read_method
942
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
943
+ attr_reader :receipt
944
+
945
+ def self.inner_class_types
946
+ @inner_class_types = { receipt: Receipt }
947
+ end
948
+
949
+ def self.field_remappings
950
+ @field_remappings = {}
951
+ end
952
+ end
953
+
954
+ class KakaoPay < Stripe::StripeObject
955
+ # A unique identifier for the buyer as determined by the local payment processor.
956
+ attr_reader :buyer_id
957
+ # The Kakao Pay transaction ID associated with this payment.
958
+ attr_reader :transaction_id
959
+
960
+ def self.inner_class_types
961
+ @inner_class_types = {}
962
+ end
963
+
964
+ def self.field_remappings
965
+ @field_remappings = {}
966
+ end
967
+ end
968
+
969
+ class Klarna < Stripe::StripeObject
970
+ class PayerDetails < Stripe::StripeObject
971
+ class Address < Stripe::StripeObject
972
+ # The payer address country
973
+ attr_reader :country
974
+
975
+ def self.inner_class_types
976
+ @inner_class_types = {}
977
+ end
978
+
979
+ def self.field_remappings
980
+ @field_remappings = {}
981
+ end
982
+ end
983
+ # The payer's address
984
+ attr_reader :address
985
+
986
+ def self.inner_class_types
987
+ @inner_class_types = { address: Address }
988
+ end
989
+
990
+ def self.field_remappings
991
+ @field_remappings = {}
992
+ end
993
+ end
994
+ # The payer details for this transaction.
995
+ attr_reader :payer_details
996
+ # The Klarna payment method used for this transaction.
997
+ # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
998
+ attr_reader :payment_method_category
999
+ # Preferred language of the Klarna authorization page that the customer is redirected to.
1000
+ # 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`
1001
+ attr_reader :preferred_locale
1002
+
1003
+ def self.inner_class_types
1004
+ @inner_class_types = { payer_details: PayerDetails }
1005
+ end
1006
+
1007
+ def self.field_remappings
1008
+ @field_remappings = {}
1009
+ end
1010
+ end
1011
+
1012
+ class Konbini < Stripe::StripeObject
1013
+ class Store < Stripe::StripeObject
1014
+ # The name of the convenience store chain where the payment was completed.
1015
+ attr_reader :chain
1016
+
1017
+ def self.inner_class_types
1018
+ @inner_class_types = {}
1019
+ end
1020
+
1021
+ def self.field_remappings
1022
+ @field_remappings = {}
1023
+ end
1024
+ end
1025
+ # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
1026
+ attr_reader :store
1027
+
1028
+ def self.inner_class_types
1029
+ @inner_class_types = { store: Store }
1030
+ end
1031
+
1032
+ def self.field_remappings
1033
+ @field_remappings = {}
1034
+ end
1035
+ end
1036
+
1037
+ class KrCard < Stripe::StripeObject
1038
+ # The local credit or debit card brand.
1039
+ attr_reader :brand
1040
+ # A unique identifier for the buyer as determined by the local payment processor.
1041
+ attr_reader :buyer_id
1042
+ # The last four digits of the card. This may not be present for American Express cards.
1043
+ attr_reader :last4
1044
+ # The Korean Card transaction ID associated with this payment.
1045
+ attr_reader :transaction_id
1046
+
1047
+ def self.inner_class_types
1048
+ @inner_class_types = {}
1049
+ end
1050
+
1051
+ def self.field_remappings
1052
+ @field_remappings = {}
1053
+ end
1054
+ end
1055
+
1056
+ class Link < Stripe::StripeObject
1057
+ # Two-letter ISO code representing the funding source country beneath the Link payment.
1058
+ # You could use this attribute to get a sense of international fees.
1059
+ attr_reader :country
1060
+
1061
+ def self.inner_class_types
1062
+ @inner_class_types = {}
1063
+ end
1064
+
1065
+ def self.field_remappings
1066
+ @field_remappings = {}
1067
+ end
1068
+ end
1069
+
1070
+ class MbWay < Stripe::StripeObject
1071
+ def self.inner_class_types
1072
+ @inner_class_types = {}
1073
+ end
1074
+
1075
+ def self.field_remappings
1076
+ @field_remappings = {}
1077
+ end
1078
+ end
1079
+
1080
+ class Mobilepay < Stripe::StripeObject
1081
+ class Card < Stripe::StripeObject
1082
+ # Brand of the card used in the transaction
1083
+ attr_reader :brand
1084
+ # Two-letter ISO code representing the country of the card
1085
+ attr_reader :country
1086
+ # Two digit number representing the card's expiration month
1087
+ attr_reader :exp_month
1088
+ # Two digit number representing the card's expiration year
1089
+ attr_reader :exp_year
1090
+ # The last 4 digits of the card
1091
+ attr_reader :last4
1092
+
1093
+ def self.inner_class_types
1094
+ @inner_class_types = {}
1095
+ end
1096
+
1097
+ def self.field_remappings
1098
+ @field_remappings = {}
1099
+ end
1100
+ end
1101
+ # Internal card details
1102
+ attr_reader :card
1103
+
1104
+ def self.inner_class_types
1105
+ @inner_class_types = { card: Card }
1106
+ end
1107
+
1108
+ def self.field_remappings
1109
+ @field_remappings = {}
1110
+ end
1111
+ end
1112
+
1113
+ class Multibanco < Stripe::StripeObject
1114
+ # Entity number associated with this Multibanco payment.
1115
+ attr_reader :entity
1116
+ # Reference number associated with this Multibanco payment.
1117
+ attr_reader :reference
1118
+
1119
+ def self.inner_class_types
1120
+ @inner_class_types = {}
1121
+ end
1122
+
1123
+ def self.field_remappings
1124
+ @field_remappings = {}
1125
+ end
1126
+ end
1127
+
1128
+ class NaverPay < Stripe::StripeObject
1129
+ # A unique identifier for the buyer as determined by the local payment processor.
1130
+ attr_reader :buyer_id
1131
+ # The Naver Pay transaction ID associated with this payment.
1132
+ attr_reader :transaction_id
1133
+
1134
+ def self.inner_class_types
1135
+ @inner_class_types = {}
1136
+ end
1137
+
1138
+ def self.field_remappings
1139
+ @field_remappings = {}
1140
+ end
1141
+ end
1142
+
1143
+ class NzBankAccount < Stripe::StripeObject
1144
+ # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
1145
+ attr_reader :account_holder_name
1146
+ # The numeric code for the bank account's bank.
1147
+ attr_reader :bank_code
1148
+ # The name of the bank.
1149
+ attr_reader :bank_name
1150
+ # The numeric code for the bank account's bank branch.
1151
+ attr_reader :branch_code
1152
+ # Last four digits of the bank account number.
1153
+ attr_reader :last4
1154
+ # The suffix of the bank account number.
1155
+ attr_reader :suffix
1156
+
1157
+ def self.inner_class_types
1158
+ @inner_class_types = {}
1159
+ end
1160
+
1161
+ def self.field_remappings
1162
+ @field_remappings = {}
1163
+ end
1164
+ end
1165
+
1166
+ class Oxxo < Stripe::StripeObject
1167
+ # OXXO reference number
1168
+ attr_reader :number
1169
+
1170
+ def self.inner_class_types
1171
+ @inner_class_types = {}
1172
+ end
1173
+
1174
+ def self.field_remappings
1175
+ @field_remappings = {}
1176
+ end
1177
+ end
1178
+
1179
+ class P24 < Stripe::StripeObject
1180
+ # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
1181
+ attr_reader :bank
1182
+ # Unique reference for this Przelewy24 payment.
1183
+ attr_reader :reference
1184
+ # Owner's verified full name. Values are verified or provided by Przelewy24 directly
1185
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1186
+ # Przelewy24 rarely provides this information so the attribute is usually empty.
1187
+ attr_reader :verified_name
1188
+
1189
+ def self.inner_class_types
1190
+ @inner_class_types = {}
1191
+ end
1192
+
1193
+ def self.field_remappings
1194
+ @field_remappings = {}
1195
+ end
1196
+ end
1197
+
1198
+ class PayByBank < Stripe::StripeObject
1199
+ def self.inner_class_types
1200
+ @inner_class_types = {}
1201
+ end
1202
+
1203
+ def self.field_remappings
1204
+ @field_remappings = {}
1205
+ end
1206
+ end
1207
+
1208
+ class Payco < Stripe::StripeObject
1209
+ # A unique identifier for the buyer as determined by the local payment processor.
1210
+ attr_reader :buyer_id
1211
+ # The Payco transaction ID associated with this payment.
1212
+ attr_reader :transaction_id
1213
+
1214
+ def self.inner_class_types
1215
+ @inner_class_types = {}
1216
+ end
1217
+
1218
+ def self.field_remappings
1219
+ @field_remappings = {}
1220
+ end
1221
+ end
1222
+
1223
+ class Paynow < Stripe::StripeObject
1224
+ # Reference number associated with this PayNow payment
1225
+ attr_reader :reference
1226
+
1227
+ def self.inner_class_types
1228
+ @inner_class_types = {}
1229
+ end
1230
+
1231
+ def self.field_remappings
1232
+ @field_remappings = {}
1233
+ end
1234
+ end
1235
+
1236
+ class Paypal < Stripe::StripeObject
1237
+ class SellerProtection < Stripe::StripeObject
1238
+ # An array of conditions that are covered for the transaction, if applicable.
1239
+ attr_reader :dispute_categories
1240
+ # Indicates whether the transaction is eligible for PayPal's seller protection.
1241
+ attr_reader :status
1242
+
1243
+ def self.inner_class_types
1244
+ @inner_class_types = {}
1245
+ end
1246
+
1247
+ def self.field_remappings
1248
+ @field_remappings = {}
1249
+ end
1250
+ end
1251
+
1252
+ class Shipping < Stripe::StripeObject
1253
+ # City, district, suburb, town, or village.
1254
+ attr_reader :city
1255
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1256
+ attr_reader :country
1257
+ # Address line 1 (e.g., street, PO Box, or company name).
1258
+ attr_reader :line1
1259
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1260
+ attr_reader :line2
1261
+ # ZIP or postal code.
1262
+ attr_reader :postal_code
1263
+ # State, county, province, or region.
1264
+ attr_reader :state
1265
+
1266
+ def self.inner_class_types
1267
+ @inner_class_types = {}
1268
+ end
1269
+
1270
+ def self.field_remappings
1271
+ @field_remappings = {}
1272
+ end
1273
+ end
1274
+
1275
+ class VerifiedAddress < Stripe::StripeObject
1276
+ # City, district, suburb, town, or village.
1277
+ attr_reader :city
1278
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1279
+ attr_reader :country
1280
+ # Address line 1 (e.g., street, PO Box, or company name).
1281
+ attr_reader :line1
1282
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1283
+ attr_reader :line2
1284
+ # ZIP or postal code.
1285
+ attr_reader :postal_code
1286
+ # State, county, province, or region.
1287
+ attr_reader :state
1288
+
1289
+ def self.inner_class_types
1290
+ @inner_class_types = {}
1291
+ end
1292
+
1293
+ def self.field_remappings
1294
+ @field_remappings = {}
1295
+ end
1296
+ end
1297
+ # 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.
1298
+ attr_reader :country
1299
+ # Owner's email. Values are provided by PayPal directly
1300
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1301
+ attr_reader :payer_email
1302
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1303
+ attr_reader :payer_id
1304
+ # Owner's full name. Values provided by PayPal directly
1305
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1306
+ attr_reader :payer_name
1307
+ # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
1308
+ attr_reader :seller_protection
1309
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
1310
+ # execution. This shipping address will not be updated if the merchant updates the shipping
1311
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1312
+ attr_reader :shipping
1313
+ # A unique ID generated by PayPal for this transaction.
1314
+ attr_reader :transaction_id
1315
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
1316
+ # execution. This shipping address will not be updated if the merchant updates the shipping
1317
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1318
+ attr_reader :verified_address
1319
+ # Owner's verified email. Values are verified or provided by PayPal directly
1320
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1321
+ attr_reader :verified_email
1322
+ # Owner's verified full name. Values are verified or provided by PayPal directly
1323
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1324
+ attr_reader :verified_name
1325
+
1326
+ def self.inner_class_types
1327
+ @inner_class_types = {
1328
+ seller_protection: SellerProtection,
1329
+ shipping: Shipping,
1330
+ verified_address: VerifiedAddress,
1331
+ }
1332
+ end
1333
+
1334
+ def self.field_remappings
1335
+ @field_remappings = {}
1336
+ end
1337
+ end
1338
+
1339
+ class Payto < Stripe::StripeObject
1340
+ # Bank-State-Branch number of the bank account.
1341
+ attr_reader :bsb_number
1342
+ # Last four digits of the bank account number.
1343
+ attr_reader :last4
1344
+ # ID of the mandate used to make this payment.
1345
+ attr_reader :mandate
1346
+ # The PayID alias for the bank account.
1347
+ attr_reader :pay_id
1348
+
1349
+ def self.inner_class_types
1350
+ @inner_class_types = {}
1351
+ end
1352
+
1353
+ def self.field_remappings
1354
+ @field_remappings = {}
1355
+ end
1356
+ end
1357
+
1358
+ class Pix < Stripe::StripeObject
1359
+ # Unique transaction id generated by BCB
1360
+ attr_reader :bank_transaction_id
1361
+ # ID of the multi use Mandate generated by the PaymentIntent
1362
+ attr_reader :mandate
1363
+
1364
+ def self.inner_class_types
1365
+ @inner_class_types = {}
1366
+ end
1367
+
1368
+ def self.field_remappings
1369
+ @field_remappings = {}
1370
+ end
1371
+ end
1372
+
1373
+ class Promptpay < Stripe::StripeObject
1374
+ # Bill reference generated by PromptPay
1375
+ attr_reader :reference
1376
+
1377
+ def self.inner_class_types
1378
+ @inner_class_types = {}
1379
+ end
1380
+
1381
+ def self.field_remappings
1382
+ @field_remappings = {}
1383
+ end
1384
+ end
1385
+
1386
+ class Qris < Stripe::StripeObject
1387
+ def self.inner_class_types
1388
+ @inner_class_types = {}
1389
+ end
1390
+
1391
+ def self.field_remappings
1392
+ @field_remappings = {}
1393
+ end
1394
+ end
1395
+
1396
+ class Rechnung < Stripe::StripeObject
1397
+ def self.inner_class_types
1398
+ @inner_class_types = {}
1399
+ end
1400
+
1401
+ def self.field_remappings
1402
+ @field_remappings = {}
1403
+ end
1404
+ end
1405
+
1406
+ class RevolutPay < Stripe::StripeObject
1407
+ class Funding < Stripe::StripeObject
1408
+ class Card < Stripe::StripeObject
1409
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
1410
+ attr_reader :brand
1411
+ # 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.)
1412
+ attr_reader :brand_product
1413
+ # 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.
1414
+ attr_reader :country
1415
+ # Two-digit number representing the card's expiration month.
1416
+ attr_reader :exp_month
1417
+ # Four-digit number representing the card's expiration year.
1418
+ attr_reader :exp_year
1419
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
1420
+ attr_reader :funding
1421
+ # The last four digits of the card.
1422
+ attr_reader :last4
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
+ # Attribute for field card
1433
+ attr_reader :card
1434
+ # funding type of the underlying payment method.
1435
+ attr_reader :type
1436
+
1437
+ def self.inner_class_types
1438
+ @inner_class_types = { card: Card }
1439
+ end
1440
+
1441
+ def self.field_remappings
1442
+ @field_remappings = {}
1443
+ end
1444
+ end
1445
+ # Attribute for field funding
1446
+ attr_reader :funding
1447
+ # The Revolut Pay transaction ID associated with this payment.
1448
+ attr_reader :transaction_id
1449
+
1450
+ def self.inner_class_types
1451
+ @inner_class_types = { funding: Funding }
1452
+ end
1453
+
1454
+ def self.field_remappings
1455
+ @field_remappings = {}
1456
+ end
1457
+ end
1458
+
1459
+ class SamsungPay < Stripe::StripeObject
1460
+ # A unique identifier for the buyer as determined by the local payment processor.
1461
+ attr_reader :buyer_id
1462
+ # The Samsung Pay transaction ID associated with this payment.
1463
+ attr_reader :transaction_id
1464
+
1465
+ def self.inner_class_types
1466
+ @inner_class_types = {}
1467
+ end
1468
+
1469
+ def self.field_remappings
1470
+ @field_remappings = {}
1471
+ end
1472
+ end
1473
+
1474
+ class Satispay < Stripe::StripeObject
1475
+ # The Satispay transaction ID associated with this payment.
1476
+ attr_reader :transaction_id
1477
+
1478
+ def self.inner_class_types
1479
+ @inner_class_types = {}
1480
+ end
1481
+
1482
+ def self.field_remappings
1483
+ @field_remappings = {}
1484
+ end
1485
+ end
1486
+
1487
+ class SepaCreditTransfer < Stripe::StripeObject
1488
+ # Name of the bank associated with the bank account.
1489
+ attr_reader :bank_name
1490
+ # Bank Identifier Code of the bank associated with the bank account.
1491
+ attr_reader :bic
1492
+ # IBAN of the bank account to transfer funds to.
1493
+ attr_reader :iban
1494
+
1495
+ def self.inner_class_types
1496
+ @inner_class_types = {}
1497
+ end
1498
+
1499
+ def self.field_remappings
1500
+ @field_remappings = {}
1501
+ end
1502
+ end
1503
+
1504
+ class SepaDebit < Stripe::StripeObject
1505
+ # Bank code of bank associated with the bank account.
1506
+ attr_reader :bank_code
1507
+ # Branch code of bank associated with the bank account.
1508
+ attr_reader :branch_code
1509
+ # Two-letter ISO code representing the country the bank account is located in.
1510
+ attr_reader :country
1511
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1512
+ attr_reader :fingerprint
1513
+ # Last four characters of the IBAN.
1514
+ attr_reader :last4
1515
+ # 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).
1516
+ attr_reader :mandate
1517
+
1518
+ def self.inner_class_types
1519
+ @inner_class_types = {}
1520
+ end
1521
+
1522
+ def self.field_remappings
1523
+ @field_remappings = {}
1524
+ end
1525
+ end
1526
+
1527
+ class Shopeepay < Stripe::StripeObject
1528
+ def self.inner_class_types
1529
+ @inner_class_types = {}
1530
+ end
1531
+
1532
+ def self.field_remappings
1533
+ @field_remappings = {}
1534
+ end
1535
+ end
1536
+
1537
+ class Sofort < Stripe::StripeObject
1538
+ # Bank code of bank associated with the bank account.
1539
+ attr_reader :bank_code
1540
+ # Name of the bank associated with the bank account.
1541
+ attr_reader :bank_name
1542
+ # Bank Identifier Code of the bank associated with the bank account.
1543
+ attr_reader :bic
1544
+ # Two-letter ISO code representing the country the bank account is located in.
1545
+ attr_reader :country
1546
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1547
+ attr_reader :generated_sepa_debit
1548
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1549
+ attr_reader :generated_sepa_debit_mandate
1550
+ # Last four characters of the IBAN.
1551
+ attr_reader :iban_last4
1552
+ # Preferred language of the SOFORT authorization page that the customer is redirected to.
1553
+ # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
1554
+ attr_reader :preferred_language
1555
+ # Owner's verified full name. Values are verified or provided by SOFORT directly
1556
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1557
+ attr_reader :verified_name
1558
+
1559
+ def self.inner_class_types
1560
+ @inner_class_types = {}
1561
+ end
1562
+
1563
+ def self.field_remappings
1564
+ @field_remappings = {}
1565
+ end
1566
+ end
1567
+
1568
+ class StripeAccount < Stripe::StripeObject
1569
+ def self.inner_class_types
1570
+ @inner_class_types = {}
1571
+ end
1572
+
1573
+ def self.field_remappings
1574
+ @field_remappings = {}
1575
+ end
1576
+ end
1577
+
1578
+ class StripeBalance < Stripe::StripeObject
1579
+ # The connected account ID whose Stripe balance to use as the source of payment
1580
+ attr_reader :account
1581
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1582
+ attr_reader :source_type
1583
+
1584
+ def self.inner_class_types
1585
+ @inner_class_types = {}
1586
+ end
1587
+
1588
+ def self.field_remappings
1589
+ @field_remappings = {}
1590
+ end
1591
+ end
1592
+
1593
+ class Swish < Stripe::StripeObject
1594
+ # 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
1595
+ attr_reader :fingerprint
1596
+ # Payer bank reference number for the payment
1597
+ attr_reader :payment_reference
1598
+ # The last four digits of the Swish account phone number
1599
+ attr_reader :verified_phone_last4
1600
+
1601
+ def self.inner_class_types
1602
+ @inner_class_types = {}
1603
+ end
1604
+
1605
+ def self.field_remappings
1606
+ @field_remappings = {}
1607
+ end
1608
+ end
1609
+
1610
+ class Twint < Stripe::StripeObject
1611
+ def self.inner_class_types
1612
+ @inner_class_types = {}
1613
+ end
1614
+
1615
+ def self.field_remappings
1616
+ @field_remappings = {}
1617
+ end
1618
+ end
1619
+
1620
+ class UsBankAccount < Stripe::StripeObject
1621
+ # Attribute for field account_holder_type
1622
+ attr_reader :account_holder_type
1623
+ # Attribute for field account_type
1624
+ attr_reader :account_type
1625
+ # Name of the bank associated with the bank account.
1626
+ attr_reader :bank_name
1627
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1628
+ attr_reader :fingerprint
1629
+ # Last four digits of the bank account number.
1630
+ attr_reader :last4
1631
+ # ID of the mandate used to make this payment.
1632
+ attr_reader :mandate
1633
+ # Reference number to locate ACH payments with customer’s bank.
1634
+ attr_reader :payment_reference
1635
+ # Routing number of the bank account.
1636
+ attr_reader :routing_number
1637
+
1638
+ def self.inner_class_types
1639
+ @inner_class_types = {}
1640
+ end
1641
+
1642
+ def self.field_remappings
1643
+ @field_remappings = {}
1644
+ end
1645
+ end
1646
+
1647
+ class Wechat < Stripe::StripeObject
1648
+ def self.inner_class_types
1649
+ @inner_class_types = {}
1650
+ end
1651
+
1652
+ def self.field_remappings
1653
+ @field_remappings = {}
1654
+ end
1655
+ end
1656
+
1657
+ class WechatPay < Stripe::StripeObject
1658
+ # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
1659
+ attr_reader :fingerprint
1660
+ # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
1661
+ attr_reader :location
1662
+ # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
1663
+ attr_reader :reader
1664
+ # Transaction ID of this particular WeChat Pay transaction.
1665
+ attr_reader :transaction_id
1666
+
1667
+ def self.inner_class_types
1668
+ @inner_class_types = {}
1669
+ end
1670
+
1671
+ def self.field_remappings
1672
+ @field_remappings = {}
1673
+ end
1674
+ end
1675
+
1676
+ class Zip < Stripe::StripeObject
1677
+ def self.inner_class_types
1678
+ @inner_class_types = {}
1679
+ end
1680
+
1681
+ def self.field_remappings
1682
+ @field_remappings = {}
1683
+ end
1684
+ end
1685
+ # Attribute for field ach_credit_transfer
1686
+ attr_reader :ach_credit_transfer
1687
+ # Attribute for field ach_debit
1688
+ attr_reader :ach_debit
1689
+ # Attribute for field acss_debit
1690
+ attr_reader :acss_debit
1691
+ # Attribute for field affirm
1692
+ attr_reader :affirm
1693
+ # Attribute for field afterpay_clearpay
1694
+ attr_reader :afterpay_clearpay
1695
+ # Attribute for field alipay
1696
+ attr_reader :alipay
1697
+ # Attribute for field alma
1698
+ attr_reader :alma
1699
+ # Attribute for field amazon_pay
1700
+ attr_reader :amazon_pay
1701
+ # Attribute for field au_becs_debit
1702
+ attr_reader :au_becs_debit
1703
+ # Attribute for field bacs_debit
1704
+ attr_reader :bacs_debit
1705
+ # Attribute for field bancontact
1706
+ attr_reader :bancontact
1707
+ # Attribute for field billie
1708
+ attr_reader :billie
1709
+ # The billing details associated with the method of payment.
1710
+ attr_reader :billing_details
1711
+ # Attribute for field blik
1712
+ attr_reader :blik
1713
+ # Attribute for field boleto
1714
+ attr_reader :boleto
1715
+ # Details of the card used for this payment attempt.
1716
+ attr_reader :card
1717
+ # Attribute for field card_present
1718
+ attr_reader :card_present
1719
+ # Attribute for field cashapp
1720
+ attr_reader :cashapp
1721
+ # Attribute for field crypto
1722
+ attr_reader :crypto
1723
+ # Custom Payment Methods represent Payment Method types not modeled directly in
1724
+ # the Stripe API. This resource consists of details about the custom payment method
1725
+ # used for this payment attempt.
1726
+ attr_reader :custom
1727
+ # Attribute for field customer_balance
1728
+ attr_reader :customer_balance
1729
+ # Attribute for field eps
1730
+ attr_reader :eps
1731
+ # Attribute for field fpx
1732
+ attr_reader :fpx
1733
+ # Attribute for field giropay
1734
+ attr_reader :giropay
1735
+ # Attribute for field gopay
1736
+ attr_reader :gopay
1737
+ # Attribute for field grabpay
1738
+ attr_reader :grabpay
1739
+ # Attribute for field id_bank_transfer
1740
+ attr_reader :id_bank_transfer
1741
+ # Attribute for field ideal
1742
+ attr_reader :ideal
1743
+ # Attribute for field interac_present
1744
+ attr_reader :interac_present
1745
+ # Attribute for field kakao_pay
1746
+ attr_reader :kakao_pay
1747
+ # Attribute for field klarna
1748
+ attr_reader :klarna
1749
+ # Attribute for field konbini
1750
+ attr_reader :konbini
1751
+ # Attribute for field kr_card
1752
+ attr_reader :kr_card
1753
+ # Attribute for field link
1754
+ attr_reader :link
1755
+ # Attribute for field mb_way
1756
+ attr_reader :mb_way
1757
+ # Attribute for field mobilepay
1758
+ attr_reader :mobilepay
1759
+ # Attribute for field multibanco
1760
+ attr_reader :multibanco
1761
+ # Attribute for field naver_pay
1762
+ attr_reader :naver_pay
1763
+ # Attribute for field nz_bank_account
1764
+ attr_reader :nz_bank_account
1765
+ # Attribute for field oxxo
1766
+ attr_reader :oxxo
1767
+ # Attribute for field p24
1768
+ attr_reader :p24
1769
+ # Attribute for field pay_by_bank
1770
+ attr_reader :pay_by_bank
1771
+ # Attribute for field payco
1772
+ attr_reader :payco
1773
+ # ID of the Stripe PaymentMethod used to make this payment.
1774
+ attr_reader :payment_method
1775
+ # Attribute for field paynow
1776
+ attr_reader :paynow
1777
+ # Attribute for field paypal
1778
+ attr_reader :paypal
1779
+ # Attribute for field payto
1780
+ attr_reader :payto
1781
+ # Attribute for field pix
1782
+ attr_reader :pix
1783
+ # Attribute for field promptpay
1784
+ attr_reader :promptpay
1785
+ # Attribute for field qris
1786
+ attr_reader :qris
1787
+ # Attribute for field rechnung
1788
+ attr_reader :rechnung
1789
+ # Attribute for field revolut_pay
1790
+ attr_reader :revolut_pay
1791
+ # Attribute for field samsung_pay
1792
+ attr_reader :samsung_pay
1793
+ # Attribute for field satispay
1794
+ attr_reader :satispay
1795
+ # Attribute for field sepa_credit_transfer
1796
+ attr_reader :sepa_credit_transfer
1797
+ # Attribute for field sepa_debit
1798
+ attr_reader :sepa_debit
1799
+ # Attribute for field shopeepay
1800
+ attr_reader :shopeepay
1801
+ # Attribute for field sofort
1802
+ attr_reader :sofort
1803
+ # Attribute for field stripe_account
1804
+ attr_reader :stripe_account
1805
+ # Attribute for field stripe_balance
1806
+ attr_reader :stripe_balance
1807
+ # Attribute for field swish
1808
+ attr_reader :swish
1809
+ # Attribute for field twint
1810
+ attr_reader :twint
1811
+ # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
1812
+ # An additional hash is included on `payment_method_details` with a name matching this value.
1813
+ # It contains information specific to the payment method.
1814
+ attr_reader :type
1815
+ # Details of the US Bank Account used for this payment attempt.
1816
+ attr_reader :us_bank_account
1817
+ # Attribute for field wechat
1818
+ attr_reader :wechat
1819
+ # Attribute for field wechat_pay
1820
+ attr_reader :wechat_pay
1821
+ # Attribute for field zip
1822
+ attr_reader :zip
1823
+
1824
+ def self.inner_class_types
1825
+ @inner_class_types = {
1826
+ ach_credit_transfer: AchCreditTransfer,
1827
+ ach_debit: AchDebit,
1828
+ acss_debit: AcssDebit,
1829
+ affirm: Affirm,
1830
+ afterpay_clearpay: AfterpayClearpay,
1831
+ alipay: Alipay,
1832
+ alma: Alma,
1833
+ amazon_pay: AmazonPay,
1834
+ au_becs_debit: AuBecsDebit,
1835
+ bacs_debit: BacsDebit,
1836
+ bancontact: Bancontact,
1837
+ billie: Billie,
1838
+ billing_details: BillingDetails,
1839
+ blik: Blik,
1840
+ boleto: Boleto,
1841
+ card: Card,
1842
+ card_present: CardPresent,
1843
+ cashapp: Cashapp,
1844
+ crypto: Crypto,
1845
+ custom: Custom,
1846
+ customer_balance: CustomerBalance,
1847
+ eps: Eps,
1848
+ fpx: Fpx,
1849
+ giropay: Giropay,
1850
+ gopay: Gopay,
1851
+ grabpay: Grabpay,
1852
+ id_bank_transfer: IdBankTransfer,
1853
+ ideal: Ideal,
1854
+ interac_present: InteracPresent,
1855
+ kakao_pay: KakaoPay,
1856
+ klarna: Klarna,
1857
+ konbini: Konbini,
1858
+ kr_card: KrCard,
1859
+ link: Link,
1860
+ mb_way: MbWay,
1861
+ mobilepay: Mobilepay,
1862
+ multibanco: Multibanco,
1863
+ naver_pay: NaverPay,
1864
+ nz_bank_account: NzBankAccount,
1865
+ oxxo: Oxxo,
1866
+ p24: P24,
1867
+ pay_by_bank: PayByBank,
1868
+ payco: Payco,
1869
+ paynow: Paynow,
1870
+ paypal: Paypal,
1871
+ payto: Payto,
1872
+ pix: Pix,
1873
+ promptpay: Promptpay,
1874
+ qris: Qris,
1875
+ rechnung: Rechnung,
1876
+ revolut_pay: RevolutPay,
1877
+ samsung_pay: SamsungPay,
1878
+ satispay: Satispay,
1879
+ sepa_credit_transfer: SepaCreditTransfer,
1880
+ sepa_debit: SepaDebit,
1881
+ shopeepay: Shopeepay,
1882
+ sofort: Sofort,
1883
+ stripe_account: StripeAccount,
1884
+ stripe_balance: StripeBalance,
1885
+ swish: Swish,
1886
+ twint: Twint,
1887
+ us_bank_account: UsBankAccount,
1888
+ wechat: Wechat,
1889
+ wechat_pay: WechatPay,
1890
+ zip: Zip,
1891
+ }
1892
+ end
1893
+
1894
+ def self.field_remappings
1895
+ @field_remappings = {}
1896
+ end
1897
+ end
1898
+
1899
+ class ProcessorDetails < Stripe::StripeObject
1900
+ class Custom < Stripe::StripeObject
1901
+ # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
1902
+ attr_reader :payment_reference
1903
+
1904
+ def self.inner_class_types
1905
+ @inner_class_types = {}
1906
+ end
1907
+
1908
+ def self.field_remappings
1909
+ @field_remappings = {}
1910
+ end
1911
+ end
1912
+ # Custom processors represent payment processors not modeled directly in
1913
+ # the Stripe API. This resource consists of details about the custom processor
1914
+ # used for this payment attempt.
1915
+ attr_reader :custom
1916
+ # The processor used for this payment attempt.
1917
+ attr_reader :type
1918
+
1919
+ def self.inner_class_types
1920
+ @inner_class_types = { custom: Custom }
1921
+ end
1922
+
1923
+ def self.field_remappings
1924
+ @field_remappings = {}
1925
+ end
1926
+ end
1927
+
1928
+ class ShippingDetails < Stripe::StripeObject
1929
+ class Address < Stripe::StripeObject
1930
+ # City, district, suburb, town, or village.
1931
+ attr_reader :city
1932
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1933
+ attr_reader :country
1934
+ # Address line 1 (e.g., street, PO Box, or company name).
1935
+ attr_reader :line1
1936
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1937
+ attr_reader :line2
1938
+ # ZIP or postal code.
1939
+ attr_reader :postal_code
1940
+ # State, county, province, or region.
1941
+ attr_reader :state
1942
+
1943
+ def self.inner_class_types
1944
+ @inner_class_types = {}
1945
+ end
1946
+
1947
+ def self.field_remappings
1948
+ @field_remappings = {}
1949
+ end
1950
+ end
1951
+ # A representation of a physical address.
1952
+ attr_reader :address
1953
+ # The shipping recipient's name.
1954
+ attr_reader :name
1955
+ # The shipping recipient's phone number.
1956
+ attr_reader :phone
1957
+
1958
+ def self.inner_class_types
1959
+ @inner_class_types = { address: Address }
1960
+ end
1961
+
1962
+ def self.field_remappings
1963
+ @field_remappings = {}
1964
+ end
1965
+ end
1966
+
1967
+ class ReportPaymentAttemptParams < Stripe::RequestParams
1968
+ class Failed < Stripe::RequestParams
1969
+ # When the reported payment failed. Measured in seconds since the Unix epoch.
1970
+ attr_accessor :failed_at
1971
+
1972
+ def initialize(failed_at: nil)
1973
+ @failed_at = failed_at
1974
+ end
1975
+ end
1976
+
1977
+ class Guaranteed < Stripe::RequestParams
1978
+ # When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
1979
+ attr_accessor :guaranteed_at
1980
+
1981
+ def initialize(guaranteed_at: nil)
1982
+ @guaranteed_at = guaranteed_at
1983
+ end
1984
+ end
1985
+
1986
+ class PaymentMethodDetails < Stripe::RequestParams
1987
+ class BillingDetails < Stripe::RequestParams
1988
+ class Address < Stripe::RequestParams
1989
+ # City, district, suburb, town, or village.
1990
+ attr_accessor :city
1991
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1992
+ attr_accessor :country
1993
+ # Address line 1 (e.g., street, PO Box, or company name).
1994
+ attr_accessor :line1
1995
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1996
+ attr_accessor :line2
1997
+ # ZIP or postal code.
1998
+ attr_accessor :postal_code
1999
+ # State, county, province, or region.
2000
+ attr_accessor :state
2001
+
2002
+ def initialize(
2003
+ city: nil,
2004
+ country: nil,
2005
+ line1: nil,
2006
+ line2: nil,
2007
+ postal_code: nil,
2008
+ state: nil
2009
+ )
2010
+ @city = city
2011
+ @country = country
2012
+ @line1 = line1
2013
+ @line2 = line2
2014
+ @postal_code = postal_code
2015
+ @state = state
2016
+ end
2017
+ end
2018
+ # The billing address associated with the method of payment.
2019
+ attr_accessor :address
2020
+ # The billing email associated with the method of payment.
2021
+ attr_accessor :email
2022
+ # The billing name associated with the method of payment.
2023
+ attr_accessor :name
2024
+ # The billing phone number associated with the method of payment.
2025
+ attr_accessor :phone
2026
+
2027
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
2028
+ @address = address
2029
+ @email = email
2030
+ @name = name
2031
+ @phone = phone
2032
+ end
2033
+ end
2034
+
2035
+ class Custom < Stripe::RequestParams
2036
+ # Display name for the custom (user-defined) payment method type used to make this payment.
2037
+ attr_accessor :display_name
2038
+ # The custom payment method type associated with this payment.
2039
+ attr_accessor :type
2040
+
2041
+ def initialize(display_name: nil, type: nil)
2042
+ @display_name = display_name
2043
+ @type = type
2044
+ end
2045
+ end
2046
+ # The billing details associated with the method of payment.
2047
+ attr_accessor :billing_details
2048
+ # Information about the custom (user-defined) payment method used to make this payment.
2049
+ attr_accessor :custom
2050
+ # ID of the Stripe Payment Method used to make this payment.
2051
+ attr_accessor :payment_method
2052
+ # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
2053
+ attr_accessor :type
2054
+
2055
+ def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil)
2056
+ @billing_details = billing_details
2057
+ @custom = custom
2058
+ @payment_method = payment_method
2059
+ @type = type
2060
+ end
2061
+ end
2062
+
2063
+ class ShippingDetails < Stripe::RequestParams
2064
+ class Address < Stripe::RequestParams
2065
+ # City, district, suburb, town, or village.
2066
+ attr_accessor :city
2067
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2068
+ attr_accessor :country
2069
+ # Address line 1 (e.g., street, PO Box, or company name).
2070
+ attr_accessor :line1
2071
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2072
+ attr_accessor :line2
2073
+ # ZIP or postal code.
2074
+ attr_accessor :postal_code
2075
+ # State, county, province, or region.
2076
+ attr_accessor :state
2077
+
2078
+ def initialize(
2079
+ city: nil,
2080
+ country: nil,
2081
+ line1: nil,
2082
+ line2: nil,
2083
+ postal_code: nil,
2084
+ state: nil
2085
+ )
2086
+ @city = city
2087
+ @country = country
2088
+ @line1 = line1
2089
+ @line2 = line2
2090
+ @postal_code = postal_code
2091
+ @state = state
2092
+ end
2093
+ end
2094
+ # The physical shipping address.
2095
+ attr_accessor :address
2096
+ # The shipping recipient's name.
2097
+ attr_accessor :name
2098
+ # The shipping recipient's phone number.
2099
+ attr_accessor :phone
2100
+
2101
+ def initialize(address: nil, name: nil, phone: nil)
2102
+ @address = address
2103
+ @name = name
2104
+ @phone = phone
2105
+ end
2106
+ end
2107
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2108
+ attr_accessor :description
2109
+ # Specifies which fields in the response should be expanded.
2110
+ attr_accessor :expand
2111
+ # Information about the payment attempt failure.
2112
+ attr_accessor :failed
2113
+ # Information about the payment attempt guarantee.
2114
+ attr_accessor :guaranteed
2115
+ # When the reported payment was initiated. Measured in seconds since the Unix epoch.
2116
+ attr_accessor :initiated_at
2117
+ # 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`.
2118
+ attr_accessor :metadata
2119
+ # The outcome of the reported payment.
2120
+ attr_accessor :outcome
2121
+ # Information about the Payment Method debited for this payment.
2122
+ attr_accessor :payment_method_details
2123
+ # Shipping information for this payment.
2124
+ attr_accessor :shipping_details
2125
+
2126
+ def initialize(
2127
+ description: nil,
2128
+ expand: nil,
2129
+ failed: nil,
2130
+ guaranteed: nil,
2131
+ initiated_at: nil,
2132
+ metadata: nil,
2133
+ outcome: nil,
2134
+ payment_method_details: nil,
2135
+ shipping_details: nil
2136
+ )
2137
+ @description = description
2138
+ @expand = expand
2139
+ @failed = failed
2140
+ @guaranteed = guaranteed
2141
+ @initiated_at = initiated_at
2142
+ @metadata = metadata
2143
+ @outcome = outcome
2144
+ @payment_method_details = payment_method_details
2145
+ @shipping_details = shipping_details
2146
+ end
2147
+ end
2148
+
2149
+ class ReportPaymentAttemptCanceledParams < Stripe::RequestParams
2150
+ # When the reported payment was canceled. Measured in seconds since the Unix epoch.
2151
+ attr_accessor :canceled_at
2152
+ # Specifies which fields in the response should be expanded.
2153
+ attr_accessor :expand
2154
+ # Attribute for param field metadata
2155
+ attr_accessor :metadata
2156
+
2157
+ def initialize(canceled_at: nil, expand: nil, metadata: nil)
2158
+ @canceled_at = canceled_at
2159
+ @expand = expand
2160
+ @metadata = metadata
2161
+ end
2162
+ end
2163
+
2164
+ class ReportPaymentAttemptFailedParams < Stripe::RequestParams
2165
+ # Specifies which fields in the response should be expanded.
2166
+ attr_accessor :expand
2167
+ # When the reported payment failed. Measured in seconds since the Unix epoch.
2168
+ attr_accessor :failed_at
2169
+ # Attribute for param field metadata
2170
+ attr_accessor :metadata
2171
+
2172
+ def initialize(expand: nil, failed_at: nil, metadata: nil)
2173
+ @expand = expand
2174
+ @failed_at = failed_at
2175
+ @metadata = metadata
2176
+ end
2177
+ end
2178
+
2179
+ class ReportPaymentAttemptGuaranteedParams < Stripe::RequestParams
2180
+ # Specifies which fields in the response should be expanded.
2181
+ attr_accessor :expand
2182
+ # When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
2183
+ attr_accessor :guaranteed_at
2184
+ # Attribute for param field metadata
2185
+ attr_accessor :metadata
2186
+
2187
+ def initialize(expand: nil, guaranteed_at: nil, metadata: nil)
2188
+ @expand = expand
2189
+ @guaranteed_at = guaranteed_at
2190
+ @metadata = metadata
2191
+ end
2192
+ end
2193
+
2194
+ class ReportPaymentParams < Stripe::RequestParams
2195
+ class AmountRequested < Stripe::RequestParams
2196
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2197
+ attr_accessor :currency
2198
+ # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
2199
+ attr_accessor :value
2200
+
2201
+ def initialize(currency: nil, value: nil)
2202
+ @currency = currency
2203
+ @value = value
2204
+ end
2205
+ end
2206
+
2207
+ class CustomerDetails < Stripe::RequestParams
2208
+ # The customer who made the payment.
2209
+ attr_accessor :customer
2210
+ # The customer's phone number.
2211
+ attr_accessor :email
2212
+ # The customer's name.
2213
+ attr_accessor :name
2214
+ # The customer's phone number.
2215
+ attr_accessor :phone
2216
+
2217
+ def initialize(customer: nil, email: nil, name: nil, phone: nil)
2218
+ @customer = customer
2219
+ @email = email
2220
+ @name = name
2221
+ @phone = phone
2222
+ end
2223
+ end
2224
+
2225
+ class Failed < Stripe::RequestParams
2226
+ # When the reported payment failed. Measured in seconds since the Unix epoch.
2227
+ attr_accessor :failed_at
2228
+
2229
+ def initialize(failed_at: nil)
2230
+ @failed_at = failed_at
2231
+ end
2232
+ end
2233
+
2234
+ class Guaranteed < Stripe::RequestParams
2235
+ # When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
2236
+ attr_accessor :guaranteed_at
2237
+
2238
+ def initialize(guaranteed_at: nil)
2239
+ @guaranteed_at = guaranteed_at
2240
+ end
2241
+ end
2242
+
2243
+ class PaymentMethodDetails < Stripe::RequestParams
2244
+ class BillingDetails < Stripe::RequestParams
2245
+ class Address < Stripe::RequestParams
2246
+ # City, district, suburb, town, or village.
2247
+ attr_accessor :city
2248
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2249
+ attr_accessor :country
2250
+ # Address line 1 (e.g., street, PO Box, or company name).
2251
+ attr_accessor :line1
2252
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2253
+ attr_accessor :line2
2254
+ # ZIP or postal code.
2255
+ attr_accessor :postal_code
2256
+ # State, county, province, or region.
2257
+ attr_accessor :state
2258
+
2259
+ def initialize(
2260
+ city: nil,
2261
+ country: nil,
2262
+ line1: nil,
2263
+ line2: nil,
2264
+ postal_code: nil,
2265
+ state: nil
2266
+ )
2267
+ @city = city
2268
+ @country = country
2269
+ @line1 = line1
2270
+ @line2 = line2
2271
+ @postal_code = postal_code
2272
+ @state = state
2273
+ end
2274
+ end
2275
+ # The billing address associated with the method of payment.
2276
+ attr_accessor :address
2277
+ # The billing email associated with the method of payment.
2278
+ attr_accessor :email
2279
+ # The billing name associated with the method of payment.
2280
+ attr_accessor :name
2281
+ # The billing phone number associated with the method of payment.
2282
+ attr_accessor :phone
2283
+
2284
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
2285
+ @address = address
2286
+ @email = email
2287
+ @name = name
2288
+ @phone = phone
2289
+ end
2290
+ end
2291
+
2292
+ class Custom < Stripe::RequestParams
2293
+ # Display name for the custom (user-defined) payment method type used to make this payment.
2294
+ attr_accessor :display_name
2295
+ # The custom payment method type associated with this payment.
2296
+ attr_accessor :type
2297
+
2298
+ def initialize(display_name: nil, type: nil)
2299
+ @display_name = display_name
2300
+ @type = type
2301
+ end
2302
+ end
2303
+ # The billing details associated with the method of payment.
2304
+ attr_accessor :billing_details
2305
+ # Information about the custom (user-defined) payment method used to make this payment.
2306
+ attr_accessor :custom
2307
+ # ID of the Stripe Payment Method used to make this payment.
2308
+ attr_accessor :payment_method
2309
+ # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
2310
+ attr_accessor :type
2311
+
2312
+ def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil)
2313
+ @billing_details = billing_details
2314
+ @custom = custom
2315
+ @payment_method = payment_method
2316
+ @type = type
2317
+ end
2318
+ end
2319
+
2320
+ class ProcessorDetails < Stripe::RequestParams
2321
+ class Custom < Stripe::RequestParams
2322
+ # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
2323
+ attr_accessor :payment_reference
2324
+
2325
+ def initialize(payment_reference: nil)
2326
+ @payment_reference = payment_reference
2327
+ end
2328
+ end
2329
+ # Information about the custom processor used to make this payment.
2330
+ attr_accessor :custom
2331
+ # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.
2332
+ attr_accessor :type
2333
+
2334
+ def initialize(custom: nil, type: nil)
2335
+ @custom = custom
2336
+ @type = type
2337
+ end
2338
+ end
2339
+
2340
+ class ShippingDetails < Stripe::RequestParams
2341
+ class Address < Stripe::RequestParams
2342
+ # City, district, suburb, town, or village.
2343
+ attr_accessor :city
2344
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2345
+ attr_accessor :country
2346
+ # Address line 1 (e.g., street, PO Box, or company name).
2347
+ attr_accessor :line1
2348
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2349
+ attr_accessor :line2
2350
+ # ZIP or postal code.
2351
+ attr_accessor :postal_code
2352
+ # State, county, province, or region.
2353
+ attr_accessor :state
2354
+
2355
+ def initialize(
2356
+ city: nil,
2357
+ country: nil,
2358
+ line1: nil,
2359
+ line2: nil,
2360
+ postal_code: nil,
2361
+ state: nil
2362
+ )
2363
+ @city = city
2364
+ @country = country
2365
+ @line1 = line1
2366
+ @line2 = line2
2367
+ @postal_code = postal_code
2368
+ @state = state
2369
+ end
2370
+ end
2371
+ # The physical shipping address.
2372
+ attr_accessor :address
2373
+ # The shipping recipient's name.
2374
+ attr_accessor :name
2375
+ # The shipping recipient's phone number.
2376
+ attr_accessor :phone
2377
+
2378
+ def initialize(address: nil, name: nil, phone: nil)
2379
+ @address = address
2380
+ @name = name
2381
+ @phone = phone
2382
+ end
2383
+ end
2384
+ # The amount you initially requested for this payment.
2385
+ attr_accessor :amount_requested
2386
+ # Customer information for this payment.
2387
+ attr_accessor :customer_details
2388
+ # Indicates whether the customer was present in your checkout flow during this payment.
2389
+ attr_accessor :customer_presence
2390
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2391
+ attr_accessor :description
2392
+ # Specifies which fields in the response should be expanded.
2393
+ attr_accessor :expand
2394
+ # Information about the payment attempt failure.
2395
+ attr_accessor :failed
2396
+ # Information about the payment attempt guarantee.
2397
+ attr_accessor :guaranteed
2398
+ # When the reported payment was initiated. Measured in seconds since the Unix epoch.
2399
+ attr_accessor :initiated_at
2400
+ # 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`.
2401
+ attr_accessor :metadata
2402
+ # The outcome of the reported payment.
2403
+ attr_accessor :outcome
2404
+ # Information about the Payment Method debited for this payment.
2405
+ attr_accessor :payment_method_details
2406
+ # Processor information for this payment.
2407
+ attr_accessor :processor_details
2408
+ # Shipping information for this payment.
2409
+ attr_accessor :shipping_details
2410
+
2411
+ def initialize(
2412
+ amount_requested: nil,
2413
+ customer_details: nil,
2414
+ customer_presence: nil,
2415
+ description: nil,
2416
+ expand: nil,
2417
+ failed: nil,
2418
+ guaranteed: nil,
2419
+ initiated_at: nil,
2420
+ metadata: nil,
2421
+ outcome: nil,
2422
+ payment_method_details: nil,
2423
+ processor_details: nil,
2424
+ shipping_details: nil
2425
+ )
2426
+ @amount_requested = amount_requested
2427
+ @customer_details = customer_details
2428
+ @customer_presence = customer_presence
2429
+ @description = description
2430
+ @expand = expand
2431
+ @failed = failed
2432
+ @guaranteed = guaranteed
2433
+ @initiated_at = initiated_at
2434
+ @metadata = metadata
2435
+ @outcome = outcome
2436
+ @payment_method_details = payment_method_details
2437
+ @processor_details = processor_details
2438
+ @shipping_details = shipping_details
2439
+ end
2440
+ end
2441
+ # A representation of an amount of money, consisting of an amount and a currency.
2442
+ attr_reader :amount
2443
+ # A representation of an amount of money, consisting of an amount and a currency.
2444
+ attr_reader :amount_authorized
2445
+ # A representation of an amount of money, consisting of an amount and a currency.
2446
+ attr_reader :amount_canceled
2447
+ # A representation of an amount of money, consisting of an amount and a currency.
2448
+ attr_reader :amount_failed
2449
+ # A representation of an amount of money, consisting of an amount and a currency.
2450
+ attr_reader :amount_guaranteed
2451
+ # A representation of an amount of money, consisting of an amount and a currency.
2452
+ attr_reader :amount_refunded
2453
+ # A representation of an amount of money, consisting of an amount and a currency.
2454
+ attr_reader :amount_requested
2455
+ # ID of the Connect application that created the PaymentRecord.
2456
+ attr_reader :application
2457
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
2458
+ attr_reader :created
2459
+ # Customer information for this payment.
2460
+ attr_reader :customer_details
2461
+ # Indicates whether the customer was present in your checkout flow during this payment.
2462
+ attr_reader :customer_presence
2463
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2464
+ attr_reader :description
2465
+ # Unique identifier for the object.
2466
+ attr_reader :id
2467
+ # ID of the latest Payment Attempt Record attached to this Payment Record.
2468
+ attr_reader :latest_payment_attempt_record
2469
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
2470
+ attr_reader :livemode
2471
+ # 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.
2472
+ attr_reader :metadata
2473
+ # String representing the object's type. Objects of the same type share the same value.
2474
+ attr_reader :object
2475
+ # Information about the Payment Method debited for this payment.
2476
+ attr_reader :payment_method_details
2477
+ # Processor information associated with this payment.
2478
+ attr_reader :processor_details
2479
+ # Shipping information for this payment.
2480
+ attr_reader :shipping_details
2481
+
2482
+ # Report a new Payment Record. You may report a Payment Record as it is
2483
+ # initialized and later report updates through the other report_* methods, or report Payment
2484
+ # Records in a terminal state directly, through this method.
2485
+ def self.report_payment(params = {}, opts = {})
2486
+ request_stripe_object(
2487
+ method: :post,
2488
+ path: "/v1/payment_records/report_payment",
2489
+ params: params,
2490
+ opts: opts
2491
+ )
2492
+ end
2493
+
2494
+ # Report a new payment attempt on the specified Payment Record. A new payment
2495
+ # attempt can only be specified if all other payment attempts are canceled or failed.
2496
+ def report_payment_attempt(params = {}, opts = {})
2497
+ request_stripe_object(
2498
+ method: :post,
2499
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(self["id"]) }),
2500
+ params: params,
2501
+ opts: opts
2502
+ )
2503
+ end
2504
+
2505
+ # Report a new payment attempt on the specified Payment Record. A new payment
2506
+ # attempt can only be specified if all other payment attempts are canceled or failed.
2507
+ def self.report_payment_attempt(id, params = {}, opts = {})
2508
+ request_stripe_object(
2509
+ method: :post,
2510
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(id) }),
2511
+ params: params,
2512
+ opts: opts
2513
+ )
2514
+ end
2515
+
2516
+ # Report that the most recent payment attempt on the specified Payment Record
2517
+ # was canceled.
2518
+ def report_payment_attempt_canceled(params = {}, opts = {})
2519
+ request_stripe_object(
2520
+ method: :post,
2521
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(self["id"]) }),
2522
+ params: params,
2523
+ opts: opts
2524
+ )
2525
+ end
2526
+
2527
+ # Report that the most recent payment attempt on the specified Payment Record
2528
+ # was canceled.
2529
+ def self.report_payment_attempt_canceled(id, params = {}, opts = {})
2530
+ request_stripe_object(
2531
+ method: :post,
2532
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(id) }),
2533
+ params: params,
2534
+ opts: opts
2535
+ )
2536
+ end
2537
+
2538
+ # Report that the most recent payment attempt on the specified Payment Record
2539
+ # failed or errored.
2540
+ def report_payment_attempt_failed(params = {}, opts = {})
2541
+ request_stripe_object(
2542
+ method: :post,
2543
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(self["id"]) }),
2544
+ params: params,
2545
+ opts: opts
2546
+ )
2547
+ end
2548
+
2549
+ # Report that the most recent payment attempt on the specified Payment Record
2550
+ # failed or errored.
2551
+ def self.report_payment_attempt_failed(id, params = {}, opts = {})
2552
+ request_stripe_object(
2553
+ method: :post,
2554
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(id) }),
2555
+ params: params,
2556
+ opts: opts
2557
+ )
2558
+ end
2559
+
2560
+ # Report that the most recent payment attempt on the specified Payment Record
2561
+ # was guaranteed.
2562
+ def report_payment_attempt_guaranteed(params = {}, opts = {})
2563
+ request_stripe_object(
2564
+ method: :post,
2565
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(self["id"]) }),
2566
+ params: params,
2567
+ opts: opts
2568
+ )
2569
+ end
2570
+
2571
+ # Report that the most recent payment attempt on the specified Payment Record
2572
+ # was guaranteed.
2573
+ def self.report_payment_attempt_guaranteed(id, params = {}, opts = {})
2574
+ request_stripe_object(
2575
+ method: :post,
2576
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(id) }),
2577
+ params: params,
2578
+ opts: opts
2579
+ )
2580
+ end
2581
+
2582
+ def self.inner_class_types
2583
+ @inner_class_types = {
2584
+ amount: Amount,
2585
+ amount_authorized: AmountAuthorized,
2586
+ amount_canceled: AmountCanceled,
2587
+ amount_failed: AmountFailed,
2588
+ amount_guaranteed: AmountGuaranteed,
2589
+ amount_refunded: AmountRefunded,
2590
+ amount_requested: AmountRequested,
2591
+ customer_details: CustomerDetails,
2592
+ payment_method_details: PaymentMethodDetails,
2593
+ processor_details: ProcessorDetails,
2594
+ shipping_details: ShippingDetails,
2595
+ }
2596
+ end
2597
+
2598
+ def self.field_remappings
2599
+ @field_remappings = {}
2600
+ end
2601
+ end
2602
+ end