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