stripe 15.0.0 → 15.1.0.pre.beta.2

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