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,2010 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe.
6
+ # Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment
7
+ # method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record
8
+ # can have guaranteed funds.
9
+ class PaymentAttemptRecord < APIResource
10
+ extend Stripe::APIOperations::List
11
+
12
+ OBJECT_NAME = "payment_attempt_record"
13
+ def self.object_name
14
+ "payment_attempt_record"
15
+ end
16
+
17
+ class Amount < ::Stripe::StripeObject
18
+ # 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).
19
+ attr_reader :currency
20
+ # 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.
21
+ attr_reader :value
22
+
23
+ def self.inner_class_types
24
+ @inner_class_types = {}
25
+ end
26
+
27
+ def self.field_remappings
28
+ @field_remappings = {}
29
+ end
30
+ end
31
+
32
+ class AmountAuthorized < ::Stripe::StripeObject
33
+ # 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).
34
+ attr_reader :currency
35
+ # 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.
36
+ attr_reader :value
37
+
38
+ def self.inner_class_types
39
+ @inner_class_types = {}
40
+ end
41
+
42
+ def self.field_remappings
43
+ @field_remappings = {}
44
+ end
45
+ end
46
+
47
+ class AmountCanceled < ::Stripe::StripeObject
48
+ # 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).
49
+ attr_reader :currency
50
+ # 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.
51
+ attr_reader :value
52
+
53
+ def self.inner_class_types
54
+ @inner_class_types = {}
55
+ end
56
+
57
+ def self.field_remappings
58
+ @field_remappings = {}
59
+ end
60
+ end
61
+
62
+ class AmountFailed < ::Stripe::StripeObject
63
+ # 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).
64
+ attr_reader :currency
65
+ # 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.
66
+ attr_reader :value
67
+
68
+ def self.inner_class_types
69
+ @inner_class_types = {}
70
+ end
71
+
72
+ def self.field_remappings
73
+ @field_remappings = {}
74
+ end
75
+ end
76
+
77
+ class AmountGuaranteed < ::Stripe::StripeObject
78
+ # 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).
79
+ attr_reader :currency
80
+ # 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.
81
+ attr_reader :value
82
+
83
+ def self.inner_class_types
84
+ @inner_class_types = {}
85
+ end
86
+
87
+ def self.field_remappings
88
+ @field_remappings = {}
89
+ end
90
+ end
91
+
92
+ class AmountRefunded < ::Stripe::StripeObject
93
+ # 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).
94
+ attr_reader :currency
95
+ # 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.
96
+ attr_reader :value
97
+
98
+ def self.inner_class_types
99
+ @inner_class_types = {}
100
+ end
101
+
102
+ def self.field_remappings
103
+ @field_remappings = {}
104
+ end
105
+ end
106
+
107
+ class AmountRequested < ::Stripe::StripeObject
108
+ # 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).
109
+ attr_reader :currency
110
+ # 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.
111
+ attr_reader :value
112
+
113
+ def self.inner_class_types
114
+ @inner_class_types = {}
115
+ end
116
+
117
+ def self.field_remappings
118
+ @field_remappings = {}
119
+ end
120
+ end
121
+
122
+ class CustomerDetails < ::Stripe::StripeObject
123
+ # ID of the Stripe Customer associated with this payment.
124
+ attr_reader :customer
125
+ # The customer's email address.
126
+ attr_reader :email
127
+ # The customer's name.
128
+ attr_reader :name
129
+ # The customer's phone number.
130
+ attr_reader :phone
131
+
132
+ def self.inner_class_types
133
+ @inner_class_types = {}
134
+ end
135
+
136
+ def self.field_remappings
137
+ @field_remappings = {}
138
+ end
139
+ end
140
+
141
+ class PaymentMethodDetails < ::Stripe::StripeObject
142
+ class AchCreditTransfer < ::Stripe::StripeObject
143
+ # Account number to transfer funds to.
144
+ attr_reader :account_number
145
+ # Name of the bank associated with the routing number.
146
+ attr_reader :bank_name
147
+ # Routing transit number for the bank account to transfer funds to.
148
+ attr_reader :routing_number
149
+ # SWIFT code of the bank associated with the routing number.
150
+ attr_reader :swift_code
151
+
152
+ def self.inner_class_types
153
+ @inner_class_types = {}
154
+ end
155
+
156
+ def self.field_remappings
157
+ @field_remappings = {}
158
+ end
159
+ end
160
+
161
+ class AchDebit < ::Stripe::StripeObject
162
+ # Type of entity that holds the account. This can be either `individual` or `company`.
163
+ attr_reader :account_holder_type
164
+ # Name of the bank associated with the bank account.
165
+ attr_reader :bank_name
166
+ # Two-letter ISO code representing the country the bank account is located in.
167
+ attr_reader :country
168
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
169
+ attr_reader :fingerprint
170
+ # Last four digits of the bank account number.
171
+ attr_reader :last4
172
+ # Routing transit number of the bank account.
173
+ attr_reader :routing_number
174
+
175
+ def self.inner_class_types
176
+ @inner_class_types = {}
177
+ end
178
+
179
+ def self.field_remappings
180
+ @field_remappings = {}
181
+ end
182
+ end
183
+
184
+ class AcssDebit < ::Stripe::StripeObject
185
+ # Name of the bank associated with the bank account.
186
+ attr_reader :bank_name
187
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
188
+ attr_reader :expected_debit_date
189
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
190
+ attr_reader :fingerprint
191
+ # Institution number of the bank account
192
+ attr_reader :institution_number
193
+ # Last four digits of the bank account number.
194
+ attr_reader :last4
195
+ # ID of the mandate used to make this payment.
196
+ attr_reader :mandate
197
+ # Transit number of the bank account.
198
+ attr_reader :transit_number
199
+
200
+ def self.inner_class_types
201
+ @inner_class_types = {}
202
+ end
203
+
204
+ def self.field_remappings
205
+ @field_remappings = {}
206
+ end
207
+ end
208
+
209
+ class Affirm < ::Stripe::StripeObject
210
+ # ID of the location that this reader is assigned to.
211
+ attr_reader :location
212
+ # ID of the reader this transaction was made on.
213
+ attr_reader :reader
214
+ # The Affirm transaction ID associated with this payment.
215
+ attr_reader :transaction_id
216
+
217
+ def self.inner_class_types
218
+ @inner_class_types = {}
219
+ end
220
+
221
+ def self.field_remappings
222
+ @field_remappings = {}
223
+ end
224
+ end
225
+
226
+ class AfterpayClearpay < ::Stripe::StripeObject
227
+ # The Afterpay order ID associated with this payment intent.
228
+ attr_reader :order_id
229
+ # Order identifier shown to the merchant in Afterpay's online portal.
230
+ attr_reader :reference
231
+
232
+ def self.inner_class_types
233
+ @inner_class_types = {}
234
+ end
235
+
236
+ def self.field_remappings
237
+ @field_remappings = {}
238
+ end
239
+ end
240
+
241
+ class Alipay < ::Stripe::StripeObject
242
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
243
+ attr_reader :buyer_id
244
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
245
+ attr_reader :fingerprint
246
+ # Transaction ID of this particular Alipay transaction.
247
+ attr_reader :transaction_id
248
+
249
+ def self.inner_class_types
250
+ @inner_class_types = {}
251
+ end
252
+
253
+ def self.field_remappings
254
+ @field_remappings = {}
255
+ end
256
+ end
257
+
258
+ class Alma < ::Stripe::StripeObject
259
+ class Installments < ::Stripe::StripeObject
260
+ # The number of installments.
261
+ attr_reader :count
262
+
263
+ def self.inner_class_types
264
+ @inner_class_types = {}
265
+ end
266
+
267
+ def self.field_remappings
268
+ @field_remappings = {}
269
+ end
270
+ end
271
+ # Attribute for field installments
272
+ attr_reader :installments
273
+ # The Alma transaction ID associated with this payment.
274
+ attr_reader :transaction_id
275
+
276
+ def self.inner_class_types
277
+ @inner_class_types = { installments: Installments }
278
+ end
279
+
280
+ def self.field_remappings
281
+ @field_remappings = {}
282
+ end
283
+ end
284
+
285
+ class AmazonPay < ::Stripe::StripeObject
286
+ class Funding < ::Stripe::StripeObject
287
+ class Card < ::Stripe::StripeObject
288
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
289
+ attr_reader :brand
290
+ # 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.
291
+ attr_reader :country
292
+ # Two-digit number representing the card's expiration month.
293
+ attr_reader :exp_month
294
+ # Four-digit number representing the card's expiration year.
295
+ attr_reader :exp_year
296
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
297
+ attr_reader :funding
298
+ # The last four digits of the card.
299
+ attr_reader :last4
300
+
301
+ def self.inner_class_types
302
+ @inner_class_types = {}
303
+ end
304
+
305
+ def self.field_remappings
306
+ @field_remappings = {}
307
+ end
308
+ end
309
+ # Attribute for field card
310
+ attr_reader :card
311
+ # funding type of the underlying payment method.
312
+ attr_reader :type
313
+
314
+ def self.inner_class_types
315
+ @inner_class_types = { card: Card }
316
+ end
317
+
318
+ def self.field_remappings
319
+ @field_remappings = {}
320
+ end
321
+ end
322
+ # Attribute for field funding
323
+ attr_reader :funding
324
+ # The Amazon Pay transaction ID associated with this payment.
325
+ attr_reader :transaction_id
326
+
327
+ def self.inner_class_types
328
+ @inner_class_types = { funding: Funding }
329
+ end
330
+
331
+ def self.field_remappings
332
+ @field_remappings = {}
333
+ end
334
+ end
335
+
336
+ class AuBecsDebit < ::Stripe::StripeObject
337
+ # Bank-State-Branch number of the bank account.
338
+ attr_reader :bsb_number
339
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
340
+ attr_reader :expected_debit_date
341
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
342
+ attr_reader :fingerprint
343
+ # Last four digits of the bank account number.
344
+ attr_reader :last4
345
+ # ID of the mandate used to make this payment.
346
+ attr_reader :mandate
347
+
348
+ def self.inner_class_types
349
+ @inner_class_types = {}
350
+ end
351
+
352
+ def self.field_remappings
353
+ @field_remappings = {}
354
+ end
355
+ end
356
+
357
+ class BacsDebit < ::Stripe::StripeObject
358
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
359
+ attr_reader :expected_debit_date
360
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
361
+ attr_reader :fingerprint
362
+ # Last four digits of the bank account number.
363
+ attr_reader :last4
364
+ # ID of the mandate used to make this payment.
365
+ attr_reader :mandate
366
+ # Sort code of the bank account. (e.g., `10-20-30`)
367
+ attr_reader :sort_code
368
+
369
+ def self.inner_class_types
370
+ @inner_class_types = {}
371
+ end
372
+
373
+ def self.field_remappings
374
+ @field_remappings = {}
375
+ end
376
+ end
377
+
378
+ class Bancontact < ::Stripe::StripeObject
379
+ # Bank code of bank associated with the bank account.
380
+ attr_reader :bank_code
381
+ # Name of the bank associated with the bank account.
382
+ attr_reader :bank_name
383
+ # Bank Identifier Code of the bank associated with the bank account.
384
+ attr_reader :bic
385
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
386
+ attr_reader :generated_sepa_debit
387
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
388
+ attr_reader :generated_sepa_debit_mandate
389
+ # Last four characters of the IBAN.
390
+ attr_reader :iban_last4
391
+ # Preferred language of the Bancontact authorization page that the customer is redirected to. Can be one of `en`, `de`, `fr`, or `nl`
392
+ attr_reader :preferred_language
393
+ # 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.
394
+ attr_reader :verified_name
395
+
396
+ def self.inner_class_types
397
+ @inner_class_types = {}
398
+ end
399
+
400
+ def self.field_remappings
401
+ @field_remappings = {}
402
+ end
403
+ end
404
+
405
+ class Billie < ::Stripe::StripeObject
406
+ # The Billie transaction ID associated with this payment.
407
+ attr_reader :transaction_id
408
+
409
+ def self.inner_class_types
410
+ @inner_class_types = {}
411
+ end
412
+
413
+ def self.field_remappings
414
+ @field_remappings = {}
415
+ end
416
+ end
417
+
418
+ class BillingDetails < ::Stripe::StripeObject
419
+ class Address < ::Stripe::StripeObject
420
+ # City, district, suburb, town, or village.
421
+ attr_reader :city
422
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
423
+ attr_reader :country
424
+ # Address line 1, such as the street, PO Box, or company name.
425
+ attr_reader :line1
426
+ # Address line 2, such as the apartment, suite, unit, or building.
427
+ attr_reader :line2
428
+ # ZIP or postal code.
429
+ attr_reader :postal_code
430
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
431
+ attr_reader :state
432
+
433
+ def self.inner_class_types
434
+ @inner_class_types = {}
435
+ end
436
+
437
+ def self.field_remappings
438
+ @field_remappings = {}
439
+ end
440
+ end
441
+ # A representation of a physical address.
442
+ attr_reader :address
443
+ # The billing email associated with the method of payment.
444
+ attr_reader :email
445
+ # The billing name associated with the method of payment.
446
+ attr_reader :name
447
+ # The billing phone number associated with the method of payment.
448
+ attr_reader :phone
449
+
450
+ def self.inner_class_types
451
+ @inner_class_types = { address: Address }
452
+ end
453
+
454
+ def self.field_remappings
455
+ @field_remappings = {}
456
+ end
457
+ end
458
+
459
+ class Blik < ::Stripe::StripeObject
460
+ # A unique and immutable identifier assigned by BLIK to every buyer.
461
+ attr_reader :buyer_id
462
+
463
+ def self.inner_class_types
464
+ @inner_class_types = {}
465
+ end
466
+
467
+ def self.field_remappings
468
+ @field_remappings = {}
469
+ end
470
+ end
471
+
472
+ class Boleto < ::Stripe::StripeObject
473
+ # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
474
+ attr_reader :tax_id
475
+
476
+ def self.inner_class_types
477
+ @inner_class_types = {}
478
+ end
479
+
480
+ def self.field_remappings
481
+ @field_remappings = {}
482
+ end
483
+ end
484
+
485
+ class Card < ::Stripe::StripeObject
486
+ class Checks < ::Stripe::StripeObject
487
+ # If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
488
+ attr_reader :address_line1_check
489
+ # If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
490
+ attr_reader :address_postal_code_check
491
+ # If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
492
+ attr_reader :cvc_check
493
+
494
+ def self.inner_class_types
495
+ @inner_class_types = {}
496
+ end
497
+
498
+ def self.field_remappings
499
+ @field_remappings = {}
500
+ end
501
+ end
502
+
503
+ class Installments < ::Stripe::StripeObject
504
+ class Plan < ::Stripe::StripeObject
505
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
506
+ attr_reader :count
507
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. One of `month`.
508
+ attr_reader :interval
509
+ # Type of installment plan, one of `fixed_count`, `revolving`, or `bonus`.
510
+ attr_reader :type
511
+
512
+ def self.inner_class_types
513
+ @inner_class_types = {}
514
+ end
515
+
516
+ def self.field_remappings
517
+ @field_remappings = {}
518
+ end
519
+ end
520
+ # Installment plan selected for the payment.
521
+ attr_reader :plan
522
+
523
+ def self.inner_class_types
524
+ @inner_class_types = { plan: Plan }
525
+ end
526
+
527
+ def self.field_remappings
528
+ @field_remappings = {}
529
+ end
530
+ end
531
+
532
+ class NetworkToken < ::Stripe::StripeObject
533
+ # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
534
+ attr_reader :used
535
+
536
+ def self.inner_class_types
537
+ @inner_class_types = {}
538
+ end
539
+
540
+ def self.field_remappings
541
+ @field_remappings = {}
542
+ end
543
+ end
544
+
545
+ class ThreeDSecure < ::Stripe::StripeObject
546
+ # For authenticated transactions: Indicates how the issuing bank authenticated the customer.
547
+ attr_reader :authentication_flow
548
+ # The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
549
+ attr_reader :cryptogram
550
+ # The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
551
+ attr_reader :electronic_commerce_indicator
552
+ # The exemption requested via 3DS and accepted by the issuer at authentication time.
553
+ attr_reader :exemption_indicator
554
+ # Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on the outcome of Stripe's internal risk assessment.
555
+ attr_reader :exemption_indicator_applied
556
+ # Indicates the outcome of 3D Secure authentication.
557
+ attr_reader :result
558
+ # Additional information about why 3D Secure succeeded or failed, based on the `result`.
559
+ attr_reader :result_reason
560
+ # The version of 3D Secure that was used.
561
+ attr_reader :version
562
+
563
+ def self.inner_class_types
564
+ @inner_class_types = {}
565
+ end
566
+
567
+ def self.field_remappings
568
+ @field_remappings = {}
569
+ end
570
+ end
571
+
572
+ class Wallet < ::Stripe::StripeObject
573
+ class ApplePay < ::Stripe::StripeObject
574
+ # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`.
575
+ attr_reader :type
576
+
577
+ def self.inner_class_types
578
+ @inner_class_types = {}
579
+ end
580
+
581
+ def self.field_remappings
582
+ @field_remappings = {}
583
+ end
584
+ end
585
+
586
+ class GooglePay < ::Stripe::StripeObject
587
+ def self.inner_class_types
588
+ @inner_class_types = {}
589
+ end
590
+
591
+ def self.field_remappings
592
+ @field_remappings = {}
593
+ end
594
+ end
595
+ # Attribute for field apple_pay
596
+ attr_reader :apple_pay
597
+ # (For tokenized numbers only.) The last four digits of the device account number.
598
+ attr_reader :dynamic_last4
599
+ # Attribute for field google_pay
600
+ attr_reader :google_pay
601
+ # 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.
602
+ attr_reader :type
603
+
604
+ def self.inner_class_types
605
+ @inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay }
606
+ end
607
+
608
+ def self.field_remappings
609
+ @field_remappings = {}
610
+ end
611
+ end
612
+ # The authorization code of the payment.
613
+ attr_reader :authorization_code
614
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
615
+ attr_reader :brand
616
+ # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
617
+ attr_reader :capture_before
618
+ # Check results by Card networks on Card address and CVC at time of payment.
619
+ attr_reader :checks
620
+ # 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.
621
+ attr_reader :country
622
+ # A high-level description of the type of cards issued in this range.
623
+ attr_reader :description
624
+ # Two-digit number representing the card's expiration month.
625
+ attr_reader :exp_month
626
+ # Four-digit number representing the card's expiration year.
627
+ attr_reader :exp_year
628
+ # 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.
629
+ #
630
+ # *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.*
631
+ attr_reader :fingerprint
632
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
633
+ attr_reader :funding
634
+ # Issuer identification number of the card.
635
+ attr_reader :iin
636
+ # Installment details for this payment.
637
+ attr_reader :installments
638
+ # The name of the card's issuing bank.
639
+ attr_reader :issuer
640
+ # The last four digits of the card.
641
+ attr_reader :last4
642
+ # True if this payment was marked as MOTO and out of scope for SCA.
643
+ attr_reader :moto
644
+ # 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`.
645
+ attr_reader :network
646
+ # Advice code from the card network for the failed payment.
647
+ attr_reader :network_advice_code
648
+ # Decline code from the card network for the failed payment.
649
+ attr_reader :network_decline_code
650
+ # If this card has network token credentials, this contains the details of the network token credentials.
651
+ attr_reader :network_token
652
+ # 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.
653
+ attr_reader :network_transaction_id
654
+ # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`.
655
+ attr_reader :stored_credential_usage
656
+ # Populated if this transaction used 3D Secure authentication.
657
+ attr_reader :three_d_secure
658
+ # If this Card is part of a card wallet, this contains the details of the card wallet.
659
+ attr_reader :wallet
660
+
661
+ def self.inner_class_types
662
+ @inner_class_types = {
663
+ checks: Checks,
664
+ installments: Installments,
665
+ network_token: NetworkToken,
666
+ three_d_secure: ThreeDSecure,
667
+ wallet: Wallet,
668
+ }
669
+ end
670
+
671
+ def self.field_remappings
672
+ @field_remappings = {}
673
+ end
674
+ end
675
+
676
+ class CardPresent < ::Stripe::StripeObject
677
+ class Offline < ::Stripe::StripeObject
678
+ # Time at which the payment was collected while offline
679
+ attr_reader :stored_at
680
+ # The method used to process this payment method offline. Only deferred is allowed.
681
+ attr_reader :type
682
+
683
+ def self.inner_class_types
684
+ @inner_class_types = {}
685
+ end
686
+
687
+ def self.field_remappings
688
+ @field_remappings = {}
689
+ end
690
+ end
691
+
692
+ class Receipt < ::Stripe::StripeObject
693
+ # The type of account being debited or credited
694
+ attr_reader :account_type
695
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
696
+ attr_reader :application_cryptogram
697
+ # 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.
698
+ attr_reader :application_preferred_name
699
+ # Identifier for this transaction.
700
+ attr_reader :authorization_code
701
+ # EMV tag 8A. A code returned by the card issuer.
702
+ attr_reader :authorization_response_code
703
+ # 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`.
704
+ attr_reader :cardholder_verification_method
705
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
706
+ attr_reader :dedicated_file_name
707
+ # 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.
708
+ attr_reader :terminal_verification_results
709
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
710
+ attr_reader :transaction_status_information
711
+
712
+ def self.inner_class_types
713
+ @inner_class_types = {}
714
+ end
715
+
716
+ def self.field_remappings
717
+ @field_remappings = {}
718
+ end
719
+ end
720
+
721
+ class Wallet < ::Stripe::StripeObject
722
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
723
+ attr_reader :type
724
+
725
+ def self.inner_class_types
726
+ @inner_class_types = {}
727
+ end
728
+
729
+ def self.field_remappings
730
+ @field_remappings = {}
731
+ end
732
+ end
733
+ # The authorized amount
734
+ attr_reader :amount_authorized
735
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
736
+ attr_reader :brand
737
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
738
+ attr_reader :brand_product
739
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
740
+ attr_reader :capture_before
741
+ # 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.
742
+ attr_reader :cardholder_name
743
+ # 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.
744
+ attr_reader :country
745
+ # 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.)
746
+ attr_reader :description
747
+ # Authorization response cryptogram.
748
+ attr_reader :emv_auth_data
749
+ # Two-digit number representing the card's expiration month.
750
+ attr_reader :exp_month
751
+ # Four-digit number representing the card's expiration year.
752
+ attr_reader :exp_year
753
+ # 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.
754
+ #
755
+ # *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.*
756
+ attr_reader :fingerprint
757
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
758
+ attr_reader :funding
759
+ # 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.
760
+ attr_reader :generated_card
761
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
762
+ attr_reader :iin
763
+ # 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).
764
+ attr_reader :incremental_authorization_supported
765
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
766
+ attr_reader :issuer
767
+ # The last four digits of the card.
768
+ attr_reader :last4
769
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
770
+ attr_reader :location
771
+ # 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`.
772
+ attr_reader :network
773
+ # 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.
774
+ attr_reader :network_transaction_id
775
+ # Details about payments collected offline.
776
+ attr_reader :offline
777
+ # Defines whether the authorized amount can be over-captured or not
778
+ attr_reader :overcapture_supported
779
+ # 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.
780
+ attr_reader :preferred_locales
781
+ # How card details were read in this transaction.
782
+ attr_reader :read_method
783
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
784
+ attr_reader :reader
785
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
786
+ attr_reader :receipt
787
+ # Attribute for field wallet
788
+ attr_reader :wallet
789
+
790
+ def self.inner_class_types
791
+ @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
792
+ end
793
+
794
+ def self.field_remappings
795
+ @field_remappings = {}
796
+ end
797
+ end
798
+
799
+ class Cashapp < ::Stripe::StripeObject
800
+ # A unique and immutable identifier assigned by Cash App to every buyer.
801
+ attr_reader :buyer_id
802
+ # A public identifier for buyers using Cash App.
803
+ attr_reader :cashtag
804
+ # A unique and immutable identifier of payments assigned by Cash App.
805
+ attr_reader :transaction_id
806
+
807
+ def self.inner_class_types
808
+ @inner_class_types = {}
809
+ end
810
+
811
+ def self.field_remappings
812
+ @field_remappings = {}
813
+ end
814
+ end
815
+
816
+ class Crypto < ::Stripe::StripeObject
817
+ # The wallet address of the customer.
818
+ attr_reader :buyer_address
819
+ # The blockchain network that the transaction was sent on.
820
+ attr_reader :network
821
+ # The token currency that the transaction was sent with.
822
+ attr_reader :token_currency
823
+ # The blockchain transaction hash of the crypto payment.
824
+ attr_reader :transaction_hash
825
+
826
+ def self.inner_class_types
827
+ @inner_class_types = {}
828
+ end
829
+
830
+ def self.field_remappings
831
+ @field_remappings = {}
832
+ end
833
+ end
834
+
835
+ class Custom < ::Stripe::StripeObject
836
+ # Display name for the custom (user-defined) payment method type used to make this payment.
837
+ attr_reader :display_name
838
+ # The custom payment method type associated with this payment.
839
+ attr_reader :type
840
+
841
+ def self.inner_class_types
842
+ @inner_class_types = {}
843
+ end
844
+
845
+ def self.field_remappings
846
+ @field_remappings = {}
847
+ end
848
+ end
849
+
850
+ class CustomerBalance < ::Stripe::StripeObject
851
+ def self.inner_class_types
852
+ @inner_class_types = {}
853
+ end
854
+
855
+ def self.field_remappings
856
+ @field_remappings = {}
857
+ end
858
+ end
859
+
860
+ class Eps < ::Stripe::StripeObject
861
+ # 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`.
862
+ attr_reader :bank
863
+ # Owner's verified full name. Values are verified or provided by EPS directly
864
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
865
+ # EPS rarely provides this information so the attribute is usually empty.
866
+ attr_reader :verified_name
867
+
868
+ def self.inner_class_types
869
+ @inner_class_types = {}
870
+ end
871
+
872
+ def self.field_remappings
873
+ @field_remappings = {}
874
+ end
875
+ end
876
+
877
+ class Fpx < ::Stripe::StripeObject
878
+ # Account holder type, if provided. Can be one of `individual` or `company`.
879
+ attr_reader :account_holder_type
880
+ # 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`.
881
+ attr_reader :bank
882
+ # Unique transaction id generated by FPX for every request from the merchant
883
+ attr_reader :transaction_id
884
+
885
+ def self.inner_class_types
886
+ @inner_class_types = {}
887
+ end
888
+
889
+ def self.field_remappings
890
+ @field_remappings = {}
891
+ end
892
+ end
893
+
894
+ class Giropay < ::Stripe::StripeObject
895
+ # Bank code of bank associated with the bank account.
896
+ attr_reader :bank_code
897
+ # Name of the bank associated with the bank account.
898
+ attr_reader :bank_name
899
+ # Bank Identifier Code of the bank associated with the bank account.
900
+ attr_reader :bic
901
+ # 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.
902
+ attr_reader :verified_name
903
+
904
+ def self.inner_class_types
905
+ @inner_class_types = {}
906
+ end
907
+
908
+ def self.field_remappings
909
+ @field_remappings = {}
910
+ end
911
+ end
912
+
913
+ class Grabpay < ::Stripe::StripeObject
914
+ # Unique transaction id generated by GrabPay
915
+ attr_reader :transaction_id
916
+
917
+ def self.inner_class_types
918
+ @inner_class_types = {}
919
+ end
920
+
921
+ def self.field_remappings
922
+ @field_remappings = {}
923
+ end
924
+ end
925
+
926
+ class Ideal < ::Stripe::StripeObject
927
+ # 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`.
928
+ attr_reader :bank
929
+ # The Bank Identifier Code of the customer's bank.
930
+ attr_reader :bic
931
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
932
+ attr_reader :generated_sepa_debit
933
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
934
+ attr_reader :generated_sepa_debit_mandate
935
+ # Last four characters of the IBAN.
936
+ attr_reader :iban_last4
937
+ # Unique transaction ID generated by iDEAL.
938
+ attr_reader :transaction_id
939
+ # 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.
940
+ attr_reader :verified_name
941
+
942
+ def self.inner_class_types
943
+ @inner_class_types = {}
944
+ end
945
+
946
+ def self.field_remappings
947
+ @field_remappings = {}
948
+ end
949
+ end
950
+
951
+ class InteracPresent < ::Stripe::StripeObject
952
+ class Receipt < ::Stripe::StripeObject
953
+ # The type of account being debited or credited
954
+ attr_reader :account_type
955
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
956
+ attr_reader :application_cryptogram
957
+ # 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.
958
+ attr_reader :application_preferred_name
959
+ # Identifier for this transaction.
960
+ attr_reader :authorization_code
961
+ # EMV tag 8A. A code returned by the card issuer.
962
+ attr_reader :authorization_response_code
963
+ # 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`.
964
+ attr_reader :cardholder_verification_method
965
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
966
+ attr_reader :dedicated_file_name
967
+ # 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.
968
+ attr_reader :terminal_verification_results
969
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
970
+ attr_reader :transaction_status_information
971
+
972
+ def self.inner_class_types
973
+ @inner_class_types = {}
974
+ end
975
+
976
+ def self.field_remappings
977
+ @field_remappings = {}
978
+ end
979
+ end
980
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
981
+ attr_reader :brand
982
+ # 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.
983
+ attr_reader :cardholder_name
984
+ # 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.
985
+ attr_reader :country
986
+ # 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.)
987
+ attr_reader :description
988
+ # Authorization response cryptogram.
989
+ attr_reader :emv_auth_data
990
+ # Two-digit number representing the card's expiration month.
991
+ attr_reader :exp_month
992
+ # Four-digit number representing the card's expiration year.
993
+ attr_reader :exp_year
994
+ # 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.
995
+ #
996
+ # *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.*
997
+ attr_reader :fingerprint
998
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
999
+ attr_reader :funding
1000
+ # 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.
1001
+ attr_reader :generated_card
1002
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
1003
+ attr_reader :iin
1004
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
1005
+ attr_reader :issuer
1006
+ # The last four digits of the card.
1007
+ attr_reader :last4
1008
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1009
+ attr_reader :location
1010
+ # 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`.
1011
+ attr_reader :network
1012
+ # 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.
1013
+ attr_reader :network_transaction_id
1014
+ # 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.
1015
+ attr_reader :preferred_locales
1016
+ # How card details were read in this transaction.
1017
+ attr_reader :read_method
1018
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1019
+ attr_reader :reader
1020
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
1021
+ attr_reader :receipt
1022
+
1023
+ def self.inner_class_types
1024
+ @inner_class_types = { receipt: Receipt }
1025
+ end
1026
+
1027
+ def self.field_remappings
1028
+ @field_remappings = {}
1029
+ end
1030
+ end
1031
+
1032
+ class KakaoPay < ::Stripe::StripeObject
1033
+ # A unique identifier for the buyer as determined by the local payment processor.
1034
+ attr_reader :buyer_id
1035
+ # The Kakao Pay transaction ID associated with this payment.
1036
+ attr_reader :transaction_id
1037
+
1038
+ def self.inner_class_types
1039
+ @inner_class_types = {}
1040
+ end
1041
+
1042
+ def self.field_remappings
1043
+ @field_remappings = {}
1044
+ end
1045
+ end
1046
+
1047
+ class Klarna < ::Stripe::StripeObject
1048
+ class PayerDetails < ::Stripe::StripeObject
1049
+ class Address < ::Stripe::StripeObject
1050
+ # The payer address country
1051
+ attr_reader :country
1052
+
1053
+ def self.inner_class_types
1054
+ @inner_class_types = {}
1055
+ end
1056
+
1057
+ def self.field_remappings
1058
+ @field_remappings = {}
1059
+ end
1060
+ end
1061
+ # The payer's address
1062
+ attr_reader :address
1063
+
1064
+ def self.inner_class_types
1065
+ @inner_class_types = { address: Address }
1066
+ end
1067
+
1068
+ def self.field_remappings
1069
+ @field_remappings = {}
1070
+ end
1071
+ end
1072
+ # The payer details for this transaction.
1073
+ attr_reader :payer_details
1074
+ # The Klarna payment method used for this transaction.
1075
+ # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
1076
+ attr_reader :payment_method_category
1077
+ # Preferred language of the Klarna authorization page that the customer is redirected to.
1078
+ # 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`
1079
+ attr_reader :preferred_locale
1080
+
1081
+ def self.inner_class_types
1082
+ @inner_class_types = { payer_details: PayerDetails }
1083
+ end
1084
+
1085
+ def self.field_remappings
1086
+ @field_remappings = {}
1087
+ end
1088
+ end
1089
+
1090
+ class Konbini < ::Stripe::StripeObject
1091
+ class Store < ::Stripe::StripeObject
1092
+ # The name of the convenience store chain where the payment was completed.
1093
+ attr_reader :chain
1094
+
1095
+ def self.inner_class_types
1096
+ @inner_class_types = {}
1097
+ end
1098
+
1099
+ def self.field_remappings
1100
+ @field_remappings = {}
1101
+ end
1102
+ end
1103
+ # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
1104
+ attr_reader :store
1105
+
1106
+ def self.inner_class_types
1107
+ @inner_class_types = { store: Store }
1108
+ end
1109
+
1110
+ def self.field_remappings
1111
+ @field_remappings = {}
1112
+ end
1113
+ end
1114
+
1115
+ class KrCard < ::Stripe::StripeObject
1116
+ # The local credit or debit card brand.
1117
+ attr_reader :brand
1118
+ # A unique identifier for the buyer as determined by the local payment processor.
1119
+ attr_reader :buyer_id
1120
+ # The last four digits of the card. This may not be present for American Express cards.
1121
+ attr_reader :last4
1122
+ # The Korean Card transaction ID associated with this payment.
1123
+ attr_reader :transaction_id
1124
+
1125
+ def self.inner_class_types
1126
+ @inner_class_types = {}
1127
+ end
1128
+
1129
+ def self.field_remappings
1130
+ @field_remappings = {}
1131
+ end
1132
+ end
1133
+
1134
+ class Link < ::Stripe::StripeObject
1135
+ # Two-letter ISO code representing the funding source country beneath the Link payment.
1136
+ # You could use this attribute to get a sense of international fees.
1137
+ attr_reader :country
1138
+
1139
+ def self.inner_class_types
1140
+ @inner_class_types = {}
1141
+ end
1142
+
1143
+ def self.field_remappings
1144
+ @field_remappings = {}
1145
+ end
1146
+ end
1147
+
1148
+ class MbWay < ::Stripe::StripeObject
1149
+ def self.inner_class_types
1150
+ @inner_class_types = {}
1151
+ end
1152
+
1153
+ def self.field_remappings
1154
+ @field_remappings = {}
1155
+ end
1156
+ end
1157
+
1158
+ class Mobilepay < ::Stripe::StripeObject
1159
+ class Card < ::Stripe::StripeObject
1160
+ # Brand of the card used in the transaction
1161
+ attr_reader :brand
1162
+ # Two-letter ISO code representing the country of the card
1163
+ attr_reader :country
1164
+ # Two digit number representing the card's expiration month
1165
+ attr_reader :exp_month
1166
+ # Two digit number representing the card's expiration year
1167
+ attr_reader :exp_year
1168
+ # The last 4 digits of the card
1169
+ attr_reader :last4
1170
+
1171
+ def self.inner_class_types
1172
+ @inner_class_types = {}
1173
+ end
1174
+
1175
+ def self.field_remappings
1176
+ @field_remappings = {}
1177
+ end
1178
+ end
1179
+ # Internal card details
1180
+ attr_reader :card
1181
+
1182
+ def self.inner_class_types
1183
+ @inner_class_types = { card: Card }
1184
+ end
1185
+
1186
+ def self.field_remappings
1187
+ @field_remappings = {}
1188
+ end
1189
+ end
1190
+
1191
+ class Multibanco < ::Stripe::StripeObject
1192
+ # Entity number associated with this Multibanco payment.
1193
+ attr_reader :entity
1194
+ # Reference number associated with this Multibanco payment.
1195
+ attr_reader :reference
1196
+
1197
+ def self.inner_class_types
1198
+ @inner_class_types = {}
1199
+ end
1200
+
1201
+ def self.field_remappings
1202
+ @field_remappings = {}
1203
+ end
1204
+ end
1205
+
1206
+ class NaverPay < ::Stripe::StripeObject
1207
+ # A unique identifier for the buyer as determined by the local payment processor.
1208
+ attr_reader :buyer_id
1209
+ # The Naver Pay transaction ID associated with this payment.
1210
+ attr_reader :transaction_id
1211
+
1212
+ def self.inner_class_types
1213
+ @inner_class_types = {}
1214
+ end
1215
+
1216
+ def self.field_remappings
1217
+ @field_remappings = {}
1218
+ end
1219
+ end
1220
+
1221
+ class NzBankAccount < ::Stripe::StripeObject
1222
+ # 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.
1223
+ attr_reader :account_holder_name
1224
+ # The numeric code for the bank account's bank.
1225
+ attr_reader :bank_code
1226
+ # The name of the bank.
1227
+ attr_reader :bank_name
1228
+ # The numeric code for the bank account's bank branch.
1229
+ attr_reader :branch_code
1230
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1231
+ attr_reader :expected_debit_date
1232
+ # Last four digits of the bank account number.
1233
+ attr_reader :last4
1234
+ # The suffix of the bank account number.
1235
+ attr_reader :suffix
1236
+
1237
+ def self.inner_class_types
1238
+ @inner_class_types = {}
1239
+ end
1240
+
1241
+ def self.field_remappings
1242
+ @field_remappings = {}
1243
+ end
1244
+ end
1245
+
1246
+ class Oxxo < ::Stripe::StripeObject
1247
+ # OXXO reference number
1248
+ attr_reader :number
1249
+
1250
+ def self.inner_class_types
1251
+ @inner_class_types = {}
1252
+ end
1253
+
1254
+ def self.field_remappings
1255
+ @field_remappings = {}
1256
+ end
1257
+ end
1258
+
1259
+ class P24 < ::Stripe::StripeObject
1260
+ # 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`.
1261
+ attr_reader :bank
1262
+ # Unique reference for this Przelewy24 payment.
1263
+ attr_reader :reference
1264
+ # Owner's verified full name. Values are verified or provided by Przelewy24 directly
1265
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1266
+ # Przelewy24 rarely provides this information so the attribute is usually empty.
1267
+ attr_reader :verified_name
1268
+
1269
+ def self.inner_class_types
1270
+ @inner_class_types = {}
1271
+ end
1272
+
1273
+ def self.field_remappings
1274
+ @field_remappings = {}
1275
+ end
1276
+ end
1277
+
1278
+ class PayByBank < ::Stripe::StripeObject
1279
+ def self.inner_class_types
1280
+ @inner_class_types = {}
1281
+ end
1282
+
1283
+ def self.field_remappings
1284
+ @field_remappings = {}
1285
+ end
1286
+ end
1287
+
1288
+ class Payco < ::Stripe::StripeObject
1289
+ # A unique identifier for the buyer as determined by the local payment processor.
1290
+ attr_reader :buyer_id
1291
+ # The Payco transaction ID associated with this payment.
1292
+ attr_reader :transaction_id
1293
+
1294
+ def self.inner_class_types
1295
+ @inner_class_types = {}
1296
+ end
1297
+
1298
+ def self.field_remappings
1299
+ @field_remappings = {}
1300
+ end
1301
+ end
1302
+
1303
+ class Paynow < ::Stripe::StripeObject
1304
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1305
+ attr_reader :location
1306
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1307
+ attr_reader :reader
1308
+ # Reference number associated with this PayNow payment
1309
+ attr_reader :reference
1310
+
1311
+ def self.inner_class_types
1312
+ @inner_class_types = {}
1313
+ end
1314
+
1315
+ def self.field_remappings
1316
+ @field_remappings = {}
1317
+ end
1318
+ end
1319
+
1320
+ class Paypal < ::Stripe::StripeObject
1321
+ class SellerProtection < ::Stripe::StripeObject
1322
+ # An array of conditions that are covered for the transaction, if applicable.
1323
+ attr_reader :dispute_categories
1324
+ # Indicates whether the transaction is eligible for PayPal's seller protection.
1325
+ attr_reader :status
1326
+
1327
+ def self.inner_class_types
1328
+ @inner_class_types = {}
1329
+ end
1330
+
1331
+ def self.field_remappings
1332
+ @field_remappings = {}
1333
+ end
1334
+ end
1335
+ # 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.
1336
+ attr_reader :country
1337
+ # Owner's email. Values are provided by PayPal directly
1338
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1339
+ attr_reader :payer_email
1340
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1341
+ attr_reader :payer_id
1342
+ # Owner's full name. Values provided by PayPal directly
1343
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1344
+ attr_reader :payer_name
1345
+ # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
1346
+ attr_reader :seller_protection
1347
+ # A unique ID generated by PayPal for this transaction.
1348
+ attr_reader :transaction_id
1349
+
1350
+ def self.inner_class_types
1351
+ @inner_class_types = { seller_protection: SellerProtection }
1352
+ end
1353
+
1354
+ def self.field_remappings
1355
+ @field_remappings = {}
1356
+ end
1357
+ end
1358
+
1359
+ class Payto < ::Stripe::StripeObject
1360
+ # Bank-State-Branch number of the bank account.
1361
+ attr_reader :bsb_number
1362
+ # Last four digits of the bank account number.
1363
+ attr_reader :last4
1364
+ # ID of the mandate used to make this payment.
1365
+ attr_reader :mandate
1366
+ # The PayID alias for the bank account.
1367
+ attr_reader :pay_id
1368
+
1369
+ def self.inner_class_types
1370
+ @inner_class_types = {}
1371
+ end
1372
+
1373
+ def self.field_remappings
1374
+ @field_remappings = {}
1375
+ end
1376
+ end
1377
+
1378
+ class Pix < ::Stripe::StripeObject
1379
+ # Unique transaction id generated by BCB
1380
+ attr_reader :bank_transaction_id
1381
+
1382
+ def self.inner_class_types
1383
+ @inner_class_types = {}
1384
+ end
1385
+
1386
+ def self.field_remappings
1387
+ @field_remappings = {}
1388
+ end
1389
+ end
1390
+
1391
+ class Promptpay < ::Stripe::StripeObject
1392
+ # Bill reference generated by PromptPay
1393
+ attr_reader :reference
1394
+
1395
+ def self.inner_class_types
1396
+ @inner_class_types = {}
1397
+ end
1398
+
1399
+ def self.field_remappings
1400
+ @field_remappings = {}
1401
+ end
1402
+ end
1403
+
1404
+ class RevolutPay < ::Stripe::StripeObject
1405
+ class Funding < ::Stripe::StripeObject
1406
+ class Card < ::Stripe::StripeObject
1407
+ # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
1408
+ attr_reader :brand
1409
+ # 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.
1410
+ attr_reader :country
1411
+ # Two-digit number representing the card's expiration month.
1412
+ attr_reader :exp_month
1413
+ # Four-digit number representing the card's expiration year.
1414
+ attr_reader :exp_year
1415
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
1416
+ attr_reader :funding
1417
+ # The last four digits of the card.
1418
+ attr_reader :last4
1419
+
1420
+ def self.inner_class_types
1421
+ @inner_class_types = {}
1422
+ end
1423
+
1424
+ def self.field_remappings
1425
+ @field_remappings = {}
1426
+ end
1427
+ end
1428
+ # Attribute for field card
1429
+ attr_reader :card
1430
+ # funding type of the underlying payment method.
1431
+ attr_reader :type
1432
+
1433
+ def self.inner_class_types
1434
+ @inner_class_types = { card: Card }
1435
+ end
1436
+
1437
+ def self.field_remappings
1438
+ @field_remappings = {}
1439
+ end
1440
+ end
1441
+ # Attribute for field funding
1442
+ attr_reader :funding
1443
+ # The Revolut Pay transaction ID associated with this payment.
1444
+ attr_reader :transaction_id
1445
+
1446
+ def self.inner_class_types
1447
+ @inner_class_types = { funding: Funding }
1448
+ end
1449
+
1450
+ def self.field_remappings
1451
+ @field_remappings = {}
1452
+ end
1453
+ end
1454
+
1455
+ class SamsungPay < ::Stripe::StripeObject
1456
+ # A unique identifier for the buyer as determined by the local payment processor.
1457
+ attr_reader :buyer_id
1458
+ # The Samsung Pay transaction ID associated with this payment.
1459
+ attr_reader :transaction_id
1460
+
1461
+ def self.inner_class_types
1462
+ @inner_class_types = {}
1463
+ end
1464
+
1465
+ def self.field_remappings
1466
+ @field_remappings = {}
1467
+ end
1468
+ end
1469
+
1470
+ class Satispay < ::Stripe::StripeObject
1471
+ # The Satispay transaction ID associated with this payment.
1472
+ attr_reader :transaction_id
1473
+
1474
+ def self.inner_class_types
1475
+ @inner_class_types = {}
1476
+ end
1477
+
1478
+ def self.field_remappings
1479
+ @field_remappings = {}
1480
+ end
1481
+ end
1482
+
1483
+ class SepaCreditTransfer < ::Stripe::StripeObject
1484
+ # Name of the bank associated with the bank account.
1485
+ attr_reader :bank_name
1486
+ # Bank Identifier Code of the bank associated with the bank account.
1487
+ attr_reader :bic
1488
+ # IBAN of the bank account to transfer funds to.
1489
+ attr_reader :iban
1490
+
1491
+ def self.inner_class_types
1492
+ @inner_class_types = {}
1493
+ end
1494
+
1495
+ def self.field_remappings
1496
+ @field_remappings = {}
1497
+ end
1498
+ end
1499
+
1500
+ class SepaDebit < ::Stripe::StripeObject
1501
+ # Bank code of bank associated with the bank account.
1502
+ attr_reader :bank_code
1503
+ # Branch code of bank associated with the bank account.
1504
+ attr_reader :branch_code
1505
+ # Two-letter ISO code representing the country the bank account is located in.
1506
+ attr_reader :country
1507
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1508
+ attr_reader :expected_debit_date
1509
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1510
+ attr_reader :fingerprint
1511
+ # Last four characters of the IBAN.
1512
+ attr_reader :last4
1513
+ # 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).
1514
+ attr_reader :mandate
1515
+
1516
+ def self.inner_class_types
1517
+ @inner_class_types = {}
1518
+ end
1519
+
1520
+ def self.field_remappings
1521
+ @field_remappings = {}
1522
+ end
1523
+ end
1524
+
1525
+ class Sofort < ::Stripe::StripeObject
1526
+ # Bank code of bank associated with the bank account.
1527
+ attr_reader :bank_code
1528
+ # Name of the bank associated with the bank account.
1529
+ attr_reader :bank_name
1530
+ # Bank Identifier Code of the bank associated with the bank account.
1531
+ attr_reader :bic
1532
+ # Two-letter ISO code representing the country the bank account is located in.
1533
+ attr_reader :country
1534
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1535
+ attr_reader :generated_sepa_debit
1536
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1537
+ attr_reader :generated_sepa_debit_mandate
1538
+ # Last four characters of the IBAN.
1539
+ attr_reader :iban_last4
1540
+ # 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`
1541
+ attr_reader :preferred_language
1542
+ # 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.
1543
+ attr_reader :verified_name
1544
+
1545
+ def self.inner_class_types
1546
+ @inner_class_types = {}
1547
+ end
1548
+
1549
+ def self.field_remappings
1550
+ @field_remappings = {}
1551
+ end
1552
+ end
1553
+
1554
+ class StripeAccount < ::Stripe::StripeObject
1555
+ def self.inner_class_types
1556
+ @inner_class_types = {}
1557
+ end
1558
+
1559
+ def self.field_remappings
1560
+ @field_remappings = {}
1561
+ end
1562
+ end
1563
+
1564
+ class Swish < ::Stripe::StripeObject
1565
+ # 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
1566
+ attr_reader :fingerprint
1567
+ # Payer bank reference number for the payment
1568
+ attr_reader :payment_reference
1569
+ # The last four digits of the Swish account phone number
1570
+ attr_reader :verified_phone_last4
1571
+
1572
+ def self.inner_class_types
1573
+ @inner_class_types = {}
1574
+ end
1575
+
1576
+ def self.field_remappings
1577
+ @field_remappings = {}
1578
+ end
1579
+ end
1580
+
1581
+ class Twint < ::Stripe::StripeObject
1582
+ def self.inner_class_types
1583
+ @inner_class_types = {}
1584
+ end
1585
+
1586
+ def self.field_remappings
1587
+ @field_remappings = {}
1588
+ end
1589
+ end
1590
+
1591
+ class Upi < ::Stripe::StripeObject
1592
+ # Customer's unique Virtual Payment Address.
1593
+ attr_reader :vpa
1594
+
1595
+ def self.inner_class_types
1596
+ @inner_class_types = {}
1597
+ end
1598
+
1599
+ def self.field_remappings
1600
+ @field_remappings = {}
1601
+ end
1602
+ end
1603
+
1604
+ class UsBankAccount < ::Stripe::StripeObject
1605
+ # The type of entity that holds the account. This can be either 'individual' or 'company'.
1606
+ attr_reader :account_holder_type
1607
+ # The type of the bank account. This can be either 'checking' or 'savings'.
1608
+ attr_reader :account_type
1609
+ # Name of the bank associated with the bank account.
1610
+ attr_reader :bank_name
1611
+ # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
1612
+ attr_reader :expected_debit_date
1613
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1614
+ attr_reader :fingerprint
1615
+ # Last four digits of the bank account number.
1616
+ attr_reader :last4
1617
+ # ID of the mandate used to make this payment.
1618
+ attr_reader :mandate
1619
+ # The ACH payment reference for this transaction.
1620
+ attr_reader :payment_reference
1621
+ # The routing number for the bank account.
1622
+ attr_reader :routing_number
1623
+
1624
+ def self.inner_class_types
1625
+ @inner_class_types = {}
1626
+ end
1627
+
1628
+ def self.field_remappings
1629
+ @field_remappings = {}
1630
+ end
1631
+ end
1632
+
1633
+ class Wechat < ::Stripe::StripeObject
1634
+ def self.inner_class_types
1635
+ @inner_class_types = {}
1636
+ end
1637
+
1638
+ def self.field_remappings
1639
+ @field_remappings = {}
1640
+ end
1641
+ end
1642
+
1643
+ class WechatPay < ::Stripe::StripeObject
1644
+ # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
1645
+ attr_reader :fingerprint
1646
+ # ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
1647
+ attr_reader :location
1648
+ # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1649
+ attr_reader :reader
1650
+ # Transaction ID of this particular WeChat Pay transaction.
1651
+ attr_reader :transaction_id
1652
+
1653
+ def self.inner_class_types
1654
+ @inner_class_types = {}
1655
+ end
1656
+
1657
+ def self.field_remappings
1658
+ @field_remappings = {}
1659
+ end
1660
+ end
1661
+
1662
+ class Zip < ::Stripe::StripeObject
1663
+ def self.inner_class_types
1664
+ @inner_class_types = {}
1665
+ end
1666
+
1667
+ def self.field_remappings
1668
+ @field_remappings = {}
1669
+ end
1670
+ end
1671
+ # Attribute for field ach_credit_transfer
1672
+ attr_reader :ach_credit_transfer
1673
+ # Attribute for field ach_debit
1674
+ attr_reader :ach_debit
1675
+ # Attribute for field acss_debit
1676
+ attr_reader :acss_debit
1677
+ # Attribute for field affirm
1678
+ attr_reader :affirm
1679
+ # Attribute for field afterpay_clearpay
1680
+ attr_reader :afterpay_clearpay
1681
+ # Attribute for field alipay
1682
+ attr_reader :alipay
1683
+ # Attribute for field alma
1684
+ attr_reader :alma
1685
+ # Attribute for field amazon_pay
1686
+ attr_reader :amazon_pay
1687
+ # Attribute for field au_becs_debit
1688
+ attr_reader :au_becs_debit
1689
+ # Attribute for field bacs_debit
1690
+ attr_reader :bacs_debit
1691
+ # Attribute for field bancontact
1692
+ attr_reader :bancontact
1693
+ # Attribute for field billie
1694
+ attr_reader :billie
1695
+ # The billing details associated with the method of payment.
1696
+ attr_reader :billing_details
1697
+ # Attribute for field blik
1698
+ attr_reader :blik
1699
+ # Attribute for field boleto
1700
+ attr_reader :boleto
1701
+ # Details of the card used for this payment attempt.
1702
+ attr_reader :card
1703
+ # Attribute for field card_present
1704
+ attr_reader :card_present
1705
+ # Attribute for field cashapp
1706
+ attr_reader :cashapp
1707
+ # Attribute for field crypto
1708
+ attr_reader :crypto
1709
+ # Custom Payment Methods represent Payment Method types not modeled directly in
1710
+ # the Stripe API. This resource consists of details about the custom payment method
1711
+ # used for this payment attempt.
1712
+ attr_reader :custom
1713
+ # Attribute for field customer_balance
1714
+ attr_reader :customer_balance
1715
+ # Attribute for field eps
1716
+ attr_reader :eps
1717
+ # Attribute for field fpx
1718
+ attr_reader :fpx
1719
+ # Attribute for field giropay
1720
+ attr_reader :giropay
1721
+ # Attribute for field grabpay
1722
+ attr_reader :grabpay
1723
+ # Attribute for field ideal
1724
+ attr_reader :ideal
1725
+ # Attribute for field interac_present
1726
+ attr_reader :interac_present
1727
+ # Attribute for field kakao_pay
1728
+ attr_reader :kakao_pay
1729
+ # Attribute for field klarna
1730
+ attr_reader :klarna
1731
+ # Attribute for field konbini
1732
+ attr_reader :konbini
1733
+ # Attribute for field kr_card
1734
+ attr_reader :kr_card
1735
+ # Attribute for field link
1736
+ attr_reader :link
1737
+ # Attribute for field mb_way
1738
+ attr_reader :mb_way
1739
+ # Attribute for field mobilepay
1740
+ attr_reader :mobilepay
1741
+ # Attribute for field multibanco
1742
+ attr_reader :multibanco
1743
+ # Attribute for field naver_pay
1744
+ attr_reader :naver_pay
1745
+ # Attribute for field nz_bank_account
1746
+ attr_reader :nz_bank_account
1747
+ # Attribute for field oxxo
1748
+ attr_reader :oxxo
1749
+ # Attribute for field p24
1750
+ attr_reader :p24
1751
+ # Attribute for field pay_by_bank
1752
+ attr_reader :pay_by_bank
1753
+ # Attribute for field payco
1754
+ attr_reader :payco
1755
+ # ID of the Stripe PaymentMethod used to make this payment.
1756
+ attr_reader :payment_method
1757
+ # Attribute for field paynow
1758
+ attr_reader :paynow
1759
+ # Attribute for field paypal
1760
+ attr_reader :paypal
1761
+ # Attribute for field payto
1762
+ attr_reader :payto
1763
+ # Attribute for field pix
1764
+ attr_reader :pix
1765
+ # Attribute for field promptpay
1766
+ attr_reader :promptpay
1767
+ # Attribute for field revolut_pay
1768
+ attr_reader :revolut_pay
1769
+ # Attribute for field samsung_pay
1770
+ attr_reader :samsung_pay
1771
+ # Attribute for field satispay
1772
+ attr_reader :satispay
1773
+ # Attribute for field sepa_credit_transfer
1774
+ attr_reader :sepa_credit_transfer
1775
+ # Attribute for field sepa_debit
1776
+ attr_reader :sepa_debit
1777
+ # Attribute for field sofort
1778
+ attr_reader :sofort
1779
+ # Attribute for field stripe_account
1780
+ attr_reader :stripe_account
1781
+ # Attribute for field swish
1782
+ attr_reader :swish
1783
+ # Attribute for field twint
1784
+ attr_reader :twint
1785
+ # 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.
1786
+ # An additional hash is included on `payment_method_details` with a name matching this value.
1787
+ # It contains information specific to the payment method.
1788
+ attr_reader :type
1789
+ # Attribute for field upi
1790
+ attr_reader :upi
1791
+ # Attribute for field us_bank_account
1792
+ attr_reader :us_bank_account
1793
+ # Attribute for field wechat
1794
+ attr_reader :wechat
1795
+ # Attribute for field wechat_pay
1796
+ attr_reader :wechat_pay
1797
+ # Attribute for field zip
1798
+ attr_reader :zip
1799
+
1800
+ def self.inner_class_types
1801
+ @inner_class_types = {
1802
+ ach_credit_transfer: AchCreditTransfer,
1803
+ ach_debit: AchDebit,
1804
+ acss_debit: AcssDebit,
1805
+ affirm: Affirm,
1806
+ afterpay_clearpay: AfterpayClearpay,
1807
+ alipay: Alipay,
1808
+ alma: Alma,
1809
+ amazon_pay: AmazonPay,
1810
+ au_becs_debit: AuBecsDebit,
1811
+ bacs_debit: BacsDebit,
1812
+ bancontact: Bancontact,
1813
+ billie: Billie,
1814
+ billing_details: BillingDetails,
1815
+ blik: Blik,
1816
+ boleto: Boleto,
1817
+ card: Card,
1818
+ card_present: CardPresent,
1819
+ cashapp: Cashapp,
1820
+ crypto: Crypto,
1821
+ custom: Custom,
1822
+ customer_balance: CustomerBalance,
1823
+ eps: Eps,
1824
+ fpx: Fpx,
1825
+ giropay: Giropay,
1826
+ grabpay: Grabpay,
1827
+ ideal: Ideal,
1828
+ interac_present: InteracPresent,
1829
+ kakao_pay: KakaoPay,
1830
+ klarna: Klarna,
1831
+ konbini: Konbini,
1832
+ kr_card: KrCard,
1833
+ link: Link,
1834
+ mb_way: MbWay,
1835
+ mobilepay: Mobilepay,
1836
+ multibanco: Multibanco,
1837
+ naver_pay: NaverPay,
1838
+ nz_bank_account: NzBankAccount,
1839
+ oxxo: Oxxo,
1840
+ p24: P24,
1841
+ pay_by_bank: PayByBank,
1842
+ payco: Payco,
1843
+ paynow: Paynow,
1844
+ paypal: Paypal,
1845
+ payto: Payto,
1846
+ pix: Pix,
1847
+ promptpay: Promptpay,
1848
+ revolut_pay: RevolutPay,
1849
+ samsung_pay: SamsungPay,
1850
+ satispay: Satispay,
1851
+ sepa_credit_transfer: SepaCreditTransfer,
1852
+ sepa_debit: SepaDebit,
1853
+ sofort: Sofort,
1854
+ stripe_account: StripeAccount,
1855
+ swish: Swish,
1856
+ twint: Twint,
1857
+ upi: Upi,
1858
+ us_bank_account: UsBankAccount,
1859
+ wechat: Wechat,
1860
+ wechat_pay: WechatPay,
1861
+ zip: Zip,
1862
+ }
1863
+ end
1864
+
1865
+ def self.field_remappings
1866
+ @field_remappings = {}
1867
+ end
1868
+ end
1869
+
1870
+ class ProcessorDetails < ::Stripe::StripeObject
1871
+ class Custom < ::Stripe::StripeObject
1872
+ # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
1873
+ attr_reader :payment_reference
1874
+
1875
+ def self.inner_class_types
1876
+ @inner_class_types = {}
1877
+ end
1878
+
1879
+ def self.field_remappings
1880
+ @field_remappings = {}
1881
+ end
1882
+ end
1883
+ # Custom processors represent payment processors not modeled directly in
1884
+ # the Stripe API. This resource consists of details about the custom processor
1885
+ # used for this payment attempt.
1886
+ attr_reader :custom
1887
+ # The processor used for this payment attempt.
1888
+ attr_reader :type
1889
+
1890
+ def self.inner_class_types
1891
+ @inner_class_types = { custom: Custom }
1892
+ end
1893
+
1894
+ def self.field_remappings
1895
+ @field_remappings = {}
1896
+ end
1897
+ end
1898
+
1899
+ class ShippingDetails < ::Stripe::StripeObject
1900
+ class Address < ::Stripe::StripeObject
1901
+ # City, district, suburb, town, or village.
1902
+ attr_reader :city
1903
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1904
+ attr_reader :country
1905
+ # Address line 1, such as the street, PO Box, or company name.
1906
+ attr_reader :line1
1907
+ # Address line 2, such as the apartment, suite, unit, or building.
1908
+ attr_reader :line2
1909
+ # ZIP or postal code.
1910
+ attr_reader :postal_code
1911
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1912
+ attr_reader :state
1913
+
1914
+ def self.inner_class_types
1915
+ @inner_class_types = {}
1916
+ end
1917
+
1918
+ def self.field_remappings
1919
+ @field_remappings = {}
1920
+ end
1921
+ end
1922
+ # A representation of a physical address.
1923
+ attr_reader :address
1924
+ # The shipping recipient's name.
1925
+ attr_reader :name
1926
+ # The shipping recipient's phone number.
1927
+ attr_reader :phone
1928
+
1929
+ def self.inner_class_types
1930
+ @inner_class_types = { address: Address }
1931
+ end
1932
+
1933
+ def self.field_remappings
1934
+ @field_remappings = {}
1935
+ end
1936
+ end
1937
+ # A representation of an amount of money, consisting of an amount and a currency.
1938
+ attr_reader :amount
1939
+ # A representation of an amount of money, consisting of an amount and a currency.
1940
+ attr_reader :amount_authorized
1941
+ # A representation of an amount of money, consisting of an amount and a currency.
1942
+ attr_reader :amount_canceled
1943
+ # A representation of an amount of money, consisting of an amount and a currency.
1944
+ attr_reader :amount_failed
1945
+ # A representation of an amount of money, consisting of an amount and a currency.
1946
+ attr_reader :amount_guaranteed
1947
+ # A representation of an amount of money, consisting of an amount and a currency.
1948
+ attr_reader :amount_refunded
1949
+ # A representation of an amount of money, consisting of an amount and a currency.
1950
+ attr_reader :amount_requested
1951
+ # ID of the Connect application that created the PaymentAttemptRecord.
1952
+ attr_reader :application
1953
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1954
+ attr_reader :created
1955
+ # Customer information for this payment.
1956
+ attr_reader :customer_details
1957
+ # Indicates whether the customer was present in your checkout flow during this payment.
1958
+ attr_reader :customer_presence
1959
+ # An arbitrary string attached to the object. Often useful for displaying to users.
1960
+ attr_reader :description
1961
+ # Unique identifier for the object.
1962
+ attr_reader :id
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
+ # ID of the Payment Record this Payment Attempt Record belongs to.
1972
+ attr_reader :payment_record
1973
+ # Processor information associated with this payment.
1974
+ attr_reader :processor_details
1975
+ # Indicates who reported the payment.
1976
+ attr_reader :reported_by
1977
+ # Shipping information for this payment.
1978
+ attr_reader :shipping_details
1979
+
1980
+ # List all the Payment Attempt Records attached to the specified Payment Record.
1981
+ def self.list(params = {}, opts = {})
1982
+ request_stripe_object(
1983
+ method: :get,
1984
+ path: "/v1/payment_attempt_records",
1985
+ params: params,
1986
+ opts: opts
1987
+ )
1988
+ end
1989
+
1990
+ def self.inner_class_types
1991
+ @inner_class_types = {
1992
+ amount: Amount,
1993
+ amount_authorized: AmountAuthorized,
1994
+ amount_canceled: AmountCanceled,
1995
+ amount_failed: AmountFailed,
1996
+ amount_guaranteed: AmountGuaranteed,
1997
+ amount_refunded: AmountRefunded,
1998
+ amount_requested: AmountRequested,
1999
+ customer_details: CustomerDetails,
2000
+ payment_method_details: PaymentMethodDetails,
2001
+ processor_details: ProcessorDetails,
2002
+ shipping_details: ShippingDetails,
2003
+ }
2004
+ end
2005
+
2006
+ def self.field_remappings
2007
+ @field_remappings = {}
2008
+ end
2009
+ end
2010
+ end