stripe 15.3.0 → 15.4.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1594 -667
  4. data/README.md +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_requestor.rb +28 -0
  7. data/lib/stripe/api_version.rb +1 -2
  8. data/lib/stripe/errors.rb +54 -0
  9. data/lib/stripe/event_types.rb +98 -0
  10. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  18. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  21. data/lib/stripe/events/v2_core_account_link_completed_event.rb +13 -0
  22. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  23. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  24. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  25. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  28. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  30. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  58. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  59. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  60. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  66. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  67. data/lib/stripe/object_types.rb +50 -0
  68. data/lib/stripe/resources/account.rb +653 -1
  69. data/lib/stripe/resources/account_notice.rb +123 -0
  70. data/lib/stripe/resources/account_session.rb +256 -1
  71. data/lib/stripe/resources/balance_settings.rb +105 -0
  72. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  73. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  74. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  75. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  76. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  77. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  78. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  79. data/lib/stripe/resources/card.rb +2 -0
  80. data/lib/stripe/resources/cash_balance.rb +2 -0
  81. data/lib/stripe/resources/charge.rb +1538 -0
  82. data/lib/stripe/resources/checkout/session.rb +326 -2
  83. data/lib/stripe/resources/confirmation_token.rb +170 -0
  84. data/lib/stripe/resources/coupon.rb +30 -1
  85. data/lib/stripe/resources/credit_note.rb +6 -0
  86. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  87. data/lib/stripe/resources/customer.rb +2 -0
  88. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  89. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  90. data/lib/stripe/resources/customer_session.rb +6 -1
  91. data/lib/stripe/resources/discount.rb +2 -0
  92. data/lib/stripe/resources/dispute.rb +2 -0
  93. data/lib/stripe/resources/event.rb +31 -0
  94. data/lib/stripe/resources/financial_connections/account.rb +22 -1
  95. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  96. data/lib/stripe/resources/financial_connections/institution.rb +92 -0
  97. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  98. data/lib/stripe/resources/fx_quote.rb +184 -0
  99. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  100. data/lib/stripe/resources/invoice.rb +1063 -16
  101. data/lib/stripe/resources/invoice_item.rb +78 -2
  102. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  103. data/lib/stripe/resources/invoice_payment.rb +2 -53
  104. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  105. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  106. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  107. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  108. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  109. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  110. data/lib/stripe/resources/line_item.rb +37 -0
  111. data/lib/stripe/resources/mandate.rb +24 -0
  112. data/lib/stripe/resources/margin.rb +115 -0
  113. data/lib/stripe/resources/order.rb +2958 -0
  114. data/lib/stripe/resources/payment_attempt_record.rb +1099 -0
  115. data/lib/stripe/resources/payment_intent.rb +8540 -3584
  116. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
  117. data/lib/stripe/resources/payment_method.rb +192 -1
  118. data/lib/stripe/resources/payment_method_configuration.rb +295 -0
  119. data/lib/stripe/resources/payment_record.rb +1628 -0
  120. data/lib/stripe/resources/payout.rb +6 -0
  121. data/lib/stripe/resources/price.rb +30 -0
  122. data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
  123. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
  124. data/lib/stripe/resources/promotion_code.rb +10 -0
  125. data/lib/stripe/resources/quote.rb +2038 -7
  126. data/lib/stripe/resources/quote_line.rb +274 -0
  127. data/lib/stripe/resources/quote_preview_invoice.rb +663 -0
  128. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +371 -0
  129. data/lib/stripe/resources/refund.rb +9 -0
  130. data/lib/stripe/resources/setup_attempt.rb +21 -0
  131. data/lib/stripe/resources/setup_intent.rb +578 -9
  132. data/lib/stripe/resources/source.rb +29 -0
  133. data/lib/stripe/resources/subscription.rb +288 -9
  134. data/lib/stripe/resources/subscription_item.rb +84 -3
  135. data/lib/stripe/resources/subscription_schedule.rb +1007 -10
  136. data/lib/stripe/resources/tax/association.rb +66 -0
  137. data/lib/stripe/resources/tax/form.rb +211 -0
  138. data/lib/stripe/resources/tax_id.rb +12 -2
  139. data/lib/stripe/resources/terminal/reader.rb +8 -0
  140. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  141. data/lib/stripe/resources/transfer.rb +6 -0
  142. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  143. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  144. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  145. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  146. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  147. data/lib/stripe/resources/v2/core/account.rb +1755 -0
  148. data/lib/stripe/resources/v2/core/account_link.rb +56 -0
  149. data/lib/stripe/resources/v2/core/person.rb +276 -0
  150. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
  151. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
  152. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
  153. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
  154. data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
  155. data/lib/stripe/resources/v2/money_management/financial_account.rb +58 -0
  156. data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
  157. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
  158. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
  159. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
  160. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
  161. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
  162. data/lib/stripe/resources/v2/money_management/payout_method.rb +75 -0
  163. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
  164. data/lib/stripe/resources/v2/money_management/received_credit.rb +122 -0
  165. data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
  166. data/lib/stripe/resources/v2/money_management/transaction.rb +78 -0
  167. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +68 -0
  168. data/lib/stripe/resources/v2/payments/off_session_payment.rb +72 -0
  169. data/lib/stripe/resources.rb +104 -0
  170. data/lib/stripe/services/account_notice_service.rb +101 -0
  171. data/lib/stripe/services/account_service.rb +562 -1
  172. data/lib/stripe/services/account_session_service.rb +226 -1
  173. data/lib/stripe/services/balance_settings_service.rb +96 -0
  174. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  175. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  176. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  177. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  178. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  179. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  180. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  181. data/lib/stripe/services/capital_service.rb +15 -0
  182. data/lib/stripe/services/charge_service.rb +1418 -0
  183. data/lib/stripe/services/checkout/session_service.rb +243 -2
  184. data/lib/stripe/services/coupon_service.rb +17 -1
  185. data/lib/stripe/services/credit_note_service.rb +4 -0
  186. data/lib/stripe/services/customer_session_service.rb +4 -1
  187. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
  188. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  189. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  190. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  191. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  192. data/lib/stripe/services/financial_connections_service.rb +2 -1
  193. data/lib/stripe/services/fx_quote_service.rb +123 -0
  194. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  195. data/lib/stripe/services/invoice_item_service.rb +74 -2
  196. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  197. data/lib/stripe/services/invoice_service.rb +1014 -16
  198. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  199. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  200. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  201. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  202. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  203. data/lib/stripe/services/issuing_service.rb +5 -1
  204. data/lib/stripe/services/margin_service.rb +119 -0
  205. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  206. data/lib/stripe/services/order_service.rb +2388 -0
  207. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  208. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  209. data/lib/stripe/services/payment_intent_service.rb +4879 -391
  210. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  211. data/lib/stripe/services/payment_method_service.rb +120 -1
  212. data/lib/stripe/services/payment_record_service.rb +542 -0
  213. data/lib/stripe/services/payout_service.rb +4 -0
  214. data/lib/stripe/services/price_service.rb +19 -0
  215. data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
  216. data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
  217. data/lib/stripe/services/privacy_service.rb +13 -0
  218. data/lib/stripe/services/promotion_code_service.rb +8 -0
  219. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  220. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  221. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  222. data/lib/stripe/services/quote_service.rb +1723 -8
  223. data/lib/stripe/services/setup_intent_service.rb +538 -9
  224. data/lib/stripe/services/subscription_item_service.rb +75 -3
  225. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  226. data/lib/stripe/services/subscription_service.rb +249 -9
  227. data/lib/stripe/services/tax/association_service.rb +31 -0
  228. data/lib/stripe/services/tax/form_service.rb +100 -0
  229. data/lib/stripe/services/tax_id_service.rb +8 -2
  230. data/lib/stripe/services/tax_service.rb +3 -1
  231. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  232. data/lib/stripe/services/terminal_service.rb +2 -1
  233. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
  234. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  235. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  236. data/lib/stripe/services/transfer_service.rb +4 -0
  237. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  238. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  239. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  240. data/lib/stripe/services/v1_services.rb +11 -2
  241. data/lib/stripe/services/v2/core/account_link_service.rb +76 -0
  242. data/lib/stripe/services/v2/core/account_service.rb +4170 -0
  243. data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
  244. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
  245. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
  246. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  247. data/lib/stripe/services/v2/core_service.rb +4 -1
  248. data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
  249. data/lib/stripe/services/v2/money_management/financial_account_service.rb +43 -0
  250. data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
  251. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
  252. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
  253. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
  254. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
  255. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
  256. data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
  257. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  258. data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
  259. data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
  260. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
  261. data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
  262. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  263. data/lib/stripe/services/v2/payment_service.rb +15 -0
  264. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +137 -0
  265. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  266. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +49 -0
  267. data/lib/stripe/services/v2_services.rb +4 -1
  268. data/lib/stripe/services.rb +53 -1
  269. data/lib/stripe/stripe_configuration.rb +3 -1
  270. data/lib/stripe/stripe_object.rb +1 -1
  271. data/lib/stripe/util.rb +7 -1
  272. data/lib/stripe/version.rb +1 -1
  273. data/lib/stripe.rb +53 -0
  274. data/rbi/stripe.rbi +193855 -0
  275. data/stripe.gemspec +4 -1
  276. metadata +161 -324
  277. data/lib/stripe/services/invoice_payment_service.rb +0 -83
  278. data/rbi/stripe/resources/account.rbi +0 -4995
  279. data/rbi/stripe/resources/account_link.rbi +0 -74
  280. data/rbi/stripe/resources/account_session.rbi +0 -1013
  281. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
  282. data/rbi/stripe/resources/application.rbi +0 -20
  283. data/rbi/stripe/resources/application_fee.rbi +0 -118
  284. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  285. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  286. data/rbi/stripe/resources/balance.rbi +0 -235
  287. data/rbi/stripe/resources/balance_transaction.rbi +0 -147
  288. data/rbi/stripe/resources/bank_account.rbi +0 -127
  289. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  290. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  291. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  292. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  293. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  294. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  295. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  296. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  297. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  298. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -645
  299. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  300. data/rbi/stripe/resources/capability.rbi +0 -125
  301. data/rbi/stripe/resources/card.rbi +0 -125
  302. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  303. data/rbi/stripe/resources/charge.rbi +0 -2086
  304. data/rbi/stripe/resources/checkout/session.rbi +0 -4060
  305. data/rbi/stripe/resources/climate/order.rbi +0 -245
  306. data/rbi/stripe/resources/climate/product.rbi +0 -75
  307. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  308. data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
  309. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  310. data/rbi/stripe/resources/country_spec.rbi +0 -85
  311. data/rbi/stripe/resources/coupon.rbi +0 -250
  312. data/rbi/stripe/resources/credit_note.rbi +0 -752
  313. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  314. data/rbi/stripe/resources/customer.rbi +0 -1005
  315. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  316. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  317. data/rbi/stripe/resources/customer_session.rbi +0 -200
  318. data/rbi/stripe/resources/discount.rbi +0 -53
  319. data/rbi/stripe/resources/dispute.rbi +0 -761
  320. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  321. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  322. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  323. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  324. data/rbi/stripe/resources/event.rbi +0 -149
  325. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  326. data/rbi/stripe/resources/file.rbi +0 -143
  327. data/rbi/stripe/resources/file_link.rbi +0 -141
  328. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  329. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  330. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  331. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  332. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  333. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  334. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  335. data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
  336. data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
  337. data/rbi/stripe/resources/invoice.rbi +0 -3842
  338. data/rbi/stripe/resources/invoice_item.rbi +0 -470
  339. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  340. data/rbi/stripe/resources/invoice_payment.rbi +0 -121
  341. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  342. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  343. data/rbi/stripe/resources/issuing/card.rbi +0 -741
  344. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  345. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  346. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  347. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  348. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  349. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  350. data/rbi/stripe/resources/line_item.rbi +0 -72
  351. data/rbi/stripe/resources/login_link.rbi +0 -19
  352. data/rbi/stripe/resources/mandate.rbi +0 -191
  353. data/rbi/stripe/resources/payment_intent.rbi +0 -9987
  354. data/rbi/stripe/resources/payment_link.rbi +0 -1801
  355. data/rbi/stripe/resources/payment_method.rbi +0 -1770
  356. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
  357. data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
  358. data/rbi/stripe/resources/payout.rbi +0 -300
  359. data/rbi/stripe/resources/person.rbi +0 -401
  360. data/rbi/stripe/resources/plan.rbi +0 -371
  361. data/rbi/stripe/resources/price.rbi +0 -694
  362. data/rbi/stripe/resources/product.rbi +0 -555
  363. data/rbi/stripe/resources/product_feature.rbi +0 -26
  364. data/rbi/stripe/resources/promotion_code.rbi +0 -261
  365. data/rbi/stripe/resources/quote.rbi +0 -1145
  366. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  367. data/rbi/stripe/resources/radar/value_list.rbi +0 -168
  368. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
  369. data/rbi/stripe/resources/refund.rbi +0 -523
  370. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  371. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  372. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  373. data/rbi/stripe/resources/reversal.rbi +0 -51
  374. data/rbi/stripe/resources/review.rbi +0 -154
  375. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  376. data/rbi/stripe/resources/setup_intent.rbi +0 -3978
  377. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  378. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  379. data/rbi/stripe/resources/source.rbi +0 -1496
  380. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  381. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  382. data/rbi/stripe/resources/subscription.rbi +0 -2080
  383. data/rbi/stripe/resources/subscription_item.rbi +0 -404
  384. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1645
  385. data/rbi/stripe/resources/tax/calculation.rbi +0 -478
  386. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
  387. data/rbi/stripe/resources/tax/registration.rbi +0 -2732
  388. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  389. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  390. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  391. data/rbi/stripe/resources/tax_code.rbi +0 -44
  392. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  393. data/rbi/stripe/resources/tax_id.rbi +0 -165
  394. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  395. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1387
  396. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  397. data/rbi/stripe/resources/terminal/location.rbi +0 -222
  398. data/rbi/stripe/resources/terminal/reader.rbi +0 -994
  399. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
  400. data/rbi/stripe/resources/token.rbi +0 -1283
  401. data/rbi/stripe/resources/topup.rbi +0 -222
  402. data/rbi/stripe/resources/transfer.rbi +0 -199
  403. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  404. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  405. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
  406. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  407. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  408. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  409. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  410. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  411. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  412. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  413. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  414. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  415. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  416. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  417. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  418. data/rbi/stripe/resources/v2/event.rbi +0 -48
  419. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  420. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
  421. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  422. data/rbi/stripe/services/account_link_service.rbi +0 -58
  423. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  424. data/rbi/stripe/services/account_person_service.rbi +0 -1011
  425. data/rbi/stripe/services/account_service.rbi +0 -4281
  426. data/rbi/stripe/services/account_session_service.rbi +0 -646
  427. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
  428. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  429. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  430. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  431. data/rbi/stripe/services/apps_service.rbi +0 -9
  432. data/rbi/stripe/services/balance_service.rbi +0 -21
  433. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  434. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  435. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  436. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  437. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  438. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  439. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  440. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  441. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  442. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -511
  443. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  444. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  445. data/rbi/stripe/services/billing_service.rbi +0 -15
  446. data/rbi/stripe/services/charge_service.rbi +0 -448
  447. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  448. data/rbi/stripe/services/checkout/session_service.rbi +0 -2670
  449. data/rbi/stripe/services/checkout_service.rbi +0 -9
  450. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  451. data/rbi/stripe/services/climate/product_service.rbi +0 -46
  452. data/rbi/stripe/services/climate_service.rbi +0 -11
  453. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  454. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  455. data/rbi/stripe/services/coupon_service.rbi +0 -194
  456. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  457. data/rbi/stripe/services/credit_note_service.rbi +0 -415
  458. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  459. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  460. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  461. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  462. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  463. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  464. data/rbi/stripe/services/customer_service.rbi +0 -647
  465. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  466. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
  467. data/rbi/stripe/services/dispute_service.rbi +0 -424
  468. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  469. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  470. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  471. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  472. data/rbi/stripe/services/event_service.rbi +0 -83
  473. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  474. data/rbi/stripe/services/file_link_service.rbi +0 -124
  475. data/rbi/stripe/services/file_service.rbi +0 -116
  476. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  477. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  478. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  479. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  480. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  481. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  482. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  483. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  484. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
  485. data/rbi/stripe/services/identity_service.rbi +0 -10
  486. data/rbi/stripe/services/invoice_item_service.rbi +0 -366
  487. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  488. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  489. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  490. data/rbi/stripe/services/invoice_service.rbi +0 -3011
  491. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  492. data/rbi/stripe/services/issuing/card_service.rbi +0 -495
  493. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  494. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  495. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  496. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  497. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  498. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  499. data/rbi/stripe/services/issuing_service.rbi +0 -16
  500. data/rbi/stripe/services/mandate_service.rbi +0 -20
  501. data/rbi/stripe/services/payment_intent_service.rbi +0 -7989
  502. data/rbi/stripe/services/payment_link_service.rbi +0 -1352
  503. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
  504. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  505. data/rbi/stripe/services/payment_method_service.rbi +0 -781
  506. data/rbi/stripe/services/payout_service.rbi +0 -205
  507. data/rbi/stripe/services/plan_service.rbi +0 -282
  508. data/rbi/stripe/services/price_service.rbi +0 -546
  509. data/rbi/stripe/services/product_feature_service.rbi +0 -67
  510. data/rbi/stripe/services/product_service.rbi +0 -477
  511. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  512. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  513. data/rbi/stripe/services/quote_service.rbi +0 -699
  514. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  515. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
  516. data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
  517. data/rbi/stripe/services/radar_service.rbi +0 -11
  518. data/rbi/stripe/services/refund_service.rbi +0 -185
  519. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  520. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  521. data/rbi/stripe/services/reporting_service.rbi +0 -10
  522. data/rbi/stripe/services/review_service.rbi +0 -84
  523. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  524. data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
  525. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  526. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  527. data/rbi/stripe/services/sigma_service.rbi +0 -9
  528. data/rbi/stripe/services/source_service.rbi +0 -663
  529. data/rbi/stripe/services/subscription_item_service.rbi +0 -350
  530. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1301
  531. data/rbi/stripe/services/subscription_service.rbi +0 -1684
  532. data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
  533. data/rbi/stripe/services/tax/registration_service.rbi +0 -1858
  534. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  535. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  536. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  537. data/rbi/stripe/services/tax_id_service.rbi +0 -110
  538. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  539. data/rbi/stripe/services/tax_service.rbi +0 -12
  540. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1118
  541. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  542. data/rbi/stripe/services/terminal/location_service.rbi +0 -182
  543. data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
  544. data/rbi/stripe/services/terminal_service.rbi +0 -12
  545. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  546. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  547. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  548. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  549. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  550. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  551. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  552. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  553. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -93
  554. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  555. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
  556. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  557. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  558. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  559. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  560. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  561. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  562. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  563. data/rbi/stripe/services/token_service.rbi +0 -1257
  564. data/rbi/stripe/services/topup_service.rbi +0 -176
  565. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  566. data/rbi/stripe/services/transfer_service.rbi +0 -152
  567. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  568. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  569. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  570. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
  571. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  572. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  573. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  574. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  575. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  576. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  577. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  578. data/rbi/stripe/services/treasury_service.rbi +0 -18
  579. data/rbi/stripe/services/v1_services.rbi +0 -77
  580. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  581. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  582. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
  583. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  584. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  585. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
  586. data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
  587. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  588. data/rbi/stripe/services/v2_services.rbi +0 -10
  589. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -0,0 +1,1628 @@
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 AmountCanceled < 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 [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
19
+ attr_reader :value
20
+ end
21
+
22
+ class AmountFailed < Stripe::StripeObject
23
+ # 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).
24
+ attr_reader :currency
25
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
26
+ attr_reader :value
27
+ end
28
+
29
+ class AmountGuaranteed < Stripe::StripeObject
30
+ # 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).
31
+ attr_reader :currency
32
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
33
+ attr_reader :value
34
+ end
35
+
36
+ class AmountRequested < Stripe::StripeObject
37
+ # 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).
38
+ attr_reader :currency
39
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
40
+ attr_reader :value
41
+ end
42
+
43
+ class CustomerDetails < Stripe::StripeObject
44
+ # ID of the Stripe Customer associated with this payment.
45
+ attr_reader :customer
46
+ # The customer's email address.
47
+ attr_reader :email
48
+ # The customer's name.
49
+ attr_reader :name
50
+ # The customer's phone number.
51
+ attr_reader :phone
52
+ end
53
+
54
+ class PaymentMethodDetails < Stripe::StripeObject
55
+ class AchCreditTransfer < Stripe::StripeObject
56
+ # Account number to transfer funds to.
57
+ attr_reader :account_number
58
+ # Name of the bank associated with the routing number.
59
+ attr_reader :bank_name
60
+ # Routing transit number for the bank account to transfer funds to.
61
+ attr_reader :routing_number
62
+ # SWIFT code of the bank associated with the routing number.
63
+ attr_reader :swift_code
64
+ end
65
+
66
+ class AchDebit < Stripe::StripeObject
67
+ # Type of entity that holds the account. This can be either `individual` or `company`.
68
+ attr_reader :account_holder_type
69
+ # Name of the bank associated with the bank account.
70
+ attr_reader :bank_name
71
+ # Two-letter ISO code representing the country the bank account is located in.
72
+ attr_reader :country
73
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
74
+ attr_reader :fingerprint
75
+ # Last four digits of the bank account number.
76
+ attr_reader :last4
77
+ # Routing transit number of the bank account.
78
+ attr_reader :routing_number
79
+ end
80
+
81
+ class AcssDebit < Stripe::StripeObject
82
+ # Name of the bank associated with the bank account.
83
+ attr_reader :bank_name
84
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
85
+ attr_reader :fingerprint
86
+ # Institution number of the bank account
87
+ attr_reader :institution_number
88
+ # Last four digits of the bank account number.
89
+ attr_reader :last4
90
+ # ID of the mandate used to make this payment.
91
+ attr_reader :mandate
92
+ # Transit number of the bank account.
93
+ attr_reader :transit_number
94
+ end
95
+
96
+ class Affirm < Stripe::StripeObject
97
+ # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
98
+ attr_reader :location
99
+ # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
100
+ attr_reader :reader
101
+ # The Affirm transaction ID associated with this payment.
102
+ attr_reader :transaction_id
103
+ end
104
+
105
+ class AfterpayClearpay < Stripe::StripeObject
106
+ # The Afterpay order ID associated with this payment intent.
107
+ attr_reader :order_id
108
+ # Order identifier shown to the merchant in Afterpay’s online portal.
109
+ attr_reader :reference
110
+ end
111
+
112
+ class Alipay < Stripe::StripeObject
113
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
114
+ attr_reader :buyer_id
115
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
116
+ attr_reader :fingerprint
117
+ # Transaction ID of this particular Alipay transaction.
118
+ attr_reader :transaction_id
119
+ end
120
+
121
+ class Alma < Stripe::StripeObject; end
122
+
123
+ class AmazonPay < Stripe::StripeObject
124
+ class Funding < Stripe::StripeObject
125
+ class Card < Stripe::StripeObject
126
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
127
+ attr_reader :brand
128
+ # 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.)
129
+ attr_reader :brand_product
130
+ # 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.
131
+ attr_reader :country
132
+ # Two-digit number representing the card's expiration month.
133
+ attr_reader :exp_month
134
+ # Four-digit number representing the card's expiration year.
135
+ attr_reader :exp_year
136
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
137
+ attr_reader :funding
138
+ # The last four digits of the card.
139
+ attr_reader :last4
140
+ end
141
+ # Attribute for field card
142
+ attr_reader :card
143
+ # funding type of the underlying payment method.
144
+ attr_reader :type
145
+ end
146
+ # Attribute for field funding
147
+ attr_reader :funding
148
+ end
149
+
150
+ class AuBecsDebit < Stripe::StripeObject
151
+ # Bank-State-Branch number of the bank account.
152
+ attr_reader :bsb_number
153
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
154
+ attr_reader :fingerprint
155
+ # Last four digits of the bank account number.
156
+ attr_reader :last4
157
+ # ID of the mandate used to make this payment.
158
+ attr_reader :mandate
159
+ end
160
+
161
+ class BacsDebit < Stripe::StripeObject
162
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
163
+ attr_reader :fingerprint
164
+ # Last four digits of the bank account number.
165
+ attr_reader :last4
166
+ # ID of the mandate used to make this payment.
167
+ attr_reader :mandate
168
+ # Sort code of the bank account. (e.g., `10-20-30`)
169
+ attr_reader :sort_code
170
+ end
171
+
172
+ class Bancontact < Stripe::StripeObject
173
+ # Bank code of bank associated with the bank account.
174
+ attr_reader :bank_code
175
+ # Name of the bank associated with the bank account.
176
+ attr_reader :bank_name
177
+ # Bank Identifier Code of the bank associated with the bank account.
178
+ attr_reader :bic
179
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
180
+ attr_reader :generated_sepa_debit
181
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
182
+ attr_reader :generated_sepa_debit_mandate
183
+ # Last four characters of the IBAN.
184
+ attr_reader :iban_last4
185
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
186
+ # Can be one of `en`, `de`, `fr`, or `nl`
187
+ attr_reader :preferred_language
188
+ # Owner's verified full name. Values are verified or provided by Bancontact directly
189
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
190
+ attr_reader :verified_name
191
+ end
192
+
193
+ class Billie < Stripe::StripeObject; end
194
+
195
+ class BillingDetails < Stripe::StripeObject
196
+ class Address < Stripe::StripeObject
197
+ # City, district, suburb, town, or village.
198
+ attr_reader :city
199
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
200
+ attr_reader :country
201
+ # Address line 1 (e.g., street, PO Box, or company name).
202
+ attr_reader :line1
203
+ # Address line 2 (e.g., apartment, suite, unit, or building).
204
+ attr_reader :line2
205
+ # ZIP or postal code.
206
+ attr_reader :postal_code
207
+ # State, county, province, or region.
208
+ attr_reader :state
209
+ end
210
+ # A representation of a physical address.
211
+ attr_reader :address
212
+ # The billing email associated with the method of payment.
213
+ attr_reader :email
214
+ # The billing name associated with the method of payment.
215
+ attr_reader :name
216
+ # The billing phone number associated with the method of payment.
217
+ attr_reader :phone
218
+ end
219
+
220
+ class Blik < Stripe::StripeObject
221
+ # A unique and immutable identifier assigned by BLIK to every buyer.
222
+ attr_reader :buyer_id
223
+ end
224
+
225
+ class Boleto < Stripe::StripeObject
226
+ # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
227
+ attr_reader :tax_id
228
+ end
229
+
230
+ class Card < Stripe::StripeObject
231
+ class Checks < Stripe::StripeObject
232
+ # Attribute for field address_line1_check
233
+ attr_reader :address_line1_check
234
+ # Attribute for field address_postal_code_check
235
+ attr_reader :address_postal_code_check
236
+ # Attribute for field cvc_check
237
+ attr_reader :cvc_check
238
+ end
239
+
240
+ class NetworkToken < Stripe::StripeObject
241
+ # Attribute for field used
242
+ attr_reader :used
243
+ end
244
+
245
+ class ThreeDSecure < Stripe::StripeObject
246
+ # Attribute for field authentication_flow
247
+ attr_reader :authentication_flow
248
+ # Attribute for field result
249
+ attr_reader :result
250
+ # Attribute for field result_reason
251
+ attr_reader :result_reason
252
+ # Attribute for field version
253
+ attr_reader :version
254
+ end
255
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
256
+ attr_reader :brand
257
+ # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
258
+ attr_reader :capture_before
259
+ # Check results by Card networks on Card address and CVC at time of payment.
260
+ attr_reader :checks
261
+ # 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.
262
+ attr_reader :country
263
+ # Two-digit number representing the card's expiration month.
264
+ attr_reader :exp_month
265
+ # Four-digit number representing the card's expiration year.
266
+ attr_reader :exp_year
267
+ # 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.
268
+ #
269
+ # *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.*
270
+ attr_reader :fingerprint
271
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
272
+ attr_reader :funding
273
+ # The last four digits of the card.
274
+ attr_reader :last4
275
+ # True if this payment was marked as MOTO and out of scope for SCA.
276
+ attr_reader :moto
277
+ # 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`.
278
+ attr_reader :network
279
+ # If this card has network token credentials, this contains the details of the network token credentials.
280
+ attr_reader :network_token
281
+ # 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.
282
+ attr_reader :network_transaction_id
283
+ # Populated if this transaction used 3D Secure authentication.
284
+ attr_reader :three_d_secure
285
+ end
286
+
287
+ class CardPresent < Stripe::StripeObject
288
+ class Offline < Stripe::StripeObject
289
+ # Time at which the payment was collected while offline
290
+ attr_reader :stored_at
291
+ # The method used to process this payment method offline. Only deferred is allowed.
292
+ attr_reader :type
293
+ end
294
+
295
+ class Receipt < Stripe::StripeObject
296
+ # The type of account being debited or credited
297
+ attr_reader :account_type
298
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
299
+ attr_reader :application_cryptogram
300
+ # 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.
301
+ attr_reader :application_preferred_name
302
+ # Identifier for this transaction.
303
+ attr_reader :authorization_code
304
+ # EMV tag 8A. A code returned by the card issuer.
305
+ attr_reader :authorization_response_code
306
+ # 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`.
307
+ attr_reader :cardholder_verification_method
308
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
309
+ attr_reader :dedicated_file_name
310
+ # 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.
311
+ attr_reader :terminal_verification_results
312
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
313
+ attr_reader :transaction_status_information
314
+ end
315
+
316
+ class Wallet < Stripe::StripeObject
317
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
318
+ attr_reader :type
319
+ end
320
+ # The authorized amount
321
+ attr_reader :amount_authorized
322
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
323
+ attr_reader :brand
324
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
325
+ attr_reader :brand_product
326
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
327
+ attr_reader :capture_before
328
+ # 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.
329
+ attr_reader :cardholder_name
330
+ # 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.
331
+ attr_reader :country
332
+ # 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.)
333
+ attr_reader :description
334
+ # Authorization response cryptogram.
335
+ attr_reader :emv_auth_data
336
+ # Two-digit number representing the card's expiration month.
337
+ attr_reader :exp_month
338
+ # Four-digit number representing the card's expiration year.
339
+ attr_reader :exp_year
340
+ # 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.
341
+ #
342
+ # *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.*
343
+ attr_reader :fingerprint
344
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
345
+ attr_reader :funding
346
+ # 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.
347
+ attr_reader :generated_card
348
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
349
+ attr_reader :iin
350
+ # 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).
351
+ attr_reader :incremental_authorization_supported
352
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
353
+ attr_reader :issuer
354
+ # The last four digits of the card.
355
+ attr_reader :last4
356
+ # 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`.
357
+ attr_reader :network
358
+ # 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.
359
+ attr_reader :network_transaction_id
360
+ # Details about payments collected offline.
361
+ attr_reader :offline
362
+ # Defines whether the authorized amount can be over-captured or not
363
+ attr_reader :overcapture_supported
364
+ # 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.
365
+ attr_reader :preferred_locales
366
+ # How card details were read in this transaction.
367
+ attr_reader :read_method
368
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
369
+ attr_reader :receipt
370
+ # Attribute for field wallet
371
+ attr_reader :wallet
372
+ end
373
+
374
+ class Cashapp < Stripe::StripeObject
375
+ # A unique and immutable identifier assigned by Cash App to every buyer.
376
+ attr_reader :buyer_id
377
+ # A public identifier for buyers using Cash App.
378
+ attr_reader :cashtag
379
+ end
380
+
381
+ class Crypto < Stripe::StripeObject
382
+ # The wallet address of the customer.
383
+ attr_reader :buyer_address
384
+ # The blockchain network that the transaction was sent on.
385
+ attr_reader :network
386
+ # The token currency that the transaction was sent with.
387
+ attr_reader :token_currency
388
+ # The blockchain transaction hash of the crypto payment.
389
+ attr_reader :transaction_hash
390
+ end
391
+
392
+ class Custom < Stripe::StripeObject
393
+ # Display name for the custom (user-defined) payment method type used to make this payment.
394
+ attr_reader :display_name
395
+ # The custom payment method type associated with this payment.
396
+ attr_reader :type
397
+ end
398
+
399
+ class CustomerBalance < Stripe::StripeObject; end
400
+
401
+ class Eps < Stripe::StripeObject
402
+ # 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`.
403
+ attr_reader :bank
404
+ # Owner's verified full name. Values are verified or provided by EPS directly
405
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
406
+ # EPS rarely provides this information so the attribute is usually empty.
407
+ attr_reader :verified_name
408
+ end
409
+
410
+ class Fpx < Stripe::StripeObject
411
+ # Account holder type, if provided. Can be one of `individual` or `company`.
412
+ attr_reader :account_holder_type
413
+ # 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`.
414
+ attr_reader :bank
415
+ # Unique transaction id generated by FPX for every request from the merchant
416
+ attr_reader :transaction_id
417
+ end
418
+
419
+ class Giropay < Stripe::StripeObject
420
+ # Bank code of bank associated with the bank account.
421
+ attr_reader :bank_code
422
+ # Name of the bank associated with the bank account.
423
+ attr_reader :bank_name
424
+ # Bank Identifier Code of the bank associated with the bank account.
425
+ attr_reader :bic
426
+ # Owner's verified full name. Values are verified or provided by Giropay directly
427
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
428
+ # Giropay rarely provides this information so the attribute is usually empty.
429
+ attr_reader :verified_name
430
+ end
431
+
432
+ class Gopay < Stripe::StripeObject; end
433
+
434
+ class Grabpay < Stripe::StripeObject
435
+ # Unique transaction id generated by GrabPay
436
+ attr_reader :transaction_id
437
+ end
438
+
439
+ class IdBankTransfer < Stripe::StripeObject
440
+ # Account number of the bank account to transfer funds to.
441
+ attr_reader :account_number
442
+ # Bank where the account is located.
443
+ attr_reader :bank
444
+ # Local bank code of the bank.
445
+ attr_reader :bank_code
446
+ # Name of the bank associated with the bank account.
447
+ attr_reader :bank_name
448
+ # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
449
+ attr_reader :display_name
450
+ end
451
+
452
+ class Ideal < Stripe::StripeObject
453
+ # 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`.
454
+ attr_reader :bank
455
+ # The Bank Identifier Code of the customer's bank.
456
+ attr_reader :bic
457
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
458
+ attr_reader :generated_sepa_debit
459
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
460
+ attr_reader :generated_sepa_debit_mandate
461
+ # Last four characters of the IBAN.
462
+ attr_reader :iban_last4
463
+ # Owner's verified full name. Values are verified or provided by iDEAL directly
464
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
465
+ attr_reader :verified_name
466
+ end
467
+
468
+ class InteracPresent < Stripe::StripeObject
469
+ class Receipt < Stripe::StripeObject
470
+ # The type of account being debited or credited
471
+ attr_reader :account_type
472
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
473
+ attr_reader :application_cryptogram
474
+ # 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.
475
+ attr_reader :application_preferred_name
476
+ # Identifier for this transaction.
477
+ attr_reader :authorization_code
478
+ # EMV tag 8A. A code returned by the card issuer.
479
+ attr_reader :authorization_response_code
480
+ # 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`.
481
+ attr_reader :cardholder_verification_method
482
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
483
+ attr_reader :dedicated_file_name
484
+ # 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.
485
+ attr_reader :terminal_verification_results
486
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
487
+ attr_reader :transaction_status_information
488
+ end
489
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
490
+ attr_reader :brand
491
+ # 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.
492
+ attr_reader :cardholder_name
493
+ # 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.
494
+ attr_reader :country
495
+ # 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.)
496
+ attr_reader :description
497
+ # Authorization response cryptogram.
498
+ attr_reader :emv_auth_data
499
+ # Two-digit number representing the card's expiration month.
500
+ attr_reader :exp_month
501
+ # Four-digit number representing the card's expiration year.
502
+ attr_reader :exp_year
503
+ # 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.
504
+ #
505
+ # *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.*
506
+ attr_reader :fingerprint
507
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
508
+ attr_reader :funding
509
+ # 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.
510
+ attr_reader :generated_card
511
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
512
+ attr_reader :iin
513
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
514
+ attr_reader :issuer
515
+ # The last four digits of the card.
516
+ attr_reader :last4
517
+ # 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`.
518
+ attr_reader :network
519
+ # 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.
520
+ attr_reader :network_transaction_id
521
+ # 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.
522
+ attr_reader :preferred_locales
523
+ # How card details were read in this transaction.
524
+ attr_reader :read_method
525
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
526
+ attr_reader :receipt
527
+ end
528
+
529
+ class KakaoPay < Stripe::StripeObject
530
+ # A unique identifier for the buyer as determined by the local payment processor.
531
+ attr_reader :buyer_id
532
+ end
533
+
534
+ class Klarna < Stripe::StripeObject
535
+ class PayerDetails < Stripe::StripeObject
536
+ class Address < Stripe::StripeObject
537
+ # The payer address country
538
+ attr_reader :country
539
+ end
540
+ # The payer's address
541
+ attr_reader :address
542
+ end
543
+ # The payer details for this transaction.
544
+ attr_reader :payer_details
545
+ # The Klarna payment method used for this transaction.
546
+ # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
547
+ attr_reader :payment_method_category
548
+ # Preferred language of the Klarna authorization page that the customer is redirected to.
549
+ # 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`
550
+ attr_reader :preferred_locale
551
+ end
552
+
553
+ class Konbini < Stripe::StripeObject
554
+ class Store < Stripe::StripeObject
555
+ # The name of the convenience store chain where the payment was completed.
556
+ attr_reader :chain
557
+ end
558
+ # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
559
+ attr_reader :store
560
+ end
561
+
562
+ class KrCard < Stripe::StripeObject
563
+ # The local credit or debit card brand.
564
+ attr_reader :brand
565
+ # A unique identifier for the buyer as determined by the local payment processor.
566
+ attr_reader :buyer_id
567
+ # The last four digits of the card. This may not be present for American Express cards.
568
+ attr_reader :last4
569
+ end
570
+
571
+ class Link < Stripe::StripeObject
572
+ # Two-letter ISO code representing the funding source country beneath the Link payment.
573
+ # You could use this attribute to get a sense of international fees.
574
+ attr_reader :country
575
+ end
576
+
577
+ class MbWay < Stripe::StripeObject; end
578
+
579
+ class Mobilepay < Stripe::StripeObject
580
+ class Card < Stripe::StripeObject
581
+ # Brand of the card used in the transaction
582
+ attr_reader :brand
583
+ # Two-letter ISO code representing the country of the card
584
+ attr_reader :country
585
+ # Two digit number representing the card's expiration month
586
+ attr_reader :exp_month
587
+ # Two digit number representing the card's expiration year
588
+ attr_reader :exp_year
589
+ # The last 4 digits of the card
590
+ attr_reader :last4
591
+ end
592
+ # Internal card details
593
+ attr_reader :card
594
+ end
595
+
596
+ class Multibanco < Stripe::StripeObject
597
+ # Entity number associated with this Multibanco payment.
598
+ attr_reader :entity
599
+ # Reference number associated with this Multibanco payment.
600
+ attr_reader :reference
601
+ end
602
+
603
+ class NaverPay < Stripe::StripeObject
604
+ # A unique identifier for the buyer as determined by the local payment processor.
605
+ attr_reader :buyer_id
606
+ end
607
+
608
+ class NzBankAccount < Stripe::StripeObject
609
+ # 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.
610
+ attr_reader :account_holder_name
611
+ # The numeric code for the bank account's bank.
612
+ attr_reader :bank_code
613
+ # The name of the bank.
614
+ attr_reader :bank_name
615
+ # The numeric code for the bank account's bank branch.
616
+ attr_reader :branch_code
617
+ # Last four digits of the bank account number.
618
+ attr_reader :last4
619
+ # The suffix of the bank account number.
620
+ attr_reader :suffix
621
+ end
622
+
623
+ class Oxxo < Stripe::StripeObject
624
+ # OXXO reference number
625
+ attr_reader :number
626
+ end
627
+
628
+ class P24 < Stripe::StripeObject
629
+ # 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`.
630
+ attr_reader :bank
631
+ # Unique reference for this Przelewy24 payment.
632
+ attr_reader :reference
633
+ # Owner's verified full name. Values are verified or provided by Przelewy24 directly
634
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
635
+ # Przelewy24 rarely provides this information so the attribute is usually empty.
636
+ attr_reader :verified_name
637
+ end
638
+
639
+ class PayByBank < Stripe::StripeObject; end
640
+
641
+ class Payco < Stripe::StripeObject
642
+ # A unique identifier for the buyer as determined by the local payment processor.
643
+ attr_reader :buyer_id
644
+ end
645
+
646
+ class Paynow < Stripe::StripeObject
647
+ # Reference number associated with this PayNow payment
648
+ attr_reader :reference
649
+ end
650
+
651
+ class Paypal < Stripe::StripeObject
652
+ class SellerProtection < Stripe::StripeObject
653
+ # An array of conditions that are covered for the transaction, if applicable.
654
+ attr_reader :dispute_categories
655
+ # Indicates whether the transaction is eligible for PayPal's seller protection.
656
+ attr_reader :status
657
+ end
658
+
659
+ class Shipping < Stripe::StripeObject
660
+ # City, district, suburb, town, or village.
661
+ attr_reader :city
662
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
663
+ attr_reader :country
664
+ # Address line 1 (e.g., street, PO Box, or company name).
665
+ attr_reader :line1
666
+ # Address line 2 (e.g., apartment, suite, unit, or building).
667
+ attr_reader :line2
668
+ # ZIP or postal code.
669
+ attr_reader :postal_code
670
+ # State, county, province, or region.
671
+ attr_reader :state
672
+ end
673
+
674
+ class VerifiedAddress < Stripe::StripeObject
675
+ # City, district, suburb, town, or village.
676
+ attr_reader :city
677
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
678
+ attr_reader :country
679
+ # Address line 1 (e.g., street, PO Box, or company name).
680
+ attr_reader :line1
681
+ # Address line 2 (e.g., apartment, suite, unit, or building).
682
+ attr_reader :line2
683
+ # ZIP or postal code.
684
+ attr_reader :postal_code
685
+ # State, county, province, or region.
686
+ attr_reader :state
687
+ end
688
+ # 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.
689
+ attr_reader :country
690
+ # Owner's email. Values are provided by PayPal directly
691
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
692
+ attr_reader :payer_email
693
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
694
+ attr_reader :payer_id
695
+ # Owner's full name. Values provided by PayPal directly
696
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
697
+ attr_reader :payer_name
698
+ # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
699
+ attr_reader :seller_protection
700
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
701
+ # execution. This shipping address will not be updated if the merchant updates the shipping
702
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
703
+ attr_reader :shipping
704
+ # A unique ID generated by PayPal for this transaction.
705
+ attr_reader :transaction_id
706
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
707
+ # execution. This shipping address will not be updated if the merchant updates the shipping
708
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
709
+ attr_reader :verified_address
710
+ # Owner's verified email. Values are verified or provided by PayPal directly
711
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
712
+ attr_reader :verified_email
713
+ # Owner's verified full name. Values are verified or provided by PayPal directly
714
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
715
+ attr_reader :verified_name
716
+ end
717
+
718
+ class Payto < Stripe::StripeObject
719
+ # Bank-State-Branch number of the bank account.
720
+ attr_reader :bsb_number
721
+ # Last four digits of the bank account number.
722
+ attr_reader :last4
723
+ # ID of the mandate used to make this payment.
724
+ attr_reader :mandate
725
+ # The PayID alias for the bank account.
726
+ attr_reader :pay_id
727
+ end
728
+
729
+ class Pix < Stripe::StripeObject
730
+ # Unique transaction id generated by BCB
731
+ attr_reader :bank_transaction_id
732
+ end
733
+
734
+ class Promptpay < Stripe::StripeObject
735
+ # Bill reference generated by PromptPay
736
+ attr_reader :reference
737
+ end
738
+
739
+ class Qris < Stripe::StripeObject; end
740
+ class Rechnung < Stripe::StripeObject; end
741
+
742
+ class RevolutPay < Stripe::StripeObject
743
+ class Funding < Stripe::StripeObject
744
+ class Card < Stripe::StripeObject
745
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
746
+ attr_reader :brand
747
+ # 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.)
748
+ attr_reader :brand_product
749
+ # 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.
750
+ attr_reader :country
751
+ # Two-digit number representing the card's expiration month.
752
+ attr_reader :exp_month
753
+ # Four-digit number representing the card's expiration year.
754
+ attr_reader :exp_year
755
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
756
+ attr_reader :funding
757
+ # The last four digits of the card.
758
+ attr_reader :last4
759
+ end
760
+ # Attribute for field card
761
+ attr_reader :card
762
+ # funding type of the underlying payment method.
763
+ attr_reader :type
764
+ end
765
+ # Attribute for field funding
766
+ attr_reader :funding
767
+ end
768
+
769
+ class SamsungPay < Stripe::StripeObject
770
+ # A unique identifier for the buyer as determined by the local payment processor.
771
+ attr_reader :buyer_id
772
+ end
773
+
774
+ class Satispay < Stripe::StripeObject; end
775
+
776
+ class SepaCreditTransfer < Stripe::StripeObject
777
+ # Name of the bank associated with the bank account.
778
+ attr_reader :bank_name
779
+ # Bank Identifier Code of the bank associated with the bank account.
780
+ attr_reader :bic
781
+ # IBAN of the bank account to transfer funds to.
782
+ attr_reader :iban
783
+ end
784
+
785
+ class SepaDebit < Stripe::StripeObject
786
+ # Bank code of bank associated with the bank account.
787
+ attr_reader :bank_code
788
+ # Branch code of bank associated with the bank account.
789
+ attr_reader :branch_code
790
+ # Two-letter ISO code representing the country the bank account is located in.
791
+ attr_reader :country
792
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
793
+ attr_reader :fingerprint
794
+ # Last four characters of the IBAN.
795
+ attr_reader :last4
796
+ # 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).
797
+ attr_reader :mandate
798
+ end
799
+
800
+ class Shopeepay < Stripe::StripeObject; end
801
+
802
+ class Sofort < Stripe::StripeObject
803
+ # Bank code of bank associated with the bank account.
804
+ attr_reader :bank_code
805
+ # Name of the bank associated with the bank account.
806
+ attr_reader :bank_name
807
+ # Bank Identifier Code of the bank associated with the bank account.
808
+ attr_reader :bic
809
+ # Two-letter ISO code representing the country the bank account is located in.
810
+ attr_reader :country
811
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
812
+ attr_reader :generated_sepa_debit
813
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
814
+ attr_reader :generated_sepa_debit_mandate
815
+ # Last four characters of the IBAN.
816
+ attr_reader :iban_last4
817
+ # Preferred language of the SOFORT authorization page that the customer is redirected to.
818
+ # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
819
+ attr_reader :preferred_language
820
+ # Owner's verified full name. Values are verified or provided by SOFORT directly
821
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
822
+ attr_reader :verified_name
823
+ end
824
+
825
+ class StripeAccount < Stripe::StripeObject; end
826
+
827
+ class StripeBalance < Stripe::StripeObject
828
+ # The connected account ID whose Stripe balance to use as the source of payment
829
+ attr_reader :account
830
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
831
+ attr_reader :source_type
832
+ end
833
+
834
+ class Swish < Stripe::StripeObject
835
+ # 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
836
+ attr_reader :fingerprint
837
+ # Payer bank reference number for the payment
838
+ attr_reader :payment_reference
839
+ # The last four digits of the Swish account phone number
840
+ attr_reader :verified_phone_last4
841
+ end
842
+
843
+ class Twint < Stripe::StripeObject; end
844
+
845
+ class UsBankAccount < Stripe::StripeObject
846
+ # Attribute for field account_holder_type
847
+ attr_reader :account_holder_type
848
+ # Attribute for field account_type
849
+ attr_reader :account_type
850
+ # Name of the bank associated with the bank account.
851
+ attr_reader :bank_name
852
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
853
+ attr_reader :fingerprint
854
+ # Last four digits of the bank account number.
855
+ attr_reader :last4
856
+ # ID of the mandate used to make this payment.
857
+ attr_reader :mandate
858
+ # Reference number to locate ACH payments with customer’s bank.
859
+ attr_reader :payment_reference
860
+ # Routing number of the bank account.
861
+ attr_reader :routing_number
862
+ end
863
+
864
+ class Wechat < Stripe::StripeObject; end
865
+
866
+ class WechatPay < Stripe::StripeObject
867
+ # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
868
+ attr_reader :fingerprint
869
+ # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
870
+ attr_reader :location
871
+ # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
872
+ attr_reader :reader
873
+ # Transaction ID of this particular WeChat Pay transaction.
874
+ attr_reader :transaction_id
875
+ end
876
+
877
+ class Zip < Stripe::StripeObject; end
878
+ # Attribute for field ach_credit_transfer
879
+ attr_reader :ach_credit_transfer
880
+ # Attribute for field ach_debit
881
+ attr_reader :ach_debit
882
+ # Attribute for field acss_debit
883
+ attr_reader :acss_debit
884
+ # Attribute for field affirm
885
+ attr_reader :affirm
886
+ # Attribute for field afterpay_clearpay
887
+ attr_reader :afterpay_clearpay
888
+ # Attribute for field alipay
889
+ attr_reader :alipay
890
+ # Attribute for field alma
891
+ attr_reader :alma
892
+ # Attribute for field amazon_pay
893
+ attr_reader :amazon_pay
894
+ # Attribute for field au_becs_debit
895
+ attr_reader :au_becs_debit
896
+ # Attribute for field bacs_debit
897
+ attr_reader :bacs_debit
898
+ # Attribute for field bancontact
899
+ attr_reader :bancontact
900
+ # Attribute for field billie
901
+ attr_reader :billie
902
+ # The billing details associated with the method of payment.
903
+ attr_reader :billing_details
904
+ # Attribute for field blik
905
+ attr_reader :blik
906
+ # Attribute for field boleto
907
+ attr_reader :boleto
908
+ # Details of the card used for this payment attempt.
909
+ attr_reader :card
910
+ # Attribute for field card_present
911
+ attr_reader :card_present
912
+ # Attribute for field cashapp
913
+ attr_reader :cashapp
914
+ # Attribute for field crypto
915
+ attr_reader :crypto
916
+ # Custom Payment Methods represent Payment Method types not modeled directly in
917
+ # the Stripe API. This resource consists of details about the custom payment method
918
+ # used for this payment attempt.
919
+ attr_reader :custom
920
+ # Attribute for field customer_balance
921
+ attr_reader :customer_balance
922
+ # Attribute for field eps
923
+ attr_reader :eps
924
+ # Attribute for field fpx
925
+ attr_reader :fpx
926
+ # Attribute for field giropay
927
+ attr_reader :giropay
928
+ # Attribute for field gopay
929
+ attr_reader :gopay
930
+ # Attribute for field grabpay
931
+ attr_reader :grabpay
932
+ # Attribute for field id_bank_transfer
933
+ attr_reader :id_bank_transfer
934
+ # Attribute for field ideal
935
+ attr_reader :ideal
936
+ # Attribute for field interac_present
937
+ attr_reader :interac_present
938
+ # Attribute for field kakao_pay
939
+ attr_reader :kakao_pay
940
+ # Attribute for field klarna
941
+ attr_reader :klarna
942
+ # Attribute for field konbini
943
+ attr_reader :konbini
944
+ # Attribute for field kr_card
945
+ attr_reader :kr_card
946
+ # Attribute for field link
947
+ attr_reader :link
948
+ # Attribute for field mb_way
949
+ attr_reader :mb_way
950
+ # Attribute for field mobilepay
951
+ attr_reader :mobilepay
952
+ # Attribute for field multibanco
953
+ attr_reader :multibanco
954
+ # Attribute for field naver_pay
955
+ attr_reader :naver_pay
956
+ # Attribute for field nz_bank_account
957
+ attr_reader :nz_bank_account
958
+ # Attribute for field oxxo
959
+ attr_reader :oxxo
960
+ # Attribute for field p24
961
+ attr_reader :p24
962
+ # Attribute for field pay_by_bank
963
+ attr_reader :pay_by_bank
964
+ # Attribute for field payco
965
+ attr_reader :payco
966
+ # ID of the Stripe PaymentMethod used to make this payment.
967
+ attr_reader :payment_method
968
+ # Attribute for field paynow
969
+ attr_reader :paynow
970
+ # Attribute for field paypal
971
+ attr_reader :paypal
972
+ # Attribute for field payto
973
+ attr_reader :payto
974
+ # Attribute for field pix
975
+ attr_reader :pix
976
+ # Attribute for field promptpay
977
+ attr_reader :promptpay
978
+ # Attribute for field qris
979
+ attr_reader :qris
980
+ # Attribute for field rechnung
981
+ attr_reader :rechnung
982
+ # Attribute for field revolut_pay
983
+ attr_reader :revolut_pay
984
+ # Attribute for field samsung_pay
985
+ attr_reader :samsung_pay
986
+ # Attribute for field satispay
987
+ attr_reader :satispay
988
+ # Attribute for field sepa_credit_transfer
989
+ attr_reader :sepa_credit_transfer
990
+ # Attribute for field sepa_debit
991
+ attr_reader :sepa_debit
992
+ # Attribute for field shopeepay
993
+ attr_reader :shopeepay
994
+ # Attribute for field sofort
995
+ attr_reader :sofort
996
+ # Attribute for field stripe_account
997
+ attr_reader :stripe_account
998
+ # Attribute for field stripe_balance
999
+ attr_reader :stripe_balance
1000
+ # Attribute for field swish
1001
+ attr_reader :swish
1002
+ # Attribute for field twint
1003
+ attr_reader :twint
1004
+ # 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.
1005
+ # An additional hash is included on `payment_method_details` with a name matching this value.
1006
+ # It contains information specific to the payment method.
1007
+ attr_reader :type
1008
+ # Details of the US Bank Account used for this payment attempt.
1009
+ attr_reader :us_bank_account
1010
+ # Attribute for field wechat
1011
+ attr_reader :wechat
1012
+ # Attribute for field wechat_pay
1013
+ attr_reader :wechat_pay
1014
+ # Attribute for field zip
1015
+ attr_reader :zip
1016
+ end
1017
+
1018
+ class ShippingDetails < Stripe::StripeObject
1019
+ class Address < Stripe::StripeObject
1020
+ # City, district, suburb, town, or village.
1021
+ attr_reader :city
1022
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1023
+ attr_reader :country
1024
+ # Address line 1 (e.g., street, PO Box, or company name).
1025
+ attr_reader :line1
1026
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1027
+ attr_reader :line2
1028
+ # ZIP or postal code.
1029
+ attr_reader :postal_code
1030
+ # State, county, province, or region.
1031
+ attr_reader :state
1032
+ end
1033
+ # A representation of a physical address.
1034
+ attr_reader :address
1035
+ # The shipping recipient's name.
1036
+ attr_reader :name
1037
+ # The shipping recipient's phone number.
1038
+ attr_reader :phone
1039
+ end
1040
+
1041
+ class ReportPaymentAttemptParams < Stripe::RequestParams
1042
+ class Failed < Stripe::RequestParams
1043
+ # When the reported payment failed. Measured in seconds since the Unix epoch.
1044
+ attr_accessor :failed_at
1045
+
1046
+ def initialize(failed_at: nil)
1047
+ @failed_at = failed_at
1048
+ end
1049
+ end
1050
+
1051
+ class Guaranteed < Stripe::RequestParams
1052
+ # When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
1053
+ attr_accessor :guaranteed_at
1054
+
1055
+ def initialize(guaranteed_at: nil)
1056
+ @guaranteed_at = guaranteed_at
1057
+ end
1058
+ end
1059
+
1060
+ class PaymentMethodDetails < Stripe::RequestParams
1061
+ class BillingDetails < Stripe::RequestParams
1062
+ class Address < Stripe::RequestParams
1063
+ # City, district, suburb, town, or village.
1064
+ attr_accessor :city
1065
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1066
+ attr_accessor :country
1067
+ # Address line 1 (e.g., street, PO Box, or company name).
1068
+ attr_accessor :line1
1069
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1070
+ attr_accessor :line2
1071
+ # ZIP or postal code.
1072
+ attr_accessor :postal_code
1073
+ # State, county, province, or region.
1074
+ attr_accessor :state
1075
+
1076
+ def initialize(
1077
+ city: nil,
1078
+ country: nil,
1079
+ line1: nil,
1080
+ line2: nil,
1081
+ postal_code: nil,
1082
+ state: nil
1083
+ )
1084
+ @city = city
1085
+ @country = country
1086
+ @line1 = line1
1087
+ @line2 = line2
1088
+ @postal_code = postal_code
1089
+ @state = state
1090
+ end
1091
+ end
1092
+ # The billing address associated with the method of payment.
1093
+ attr_accessor :address
1094
+ # The billing email associated with the method of payment.
1095
+ attr_accessor :email
1096
+ # The billing name associated with the method of payment.
1097
+ attr_accessor :name
1098
+ # The billing phone number associated with the method of payment.
1099
+ attr_accessor :phone
1100
+
1101
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
1102
+ @address = address
1103
+ @email = email
1104
+ @name = name
1105
+ @phone = phone
1106
+ end
1107
+ end
1108
+
1109
+ class Custom < Stripe::RequestParams
1110
+ # Display name for the custom (user-defined) payment method type used to make this payment.
1111
+ attr_accessor :display_name
1112
+ # The custom payment method type associated with this payment.
1113
+ attr_accessor :type
1114
+
1115
+ def initialize(display_name: nil, type: nil)
1116
+ @display_name = display_name
1117
+ @type = type
1118
+ end
1119
+ end
1120
+ # The billing details associated with the method of payment.
1121
+ attr_accessor :billing_details
1122
+ # Information about the custom (user-defined) payment method used to make this payment.
1123
+ attr_accessor :custom
1124
+ # ID of the Stripe Payment Method used to make this payment.
1125
+ attr_accessor :payment_method
1126
+ # 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.
1127
+ attr_accessor :type
1128
+
1129
+ def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil)
1130
+ @billing_details = billing_details
1131
+ @custom = custom
1132
+ @payment_method = payment_method
1133
+ @type = type
1134
+ end
1135
+ end
1136
+
1137
+ class ShippingDetails < Stripe::RequestParams
1138
+ class Address < Stripe::RequestParams
1139
+ # City, district, suburb, town, or village.
1140
+ attr_accessor :city
1141
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1142
+ attr_accessor :country
1143
+ # Address line 1 (e.g., street, PO Box, or company name).
1144
+ attr_accessor :line1
1145
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1146
+ attr_accessor :line2
1147
+ # ZIP or postal code.
1148
+ attr_accessor :postal_code
1149
+ # State, county, province, or region.
1150
+ attr_accessor :state
1151
+
1152
+ def initialize(
1153
+ city: nil,
1154
+ country: nil,
1155
+ line1: nil,
1156
+ line2: nil,
1157
+ postal_code: nil,
1158
+ state: nil
1159
+ )
1160
+ @city = city
1161
+ @country = country
1162
+ @line1 = line1
1163
+ @line2 = line2
1164
+ @postal_code = postal_code
1165
+ @state = state
1166
+ end
1167
+ end
1168
+ # The physical shipping address.
1169
+ attr_accessor :address
1170
+ # The shipping recipient's name.
1171
+ attr_accessor :name
1172
+ # The shipping recipient's phone number.
1173
+ attr_accessor :phone
1174
+
1175
+ def initialize(address: nil, name: nil, phone: nil)
1176
+ @address = address
1177
+ @name = name
1178
+ @phone = phone
1179
+ end
1180
+ end
1181
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1182
+ attr_accessor :description
1183
+ # Specifies which fields in the response should be expanded.
1184
+ attr_accessor :expand
1185
+ # Information about the payment attempt failure.
1186
+ attr_accessor :failed
1187
+ # Information about the payment attempt guarantee.
1188
+ attr_accessor :guaranteed
1189
+ # When the reported payment was initiated. Measured in seconds since the Unix epoch.
1190
+ attr_accessor :initiated_at
1191
+ # 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`.
1192
+ attr_accessor :metadata
1193
+ # The outcome of the reported payment.
1194
+ attr_accessor :outcome
1195
+ # Information about the Payment Method debited for this payment.
1196
+ attr_accessor :payment_method_details
1197
+ # Shipping information for this payment.
1198
+ attr_accessor :shipping_details
1199
+
1200
+ def initialize(
1201
+ description: nil,
1202
+ expand: nil,
1203
+ failed: nil,
1204
+ guaranteed: nil,
1205
+ initiated_at: nil,
1206
+ metadata: nil,
1207
+ outcome: nil,
1208
+ payment_method_details: nil,
1209
+ shipping_details: nil
1210
+ )
1211
+ @description = description
1212
+ @expand = expand
1213
+ @failed = failed
1214
+ @guaranteed = guaranteed
1215
+ @initiated_at = initiated_at
1216
+ @metadata = metadata
1217
+ @outcome = outcome
1218
+ @payment_method_details = payment_method_details
1219
+ @shipping_details = shipping_details
1220
+ end
1221
+ end
1222
+
1223
+ class ReportPaymentAttemptCanceledParams < Stripe::RequestParams
1224
+ # When the reported payment was canceled. Measured in seconds since the Unix epoch.
1225
+ attr_accessor :canceled_at
1226
+ # Specifies which fields in the response should be expanded.
1227
+ attr_accessor :expand
1228
+ # Attribute for param field metadata
1229
+ attr_accessor :metadata
1230
+
1231
+ def initialize(canceled_at: nil, expand: nil, metadata: nil)
1232
+ @canceled_at = canceled_at
1233
+ @expand = expand
1234
+ @metadata = metadata
1235
+ end
1236
+ end
1237
+
1238
+ class ReportPaymentAttemptFailedParams < Stripe::RequestParams
1239
+ # Specifies which fields in the response should be expanded.
1240
+ attr_accessor :expand
1241
+ # When the reported payment failed. Measured in seconds since the Unix epoch.
1242
+ attr_accessor :failed_at
1243
+ # Attribute for param field metadata
1244
+ attr_accessor :metadata
1245
+
1246
+ def initialize(expand: nil, failed_at: nil, metadata: nil)
1247
+ @expand = expand
1248
+ @failed_at = failed_at
1249
+ @metadata = metadata
1250
+ end
1251
+ end
1252
+
1253
+ class ReportPaymentAttemptGuaranteedParams < Stripe::RequestParams
1254
+ # Specifies which fields in the response should be expanded.
1255
+ attr_accessor :expand
1256
+ # When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
1257
+ attr_accessor :guaranteed_at
1258
+ # Attribute for param field metadata
1259
+ attr_accessor :metadata
1260
+
1261
+ def initialize(expand: nil, guaranteed_at: nil, metadata: nil)
1262
+ @expand = expand
1263
+ @guaranteed_at = guaranteed_at
1264
+ @metadata = metadata
1265
+ end
1266
+ end
1267
+
1268
+ class ReportPaymentParams < Stripe::RequestParams
1269
+ class AmountRequested < Stripe::RequestParams
1270
+ # 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).
1271
+ attr_accessor :currency
1272
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
1273
+ attr_accessor :value
1274
+
1275
+ def initialize(currency: nil, value: nil)
1276
+ @currency = currency
1277
+ @value = value
1278
+ end
1279
+ end
1280
+
1281
+ class CustomerDetails < Stripe::RequestParams
1282
+ # The customer who made the payment.
1283
+ attr_accessor :customer
1284
+ # The customer's phone number.
1285
+ attr_accessor :email
1286
+ # The customer's name.
1287
+ attr_accessor :name
1288
+ # The customer's phone number.
1289
+ attr_accessor :phone
1290
+
1291
+ def initialize(customer: nil, email: nil, name: nil, phone: nil)
1292
+ @customer = customer
1293
+ @email = email
1294
+ @name = name
1295
+ @phone = phone
1296
+ end
1297
+ end
1298
+
1299
+ class Failed < Stripe::RequestParams
1300
+ # When the reported payment failed. Measured in seconds since the Unix epoch.
1301
+ attr_accessor :failed_at
1302
+
1303
+ def initialize(failed_at: nil)
1304
+ @failed_at = failed_at
1305
+ end
1306
+ end
1307
+
1308
+ class Guaranteed < Stripe::RequestParams
1309
+ # When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
1310
+ attr_accessor :guaranteed_at
1311
+
1312
+ def initialize(guaranteed_at: nil)
1313
+ @guaranteed_at = guaranteed_at
1314
+ end
1315
+ end
1316
+
1317
+ class PaymentMethodDetails < Stripe::RequestParams
1318
+ class BillingDetails < Stripe::RequestParams
1319
+ class Address < Stripe::RequestParams
1320
+ # City, district, suburb, town, or village.
1321
+ attr_accessor :city
1322
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1323
+ attr_accessor :country
1324
+ # Address line 1 (e.g., street, PO Box, or company name).
1325
+ attr_accessor :line1
1326
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1327
+ attr_accessor :line2
1328
+ # ZIP or postal code.
1329
+ attr_accessor :postal_code
1330
+ # State, county, province, or region.
1331
+ attr_accessor :state
1332
+
1333
+ def initialize(
1334
+ city: nil,
1335
+ country: nil,
1336
+ line1: nil,
1337
+ line2: nil,
1338
+ postal_code: nil,
1339
+ state: nil
1340
+ )
1341
+ @city = city
1342
+ @country = country
1343
+ @line1 = line1
1344
+ @line2 = line2
1345
+ @postal_code = postal_code
1346
+ @state = state
1347
+ end
1348
+ end
1349
+ # The billing address associated with the method of payment.
1350
+ attr_accessor :address
1351
+ # The billing email associated with the method of payment.
1352
+ attr_accessor :email
1353
+ # The billing name associated with the method of payment.
1354
+ attr_accessor :name
1355
+ # The billing phone number associated with the method of payment.
1356
+ attr_accessor :phone
1357
+
1358
+ def initialize(address: nil, email: nil, name: nil, phone: nil)
1359
+ @address = address
1360
+ @email = email
1361
+ @name = name
1362
+ @phone = phone
1363
+ end
1364
+ end
1365
+
1366
+ class Custom < Stripe::RequestParams
1367
+ # Display name for the custom (user-defined) payment method type used to make this payment.
1368
+ attr_accessor :display_name
1369
+ # The custom payment method type associated with this payment.
1370
+ attr_accessor :type
1371
+
1372
+ def initialize(display_name: nil, type: nil)
1373
+ @display_name = display_name
1374
+ @type = type
1375
+ end
1376
+ end
1377
+ # The billing details associated with the method of payment.
1378
+ attr_accessor :billing_details
1379
+ # Information about the custom (user-defined) payment method used to make this payment.
1380
+ attr_accessor :custom
1381
+ # ID of the Stripe Payment Method used to make this payment.
1382
+ attr_accessor :payment_method
1383
+ # 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.
1384
+ attr_accessor :type
1385
+
1386
+ def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil)
1387
+ @billing_details = billing_details
1388
+ @custom = custom
1389
+ @payment_method = payment_method
1390
+ @type = type
1391
+ end
1392
+ end
1393
+
1394
+ class ShippingDetails < Stripe::RequestParams
1395
+ class Address < Stripe::RequestParams
1396
+ # City, district, suburb, town, or village.
1397
+ attr_accessor :city
1398
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1399
+ attr_accessor :country
1400
+ # Address line 1 (e.g., street, PO Box, or company name).
1401
+ attr_accessor :line1
1402
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1403
+ attr_accessor :line2
1404
+ # ZIP or postal code.
1405
+ attr_accessor :postal_code
1406
+ # State, county, province, or region.
1407
+ attr_accessor :state
1408
+
1409
+ def initialize(
1410
+ city: nil,
1411
+ country: nil,
1412
+ line1: nil,
1413
+ line2: nil,
1414
+ postal_code: nil,
1415
+ state: nil
1416
+ )
1417
+ @city = city
1418
+ @country = country
1419
+ @line1 = line1
1420
+ @line2 = line2
1421
+ @postal_code = postal_code
1422
+ @state = state
1423
+ end
1424
+ end
1425
+ # The physical shipping address.
1426
+ attr_accessor :address
1427
+ # The shipping recipient's name.
1428
+ attr_accessor :name
1429
+ # The shipping recipient's phone number.
1430
+ attr_accessor :phone
1431
+
1432
+ def initialize(address: nil, name: nil, phone: nil)
1433
+ @address = address
1434
+ @name = name
1435
+ @phone = phone
1436
+ end
1437
+ end
1438
+ # The amount you initially requested for this payment.
1439
+ attr_accessor :amount_requested
1440
+ # Customer information for this payment.
1441
+ attr_accessor :customer_details
1442
+ # Indicates whether the customer was present in your checkout flow during this payment.
1443
+ attr_accessor :customer_presence
1444
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1445
+ attr_accessor :description
1446
+ # Specifies which fields in the response should be expanded.
1447
+ attr_accessor :expand
1448
+ # Information about the payment attempt failure.
1449
+ attr_accessor :failed
1450
+ # Information about the payment attempt guarantee.
1451
+ attr_accessor :guaranteed
1452
+ # When the reported payment was initiated. Measured in seconds since the Unix epoch.
1453
+ attr_accessor :initiated_at
1454
+ # 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`.
1455
+ attr_accessor :metadata
1456
+ # The outcome of the reported payment.
1457
+ attr_accessor :outcome
1458
+ # Information about the Payment Method debited for this payment.
1459
+ attr_accessor :payment_method_details
1460
+ # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
1461
+ attr_accessor :payment_reference
1462
+ # Shipping information for this payment.
1463
+ attr_accessor :shipping_details
1464
+
1465
+ def initialize(
1466
+ amount_requested: nil,
1467
+ customer_details: nil,
1468
+ customer_presence: nil,
1469
+ description: nil,
1470
+ expand: nil,
1471
+ failed: nil,
1472
+ guaranteed: nil,
1473
+ initiated_at: nil,
1474
+ metadata: nil,
1475
+ outcome: nil,
1476
+ payment_method_details: nil,
1477
+ payment_reference: nil,
1478
+ shipping_details: nil
1479
+ )
1480
+ @amount_requested = amount_requested
1481
+ @customer_details = customer_details
1482
+ @customer_presence = customer_presence
1483
+ @description = description
1484
+ @expand = expand
1485
+ @failed = failed
1486
+ @guaranteed = guaranteed
1487
+ @initiated_at = initiated_at
1488
+ @metadata = metadata
1489
+ @outcome = outcome
1490
+ @payment_method_details = payment_method_details
1491
+ @payment_reference = payment_reference
1492
+ @shipping_details = shipping_details
1493
+ end
1494
+ end
1495
+ # A representation of an amount of money, consisting of an amount and a currency.
1496
+ attr_reader :amount_canceled
1497
+ # A representation of an amount of money, consisting of an amount and a currency.
1498
+ attr_reader :amount_failed
1499
+ # A representation of an amount of money, consisting of an amount and a currency.
1500
+ attr_reader :amount_guaranteed
1501
+ # A representation of an amount of money, consisting of an amount and a currency.
1502
+ attr_reader :amount_requested
1503
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1504
+ attr_reader :created
1505
+ # Customer information for this payment.
1506
+ attr_reader :customer_details
1507
+ # Indicates whether the customer was present in your checkout flow during this payment.
1508
+ attr_reader :customer_presence
1509
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1510
+ attr_reader :description
1511
+ # Unique identifier for the object.
1512
+ attr_reader :id
1513
+ # ID of the latest Payment Attempt Record attached to this Payment Record.
1514
+ attr_reader :latest_payment_attempt_record
1515
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1516
+ attr_reader :livemode
1517
+ # 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.
1518
+ attr_reader :metadata
1519
+ # String representing the object's type. Objects of the same type share the same value.
1520
+ attr_reader :object
1521
+ # Information about the Payment Method debited for this payment.
1522
+ attr_reader :payment_method_details
1523
+ # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
1524
+ attr_reader :payment_reference
1525
+ # Shipping information for this payment.
1526
+ attr_reader :shipping_details
1527
+
1528
+ # Report a new Payment Record. You may report a Payment Record as it is
1529
+ # initialized and later report updates through the other report_* methods, or report Payment
1530
+ # Records in a terminal state directly, through this method.
1531
+ def self.report_payment(params = {}, opts = {})
1532
+ request_stripe_object(
1533
+ method: :post,
1534
+ path: "/v1/payment_records/report_payment",
1535
+ params: params,
1536
+ opts: opts
1537
+ )
1538
+ end
1539
+
1540
+ # Report a new payment attempt on the specified Payment Record. A new payment
1541
+ # attempt can only be specified if all other payment attempts are canceled or failed.
1542
+ def report_payment_attempt(params = {}, opts = {})
1543
+ request_stripe_object(
1544
+ method: :post,
1545
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(self["id"]) }),
1546
+ params: params,
1547
+ opts: opts
1548
+ )
1549
+ end
1550
+
1551
+ # Report a new payment attempt on the specified Payment Record. A new payment
1552
+ # attempt can only be specified if all other payment attempts are canceled or failed.
1553
+ def self.report_payment_attempt(id, params = {}, opts = {})
1554
+ request_stripe_object(
1555
+ method: :post,
1556
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(id) }),
1557
+ params: params,
1558
+ opts: opts
1559
+ )
1560
+ end
1561
+
1562
+ # Report that the most recent payment attempt on the specified Payment Record
1563
+ # was canceled.
1564
+ def report_payment_attempt_canceled(params = {}, opts = {})
1565
+ request_stripe_object(
1566
+ method: :post,
1567
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(self["id"]) }),
1568
+ params: params,
1569
+ opts: opts
1570
+ )
1571
+ end
1572
+
1573
+ # Report that the most recent payment attempt on the specified Payment Record
1574
+ # was canceled.
1575
+ def self.report_payment_attempt_canceled(id, params = {}, opts = {})
1576
+ request_stripe_object(
1577
+ method: :post,
1578
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(id) }),
1579
+ params: params,
1580
+ opts: opts
1581
+ )
1582
+ end
1583
+
1584
+ # Report that the most recent payment attempt on the specified Payment Record
1585
+ # failed or errored.
1586
+ def report_payment_attempt_failed(params = {}, opts = {})
1587
+ request_stripe_object(
1588
+ method: :post,
1589
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(self["id"]) }),
1590
+ params: params,
1591
+ opts: opts
1592
+ )
1593
+ end
1594
+
1595
+ # Report that the most recent payment attempt on the specified Payment Record
1596
+ # failed or errored.
1597
+ def self.report_payment_attempt_failed(id, params = {}, opts = {})
1598
+ request_stripe_object(
1599
+ method: :post,
1600
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(id) }),
1601
+ params: params,
1602
+ opts: opts
1603
+ )
1604
+ end
1605
+
1606
+ # Report that the most recent payment attempt on the specified Payment Record
1607
+ # was guaranteed.
1608
+ def report_payment_attempt_guaranteed(params = {}, opts = {})
1609
+ request_stripe_object(
1610
+ method: :post,
1611
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(self["id"]) }),
1612
+ params: params,
1613
+ opts: opts
1614
+ )
1615
+ end
1616
+
1617
+ # Report that the most recent payment attempt on the specified Payment Record
1618
+ # was guaranteed.
1619
+ def self.report_payment_attempt_guaranteed(id, params = {}, opts = {})
1620
+ request_stripe_object(
1621
+ method: :post,
1622
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(id) }),
1623
+ params: params,
1624
+ opts: opts
1625
+ )
1626
+ end
1627
+ end
1628
+ end