stripe 13.4.1 → 17.0.1

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