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