stripe 17.0.1 → 19.0.0

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 (847) hide show
  1. checksums.yaml +4 -4
  2. data/lib/data/ca-certificates.crt +682 -518
  3. data/lib/stripe/api_requestor.rb +40 -44
  4. data/lib/stripe/api_version.rb +2 -2
  5. data/lib/stripe/errors.rb +3 -0
  6. data/lib/stripe/event_types.rb +61 -0
  7. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +7 -7
  8. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +5 -5
  9. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  22. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  24. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  25. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
  27. data/lib/stripe/object_types.rb +14 -0
  28. data/lib/stripe/params/account_capability_list_params.rb +1 -1
  29. data/lib/stripe/params/account_capability_retrieve_params.rb +1 -1
  30. data/lib/stripe/params/account_capability_update_params.rb +1 -1
  31. data/lib/stripe/params/account_create_params.rb +210 -143
  32. data/lib/stripe/params/account_delete_params.rb +1 -1
  33. data/lib/stripe/params/account_external_account_create_params.rb +6 -6
  34. data/lib/stripe/params/account_external_account_delete_params.rb +1 -1
  35. data/lib/stripe/params/account_external_account_list_params.rb +1 -1
  36. data/lib/stripe/params/account_external_account_retrieve_params.rb +1 -1
  37. data/lib/stripe/params/account_external_account_update_params.rb +5 -5
  38. data/lib/stripe/params/account_link_create_params.rb +2 -2
  39. data/lib/stripe/params/account_list_params.rb +2 -2
  40. data/lib/stripe/params/account_login_link_create_params.rb +1 -1
  41. data/lib/stripe/params/account_person_create_params.rb +29 -29
  42. data/lib/stripe/params/account_person_delete_params.rb +1 -1
  43. data/lib/stripe/params/account_person_list_params.rb +2 -2
  44. data/lib/stripe/params/account_person_retrieve_params.rb +1 -1
  45. data/lib/stripe/params/account_person_update_params.rb +29 -29
  46. data/lib/stripe/params/account_persons_params.rb +2 -2
  47. data/lib/stripe/params/account_reject_params.rb +1 -1
  48. data/lib/stripe/params/account_retrieve_current_params.rb +1 -1
  49. data/lib/stripe/params/account_retrieve_params.rb +1 -1
  50. data/lib/stripe/params/account_session_create_params.rb +43 -43
  51. data/lib/stripe/params/account_update_params.rb +206 -139
  52. data/lib/stripe/params/apple_pay_domain_create_params.rb +1 -1
  53. data/lib/stripe/params/apple_pay_domain_delete_params.rb +1 -1
  54. data/lib/stripe/params/apple_pay_domain_list_params.rb +1 -1
  55. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +1 -1
  56. data/lib/stripe/params/application_fee_list_params.rb +2 -2
  57. data/lib/stripe/params/application_fee_refund_create_params.rb +2 -2
  58. data/lib/stripe/params/application_fee_refund_list_params.rb +1 -1
  59. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +1 -1
  60. data/lib/stripe/params/application_fee_refund_update_params.rb +2 -2
  61. data/lib/stripe/params/application_fee_retrieve_params.rb +1 -1
  62. data/lib/stripe/params/apps/secret_create_params.rb +2 -2
  63. data/lib/stripe/params/apps/secret_delete_where_params.rb +2 -2
  64. data/lib/stripe/params/apps/secret_find_params.rb +2 -2
  65. data/lib/stripe/params/apps/secret_list_params.rb +2 -2
  66. data/lib/stripe/params/balance_retrieve_params.rb +1 -1
  67. data/lib/stripe/params/balance_settings_retrieve_params.rb +1 -1
  68. data/lib/stripe/params/balance_settings_update_params.rb +5 -5
  69. data/lib/stripe/params/balance_transaction_list_params.rb +4 -4
  70. data/lib/stripe/params/balance_transaction_retrieve_params.rb +1 -1
  71. data/lib/stripe/params/billing/alert_activate_params.rb +1 -1
  72. data/lib/stripe/params/billing/alert_archive_params.rb +1 -1
  73. data/lib/stripe/params/billing/alert_create_params.rb +4 -4
  74. data/lib/stripe/params/billing/alert_deactivate_params.rb +1 -1
  75. data/lib/stripe/params/billing/alert_list_params.rb +1 -1
  76. data/lib/stripe/params/billing/alert_retrieve_params.rb +1 -1
  77. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +9 -6
  78. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +6 -2
  79. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +1 -1
  80. data/lib/stripe/params/billing/credit_grant_create_params.rb +12 -8
  81. data/lib/stripe/params/billing/credit_grant_expire_params.rb +1 -1
  82. data/lib/stripe/params/billing/credit_grant_list_params.rb +5 -1
  83. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +1 -1
  84. data/lib/stripe/params/billing/credit_grant_update_params.rb +1 -1
  85. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +1 -1
  86. data/lib/stripe/params/billing/meter_create_params.rb +4 -4
  87. data/lib/stripe/params/billing/meter_deactivate_params.rb +1 -1
  88. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +2 -2
  89. data/lib/stripe/params/billing/meter_event_create_params.rb +2 -2
  90. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +1 -1
  91. data/lib/stripe/params/billing/meter_list_params.rb +1 -1
  92. data/lib/stripe/params/billing/meter_reactivate_params.rb +1 -1
  93. data/lib/stripe/params/billing/meter_retrieve_params.rb +1 -1
  94. data/lib/stripe/params/billing/meter_update_params.rb +1 -1
  95. data/lib/stripe/params/billing_portal/configuration_create_params.rb +25 -18
  96. data/lib/stripe/params/billing_portal/configuration_list_params.rb +1 -1
  97. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +1 -1
  98. data/lib/stripe/params/billing_portal/configuration_update_params.rb +25 -18
  99. data/lib/stripe/params/billing_portal/session_create_params.rb +23 -19
  100. data/lib/stripe/params/charge_capture_params.rb +4 -4
  101. data/lib/stripe/params/charge_create_params.rb +18 -18
  102. data/lib/stripe/params/charge_list_params.rb +2 -2
  103. data/lib/stripe/params/charge_retrieve_params.rb +1 -1
  104. data/lib/stripe/params/charge_search_params.rb +2 -2
  105. data/lib/stripe/params/charge_update_params.rb +7 -7
  106. data/lib/stripe/params/checkout/session_create_params.rb +359 -177
  107. data/lib/stripe/params/checkout/session_expire_params.rb +1 -1
  108. data/lib/stripe/params/checkout/session_line_item_list_params.rb +1 -1
  109. data/lib/stripe/params/checkout/session_list_line_items_params.rb +1 -1
  110. data/lib/stripe/params/checkout/session_list_params.rb +7 -3
  111. data/lib/stripe/params/checkout/session_retrieve_params.rb +1 -1
  112. data/lib/stripe/params/checkout/session_update_params.rb +185 -16
  113. data/lib/stripe/params/climate/order_cancel_params.rb +1 -1
  114. data/lib/stripe/params/climate/order_create_params.rb +7 -3
  115. data/lib/stripe/params/climate/order_list_params.rb +1 -1
  116. data/lib/stripe/params/climate/order_retrieve_params.rb +1 -1
  117. data/lib/stripe/params/climate/order_update_params.rb +3 -3
  118. data/lib/stripe/params/climate/product_list_params.rb +1 -1
  119. data/lib/stripe/params/climate/product_retrieve_params.rb +1 -1
  120. data/lib/stripe/params/climate/supplier_list_params.rb +1 -1
  121. data/lib/stripe/params/climate/supplier_retrieve_params.rb +1 -1
  122. data/lib/stripe/params/confirmation_token_create_params.rb +117 -67
  123. data/lib/stripe/params/confirmation_token_retrieve_params.rb +1 -1
  124. data/lib/stripe/params/country_spec_list_params.rb +1 -1
  125. data/lib/stripe/params/country_spec_retrieve_params.rb +1 -1
  126. data/lib/stripe/params/coupon_create_params.rb +5 -5
  127. data/lib/stripe/params/coupon_delete_params.rb +1 -1
  128. data/lib/stripe/params/coupon_list_params.rb +2 -2
  129. data/lib/stripe/params/coupon_retrieve_params.rb +1 -1
  130. data/lib/stripe/params/coupon_update_params.rb +3 -3
  131. data/lib/stripe/params/credit_note_create_params.rb +44 -10
  132. data/lib/stripe/params/credit_note_line_item_list_params.rb +1 -1
  133. data/lib/stripe/params/credit_note_list_params.rb +6 -2
  134. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +44 -10
  135. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +44 -10
  136. data/lib/stripe/params/credit_note_preview_params.rb +44 -10
  137. data/lib/stripe/params/credit_note_retrieve_params.rb +1 -1
  138. data/lib/stripe/params/credit_note_update_params.rb +2 -2
  139. data/lib/stripe/params/credit_note_void_credit_note_params.rb +1 -1
  140. data/lib/stripe/params/customer_balance_transaction_create_params.rb +3 -3
  141. data/lib/stripe/params/customer_balance_transaction_list_params.rb +32 -2
  142. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +1 -1
  143. data/lib/stripe/params/customer_balance_transaction_update_params.rb +2 -2
  144. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +1 -1
  145. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +1 -1
  146. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +1 -1
  147. data/lib/stripe/params/customer_cash_balance_update_params.rb +3 -3
  148. data/lib/stripe/params/customer_create_funding_instructions_params.rb +4 -4
  149. data/lib/stripe/params/customer_create_params.rb +17 -17
  150. data/lib/stripe/params/customer_delete_discount_params.rb +1 -1
  151. data/lib/stripe/params/customer_delete_params.rb +1 -1
  152. data/lib/stripe/params/customer_fund_cash_balance_params.rb +3 -3
  153. data/lib/stripe/params/customer_funding_instructions_create_params.rb +4 -4
  154. data/lib/stripe/params/customer_list_params.rb +2 -2
  155. data/lib/stripe/params/customer_list_payment_methods_params.rb +1 -1
  156. data/lib/stripe/params/customer_payment_method_list_params.rb +1 -1
  157. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +1 -1
  158. data/lib/stripe/params/customer_payment_source_create_params.rb +3 -3
  159. data/lib/stripe/params/customer_payment_source_delete_params.rb +1 -1
  160. data/lib/stripe/params/customer_payment_source_list_params.rb +1 -1
  161. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +1 -1
  162. data/lib/stripe/params/customer_payment_source_update_params.rb +5 -5
  163. data/lib/stripe/params/customer_payment_source_verify_params.rb +1 -1
  164. data/lib/stripe/params/customer_retrieve_params.rb +1 -1
  165. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +1 -1
  166. data/lib/stripe/params/customer_search_params.rb +2 -2
  167. data/lib/stripe/params/customer_session_create_params.rb +97 -9
  168. data/lib/stripe/params/customer_tax_id_create_params.rb +2 -2
  169. data/lib/stripe/params/customer_tax_id_delete_params.rb +1 -1
  170. data/lib/stripe/params/customer_tax_id_list_params.rb +1 -1
  171. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +1 -1
  172. data/lib/stripe/params/customer_update_params.rb +17 -17
  173. data/lib/stripe/params/dispute_close_params.rb +1 -1
  174. data/lib/stripe/params/dispute_list_params.rb +2 -2
  175. data/lib/stripe/params/dispute_retrieve_params.rb +1 -1
  176. data/lib/stripe/params/dispute_update_params.rb +12 -12
  177. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +1 -1
  178. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +1 -1
  179. data/lib/stripe/params/entitlements/feature_create_params.rb +1 -1
  180. data/lib/stripe/params/entitlements/feature_list_params.rb +1 -1
  181. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +1 -1
  182. data/lib/stripe/params/entitlements/feature_update_params.rb +1 -1
  183. data/lib/stripe/params/ephemeral_key_create_params.rb +1 -1
  184. data/lib/stripe/params/ephemeral_key_delete_params.rb +1 -1
  185. data/lib/stripe/params/event_list_params.rb +2 -2
  186. data/lib/stripe/params/event_retrieve_params.rb +1 -1
  187. data/lib/stripe/params/exchange_rate_list_params.rb +1 -1
  188. data/lib/stripe/params/exchange_rate_retrieve_params.rb +1 -1
  189. data/lib/stripe/params/file_create_params.rb +5 -5
  190. data/lib/stripe/params/file_link_create_params.rb +2 -2
  191. data/lib/stripe/params/file_link_list_params.rb +2 -2
  192. data/lib/stripe/params/file_link_retrieve_params.rb +1 -1
  193. data/lib/stripe/params/file_link_update_params.rb +2 -2
  194. data/lib/stripe/params/file_list_params.rb +2 -2
  195. data/lib/stripe/params/file_retrieve_params.rb +1 -1
  196. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +1 -1
  197. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +1 -1
  198. data/lib/stripe/params/financial_connections/account_list_params.rb +8 -5
  199. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +1 -1
  200. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +1 -1
  201. data/lib/stripe/params/financial_connections/account_refresh_params.rb +1 -1
  202. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +1 -1
  203. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +1 -1
  204. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +1 -1
  205. data/lib/stripe/params/financial_connections/session_create_params.rb +9 -6
  206. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +1 -1
  207. data/lib/stripe/params/financial_connections/transaction_list_params.rb +3 -3
  208. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +1 -1
  209. data/lib/stripe/params/forwarding/request_create_params.rb +4 -4
  210. data/lib/stripe/params/forwarding/request_list_params.rb +2 -2
  211. data/lib/stripe/params/forwarding/request_retrieve_params.rb +1 -1
  212. data/lib/stripe/params/identity/verification_report_list_params.rb +2 -2
  213. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +1 -1
  214. data/lib/stripe/params/identity/verification_session_cancel_params.rb +1 -1
  215. data/lib/stripe/params/identity/verification_session_create_params.rb +14 -10
  216. data/lib/stripe/params/identity/verification_session_list_params.rb +8 -4
  217. data/lib/stripe/params/identity/verification_session_redact_params.rb +1 -1
  218. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +1 -1
  219. data/lib/stripe/params/identity/verification_session_update_params.rb +9 -9
  220. data/lib/stripe/params/invoice_add_lines_params.rb +48 -18
  221. data/lib/stripe/params/invoice_attach_payment_params.rb +5 -2
  222. data/lib/stripe/params/invoice_create_params.rb +77 -48
  223. data/lib/stripe/params/invoice_create_preview_params.rb +257 -80
  224. data/lib/stripe/params/invoice_delete_params.rb +1 -1
  225. data/lib/stripe/params/invoice_finalize_invoice_params.rb +2 -2
  226. data/lib/stripe/params/invoice_item_create_params.rb +33 -13
  227. data/lib/stripe/params/invoice_item_delete_params.rb +1 -1
  228. data/lib/stripe/params/invoice_item_list_params.rb +7 -3
  229. data/lib/stripe/params/invoice_item_retrieve_params.rb +1 -1
  230. data/lib/stripe/params/invoice_item_update_params.rb +28 -12
  231. data/lib/stripe/params/invoice_line_item_list_params.rb +1 -1
  232. data/lib/stripe/params/invoice_line_item_update_params.rb +31 -16
  233. data/lib/stripe/params/invoice_list_params.rb +8 -4
  234. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +1 -1
  235. data/lib/stripe/params/invoice_pay_params.rb +1 -1
  236. data/lib/stripe/params/invoice_payment_list_params.rb +28 -3
  237. data/lib/stripe/params/invoice_payment_retrieve_params.rb +1 -1
  238. data/lib/stripe/params/invoice_remove_lines_params.rb +3 -3
  239. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +1 -1
  240. data/lib/stripe/params/invoice_rendering_template_list_params.rb +1 -1
  241. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +1 -1
  242. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +1 -1
  243. data/lib/stripe/params/invoice_retrieve_params.rb +1 -1
  244. data/lib/stripe/params/invoice_search_params.rb +2 -2
  245. data/lib/stripe/params/invoice_send_invoice_params.rb +1 -1
  246. data/lib/stripe/params/invoice_update_lines_params.rb +48 -18
  247. data/lib/stripe/params/invoice_update_params.rb +70 -45
  248. data/lib/stripe/params/invoice_void_invoice_params.rb +1 -1
  249. data/lib/stripe/params/issuing/authorization_approve_params.rb +3 -3
  250. data/lib/stripe/params/issuing/authorization_capture_params.rb +139 -14
  251. data/lib/stripe/params/issuing/authorization_create_params.rb +124 -29
  252. data/lib/stripe/params/issuing/authorization_decline_params.rb +2 -2
  253. data/lib/stripe/params/issuing/authorization_expire_params.rb +1 -1
  254. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +89 -9
  255. data/lib/stripe/params/issuing/authorization_increment_params.rb +3 -3
  256. data/lib/stripe/params/issuing/authorization_list_params.rb +2 -2
  257. data/lib/stripe/params/issuing/authorization_respond_params.rb +1 -1
  258. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +1 -1
  259. data/lib/stripe/params/issuing/authorization_reverse_params.rb +2 -2
  260. data/lib/stripe/params/issuing/authorization_update_params.rb +2 -2
  261. data/lib/stripe/params/issuing/card_create_params.rb +36 -15
  262. data/lib/stripe/params/issuing/card_deliver_card_params.rb +1 -1
  263. data/lib/stripe/params/issuing/card_fail_card_params.rb +1 -1
  264. data/lib/stripe/params/issuing/card_list_params.rb +2 -2
  265. data/lib/stripe/params/issuing/card_retrieve_params.rb +1 -1
  266. data/lib/stripe/params/issuing/card_return_card_params.rb +1 -1
  267. data/lib/stripe/params/issuing/card_ship_card_params.rb +1 -1
  268. data/lib/stripe/params/issuing/card_submit_card_params.rb +1 -1
  269. data/lib/stripe/params/issuing/card_update_params.rb +14 -14
  270. data/lib/stripe/params/issuing/cardholder_create_params.rb +26 -26
  271. data/lib/stripe/params/issuing/cardholder_list_params.rb +2 -2
  272. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +1 -1
  273. data/lib/stripe/params/issuing/cardholder_update_params.rb +25 -25
  274. data/lib/stripe/params/issuing/dispute_create_params.rb +13 -13
  275. data/lib/stripe/params/issuing/dispute_list_params.rb +2 -2
  276. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +1 -1
  277. data/lib/stripe/params/issuing/dispute_submit_params.rb +2 -2
  278. data/lib/stripe/params/issuing/dispute_update_params.rb +12 -12
  279. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +1 -1
  280. data/lib/stripe/params/issuing/personalization_design_create_params.rb +4 -4
  281. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +1 -1
  282. data/lib/stripe/params/issuing/personalization_design_list_params.rb +2 -2
  283. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +2 -2
  284. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +1 -1
  285. data/lib/stripe/params/issuing/personalization_design_update_params.rb +4 -4
  286. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +1 -1
  287. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +1 -1
  288. data/lib/stripe/params/issuing/token_list_params.rb +2 -2
  289. data/lib/stripe/params/issuing/token_retrieve_params.rb +1 -1
  290. data/lib/stripe/params/issuing/token_update_params.rb +1 -1
  291. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +141 -16
  292. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +141 -16
  293. data/lib/stripe/params/issuing/transaction_list_params.rb +2 -2
  294. data/lib/stripe/params/issuing/transaction_refund_params.rb +2 -2
  295. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +1 -1
  296. data/lib/stripe/params/issuing/transaction_update_params.rb +2 -2
  297. data/lib/stripe/params/mandate_retrieve_params.rb +1 -1
  298. data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  299. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  300. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  301. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +2 -2
  302. data/lib/stripe/params/payment_intent_cancel_params.rb +1 -1
  303. data/lib/stripe/params/payment_intent_capture_params.rb +243 -6
  304. data/lib/stripe/params/payment_intent_confirm_params.rb +544 -162
  305. data/lib/stripe/params/payment_intent_create_params.rb +568 -178
  306. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +242 -5
  307. data/lib/stripe/params/payment_intent_list_params.rb +6 -2
  308. data/lib/stripe/params/payment_intent_retrieve_params.rb +1 -1
  309. data/lib/stripe/params/payment_intent_search_params.rb +2 -2
  310. data/lib/stripe/params/payment_intent_update_params.rb +550 -160
  311. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +1 -1
  312. data/lib/stripe/params/payment_link_create_params.rb +134 -73
  313. data/lib/stripe/params/payment_link_line_item_list_params.rb +1 -1
  314. data/lib/stripe/params/payment_link_list_line_items_params.rb +1 -1
  315. data/lib/stripe/params/payment_link_list_params.rb +1 -1
  316. data/lib/stripe/params/payment_link_retrieve_params.rb +1 -1
  317. data/lib/stripe/params/payment_link_update_params.rb +128 -54
  318. data/lib/stripe/params/payment_method_attach_params.rb +5 -2
  319. data/lib/stripe/params/payment_method_configuration_create_params.rb +227 -143
  320. data/lib/stripe/params/payment_method_configuration_list_params.rb +1 -1
  321. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +1 -1
  322. data/lib/stripe/params/payment_method_configuration_update_params.rb +227 -143
  323. data/lib/stripe/params/payment_method_create_params.rb +124 -60
  324. data/lib/stripe/params/payment_method_detach_params.rb +1 -1
  325. data/lib/stripe/params/payment_method_domain_create_params.rb +1 -1
  326. data/lib/stripe/params/payment_method_domain_list_params.rb +1 -1
  327. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +1 -1
  328. data/lib/stripe/params/payment_method_domain_update_params.rb +1 -1
  329. data/lib/stripe/params/payment_method_domain_validate_params.rb +1 -1
  330. data/lib/stripe/params/payment_method_list_params.rb +10 -2
  331. data/lib/stripe/params/payment_method_retrieve_params.rb +1 -1
  332. data/lib/stripe/params/payment_method_update_params.rb +27 -8
  333. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  334. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  335. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  336. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  337. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  338. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  339. data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  340. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  341. data/lib/stripe/params/payout_cancel_params.rb +1 -1
  342. data/lib/stripe/params/payout_create_params.rb +2 -2
  343. data/lib/stripe/params/payout_list_params.rb +3 -3
  344. data/lib/stripe/params/payout_retrieve_params.rb +1 -1
  345. data/lib/stripe/params/payout_reverse_params.rb +2 -2
  346. data/lib/stripe/params/payout_update_params.rb +2 -2
  347. data/lib/stripe/params/plan_create_params.rb +28 -8
  348. data/lib/stripe/params/plan_delete_params.rb +1 -1
  349. data/lib/stripe/params/plan_list_params.rb +2 -2
  350. data/lib/stripe/params/plan_retrieve_params.rb +1 -1
  351. data/lib/stripe/params/plan_update_params.rb +3 -3
  352. data/lib/stripe/params/price_create_params.rb +55 -15
  353. data/lib/stripe/params/price_list_params.rb +3 -3
  354. data/lib/stripe/params/price_retrieve_params.rb +1 -1
  355. data/lib/stripe/params/price_search_params.rb +2 -2
  356. data/lib/stripe/params/price_update_params.rb +27 -7
  357. data/lib/stripe/params/product_create_params.rb +49 -16
  358. data/lib/stripe/params/product_delete_params.rb +1 -1
  359. data/lib/stripe/params/product_feature_create_params.rb +2 -2
  360. data/lib/stripe/params/product_feature_delete_params.rb +1 -1
  361. data/lib/stripe/params/product_feature_list_params.rb +1 -1
  362. data/lib/stripe/params/product_feature_retrieve_params.rb +1 -1
  363. data/lib/stripe/params/product_list_params.rb +3 -3
  364. data/lib/stripe/params/product_retrieve_params.rb +1 -1
  365. data/lib/stripe/params/product_search_params.rb +2 -2
  366. data/lib/stripe/params/product_update_params.rb +7 -7
  367. data/lib/stripe/params/promotion_code_create_params.rb +11 -7
  368. data/lib/stripe/params/promotion_code_list_params.rb +6 -2
  369. data/lib/stripe/params/promotion_code_retrieve_params.rb +1 -1
  370. data/lib/stripe/params/promotion_code_update_params.rb +4 -4
  371. data/lib/stripe/params/quote_accept_params.rb +1 -1
  372. data/lib/stripe/params/quote_cancel_params.rb +1 -1
  373. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +1 -1
  374. data/lib/stripe/params/quote_create_params.rb +45 -19
  375. data/lib/stripe/params/quote_finalize_quote_params.rb +1 -1
  376. data/lib/stripe/params/quote_line_item_list_params.rb +1 -1
  377. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +1 -1
  378. data/lib/stripe/params/quote_list_line_items_params.rb +1 -1
  379. data/lib/stripe/params/quote_list_params.rb +6 -2
  380. data/lib/stripe/params/quote_pdf_params.rb +1 -1
  381. data/lib/stripe/params/quote_retrieve_params.rb +1 -1
  382. data/lib/stripe/params/quote_update_params.rb +42 -16
  383. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +2 -2
  384. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +1 -1
  385. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
  386. data/lib/stripe/params/radar/value_list_create_params.rb +3 -3
  387. data/lib/stripe/params/radar/value_list_delete_params.rb +1 -1
  388. data/lib/stripe/params/radar/value_list_item_create_params.rb +1 -1
  389. data/lib/stripe/params/radar/value_list_item_delete_params.rb +1 -1
  390. data/lib/stripe/params/radar/value_list_item_list_params.rb +2 -2
  391. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +1 -1
  392. data/lib/stripe/params/radar/value_list_list_params.rb +2 -2
  393. data/lib/stripe/params/radar/value_list_retrieve_params.rb +1 -1
  394. data/lib/stripe/params/radar/value_list_update_params.rb +2 -2
  395. data/lib/stripe/params/refund_cancel_params.rb +1 -1
  396. data/lib/stripe/params/refund_create_params.rb +3 -3
  397. data/lib/stripe/params/refund_expire_params.rb +1 -1
  398. data/lib/stripe/params/refund_list_params.rb +2 -2
  399. data/lib/stripe/params/refund_retrieve_params.rb +1 -1
  400. data/lib/stripe/params/refund_update_params.rb +2 -2
  401. data/lib/stripe/params/reporting/report_run_create_params.rb +4 -4
  402. data/lib/stripe/params/reporting/report_run_list_params.rb +2 -2
  403. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +1 -1
  404. data/lib/stripe/params/reporting/report_type_list_params.rb +1 -1
  405. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +1 -1
  406. data/lib/stripe/params/review_approve_params.rb +1 -1
  407. data/lib/stripe/params/review_list_params.rb +2 -2
  408. data/lib/stripe/params/review_retrieve_params.rb +1 -1
  409. data/lib/stripe/params/setup_attempt_list_params.rb +2 -2
  410. data/lib/stripe/params/setup_intent_cancel_params.rb +1 -1
  411. data/lib/stripe/params/setup_intent_confirm_params.rb +223 -93
  412. data/lib/stripe/params/setup_intent_create_params.rb +241 -101
  413. data/lib/stripe/params/setup_intent_list_params.rb +6 -2
  414. data/lib/stripe/params/setup_intent_retrieve_params.rb +1 -1
  415. data/lib/stripe/params/setup_intent_update_params.rb +231 -91
  416. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +1 -1
  417. data/lib/stripe/params/shipping_rate_create_params.rb +8 -8
  418. data/lib/stripe/params/shipping_rate_list_params.rb +2 -2
  419. data/lib/stripe/params/shipping_rate_retrieve_params.rb +1 -1
  420. data/lib/stripe/params/shipping_rate_update_params.rb +4 -4
  421. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +1 -1
  422. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +1 -1
  423. data/lib/stripe/params/source_create_params.rb +16 -16
  424. data/lib/stripe/params/source_detach_params.rb +1 -1
  425. data/lib/stripe/params/source_retrieve_params.rb +1 -1
  426. data/lib/stripe/params/source_transaction_list_params.rb +1 -1
  427. data/lib/stripe/params/source_update_params.rb +14 -14
  428. data/lib/stripe/params/source_verify_params.rb +1 -1
  429. data/lib/stripe/params/subscription_cancel_params.rb +2 -2
  430. data/lib/stripe/params/subscription_create_params.rb +131 -63
  431. data/lib/stripe/params/subscription_delete_discount_params.rb +1 -1
  432. data/lib/stripe/params/subscription_item_create_params.rb +25 -15
  433. data/lib/stripe/params/subscription_item_delete_params.rb +18 -4
  434. data/lib/stripe/params/subscription_item_list_params.rb +1 -1
  435. data/lib/stripe/params/subscription_item_retrieve_params.rb +1 -1
  436. data/lib/stripe/params/subscription_item_update_params.rb +25 -15
  437. data/lib/stripe/params/subscription_list_params.rb +11 -7
  438. data/lib/stripe/params/subscription_migrate_params.rb +3 -3
  439. data/lib/stripe/params/subscription_resume_params.rb +3 -3
  440. data/lib/stripe/params/subscription_retrieve_params.rb +1 -1
  441. data/lib/stripe/params/subscription_schedule_cancel_params.rb +1 -1
  442. data/lib/stripe/params/subscription_schedule_create_params.rb +119 -45
  443. data/lib/stripe/params/subscription_schedule_list_params.rb +9 -5
  444. data/lib/stripe/params/subscription_schedule_release_params.rb +1 -1
  445. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +1 -1
  446. data/lib/stripe/params/subscription_schedule_update_params.rb +113 -43
  447. data/lib/stripe/params/subscription_search_params.rb +2 -2
  448. data/lib/stripe/params/subscription_update_params.rb +126 -62
  449. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  450. data/lib/stripe/params/tax/calculation_create_params.rb +16 -16
  451. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +1 -1
  452. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +1 -1
  453. data/lib/stripe/params/tax/calculation_retrieve_params.rb +1 -1
  454. data/lib/stripe/params/tax/registration_create_params.rb +190 -164
  455. data/lib/stripe/params/tax/registration_list_params.rb +1 -1
  456. data/lib/stripe/params/tax/registration_retrieve_params.rb +1 -1
  457. data/lib/stripe/params/tax/registration_update_params.rb +1 -1
  458. data/lib/stripe/params/tax/settings_retrieve_params.rb +1 -1
  459. data/lib/stripe/params/tax/settings_update_params.rb +5 -5
  460. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +2 -2
  461. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +12 -12
  462. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +1 -1
  463. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +1 -1
  464. data/lib/stripe/params/tax/transaction_retrieve_params.rb +1 -1
  465. data/lib/stripe/params/tax_code_list_params.rb +1 -1
  466. data/lib/stripe/params/tax_code_retrieve_params.rb +1 -1
  467. data/lib/stripe/params/tax_id_create_params.rb +8 -5
  468. data/lib/stripe/params/tax_id_delete_params.rb +1 -1
  469. data/lib/stripe/params/tax_id_list_params.rb +7 -4
  470. data/lib/stripe/params/tax_id_retrieve_params.rb +1 -1
  471. data/lib/stripe/params/tax_rate_create_params.rb +2 -2
  472. data/lib/stripe/params/tax_rate_list_params.rb +2 -2
  473. data/lib/stripe/params/tax_rate_retrieve_params.rb +1 -1
  474. data/lib/stripe/params/tax_rate_update_params.rb +2 -2
  475. data/lib/stripe/params/terminal/configuration_create_params.rb +72 -46
  476. data/lib/stripe/params/terminal/configuration_delete_params.rb +1 -1
  477. data/lib/stripe/params/terminal/configuration_list_params.rb +1 -1
  478. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +1 -1
  479. data/lib/stripe/params/terminal/configuration_update_params.rb +72 -46
  480. data/lib/stripe/params/terminal/connection_token_create_params.rb +1 -1
  481. data/lib/stripe/params/terminal/location_create_params.rb +6 -6
  482. data/lib/stripe/params/terminal/location_delete_params.rb +1 -1
  483. data/lib/stripe/params/terminal/location_list_params.rb +1 -1
  484. data/lib/stripe/params/terminal/location_retrieve_params.rb +1 -1
  485. data/lib/stripe/params/terminal/location_update_params.rb +6 -6
  486. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  487. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +1 -1
  488. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +14 -14
  489. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +5 -5
  490. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +4 -4
  491. data/lib/stripe/params/terminal/reader_create_params.rb +2 -2
  492. data/lib/stripe/params/terminal/reader_delete_params.rb +1 -1
  493. data/lib/stripe/params/terminal/reader_list_params.rb +1 -1
  494. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +5 -5
  495. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +5 -5
  496. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +4 -4
  497. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +4 -4
  498. data/lib/stripe/params/terminal/reader_retrieve_params.rb +1 -1
  499. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +9 -9
  500. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +1 -1
  501. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +1 -1
  502. data/lib/stripe/params/terminal/reader_update_params.rb +2 -2
  503. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +117 -67
  504. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +3 -3
  505. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +142 -14
  506. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +127 -29
  507. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +1 -1
  508. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +92 -9
  509. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +3 -3
  510. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +1 -1
  511. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +2 -2
  512. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +1 -1
  513. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +1 -1
  514. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +1 -1
  515. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +1 -1
  516. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +1 -1
  517. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +1 -1
  518. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +1 -1
  519. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +2 -2
  520. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +144 -16
  521. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +144 -16
  522. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +2 -2
  523. data/lib/stripe/params/test_helpers/refund_expire_params.rb +1 -1
  524. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +5 -5
  525. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +1 -1
  526. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +1 -1
  527. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +1 -1
  528. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +1 -1
  529. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +1 -1
  530. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +1 -1
  531. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +1 -1
  532. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +2 -2
  533. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  534. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +1 -1
  535. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +1 -1
  536. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +1 -1
  537. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  538. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +4 -4
  539. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +1 -1
  540. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +1 -1
  541. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  542. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +4 -4
  543. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +4 -4
  544. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +4 -4
  545. data/lib/stripe/params/token_create_params.rb +86 -67
  546. data/lib/stripe/params/token_retrieve_params.rb +1 -1
  547. data/lib/stripe/params/topup_cancel_params.rb +1 -1
  548. data/lib/stripe/params/topup_create_params.rb +3 -3
  549. data/lib/stripe/params/topup_list_params.rb +3 -3
  550. data/lib/stripe/params/topup_retrieve_params.rb +1 -1
  551. data/lib/stripe/params/topup_update_params.rb +2 -2
  552. data/lib/stripe/params/transfer_create_params.rb +4 -4
  553. data/lib/stripe/params/transfer_list_params.rb +2 -2
  554. data/lib/stripe/params/transfer_retrieve_params.rb +1 -1
  555. data/lib/stripe/params/transfer_reversal_create_params.rb +2 -2
  556. data/lib/stripe/params/transfer_reversal_list_params.rb +1 -1
  557. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +1 -1
  558. data/lib/stripe/params/transfer_reversal_update_params.rb +2 -2
  559. data/lib/stripe/params/transfer_update_params.rb +2 -2
  560. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +2 -2
  561. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +1 -1
  562. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +1 -1
  563. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +2 -2
  564. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +1 -1
  565. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +1 -1
  566. data/lib/stripe/params/treasury/financial_account_close_params.rb +2 -2
  567. data/lib/stripe/params/treasury/financial_account_create_params.rb +17 -17
  568. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +1 -1
  569. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +14 -14
  570. data/lib/stripe/params/treasury/financial_account_list_params.rb +2 -2
  571. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +1 -1
  572. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +1 -1
  573. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +14 -14
  574. data/lib/stripe/params/treasury/financial_account_update_params.rb +18 -18
  575. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +1 -1
  576. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +3 -3
  577. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +2 -2
  578. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +1 -1
  579. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +1 -1
  580. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  581. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +1 -1
  582. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +1 -1
  583. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +13 -13
  584. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +1 -1
  585. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +2 -2
  586. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +1 -1
  587. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +1 -1
  588. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  589. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +4 -4
  590. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +1 -1
  591. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +7 -7
  592. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +1 -1
  593. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +1 -1
  594. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +1 -1
  595. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +1 -1
  596. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  597. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +4 -4
  598. data/lib/stripe/params/treasury/received_credit_create_params.rb +4 -4
  599. data/lib/stripe/params/treasury/received_credit_list_params.rb +2 -2
  600. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +1 -1
  601. data/lib/stripe/params/treasury/received_debit_create_params.rb +4 -4
  602. data/lib/stripe/params/treasury/received_debit_list_params.rb +1 -1
  603. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +1 -1
  604. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +3 -3
  605. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +1 -1
  606. data/lib/stripe/params/treasury/transaction_list_params.rb +4 -4
  607. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +1 -1
  608. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
  609. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +1 -1
  610. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +1 -1
  611. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
  612. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  613. data/lib/stripe/params/v2/core/account_create_params.rb +2154 -0
  614. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  615. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  616. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  617. data/lib/stripe/params/v2/core/account_token_create_params.rb +1048 -0
  618. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  619. data/lib/stripe/params/v2/core/account_update_params.rb +2207 -0
  620. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
  621. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  622. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  623. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  624. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
  625. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  626. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
  627. data/lib/stripe/params/v2/core/event_destination_create_params.rb +8 -4
  628. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +1 -1
  629. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +1 -1
  630. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +1 -1
  631. data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
  632. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +1 -1
  633. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +1 -1
  634. data/lib/stripe/params/v2/core/event_destination_update_params.rb +2 -2
  635. data/lib/stripe/params/v2/core/event_list_params.rb +25 -2
  636. data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -1
  637. data/lib/stripe/params/webhook_endpoint_create_params.rb +2 -2
  638. data/lib/stripe/params/webhook_endpoint_delete_params.rb +1 -1
  639. data/lib/stripe/params/webhook_endpoint_list_params.rb +1 -1
  640. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +1 -1
  641. data/lib/stripe/params/webhook_endpoint_update_params.rb +2 -2
  642. data/lib/stripe/params.rb +29 -0
  643. data/lib/stripe/request_params.rb +116 -0
  644. data/lib/stripe/resources/account.rb +94 -68
  645. data/lib/stripe/resources/account_link.rb +1 -1
  646. data/lib/stripe/resources/account_session.rb +45 -45
  647. data/lib/stripe/resources/apple_pay_domain.rb +1 -1
  648. data/lib/stripe/resources/application_fee.rb +2 -2
  649. data/lib/stripe/resources/application_fee_refund.rb +2 -2
  650. data/lib/stripe/resources/apps/secret.rb +3 -3
  651. data/lib/stripe/resources/balance.rb +21 -21
  652. data/lib/stripe/resources/balance_settings.rb +5 -5
  653. data/lib/stripe/resources/balance_transaction.rb +3 -3
  654. data/lib/stripe/resources/bank_account.rb +16 -16
  655. data/lib/stripe/resources/billing/alert.rb +4 -4
  656. data/lib/stripe/resources/billing/alert_triggered.rb +1 -1
  657. data/lib/stripe/resources/billing/credit_balance_summary.rb +8 -6
  658. data/lib/stripe/resources/billing/credit_balance_transaction.rb +9 -9
  659. data/lib/stripe/resources/billing/credit_grant.rb +9 -7
  660. data/lib/stripe/resources/billing/meter.rb +5 -5
  661. data/lib/stripe/resources/billing/meter_event.rb +2 -2
  662. data/lib/stripe/resources/billing/meter_event_adjustment.rb +2 -2
  663. data/lib/stripe/resources/billing/meter_event_summary.rb +1 -1
  664. data/lib/stripe/resources/billing_portal/configuration.rb +22 -18
  665. data/lib/stripe/resources/billing_portal/session.rb +20 -18
  666. data/lib/stripe/resources/capability.rb +22 -22
  667. data/lib/stripe/resources/card.rb +3 -3
  668. data/lib/stripe/resources/cash_balance.rb +5 -3
  669. data/lib/stripe/resources/charge.rb +198 -138
  670. data/lib/stripe/resources/checkout/session.rb +266 -140
  671. data/lib/stripe/resources/climate/order.rb +8 -4
  672. data/lib/stripe/resources/climate/product.rb +5 -1
  673. data/lib/stripe/resources/climate/supplier.rb +1 -1
  674. data/lib/stripe/resources/confirmation_token.rb +147 -105
  675. data/lib/stripe/resources/connect_collection_transfer.rb +1 -1
  676. data/lib/stripe/resources/country_spec.rb +3 -3
  677. data/lib/stripe/resources/coupon.rb +6 -6
  678. data/lib/stripe/resources/credit_note.rb +33 -13
  679. data/lib/stripe/resources/credit_note_line_item.rb +12 -6
  680. data/lib/stripe/resources/customer.rb +21 -17
  681. data/lib/stripe/resources/customer_balance_transaction.rb +8 -6
  682. data/lib/stripe/resources/customer_cash_balance_transaction.rb +23 -21
  683. data/lib/stripe/resources/customer_session.rb +90 -6
  684. data/lib/stripe/resources/discount.rb +5 -3
  685. data/lib/stripe/resources/dispute.rb +23 -23
  686. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -2
  687. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +1 -1
  688. data/lib/stripe/resources/entitlements/feature.rb +1 -1
  689. data/lib/stripe/resources/ephemeral_key.rb +1 -1
  690. data/lib/stripe/resources/event.rb +4 -4
  691. data/lib/stripe/resources/exchange_rate.rb +2 -2
  692. data/lib/stripe/resources/file.rb +4 -4
  693. data/lib/stripe/resources/file_link.rb +2 -2
  694. data/lib/stripe/resources/financial_connections/account.rb +37 -13
  695. data/lib/stripe/resources/financial_connections/session.rb +7 -5
  696. data/lib/stripe/resources/financial_connections/transaction.rb +2 -2
  697. data/lib/stripe/resources/forwarding/request.rb +7 -7
  698. data/lib/stripe/resources/funding_instructions.rb +35 -35
  699. data/lib/stripe/resources/identity/verification_report.rb +28 -28
  700. data/lib/stripe/resources/identity/verification_session.rb +26 -24
  701. data/lib/stripe/resources/invoice.rb +119 -85
  702. data/lib/stripe/resources/invoice_item.rb +29 -14
  703. data/lib/stripe/resources/invoice_line_item.rb +35 -20
  704. data/lib/stripe/resources/invoice_payment.rb +6 -4
  705. data/lib/stripe/resources/invoice_rendering_template.rb +2 -2
  706. data/lib/stripe/resources/issuing/authorization.rb +120 -40
  707. data/lib/stripe/resources/issuing/card.rb +69 -23
  708. data/lib/stripe/resources/issuing/cardholder.rb +28 -28
  709. data/lib/stripe/resources/issuing/dispute.rb +18 -18
  710. data/lib/stripe/resources/issuing/personalization_design.rb +5 -5
  711. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -2
  712. data/lib/stripe/resources/issuing/token.rb +8 -8
  713. data/lib/stripe/resources/issuing/transaction.rb +145 -29
  714. data/lib/stripe/resources/line_item.rb +30 -5
  715. data/lib/stripe/resources/login_link.rb +1 -1
  716. data/lib/stripe/resources/mandate.rb +77 -23
  717. data/lib/stripe/resources/payment_attempt_record.rb +2010 -0
  718. data/lib/stripe/resources/payment_intent.rb +413 -178
  719. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  720. data/lib/stripe/resources/payment_link.rb +101 -54
  721. data/lib/stripe/resources/payment_method.rb +174 -98
  722. data/lib/stripe/resources/payment_method_configuration.rb +243 -107
  723. data/lib/stripe/resources/payment_method_domain.rb +14 -14
  724. data/lib/stripe/resources/payment_record.rb +2140 -0
  725. data/lib/stripe/resources/payout.rb +12 -12
  726. data/lib/stripe/resources/person.rb +43 -43
  727. data/lib/stripe/resources/plan.rb +28 -8
  728. data/lib/stripe/resources/price.rb +54 -14
  729. data/lib/stripe/resources/product.rb +12 -12
  730. data/lib/stripe/resources/product_feature.rb +1 -1
  731. data/lib/stripe/resources/promotion_code.rb +10 -8
  732. data/lib/stripe/resources/quote.rb +39 -37
  733. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -2
  734. data/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
  735. data/lib/stripe/resources/radar/value_list.rb +4 -4
  736. data/lib/stripe/resources/radar/value_list_item.rb +2 -2
  737. data/lib/stripe/resources/refund.rb +87 -40
  738. data/lib/stripe/resources/reporting/report_run.rb +4 -4
  739. data/lib/stripe/resources/reporting/report_type.rb +4 -4
  740. data/lib/stripe/resources/reserve/hold.rb +67 -0
  741. data/lib/stripe/resources/reserve/plan.rb +78 -0
  742. data/lib/stripe/resources/reserve/release.rb +65 -0
  743. data/lib/stripe/resources/reversal.rb +4 -4
  744. data/lib/stripe/resources/review.rb +4 -4
  745. data/lib/stripe/resources/setup_attempt.rb +74 -46
  746. data/lib/stripe/resources/setup_intent.rb +163 -49
  747. data/lib/stripe/resources/shipping_rate.rb +9 -9
  748. data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -3
  749. data/lib/stripe/resources/source.rb +38 -38
  750. data/lib/stripe/resources/source_mandate_notification.rb +7 -7
  751. data/lib/stripe/resources/source_transaction.rb +6 -6
  752. data/lib/stripe/resources/subscription.rb +105 -55
  753. data/lib/stripe/resources/subscription_item.rb +8 -8
  754. data/lib/stripe/resources/subscription_schedule.rb +37 -35
  755. data/lib/stripe/resources/tax/association.rb +86 -0
  756. data/lib/stripe/resources/tax/calculation.rb +26 -26
  757. data/lib/stripe/resources/tax/calculation_line_item.rb +11 -11
  758. data/lib/stripe/resources/tax/registration.rb +176 -144
  759. data/lib/stripe/resources/tax/settings.rb +9 -9
  760. data/lib/stripe/resources/tax/transaction.rb +21 -21
  761. data/lib/stripe/resources/tax/transaction_line_item.rb +7 -7
  762. data/lib/stripe/resources/tax_id.rb +10 -6
  763. data/lib/stripe/resources/tax_rate.rb +3 -3
  764. data/lib/stripe/resources/terminal/configuration.rb +68 -36
  765. data/lib/stripe/resources/terminal/connection_token.rb +1 -1
  766. data/lib/stripe/resources/terminal/location.rb +7 -7
  767. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  768. data/lib/stripe/resources/terminal/reader.rb +64 -62
  769. data/lib/stripe/resources/test_helpers/test_clock.rb +3 -3
  770. data/lib/stripe/resources/token.rb +5 -5
  771. data/lib/stripe/resources/topup.rb +4 -4
  772. data/lib/stripe/resources/transfer.rb +6 -6
  773. data/lib/stripe/resources/treasury/credit_reversal.rb +5 -5
  774. data/lib/stripe/resources/treasury/debit_reversal.rb +6 -6
  775. data/lib/stripe/resources/treasury/financial_account.rb +8 -8
  776. data/lib/stripe/resources/treasury/financial_account_features.rb +22 -22
  777. data/lib/stripe/resources/treasury/inbound_transfer.rb +13 -13
  778. data/lib/stripe/resources/treasury/outbound_payment.rb +18 -18
  779. data/lib/stripe/resources/treasury/outbound_transfer.rb +16 -16
  780. data/lib/stripe/resources/treasury/received_credit.rb +19 -19
  781. data/lib/stripe/resources/treasury/received_debit.rb +17 -15
  782. data/lib/stripe/resources/treasury/transaction.rb +15 -15
  783. data/lib/stripe/resources/treasury/transaction_entry.rb +14 -14
  784. data/lib/stripe/resources/v2/billing/meter_event.rb +3 -2
  785. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -1
  786. data/lib/stripe/resources/v2/billing/meter_event_session.rb +1 -0
  787. data/lib/stripe/resources/v2/core/account.rb +3586 -0
  788. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  789. data/lib/stripe/resources/v2/core/account_person.rb +487 -0
  790. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  791. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  792. data/lib/stripe/resources/v2/core/event.rb +6 -4
  793. data/lib/stripe/resources/v2/core/event_destination.rb +9 -5
  794. data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
  795. data/lib/stripe/resources/webhook_endpoint.rb +2 -2
  796. data/lib/stripe/resources.rb +31 -0
  797. data/lib/stripe/services/checkout/session_service.rb +5 -1
  798. data/lib/stripe/services/climate/order_service.rb +2 -0
  799. data/lib/stripe/services/credit_note_preview_lines_service.rb +2 -0
  800. data/lib/stripe/services/credit_note_service.rb +4 -0
  801. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  802. data/lib/stripe/services/customer_service.rb +1 -1
  803. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  804. data/lib/stripe/services/invoice_item_service.rb +4 -0
  805. data/lib/stripe/services/invoice_line_item_service.rb +2 -0
  806. data/lib/stripe/services/invoice_service.rb +10 -4
  807. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  808. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  809. data/lib/stripe/services/payment_intent_service.rb +8 -1
  810. data/lib/stripe/services/payment_link_service.rb +2 -0
  811. data/lib/stripe/services/payment_method_service.rb +1 -1
  812. data/lib/stripe/services/payment_record_service.rb +101 -0
  813. data/lib/stripe/services/payout_service.rb +2 -2
  814. data/lib/stripe/services/plan_service.rb +2 -0
  815. data/lib/stripe/services/price_service.rb +2 -0
  816. data/lib/stripe/services/product_service.rb +2 -0
  817. data/lib/stripe/services/quote_service.rb +4 -0
  818. data/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
  819. data/lib/stripe/services/radar_service.rb +2 -1
  820. data/lib/stripe/services/subscription_item_service.rb +4 -0
  821. data/lib/stripe/services/subscription_schedule_service.rb +4 -0
  822. data/lib/stripe/services/subscription_service.rb +6 -2
  823. data/lib/stripe/services/tax/association_service.rb +19 -0
  824. data/lib/stripe/services/tax_service.rb +2 -1
  825. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  826. data/lib/stripe/services/terminal/reader_service.rb +8 -8
  827. data/lib/stripe/services/terminal_service.rb +2 -1
  828. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +12 -0
  829. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +8 -0
  830. data/lib/stripe/services/v1_services.rb +3 -1
  831. data/lib/stripe/services/v2/core/account_link_service.rb +23 -0
  832. data/lib/stripe/services/v2/core/account_service.rb +87 -0
  833. data/lib/stripe/services/v2/core/account_token_service.rb +38 -0
  834. data/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
  835. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +42 -0
  836. data/lib/stripe/services/v2/core_service.rb +4 -1
  837. data/lib/stripe/services.rb +11 -0
  838. data/lib/stripe/stripe_client.rb +6 -0
  839. data/lib/stripe/stripe_object.rb +39 -1
  840. data/lib/stripe/util.rb +12 -14
  841. data/lib/stripe/version.rb +1 -1
  842. data/lib/stripe/webhook.rb +7 -0
  843. data/lib/stripe.rb +1 -1
  844. data/rbi/stripe.rbi +64414 -32011
  845. metadata +103 -6
  846. data/lib/stripe/resources/alipay_account.rb +0 -34
  847. data/lib/stripe/resources/recipient_transfer.rb +0 -7
@@ -0,0 +1,2140 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe.
6
+ # For example, you can create a Payment Record to model a payment made on a different payment processor,
7
+ # in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or
8
+ # more Payment Attempt Records, which represent individual attempts made on a payment network.
9
+ class PaymentRecord < APIResource
10
+ OBJECT_NAME = "payment_record"
11
+ def self.object_name
12
+ "payment_record"
13
+ end
14
+
15
+ class Amount < ::Stripe::StripeObject
16
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
17
+ attr_reader :currency
18
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
19
+ attr_reader :value
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
28
+ end
29
+
30
+ class AmountAuthorized < ::Stripe::StripeObject
31
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
32
+ attr_reader :currency
33
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
34
+ attr_reader :value
35
+
36
+ def self.inner_class_types
37
+ @inner_class_types = {}
38
+ end
39
+
40
+ def self.field_remappings
41
+ @field_remappings = {}
42
+ end
43
+ end
44
+
45
+ class AmountCanceled < ::Stripe::StripeObject
46
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
47
+ attr_reader :currency
48
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
49
+ attr_reader :value
50
+
51
+ def self.inner_class_types
52
+ @inner_class_types = {}
53
+ end
54
+
55
+ def self.field_remappings
56
+ @field_remappings = {}
57
+ end
58
+ end
59
+
60
+ class AmountFailed < ::Stripe::StripeObject
61
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
62
+ attr_reader :currency
63
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
64
+ attr_reader :value
65
+
66
+ def self.inner_class_types
67
+ @inner_class_types = {}
68
+ end
69
+
70
+ def self.field_remappings
71
+ @field_remappings = {}
72
+ end
73
+ end
74
+
75
+ class AmountGuaranteed < ::Stripe::StripeObject
76
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
77
+ attr_reader :currency
78
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
79
+ attr_reader :value
80
+
81
+ def self.inner_class_types
82
+ @inner_class_types = {}
83
+ end
84
+
85
+ def self.field_remappings
86
+ @field_remappings = {}
87
+ end
88
+ end
89
+
90
+ class AmountRefunded < ::Stripe::StripeObject
91
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
92
+ attr_reader :currency
93
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
94
+ attr_reader :value
95
+
96
+ def self.inner_class_types
97
+ @inner_class_types = {}
98
+ end
99
+
100
+ def self.field_remappings
101
+ @field_remappings = {}
102
+ end
103
+ end
104
+
105
+ class AmountRequested < ::Stripe::StripeObject
106
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
107
+ attr_reader :currency
108
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
109
+ attr_reader :value
110
+
111
+ def self.inner_class_types
112
+ @inner_class_types = {}
113
+ end
114
+
115
+ def self.field_remappings
116
+ @field_remappings = {}
117
+ end
118
+ end
119
+
120
+ class CustomerDetails < ::Stripe::StripeObject
121
+ # ID of the Stripe Customer associated with this payment.
122
+ attr_reader :customer
123
+ # The customer's email address.
124
+ attr_reader :email
125
+ # The customer's name.
126
+ attr_reader :name
127
+ # The customer's phone number.
128
+ attr_reader :phone
129
+
130
+ def self.inner_class_types
131
+ @inner_class_types = {}
132
+ end
133
+
134
+ def self.field_remappings
135
+ @field_remappings = {}
136
+ end
137
+ end
138
+
139
+ class PaymentMethodDetails < ::Stripe::StripeObject
140
+ class AchCreditTransfer < ::Stripe::StripeObject
141
+ # Account number to transfer funds to.
142
+ attr_reader :account_number
143
+ # Name of the bank associated with the routing number.
144
+ attr_reader :bank_name
145
+ # Routing transit number for the bank account to transfer funds to.
146
+ attr_reader :routing_number
147
+ # SWIFT code of the bank associated with the routing number.
148
+ attr_reader :swift_code
149
+
150
+ def self.inner_class_types
151
+ @inner_class_types = {}
152
+ end
153
+
154
+ def self.field_remappings
155
+ @field_remappings = {}
156
+ end
157
+ end
158
+
159
+ class AchDebit < ::Stripe::StripeObject
160
+ # Type of entity that holds the account. This can be either `individual` or `company`.
161
+ attr_reader :account_holder_type
162
+ # Name of the bank associated with the bank account.
163
+ attr_reader :bank_name
164
+ # Two-letter ISO code representing the country the bank account is located in.
165
+ attr_reader :country
166
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
167
+ attr_reader :fingerprint
168
+ # Last four digits of the bank account number.
169
+ attr_reader :last4
170
+ # Routing transit number of the bank account.
171
+ attr_reader :routing_number
172
+
173
+ def self.inner_class_types
174
+ @inner_class_types = {}
175
+ end
176
+
177
+ def self.field_remappings
178
+ @field_remappings = {}
179
+ end
180
+ end
181
+
182
+ class AcssDebit < ::Stripe::StripeObject
183
+ # Name of the bank associated with the bank account.
184
+ attr_reader :bank_name
185
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
186
+ attr_reader :expected_debit_date
187
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
188
+ attr_reader :fingerprint
189
+ # Institution number of the bank account
190
+ attr_reader :institution_number
191
+ # Last four digits of the bank account number.
192
+ attr_reader :last4
193
+ # ID of the mandate used to make this payment.
194
+ attr_reader :mandate
195
+ # Transit number of the bank account.
196
+ attr_reader :transit_number
197
+
198
+ def self.inner_class_types
199
+ @inner_class_types = {}
200
+ end
201
+
202
+ def self.field_remappings
203
+ @field_remappings = {}
204
+ end
205
+ end
206
+
207
+ class Affirm < ::Stripe::StripeObject
208
+ # ID of the location that this reader is assigned to.
209
+ attr_reader :location
210
+ # ID of the reader this transaction was made on.
211
+ attr_reader :reader
212
+ # The Affirm transaction ID associated with this payment.
213
+ attr_reader :transaction_id
214
+
215
+ def self.inner_class_types
216
+ @inner_class_types = {}
217
+ end
218
+
219
+ def self.field_remappings
220
+ @field_remappings = {}
221
+ end
222
+ end
223
+
224
+ class AfterpayClearpay < ::Stripe::StripeObject
225
+ # The Afterpay order ID associated with this payment intent.
226
+ attr_reader :order_id
227
+ # Order identifier shown to the merchant in Afterpay's online portal.
228
+ attr_reader :reference
229
+
230
+ def self.inner_class_types
231
+ @inner_class_types = {}
232
+ end
233
+
234
+ def self.field_remappings
235
+ @field_remappings = {}
236
+ end
237
+ end
238
+
239
+ class Alipay < ::Stripe::StripeObject
240
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
241
+ attr_reader :buyer_id
242
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
243
+ attr_reader :fingerprint
244
+ # Transaction ID of this particular Alipay transaction.
245
+ attr_reader :transaction_id
246
+
247
+ def self.inner_class_types
248
+ @inner_class_types = {}
249
+ end
250
+
251
+ def self.field_remappings
252
+ @field_remappings = {}
253
+ end
254
+ end
255
+
256
+ class Alma < ::Stripe::StripeObject
257
+ class Installments < ::Stripe::StripeObject
258
+ # The number of installments.
259
+ attr_reader :count
260
+
261
+ def self.inner_class_types
262
+ @inner_class_types = {}
263
+ end
264
+
265
+ def self.field_remappings
266
+ @field_remappings = {}
267
+ end
268
+ end
269
+ # Attribute for field installments
270
+ attr_reader :installments
271
+ # The Alma transaction ID associated with this payment.
272
+ attr_reader :transaction_id
273
+
274
+ def self.inner_class_types
275
+ @inner_class_types = { installments: Installments }
276
+ end
277
+
278
+ def self.field_remappings
279
+ @field_remappings = {}
280
+ end
281
+ end
282
+
283
+ class AmazonPay < ::Stripe::StripeObject
284
+ class Funding < ::Stripe::StripeObject
285
+ class Card < ::Stripe::StripeObject
286
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
287
+ attr_reader :brand
288
+ # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
289
+ attr_reader :country
290
+ # Two-digit number representing the card's expiration month.
291
+ attr_reader :exp_month
292
+ # Four-digit number representing the card's expiration year.
293
+ attr_reader :exp_year
294
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
295
+ attr_reader :funding
296
+ # The last four digits of the card.
297
+ attr_reader :last4
298
+
299
+ def self.inner_class_types
300
+ @inner_class_types = {}
301
+ end
302
+
303
+ def self.field_remappings
304
+ @field_remappings = {}
305
+ end
306
+ end
307
+ # Attribute for field card
308
+ attr_reader :card
309
+ # funding type of the underlying payment method.
310
+ attr_reader :type
311
+
312
+ def self.inner_class_types
313
+ @inner_class_types = { card: Card }
314
+ end
315
+
316
+ def self.field_remappings
317
+ @field_remappings = {}
318
+ end
319
+ end
320
+ # Attribute for field funding
321
+ attr_reader :funding
322
+ # The Amazon Pay transaction ID associated with this payment.
323
+ attr_reader :transaction_id
324
+
325
+ def self.inner_class_types
326
+ @inner_class_types = { funding: Funding }
327
+ end
328
+
329
+ def self.field_remappings
330
+ @field_remappings = {}
331
+ end
332
+ end
333
+
334
+ class AuBecsDebit < ::Stripe::StripeObject
335
+ # Bank-State-Branch number of the bank account.
336
+ attr_reader :bsb_number
337
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
338
+ attr_reader :expected_debit_date
339
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
340
+ attr_reader :fingerprint
341
+ # Last four digits of the bank account number.
342
+ attr_reader :last4
343
+ # ID of the mandate used to make this payment.
344
+ attr_reader :mandate
345
+
346
+ def self.inner_class_types
347
+ @inner_class_types = {}
348
+ end
349
+
350
+ def self.field_remappings
351
+ @field_remappings = {}
352
+ end
353
+ end
354
+
355
+ class BacsDebit < ::Stripe::StripeObject
356
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
357
+ attr_reader :expected_debit_date
358
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
359
+ attr_reader :fingerprint
360
+ # Last four digits of the bank account number.
361
+ attr_reader :last4
362
+ # ID of the mandate used to make this payment.
363
+ attr_reader :mandate
364
+ # Sort code of the bank account. (e.g., `10-20-30`)
365
+ attr_reader :sort_code
366
+
367
+ def self.inner_class_types
368
+ @inner_class_types = {}
369
+ end
370
+
371
+ def self.field_remappings
372
+ @field_remappings = {}
373
+ end
374
+ end
375
+
376
+ class Bancontact < ::Stripe::StripeObject
377
+ # Bank code of bank associated with the bank account.
378
+ attr_reader :bank_code
379
+ # Name of the bank associated with the bank account.
380
+ attr_reader :bank_name
381
+ # Bank Identifier Code of the bank associated with the bank account.
382
+ attr_reader :bic
383
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
384
+ attr_reader :generated_sepa_debit
385
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
386
+ attr_reader :generated_sepa_debit_mandate
387
+ # Last four characters of the IBAN.
388
+ attr_reader :iban_last4
389
+ # Preferred language of the Bancontact authorization page that the customer is redirected to. Can be one of `en`, `de`, `fr`, or `nl`
390
+ attr_reader :preferred_language
391
+ # Owner's verified full name. Values are verified or provided by Bancontact directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
392
+ attr_reader :verified_name
393
+
394
+ def self.inner_class_types
395
+ @inner_class_types = {}
396
+ end
397
+
398
+ def self.field_remappings
399
+ @field_remappings = {}
400
+ end
401
+ end
402
+
403
+ class Billie < ::Stripe::StripeObject
404
+ # The Billie transaction ID associated with this payment.
405
+ attr_reader :transaction_id
406
+
407
+ def self.inner_class_types
408
+ @inner_class_types = {}
409
+ end
410
+
411
+ def self.field_remappings
412
+ @field_remappings = {}
413
+ end
414
+ end
415
+
416
+ class BillingDetails < ::Stripe::StripeObject
417
+ class Address < ::Stripe::StripeObject
418
+ # City, district, suburb, town, or village.
419
+ attr_reader :city
420
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
421
+ attr_reader :country
422
+ # Address line 1, such as the street, PO Box, or company name.
423
+ attr_reader :line1
424
+ # Address line 2, such as the apartment, suite, unit, or building.
425
+ attr_reader :line2
426
+ # ZIP or postal code.
427
+ attr_reader :postal_code
428
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
429
+ attr_reader :state
430
+
431
+ def self.inner_class_types
432
+ @inner_class_types = {}
433
+ end
434
+
435
+ def self.field_remappings
436
+ @field_remappings = {}
437
+ end
438
+ end
439
+ # A representation of a physical address.
440
+ attr_reader :address
441
+ # The billing email associated with the method of payment.
442
+ attr_reader :email
443
+ # The billing name associated with the method of payment.
444
+ attr_reader :name
445
+ # The billing phone number associated with the method of payment.
446
+ attr_reader :phone
447
+
448
+ def self.inner_class_types
449
+ @inner_class_types = { address: Address }
450
+ end
451
+
452
+ def self.field_remappings
453
+ @field_remappings = {}
454
+ end
455
+ end
456
+
457
+ class Blik < ::Stripe::StripeObject
458
+ # A unique and immutable identifier assigned by BLIK to every buyer.
459
+ attr_reader :buyer_id
460
+
461
+ def self.inner_class_types
462
+ @inner_class_types = {}
463
+ end
464
+
465
+ def self.field_remappings
466
+ @field_remappings = {}
467
+ end
468
+ end
469
+
470
+ class Boleto < ::Stripe::StripeObject
471
+ # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
472
+ attr_reader :tax_id
473
+
474
+ def self.inner_class_types
475
+ @inner_class_types = {}
476
+ end
477
+
478
+ def self.field_remappings
479
+ @field_remappings = {}
480
+ end
481
+ end
482
+
483
+ class Card < ::Stripe::StripeObject
484
+ class Checks < ::Stripe::StripeObject
485
+ # If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
486
+ attr_reader :address_line1_check
487
+ # If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
488
+ attr_reader :address_postal_code_check
489
+ # If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
490
+ attr_reader :cvc_check
491
+
492
+ def self.inner_class_types
493
+ @inner_class_types = {}
494
+ end
495
+
496
+ def self.field_remappings
497
+ @field_remappings = {}
498
+ end
499
+ end
500
+
501
+ class Installments < ::Stripe::StripeObject
502
+ class Plan < ::Stripe::StripeObject
503
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
504
+ attr_reader :count
505
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. One of `month`.
506
+ attr_reader :interval
507
+ # Type of installment plan, one of `fixed_count`, `revolving`, or `bonus`.
508
+ attr_reader :type
509
+
510
+ def self.inner_class_types
511
+ @inner_class_types = {}
512
+ end
513
+
514
+ def self.field_remappings
515
+ @field_remappings = {}
516
+ end
517
+ end
518
+ # Installment plan selected for the payment.
519
+ attr_reader :plan
520
+
521
+ def self.inner_class_types
522
+ @inner_class_types = { plan: Plan }
523
+ end
524
+
525
+ def self.field_remappings
526
+ @field_remappings = {}
527
+ end
528
+ end
529
+
530
+ class NetworkToken < ::Stripe::StripeObject
531
+ # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
532
+ attr_reader :used
533
+
534
+ def self.inner_class_types
535
+ @inner_class_types = {}
536
+ end
537
+
538
+ def self.field_remappings
539
+ @field_remappings = {}
540
+ end
541
+ end
542
+
543
+ class ThreeDSecure < ::Stripe::StripeObject
544
+ # For authenticated transactions: Indicates how the issuing bank authenticated the customer.
545
+ attr_reader :authentication_flow
546
+ # The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
547
+ attr_reader :cryptogram
548
+ # The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
549
+ attr_reader :electronic_commerce_indicator
550
+ # The exemption requested via 3DS and accepted by the issuer at authentication time.
551
+ attr_reader :exemption_indicator
552
+ # Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on the outcome of Stripe's internal risk assessment.
553
+ attr_reader :exemption_indicator_applied
554
+ # Indicates the outcome of 3D Secure authentication.
555
+ attr_reader :result
556
+ # Additional information about why 3D Secure succeeded or failed, based on the `result`.
557
+ attr_reader :result_reason
558
+ # The version of 3D Secure that was used.
559
+ attr_reader :version
560
+
561
+ def self.inner_class_types
562
+ @inner_class_types = {}
563
+ end
564
+
565
+ def self.field_remappings
566
+ @field_remappings = {}
567
+ end
568
+ end
569
+
570
+ class Wallet < ::Stripe::StripeObject
571
+ class ApplePay < ::Stripe::StripeObject
572
+ # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`.
573
+ attr_reader :type
574
+
575
+ def self.inner_class_types
576
+ @inner_class_types = {}
577
+ end
578
+
579
+ def self.field_remappings
580
+ @field_remappings = {}
581
+ end
582
+ end
583
+
584
+ class GooglePay < ::Stripe::StripeObject
585
+ def self.inner_class_types
586
+ @inner_class_types = {}
587
+ end
588
+
589
+ def self.field_remappings
590
+ @field_remappings = {}
591
+ end
592
+ end
593
+ # Attribute for field apple_pay
594
+ attr_reader :apple_pay
595
+ # (For tokenized numbers only.) The last four digits of the device account number.
596
+ attr_reader :dynamic_last4
597
+ # Attribute for field google_pay
598
+ attr_reader :google_pay
599
+ # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
600
+ attr_reader :type
601
+
602
+ def self.inner_class_types
603
+ @inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay }
604
+ end
605
+
606
+ def self.field_remappings
607
+ @field_remappings = {}
608
+ end
609
+ end
610
+ # The authorization code of the payment.
611
+ attr_reader :authorization_code
612
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
613
+ attr_reader :brand
614
+ # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
615
+ attr_reader :capture_before
616
+ # Check results by Card networks on Card address and CVC at time of payment.
617
+ attr_reader :checks
618
+ # 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.
619
+ attr_reader :country
620
+ # A high-level description of the type of cards issued in this range.
621
+ attr_reader :description
622
+ # Two-digit number representing the card's expiration month.
623
+ attr_reader :exp_month
624
+ # Four-digit number representing the card's expiration year.
625
+ attr_reader :exp_year
626
+ # 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.
627
+ #
628
+ # *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.*
629
+ attr_reader :fingerprint
630
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
631
+ attr_reader :funding
632
+ # Issuer identification number of the card.
633
+ attr_reader :iin
634
+ # Installment details for this payment.
635
+ attr_reader :installments
636
+ # The name of the card's issuing bank.
637
+ attr_reader :issuer
638
+ # The last four digits of the card.
639
+ attr_reader :last4
640
+ # True if this payment was marked as MOTO and out of scope for SCA.
641
+ attr_reader :moto
642
+ # 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`.
643
+ attr_reader :network
644
+ # Advice code from the card network for the failed payment.
645
+ attr_reader :network_advice_code
646
+ # Decline code from the card network for the failed payment.
647
+ attr_reader :network_decline_code
648
+ # If this card has network token credentials, this contains the details of the network token credentials.
649
+ attr_reader :network_token
650
+ # 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.
651
+ attr_reader :network_transaction_id
652
+ # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`.
653
+ attr_reader :stored_credential_usage
654
+ # Populated if this transaction used 3D Secure authentication.
655
+ attr_reader :three_d_secure
656
+ # If this Card is part of a card wallet, this contains the details of the card wallet.
657
+ attr_reader :wallet
658
+
659
+ def self.inner_class_types
660
+ @inner_class_types = {
661
+ checks: Checks,
662
+ installments: Installments,
663
+ network_token: NetworkToken,
664
+ three_d_secure: ThreeDSecure,
665
+ wallet: Wallet,
666
+ }
667
+ end
668
+
669
+ def self.field_remappings
670
+ @field_remappings = {}
671
+ end
672
+ end
673
+
674
+ class CardPresent < ::Stripe::StripeObject
675
+ class Offline < ::Stripe::StripeObject
676
+ # Time at which the payment was collected while offline
677
+ attr_reader :stored_at
678
+ # The method used to process this payment method offline. Only deferred is allowed.
679
+ attr_reader :type
680
+
681
+ def self.inner_class_types
682
+ @inner_class_types = {}
683
+ end
684
+
685
+ def self.field_remappings
686
+ @field_remappings = {}
687
+ end
688
+ end
689
+
690
+ class Receipt < ::Stripe::StripeObject
691
+ # The type of account being debited or credited
692
+ attr_reader :account_type
693
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
694
+ attr_reader :application_cryptogram
695
+ # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
696
+ attr_reader :application_preferred_name
697
+ # Identifier for this transaction.
698
+ attr_reader :authorization_code
699
+ # EMV tag 8A. A code returned by the card issuer.
700
+ attr_reader :authorization_response_code
701
+ # 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`.
702
+ attr_reader :cardholder_verification_method
703
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
704
+ attr_reader :dedicated_file_name
705
+ # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
706
+ attr_reader :terminal_verification_results
707
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
708
+ attr_reader :transaction_status_information
709
+
710
+ def self.inner_class_types
711
+ @inner_class_types = {}
712
+ end
713
+
714
+ def self.field_remappings
715
+ @field_remappings = {}
716
+ end
717
+ end
718
+
719
+ class Wallet < ::Stripe::StripeObject
720
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
721
+ attr_reader :type
722
+
723
+ def self.inner_class_types
724
+ @inner_class_types = {}
725
+ end
726
+
727
+ def self.field_remappings
728
+ @field_remappings = {}
729
+ end
730
+ end
731
+ # The authorized amount
732
+ attr_reader :amount_authorized
733
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
734
+ attr_reader :brand
735
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
736
+ attr_reader :brand_product
737
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
738
+ attr_reader :capture_before
739
+ # 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.
740
+ attr_reader :cardholder_name
741
+ # 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.
742
+ attr_reader :country
743
+ # 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.)
744
+ attr_reader :description
745
+ # Authorization response cryptogram.
746
+ attr_reader :emv_auth_data
747
+ # Two-digit number representing the card's expiration month.
748
+ attr_reader :exp_month
749
+ # Four-digit number representing the card's expiration year.
750
+ attr_reader :exp_year
751
+ # 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.
752
+ #
753
+ # *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.*
754
+ attr_reader :fingerprint
755
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
756
+ attr_reader :funding
757
+ # 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.
758
+ attr_reader :generated_card
759
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
760
+ attr_reader :iin
761
+ # Whether this [PaymentIntent](https://docs.stripe.com/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
762
+ attr_reader :incremental_authorization_supported
763
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
764
+ attr_reader :issuer
765
+ # The last four digits of the card.
766
+ attr_reader :last4
767
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
768
+ attr_reader :location
769
+ # 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`.
770
+ attr_reader :network
771
+ # 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.
772
+ attr_reader :network_transaction_id
773
+ # Details about payments collected offline.
774
+ attr_reader :offline
775
+ # Defines whether the authorized amount can be over-captured or not
776
+ attr_reader :overcapture_supported
777
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
778
+ attr_reader :preferred_locales
779
+ # How card details were read in this transaction.
780
+ attr_reader :read_method
781
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
782
+ attr_reader :reader
783
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
784
+ attr_reader :receipt
785
+ # Attribute for field wallet
786
+ attr_reader :wallet
787
+
788
+ def self.inner_class_types
789
+ @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
790
+ end
791
+
792
+ def self.field_remappings
793
+ @field_remappings = {}
794
+ end
795
+ end
796
+
797
+ class Cashapp < ::Stripe::StripeObject
798
+ # A unique and immutable identifier assigned by Cash App to every buyer.
799
+ attr_reader :buyer_id
800
+ # A public identifier for buyers using Cash App.
801
+ attr_reader :cashtag
802
+ # A unique and immutable identifier of payments assigned by Cash App.
803
+ attr_reader :transaction_id
804
+
805
+ def self.inner_class_types
806
+ @inner_class_types = {}
807
+ end
808
+
809
+ def self.field_remappings
810
+ @field_remappings = {}
811
+ end
812
+ end
813
+
814
+ class Crypto < ::Stripe::StripeObject
815
+ # The wallet address of the customer.
816
+ attr_reader :buyer_address
817
+ # The blockchain network that the transaction was sent on.
818
+ attr_reader :network
819
+ # The token currency that the transaction was sent with.
820
+ attr_reader :token_currency
821
+ # The blockchain transaction hash of the crypto payment.
822
+ attr_reader :transaction_hash
823
+
824
+ def self.inner_class_types
825
+ @inner_class_types = {}
826
+ end
827
+
828
+ def self.field_remappings
829
+ @field_remappings = {}
830
+ end
831
+ end
832
+
833
+ class Custom < ::Stripe::StripeObject
834
+ # Display name for the custom (user-defined) payment method type used to make this payment.
835
+ attr_reader :display_name
836
+ # The custom payment method type associated with this payment.
837
+ attr_reader :type
838
+
839
+ def self.inner_class_types
840
+ @inner_class_types = {}
841
+ end
842
+
843
+ def self.field_remappings
844
+ @field_remappings = {}
845
+ end
846
+ end
847
+
848
+ class CustomerBalance < ::Stripe::StripeObject
849
+ def self.inner_class_types
850
+ @inner_class_types = {}
851
+ end
852
+
853
+ def self.field_remappings
854
+ @field_remappings = {}
855
+ end
856
+ end
857
+
858
+ class Eps < ::Stripe::StripeObject
859
+ # 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`.
860
+ attr_reader :bank
861
+ # Owner's verified full name. Values are verified or provided by EPS directly
862
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
863
+ # EPS rarely provides this information so the attribute is usually empty.
864
+ attr_reader :verified_name
865
+
866
+ def self.inner_class_types
867
+ @inner_class_types = {}
868
+ end
869
+
870
+ def self.field_remappings
871
+ @field_remappings = {}
872
+ end
873
+ end
874
+
875
+ class Fpx < ::Stripe::StripeObject
876
+ # Account holder type, if provided. Can be one of `individual` or `company`.
877
+ attr_reader :account_holder_type
878
+ # 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`.
879
+ attr_reader :bank
880
+ # Unique transaction id generated by FPX for every request from the merchant
881
+ attr_reader :transaction_id
882
+
883
+ def self.inner_class_types
884
+ @inner_class_types = {}
885
+ end
886
+
887
+ def self.field_remappings
888
+ @field_remappings = {}
889
+ end
890
+ end
891
+
892
+ class Giropay < ::Stripe::StripeObject
893
+ # Bank code of bank associated with the bank account.
894
+ attr_reader :bank_code
895
+ # Name of the bank associated with the bank account.
896
+ attr_reader :bank_name
897
+ # Bank Identifier Code of the bank associated with the bank account.
898
+ attr_reader :bic
899
+ # Owner's verified full name. Values are verified or provided by Giropay directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Giropay rarely provides this information so the attribute is usually empty.
900
+ attr_reader :verified_name
901
+
902
+ def self.inner_class_types
903
+ @inner_class_types = {}
904
+ end
905
+
906
+ def self.field_remappings
907
+ @field_remappings = {}
908
+ end
909
+ end
910
+
911
+ class Grabpay < ::Stripe::StripeObject
912
+ # Unique transaction id generated by GrabPay
913
+ attr_reader :transaction_id
914
+
915
+ def self.inner_class_types
916
+ @inner_class_types = {}
917
+ end
918
+
919
+ def self.field_remappings
920
+ @field_remappings = {}
921
+ end
922
+ end
923
+
924
+ class Ideal < ::Stripe::StripeObject
925
+ # The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
926
+ attr_reader :bank
927
+ # The Bank Identifier Code of the customer's bank.
928
+ attr_reader :bic
929
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
930
+ attr_reader :generated_sepa_debit
931
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
932
+ attr_reader :generated_sepa_debit_mandate
933
+ # Last four characters of the IBAN.
934
+ attr_reader :iban_last4
935
+ # Unique transaction ID generated by iDEAL.
936
+ attr_reader :transaction_id
937
+ # Owner's verified full name. Values are verified or provided by iDEAL directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
938
+ attr_reader :verified_name
939
+
940
+ def self.inner_class_types
941
+ @inner_class_types = {}
942
+ end
943
+
944
+ def self.field_remappings
945
+ @field_remappings = {}
946
+ end
947
+ end
948
+
949
+ class InteracPresent < ::Stripe::StripeObject
950
+ class Receipt < ::Stripe::StripeObject
951
+ # The type of account being debited or credited
952
+ attr_reader :account_type
953
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
954
+ attr_reader :application_cryptogram
955
+ # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
956
+ attr_reader :application_preferred_name
957
+ # Identifier for this transaction.
958
+ attr_reader :authorization_code
959
+ # EMV tag 8A. A code returned by the card issuer.
960
+ attr_reader :authorization_response_code
961
+ # 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`.
962
+ attr_reader :cardholder_verification_method
963
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
964
+ attr_reader :dedicated_file_name
965
+ # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
966
+ attr_reader :terminal_verification_results
967
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
968
+ attr_reader :transaction_status_information
969
+
970
+ def self.inner_class_types
971
+ @inner_class_types = {}
972
+ end
973
+
974
+ def self.field_remappings
975
+ @field_remappings = {}
976
+ end
977
+ end
978
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
979
+ attr_reader :brand
980
+ # 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.
981
+ attr_reader :cardholder_name
982
+ # 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.
983
+ attr_reader :country
984
+ # 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.)
985
+ attr_reader :description
986
+ # Authorization response cryptogram.
987
+ attr_reader :emv_auth_data
988
+ # Two-digit number representing the card's expiration month.
989
+ attr_reader :exp_month
990
+ # Four-digit number representing the card's expiration year.
991
+ attr_reader :exp_year
992
+ # 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.
993
+ #
994
+ # *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.*
995
+ attr_reader :fingerprint
996
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
997
+ attr_reader :funding
998
+ # 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.
999
+ attr_reader :generated_card
1000
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
1001
+ attr_reader :iin
1002
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
1003
+ attr_reader :issuer
1004
+ # The last four digits of the card.
1005
+ attr_reader :last4
1006
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1007
+ attr_reader :location
1008
+ # 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`.
1009
+ attr_reader :network
1010
+ # 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.
1011
+ attr_reader :network_transaction_id
1012
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
1013
+ attr_reader :preferred_locales
1014
+ # How card details were read in this transaction.
1015
+ attr_reader :read_method
1016
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1017
+ attr_reader :reader
1018
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
1019
+ attr_reader :receipt
1020
+
1021
+ def self.inner_class_types
1022
+ @inner_class_types = { receipt: Receipt }
1023
+ end
1024
+
1025
+ def self.field_remappings
1026
+ @field_remappings = {}
1027
+ end
1028
+ end
1029
+
1030
+ class KakaoPay < ::Stripe::StripeObject
1031
+ # A unique identifier for the buyer as determined by the local payment processor.
1032
+ attr_reader :buyer_id
1033
+ # The Kakao Pay transaction ID associated with this payment.
1034
+ attr_reader :transaction_id
1035
+
1036
+ def self.inner_class_types
1037
+ @inner_class_types = {}
1038
+ end
1039
+
1040
+ def self.field_remappings
1041
+ @field_remappings = {}
1042
+ end
1043
+ end
1044
+
1045
+ class Klarna < ::Stripe::StripeObject
1046
+ class PayerDetails < ::Stripe::StripeObject
1047
+ class Address < ::Stripe::StripeObject
1048
+ # The payer address country
1049
+ attr_reader :country
1050
+
1051
+ def self.inner_class_types
1052
+ @inner_class_types = {}
1053
+ end
1054
+
1055
+ def self.field_remappings
1056
+ @field_remappings = {}
1057
+ end
1058
+ end
1059
+ # The payer's address
1060
+ attr_reader :address
1061
+
1062
+ def self.inner_class_types
1063
+ @inner_class_types = { address: Address }
1064
+ end
1065
+
1066
+ def self.field_remappings
1067
+ @field_remappings = {}
1068
+ end
1069
+ end
1070
+ # The payer details for this transaction.
1071
+ attr_reader :payer_details
1072
+ # The Klarna payment method used for this transaction.
1073
+ # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
1074
+ attr_reader :payment_method_category
1075
+ # Preferred language of the Klarna authorization page that the customer is redirected to.
1076
+ # 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`
1077
+ attr_reader :preferred_locale
1078
+
1079
+ def self.inner_class_types
1080
+ @inner_class_types = { payer_details: PayerDetails }
1081
+ end
1082
+
1083
+ def self.field_remappings
1084
+ @field_remappings = {}
1085
+ end
1086
+ end
1087
+
1088
+ class Konbini < ::Stripe::StripeObject
1089
+ class Store < ::Stripe::StripeObject
1090
+ # The name of the convenience store chain where the payment was completed.
1091
+ attr_reader :chain
1092
+
1093
+ def self.inner_class_types
1094
+ @inner_class_types = {}
1095
+ end
1096
+
1097
+ def self.field_remappings
1098
+ @field_remappings = {}
1099
+ end
1100
+ end
1101
+ # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
1102
+ attr_reader :store
1103
+
1104
+ def self.inner_class_types
1105
+ @inner_class_types = { store: Store }
1106
+ end
1107
+
1108
+ def self.field_remappings
1109
+ @field_remappings = {}
1110
+ end
1111
+ end
1112
+
1113
+ class KrCard < ::Stripe::StripeObject
1114
+ # The local credit or debit card brand.
1115
+ attr_reader :brand
1116
+ # A unique identifier for the buyer as determined by the local payment processor.
1117
+ attr_reader :buyer_id
1118
+ # The last four digits of the card. This may not be present for American Express cards.
1119
+ attr_reader :last4
1120
+ # The Korean Card transaction ID associated with this payment.
1121
+ attr_reader :transaction_id
1122
+
1123
+ def self.inner_class_types
1124
+ @inner_class_types = {}
1125
+ end
1126
+
1127
+ def self.field_remappings
1128
+ @field_remappings = {}
1129
+ end
1130
+ end
1131
+
1132
+ class Link < ::Stripe::StripeObject
1133
+ # Two-letter ISO code representing the funding source country beneath the Link payment.
1134
+ # You could use this attribute to get a sense of international fees.
1135
+ attr_reader :country
1136
+
1137
+ def self.inner_class_types
1138
+ @inner_class_types = {}
1139
+ end
1140
+
1141
+ def self.field_remappings
1142
+ @field_remappings = {}
1143
+ end
1144
+ end
1145
+
1146
+ class MbWay < ::Stripe::StripeObject
1147
+ def self.inner_class_types
1148
+ @inner_class_types = {}
1149
+ end
1150
+
1151
+ def self.field_remappings
1152
+ @field_remappings = {}
1153
+ end
1154
+ end
1155
+
1156
+ class Mobilepay < ::Stripe::StripeObject
1157
+ class Card < ::Stripe::StripeObject
1158
+ # Brand of the card used in the transaction
1159
+ attr_reader :brand
1160
+ # Two-letter ISO code representing the country of the card
1161
+ attr_reader :country
1162
+ # Two digit number representing the card's expiration month
1163
+ attr_reader :exp_month
1164
+ # Two digit number representing the card's expiration year
1165
+ attr_reader :exp_year
1166
+ # The last 4 digits of the card
1167
+ attr_reader :last4
1168
+
1169
+ def self.inner_class_types
1170
+ @inner_class_types = {}
1171
+ end
1172
+
1173
+ def self.field_remappings
1174
+ @field_remappings = {}
1175
+ end
1176
+ end
1177
+ # Internal card details
1178
+ attr_reader :card
1179
+
1180
+ def self.inner_class_types
1181
+ @inner_class_types = { card: Card }
1182
+ end
1183
+
1184
+ def self.field_remappings
1185
+ @field_remappings = {}
1186
+ end
1187
+ end
1188
+
1189
+ class Multibanco < ::Stripe::StripeObject
1190
+ # Entity number associated with this Multibanco payment.
1191
+ attr_reader :entity
1192
+ # Reference number associated with this Multibanco payment.
1193
+ attr_reader :reference
1194
+
1195
+ def self.inner_class_types
1196
+ @inner_class_types = {}
1197
+ end
1198
+
1199
+ def self.field_remappings
1200
+ @field_remappings = {}
1201
+ end
1202
+ end
1203
+
1204
+ class NaverPay < ::Stripe::StripeObject
1205
+ # A unique identifier for the buyer as determined by the local payment processor.
1206
+ attr_reader :buyer_id
1207
+ # The Naver Pay transaction ID associated with this payment.
1208
+ attr_reader :transaction_id
1209
+
1210
+ def self.inner_class_types
1211
+ @inner_class_types = {}
1212
+ end
1213
+
1214
+ def self.field_remappings
1215
+ @field_remappings = {}
1216
+ end
1217
+ end
1218
+
1219
+ class NzBankAccount < ::Stripe::StripeObject
1220
+ # 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.
1221
+ attr_reader :account_holder_name
1222
+ # The numeric code for the bank account's bank.
1223
+ attr_reader :bank_code
1224
+ # The name of the bank.
1225
+ attr_reader :bank_name
1226
+ # The numeric code for the bank account's bank branch.
1227
+ attr_reader :branch_code
1228
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1229
+ attr_reader :expected_debit_date
1230
+ # Last four digits of the bank account number.
1231
+ attr_reader :last4
1232
+ # The suffix of the bank account number.
1233
+ attr_reader :suffix
1234
+
1235
+ def self.inner_class_types
1236
+ @inner_class_types = {}
1237
+ end
1238
+
1239
+ def self.field_remappings
1240
+ @field_remappings = {}
1241
+ end
1242
+ end
1243
+
1244
+ class Oxxo < ::Stripe::StripeObject
1245
+ # OXXO reference number
1246
+ attr_reader :number
1247
+
1248
+ def self.inner_class_types
1249
+ @inner_class_types = {}
1250
+ end
1251
+
1252
+ def self.field_remappings
1253
+ @field_remappings = {}
1254
+ end
1255
+ end
1256
+
1257
+ class P24 < ::Stripe::StripeObject
1258
+ # 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`.
1259
+ attr_reader :bank
1260
+ # Unique reference for this Przelewy24 payment.
1261
+ attr_reader :reference
1262
+ # Owner's verified full name. Values are verified or provided by Przelewy24 directly
1263
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1264
+ # Przelewy24 rarely provides this information so the attribute is usually empty.
1265
+ attr_reader :verified_name
1266
+
1267
+ def self.inner_class_types
1268
+ @inner_class_types = {}
1269
+ end
1270
+
1271
+ def self.field_remappings
1272
+ @field_remappings = {}
1273
+ end
1274
+ end
1275
+
1276
+ class PayByBank < ::Stripe::StripeObject
1277
+ def self.inner_class_types
1278
+ @inner_class_types = {}
1279
+ end
1280
+
1281
+ def self.field_remappings
1282
+ @field_remappings = {}
1283
+ end
1284
+ end
1285
+
1286
+ class Payco < ::Stripe::StripeObject
1287
+ # A unique identifier for the buyer as determined by the local payment processor.
1288
+ attr_reader :buyer_id
1289
+ # The Payco transaction ID associated with this payment.
1290
+ attr_reader :transaction_id
1291
+
1292
+ def self.inner_class_types
1293
+ @inner_class_types = {}
1294
+ end
1295
+
1296
+ def self.field_remappings
1297
+ @field_remappings = {}
1298
+ end
1299
+ end
1300
+
1301
+ class Paynow < ::Stripe::StripeObject
1302
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1303
+ attr_reader :location
1304
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1305
+ attr_reader :reader
1306
+ # Reference number associated with this PayNow payment
1307
+ attr_reader :reference
1308
+
1309
+ def self.inner_class_types
1310
+ @inner_class_types = {}
1311
+ end
1312
+
1313
+ def self.field_remappings
1314
+ @field_remappings = {}
1315
+ end
1316
+ end
1317
+
1318
+ class Paypal < ::Stripe::StripeObject
1319
+ class SellerProtection < ::Stripe::StripeObject
1320
+ # An array of conditions that are covered for the transaction, if applicable.
1321
+ attr_reader :dispute_categories
1322
+ # Indicates whether the transaction is eligible for PayPal's seller protection.
1323
+ attr_reader :status
1324
+
1325
+ def self.inner_class_types
1326
+ @inner_class_types = {}
1327
+ end
1328
+
1329
+ def self.field_remappings
1330
+ @field_remappings = {}
1331
+ end
1332
+ end
1333
+ # 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.
1334
+ attr_reader :country
1335
+ # Owner's email. Values are provided by PayPal directly
1336
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1337
+ attr_reader :payer_email
1338
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1339
+ attr_reader :payer_id
1340
+ # Owner's full name. Values provided by PayPal directly
1341
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1342
+ attr_reader :payer_name
1343
+ # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
1344
+ attr_reader :seller_protection
1345
+ # A unique ID generated by PayPal for this transaction.
1346
+ attr_reader :transaction_id
1347
+
1348
+ def self.inner_class_types
1349
+ @inner_class_types = { seller_protection: SellerProtection }
1350
+ end
1351
+
1352
+ def self.field_remappings
1353
+ @field_remappings = {}
1354
+ end
1355
+ end
1356
+
1357
+ class Payto < ::Stripe::StripeObject
1358
+ # Bank-State-Branch number of the bank account.
1359
+ attr_reader :bsb_number
1360
+ # Last four digits of the bank account number.
1361
+ attr_reader :last4
1362
+ # ID of the mandate used to make this payment.
1363
+ attr_reader :mandate
1364
+ # The PayID alias for the bank account.
1365
+ attr_reader :pay_id
1366
+
1367
+ def self.inner_class_types
1368
+ @inner_class_types = {}
1369
+ end
1370
+
1371
+ def self.field_remappings
1372
+ @field_remappings = {}
1373
+ end
1374
+ end
1375
+
1376
+ class Pix < ::Stripe::StripeObject
1377
+ # Unique transaction id generated by BCB
1378
+ attr_reader :bank_transaction_id
1379
+
1380
+ def self.inner_class_types
1381
+ @inner_class_types = {}
1382
+ end
1383
+
1384
+ def self.field_remappings
1385
+ @field_remappings = {}
1386
+ end
1387
+ end
1388
+
1389
+ class Promptpay < ::Stripe::StripeObject
1390
+ # Bill reference generated by PromptPay
1391
+ attr_reader :reference
1392
+
1393
+ def self.inner_class_types
1394
+ @inner_class_types = {}
1395
+ end
1396
+
1397
+ def self.field_remappings
1398
+ @field_remappings = {}
1399
+ end
1400
+ end
1401
+
1402
+ class RevolutPay < ::Stripe::StripeObject
1403
+ class Funding < ::Stripe::StripeObject
1404
+ class Card < ::Stripe::StripeObject
1405
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
1406
+ attr_reader :brand
1407
+ # 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.
1408
+ attr_reader :country
1409
+ # Two-digit number representing the card's expiration month.
1410
+ attr_reader :exp_month
1411
+ # Four-digit number representing the card's expiration year.
1412
+ attr_reader :exp_year
1413
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
1414
+ attr_reader :funding
1415
+ # The last four digits of the card.
1416
+ attr_reader :last4
1417
+
1418
+ def self.inner_class_types
1419
+ @inner_class_types = {}
1420
+ end
1421
+
1422
+ def self.field_remappings
1423
+ @field_remappings = {}
1424
+ end
1425
+ end
1426
+ # Attribute for field card
1427
+ attr_reader :card
1428
+ # funding type of the underlying payment method.
1429
+ attr_reader :type
1430
+
1431
+ def self.inner_class_types
1432
+ @inner_class_types = { card: Card }
1433
+ end
1434
+
1435
+ def self.field_remappings
1436
+ @field_remappings = {}
1437
+ end
1438
+ end
1439
+ # Attribute for field funding
1440
+ attr_reader :funding
1441
+ # The Revolut Pay transaction ID associated with this payment.
1442
+ attr_reader :transaction_id
1443
+
1444
+ def self.inner_class_types
1445
+ @inner_class_types = { funding: Funding }
1446
+ end
1447
+
1448
+ def self.field_remappings
1449
+ @field_remappings = {}
1450
+ end
1451
+ end
1452
+
1453
+ class SamsungPay < ::Stripe::StripeObject
1454
+ # A unique identifier for the buyer as determined by the local payment processor.
1455
+ attr_reader :buyer_id
1456
+ # The Samsung Pay transaction ID associated with this payment.
1457
+ attr_reader :transaction_id
1458
+
1459
+ def self.inner_class_types
1460
+ @inner_class_types = {}
1461
+ end
1462
+
1463
+ def self.field_remappings
1464
+ @field_remappings = {}
1465
+ end
1466
+ end
1467
+
1468
+ class Satispay < ::Stripe::StripeObject
1469
+ # The Satispay transaction ID associated with this payment.
1470
+ attr_reader :transaction_id
1471
+
1472
+ def self.inner_class_types
1473
+ @inner_class_types = {}
1474
+ end
1475
+
1476
+ def self.field_remappings
1477
+ @field_remappings = {}
1478
+ end
1479
+ end
1480
+
1481
+ class SepaCreditTransfer < ::Stripe::StripeObject
1482
+ # Name of the bank associated with the bank account.
1483
+ attr_reader :bank_name
1484
+ # Bank Identifier Code of the bank associated with the bank account.
1485
+ attr_reader :bic
1486
+ # IBAN of the bank account to transfer funds to.
1487
+ attr_reader :iban
1488
+
1489
+ def self.inner_class_types
1490
+ @inner_class_types = {}
1491
+ end
1492
+
1493
+ def self.field_remappings
1494
+ @field_remappings = {}
1495
+ end
1496
+ end
1497
+
1498
+ class SepaDebit < ::Stripe::StripeObject
1499
+ # Bank code of bank associated with the bank account.
1500
+ attr_reader :bank_code
1501
+ # Branch code of bank associated with the bank account.
1502
+ attr_reader :branch_code
1503
+ # Two-letter ISO code representing the country the bank account is located in.
1504
+ attr_reader :country
1505
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1506
+ attr_reader :expected_debit_date
1507
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1508
+ attr_reader :fingerprint
1509
+ # Last four characters of the IBAN.
1510
+ attr_reader :last4
1511
+ # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
1512
+ attr_reader :mandate
1513
+
1514
+ def self.inner_class_types
1515
+ @inner_class_types = {}
1516
+ end
1517
+
1518
+ def self.field_remappings
1519
+ @field_remappings = {}
1520
+ end
1521
+ end
1522
+
1523
+ class Sofort < ::Stripe::StripeObject
1524
+ # Bank code of bank associated with the bank account.
1525
+ attr_reader :bank_code
1526
+ # Name of the bank associated with the bank account.
1527
+ attr_reader :bank_name
1528
+ # Bank Identifier Code of the bank associated with the bank account.
1529
+ attr_reader :bic
1530
+ # Two-letter ISO code representing the country the bank account is located in.
1531
+ attr_reader :country
1532
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1533
+ attr_reader :generated_sepa_debit
1534
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1535
+ attr_reader :generated_sepa_debit_mandate
1536
+ # Last four characters of the IBAN.
1537
+ attr_reader :iban_last4
1538
+ # Preferred language of the SOFORT authorization page that the customer is redirected to. Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
1539
+ attr_reader :preferred_language
1540
+ # Owner's verified full name. Values are verified or provided by SOFORT directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1541
+ attr_reader :verified_name
1542
+
1543
+ def self.inner_class_types
1544
+ @inner_class_types = {}
1545
+ end
1546
+
1547
+ def self.field_remappings
1548
+ @field_remappings = {}
1549
+ end
1550
+ end
1551
+
1552
+ class StripeAccount < ::Stripe::StripeObject
1553
+ def self.inner_class_types
1554
+ @inner_class_types = {}
1555
+ end
1556
+
1557
+ def self.field_remappings
1558
+ @field_remappings = {}
1559
+ end
1560
+ end
1561
+
1562
+ class Swish < ::Stripe::StripeObject
1563
+ # 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
1564
+ attr_reader :fingerprint
1565
+ # Payer bank reference number for the payment
1566
+ attr_reader :payment_reference
1567
+ # The last four digits of the Swish account phone number
1568
+ attr_reader :verified_phone_last4
1569
+
1570
+ def self.inner_class_types
1571
+ @inner_class_types = {}
1572
+ end
1573
+
1574
+ def self.field_remappings
1575
+ @field_remappings = {}
1576
+ end
1577
+ end
1578
+
1579
+ class Twint < ::Stripe::StripeObject
1580
+ def self.inner_class_types
1581
+ @inner_class_types = {}
1582
+ end
1583
+
1584
+ def self.field_remappings
1585
+ @field_remappings = {}
1586
+ end
1587
+ end
1588
+
1589
+ class Upi < ::Stripe::StripeObject
1590
+ # Customer's unique Virtual Payment Address.
1591
+ attr_reader :vpa
1592
+
1593
+ def self.inner_class_types
1594
+ @inner_class_types = {}
1595
+ end
1596
+
1597
+ def self.field_remappings
1598
+ @field_remappings = {}
1599
+ end
1600
+ end
1601
+
1602
+ class UsBankAccount < ::Stripe::StripeObject
1603
+ # The type of entity that holds the account. This can be either 'individual' or 'company'.
1604
+ attr_reader :account_holder_type
1605
+ # The type of the bank account. This can be either 'checking' or 'savings'.
1606
+ attr_reader :account_type
1607
+ # Name of the bank associated with the bank account.
1608
+ attr_reader :bank_name
1609
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1610
+ attr_reader :expected_debit_date
1611
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1612
+ attr_reader :fingerprint
1613
+ # Last four digits of the bank account number.
1614
+ attr_reader :last4
1615
+ # ID of the mandate used to make this payment.
1616
+ attr_reader :mandate
1617
+ # The ACH payment reference for this transaction.
1618
+ attr_reader :payment_reference
1619
+ # The routing number for the bank account.
1620
+ attr_reader :routing_number
1621
+
1622
+ def self.inner_class_types
1623
+ @inner_class_types = {}
1624
+ end
1625
+
1626
+ def self.field_remappings
1627
+ @field_remappings = {}
1628
+ end
1629
+ end
1630
+
1631
+ class Wechat < ::Stripe::StripeObject
1632
+ def self.inner_class_types
1633
+ @inner_class_types = {}
1634
+ end
1635
+
1636
+ def self.field_remappings
1637
+ @field_remappings = {}
1638
+ end
1639
+ end
1640
+
1641
+ class WechatPay < ::Stripe::StripeObject
1642
+ # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
1643
+ attr_reader :fingerprint
1644
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1645
+ attr_reader :location
1646
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1647
+ attr_reader :reader
1648
+ # Transaction ID of this particular WeChat Pay transaction.
1649
+ attr_reader :transaction_id
1650
+
1651
+ def self.inner_class_types
1652
+ @inner_class_types = {}
1653
+ end
1654
+
1655
+ def self.field_remappings
1656
+ @field_remappings = {}
1657
+ end
1658
+ end
1659
+
1660
+ class Zip < ::Stripe::StripeObject
1661
+ def self.inner_class_types
1662
+ @inner_class_types = {}
1663
+ end
1664
+
1665
+ def self.field_remappings
1666
+ @field_remappings = {}
1667
+ end
1668
+ end
1669
+ # Attribute for field ach_credit_transfer
1670
+ attr_reader :ach_credit_transfer
1671
+ # Attribute for field ach_debit
1672
+ attr_reader :ach_debit
1673
+ # Attribute for field acss_debit
1674
+ attr_reader :acss_debit
1675
+ # Attribute for field affirm
1676
+ attr_reader :affirm
1677
+ # Attribute for field afterpay_clearpay
1678
+ attr_reader :afterpay_clearpay
1679
+ # Attribute for field alipay
1680
+ attr_reader :alipay
1681
+ # Attribute for field alma
1682
+ attr_reader :alma
1683
+ # Attribute for field amazon_pay
1684
+ attr_reader :amazon_pay
1685
+ # Attribute for field au_becs_debit
1686
+ attr_reader :au_becs_debit
1687
+ # Attribute for field bacs_debit
1688
+ attr_reader :bacs_debit
1689
+ # Attribute for field bancontact
1690
+ attr_reader :bancontact
1691
+ # Attribute for field billie
1692
+ attr_reader :billie
1693
+ # The billing details associated with the method of payment.
1694
+ attr_reader :billing_details
1695
+ # Attribute for field blik
1696
+ attr_reader :blik
1697
+ # Attribute for field boleto
1698
+ attr_reader :boleto
1699
+ # Details of the card used for this payment attempt.
1700
+ attr_reader :card
1701
+ # Attribute for field card_present
1702
+ attr_reader :card_present
1703
+ # Attribute for field cashapp
1704
+ attr_reader :cashapp
1705
+ # Attribute for field crypto
1706
+ attr_reader :crypto
1707
+ # Custom Payment Methods represent Payment Method types not modeled directly in
1708
+ # the Stripe API. This resource consists of details about the custom payment method
1709
+ # used for this payment attempt.
1710
+ attr_reader :custom
1711
+ # Attribute for field customer_balance
1712
+ attr_reader :customer_balance
1713
+ # Attribute for field eps
1714
+ attr_reader :eps
1715
+ # Attribute for field fpx
1716
+ attr_reader :fpx
1717
+ # Attribute for field giropay
1718
+ attr_reader :giropay
1719
+ # Attribute for field grabpay
1720
+ attr_reader :grabpay
1721
+ # Attribute for field ideal
1722
+ attr_reader :ideal
1723
+ # Attribute for field interac_present
1724
+ attr_reader :interac_present
1725
+ # Attribute for field kakao_pay
1726
+ attr_reader :kakao_pay
1727
+ # Attribute for field klarna
1728
+ attr_reader :klarna
1729
+ # Attribute for field konbini
1730
+ attr_reader :konbini
1731
+ # Attribute for field kr_card
1732
+ attr_reader :kr_card
1733
+ # Attribute for field link
1734
+ attr_reader :link
1735
+ # Attribute for field mb_way
1736
+ attr_reader :mb_way
1737
+ # Attribute for field mobilepay
1738
+ attr_reader :mobilepay
1739
+ # Attribute for field multibanco
1740
+ attr_reader :multibanco
1741
+ # Attribute for field naver_pay
1742
+ attr_reader :naver_pay
1743
+ # Attribute for field nz_bank_account
1744
+ attr_reader :nz_bank_account
1745
+ # Attribute for field oxxo
1746
+ attr_reader :oxxo
1747
+ # Attribute for field p24
1748
+ attr_reader :p24
1749
+ # Attribute for field pay_by_bank
1750
+ attr_reader :pay_by_bank
1751
+ # Attribute for field payco
1752
+ attr_reader :payco
1753
+ # ID of the Stripe PaymentMethod used to make this payment.
1754
+ attr_reader :payment_method
1755
+ # Attribute for field paynow
1756
+ attr_reader :paynow
1757
+ # Attribute for field paypal
1758
+ attr_reader :paypal
1759
+ # Attribute for field payto
1760
+ attr_reader :payto
1761
+ # Attribute for field pix
1762
+ attr_reader :pix
1763
+ # Attribute for field promptpay
1764
+ attr_reader :promptpay
1765
+ # Attribute for field revolut_pay
1766
+ attr_reader :revolut_pay
1767
+ # Attribute for field samsung_pay
1768
+ attr_reader :samsung_pay
1769
+ # Attribute for field satispay
1770
+ attr_reader :satispay
1771
+ # Attribute for field sepa_credit_transfer
1772
+ attr_reader :sepa_credit_transfer
1773
+ # Attribute for field sepa_debit
1774
+ attr_reader :sepa_debit
1775
+ # Attribute for field sofort
1776
+ attr_reader :sofort
1777
+ # Attribute for field stripe_account
1778
+ attr_reader :stripe_account
1779
+ # Attribute for field swish
1780
+ attr_reader :swish
1781
+ # Attribute for field twint
1782
+ attr_reader :twint
1783
+ # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
1784
+ # An additional hash is included on `payment_method_details` with a name matching this value.
1785
+ # It contains information specific to the payment method.
1786
+ attr_reader :type
1787
+ # Attribute for field upi
1788
+ attr_reader :upi
1789
+ # Attribute for field us_bank_account
1790
+ attr_reader :us_bank_account
1791
+ # Attribute for field wechat
1792
+ attr_reader :wechat
1793
+ # Attribute for field wechat_pay
1794
+ attr_reader :wechat_pay
1795
+ # Attribute for field zip
1796
+ attr_reader :zip
1797
+
1798
+ def self.inner_class_types
1799
+ @inner_class_types = {
1800
+ ach_credit_transfer: AchCreditTransfer,
1801
+ ach_debit: AchDebit,
1802
+ acss_debit: AcssDebit,
1803
+ affirm: Affirm,
1804
+ afterpay_clearpay: AfterpayClearpay,
1805
+ alipay: Alipay,
1806
+ alma: Alma,
1807
+ amazon_pay: AmazonPay,
1808
+ au_becs_debit: AuBecsDebit,
1809
+ bacs_debit: BacsDebit,
1810
+ bancontact: Bancontact,
1811
+ billie: Billie,
1812
+ billing_details: BillingDetails,
1813
+ blik: Blik,
1814
+ boleto: Boleto,
1815
+ card: Card,
1816
+ card_present: CardPresent,
1817
+ cashapp: Cashapp,
1818
+ crypto: Crypto,
1819
+ custom: Custom,
1820
+ customer_balance: CustomerBalance,
1821
+ eps: Eps,
1822
+ fpx: Fpx,
1823
+ giropay: Giropay,
1824
+ grabpay: Grabpay,
1825
+ ideal: Ideal,
1826
+ interac_present: InteracPresent,
1827
+ kakao_pay: KakaoPay,
1828
+ klarna: Klarna,
1829
+ konbini: Konbini,
1830
+ kr_card: KrCard,
1831
+ link: Link,
1832
+ mb_way: MbWay,
1833
+ mobilepay: Mobilepay,
1834
+ multibanco: Multibanco,
1835
+ naver_pay: NaverPay,
1836
+ nz_bank_account: NzBankAccount,
1837
+ oxxo: Oxxo,
1838
+ p24: P24,
1839
+ pay_by_bank: PayByBank,
1840
+ payco: Payco,
1841
+ paynow: Paynow,
1842
+ paypal: Paypal,
1843
+ payto: Payto,
1844
+ pix: Pix,
1845
+ promptpay: Promptpay,
1846
+ revolut_pay: RevolutPay,
1847
+ samsung_pay: SamsungPay,
1848
+ satispay: Satispay,
1849
+ sepa_credit_transfer: SepaCreditTransfer,
1850
+ sepa_debit: SepaDebit,
1851
+ sofort: Sofort,
1852
+ stripe_account: StripeAccount,
1853
+ swish: Swish,
1854
+ twint: Twint,
1855
+ upi: Upi,
1856
+ us_bank_account: UsBankAccount,
1857
+ wechat: Wechat,
1858
+ wechat_pay: WechatPay,
1859
+ zip: Zip,
1860
+ }
1861
+ end
1862
+
1863
+ def self.field_remappings
1864
+ @field_remappings = {}
1865
+ end
1866
+ end
1867
+
1868
+ class ProcessorDetails < ::Stripe::StripeObject
1869
+ class Custom < ::Stripe::StripeObject
1870
+ # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
1871
+ attr_reader :payment_reference
1872
+
1873
+ def self.inner_class_types
1874
+ @inner_class_types = {}
1875
+ end
1876
+
1877
+ def self.field_remappings
1878
+ @field_remappings = {}
1879
+ end
1880
+ end
1881
+ # Custom processors represent payment processors not modeled directly in
1882
+ # the Stripe API. This resource consists of details about the custom processor
1883
+ # used for this payment attempt.
1884
+ attr_reader :custom
1885
+ # The processor used for this payment attempt.
1886
+ attr_reader :type
1887
+
1888
+ def self.inner_class_types
1889
+ @inner_class_types = { custom: Custom }
1890
+ end
1891
+
1892
+ def self.field_remappings
1893
+ @field_remappings = {}
1894
+ end
1895
+ end
1896
+
1897
+ class ShippingDetails < ::Stripe::StripeObject
1898
+ class Address < ::Stripe::StripeObject
1899
+ # City, district, suburb, town, or village.
1900
+ attr_reader :city
1901
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1902
+ attr_reader :country
1903
+ # Address line 1, such as the street, PO Box, or company name.
1904
+ attr_reader :line1
1905
+ # Address line 2, such as the apartment, suite, unit, or building.
1906
+ attr_reader :line2
1907
+ # ZIP or postal code.
1908
+ attr_reader :postal_code
1909
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1910
+ attr_reader :state
1911
+
1912
+ def self.inner_class_types
1913
+ @inner_class_types = {}
1914
+ end
1915
+
1916
+ def self.field_remappings
1917
+ @field_remappings = {}
1918
+ end
1919
+ end
1920
+ # A representation of a physical address.
1921
+ attr_reader :address
1922
+ # The shipping recipient's name.
1923
+ attr_reader :name
1924
+ # The shipping recipient's phone number.
1925
+ attr_reader :phone
1926
+
1927
+ def self.inner_class_types
1928
+ @inner_class_types = { address: Address }
1929
+ end
1930
+
1931
+ def self.field_remappings
1932
+ @field_remappings = {}
1933
+ end
1934
+ end
1935
+ # A representation of an amount of money, consisting of an amount and a currency.
1936
+ attr_reader :amount
1937
+ # A representation of an amount of money, consisting of an amount and a currency.
1938
+ attr_reader :amount_authorized
1939
+ # A representation of an amount of money, consisting of an amount and a currency.
1940
+ attr_reader :amount_canceled
1941
+ # A representation of an amount of money, consisting of an amount and a currency.
1942
+ attr_reader :amount_failed
1943
+ # A representation of an amount of money, consisting of an amount and a currency.
1944
+ attr_reader :amount_guaranteed
1945
+ # A representation of an amount of money, consisting of an amount and a currency.
1946
+ attr_reader :amount_refunded
1947
+ # A representation of an amount of money, consisting of an amount and a currency.
1948
+ attr_reader :amount_requested
1949
+ # ID of the Connect application that created the PaymentRecord.
1950
+ attr_reader :application
1951
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1952
+ attr_reader :created
1953
+ # Customer information for this payment.
1954
+ attr_reader :customer_details
1955
+ # Indicates whether the customer was present in your checkout flow during this payment.
1956
+ attr_reader :customer_presence
1957
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1958
+ attr_reader :description
1959
+ # Unique identifier for the object.
1960
+ attr_reader :id
1961
+ # ID of the latest Payment Attempt Record attached to this Payment Record.
1962
+ attr_reader :latest_payment_attempt_record
1963
+ # If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
1964
+ attr_reader :livemode
1965
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1966
+ attr_reader :metadata
1967
+ # String representing the object's type. Objects of the same type share the same value.
1968
+ attr_reader :object
1969
+ # Information about the Payment Method debited for this payment.
1970
+ attr_reader :payment_method_details
1971
+ # Processor information associated with this payment.
1972
+ attr_reader :processor_details
1973
+ # Indicates who reported the payment.
1974
+ attr_reader :reported_by
1975
+ # Shipping information for this payment.
1976
+ attr_reader :shipping_details
1977
+
1978
+ # Report a new Payment Record. You may report a Payment Record as it is
1979
+ # initialized and later report updates through the other report_* methods, or report Payment
1980
+ # Records in a terminal state directly, through this method.
1981
+ def self.report_payment(params = {}, opts = {})
1982
+ request_stripe_object(
1983
+ method: :post,
1984
+ path: "/v1/payment_records/report_payment",
1985
+ params: params,
1986
+ opts: opts
1987
+ )
1988
+ end
1989
+
1990
+ # Report a new payment attempt on the specified Payment Record. A new payment
1991
+ # attempt can only be specified if all other payment attempts are canceled or failed.
1992
+ def report_payment_attempt(params = {}, opts = {})
1993
+ request_stripe_object(
1994
+ method: :post,
1995
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(self["id"]) }),
1996
+ params: params,
1997
+ opts: opts
1998
+ )
1999
+ end
2000
+
2001
+ # Report a new payment attempt on the specified Payment Record. A new payment
2002
+ # attempt can only be specified if all other payment attempts are canceled or failed.
2003
+ def self.report_payment_attempt(id, params = {}, opts = {})
2004
+ request_stripe_object(
2005
+ method: :post,
2006
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(id) }),
2007
+ params: params,
2008
+ opts: opts
2009
+ )
2010
+ end
2011
+
2012
+ # Report that the most recent payment attempt on the specified Payment Record
2013
+ # was canceled.
2014
+ def report_payment_attempt_canceled(params = {}, opts = {})
2015
+ request_stripe_object(
2016
+ method: :post,
2017
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(self["id"]) }),
2018
+ params: params,
2019
+ opts: opts
2020
+ )
2021
+ end
2022
+
2023
+ # Report that the most recent payment attempt on the specified Payment Record
2024
+ # was canceled.
2025
+ def self.report_payment_attempt_canceled(id, params = {}, opts = {})
2026
+ request_stripe_object(
2027
+ method: :post,
2028
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(id) }),
2029
+ params: params,
2030
+ opts: opts
2031
+ )
2032
+ end
2033
+
2034
+ # Report that the most recent payment attempt on the specified Payment Record
2035
+ # failed or errored.
2036
+ def report_payment_attempt_failed(params = {}, opts = {})
2037
+ request_stripe_object(
2038
+ method: :post,
2039
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(self["id"]) }),
2040
+ params: params,
2041
+ opts: opts
2042
+ )
2043
+ end
2044
+
2045
+ # Report that the most recent payment attempt on the specified Payment Record
2046
+ # failed or errored.
2047
+ def self.report_payment_attempt_failed(id, params = {}, opts = {})
2048
+ request_stripe_object(
2049
+ method: :post,
2050
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(id) }),
2051
+ params: params,
2052
+ opts: opts
2053
+ )
2054
+ end
2055
+
2056
+ # Report that the most recent payment attempt on the specified Payment Record
2057
+ # was guaranteed.
2058
+ def report_payment_attempt_guaranteed(params = {}, opts = {})
2059
+ request_stripe_object(
2060
+ method: :post,
2061
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(self["id"]) }),
2062
+ params: params,
2063
+ opts: opts
2064
+ )
2065
+ end
2066
+
2067
+ # Report that the most recent payment attempt on the specified Payment Record
2068
+ # was guaranteed.
2069
+ def self.report_payment_attempt_guaranteed(id, params = {}, opts = {})
2070
+ request_stripe_object(
2071
+ method: :post,
2072
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(id) }),
2073
+ params: params,
2074
+ opts: opts
2075
+ )
2076
+ end
2077
+
2078
+ # Report informational updates on the specified Payment Record.
2079
+ def report_payment_attempt_informational(params = {}, opts = {})
2080
+ request_stripe_object(
2081
+ method: :post,
2082
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_informational", { id: CGI.escape(self["id"]) }),
2083
+ params: params,
2084
+ opts: opts
2085
+ )
2086
+ end
2087
+
2088
+ # Report informational updates on the specified Payment Record.
2089
+ def self.report_payment_attempt_informational(id, params = {}, opts = {})
2090
+ request_stripe_object(
2091
+ method: :post,
2092
+ path: format("/v1/payment_records/%<id>s/report_payment_attempt_informational", { id: CGI.escape(id) }),
2093
+ params: params,
2094
+ opts: opts
2095
+ )
2096
+ end
2097
+
2098
+ # Report that the most recent payment attempt on the specified Payment Record
2099
+ # was refunded.
2100
+ def report_refund(params = {}, opts = {})
2101
+ request_stripe_object(
2102
+ method: :post,
2103
+ path: format("/v1/payment_records/%<id>s/report_refund", { id: CGI.escape(self["id"]) }),
2104
+ params: params,
2105
+ opts: opts
2106
+ )
2107
+ end
2108
+
2109
+ # Report that the most recent payment attempt on the specified Payment Record
2110
+ # was refunded.
2111
+ def self.report_refund(id, params = {}, opts = {})
2112
+ request_stripe_object(
2113
+ method: :post,
2114
+ path: format("/v1/payment_records/%<id>s/report_refund", { id: CGI.escape(id) }),
2115
+ params: params,
2116
+ opts: opts
2117
+ )
2118
+ end
2119
+
2120
+ def self.inner_class_types
2121
+ @inner_class_types = {
2122
+ amount: Amount,
2123
+ amount_authorized: AmountAuthorized,
2124
+ amount_canceled: AmountCanceled,
2125
+ amount_failed: AmountFailed,
2126
+ amount_guaranteed: AmountGuaranteed,
2127
+ amount_refunded: AmountRefunded,
2128
+ amount_requested: AmountRequested,
2129
+ customer_details: CustomerDetails,
2130
+ payment_method_details: PaymentMethodDetails,
2131
+ processor_details: ProcessorDetails,
2132
+ shipping_details: ShippingDetails,
2133
+ }
2134
+ end
2135
+
2136
+ def self.field_remappings
2137
+ @field_remappings = {}
2138
+ end
2139
+ end
2140
+ end