stripe 17.0.1 → 17.1.0

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