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