stripe 13.3.0 → 13.4.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (743) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1410 -650
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_operations/request.rb +1 -0
  6. data/lib/stripe/api_requestor.rb +1 -0
  7. data/lib/stripe/object_types.rb +32 -0
  8. data/lib/stripe/request_params.rb +24 -0
  9. data/lib/stripe/request_signing_authenticator.rb +79 -0
  10. data/lib/stripe/resources/account.rb +5793 -0
  11. data/lib/stripe/resources/account_link.rb +64 -0
  12. data/lib/stripe/resources/account_notice.rb +154 -0
  13. data/lib/stripe/resources/account_session.rb +1002 -0
  14. data/lib/stripe/resources/apple_pay_domain.rb +73 -0
  15. data/lib/stripe/resources/application.rb +23 -0
  16. data/lib/stripe/resources/application_fee.rb +120 -0
  17. data/lib/stripe/resources/application_fee_refund.rb +24 -0
  18. data/lib/stripe/resources/apps/secret.rb +166 -0
  19. data/lib/stripe/resources/balance.rb +162 -0
  20. data/lib/stripe/resources/balance_transaction.rb +141 -0
  21. data/lib/stripe/resources/bank_account.rb +113 -2
  22. data/lib/stripe/resources/billing/alert.rb +166 -0
  23. data/lib/stripe/resources/billing/alert_triggered.rb +31 -0
  24. data/lib/stripe/resources/billing/credit_balance_summary.rb +89 -0
  25. data/lib/stripe/resources/billing/credit_balance_transaction.rb +140 -0
  26. data/lib/stripe/resources/billing/credit_grant.rb +235 -0
  27. data/lib/stripe/resources/billing/meter.rb +203 -0
  28. data/lib/stripe/resources/billing/meter_error_report.rb +70 -0
  29. data/lib/stripe/resources/billing/meter_event.rb +45 -0
  30. data/lib/stripe/resources/billing/meter_event_adjustment.rb +51 -0
  31. data/lib/stripe/resources/billing/meter_event_summary.rb +21 -0
  32. data/lib/stripe/resources/billing_portal/configuration.rb +639 -0
  33. data/lib/stripe/resources/billing_portal/session.rb +313 -0
  34. data/lib/stripe/resources/capability.rb +111 -0
  35. data/lib/stripe/resources/capital/financing_offer.rb +221 -0
  36. data/lib/stripe/resources/capital/financing_summary.rb +77 -0
  37. data/lib/stripe/resources/capital/financing_transaction.rb +147 -0
  38. data/lib/stripe/resources/card.rb +111 -0
  39. data/lib/stripe/resources/cash_balance.rb +22 -0
  40. data/lib/stripe/resources/charge.rb +3687 -0
  41. data/lib/stripe/resources/checkout/session.rb +4162 -0
  42. data/lib/stripe/resources/climate/order.rb +216 -0
  43. data/lib/stripe/resources/climate/product.rb +69 -0
  44. data/lib/stripe/resources/climate/supplier.rb +67 -0
  45. data/lib/stripe/resources/confirmation_token.rb +1855 -0
  46. data/lib/stripe/resources/connect_collection_transfer.rb +29 -0
  47. data/lib/stripe/resources/country_spec.rb +76 -0
  48. data/lib/stripe/resources/coupon.rb +237 -0
  49. data/lib/stripe/resources/credit_note.rb +798 -0
  50. data/lib/stripe/resources/credit_note_line_item.rb +89 -0
  51. data/lib/stripe/resources/customer.rb +995 -0
  52. data/lib/stripe/resources/customer_balance_transaction.rb +39 -0
  53. data/lib/stripe/resources/customer_cash_balance_transaction.rb +136 -0
  54. data/lib/stripe/resources/customer_session.rb +183 -0
  55. data/lib/stripe/resources/discount.rb +41 -0
  56. data/lib/stripe/resources/dispute.rb +767 -0
  57. data/lib/stripe/resources/entitlements/active_entitlement.rb +54 -0
  58. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +26 -0
  59. data/lib/stripe/resources/entitlements/feature.rb +107 -0
  60. data/lib/stripe/resources/ephemeral_key.rb +26 -0
  61. data/lib/stripe/resources/event.rb +157 -0
  62. data/lib/stripe/resources/exchange_rate.rb +38 -0
  63. data/lib/stripe/resources/file.rb +134 -0
  64. data/lib/stripe/resources/file_link.rb +134 -0
  65. data/lib/stripe/resources/financial_connections/account.rb +307 -0
  66. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +30 -0
  67. data/lib/stripe/resources/financial_connections/account_owner.rb +24 -0
  68. data/lib/stripe/resources/financial_connections/account_ownership.rb +12 -0
  69. data/lib/stripe/resources/financial_connections/institution.rb +112 -0
  70. data/lib/stripe/resources/financial_connections/session.rb +187 -0
  71. data/lib/stripe/resources/financial_connections/transaction.rb +122 -0
  72. data/lib/stripe/resources/forwarding/request.rb +196 -0
  73. data/lib/stripe/resources/funding_instructions.rb +415 -0
  74. data/lib/stripe/resources/gift_cards/card.rb +245 -0
  75. data/lib/stripe/resources/gift_cards/transaction.rb +313 -0
  76. data/lib/stripe/resources/identity/verification_report.rb +335 -0
  77. data/lib/stripe/resources/identity/verification_session.rb +430 -0
  78. data/lib/stripe/resources/invoice.rb +9348 -0
  79. data/lib/stripe/resources/invoice_item.rb +536 -0
  80. data/lib/stripe/resources/invoice_line_item.rb +409 -0
  81. data/lib/stripe/resources/invoice_payment.rb +72 -0
  82. data/lib/stripe/resources/invoice_rendering_template.rb +79 -0
  83. data/lib/stripe/resources/issuing/authorization.rb +1316 -2
  84. data/lib/stripe/resources/issuing/card.rb +794 -0
  85. data/lib/stripe/resources/issuing/cardholder.rb +768 -0
  86. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +693 -0
  87. data/lib/stripe/resources/issuing/dispute.rb +941 -0
  88. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
  89. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +109 -0
  90. data/lib/stripe/resources/issuing/personalization_design.rb +333 -0
  91. data/lib/stripe/resources/issuing/physical_bundle.rb +76 -0
  92. data/lib/stripe/resources/issuing/settlement.rb +65 -0
  93. data/lib/stripe/resources/issuing/token.rb +221 -0
  94. data/lib/stripe/resources/issuing/transaction.rb +1098 -0
  95. data/lib/stripe/resources/line_item.rb +98 -0
  96. data/lib/stripe/resources/login_link.rb +9 -0
  97. data/lib/stripe/resources/mandate.rb +214 -0
  98. data/lib/stripe/resources/margin.rb +143 -0
  99. data/lib/stripe/resources/order.rb +3238 -0
  100. data/lib/stripe/resources/payment_attempt_record.rb +226 -0
  101. data/lib/stripe/resources/payment_intent.rb +14630 -0
  102. data/lib/stripe/resources/payment_link.rb +1761 -0
  103. data/lib/stripe/resources/payment_method.rb +1981 -0
  104. data/lib/stripe/resources/payment_method_configuration.rb +3137 -0
  105. data/lib/stripe/resources/payment_method_domain.rb +176 -0
  106. data/lib/stripe/resources/payment_record.rb +824 -0
  107. data/lib/stripe/resources/payout.rb +267 -0
  108. data/lib/stripe/resources/person.rb +353 -0
  109. data/lib/stripe/resources/plan.rb +386 -0
  110. data/lib/stripe/resources/price.rb +782 -0
  111. data/lib/stripe/resources/product.rb +636 -0
  112. data/lib/stripe/resources/product_feature.rb +16 -0
  113. data/lib/stripe/resources/promotion_code.rb +261 -0
  114. data/lib/stripe/resources/quote.rb +3404 -0
  115. data/lib/stripe/resources/quote_line.rb +340 -0
  116. data/lib/stripe/resources/quote_preview_invoice.rb +833 -0
  117. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +463 -0
  118. data/lib/stripe/resources/radar/early_fraud_warning.rb +93 -0
  119. data/lib/stripe/resources/radar/value_list.rb +151 -0
  120. data/lib/stripe/resources/radar/value_list_item.rb +113 -0
  121. data/lib/stripe/resources/refund.rb +489 -0
  122. data/lib/stripe/resources/reporting/report_run.rb +182 -0
  123. data/lib/stripe/resources/reporting/report_type.rb +44 -0
  124. data/lib/stripe/resources/reserve_transaction.rb +26 -0
  125. data/lib/stripe/resources/reversal.rb +30 -0
  126. data/lib/stripe/resources/review.rb +135 -0
  127. data/lib/stripe/resources/setup_attempt.rb +474 -0
  128. data/lib/stripe/resources/setup_intent.rb +4371 -0
  129. data/lib/stripe/resources/shipping_rate.rb +303 -0
  130. data/lib/stripe/resources/sigma/scheduled_query_run.rb +67 -0
  131. data/lib/stripe/resources/source.rb +1571 -0
  132. data/lib/stripe/resources/source_mandate_notification.rb +79 -0
  133. data/lib/stripe/resources/source_transaction.rb +114 -0
  134. data/lib/stripe/resources/subscription.rb +2395 -0
  135. data/lib/stripe/resources/subscription_item.rb +502 -0
  136. data/lib/stripe/resources/subscription_schedule.rb +2790 -0
  137. data/lib/stripe/resources/tax/association.rb +100 -0
  138. data/lib/stripe/resources/tax/calculation.rb +474 -0
  139. data/lib/stripe/resources/tax/calculation_line_item.rb +76 -0
  140. data/lib/stripe/resources/tax/form.rb +253 -0
  141. data/lib/stripe/resources/tax/registration.rb +2174 -0
  142. data/lib/stripe/resources/tax/settings.rb +146 -0
  143. data/lib/stripe/resources/tax/transaction.rb +332 -0
  144. data/lib/stripe/resources/tax/transaction_line_item.rb +43 -0
  145. data/lib/stripe/resources/tax_code.rb +41 -0
  146. data/lib/stripe/resources/tax_deducted_at_source.rb +26 -0
  147. data/lib/stripe/resources/tax_id.rb +147 -0
  148. data/lib/stripe/resources/tax_rate.rb +245 -0
  149. data/lib/stripe/resources/terminal/configuration.rb +1175 -0
  150. data/lib/stripe/resources/terminal/connection_token.rb +21 -0
  151. data/lib/stripe/resources/terminal/location.rb +208 -0
  152. data/lib/stripe/resources/terminal/reader.rb +911 -0
  153. data/lib/stripe/resources/terminal/reader_collected_data.rb +45 -0
  154. data/lib/stripe/resources/test_helpers/test_clock.rb +101 -0
  155. data/lib/stripe/resources/token.rb +1337 -0
  156. data/lib/stripe/resources/topup.rb +210 -0
  157. data/lib/stripe/resources/transfer.rb +188 -0
  158. data/lib/stripe/resources/treasury/credit_reversal.rb +113 -0
  159. data/lib/stripe/resources/treasury/debit_reversal.rb +126 -0
  160. data/lib/stripe/resources/treasury/financial_account.rb +766 -0
  161. data/lib/stripe/resources/treasury/financial_account_features.rb +237 -0
  162. data/lib/stripe/resources/treasury/inbound_transfer.rb +285 -0
  163. data/lib/stripe/resources/treasury/outbound_payment.rb +587 -0
  164. data/lib/stripe/resources/treasury/outbound_transfer.rb +428 -0
  165. data/lib/stripe/resources/treasury/received_credit.rb +335 -0
  166. data/lib/stripe/resources/treasury/received_debit.rb +298 -0
  167. data/lib/stripe/resources/treasury/transaction.rb +215 -0
  168. data/lib/stripe/resources/treasury/transaction_entry.rb +193 -0
  169. data/lib/stripe/resources/usage_record.rb +18 -0
  170. data/lib/stripe/resources/usage_record_summary.rb +28 -0
  171. data/lib/stripe/resources/v2/amount.rb +9 -0
  172. data/lib/stripe/resources/v2/billing/meter_event.rb +24 -0
  173. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +28 -0
  174. data/lib/stripe/resources/v2/billing/meter_event_session.rb +19 -0
  175. data/lib/stripe/resources/v2/event.rb +35 -0
  176. data/lib/stripe/resources/v2/event_destination.rb +78 -0
  177. data/lib/stripe/resources/webhook_endpoint.rb +148 -0
  178. data/lib/stripe/resources.rb +31 -0
  179. data/lib/stripe/services/account_capability_service.rb +33 -0
  180. data/lib/stripe/services/account_external_account_service.rb +293 -0
  181. data/lib/stripe/services/account_link_service.rb +53 -0
  182. data/lib/stripe/services/account_login_link_service.rb +9 -0
  183. data/lib/stripe/services/account_notice_service.rb +110 -0
  184. data/lib/stripe/services/account_person_service.rb +1014 -0
  185. data/lib/stripe/services/account_service.rb +4862 -0
  186. data/lib/stripe/services/account_session_service.rb +740 -0
  187. data/lib/stripe/services/apple_pay_domain_service.rb +56 -0
  188. data/lib/stripe/services/application_fee_refund_service.rb +60 -0
  189. data/lib/stripe/services/application_fee_service.rb +65 -0
  190. data/lib/stripe/services/apps/secret_service.rb +132 -0
  191. data/lib/stripe/services/balance_service.rb +9 -0
  192. data/lib/stripe/services/balance_transaction_service.rb +80 -0
  193. data/lib/stripe/services/billing/alert_service.rb +125 -0
  194. data/lib/stripe/services/billing/credit_balance_summary_service.rb +41 -0
  195. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +45 -0
  196. data/lib/stripe/services/billing/credit_grant_service.rb +167 -0
  197. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +29 -0
  198. data/lib/stripe/services/billing/meter_event_service.rb +25 -0
  199. data/lib/stripe/services/billing/meter_event_summary_service.rb +46 -0
  200. data/lib/stripe/services/billing/meter_service.rb +142 -0
  201. data/lib/stripe/services/billing_portal/configuration_service.rb +492 -0
  202. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  203. data/lib/stripe/services/capital/financing_offer_service.rb +121 -0
  204. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  205. data/lib/stripe/services/capital/financing_transaction_service.rb +86 -0
  206. data/lib/stripe/services/capital_service.rb +15 -0
  207. data/lib/stripe/services/charge_service.rb +2010 -0
  208. data/lib/stripe/services/checkout/session_line_item_service.rb +21 -0
  209. data/lib/stripe/services/checkout/session_service.rb +2736 -0
  210. data/lib/stripe/services/climate/order_service.rb +113 -0
  211. data/lib/stripe/services/climate/product_service.rb +30 -0
  212. data/lib/stripe/services/climate/supplier_service.rb +30 -0
  213. data/lib/stripe/services/confirmation_token_service.rb +9 -0
  214. data/lib/stripe/services/country_spec_service.rb +30 -0
  215. data/lib/stripe/services/coupon_service.rb +174 -0
  216. data/lib/stripe/services/credit_note_line_item_service.rb +21 -0
  217. data/lib/stripe/services/credit_note_preview_lines_service.rb +184 -0
  218. data/lib/stripe/services/credit_note_service.rb +434 -0
  219. data/lib/stripe/services/customer_balance_transaction_service.rb +72 -0
  220. data/lib/stripe/services/customer_cash_balance_service.rb +30 -0
  221. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +30 -0
  222. data/lib/stripe/services/customer_funding_instructions_service.rb +47 -0
  223. data/lib/stripe/services/customer_payment_method_service.rb +45 -0
  224. data/lib/stripe/services/customer_payment_source_service.rb +208 -0
  225. data/lib/stripe/services/customer_service.rb +684 -0
  226. data/lib/stripe/services/customer_session_service.rb +106 -0
  227. data/lib/stripe/services/customer_tax_id_service.rb +50 -0
  228. data/lib/stripe/services/dispute_service.rb +439 -0
  229. data/lib/stripe/services/entitlements/active_entitlement_service.rb +40 -0
  230. data/lib/stripe/services/entitlements/feature_service.rb +87 -0
  231. data/lib/stripe/services/ephemeral_key_service.rb +40 -0
  232. data/lib/stripe/services/event_service.rb +75 -0
  233. data/lib/stripe/services/exchange_rate_service.rb +30 -0
  234. data/lib/stripe/services/file_link_service.rb +108 -0
  235. data/lib/stripe/services/file_service.rb +102 -0
  236. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +40 -0
  237. data/lib/stripe/services/financial_connections/account_owner_service.rb +31 -0
  238. data/lib/stripe/services/financial_connections/account_service.rb +108 -1
  239. data/lib/stripe/services/financial_connections/institution_service.rb +60 -0
  240. data/lib/stripe/services/financial_connections/session_service.rb +108 -0
  241. data/lib/stripe/services/financial_connections/transaction_service.rb +79 -0
  242. data/lib/stripe/services/financial_connections_service.rb +2 -1
  243. data/lib/stripe/services/forwarding/request_service.rb +120 -0
  244. data/lib/stripe/services/gift_cards/card_service.rb +183 -0
  245. data/lib/stripe/services/gift_cards/transaction_service.rb +225 -0
  246. data/lib/stripe/services/gift_cards_service.rb +14 -0
  247. data/lib/stripe/services/identity/verification_report_service.rb +75 -0
  248. data/lib/stripe/services/identity/verification_session_service.rb +261 -0
  249. data/lib/stripe/services/invoice_item_service.rb +454 -0
  250. data/lib/stripe/services/invoice_line_item_service.rb +277 -0
  251. data/lib/stripe/services/invoice_payment_service.rb +58 -0
  252. data/lib/stripe/services/invoice_rendering_template_service.rb +56 -0
  253. data/lib/stripe/services/invoice_service.rb +6375 -1
  254. data/lib/stripe/services/invoice_upcoming_lines_service.rb +2142 -0
  255. data/lib/stripe/services/issuing/authorization_service.rb +118 -0
  256. data/lib/stripe/services/issuing/card_service.rb +525 -0
  257. data/lib/stripe/services/issuing/cardholder_service.rb +599 -0
  258. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +560 -0
  259. data/lib/stripe/services/issuing/dispute_service.rb +731 -0
  260. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +70 -0
  261. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +90 -0
  262. data/lib/stripe/services/issuing/personalization_design_service.rb +222 -0
  263. data/lib/stripe/services/issuing/physical_bundle_service.rb +45 -0
  264. data/lib/stripe/services/issuing/token_service.rb +83 -0
  265. data/lib/stripe/services/issuing/transaction_service.rb +93 -0
  266. data/lib/stripe/services/issuing_service.rb +5 -1
  267. data/lib/stripe/services/mandate_service.rb +9 -0
  268. data/lib/stripe/services/margin_service.rb +130 -0
  269. data/lib/stripe/services/order_line_item_service.rb +38 -0
  270. data/lib/stripe/services/order_service.rb +2518 -0
  271. data/lib/stripe/services/payment_attempt_record_service.rb +50 -0
  272. data/lib/stripe/services/payment_intent_service.rb +12203 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +21 -0
  274. data/lib/stripe/services/payment_link_service.rb +1343 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2148 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +84 -0
  277. data/lib/stripe/services/payment_method_service.rb +977 -0
  278. data/lib/stripe/services/payment_record_service.rb +610 -0
  279. data/lib/stripe/services/payout_service.rb +182 -0
  280. data/lib/stripe/services/plan_service.rb +296 -0
  281. data/lib/stripe/services/price_service.rb +603 -0
  282. data/lib/stripe/services/product_feature_service.rb +46 -0
  283. data/lib/stripe/services/product_service.rb +533 -0
  284. data/lib/stripe/services/promotion_code_service.rb +203 -0
  285. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +21 -0
  286. data/lib/stripe/services/quote_line_item_service.rb +21 -0
  287. data/lib/stripe/services/quote_line_service.rb +38 -0
  288. data/lib/stripe/services/quote_preview_invoice_service.rb +38 -0
  289. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +38 -0
  290. data/lib/stripe/services/quote_service.rb +2628 -1
  291. data/lib/stripe/services/radar/early_fraud_warning_service.rb +70 -0
  292. data/lib/stripe/services/radar/value_list_item_service.rb +90 -0
  293. data/lib/stripe/services/radar/value_list_service.rb +119 -0
  294. data/lib/stripe/services/refund_service.rb +158 -0
  295. data/lib/stripe/services/reporting/report_run_service.rb +122 -0
  296. data/lib/stripe/services/reporting/report_type_service.rb +18 -0
  297. data/lib/stripe/services/review_service.rb +63 -0
  298. data/lib/stripe/services/setup_attempt_service.rb +59 -0
  299. data/lib/stripe/services/setup_intent_service.rb +3923 -0
  300. data/lib/stripe/services/shipping_rate_service.rb +227 -0
  301. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
  302. data/lib/stripe/services/source_service.rb +693 -0
  303. data/lib/stripe/services/source_transaction_service.rb +21 -0
  304. data/lib/stripe/services/subscription_item_service.rb +439 -0
  305. data/lib/stripe/services/subscription_item_usage_record_service.rb +21 -0
  306. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +21 -0
  307. data/lib/stripe/services/subscription_schedule_service.rb +2343 -0
  308. data/lib/stripe/services/subscription_service.rb +1967 -0
  309. data/lib/stripe/services/tax/association_service.rb +32 -0
  310. data/lib/stripe/services/tax/calculation_line_item_service.rb +21 -0
  311. data/lib/stripe/services/tax/calculation_service.rb +235 -0
  312. data/lib/stripe/services/tax/form_service.rb +107 -0
  313. data/lib/stripe/services/tax/registration_service.rb +1398 -0
  314. data/lib/stripe/services/tax/settings_service.rb +82 -0
  315. data/lib/stripe/services/tax/transaction_line_item_service.rb +21 -0
  316. data/lib/stripe/services/tax/transaction_service.rb +128 -0
  317. data/lib/stripe/services/tax_code_service.rb +30 -0
  318. data/lib/stripe/services/tax_id_service.rb +90 -0
  319. data/lib/stripe/services/tax_rate_service.rb +182 -0
  320. data/lib/stripe/services/tax_service.rb +3 -1
  321. data/lib/stripe/services/terminal/configuration_service.rb +901 -0
  322. data/lib/stripe/services/terminal/connection_token_service.rb +13 -0
  323. data/lib/stripe/services/terminal/location_service.rb +165 -0
  324. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  325. data/lib/stripe/services/terminal/reader_service.rb +496 -0
  326. data/lib/stripe/services/terminal_service.rb +2 -1
  327. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +762 -0
  328. data/lib/stripe/services/test_helpers/customer_service.rb +21 -0
  329. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +844 -0
  330. data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
  331. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
  332. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +723 -0
  333. data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
  334. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +48 -0
  335. data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
  336. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +39 -0
  337. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +93 -0
  338. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +93 -0
  339. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +95 -0
  340. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +95 -0
  341. data/lib/stripe/services/token_service.rb +1301 -0
  342. data/lib/stripe/services/topup_service.rb +163 -0
  343. data/lib/stripe/services/transfer_reversal_service.rb +74 -0
  344. data/lib/stripe/services/transfer_service.rb +138 -0
  345. data/lib/stripe/services/treasury/credit_reversal_service.rb +67 -0
  346. data/lib/stripe/services/treasury/debit_reversal_service.rb +72 -0
  347. data/lib/stripe/services/treasury/financial_account_features_service.rb +179 -0
  348. data/lib/stripe/services/treasury/financial_account_service.rb +481 -0
  349. data/lib/stripe/services/treasury/inbound_transfer_service.rb +100 -0
  350. data/lib/stripe/services/treasury/outbound_payment_service.rb +296 -0
  351. data/lib/stripe/services/treasury/outbound_transfer_service.rb +147 -0
  352. data/lib/stripe/services/treasury/received_credit_service.rb +58 -0
  353. data/lib/stripe/services/treasury/received_debit_service.rb +45 -0
  354. data/lib/stripe/services/treasury/transaction_entry_service.rb +101 -0
  355. data/lib/stripe/services/treasury/transaction_service.rb +109 -0
  356. data/lib/stripe/services/v1_services.rb +8 -1
  357. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +25 -0
  358. data/lib/stripe/services/v2/billing/meter_event_service.rb +28 -0
  359. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
  360. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +36 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +164 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +20 -0
  363. data/lib/stripe/services/webhook_endpoint_service.rb +110 -0
  364. data/lib/stripe/services.rb +25 -0
  365. data/lib/stripe/stripe_client.rb +2 -2
  366. data/lib/stripe/stripe_configuration.rb +3 -1
  367. data/lib/stripe/stripe_object.rb +8 -3
  368. data/lib/stripe/util.rb +8 -2
  369. data/lib/stripe/version.rb +1 -1
  370. data/lib/stripe.rb +46 -0
  371. data/rbi/stripe/resources/account.rbi +6072 -0
  372. data/rbi/stripe/resources/account_link.rbi +87 -0
  373. data/rbi/stripe/resources/account_notice.rbi +166 -0
  374. data/rbi/stripe/resources/account_session.rbi +1173 -0
  375. data/rbi/stripe/resources/apple_pay_domain.rbi +111 -0
  376. data/rbi/stripe/resources/application.rbi +23 -0
  377. data/rbi/stripe/resources/application_fee.rbi +151 -0
  378. data/rbi/stripe/resources/application_fee_refund.rbi +44 -0
  379. data/rbi/stripe/resources/apps/secret.rbi +229 -0
  380. data/rbi/stripe/resources/balance.rbi +220 -0
  381. data/rbi/stripe/resources/balance_transaction.rbi +182 -0
  382. data/rbi/stripe/resources/bank_account.rbi +156 -0
  383. data/rbi/stripe/resources/billing/alert.rbi +237 -0
  384. data/rbi/stripe/resources/billing/alert_triggered.rbi +33 -0
  385. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +118 -0
  386. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +181 -0
  387. data/rbi/stripe/resources/billing/credit_grant.rbi +312 -0
  388. data/rbi/stripe/resources/billing/meter.rbi +268 -0
  389. data/rbi/stripe/resources/billing/meter_error_report.rbi +82 -0
  390. data/rbi/stripe/resources/billing/meter_event.rbi +76 -0
  391. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +75 -0
  392. data/rbi/stripe/resources/billing/meter_event_summary.rbi +39 -0
  393. data/rbi/stripe/resources/billing_portal/configuration.rbi +746 -0
  394. data/rbi/stripe/resources/billing_portal/session.rbi +396 -0
  395. data/rbi/stripe/resources/capability.rbi +152 -0
  396. data/rbi/stripe/resources/capital/financing_offer.rbi +228 -0
  397. data/rbi/stripe/resources/capital/financing_summary.rbi +89 -0
  398. data/rbi/stripe/resources/capital/financing_transaction.rbi +157 -0
  399. data/rbi/stripe/resources/card.rbi +159 -0
  400. data/rbi/stripe/resources/cash_balance.rbi +37 -0
  401. data/rbi/stripe/resources/charge.rbi +4216 -0
  402. data/rbi/stripe/resources/checkout/session.rbi +4627 -0
  403. data/rbi/stripe/resources/climate/order.rbi +298 -0
  404. data/rbi/stripe/resources/climate/product.rbi +98 -0
  405. data/rbi/stripe/resources/climate/supplier.rbi +95 -0
  406. data/rbi/stripe/resources/confirmation_token.rbi +2137 -0
  407. data/rbi/stripe/resources/connect_collection_transfer.rbi +31 -0
  408. data/rbi/stripe/resources/country_spec.rbi +108 -0
  409. data/rbi/stripe/resources/coupon.rbi +305 -0
  410. data/rbi/stripe/resources/credit_note.rbi +918 -0
  411. data/rbi/stripe/resources/credit_note_line_item.rbi +123 -0
  412. data/rbi/stripe/resources/customer.rbi +1188 -0
  413. data/rbi/stripe/resources/customer_balance_transaction.rbi +65 -0
  414. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +178 -0
  415. data/rbi/stripe/resources/customer_session.rbi +227 -0
  416. data/rbi/stripe/resources/discount.rbi +65 -0
  417. data/rbi/stripe/resources/dispute.rbi +926 -0
  418. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +76 -0
  419. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +26 -0
  420. data/rbi/stripe/resources/entitlements/feature.rbi +146 -0
  421. data/rbi/stripe/resources/ephemeral_key.rbi +51 -0
  422. data/rbi/stripe/resources/event.rbi +221 -0
  423. data/rbi/stripe/resources/exchange_rate.rbi +81 -0
  424. data/rbi/stripe/resources/file.rbi +177 -0
  425. data/rbi/stripe/resources/file_link.rbi +174 -0
  426. data/rbi/stripe/resources/financial_connections/account.rbi +414 -0
  427. data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +30 -0
  428. data/rbi/stripe/resources/financial_connections/account_owner.rbi +42 -0
  429. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +26 -0
  430. data/rbi/stripe/resources/financial_connections/institution.rbi +115 -0
  431. data/rbi/stripe/resources/financial_connections/session.rbi +221 -0
  432. data/rbi/stripe/resources/financial_connections/transaction.rbi +153 -0
  433. data/rbi/stripe/resources/forwarding/request.rbi +257 -0
  434. data/rbi/stripe/resources/funding_instructions.rbi +544 -0
  435. data/rbi/stripe/resources/gift_cards/card.rbi +242 -0
  436. data/rbi/stripe/resources/gift_cards/transaction.rbi +298 -0
  437. data/rbi/stripe/resources/identity/verification_report.rbi +427 -0
  438. data/rbi/stripe/resources/identity/verification_session.rbi +601 -0
  439. data/rbi/stripe/resources/invoice.rbi +10584 -0
  440. data/rbi/stripe/resources/invoice_item.rbi +621 -0
  441. data/rbi/stripe/resources/invoice_line_item.rbi +486 -0
  442. data/rbi/stripe/resources/invoice_payment.rbi +86 -0
  443. data/rbi/stripe/resources/invoice_rendering_template.rbi +131 -0
  444. data/rbi/stripe/resources/issuing/authorization.rbi +1511 -0
  445. data/rbi/stripe/resources/issuing/card.rbi +891 -0
  446. data/rbi/stripe/resources/issuing/cardholder.rbi +870 -0
  447. data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +731 -0
  448. data/rbi/stripe/resources/issuing/dispute.rbi +1077 -0
  449. data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +100 -0
  450. data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +108 -0
  451. data/rbi/stripe/resources/issuing/personalization_design.rbi +395 -0
  452. data/rbi/stripe/resources/issuing/physical_bundle.rbi +102 -0
  453. data/rbi/stripe/resources/issuing/settlement.rbi +78 -0
  454. data/rbi/stripe/resources/issuing/token.rbi +282 -0
  455. data/rbi/stripe/resources/issuing/transaction.rbi +1262 -0
  456. data/rbi/stripe/resources/line_item.rbi +131 -0
  457. data/rbi/stripe/resources/login_link.rbi +20 -0
  458. data/rbi/stripe/resources/mandate.rbi +266 -0
  459. data/rbi/stripe/resources/margin.rbi +151 -0
  460. data/rbi/stripe/resources/order.rbi +3505 -0
  461. data/rbi/stripe/resources/payment_attempt_record.rbi +260 -0
  462. data/rbi/stripe/resources/payment_intent.rbi +16064 -0
  463. data/rbi/stripe/resources/payment_link.rbi +1943 -0
  464. data/rbi/stripe/resources/payment_method.rbi +2287 -0
  465. data/rbi/stripe/resources/payment_method_configuration.rbi +3657 -0
  466. data/rbi/stripe/resources/payment_method_domain.rbi +246 -0
  467. data/rbi/stripe/resources/payment_record.rbi +856 -0
  468. data/rbi/stripe/resources/payout.rbi +357 -0
  469. data/rbi/stripe/resources/person.rbi +461 -0
  470. data/rbi/stripe/resources/plan.rbi +463 -0
  471. data/rbi/stripe/resources/price.rbi +884 -0
  472. data/rbi/stripe/resources/product.rbi +735 -0
  473. data/rbi/stripe/resources/product_feature.rbi +30 -0
  474. data/rbi/stripe/resources/promotion_code.rbi +316 -0
  475. data/rbi/stripe/resources/quote.rbi +3779 -0
  476. data/rbi/stripe/resources/quote_line.rbi +416 -0
  477. data/rbi/stripe/resources/quote_preview_invoice.rbi +1030 -0
  478. data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +575 -0
  479. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +121 -0
  480. data/rbi/stripe/resources/radar/value_list.rbi +207 -0
  481. data/rbi/stripe/resources/radar/value_list_item.rbi +157 -0
  482. data/rbi/stripe/resources/refund.rbi +615 -0
  483. data/rbi/stripe/resources/reporting/report_run.rbi +232 -0
  484. data/rbi/stripe/resources/reporting/report_type.rbi +75 -0
  485. data/rbi/stripe/resources/reserve_transaction.rbi +27 -0
  486. data/rbi/stripe/resources/reversal.rbi +60 -0
  487. data/rbi/stripe/resources/review.rbi +191 -0
  488. data/rbi/stripe/resources/setup_attempt.rbi +587 -0
  489. data/rbi/stripe/resources/setup_intent.rbi +4726 -0
  490. data/rbi/stripe/resources/shipping_rate.rbi +367 -0
  491. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +98 -0
  492. data/rbi/stripe/resources/source.rbi +1899 -0
  493. data/rbi/stripe/resources/source_mandate_notification.rbi +90 -0
  494. data/rbi/stripe/resources/source_transaction.rbi +156 -0
  495. data/rbi/stripe/resources/subscription.rbi +2739 -0
  496. data/rbi/stripe/resources/subscription_item.rbi +566 -0
  497. data/rbi/stripe/resources/subscription_schedule.rbi +3157 -0
  498. data/rbi/stripe/resources/tax/association.rbi +107 -0
  499. data/rbi/stripe/resources/tax/calculation.rbi +577 -0
  500. data/rbi/stripe/resources/tax/calculation_line_item.rbi +108 -0
  501. data/rbi/stripe/resources/tax/form.rbi +262 -0
  502. data/rbi/stripe/resources/tax/registration.rbi +2354 -0
  503. data/rbi/stripe/resources/tax/settings.rbi +174 -0
  504. data/rbi/stripe/resources/tax/transaction.rbi +428 -0
  505. data/rbi/stripe/resources/tax/transaction_line_item.rbi +66 -0
  506. data/rbi/stripe/resources/tax_code.rbi +60 -0
  507. data/rbi/stripe/resources/tax_deducted_at_source.rbi +27 -0
  508. data/rbi/stripe/resources/tax_id.rbi +206 -0
  509. data/rbi/stripe/resources/tax_rate.rbi +295 -0
  510. data/rbi/stripe/resources/terminal/configuration.rbi +1302 -0
  511. data/rbi/stripe/resources/terminal/connection_token.rbi +42 -0
  512. data/rbi/stripe/resources/terminal/location.rbi +271 -0
  513. data/rbi/stripe/resources/terminal/reader.rbi +1110 -0
  514. data/rbi/stripe/resources/terminal/reader_collected_data.rbi +48 -0
  515. data/rbi/stripe/resources/test_helpers/test_clock.rbi +159 -0
  516. data/rbi/stripe/resources/token.rbi +1405 -0
  517. data/rbi/stripe/resources/topup.rbi +269 -0
  518. data/rbi/stripe/resources/transfer.rbi +245 -0
  519. data/rbi/stripe/resources/treasury/credit_reversal.rbi +151 -0
  520. data/rbi/stripe/resources/treasury/debit_reversal.rbi +165 -0
  521. data/rbi/stripe/resources/treasury/financial_account.rbi +924 -0
  522. data/rbi/stripe/resources/treasury/financial_account_features.rbi +309 -0
  523. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +361 -0
  524. data/rbi/stripe/resources/treasury/outbound_payment.rbi +702 -0
  525. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +529 -0
  526. data/rbi/stripe/resources/treasury/received_credit.rbi +408 -0
  527. data/rbi/stripe/resources/treasury/received_debit.rbi +367 -0
  528. data/rbi/stripe/resources/treasury/transaction.rbi +261 -0
  529. data/rbi/stripe/resources/treasury/transaction_entry.rbi +234 -0
  530. data/rbi/stripe/resources/usage_record.rbi +37 -0
  531. data/rbi/stripe/resources/usage_record_summary.rbi +45 -0
  532. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  533. data/rbi/stripe/resources/v2/billing/meter_event.rbi +43 -0
  534. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +48 -0
  535. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +36 -0
  536. data/rbi/stripe/resources/v2/event.rbi +55 -0
  537. data/rbi/stripe/resources/v2/event_destination.rbi +109 -0
  538. data/rbi/stripe/resources/webhook_endpoint.rbi +208 -0
  539. data/rbi/stripe/services/account_capability_service.rbi +55 -0
  540. data/rbi/stripe/services/account_external_account_service.rbi +358 -0
  541. data/rbi/stripe/services/account_link_service.rbi +67 -0
  542. data/rbi/stripe/services/account_login_link_service.rbi +23 -0
  543. data/rbi/stripe/services/account_notice_service.rbi +103 -0
  544. data/rbi/stripe/services/account_person_service.rbi +1077 -0
  545. data/rbi/stripe/services/account_service.rbi +4948 -0
  546. data/rbi/stripe/services/account_session_service.rbi +873 -0
  547. data/rbi/stripe/services/apple_pay_domain_service.rbi +86 -0
  548. data/rbi/stripe/services/application_fee_refund_service.rbi +101 -0
  549. data/rbi/stripe/services/application_fee_service.rbi +85 -0
  550. data/rbi/stripe/services/apps/secret_service.rbi +175 -0
  551. data/rbi/stripe/services/apps_service.rbi +9 -0
  552. data/rbi/stripe/services/balance_service.rbi +22 -0
  553. data/rbi/stripe/services/balance_transaction_service.rbi +103 -0
  554. data/rbi/stripe/services/billing/alert_service.rbi +172 -0
  555. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +61 -0
  556. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +66 -0
  557. data/rbi/stripe/services/billing/credit_grant_service.rbi +217 -0
  558. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +45 -0
  559. data/rbi/stripe/services/billing/meter_event_service.rbi +47 -0
  560. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +62 -0
  561. data/rbi/stripe/services/billing/meter_service.rbi +184 -0
  562. data/rbi/stripe/services/billing_portal/configuration_service.rbi +573 -0
  563. data/rbi/stripe/services/billing_portal/session_service.rbi +233 -0
  564. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  565. data/rbi/stripe/services/billing_service.rbi +15 -0
  566. data/rbi/stripe/services/capital/financing_offer_service.rbi +108 -0
  567. data/rbi/stripe/services/capital/financing_summary_service.rbi +23 -0
  568. data/rbi/stripe/services/capital/financing_transaction_service.rbi +77 -0
  569. data/rbi/stripe/services/capital_service.rbi +11 -0
  570. data/rbi/stripe/services/charge_service.rbi +2162 -0
  571. data/rbi/stripe/services/checkout/session_line_item_service.rbi +37 -0
  572. data/rbi/stripe/services/checkout/session_service.rbi +2975 -0
  573. data/rbi/stripe/services/checkout_service.rbi +9 -0
  574. data/rbi/stripe/services/climate/order_service.rbi +158 -0
  575. data/rbi/stripe/services/climate/product_service.rbi +51 -0
  576. data/rbi/stripe/services/climate/supplier_service.rbi +51 -0
  577. data/rbi/stripe/services/climate_service.rbi +11 -0
  578. data/rbi/stripe/services/confirmation_token_service.rbi +21 -0
  579. data/rbi/stripe/services/country_spec_service.rbi +49 -0
  580. data/rbi/stripe/services/coupon_service.rbi +220 -0
  581. data/rbi/stripe/services/credit_note_line_item_service.rbi +35 -0
  582. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +200 -0
  583. data/rbi/stripe/services/credit_note_service.rbi +496 -0
  584. data/rbi/stripe/services/customer_balance_transaction_service.rbi +105 -0
  585. data/rbi/stripe/services/customer_cash_balance_service.rbi +49 -0
  586. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +49 -0
  587. data/rbi/stripe/services/customer_funding_instructions_service.rbi +67 -0
  588. data/rbi/stripe/services/customer_payment_method_service.rbi +64 -0
  589. data/rbi/stripe/services/customer_payment_source_service.rbi +265 -0
  590. data/rbi/stripe/services/customer_service.rbi +763 -0
  591. data/rbi/stripe/services/customer_session_service.rbi +126 -0
  592. data/rbi/stripe/services/customer_tax_id_service.rbi +80 -0
  593. data/rbi/stripe/services/dispute_service.rbi +500 -0
  594. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +61 -0
  595. data/rbi/stripe/services/entitlements/feature_service.rbi +122 -0
  596. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  597. data/rbi/stripe/services/ephemeral_key_service.rbi +59 -0
  598. data/rbi/stripe/services/event_service.rbi +94 -0
  599. data/rbi/stripe/services/exchange_rate_service.rbi +49 -0
  600. data/rbi/stripe/services/file_link_service.rbi +141 -0
  601. data/rbi/stripe/services/file_service.rbi +132 -0
  602. data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +37 -0
  603. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +47 -0
  604. data/rbi/stripe/services/financial_connections/account_service.rbi +148 -0
  605. data/rbi/stripe/services/financial_connections/institution_service.rbi +51 -0
  606. data/rbi/stripe/services/financial_connections/session_service.rbi +128 -0
  607. data/rbi/stripe/services/financial_connections/transaction_service.rbi +103 -0
  608. data/rbi/stripe/services/financial_connections_service.rbi +12 -0
  609. data/rbi/stripe/services/forwarding/request_service.rbi +152 -0
  610. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  611. data/rbi/stripe/services/gift_cards/card_service.rbi +162 -0
  612. data/rbi/stripe/services/gift_cards/transaction_service.rbi +198 -0
  613. data/rbi/stripe/services/gift_cards_service.rbi +10 -0
  614. data/rbi/stripe/services/identity/verification_report_service.rbi +98 -0
  615. data/rbi/stripe/services/identity/verification_session_service.rbi +360 -0
  616. data/rbi/stripe/services/identity_service.rbi +10 -0
  617. data/rbi/stripe/services/invoice_item_service.rbi +505 -0
  618. data/rbi/stripe/services/invoice_line_item_service.rbi +320 -0
  619. data/rbi/stripe/services/invoice_payment_service.rbi +49 -0
  620. data/rbi/stripe/services/invoice_rendering_template_service.rbi +91 -0
  621. data/rbi/stripe/services/invoice_service.rbi +7138 -0
  622. data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +2397 -0
  623. data/rbi/stripe/services/issuing/authorization_service.rbi +160 -0
  624. data/rbi/stripe/services/issuing/card_service.rbi +568 -0
  625. data/rbi/stripe/services/issuing/cardholder_service.rbi +668 -0
  626. data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +580 -0
  627. data/rbi/stripe/services/issuing/dispute_service.rbi +824 -0
  628. data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +61 -0
  629. data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +83 -0
  630. data/rbi/stripe/services/issuing/personalization_design_service.rbi +271 -0
  631. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +66 -0
  632. data/rbi/stripe/services/issuing/token_service.rbi +109 -0
  633. data/rbi/stripe/services/issuing/transaction_service.rbi +119 -0
  634. data/rbi/stripe/services/issuing_service.rbi +19 -0
  635. data/rbi/stripe/services/mandate_service.rbi +21 -0
  636. data/rbi/stripe/services/margin_service.rbi +119 -0
  637. data/rbi/stripe/services/order_line_item_service.rbi +35 -0
  638. data/rbi/stripe/services/order_service.rbi +2669 -0
  639. data/rbi/stripe/services/payment_attempt_record_service.rbi +39 -0
  640. data/rbi/stripe/services/payment_intent_service.rbi +13193 -0
  641. data/rbi/stripe/services/payment_link_line_item_service.rbi +35 -0
  642. data/rbi/stripe/services/payment_link_service.rbi +1447 -0
  643. data/rbi/stripe/services/payment_method_configuration_service.rbi +2465 -0
  644. data/rbi/stripe/services/payment_method_domain_service.rbi +123 -0
  645. data/rbi/stripe/services/payment_method_service.rbi +1032 -0
  646. data/rbi/stripe/services/payment_record_service.rbi +613 -0
  647. data/rbi/stripe/services/payout_service.rbi +228 -0
  648. data/rbi/stripe/services/plan_service.rbi +337 -0
  649. data/rbi/stripe/services/price_service.rbi +657 -0
  650. data/rbi/stripe/services/product_feature_service.rbi +76 -0
  651. data/rbi/stripe/services/product_service.rbi +596 -0
  652. data/rbi/stripe/services/promotion_code_service.rbi +244 -0
  653. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +35 -0
  654. data/rbi/stripe/services/quote_line_item_service.rbi +35 -0
  655. data/rbi/stripe/services/quote_line_service.rbi +35 -0
  656. data/rbi/stripe/services/quote_preview_invoice_service.rbi +35 -0
  657. data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +35 -0
  658. data/rbi/stripe/services/quote_service.rbi +2830 -0
  659. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +95 -0
  660. data/rbi/stripe/services/radar/value_list_item_service.rbi +122 -0
  661. data/rbi/stripe/services/radar/value_list_service.rbi +160 -0
  662. data/rbi/stripe/services/radar_service.rbi +11 -0
  663. data/rbi/stripe/services/refund_service.rbi +208 -0
  664. data/rbi/stripe/services/reporting/report_run_service.rbi +152 -0
  665. data/rbi/stripe/services/reporting/report_type_service.rbi +37 -0
  666. data/rbi/stripe/services/reporting_service.rbi +10 -0
  667. data/rbi/stripe/services/review_service.rbi +93 -0
  668. data/rbi/stripe/services/setup_attempt_service.rbi +73 -0
  669. data/rbi/stripe/services/setup_intent_service.rbi +4204 -0
  670. data/rbi/stripe/services/shipping_rate_service.rbi +274 -0
  671. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +51 -0
  672. data/rbi/stripe/services/sigma_service.rbi +9 -0
  673. data/rbi/stripe/services/source_service.rbi +766 -0
  674. data/rbi/stripe/services/source_transaction_service.rbi +35 -0
  675. data/rbi/stripe/services/subscription_item_service.rbi +496 -0
  676. data/rbi/stripe/services/subscription_item_usage_record_service.rbi +41 -0
  677. data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +37 -0
  678. data/rbi/stripe/services/subscription_schedule_service.rbi +2613 -0
  679. data/rbi/stripe/services/subscription_service.rbi +2207 -0
  680. data/rbi/stripe/services/tax/association_service.rbi +27 -0
  681. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +37 -0
  682. data/rbi/stripe/services/tax/calculation_service.rbi +267 -0
  683. data/rbi/stripe/services/tax/form_service.rbi +96 -0
  684. data/rbi/stripe/services/tax/registration_service.rbi +1495 -0
  685. data/rbi/stripe/services/tax/settings_service.rbi +106 -0
  686. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +37 -0
  687. data/rbi/stripe/services/tax/transaction_service.rbi +164 -0
  688. data/rbi/stripe/services/tax_code_service.rbi +49 -0
  689. data/rbi/stripe/services/tax_id_service.rbi +128 -0
  690. data/rbi/stripe/services/tax_rate_service.rbi +215 -0
  691. data/rbi/stripe/services/tax_service.rbi +14 -0
  692. data/rbi/stripe/services/terminal/configuration_service.rbi +976 -0
  693. data/rbi/stripe/services/terminal/connection_token_service.rbi +27 -0
  694. data/rbi/stripe/services/terminal/location_service.rbi +211 -0
  695. data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +23 -0
  696. data/rbi/stripe/services/terminal/reader_service.rbi +591 -0
  697. data/rbi/stripe/services/terminal_service.rbi +13 -0
  698. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +892 -0
  699. data/rbi/stripe/services/test_helpers/customer_service.rbi +37 -0
  700. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +974 -0
  701. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +81 -0
  702. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +73 -0
  703. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +825 -0
  704. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  705. data/rbi/stripe/services/test_helpers/refund_service.rbi +23 -0
  706. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +69 -0
  707. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  708. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +100 -0
  709. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +69 -0
  710. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +137 -0
  711. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +137 -0
  712. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +130 -0
  713. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +130 -0
  714. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  715. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  716. data/rbi/stripe/services/token_service.rbi +1357 -0
  717. data/rbi/stripe/services/topup_service.rbi +200 -0
  718. data/rbi/stripe/services/transfer_reversal_service.rbi +111 -0
  719. data/rbi/stripe/services/transfer_service.rbi +174 -0
  720. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +95 -0
  721. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +100 -0
  722. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +226 -0
  723. data/rbi/stripe/services/treasury/financial_account_service.rbi +577 -0
  724. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +133 -0
  725. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +350 -0
  726. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +189 -0
  727. data/rbi/stripe/services/treasury/received_credit_service.rbi +79 -0
  728. data/rbi/stripe/services/treasury/received_debit_service.rbi +66 -0
  729. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +125 -0
  730. data/rbi/stripe/services/treasury/transaction_service.rbi +133 -0
  731. data/rbi/stripe/services/treasury_service.rbi +18 -0
  732. data/rbi/stripe/services/v1_services.rbi +83 -0
  733. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +43 -0
  734. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +46 -0
  735. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  736. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +60 -0
  737. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  738. data/rbi/stripe/services/v2/core/event_destination_service.rbi +228 -0
  739. data/rbi/stripe/services/v2/core/event_service.rbi +42 -0
  740. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  741. data/rbi/stripe/services/v2_services.rbi +10 -0
  742. data/rbi/stripe/services/webhook_endpoint_service.rbi +149 -0
  743. metadata +435 -4
@@ -20,6 +20,3693 @@ module Stripe
20
20
 
21
21
  nested_resource_class_methods :refund, operations: %i[retrieve list]
22
22
 
23
+ class BillingDetails < Stripe::StripeObject
24
+ class Address < Stripe::StripeObject
25
+ # City, district, suburb, town, or village.
26
+ attr_reader :city
27
+
28
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
29
+ attr_reader :country
30
+
31
+ # Address line 1 (e.g., street, PO Box, or company name).
32
+ attr_reader :line1
33
+
34
+ # Address line 2 (e.g., apartment, suite, unit, or building).
35
+ attr_reader :line2
36
+
37
+ # ZIP or postal code.
38
+ attr_reader :postal_code
39
+
40
+ # State, county, province, or region.
41
+ attr_reader :state
42
+ end
43
+ # Billing address.
44
+ attr_reader :address
45
+
46
+ # Email address.
47
+ attr_reader :email
48
+
49
+ # Full name.
50
+ attr_reader :name
51
+
52
+ # Billing phone number (including extension).
53
+ attr_reader :phone
54
+ end
55
+
56
+ class FraudDetails < Stripe::StripeObject
57
+ # Assessments from Stripe. If set, the value is `fraudulent`.
58
+ attr_reader :stripe_report
59
+
60
+ # Assessments reported by you. If set, possible values of are `safe` and `fraudulent`.
61
+ attr_reader :user_report
62
+ end
63
+
64
+ class Level3 < Stripe::StripeObject
65
+ class LineItem < Stripe::StripeObject
66
+ # Attribute for field discount_amount
67
+ attr_reader :discount_amount
68
+
69
+ # Attribute for field product_code
70
+ attr_reader :product_code
71
+
72
+ # Attribute for field product_description
73
+ attr_reader :product_description
74
+
75
+ # Attribute for field quantity
76
+ attr_reader :quantity
77
+
78
+ # Attribute for field tax_amount
79
+ attr_reader :tax_amount
80
+
81
+ # Attribute for field unit_cost
82
+ attr_reader :unit_cost
83
+ end
84
+ # Attribute for field customer_reference
85
+ attr_reader :customer_reference
86
+
87
+ # Attribute for field line_items
88
+ attr_reader :line_items
89
+
90
+ # Attribute for field merchant_reference
91
+ attr_reader :merchant_reference
92
+
93
+ # Attribute for field shipping_address_zip
94
+ attr_reader :shipping_address_zip
95
+
96
+ # Attribute for field shipping_amount
97
+ attr_reader :shipping_amount
98
+
99
+ # Attribute for field shipping_from_zip
100
+ attr_reader :shipping_from_zip
101
+ end
102
+
103
+ class Outcome < Stripe::StripeObject
104
+ class Rule < Stripe::StripeObject
105
+ # The action taken on the payment.
106
+ attr_reader :action
107
+
108
+ # Unique identifier for the object.
109
+ attr_reader :id
110
+
111
+ # The predicate to evaluate the payment against.
112
+ attr_reader :predicate
113
+ end
114
+ # For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
115
+ attr_reader :network_advice_code
116
+
117
+ # For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
118
+ attr_reader :network_decline_code
119
+
120
+ # Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
121
+ attr_reader :network_status
122
+
123
+ # An enumerated value providing a more detailed explanation of the outcome's `type`. Charges blocked by Radar's default block rule have the value `highest_risk_level`. Charges placed in review by Radar's default review rule have the value `elevated_risk_level`. Charges authorized, blocked, or placed in review by custom rules have the value `rule`. See [understanding declines](https://stripe.com/docs/declines) for more details.
124
+ attr_reader :reason
125
+
126
+ # Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are `normal`, `elevated`, `highest`. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value `not_assessed`. In the event of an error in the evaluation, this field will have the value `unknown`. This field is only available with Radar.
127
+ attr_reader :risk_level
128
+
129
+ # Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
130
+ attr_reader :risk_score
131
+
132
+ # The ID of the Radar rule that matched the payment, if applicable.
133
+ attr_reader :rule
134
+
135
+ # A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
136
+ attr_reader :seller_message
137
+
138
+ # Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. See [understanding declines](https://stripe.com/docs/declines) and [Radar reviews](https://stripe.com/docs/radar/reviews) for details.
139
+ attr_reader :type
140
+ end
141
+
142
+ class PaymentMethodDetails < Stripe::StripeObject
143
+ class AchCreditTransfer < Stripe::StripeObject
144
+ # Account number to transfer funds to.
145
+ attr_reader :account_number
146
+
147
+ # Name of the bank associated with the routing number.
148
+ attr_reader :bank_name
149
+
150
+ # Routing transit number for the bank account to transfer funds to.
151
+ attr_reader :routing_number
152
+
153
+ # SWIFT code of the bank associated with the routing number.
154
+ attr_reader :swift_code
155
+ end
156
+
157
+ class AchDebit < Stripe::StripeObject
158
+ # Type of entity that holds the account. This can be either `individual` or `company`.
159
+ attr_reader :account_holder_type
160
+
161
+ # Name of the bank associated with the bank account.
162
+ attr_reader :bank_name
163
+
164
+ # Two-letter ISO code representing the country the bank account is located in.
165
+ attr_reader :country
166
+
167
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
168
+ attr_reader :fingerprint
169
+
170
+ # Last four digits of the bank account number.
171
+ attr_reader :last4
172
+
173
+ # Routing transit number of the bank account.
174
+ attr_reader :routing_number
175
+ end
176
+
177
+ class AcssDebit < Stripe::StripeObject
178
+ # Name of the bank associated with the bank account.
179
+ attr_reader :bank_name
180
+
181
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
182
+ attr_reader :fingerprint
183
+
184
+ # Institution number of the bank account
185
+ attr_reader :institution_number
186
+
187
+ # Last four digits of the bank account number.
188
+ attr_reader :last4
189
+
190
+ # ID of the mandate used to make this payment.
191
+ attr_reader :mandate
192
+
193
+ # Transit number of the bank account.
194
+ attr_reader :transit_number
195
+ end
196
+
197
+ class Affirm < Stripe::StripeObject
198
+ # The Affirm transaction ID associated with this payment.
199
+ attr_reader :transaction_id
200
+ end
201
+
202
+ class AfterpayClearpay < Stripe::StripeObject
203
+ # The Afterpay order ID associated with this payment intent.
204
+ attr_reader :order_id
205
+
206
+ # Order identifier shown to the merchant in Afterpay’s online portal.
207
+ attr_reader :reference
208
+ end
209
+
210
+ class Alipay < Stripe::StripeObject
211
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
212
+ attr_reader :buyer_id
213
+
214
+ # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
215
+ attr_reader :fingerprint
216
+
217
+ # Transaction ID of this particular Alipay transaction.
218
+ attr_reader :transaction_id
219
+ end
220
+
221
+ class Alma < Stripe::StripeObject; end
222
+
223
+ class AmazonPay < Stripe::StripeObject
224
+ class Funding < Stripe::StripeObject
225
+ class Card < Stripe::StripeObject
226
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
227
+ attr_reader :brand
228
+
229
+ # 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.
230
+ attr_reader :country
231
+
232
+ # Two-digit number representing the card's expiration month.
233
+ attr_reader :exp_month
234
+
235
+ # Four-digit number representing the card's expiration year.
236
+ attr_reader :exp_year
237
+
238
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
239
+ attr_reader :funding
240
+
241
+ # The last four digits of the card.
242
+ attr_reader :last4
243
+ end
244
+ # Attribute for field card
245
+ attr_reader :card
246
+
247
+ # funding type of the underlying payment method.
248
+ attr_reader :type
249
+ end
250
+ # Attribute for field funding
251
+ attr_reader :funding
252
+ end
253
+
254
+ class AuBecsDebit < Stripe::StripeObject
255
+ # Bank-State-Branch number of the bank account.
256
+ attr_reader :bsb_number
257
+
258
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
259
+ attr_reader :fingerprint
260
+
261
+ # Last four digits of the bank account number.
262
+ attr_reader :last4
263
+
264
+ # ID of the mandate used to make this payment.
265
+ attr_reader :mandate
266
+ end
267
+
268
+ class BacsDebit < Stripe::StripeObject
269
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
270
+ attr_reader :fingerprint
271
+
272
+ # Last four digits of the bank account number.
273
+ attr_reader :last4
274
+
275
+ # ID of the mandate used to make this payment.
276
+ attr_reader :mandate
277
+
278
+ # Sort code of the bank account. (e.g., `10-20-30`)
279
+ attr_reader :sort_code
280
+ end
281
+
282
+ class Bancontact < Stripe::StripeObject
283
+ # Bank code of bank associated with the bank account.
284
+ attr_reader :bank_code
285
+
286
+ # Name of the bank associated with the bank account.
287
+ attr_reader :bank_name
288
+
289
+ # Bank Identifier Code of the bank associated with the bank account.
290
+ attr_reader :bic
291
+
292
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
293
+ attr_reader :generated_sepa_debit
294
+
295
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
296
+ attr_reader :generated_sepa_debit_mandate
297
+
298
+ # Last four characters of the IBAN.
299
+ attr_reader :iban_last4
300
+
301
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
302
+ # Can be one of `en`, `de`, `fr`, or `nl`
303
+ attr_reader :preferred_language
304
+
305
+ # Owner's verified full name. Values are verified or provided by Bancontact directly
306
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
307
+ attr_reader :verified_name
308
+ end
309
+
310
+ class Blik < Stripe::StripeObject
311
+ # A unique and immutable identifier assigned by BLIK to every buyer.
312
+ attr_reader :buyer_id
313
+ end
314
+
315
+ class Boleto < Stripe::StripeObject
316
+ # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
317
+ attr_reader :tax_id
318
+ end
319
+
320
+ class Card < Stripe::StripeObject
321
+ class Checks < Stripe::StripeObject
322
+ # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
323
+ attr_reader :address_line1_check
324
+
325
+ # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
326
+ attr_reader :address_postal_code_check
327
+
328
+ # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
329
+ attr_reader :cvc_check
330
+ end
331
+
332
+ class DecrementalAuthorization < Stripe::StripeObject
333
+ # Indicates whether or not the decremental authorization feature is supported.
334
+ attr_reader :status
335
+ end
336
+
337
+ class ExtendedAuthorization < Stripe::StripeObject
338
+ # Indicates whether or not the capture window is extended beyond the standard authorization.
339
+ attr_reader :status
340
+ end
341
+
342
+ class IncrementalAuthorization < Stripe::StripeObject
343
+ # Indicates whether or not the incremental authorization feature is supported.
344
+ attr_reader :status
345
+ end
346
+
347
+ class Installments < Stripe::StripeObject
348
+ class Plan < Stripe::StripeObject
349
+ # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
350
+ attr_reader :count
351
+
352
+ # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
353
+ # One of `month`.
354
+ attr_reader :interval
355
+
356
+ # Type of installment plan, one of `fixed_count`.
357
+ attr_reader :type
358
+ end
359
+ # Installment plan selected for the payment.
360
+ attr_reader :plan
361
+ end
362
+
363
+ class Multicapture < Stripe::StripeObject
364
+ # Indicates whether or not multiple captures are supported.
365
+ attr_reader :status
366
+ end
367
+
368
+ class NetworkToken < Stripe::StripeObject
369
+ # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
370
+ attr_reader :used
371
+ end
372
+
373
+ class Overcapture < Stripe::StripeObject
374
+ # The maximum amount that can be captured.
375
+ attr_reader :maximum_amount_capturable
376
+
377
+ # Indicates whether or not the authorized amount can be over-captured.
378
+ attr_reader :status
379
+ end
380
+
381
+ class PartialAuthorization < Stripe::StripeObject
382
+ # Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
383
+ attr_reader :status
384
+ end
385
+
386
+ class ThreeDSecure < Stripe::StripeObject
387
+ # For authenticated transactions: how the customer was authenticated by
388
+ # the issuing bank.
389
+ attr_reader :authentication_flow
390
+
391
+ # The Electronic Commerce Indicator (ECI). A protocol-level field
392
+ # indicating what degree of authentication was performed.
393
+ attr_reader :electronic_commerce_indicator
394
+
395
+ # The exemption requested via 3DS and accepted by the issuer at authentication time.
396
+ attr_reader :exemption_indicator
397
+
398
+ # Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
399
+ # the outcome of Stripe's internal risk assessment.
400
+ attr_reader :exemption_indicator_applied
401
+
402
+ # Indicates the outcome of 3D Secure authentication.
403
+ attr_reader :result
404
+
405
+ # Additional information about why 3D Secure succeeded or failed based
406
+ # on the `result`.
407
+ attr_reader :result_reason
408
+
409
+ # The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
410
+ # (dsTransId) for this payment.
411
+ attr_reader :transaction_id
412
+
413
+ # The version of 3D Secure that was used.
414
+ attr_reader :version
415
+ end
416
+
417
+ class Wallet < Stripe::StripeObject
418
+ class AmexExpressCheckout < Stripe::StripeObject; end
419
+ class ApplePay < Stripe::StripeObject; end
420
+ class GooglePay < Stripe::StripeObject; end
421
+ class Link < Stripe::StripeObject; end
422
+
423
+ class Masterpass < Stripe::StripeObject
424
+ class BillingAddress < Stripe::StripeObject
425
+ # City, district, suburb, town, or village.
426
+ attr_reader :city
427
+
428
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
429
+ attr_reader :country
430
+
431
+ # Address line 1 (e.g., street, PO Box, or company name).
432
+ attr_reader :line1
433
+
434
+ # Address line 2 (e.g., apartment, suite, unit, or building).
435
+ attr_reader :line2
436
+
437
+ # ZIP or postal code.
438
+ attr_reader :postal_code
439
+
440
+ # State, county, province, or region.
441
+ attr_reader :state
442
+ end
443
+
444
+ class ShippingAddress < Stripe::StripeObject
445
+ # City, district, suburb, town, or village.
446
+ attr_reader :city
447
+
448
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
449
+ attr_reader :country
450
+
451
+ # Address line 1 (e.g., street, PO Box, or company name).
452
+ attr_reader :line1
453
+
454
+ # Address line 2 (e.g., apartment, suite, unit, or building).
455
+ attr_reader :line2
456
+
457
+ # ZIP or postal code.
458
+ attr_reader :postal_code
459
+
460
+ # State, county, province, or region.
461
+ attr_reader :state
462
+ end
463
+ # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
464
+ attr_reader :billing_address
465
+
466
+ # Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
467
+ attr_reader :email
468
+
469
+ # Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
470
+ attr_reader :name
471
+
472
+ # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
473
+ attr_reader :shipping_address
474
+ end
475
+
476
+ class SamsungPay < Stripe::StripeObject; end
477
+
478
+ class VisaCheckout < Stripe::StripeObject
479
+ class BillingAddress < Stripe::StripeObject
480
+ # City, district, suburb, town, or village.
481
+ attr_reader :city
482
+
483
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
484
+ attr_reader :country
485
+
486
+ # Address line 1 (e.g., street, PO Box, or company name).
487
+ attr_reader :line1
488
+
489
+ # Address line 2 (e.g., apartment, suite, unit, or building).
490
+ attr_reader :line2
491
+
492
+ # ZIP or postal code.
493
+ attr_reader :postal_code
494
+
495
+ # State, county, province, or region.
496
+ attr_reader :state
497
+ end
498
+
499
+ class ShippingAddress < Stripe::StripeObject
500
+ # City, district, suburb, town, or village.
501
+ attr_reader :city
502
+
503
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
504
+ attr_reader :country
505
+
506
+ # Address line 1 (e.g., street, PO Box, or company name).
507
+ attr_reader :line1
508
+
509
+ # Address line 2 (e.g., apartment, suite, unit, or building).
510
+ attr_reader :line2
511
+
512
+ # ZIP or postal code.
513
+ attr_reader :postal_code
514
+
515
+ # State, county, province, or region.
516
+ attr_reader :state
517
+ end
518
+ # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
519
+ attr_reader :billing_address
520
+
521
+ # Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
522
+ attr_reader :email
523
+
524
+ # Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
525
+ attr_reader :name
526
+
527
+ # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
528
+ attr_reader :shipping_address
529
+ end
530
+ # Attribute for field amex_express_checkout
531
+ attr_reader :amex_express_checkout
532
+
533
+ # Attribute for field apple_pay
534
+ attr_reader :apple_pay
535
+
536
+ # (For tokenized numbers only.) The last four digits of the device account number.
537
+ attr_reader :dynamic_last4
538
+
539
+ # Attribute for field google_pay
540
+ attr_reader :google_pay
541
+
542
+ # Attribute for field link
543
+ attr_reader :link
544
+
545
+ # Attribute for field masterpass
546
+ attr_reader :masterpass
547
+
548
+ # Attribute for field samsung_pay
549
+ attr_reader :samsung_pay
550
+
551
+ # The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
552
+ attr_reader :type
553
+
554
+ # Attribute for field visa_checkout
555
+ attr_reader :visa_checkout
556
+ end
557
+ # The authorized amount.
558
+ attr_reader :amount_authorized
559
+
560
+ # The latest amount intended to be authorized by this charge.
561
+ attr_reader :amount_requested
562
+
563
+ # Authorization code on the charge.
564
+ attr_reader :authorization_code
565
+
566
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
567
+ attr_reader :brand
568
+
569
+ # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
570
+ attr_reader :capture_before
571
+
572
+ # Check results by Card networks on Card address and CVC at time of payment.
573
+ attr_reader :checks
574
+
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
+
578
+ # Attribute for field decremental_authorization
579
+ attr_reader :decremental_authorization
580
+
581
+ # 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.)
582
+ attr_reader :description
583
+
584
+ # Two-digit number representing the card's expiration month.
585
+ attr_reader :exp_month
586
+
587
+ # Four-digit number representing the card's expiration year.
588
+ attr_reader :exp_year
589
+
590
+ # Attribute for field extended_authorization
591
+ attr_reader :extended_authorization
592
+
593
+ # 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.
594
+ #
595
+ # *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.*
596
+ attr_reader :fingerprint
597
+
598
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
599
+ attr_reader :funding
600
+
601
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
602
+ attr_reader :iin
603
+
604
+ # Attribute for field incremental_authorization
605
+ attr_reader :incremental_authorization
606
+
607
+ # Installment details for this payment (Mexico only).
608
+ #
609
+ # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
610
+ attr_reader :installments
611
+
612
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
613
+ attr_reader :issuer
614
+
615
+ # The last four digits of the card.
616
+ attr_reader :last4
617
+
618
+ # ID of the mandate used to make this payment or created by it.
619
+ attr_reader :mandate
620
+
621
+ # True if this payment was marked as MOTO and out of scope for SCA.
622
+ attr_reader :moto
623
+
624
+ # Attribute for field multicapture
625
+ attr_reader :multicapture
626
+
627
+ # 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`.
628
+ attr_reader :network
629
+
630
+ # If this card has network token credentials, this contains the details of the network token credentials.
631
+ attr_reader :network_token
632
+
633
+ # 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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
634
+ attr_reader :network_transaction_id
635
+
636
+ # Attribute for field overcapture
637
+ attr_reader :overcapture
638
+
639
+ # Attribute for field partial_authorization
640
+ attr_reader :partial_authorization
641
+
642
+ # Status of a card based on the card issuer.
643
+ attr_reader :regulated_status
644
+
645
+ # Populated if this transaction used 3D Secure authentication.
646
+ attr_reader :three_d_secure
647
+
648
+ # If this Card is part of a card wallet, this contains the details of the card wallet.
649
+ attr_reader :wallet
650
+ end
651
+
652
+ class CardPresent < Stripe::StripeObject
653
+ class Offline < Stripe::StripeObject
654
+ # Time at which the payment was collected while offline
655
+ attr_reader :stored_at
656
+
657
+ # The method used to process this payment method offline. Only deferred is allowed.
658
+ attr_reader :type
659
+ end
660
+
661
+ class Receipt < Stripe::StripeObject
662
+ # The type of account being debited or credited
663
+ attr_reader :account_type
664
+
665
+ # EMV tag 9F26, cryptogram generated by the integrated circuit chip.
666
+ attr_reader :application_cryptogram
667
+
668
+ # Mnenomic of the Application Identifier.
669
+ attr_reader :application_preferred_name
670
+
671
+ # Identifier for this transaction.
672
+ attr_reader :authorization_code
673
+
674
+ # EMV tag 8A. A code returned by the card issuer.
675
+ attr_reader :authorization_response_code
676
+
677
+ # 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`.
678
+ attr_reader :cardholder_verification_method
679
+
680
+ # EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
681
+ attr_reader :dedicated_file_name
682
+
683
+ # The outcome of a series of EMV functions performed by the card reader.
684
+ attr_reader :terminal_verification_results
685
+
686
+ # An indication of various EMV functions performed during the transaction.
687
+ attr_reader :transaction_status_information
688
+ end
689
+
690
+ class Wallet < Stripe::StripeObject
691
+ # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
692
+ attr_reader :type
693
+ end
694
+ # The authorized amount
695
+ attr_reader :amount_authorized
696
+
697
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
698
+ attr_reader :brand
699
+
700
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
701
+ attr_reader :brand_product
702
+
703
+ # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
704
+ attr_reader :capture_before
705
+
706
+ # 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.
707
+ attr_reader :cardholder_name
708
+
709
+ # 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.
710
+ attr_reader :country
711
+
712
+ # 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.)
713
+ attr_reader :description
714
+
715
+ # Authorization response cryptogram.
716
+ attr_reader :emv_auth_data
717
+
718
+ # Two-digit number representing the card's expiration month.
719
+ attr_reader :exp_month
720
+
721
+ # Four-digit number representing the card's expiration year.
722
+ attr_reader :exp_year
723
+
724
+ # 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.
725
+ #
726
+ # *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.*
727
+ attr_reader :fingerprint
728
+
729
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
730
+ attr_reader :funding
731
+
732
+ # 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.
733
+ attr_reader :generated_card
734
+
735
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
736
+ attr_reader :iin
737
+
738
+ # 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).
739
+ attr_reader :incremental_authorization_supported
740
+
741
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
742
+ attr_reader :issuer
743
+
744
+ # The last four digits of the card.
745
+ attr_reader :last4
746
+
747
+ # 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`.
748
+ attr_reader :network
749
+
750
+ # 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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
751
+ attr_reader :network_transaction_id
752
+
753
+ # Details about payments collected offline.
754
+ attr_reader :offline
755
+
756
+ # Defines whether the authorized amount can be over-captured or not
757
+ attr_reader :overcapture_supported
758
+
759
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
760
+ attr_reader :preferred_locales
761
+
762
+ # How card details were read in this transaction.
763
+ attr_reader :read_method
764
+
765
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
766
+ attr_reader :receipt
767
+
768
+ # Attribute for field wallet
769
+ attr_reader :wallet
770
+ end
771
+
772
+ class Cashapp < Stripe::StripeObject
773
+ # A unique and immutable identifier assigned by Cash App to every buyer.
774
+ attr_reader :buyer_id
775
+
776
+ # A public identifier for buyers using Cash App.
777
+ attr_reader :cashtag
778
+ end
779
+
780
+ class CustomerBalance < Stripe::StripeObject; end
781
+
782
+ class Eps < Stripe::StripeObject
783
+ # 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`.
784
+ attr_reader :bank
785
+
786
+ # Owner's verified full name. Values are verified or provided by EPS directly
787
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
788
+ # EPS rarely provides this information so the attribute is usually empty.
789
+ attr_reader :verified_name
790
+ end
791
+
792
+ class Fpx < Stripe::StripeObject
793
+ # Account holder type, if provided. Can be one of `individual` or `company`.
794
+ attr_reader :account_holder_type
795
+
796
+ # 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`.
797
+ attr_reader :bank
798
+
799
+ # Unique transaction id generated by FPX for every request from the merchant
800
+ attr_reader :transaction_id
801
+ end
802
+
803
+ class Giropay < Stripe::StripeObject
804
+ # Bank code of bank associated with the bank account.
805
+ attr_reader :bank_code
806
+
807
+ # Name of the bank associated with the bank account.
808
+ attr_reader :bank_name
809
+
810
+ # Bank Identifier Code of the bank associated with the bank account.
811
+ attr_reader :bic
812
+
813
+ # Owner's verified full name. Values are verified or provided by Giropay directly
814
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
815
+ # Giropay rarely provides this information so the attribute is usually empty.
816
+ attr_reader :verified_name
817
+ end
818
+
819
+ class Gopay < Stripe::StripeObject; end
820
+
821
+ class Grabpay < Stripe::StripeObject
822
+ # Unique transaction id generated by GrabPay
823
+ attr_reader :transaction_id
824
+ end
825
+
826
+ class IdBankTransfer < Stripe::StripeObject
827
+ # Account number of the bank account to transfer funds to.
828
+ attr_reader :account_number
829
+
830
+ # Bank where the account is located.
831
+ attr_reader :bank
832
+
833
+ # Local bank code of the bank.
834
+ attr_reader :bank_code
835
+
836
+ # Name of the bank associated with the bank account.
837
+ attr_reader :bank_name
838
+
839
+ # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
840
+ attr_reader :display_name
841
+ end
842
+
843
+ class Ideal < Stripe::StripeObject
844
+ # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
845
+ attr_reader :bank
846
+
847
+ # The Bank Identifier Code of the customer's bank.
848
+ attr_reader :bic
849
+
850
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
851
+ attr_reader :generated_sepa_debit
852
+
853
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
854
+ attr_reader :generated_sepa_debit_mandate
855
+
856
+ # Last four characters of the IBAN.
857
+ attr_reader :iban_last4
858
+
859
+ # Owner's verified full name. Values are verified or provided by iDEAL directly
860
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
861
+ attr_reader :verified_name
862
+ end
863
+
864
+ class InteracPresent < Stripe::StripeObject
865
+ class Receipt < Stripe::StripeObject
866
+ # The type of account being debited or credited
867
+ attr_reader :account_type
868
+
869
+ # EMV tag 9F26, cryptogram generated by the integrated circuit chip.
870
+ attr_reader :application_cryptogram
871
+
872
+ # Mnenomic of the Application Identifier.
873
+ attr_reader :application_preferred_name
874
+
875
+ # Identifier for this transaction.
876
+ attr_reader :authorization_code
877
+
878
+ # EMV tag 8A. A code returned by the card issuer.
879
+ attr_reader :authorization_response_code
880
+
881
+ # 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`.
882
+ attr_reader :cardholder_verification_method
883
+
884
+ # EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
885
+ attr_reader :dedicated_file_name
886
+
887
+ # The outcome of a series of EMV functions performed by the card reader.
888
+ attr_reader :terminal_verification_results
889
+
890
+ # An indication of various EMV functions performed during the transaction.
891
+ attr_reader :transaction_status_information
892
+ end
893
+ # Card brand. Can be `interac`, `mastercard` or `visa`.
894
+ attr_reader :brand
895
+
896
+ # 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.
897
+ attr_reader :cardholder_name
898
+
899
+ # 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.
900
+ attr_reader :country
901
+
902
+ # 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.)
903
+ attr_reader :description
904
+
905
+ # Authorization response cryptogram.
906
+ attr_reader :emv_auth_data
907
+
908
+ # Two-digit number representing the card's expiration month.
909
+ attr_reader :exp_month
910
+
911
+ # Four-digit number representing the card's expiration year.
912
+ attr_reader :exp_year
913
+
914
+ # 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.
915
+ #
916
+ # *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.*
917
+ attr_reader :fingerprint
918
+
919
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
920
+ attr_reader :funding
921
+
922
+ # 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.
923
+ attr_reader :generated_card
924
+
925
+ # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
926
+ attr_reader :iin
927
+
928
+ # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
929
+ attr_reader :issuer
930
+
931
+ # The last four digits of the card.
932
+ attr_reader :last4
933
+
934
+ # 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`.
935
+ attr_reader :network
936
+
937
+ # 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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
938
+ attr_reader :network_transaction_id
939
+
940
+ # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
941
+ attr_reader :preferred_locales
942
+
943
+ # How card details were read in this transaction.
944
+ attr_reader :read_method
945
+
946
+ # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
947
+ attr_reader :receipt
948
+ end
949
+
950
+ class KakaoPay < Stripe::StripeObject
951
+ # A unique identifier for the buyer as determined by the local payment processor.
952
+ attr_reader :buyer_id
953
+ end
954
+
955
+ class Klarna < Stripe::StripeObject
956
+ class PayerDetails < Stripe::StripeObject
957
+ class Address < Stripe::StripeObject
958
+ # The payer address country
959
+ attr_reader :country
960
+ end
961
+ # The payer's address
962
+ attr_reader :address
963
+ end
964
+ # The payer details for this transaction.
965
+ attr_reader :payer_details
966
+
967
+ # The Klarna payment method used for this transaction.
968
+ # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
969
+ attr_reader :payment_method_category
970
+
971
+ # Preferred language of the Klarna authorization page that the customer is redirected to.
972
+ # 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`
973
+ attr_reader :preferred_locale
974
+ end
975
+
976
+ class Konbini < Stripe::StripeObject
977
+ class Store < Stripe::StripeObject
978
+ # The name of the convenience store chain where the payment was completed.
979
+ attr_reader :chain
980
+ end
981
+ # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
982
+ attr_reader :store
983
+ end
984
+
985
+ class KrCard < Stripe::StripeObject
986
+ # The local credit or debit card brand.
987
+ attr_reader :brand
988
+
989
+ # A unique identifier for the buyer as determined by the local payment processor.
990
+ attr_reader :buyer_id
991
+
992
+ # The last four digits of the card. This may not be present for American Express cards.
993
+ attr_reader :last4
994
+ end
995
+
996
+ class Link < Stripe::StripeObject
997
+ # Two-letter ISO code representing the funding source country beneath the Link payment.
998
+ # You could use this attribute to get a sense of international fees.
999
+ attr_reader :country
1000
+ end
1001
+
1002
+ class MbWay < Stripe::StripeObject; end
1003
+
1004
+ class Mobilepay < Stripe::StripeObject
1005
+ class Card < Stripe::StripeObject
1006
+ # Brand of the card used in the transaction
1007
+ attr_reader :brand
1008
+
1009
+ # Two-letter ISO code representing the country of the card
1010
+ attr_reader :country
1011
+
1012
+ # Two digit number representing the card's expiration month
1013
+ attr_reader :exp_month
1014
+
1015
+ # Two digit number representing the card's expiration year
1016
+ attr_reader :exp_year
1017
+
1018
+ # The last 4 digits of the card
1019
+ attr_reader :last4
1020
+ end
1021
+ # Internal card details
1022
+ attr_reader :card
1023
+ end
1024
+
1025
+ class Multibanco < Stripe::StripeObject
1026
+ # Entity number associated with this Multibanco payment.
1027
+ attr_reader :entity
1028
+
1029
+ # Reference number associated with this Multibanco payment.
1030
+ attr_reader :reference
1031
+ end
1032
+
1033
+ class NaverPay < Stripe::StripeObject
1034
+ # A unique identifier for the buyer as determined by the local payment processor.
1035
+ attr_reader :buyer_id
1036
+ end
1037
+
1038
+ class Oxxo < Stripe::StripeObject
1039
+ # OXXO reference number
1040
+ attr_reader :number
1041
+ end
1042
+
1043
+ class P24 < Stripe::StripeObject
1044
+ # 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`.
1045
+ attr_reader :bank
1046
+
1047
+ # Unique reference for this Przelewy24 payment.
1048
+ attr_reader :reference
1049
+
1050
+ # Owner's verified full name. Values are verified or provided by Przelewy24 directly
1051
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1052
+ # Przelewy24 rarely provides this information so the attribute is usually empty.
1053
+ attr_reader :verified_name
1054
+ end
1055
+
1056
+ class Payco < Stripe::StripeObject
1057
+ # A unique identifier for the buyer as determined by the local payment processor.
1058
+ attr_reader :buyer_id
1059
+ end
1060
+
1061
+ class Paynow < Stripe::StripeObject
1062
+ # Reference number associated with this PayNow payment
1063
+ attr_reader :reference
1064
+ end
1065
+
1066
+ class Paypal < Stripe::StripeObject
1067
+ class SellerProtection < Stripe::StripeObject
1068
+ # An array of conditions that are covered for the transaction, if applicable.
1069
+ attr_reader :dispute_categories
1070
+
1071
+ # Indicates whether the transaction is eligible for PayPal's seller protection.
1072
+ attr_reader :status
1073
+ end
1074
+
1075
+ class Shipping < Stripe::StripeObject
1076
+ # City, district, suburb, town, or village.
1077
+ attr_reader :city
1078
+
1079
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1080
+ attr_reader :country
1081
+
1082
+ # Address line 1 (e.g., street, PO Box, or company name).
1083
+ attr_reader :line1
1084
+
1085
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1086
+ attr_reader :line2
1087
+
1088
+ # ZIP or postal code.
1089
+ attr_reader :postal_code
1090
+
1091
+ # State, county, province, or region.
1092
+ attr_reader :state
1093
+ end
1094
+
1095
+ class VerifiedAddress < Stripe::StripeObject
1096
+ # City, district, suburb, town, or village.
1097
+ attr_reader :city
1098
+
1099
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1100
+ attr_reader :country
1101
+
1102
+ # Address line 1 (e.g., street, PO Box, or company name).
1103
+ attr_reader :line1
1104
+
1105
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1106
+ attr_reader :line2
1107
+
1108
+ # ZIP or postal code.
1109
+ attr_reader :postal_code
1110
+
1111
+ # State, county, province, or region.
1112
+ attr_reader :state
1113
+ end
1114
+ # Owner's email. Values are provided by PayPal directly
1115
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1116
+ attr_reader :payer_email
1117
+
1118
+ # PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1119
+ attr_reader :payer_id
1120
+
1121
+ # Owner's full name. Values provided by PayPal directly
1122
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1123
+ attr_reader :payer_name
1124
+
1125
+ # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
1126
+ attr_reader :seller_protection
1127
+
1128
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
1129
+ # execution. This shipping address will not be updated if the merchant updates the shipping
1130
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1131
+ attr_reader :shipping
1132
+
1133
+ # A unique ID generated by PayPal for this transaction.
1134
+ attr_reader :transaction_id
1135
+
1136
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
1137
+ # execution. This shipping address will not be updated if the merchant updates the shipping
1138
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1139
+ attr_reader :verified_address
1140
+
1141
+ # Owner's verified email. Values are verified or provided by PayPal directly
1142
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1143
+ attr_reader :verified_email
1144
+
1145
+ # Owner's verified full name. Values are verified or provided by PayPal directly
1146
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1147
+ attr_reader :verified_name
1148
+ end
1149
+
1150
+ class Payto < Stripe::StripeObject
1151
+ # Bank-State-Branch number of the bank account.
1152
+ attr_reader :bsb_number
1153
+
1154
+ # Last four digits of the bank account number.
1155
+ attr_reader :last4
1156
+
1157
+ # ID of the mandate used to make this payment.
1158
+ attr_reader :mandate
1159
+
1160
+ # The PayID alias for the bank account.
1161
+ attr_reader :pay_id
1162
+ end
1163
+
1164
+ class Pix < Stripe::StripeObject
1165
+ # Unique transaction id generated by BCB
1166
+ attr_reader :bank_transaction_id
1167
+ end
1168
+
1169
+ class Promptpay < Stripe::StripeObject
1170
+ # Bill reference generated by PromptPay
1171
+ attr_reader :reference
1172
+ end
1173
+
1174
+ class Qris < Stripe::StripeObject; end
1175
+ class Rechnung < Stripe::StripeObject; end
1176
+
1177
+ class RevolutPay < Stripe::StripeObject
1178
+ class Funding < Stripe::StripeObject
1179
+ class Card < Stripe::StripeObject
1180
+ # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
1181
+ attr_reader :brand
1182
+
1183
+ # 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.
1184
+ attr_reader :country
1185
+
1186
+ # Two-digit number representing the card's expiration month.
1187
+ attr_reader :exp_month
1188
+
1189
+ # Four-digit number representing the card's expiration year.
1190
+ attr_reader :exp_year
1191
+
1192
+ # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
1193
+ attr_reader :funding
1194
+
1195
+ # The last four digits of the card.
1196
+ attr_reader :last4
1197
+ end
1198
+ # Attribute for field card
1199
+ attr_reader :card
1200
+
1201
+ # funding type of the underlying payment method.
1202
+ attr_reader :type
1203
+ end
1204
+ # Attribute for field funding
1205
+ attr_reader :funding
1206
+ end
1207
+
1208
+ class SamsungPay < Stripe::StripeObject
1209
+ # A unique identifier for the buyer as determined by the local payment processor.
1210
+ attr_reader :buyer_id
1211
+ end
1212
+
1213
+ class SepaCreditTransfer < Stripe::StripeObject
1214
+ # Name of the bank associated with the bank account.
1215
+ attr_reader :bank_name
1216
+
1217
+ # Bank Identifier Code of the bank associated with the bank account.
1218
+ attr_reader :bic
1219
+
1220
+ # IBAN of the bank account to transfer funds to.
1221
+ attr_reader :iban
1222
+ end
1223
+
1224
+ class SepaDebit < Stripe::StripeObject
1225
+ # Bank code of bank associated with the bank account.
1226
+ attr_reader :bank_code
1227
+
1228
+ # Branch code of bank associated with the bank account.
1229
+ attr_reader :branch_code
1230
+
1231
+ # Two-letter ISO code representing the country the bank account is located in.
1232
+ attr_reader :country
1233
+
1234
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1235
+ attr_reader :fingerprint
1236
+
1237
+ # Last four characters of the IBAN.
1238
+ attr_reader :last4
1239
+
1240
+ # 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).
1241
+ attr_reader :mandate
1242
+ end
1243
+
1244
+ class Shopeepay < Stripe::StripeObject; end
1245
+
1246
+ class Sofort < Stripe::StripeObject
1247
+ # Bank code of bank associated with the bank account.
1248
+ attr_reader :bank_code
1249
+
1250
+ # Name of the bank associated with the bank account.
1251
+ attr_reader :bank_name
1252
+
1253
+ # Bank Identifier Code of the bank associated with the bank account.
1254
+ attr_reader :bic
1255
+
1256
+ # Two-letter ISO code representing the country the bank account is located in.
1257
+ attr_reader :country
1258
+
1259
+ # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1260
+ attr_reader :generated_sepa_debit
1261
+
1262
+ # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge.
1263
+ attr_reader :generated_sepa_debit_mandate
1264
+
1265
+ # Last four characters of the IBAN.
1266
+ attr_reader :iban_last4
1267
+
1268
+ # Preferred language of the SOFORT authorization page that the customer is redirected to.
1269
+ # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
1270
+ attr_reader :preferred_language
1271
+
1272
+ # Owner's verified full name. Values are verified or provided by SOFORT directly
1273
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1274
+ attr_reader :verified_name
1275
+ end
1276
+
1277
+ class StripeAccount < Stripe::StripeObject; end
1278
+
1279
+ class Swish < Stripe::StripeObject
1280
+ # 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
1281
+ attr_reader :fingerprint
1282
+
1283
+ # Payer bank reference number for the payment
1284
+ attr_reader :payment_reference
1285
+
1286
+ # The last four digits of the Swish account phone number
1287
+ attr_reader :verified_phone_last4
1288
+ end
1289
+
1290
+ class Twint < Stripe::StripeObject; end
1291
+
1292
+ class UsBankAccount < Stripe::StripeObject
1293
+ # Account holder type: individual or company.
1294
+ attr_reader :account_holder_type
1295
+
1296
+ # Account type: checkings or savings. Defaults to checking if omitted.
1297
+ attr_reader :account_type
1298
+
1299
+ # Name of the bank associated with the bank account.
1300
+ attr_reader :bank_name
1301
+
1302
+ # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
1303
+ attr_reader :fingerprint
1304
+
1305
+ # Last four digits of the bank account number.
1306
+ attr_reader :last4
1307
+
1308
+ # ID of the mandate used to make this payment.
1309
+ attr_reader :mandate
1310
+
1311
+ # Reference number to locate ACH payments with customer's bank.
1312
+ attr_reader :payment_reference
1313
+
1314
+ # Routing number of the bank account.
1315
+ attr_reader :routing_number
1316
+ end
1317
+
1318
+ class Wechat < Stripe::StripeObject; end
1319
+
1320
+ class WechatPay < Stripe::StripeObject
1321
+ # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
1322
+ attr_reader :fingerprint
1323
+
1324
+ # Transaction ID of this particular WeChat Pay transaction.
1325
+ attr_reader :transaction_id
1326
+ end
1327
+
1328
+ class Zip < Stripe::StripeObject; end
1329
+ # Attribute for field ach_credit_transfer
1330
+ attr_reader :ach_credit_transfer
1331
+
1332
+ # Attribute for field ach_debit
1333
+ attr_reader :ach_debit
1334
+
1335
+ # Attribute for field acss_debit
1336
+ attr_reader :acss_debit
1337
+
1338
+ # Attribute for field affirm
1339
+ attr_reader :affirm
1340
+
1341
+ # Attribute for field afterpay_clearpay
1342
+ attr_reader :afterpay_clearpay
1343
+
1344
+ # Attribute for field alipay
1345
+ attr_reader :alipay
1346
+
1347
+ # Attribute for field alma
1348
+ attr_reader :alma
1349
+
1350
+ # Attribute for field amazon_pay
1351
+ attr_reader :amazon_pay
1352
+
1353
+ # Attribute for field au_becs_debit
1354
+ attr_reader :au_becs_debit
1355
+
1356
+ # Attribute for field bacs_debit
1357
+ attr_reader :bacs_debit
1358
+
1359
+ # Attribute for field bancontact
1360
+ attr_reader :bancontact
1361
+
1362
+ # Attribute for field blik
1363
+ attr_reader :blik
1364
+
1365
+ # Attribute for field boleto
1366
+ attr_reader :boleto
1367
+
1368
+ # Attribute for field card
1369
+ attr_reader :card
1370
+
1371
+ # Attribute for field card_present
1372
+ attr_reader :card_present
1373
+
1374
+ # Attribute for field cashapp
1375
+ attr_reader :cashapp
1376
+
1377
+ # Attribute for field customer_balance
1378
+ attr_reader :customer_balance
1379
+
1380
+ # Attribute for field eps
1381
+ attr_reader :eps
1382
+
1383
+ # Attribute for field fpx
1384
+ attr_reader :fpx
1385
+
1386
+ # Attribute for field giropay
1387
+ attr_reader :giropay
1388
+
1389
+ # Attribute for field gopay
1390
+ attr_reader :gopay
1391
+
1392
+ # Attribute for field grabpay
1393
+ attr_reader :grabpay
1394
+
1395
+ # Attribute for field id_bank_transfer
1396
+ attr_reader :id_bank_transfer
1397
+
1398
+ # Attribute for field ideal
1399
+ attr_reader :ideal
1400
+
1401
+ # Attribute for field interac_present
1402
+ attr_reader :interac_present
1403
+
1404
+ # Attribute for field kakao_pay
1405
+ attr_reader :kakao_pay
1406
+
1407
+ # Attribute for field klarna
1408
+ attr_reader :klarna
1409
+
1410
+ # Attribute for field konbini
1411
+ attr_reader :konbini
1412
+
1413
+ # Attribute for field kr_card
1414
+ attr_reader :kr_card
1415
+
1416
+ # Attribute for field link
1417
+ attr_reader :link
1418
+
1419
+ # Attribute for field mb_way
1420
+ attr_reader :mb_way
1421
+
1422
+ # Attribute for field mobilepay
1423
+ attr_reader :mobilepay
1424
+
1425
+ # Attribute for field multibanco
1426
+ attr_reader :multibanco
1427
+
1428
+ # Attribute for field naver_pay
1429
+ attr_reader :naver_pay
1430
+
1431
+ # Attribute for field oxxo
1432
+ attr_reader :oxxo
1433
+
1434
+ # Attribute for field p24
1435
+ attr_reader :p24
1436
+
1437
+ # Attribute for field payco
1438
+ attr_reader :payco
1439
+
1440
+ # Attribute for field paynow
1441
+ attr_reader :paynow
1442
+
1443
+ # Attribute for field paypal
1444
+ attr_reader :paypal
1445
+
1446
+ # Attribute for field payto
1447
+ attr_reader :payto
1448
+
1449
+ # Attribute for field pix
1450
+ attr_reader :pix
1451
+
1452
+ # Attribute for field promptpay
1453
+ attr_reader :promptpay
1454
+
1455
+ # Attribute for field qris
1456
+ attr_reader :qris
1457
+
1458
+ # Attribute for field rechnung
1459
+ attr_reader :rechnung
1460
+
1461
+ # Attribute for field revolut_pay
1462
+ attr_reader :revolut_pay
1463
+
1464
+ # Attribute for field samsung_pay
1465
+ attr_reader :samsung_pay
1466
+
1467
+ # Attribute for field sepa_credit_transfer
1468
+ attr_reader :sepa_credit_transfer
1469
+
1470
+ # Attribute for field sepa_debit
1471
+ attr_reader :sepa_debit
1472
+
1473
+ # Attribute for field shopeepay
1474
+ attr_reader :shopeepay
1475
+
1476
+ # Attribute for field sofort
1477
+ attr_reader :sofort
1478
+
1479
+ # Attribute for field stripe_account
1480
+ attr_reader :stripe_account
1481
+
1482
+ # Attribute for field swish
1483
+ attr_reader :swish
1484
+
1485
+ # Attribute for field twint
1486
+ attr_reader :twint
1487
+
1488
+ # The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
1489
+ # An additional hash is included on `payment_method_details` with a name matching this value.
1490
+ # It contains information specific to the payment method.
1491
+ attr_reader :type
1492
+
1493
+ # Attribute for field us_bank_account
1494
+ attr_reader :us_bank_account
1495
+
1496
+ # Attribute for field wechat
1497
+ attr_reader :wechat
1498
+
1499
+ # Attribute for field wechat_pay
1500
+ attr_reader :wechat_pay
1501
+
1502
+ # Attribute for field zip
1503
+ attr_reader :zip
1504
+ end
1505
+
1506
+ class RadarOptions < Stripe::StripeObject
1507
+ # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
1508
+ attr_reader :session
1509
+ end
1510
+
1511
+ class Shipping < Stripe::StripeObject
1512
+ class Address < Stripe::StripeObject
1513
+ # City, district, suburb, town, or village.
1514
+ attr_reader :city
1515
+
1516
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1517
+ attr_reader :country
1518
+
1519
+ # Address line 1 (e.g., street, PO Box, or company name).
1520
+ attr_reader :line1
1521
+
1522
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1523
+ attr_reader :line2
1524
+
1525
+ # ZIP or postal code.
1526
+ attr_reader :postal_code
1527
+
1528
+ # State, county, province, or region.
1529
+ attr_reader :state
1530
+ end
1531
+ # Attribute for field address
1532
+ attr_reader :address
1533
+
1534
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
1535
+ attr_reader :carrier
1536
+
1537
+ # Recipient name.
1538
+ attr_reader :name
1539
+
1540
+ # Recipient phone (including extension).
1541
+ attr_reader :phone
1542
+
1543
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
1544
+ attr_reader :tracking_number
1545
+ end
1546
+
1547
+ class TransferData < Stripe::StripeObject
1548
+ # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1549
+ attr_reader :amount
1550
+
1551
+ # ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.
1552
+ attr_reader :destination
1553
+ end
1554
+
1555
+ class ListParams < Stripe::RequestParams
1556
+ class Created < Stripe::RequestParams
1557
+ # Minimum value to filter by (exclusive)
1558
+ attr_accessor :gt
1559
+
1560
+ # Minimum value to filter by (inclusive)
1561
+ attr_accessor :gte
1562
+
1563
+ # Maximum value to filter by (exclusive)
1564
+ attr_accessor :lt
1565
+
1566
+ # Maximum value to filter by (inclusive)
1567
+ attr_accessor :lte
1568
+
1569
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
1570
+ @gt = gt
1571
+ @gte = gte
1572
+ @lt = lt
1573
+ @lte = lte
1574
+ end
1575
+ end
1576
+ # Only return charges that were created during the given date interval.
1577
+ attr_accessor :created
1578
+
1579
+ # Only return charges for the customer specified by this customer ID.
1580
+ attr_accessor :customer
1581
+
1582
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
1583
+ attr_accessor :ending_before
1584
+
1585
+ # Specifies which fields in the response should be expanded.
1586
+ attr_accessor :expand
1587
+
1588
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
1589
+ attr_accessor :limit
1590
+
1591
+ # Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.
1592
+ attr_accessor :payment_intent
1593
+
1594
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
1595
+ attr_accessor :starting_after
1596
+
1597
+ # Only return charges for this transfer group, limited to 100.
1598
+ attr_accessor :transfer_group
1599
+
1600
+ def initialize(
1601
+ created: nil,
1602
+ customer: nil,
1603
+ ending_before: nil,
1604
+ expand: nil,
1605
+ limit: nil,
1606
+ payment_intent: nil,
1607
+ starting_after: nil,
1608
+ transfer_group: nil
1609
+ )
1610
+ @created = created
1611
+ @customer = customer
1612
+ @ending_before = ending_before
1613
+ @expand = expand
1614
+ @limit = limit
1615
+ @payment_intent = payment_intent
1616
+ @starting_after = starting_after
1617
+ @transfer_group = transfer_group
1618
+ end
1619
+ end
1620
+
1621
+ class CreateParams < Stripe::RequestParams
1622
+ class Destination < Stripe::RequestParams
1623
+ # ID of an existing, connected Stripe account.
1624
+ attr_accessor :account
1625
+
1626
+ # The amount to transfer to the destination account without creating an `Application Fee` object. Cannot be combined with the `application_fee` parameter. Must be less than or equal to the charge amount.
1627
+ attr_accessor :amount
1628
+
1629
+ def initialize(account: nil, amount: nil)
1630
+ @account = account
1631
+ @amount = amount
1632
+ end
1633
+ end
1634
+
1635
+ class RadarOptions < Stripe::RequestParams
1636
+ # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
1637
+ attr_accessor :session
1638
+
1639
+ def initialize(session: nil)
1640
+ @session = session
1641
+ end
1642
+ end
1643
+
1644
+ class Shipping < Stripe::RequestParams
1645
+ class Address < Stripe::RequestParams
1646
+ # City, district, suburb, town, or village.
1647
+ attr_accessor :city
1648
+
1649
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1650
+ attr_accessor :country
1651
+
1652
+ # Address line 1 (e.g., street, PO Box, or company name).
1653
+ attr_accessor :line1
1654
+
1655
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1656
+ attr_accessor :line2
1657
+
1658
+ # ZIP or postal code.
1659
+ attr_accessor :postal_code
1660
+
1661
+ # State, county, province, or region.
1662
+ attr_accessor :state
1663
+
1664
+ def initialize(
1665
+ city: nil,
1666
+ country: nil,
1667
+ line1: nil,
1668
+ line2: nil,
1669
+ postal_code: nil,
1670
+ state: nil
1671
+ )
1672
+ @city = city
1673
+ @country = country
1674
+ @line1 = line1
1675
+ @line2 = line2
1676
+ @postal_code = postal_code
1677
+ @state = state
1678
+ end
1679
+ end
1680
+ # Shipping address.
1681
+ attr_accessor :address
1682
+
1683
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
1684
+ attr_accessor :carrier
1685
+
1686
+ # Recipient name.
1687
+ attr_accessor :name
1688
+
1689
+ # Recipient phone (including extension).
1690
+ attr_accessor :phone
1691
+
1692
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
1693
+ attr_accessor :tracking_number
1694
+
1695
+ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
1696
+ @address = address
1697
+ @carrier = carrier
1698
+ @name = name
1699
+ @phone = phone
1700
+ @tracking_number = tracking_number
1701
+ end
1702
+ end
1703
+
1704
+ class TransferData < Stripe::RequestParams
1705
+ # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1706
+ attr_accessor :amount
1707
+
1708
+ # ID of an existing, connected Stripe account.
1709
+ attr_accessor :destination
1710
+
1711
+ def initialize(amount: nil, destination: nil)
1712
+ @amount = amount
1713
+ @destination = destination
1714
+ end
1715
+ end
1716
+ # Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1717
+ attr_accessor :amount
1718
+
1719
+ # Attribute for param field application_fee
1720
+ attr_accessor :application_fee
1721
+
1722
+ # A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collect-fees).
1723
+ attr_accessor :application_fee_amount
1724
+
1725
+ # Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://stripe.com/docs/api#capture_charge) later. Uncaptured charges expire after a set number of days (7 by default). For more information, see the [authorizing charges and settling later](https://stripe.com/docs/charges/placing-a-hold) documentation.
1726
+ attr_accessor :capture
1727
+
1728
+ # 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).
1729
+ attr_accessor :currency
1730
+
1731
+ # The ID of an existing customer that will be charged in this request.
1732
+ attr_accessor :customer
1733
+
1734
+ # An arbitrary string which you can attach to a `Charge` object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.
1735
+ attr_accessor :description
1736
+
1737
+ # Attribute for param field destination
1738
+ attr_accessor :destination
1739
+
1740
+ # Specifies which fields in the response should be expanded.
1741
+ attr_accessor :expand
1742
+
1743
+ # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1744
+ attr_accessor :metadata
1745
+
1746
+ # The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant).
1747
+ attr_accessor :on_behalf_of
1748
+
1749
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1750
+ attr_accessor :radar_options
1751
+
1752
+ # The email address to which this charge's [receipt](https://stripe.com/docs/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and no receipts will be sent for test mode charges. If this charge is for a [Customer](https://stripe.com/docs/api/customers/object), the email address specified here will override the customer's email address. If `receipt_email` is specified for a charge in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
1753
+ attr_accessor :receipt_email
1754
+
1755
+ # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
1756
+ attr_accessor :shipping
1757
+
1758
+ # A payment source to be charged. This can be the ID of a [card](https://stripe.com/docs/api#cards) (i.e., credit or debit card), a [bank account](https://stripe.com/docs/api#bank_accounts), a [source](https://stripe.com/docs/api#sources), a [token](https://stripe.com/docs/api#tokens), or a [connected account](https://stripe.com/docs/connect/account-debits#charging-a-connected-account). For certain sources---namely, [cards](https://stripe.com/docs/api#cards), [bank accounts](https://stripe.com/docs/api#bank_accounts), and attached [sources](https://stripe.com/docs/api#sources)---you must also pass the ID of the associated customer.
1759
+ attr_accessor :source
1760
+
1761
+ # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
1762
+ #
1763
+ # For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
1764
+ attr_accessor :statement_descriptor
1765
+
1766
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
1767
+ attr_accessor :statement_descriptor_suffix
1768
+
1769
+ # An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
1770
+ attr_accessor :transfer_data
1771
+
1772
+ # A string that identifies this transaction as part of a group. For details, see [Grouping transactions](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options).
1773
+ attr_accessor :transfer_group
1774
+
1775
+ def initialize(
1776
+ amount: nil,
1777
+ application_fee: nil,
1778
+ application_fee_amount: nil,
1779
+ capture: nil,
1780
+ currency: nil,
1781
+ customer: nil,
1782
+ description: nil,
1783
+ destination: nil,
1784
+ expand: nil,
1785
+ metadata: nil,
1786
+ on_behalf_of: nil,
1787
+ radar_options: nil,
1788
+ receipt_email: nil,
1789
+ shipping: nil,
1790
+ source: nil,
1791
+ statement_descriptor: nil,
1792
+ statement_descriptor_suffix: nil,
1793
+ transfer_data: nil,
1794
+ transfer_group: nil
1795
+ )
1796
+ @amount = amount
1797
+ @application_fee = application_fee
1798
+ @application_fee_amount = application_fee_amount
1799
+ @capture = capture
1800
+ @currency = currency
1801
+ @customer = customer
1802
+ @description = description
1803
+ @destination = destination
1804
+ @expand = expand
1805
+ @metadata = metadata
1806
+ @on_behalf_of = on_behalf_of
1807
+ @radar_options = radar_options
1808
+ @receipt_email = receipt_email
1809
+ @shipping = shipping
1810
+ @source = source
1811
+ @statement_descriptor = statement_descriptor
1812
+ @statement_descriptor_suffix = statement_descriptor_suffix
1813
+ @transfer_data = transfer_data
1814
+ @transfer_group = transfer_group
1815
+ end
1816
+ end
1817
+
1818
+ class RetrieveParams < Stripe::RequestParams
1819
+ # Specifies which fields in the response should be expanded.
1820
+ attr_accessor :expand
1821
+
1822
+ def initialize(expand: nil)
1823
+ @expand = expand
1824
+ end
1825
+ end
1826
+
1827
+ class UpdateParams < Stripe::RequestParams
1828
+ class FraudDetails < Stripe::RequestParams
1829
+ # Either `safe` or `fraudulent`.
1830
+ attr_accessor :user_report
1831
+
1832
+ def initialize(user_report: nil)
1833
+ @user_report = user_report
1834
+ end
1835
+ end
1836
+
1837
+ class PaymentDetails < Stripe::RequestParams
1838
+ class CarRental < Stripe::RequestParams
1839
+ class Affiliate < Stripe::RequestParams
1840
+ # The name of the affiliate that originated the purchase.
1841
+ attr_accessor :name
1842
+
1843
+ def initialize(name: nil)
1844
+ @name = name
1845
+ end
1846
+ end
1847
+
1848
+ class Delivery < Stripe::RequestParams
1849
+ class Recipient < Stripe::RequestParams
1850
+ # The email of the recipient the ticket is delivered to.
1851
+ attr_accessor :email
1852
+
1853
+ # The name of the recipient the ticket is delivered to.
1854
+ attr_accessor :name
1855
+
1856
+ # The phone number of the recipient the ticket is delivered to.
1857
+ attr_accessor :phone
1858
+
1859
+ def initialize(email: nil, name: nil, phone: nil)
1860
+ @email = email
1861
+ @name = name
1862
+ @phone = phone
1863
+ end
1864
+ end
1865
+ # The delivery method for the payment
1866
+ attr_accessor :mode
1867
+
1868
+ # Details of the recipient.
1869
+ attr_accessor :recipient
1870
+
1871
+ def initialize(mode: nil, recipient: nil)
1872
+ @mode = mode
1873
+ @recipient = recipient
1874
+ end
1875
+ end
1876
+
1877
+ class Driver < Stripe::RequestParams
1878
+ # Full name of the person or entity on the car reservation.
1879
+ attr_accessor :name
1880
+
1881
+ def initialize(name: nil)
1882
+ @name = name
1883
+ end
1884
+ end
1885
+
1886
+ class PickupAddress < Stripe::RequestParams
1887
+ # City, district, suburb, town, or village.
1888
+ attr_accessor :city
1889
+
1890
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1891
+ attr_accessor :country
1892
+
1893
+ # Address line 1 (e.g., street, PO Box, or company name).
1894
+ attr_accessor :line1
1895
+
1896
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1897
+ attr_accessor :line2
1898
+
1899
+ # ZIP or postal code.
1900
+ attr_accessor :postal_code
1901
+
1902
+ # State, county, province, or region.
1903
+ attr_accessor :state
1904
+
1905
+ def initialize(
1906
+ city: nil,
1907
+ country: nil,
1908
+ line1: nil,
1909
+ line2: nil,
1910
+ postal_code: nil,
1911
+ state: nil
1912
+ )
1913
+ @city = city
1914
+ @country = country
1915
+ @line1 = line1
1916
+ @line2 = line2
1917
+ @postal_code = postal_code
1918
+ @state = state
1919
+ end
1920
+ end
1921
+
1922
+ class ReturnAddress < Stripe::RequestParams
1923
+ # City, district, suburb, town, or village.
1924
+ attr_accessor :city
1925
+
1926
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1927
+ attr_accessor :country
1928
+
1929
+ # Address line 1 (e.g., street, PO Box, or company name).
1930
+ attr_accessor :line1
1931
+
1932
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1933
+ attr_accessor :line2
1934
+
1935
+ # ZIP or postal code.
1936
+ attr_accessor :postal_code
1937
+
1938
+ # State, county, province, or region.
1939
+ attr_accessor :state
1940
+
1941
+ def initialize(
1942
+ city: nil,
1943
+ country: nil,
1944
+ line1: nil,
1945
+ line2: nil,
1946
+ postal_code: nil,
1947
+ state: nil
1948
+ )
1949
+ @city = city
1950
+ @country = country
1951
+ @line1 = line1
1952
+ @line2 = line2
1953
+ @postal_code = postal_code
1954
+ @state = state
1955
+ end
1956
+ end
1957
+ # Affiliate details for this purchase.
1958
+ attr_accessor :affiliate
1959
+
1960
+ # The booking number associated with the car rental.
1961
+ attr_accessor :booking_number
1962
+
1963
+ # Class code of the car.
1964
+ attr_accessor :car_class_code
1965
+
1966
+ # Make of the car.
1967
+ attr_accessor :car_make
1968
+
1969
+ # Model of the car.
1970
+ attr_accessor :car_model
1971
+
1972
+ # The name of the rental car company.
1973
+ attr_accessor :company
1974
+
1975
+ # The customer service phone number of the car rental company.
1976
+ attr_accessor :customer_service_phone_number
1977
+
1978
+ # Number of days the car is being rented.
1979
+ attr_accessor :days_rented
1980
+
1981
+ # Delivery details for this purchase.
1982
+ attr_accessor :delivery
1983
+
1984
+ # The details of the passengers in the travel reservation
1985
+ attr_accessor :drivers
1986
+
1987
+ # List of additional charges being billed.
1988
+ attr_accessor :extra_charges
1989
+
1990
+ # Indicates if the customer did not keep nor cancel their booking.
1991
+ attr_accessor :no_show
1992
+
1993
+ # Car pick-up address.
1994
+ attr_accessor :pickup_address
1995
+
1996
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1997
+ attr_accessor :pickup_at
1998
+
1999
+ # Rental rate.
2000
+ attr_accessor :rate_amount
2001
+
2002
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
2003
+ attr_accessor :rate_interval
2004
+
2005
+ # The name of the person or entity renting the car.
2006
+ attr_accessor :renter_name
2007
+
2008
+ # Car return address.
2009
+ attr_accessor :return_address
2010
+
2011
+ # Car return time. Measured in seconds since the Unix epoch.
2012
+ attr_accessor :return_at
2013
+
2014
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
2015
+ attr_accessor :tax_exempt
2016
+
2017
+ def initialize(
2018
+ affiliate: nil,
2019
+ booking_number: nil,
2020
+ car_class_code: nil,
2021
+ car_make: nil,
2022
+ car_model: nil,
2023
+ company: nil,
2024
+ customer_service_phone_number: nil,
2025
+ days_rented: nil,
2026
+ delivery: nil,
2027
+ drivers: nil,
2028
+ extra_charges: nil,
2029
+ no_show: nil,
2030
+ pickup_address: nil,
2031
+ pickup_at: nil,
2032
+ rate_amount: nil,
2033
+ rate_interval: nil,
2034
+ renter_name: nil,
2035
+ return_address: nil,
2036
+ return_at: nil,
2037
+ tax_exempt: nil
2038
+ )
2039
+ @affiliate = affiliate
2040
+ @booking_number = booking_number
2041
+ @car_class_code = car_class_code
2042
+ @car_make = car_make
2043
+ @car_model = car_model
2044
+ @company = company
2045
+ @customer_service_phone_number = customer_service_phone_number
2046
+ @days_rented = days_rented
2047
+ @delivery = delivery
2048
+ @drivers = drivers
2049
+ @extra_charges = extra_charges
2050
+ @no_show = no_show
2051
+ @pickup_address = pickup_address
2052
+ @pickup_at = pickup_at
2053
+ @rate_amount = rate_amount
2054
+ @rate_interval = rate_interval
2055
+ @renter_name = renter_name
2056
+ @return_address = return_address
2057
+ @return_at = return_at
2058
+ @tax_exempt = tax_exempt
2059
+ end
2060
+ end
2061
+
2062
+ class EventDetails < Stripe::RequestParams
2063
+ class Address < Stripe::RequestParams
2064
+ # City, district, suburb, town, or village.
2065
+ attr_accessor :city
2066
+
2067
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2068
+ attr_accessor :country
2069
+
2070
+ # Address line 1 (e.g., street, PO Box, or company name).
2071
+ attr_accessor :line1
2072
+
2073
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2074
+ attr_accessor :line2
2075
+
2076
+ # ZIP or postal code.
2077
+ attr_accessor :postal_code
2078
+
2079
+ # State, county, province, or region.
2080
+ attr_accessor :state
2081
+
2082
+ def initialize(
2083
+ city: nil,
2084
+ country: nil,
2085
+ line1: nil,
2086
+ line2: nil,
2087
+ postal_code: nil,
2088
+ state: nil
2089
+ )
2090
+ @city = city
2091
+ @country = country
2092
+ @line1 = line1
2093
+ @line2 = line2
2094
+ @postal_code = postal_code
2095
+ @state = state
2096
+ end
2097
+ end
2098
+
2099
+ class Affiliate < Stripe::RequestParams
2100
+ # The name of the affiliate that originated the purchase.
2101
+ attr_accessor :name
2102
+
2103
+ def initialize(name: nil)
2104
+ @name = name
2105
+ end
2106
+ end
2107
+
2108
+ class Delivery < Stripe::RequestParams
2109
+ class Recipient < Stripe::RequestParams
2110
+ # The email of the recipient the ticket is delivered to.
2111
+ attr_accessor :email
2112
+
2113
+ # The name of the recipient the ticket is delivered to.
2114
+ attr_accessor :name
2115
+
2116
+ # The phone number of the recipient the ticket is delivered to.
2117
+ attr_accessor :phone
2118
+
2119
+ def initialize(email: nil, name: nil, phone: nil)
2120
+ @email = email
2121
+ @name = name
2122
+ @phone = phone
2123
+ end
2124
+ end
2125
+ # The delivery method for the payment
2126
+ attr_accessor :mode
2127
+
2128
+ # Details of the recipient.
2129
+ attr_accessor :recipient
2130
+
2131
+ def initialize(mode: nil, recipient: nil)
2132
+ @mode = mode
2133
+ @recipient = recipient
2134
+ end
2135
+ end
2136
+ # Indicates if the tickets are digitally checked when entering the venue.
2137
+ attr_accessor :access_controlled_venue
2138
+
2139
+ # The event location's address.
2140
+ attr_accessor :address
2141
+
2142
+ # Affiliate details for this purchase.
2143
+ attr_accessor :affiliate
2144
+
2145
+ # The name of the company
2146
+ attr_accessor :company
2147
+
2148
+ # Delivery details for this purchase.
2149
+ attr_accessor :delivery
2150
+
2151
+ # Event end time. Measured in seconds since the Unix epoch.
2152
+ attr_accessor :ends_at
2153
+
2154
+ # Type of the event entertainment (concert, sports event etc)
2155
+ attr_accessor :genre
2156
+
2157
+ # The name of the event.
2158
+ attr_accessor :name
2159
+
2160
+ # Event start time. Measured in seconds since the Unix epoch.
2161
+ attr_accessor :starts_at
2162
+
2163
+ def initialize(
2164
+ access_controlled_venue: nil,
2165
+ address: nil,
2166
+ affiliate: nil,
2167
+ company: nil,
2168
+ delivery: nil,
2169
+ ends_at: nil,
2170
+ genre: nil,
2171
+ name: nil,
2172
+ starts_at: nil
2173
+ )
2174
+ @access_controlled_venue = access_controlled_venue
2175
+ @address = address
2176
+ @affiliate = affiliate
2177
+ @company = company
2178
+ @delivery = delivery
2179
+ @ends_at = ends_at
2180
+ @genre = genre
2181
+ @name = name
2182
+ @starts_at = starts_at
2183
+ end
2184
+ end
2185
+
2186
+ class Flight < Stripe::RequestParams
2187
+ class Affiliate < Stripe::RequestParams
2188
+ # The name of the affiliate that originated the purchase.
2189
+ attr_accessor :name
2190
+
2191
+ def initialize(name: nil)
2192
+ @name = name
2193
+ end
2194
+ end
2195
+
2196
+ class Delivery < Stripe::RequestParams
2197
+ class Recipient < Stripe::RequestParams
2198
+ # The email of the recipient the ticket is delivered to.
2199
+ attr_accessor :email
2200
+
2201
+ # The name of the recipient the ticket is delivered to.
2202
+ attr_accessor :name
2203
+
2204
+ # The phone number of the recipient the ticket is delivered to.
2205
+ attr_accessor :phone
2206
+
2207
+ def initialize(email: nil, name: nil, phone: nil)
2208
+ @email = email
2209
+ @name = name
2210
+ @phone = phone
2211
+ end
2212
+ end
2213
+ # The delivery method for the payment
2214
+ attr_accessor :mode
2215
+
2216
+ # Details of the recipient.
2217
+ attr_accessor :recipient
2218
+
2219
+ def initialize(mode: nil, recipient: nil)
2220
+ @mode = mode
2221
+ @recipient = recipient
2222
+ end
2223
+ end
2224
+
2225
+ class Passenger < Stripe::RequestParams
2226
+ # Full name of the person or entity on the flight reservation.
2227
+ attr_accessor :name
2228
+
2229
+ def initialize(name: nil)
2230
+ @name = name
2231
+ end
2232
+ end
2233
+
2234
+ class Segment < Stripe::RequestParams
2235
+ # The flight segment amount.
2236
+ attr_accessor :amount
2237
+
2238
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
2239
+ attr_accessor :arrival_airport
2240
+
2241
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
2242
+ attr_accessor :arrives_at
2243
+
2244
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
2245
+ attr_accessor :carrier
2246
+
2247
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
2248
+ attr_accessor :departs_at
2249
+
2250
+ # The International Air Transport Association (IATA) airport code for the departure airport.
2251
+ attr_accessor :departure_airport
2252
+
2253
+ # The flight number associated with the segment
2254
+ attr_accessor :flight_number
2255
+
2256
+ # The fare class for the segment.
2257
+ attr_accessor :service_class
2258
+
2259
+ def initialize(
2260
+ amount: nil,
2261
+ arrival_airport: nil,
2262
+ arrives_at: nil,
2263
+ carrier: nil,
2264
+ departs_at: nil,
2265
+ departure_airport: nil,
2266
+ flight_number: nil,
2267
+ service_class: nil
2268
+ )
2269
+ @amount = amount
2270
+ @arrival_airport = arrival_airport
2271
+ @arrives_at = arrives_at
2272
+ @carrier = carrier
2273
+ @departs_at = departs_at
2274
+ @departure_airport = departure_airport
2275
+ @flight_number = flight_number
2276
+ @service_class = service_class
2277
+ end
2278
+ end
2279
+ # Affiliate details for this purchase.
2280
+ attr_accessor :affiliate
2281
+
2282
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
2283
+ attr_accessor :agency_number
2284
+
2285
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
2286
+ attr_accessor :carrier
2287
+
2288
+ # Delivery details for this purchase.
2289
+ attr_accessor :delivery
2290
+
2291
+ # The name of the person or entity on the reservation.
2292
+ attr_accessor :passenger_name
2293
+
2294
+ # The details of the passengers in the travel reservation.
2295
+ attr_accessor :passengers
2296
+
2297
+ # The individual flight segments associated with the trip.
2298
+ attr_accessor :segments
2299
+
2300
+ # The ticket number associated with the travel reservation.
2301
+ attr_accessor :ticket_number
2302
+
2303
+ def initialize(
2304
+ affiliate: nil,
2305
+ agency_number: nil,
2306
+ carrier: nil,
2307
+ delivery: nil,
2308
+ passenger_name: nil,
2309
+ passengers: nil,
2310
+ segments: nil,
2311
+ ticket_number: nil
2312
+ )
2313
+ @affiliate = affiliate
2314
+ @agency_number = agency_number
2315
+ @carrier = carrier
2316
+ @delivery = delivery
2317
+ @passenger_name = passenger_name
2318
+ @passengers = passengers
2319
+ @segments = segments
2320
+ @ticket_number = ticket_number
2321
+ end
2322
+ end
2323
+
2324
+ class Lodging < Stripe::RequestParams
2325
+ class Address < Stripe::RequestParams
2326
+ # City, district, suburb, town, or village.
2327
+ attr_accessor :city
2328
+
2329
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2330
+ attr_accessor :country
2331
+
2332
+ # Address line 1 (e.g., street, PO Box, or company name).
2333
+ attr_accessor :line1
2334
+
2335
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2336
+ attr_accessor :line2
2337
+
2338
+ # ZIP or postal code.
2339
+ attr_accessor :postal_code
2340
+
2341
+ # State, county, province, or region.
2342
+ attr_accessor :state
2343
+
2344
+ def initialize(
2345
+ city: nil,
2346
+ country: nil,
2347
+ line1: nil,
2348
+ line2: nil,
2349
+ postal_code: nil,
2350
+ state: nil
2351
+ )
2352
+ @city = city
2353
+ @country = country
2354
+ @line1 = line1
2355
+ @line2 = line2
2356
+ @postal_code = postal_code
2357
+ @state = state
2358
+ end
2359
+ end
2360
+
2361
+ class Affiliate < Stripe::RequestParams
2362
+ # The name of the affiliate that originated the purchase.
2363
+ attr_accessor :name
2364
+
2365
+ def initialize(name: nil)
2366
+ @name = name
2367
+ end
2368
+ end
2369
+
2370
+ class Delivery < Stripe::RequestParams
2371
+ class Recipient < Stripe::RequestParams
2372
+ # The email of the recipient the ticket is delivered to.
2373
+ attr_accessor :email
2374
+
2375
+ # The name of the recipient the ticket is delivered to.
2376
+ attr_accessor :name
2377
+
2378
+ # The phone number of the recipient the ticket is delivered to.
2379
+ attr_accessor :phone
2380
+
2381
+ def initialize(email: nil, name: nil, phone: nil)
2382
+ @email = email
2383
+ @name = name
2384
+ @phone = phone
2385
+ end
2386
+ end
2387
+ # The delivery method for the payment
2388
+ attr_accessor :mode
2389
+
2390
+ # Details of the recipient.
2391
+ attr_accessor :recipient
2392
+
2393
+ def initialize(mode: nil, recipient: nil)
2394
+ @mode = mode
2395
+ @recipient = recipient
2396
+ end
2397
+ end
2398
+
2399
+ class Passenger < Stripe::RequestParams
2400
+ # Full name of the person or entity on the lodging reservation.
2401
+ attr_accessor :name
2402
+
2403
+ def initialize(name: nil)
2404
+ @name = name
2405
+ end
2406
+ end
2407
+ # The lodging location's address.
2408
+ attr_accessor :address
2409
+
2410
+ # The number of adults on the booking
2411
+ attr_accessor :adults
2412
+
2413
+ # Affiliate details for this purchase.
2414
+ attr_accessor :affiliate
2415
+
2416
+ # The booking number associated with the lodging reservation.
2417
+ attr_accessor :booking_number
2418
+
2419
+ # The lodging category
2420
+ attr_accessor :category
2421
+
2422
+ # Loding check-in time. Measured in seconds since the Unix epoch.
2423
+ attr_accessor :checkin_at
2424
+
2425
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
2426
+ attr_accessor :checkout_at
2427
+
2428
+ # The customer service phone number of the lodging company.
2429
+ attr_accessor :customer_service_phone_number
2430
+
2431
+ # The daily lodging room rate.
2432
+ attr_accessor :daily_room_rate_amount
2433
+
2434
+ # Delivery details for this purchase.
2435
+ attr_accessor :delivery
2436
+
2437
+ # List of additional charges being billed.
2438
+ attr_accessor :extra_charges
2439
+
2440
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
2441
+ attr_accessor :fire_safety_act_compliance
2442
+
2443
+ # The name of the lodging location.
2444
+ attr_accessor :name
2445
+
2446
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
2447
+ attr_accessor :no_show
2448
+
2449
+ # The number of rooms on the booking
2450
+ attr_accessor :number_of_rooms
2451
+
2452
+ # The details of the passengers in the travel reservation
2453
+ attr_accessor :passengers
2454
+
2455
+ # The phone number of the lodging location.
2456
+ attr_accessor :property_phone_number
2457
+
2458
+ # The room class for this purchase.
2459
+ attr_accessor :room_class
2460
+
2461
+ # The number of room nights
2462
+ attr_accessor :room_nights
2463
+
2464
+ # The total tax amount associating with the room reservation.
2465
+ attr_accessor :total_room_tax_amount
2466
+
2467
+ # The total tax amount
2468
+ attr_accessor :total_tax_amount
2469
+
2470
+ def initialize(
2471
+ address: nil,
2472
+ adults: nil,
2473
+ affiliate: nil,
2474
+ booking_number: nil,
2475
+ category: nil,
2476
+ checkin_at: nil,
2477
+ checkout_at: nil,
2478
+ customer_service_phone_number: nil,
2479
+ daily_room_rate_amount: nil,
2480
+ delivery: nil,
2481
+ extra_charges: nil,
2482
+ fire_safety_act_compliance: nil,
2483
+ name: nil,
2484
+ no_show: nil,
2485
+ number_of_rooms: nil,
2486
+ passengers: nil,
2487
+ property_phone_number: nil,
2488
+ room_class: nil,
2489
+ room_nights: nil,
2490
+ total_room_tax_amount: nil,
2491
+ total_tax_amount: nil
2492
+ )
2493
+ @address = address
2494
+ @adults = adults
2495
+ @affiliate = affiliate
2496
+ @booking_number = booking_number
2497
+ @category = category
2498
+ @checkin_at = checkin_at
2499
+ @checkout_at = checkout_at
2500
+ @customer_service_phone_number = customer_service_phone_number
2501
+ @daily_room_rate_amount = daily_room_rate_amount
2502
+ @delivery = delivery
2503
+ @extra_charges = extra_charges
2504
+ @fire_safety_act_compliance = fire_safety_act_compliance
2505
+ @name = name
2506
+ @no_show = no_show
2507
+ @number_of_rooms = number_of_rooms
2508
+ @passengers = passengers
2509
+ @property_phone_number = property_phone_number
2510
+ @room_class = room_class
2511
+ @room_nights = room_nights
2512
+ @total_room_tax_amount = total_room_tax_amount
2513
+ @total_tax_amount = total_tax_amount
2514
+ end
2515
+ end
2516
+
2517
+ class Subscription < Stripe::RequestParams
2518
+ class Affiliate < Stripe::RequestParams
2519
+ # The name of the affiliate that originated the purchase.
2520
+ attr_accessor :name
2521
+
2522
+ def initialize(name: nil)
2523
+ @name = name
2524
+ end
2525
+ end
2526
+
2527
+ class BillingInterval < Stripe::RequestParams
2528
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2529
+ attr_accessor :count
2530
+
2531
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2532
+ attr_accessor :interval
2533
+
2534
+ def initialize(count: nil, interval: nil)
2535
+ @count = count
2536
+ @interval = interval
2537
+ end
2538
+ end
2539
+ # Affiliate details for this purchase.
2540
+ attr_accessor :affiliate
2541
+
2542
+ # Info whether the subscription will be auto renewed upon expiry.
2543
+ attr_accessor :auto_renewal
2544
+
2545
+ # Subscription billing details for this purchase.
2546
+ attr_accessor :billing_interval
2547
+
2548
+ # Subscription end time. Measured in seconds since the Unix epoch.
2549
+ attr_accessor :ends_at
2550
+
2551
+ # Name of the product on subscription. e.g. Apple Music Subscription
2552
+ attr_accessor :name
2553
+
2554
+ # Subscription start time. Measured in seconds since the Unix epoch.
2555
+ attr_accessor :starts_at
2556
+
2557
+ def initialize(
2558
+ affiliate: nil,
2559
+ auto_renewal: nil,
2560
+ billing_interval: nil,
2561
+ ends_at: nil,
2562
+ name: nil,
2563
+ starts_at: nil
2564
+ )
2565
+ @affiliate = affiliate
2566
+ @auto_renewal = auto_renewal
2567
+ @billing_interval = billing_interval
2568
+ @ends_at = ends_at
2569
+ @name = name
2570
+ @starts_at = starts_at
2571
+ end
2572
+ end
2573
+ # Car rental details for this PaymentIntent.
2574
+ attr_accessor :car_rental
2575
+
2576
+ # Event details for this PaymentIntent
2577
+ attr_accessor :event_details
2578
+
2579
+ # Flight reservation details for this PaymentIntent
2580
+ attr_accessor :flight
2581
+
2582
+ # Lodging reservation details for this PaymentIntent
2583
+ attr_accessor :lodging
2584
+
2585
+ # Subscription details for this PaymentIntent
2586
+ attr_accessor :subscription
2587
+
2588
+ def initialize(
2589
+ car_rental: nil,
2590
+ event_details: nil,
2591
+ flight: nil,
2592
+ lodging: nil,
2593
+ subscription: nil
2594
+ )
2595
+ @car_rental = car_rental
2596
+ @event_details = event_details
2597
+ @flight = flight
2598
+ @lodging = lodging
2599
+ @subscription = subscription
2600
+ end
2601
+ end
2602
+
2603
+ class Shipping < Stripe::RequestParams
2604
+ class Address < Stripe::RequestParams
2605
+ # City, district, suburb, town, or village.
2606
+ attr_accessor :city
2607
+
2608
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2609
+ attr_accessor :country
2610
+
2611
+ # Address line 1 (e.g., street, PO Box, or company name).
2612
+ attr_accessor :line1
2613
+
2614
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2615
+ attr_accessor :line2
2616
+
2617
+ # ZIP or postal code.
2618
+ attr_accessor :postal_code
2619
+
2620
+ # State, county, province, or region.
2621
+ attr_accessor :state
2622
+
2623
+ def initialize(
2624
+ city: nil,
2625
+ country: nil,
2626
+ line1: nil,
2627
+ line2: nil,
2628
+ postal_code: nil,
2629
+ state: nil
2630
+ )
2631
+ @city = city
2632
+ @country = country
2633
+ @line1 = line1
2634
+ @line2 = line2
2635
+ @postal_code = postal_code
2636
+ @state = state
2637
+ end
2638
+ end
2639
+ # Shipping address.
2640
+ attr_accessor :address
2641
+
2642
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
2643
+ attr_accessor :carrier
2644
+
2645
+ # Recipient name.
2646
+ attr_accessor :name
2647
+
2648
+ # Recipient phone (including extension).
2649
+ attr_accessor :phone
2650
+
2651
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
2652
+ attr_accessor :tracking_number
2653
+
2654
+ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
2655
+ @address = address
2656
+ @carrier = carrier
2657
+ @name = name
2658
+ @phone = phone
2659
+ @tracking_number = tracking_number
2660
+ end
2661
+ end
2662
+ # The ID of an existing customer that will be associated with this request. This field may only be updated if there is no existing associated customer with this charge.
2663
+ attr_accessor :customer
2664
+
2665
+ # An arbitrary string which you can attach to a charge object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.
2666
+ attr_accessor :description
2667
+
2668
+ # Specifies which fields in the response should be expanded.
2669
+ attr_accessor :expand
2670
+
2671
+ # A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.
2672
+ attr_accessor :fraud_details
2673
+
2674
+ # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2675
+ attr_accessor :metadata
2676
+
2677
+ # Provides industry-specific information about the charge.
2678
+ attr_accessor :payment_details
2679
+
2680
+ # This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
2681
+ attr_accessor :receipt_email
2682
+
2683
+ # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
2684
+ attr_accessor :shipping
2685
+
2686
+ # A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
2687
+ attr_accessor :transfer_group
2688
+
2689
+ def initialize(
2690
+ customer: nil,
2691
+ description: nil,
2692
+ expand: nil,
2693
+ fraud_details: nil,
2694
+ metadata: nil,
2695
+ payment_details: nil,
2696
+ receipt_email: nil,
2697
+ shipping: nil,
2698
+ transfer_group: nil
2699
+ )
2700
+ @customer = customer
2701
+ @description = description
2702
+ @expand = expand
2703
+ @fraud_details = fraud_details
2704
+ @metadata = metadata
2705
+ @payment_details = payment_details
2706
+ @receipt_email = receipt_email
2707
+ @shipping = shipping
2708
+ @transfer_group = transfer_group
2709
+ end
2710
+ end
2711
+
2712
+ class SearchParams < Stripe::RequestParams
2713
+ # Specifies which fields in the response should be expanded.
2714
+ attr_accessor :expand
2715
+
2716
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
2717
+ attr_accessor :limit
2718
+
2719
+ # A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
2720
+ attr_accessor :page
2721
+
2722
+ # The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges](https://stripe.com/docs/search#query-fields-for-charges).
2723
+ attr_accessor :query
2724
+
2725
+ def initialize(expand: nil, limit: nil, page: nil, query: nil)
2726
+ @expand = expand
2727
+ @limit = limit
2728
+ @page = page
2729
+ @query = query
2730
+ end
2731
+ end
2732
+
2733
+ class CaptureParams < Stripe::RequestParams
2734
+ class PaymentDetails < Stripe::RequestParams
2735
+ class CarRental < Stripe::RequestParams
2736
+ class Affiliate < Stripe::RequestParams
2737
+ # The name of the affiliate that originated the purchase.
2738
+ attr_accessor :name
2739
+
2740
+ def initialize(name: nil)
2741
+ @name = name
2742
+ end
2743
+ end
2744
+
2745
+ class Delivery < Stripe::RequestParams
2746
+ class Recipient < Stripe::RequestParams
2747
+ # The email of the recipient the ticket is delivered to.
2748
+ attr_accessor :email
2749
+
2750
+ # The name of the recipient the ticket is delivered to.
2751
+ attr_accessor :name
2752
+
2753
+ # The phone number of the recipient the ticket is delivered to.
2754
+ attr_accessor :phone
2755
+
2756
+ def initialize(email: nil, name: nil, phone: nil)
2757
+ @email = email
2758
+ @name = name
2759
+ @phone = phone
2760
+ end
2761
+ end
2762
+ # The delivery method for the payment
2763
+ attr_accessor :mode
2764
+
2765
+ # Details of the recipient.
2766
+ attr_accessor :recipient
2767
+
2768
+ def initialize(mode: nil, recipient: nil)
2769
+ @mode = mode
2770
+ @recipient = recipient
2771
+ end
2772
+ end
2773
+
2774
+ class Driver < Stripe::RequestParams
2775
+ # Full name of the person or entity on the car reservation.
2776
+ attr_accessor :name
2777
+
2778
+ def initialize(name: nil)
2779
+ @name = name
2780
+ end
2781
+ end
2782
+
2783
+ class PickupAddress < Stripe::RequestParams
2784
+ # City, district, suburb, town, or village.
2785
+ attr_accessor :city
2786
+
2787
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2788
+ attr_accessor :country
2789
+
2790
+ # Address line 1 (e.g., street, PO Box, or company name).
2791
+ attr_accessor :line1
2792
+
2793
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2794
+ attr_accessor :line2
2795
+
2796
+ # ZIP or postal code.
2797
+ attr_accessor :postal_code
2798
+
2799
+ # State, county, province, or region.
2800
+ attr_accessor :state
2801
+
2802
+ def initialize(
2803
+ city: nil,
2804
+ country: nil,
2805
+ line1: nil,
2806
+ line2: nil,
2807
+ postal_code: nil,
2808
+ state: nil
2809
+ )
2810
+ @city = city
2811
+ @country = country
2812
+ @line1 = line1
2813
+ @line2 = line2
2814
+ @postal_code = postal_code
2815
+ @state = state
2816
+ end
2817
+ end
2818
+
2819
+ class ReturnAddress < Stripe::RequestParams
2820
+ # City, district, suburb, town, or village.
2821
+ attr_accessor :city
2822
+
2823
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2824
+ attr_accessor :country
2825
+
2826
+ # Address line 1 (e.g., street, PO Box, or company name).
2827
+ attr_accessor :line1
2828
+
2829
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2830
+ attr_accessor :line2
2831
+
2832
+ # ZIP or postal code.
2833
+ attr_accessor :postal_code
2834
+
2835
+ # State, county, province, or region.
2836
+ attr_accessor :state
2837
+
2838
+ def initialize(
2839
+ city: nil,
2840
+ country: nil,
2841
+ line1: nil,
2842
+ line2: nil,
2843
+ postal_code: nil,
2844
+ state: nil
2845
+ )
2846
+ @city = city
2847
+ @country = country
2848
+ @line1 = line1
2849
+ @line2 = line2
2850
+ @postal_code = postal_code
2851
+ @state = state
2852
+ end
2853
+ end
2854
+ # Affiliate details for this purchase.
2855
+ attr_accessor :affiliate
2856
+
2857
+ # The booking number associated with the car rental.
2858
+ attr_accessor :booking_number
2859
+
2860
+ # Class code of the car.
2861
+ attr_accessor :car_class_code
2862
+
2863
+ # Make of the car.
2864
+ attr_accessor :car_make
2865
+
2866
+ # Model of the car.
2867
+ attr_accessor :car_model
2868
+
2869
+ # The name of the rental car company.
2870
+ attr_accessor :company
2871
+
2872
+ # The customer service phone number of the car rental company.
2873
+ attr_accessor :customer_service_phone_number
2874
+
2875
+ # Number of days the car is being rented.
2876
+ attr_accessor :days_rented
2877
+
2878
+ # Delivery details for this purchase.
2879
+ attr_accessor :delivery
2880
+
2881
+ # The details of the passengers in the travel reservation
2882
+ attr_accessor :drivers
2883
+
2884
+ # List of additional charges being billed.
2885
+ attr_accessor :extra_charges
2886
+
2887
+ # Indicates if the customer did not keep nor cancel their booking.
2888
+ attr_accessor :no_show
2889
+
2890
+ # Car pick-up address.
2891
+ attr_accessor :pickup_address
2892
+
2893
+ # Car pick-up time. Measured in seconds since the Unix epoch.
2894
+ attr_accessor :pickup_at
2895
+
2896
+ # Rental rate.
2897
+ attr_accessor :rate_amount
2898
+
2899
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
2900
+ attr_accessor :rate_interval
2901
+
2902
+ # The name of the person or entity renting the car.
2903
+ attr_accessor :renter_name
2904
+
2905
+ # Car return address.
2906
+ attr_accessor :return_address
2907
+
2908
+ # Car return time. Measured in seconds since the Unix epoch.
2909
+ attr_accessor :return_at
2910
+
2911
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
2912
+ attr_accessor :tax_exempt
2913
+
2914
+ def initialize(
2915
+ affiliate: nil,
2916
+ booking_number: nil,
2917
+ car_class_code: nil,
2918
+ car_make: nil,
2919
+ car_model: nil,
2920
+ company: nil,
2921
+ customer_service_phone_number: nil,
2922
+ days_rented: nil,
2923
+ delivery: nil,
2924
+ drivers: nil,
2925
+ extra_charges: nil,
2926
+ no_show: nil,
2927
+ pickup_address: nil,
2928
+ pickup_at: nil,
2929
+ rate_amount: nil,
2930
+ rate_interval: nil,
2931
+ renter_name: nil,
2932
+ return_address: nil,
2933
+ return_at: nil,
2934
+ tax_exempt: nil
2935
+ )
2936
+ @affiliate = affiliate
2937
+ @booking_number = booking_number
2938
+ @car_class_code = car_class_code
2939
+ @car_make = car_make
2940
+ @car_model = car_model
2941
+ @company = company
2942
+ @customer_service_phone_number = customer_service_phone_number
2943
+ @days_rented = days_rented
2944
+ @delivery = delivery
2945
+ @drivers = drivers
2946
+ @extra_charges = extra_charges
2947
+ @no_show = no_show
2948
+ @pickup_address = pickup_address
2949
+ @pickup_at = pickup_at
2950
+ @rate_amount = rate_amount
2951
+ @rate_interval = rate_interval
2952
+ @renter_name = renter_name
2953
+ @return_address = return_address
2954
+ @return_at = return_at
2955
+ @tax_exempt = tax_exempt
2956
+ end
2957
+ end
2958
+
2959
+ class EventDetails < Stripe::RequestParams
2960
+ class Address < Stripe::RequestParams
2961
+ # City, district, suburb, town, or village.
2962
+ attr_accessor :city
2963
+
2964
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2965
+ attr_accessor :country
2966
+
2967
+ # Address line 1 (e.g., street, PO Box, or company name).
2968
+ attr_accessor :line1
2969
+
2970
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2971
+ attr_accessor :line2
2972
+
2973
+ # ZIP or postal code.
2974
+ attr_accessor :postal_code
2975
+
2976
+ # State, county, province, or region.
2977
+ attr_accessor :state
2978
+
2979
+ def initialize(
2980
+ city: nil,
2981
+ country: nil,
2982
+ line1: nil,
2983
+ line2: nil,
2984
+ postal_code: nil,
2985
+ state: nil
2986
+ )
2987
+ @city = city
2988
+ @country = country
2989
+ @line1 = line1
2990
+ @line2 = line2
2991
+ @postal_code = postal_code
2992
+ @state = state
2993
+ end
2994
+ end
2995
+
2996
+ class Affiliate < Stripe::RequestParams
2997
+ # The name of the affiliate that originated the purchase.
2998
+ attr_accessor :name
2999
+
3000
+ def initialize(name: nil)
3001
+ @name = name
3002
+ end
3003
+ end
3004
+
3005
+ class Delivery < Stripe::RequestParams
3006
+ class Recipient < Stripe::RequestParams
3007
+ # The email of the recipient the ticket is delivered to.
3008
+ attr_accessor :email
3009
+
3010
+ # The name of the recipient the ticket is delivered to.
3011
+ attr_accessor :name
3012
+
3013
+ # The phone number of the recipient the ticket is delivered to.
3014
+ attr_accessor :phone
3015
+
3016
+ def initialize(email: nil, name: nil, phone: nil)
3017
+ @email = email
3018
+ @name = name
3019
+ @phone = phone
3020
+ end
3021
+ end
3022
+ # The delivery method for the payment
3023
+ attr_accessor :mode
3024
+
3025
+ # Details of the recipient.
3026
+ attr_accessor :recipient
3027
+
3028
+ def initialize(mode: nil, recipient: nil)
3029
+ @mode = mode
3030
+ @recipient = recipient
3031
+ end
3032
+ end
3033
+ # Indicates if the tickets are digitally checked when entering the venue.
3034
+ attr_accessor :access_controlled_venue
3035
+
3036
+ # The event location's address.
3037
+ attr_accessor :address
3038
+
3039
+ # Affiliate details for this purchase.
3040
+ attr_accessor :affiliate
3041
+
3042
+ # The name of the company
3043
+ attr_accessor :company
3044
+
3045
+ # Delivery details for this purchase.
3046
+ attr_accessor :delivery
3047
+
3048
+ # Event end time. Measured in seconds since the Unix epoch.
3049
+ attr_accessor :ends_at
3050
+
3051
+ # Type of the event entertainment (concert, sports event etc)
3052
+ attr_accessor :genre
3053
+
3054
+ # The name of the event.
3055
+ attr_accessor :name
3056
+
3057
+ # Event start time. Measured in seconds since the Unix epoch.
3058
+ attr_accessor :starts_at
3059
+
3060
+ def initialize(
3061
+ access_controlled_venue: nil,
3062
+ address: nil,
3063
+ affiliate: nil,
3064
+ company: nil,
3065
+ delivery: nil,
3066
+ ends_at: nil,
3067
+ genre: nil,
3068
+ name: nil,
3069
+ starts_at: nil
3070
+ )
3071
+ @access_controlled_venue = access_controlled_venue
3072
+ @address = address
3073
+ @affiliate = affiliate
3074
+ @company = company
3075
+ @delivery = delivery
3076
+ @ends_at = ends_at
3077
+ @genre = genre
3078
+ @name = name
3079
+ @starts_at = starts_at
3080
+ end
3081
+ end
3082
+
3083
+ class Flight < Stripe::RequestParams
3084
+ class Affiliate < Stripe::RequestParams
3085
+ # The name of the affiliate that originated the purchase.
3086
+ attr_accessor :name
3087
+
3088
+ def initialize(name: nil)
3089
+ @name = name
3090
+ end
3091
+ end
3092
+
3093
+ class Delivery < Stripe::RequestParams
3094
+ class Recipient < Stripe::RequestParams
3095
+ # The email of the recipient the ticket is delivered to.
3096
+ attr_accessor :email
3097
+
3098
+ # The name of the recipient the ticket is delivered to.
3099
+ attr_accessor :name
3100
+
3101
+ # The phone number of the recipient the ticket is delivered to.
3102
+ attr_accessor :phone
3103
+
3104
+ def initialize(email: nil, name: nil, phone: nil)
3105
+ @email = email
3106
+ @name = name
3107
+ @phone = phone
3108
+ end
3109
+ end
3110
+ # The delivery method for the payment
3111
+ attr_accessor :mode
3112
+
3113
+ # Details of the recipient.
3114
+ attr_accessor :recipient
3115
+
3116
+ def initialize(mode: nil, recipient: nil)
3117
+ @mode = mode
3118
+ @recipient = recipient
3119
+ end
3120
+ end
3121
+
3122
+ class Passenger < Stripe::RequestParams
3123
+ # Full name of the person or entity on the flight reservation.
3124
+ attr_accessor :name
3125
+
3126
+ def initialize(name: nil)
3127
+ @name = name
3128
+ end
3129
+ end
3130
+
3131
+ class Segment < Stripe::RequestParams
3132
+ # The flight segment amount.
3133
+ attr_accessor :amount
3134
+
3135
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
3136
+ attr_accessor :arrival_airport
3137
+
3138
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
3139
+ attr_accessor :arrives_at
3140
+
3141
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
3142
+ attr_accessor :carrier
3143
+
3144
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
3145
+ attr_accessor :departs_at
3146
+
3147
+ # The International Air Transport Association (IATA) airport code for the departure airport.
3148
+ attr_accessor :departure_airport
3149
+
3150
+ # The flight number associated with the segment
3151
+ attr_accessor :flight_number
3152
+
3153
+ # The fare class for the segment.
3154
+ attr_accessor :service_class
3155
+
3156
+ def initialize(
3157
+ amount: nil,
3158
+ arrival_airport: nil,
3159
+ arrives_at: nil,
3160
+ carrier: nil,
3161
+ departs_at: nil,
3162
+ departure_airport: nil,
3163
+ flight_number: nil,
3164
+ service_class: nil
3165
+ )
3166
+ @amount = amount
3167
+ @arrival_airport = arrival_airport
3168
+ @arrives_at = arrives_at
3169
+ @carrier = carrier
3170
+ @departs_at = departs_at
3171
+ @departure_airport = departure_airport
3172
+ @flight_number = flight_number
3173
+ @service_class = service_class
3174
+ end
3175
+ end
3176
+ # Affiliate details for this purchase.
3177
+ attr_accessor :affiliate
3178
+
3179
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
3180
+ attr_accessor :agency_number
3181
+
3182
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
3183
+ attr_accessor :carrier
3184
+
3185
+ # Delivery details for this purchase.
3186
+ attr_accessor :delivery
3187
+
3188
+ # The name of the person or entity on the reservation.
3189
+ attr_accessor :passenger_name
3190
+
3191
+ # The details of the passengers in the travel reservation.
3192
+ attr_accessor :passengers
3193
+
3194
+ # The individual flight segments associated with the trip.
3195
+ attr_accessor :segments
3196
+
3197
+ # The ticket number associated with the travel reservation.
3198
+ attr_accessor :ticket_number
3199
+
3200
+ def initialize(
3201
+ affiliate: nil,
3202
+ agency_number: nil,
3203
+ carrier: nil,
3204
+ delivery: nil,
3205
+ passenger_name: nil,
3206
+ passengers: nil,
3207
+ segments: nil,
3208
+ ticket_number: nil
3209
+ )
3210
+ @affiliate = affiliate
3211
+ @agency_number = agency_number
3212
+ @carrier = carrier
3213
+ @delivery = delivery
3214
+ @passenger_name = passenger_name
3215
+ @passengers = passengers
3216
+ @segments = segments
3217
+ @ticket_number = ticket_number
3218
+ end
3219
+ end
3220
+
3221
+ class Lodging < Stripe::RequestParams
3222
+ class Address < Stripe::RequestParams
3223
+ # City, district, suburb, town, or village.
3224
+ attr_accessor :city
3225
+
3226
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3227
+ attr_accessor :country
3228
+
3229
+ # Address line 1 (e.g., street, PO Box, or company name).
3230
+ attr_accessor :line1
3231
+
3232
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3233
+ attr_accessor :line2
3234
+
3235
+ # ZIP or postal code.
3236
+ attr_accessor :postal_code
3237
+
3238
+ # State, county, province, or region.
3239
+ attr_accessor :state
3240
+
3241
+ def initialize(
3242
+ city: nil,
3243
+ country: nil,
3244
+ line1: nil,
3245
+ line2: nil,
3246
+ postal_code: nil,
3247
+ state: nil
3248
+ )
3249
+ @city = city
3250
+ @country = country
3251
+ @line1 = line1
3252
+ @line2 = line2
3253
+ @postal_code = postal_code
3254
+ @state = state
3255
+ end
3256
+ end
3257
+
3258
+ class Affiliate < Stripe::RequestParams
3259
+ # The name of the affiliate that originated the purchase.
3260
+ attr_accessor :name
3261
+
3262
+ def initialize(name: nil)
3263
+ @name = name
3264
+ end
3265
+ end
3266
+
3267
+ class Delivery < Stripe::RequestParams
3268
+ class Recipient < Stripe::RequestParams
3269
+ # The email of the recipient the ticket is delivered to.
3270
+ attr_accessor :email
3271
+
3272
+ # The name of the recipient the ticket is delivered to.
3273
+ attr_accessor :name
3274
+
3275
+ # The phone number of the recipient the ticket is delivered to.
3276
+ attr_accessor :phone
3277
+
3278
+ def initialize(email: nil, name: nil, phone: nil)
3279
+ @email = email
3280
+ @name = name
3281
+ @phone = phone
3282
+ end
3283
+ end
3284
+ # The delivery method for the payment
3285
+ attr_accessor :mode
3286
+
3287
+ # Details of the recipient.
3288
+ attr_accessor :recipient
3289
+
3290
+ def initialize(mode: nil, recipient: nil)
3291
+ @mode = mode
3292
+ @recipient = recipient
3293
+ end
3294
+ end
3295
+
3296
+ class Passenger < Stripe::RequestParams
3297
+ # Full name of the person or entity on the lodging reservation.
3298
+ attr_accessor :name
3299
+
3300
+ def initialize(name: nil)
3301
+ @name = name
3302
+ end
3303
+ end
3304
+ # The lodging location's address.
3305
+ attr_accessor :address
3306
+
3307
+ # The number of adults on the booking
3308
+ attr_accessor :adults
3309
+
3310
+ # Affiliate details for this purchase.
3311
+ attr_accessor :affiliate
3312
+
3313
+ # The booking number associated with the lodging reservation.
3314
+ attr_accessor :booking_number
3315
+
3316
+ # The lodging category
3317
+ attr_accessor :category
3318
+
3319
+ # Loding check-in time. Measured in seconds since the Unix epoch.
3320
+ attr_accessor :checkin_at
3321
+
3322
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
3323
+ attr_accessor :checkout_at
3324
+
3325
+ # The customer service phone number of the lodging company.
3326
+ attr_accessor :customer_service_phone_number
3327
+
3328
+ # The daily lodging room rate.
3329
+ attr_accessor :daily_room_rate_amount
3330
+
3331
+ # Delivery details for this purchase.
3332
+ attr_accessor :delivery
3333
+
3334
+ # List of additional charges being billed.
3335
+ attr_accessor :extra_charges
3336
+
3337
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
3338
+ attr_accessor :fire_safety_act_compliance
3339
+
3340
+ # The name of the lodging location.
3341
+ attr_accessor :name
3342
+
3343
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
3344
+ attr_accessor :no_show
3345
+
3346
+ # The number of rooms on the booking
3347
+ attr_accessor :number_of_rooms
3348
+
3349
+ # The details of the passengers in the travel reservation
3350
+ attr_accessor :passengers
3351
+
3352
+ # The phone number of the lodging location.
3353
+ attr_accessor :property_phone_number
3354
+
3355
+ # The room class for this purchase.
3356
+ attr_accessor :room_class
3357
+
3358
+ # The number of room nights
3359
+ attr_accessor :room_nights
3360
+
3361
+ # The total tax amount associating with the room reservation.
3362
+ attr_accessor :total_room_tax_amount
3363
+
3364
+ # The total tax amount
3365
+ attr_accessor :total_tax_amount
3366
+
3367
+ def initialize(
3368
+ address: nil,
3369
+ adults: nil,
3370
+ affiliate: nil,
3371
+ booking_number: nil,
3372
+ category: nil,
3373
+ checkin_at: nil,
3374
+ checkout_at: nil,
3375
+ customer_service_phone_number: nil,
3376
+ daily_room_rate_amount: nil,
3377
+ delivery: nil,
3378
+ extra_charges: nil,
3379
+ fire_safety_act_compliance: nil,
3380
+ name: nil,
3381
+ no_show: nil,
3382
+ number_of_rooms: nil,
3383
+ passengers: nil,
3384
+ property_phone_number: nil,
3385
+ room_class: nil,
3386
+ room_nights: nil,
3387
+ total_room_tax_amount: nil,
3388
+ total_tax_amount: nil
3389
+ )
3390
+ @address = address
3391
+ @adults = adults
3392
+ @affiliate = affiliate
3393
+ @booking_number = booking_number
3394
+ @category = category
3395
+ @checkin_at = checkin_at
3396
+ @checkout_at = checkout_at
3397
+ @customer_service_phone_number = customer_service_phone_number
3398
+ @daily_room_rate_amount = daily_room_rate_amount
3399
+ @delivery = delivery
3400
+ @extra_charges = extra_charges
3401
+ @fire_safety_act_compliance = fire_safety_act_compliance
3402
+ @name = name
3403
+ @no_show = no_show
3404
+ @number_of_rooms = number_of_rooms
3405
+ @passengers = passengers
3406
+ @property_phone_number = property_phone_number
3407
+ @room_class = room_class
3408
+ @room_nights = room_nights
3409
+ @total_room_tax_amount = total_room_tax_amount
3410
+ @total_tax_amount = total_tax_amount
3411
+ end
3412
+ end
3413
+
3414
+ class Subscription < Stripe::RequestParams
3415
+ class Affiliate < Stripe::RequestParams
3416
+ # The name of the affiliate that originated the purchase.
3417
+ attr_accessor :name
3418
+
3419
+ def initialize(name: nil)
3420
+ @name = name
3421
+ end
3422
+ end
3423
+
3424
+ class BillingInterval < Stripe::RequestParams
3425
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3426
+ attr_accessor :count
3427
+
3428
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3429
+ attr_accessor :interval
3430
+
3431
+ def initialize(count: nil, interval: nil)
3432
+ @count = count
3433
+ @interval = interval
3434
+ end
3435
+ end
3436
+ # Affiliate details for this purchase.
3437
+ attr_accessor :affiliate
3438
+
3439
+ # Info whether the subscription will be auto renewed upon expiry.
3440
+ attr_accessor :auto_renewal
3441
+
3442
+ # Subscription billing details for this purchase.
3443
+ attr_accessor :billing_interval
3444
+
3445
+ # Subscription end time. Measured in seconds since the Unix epoch.
3446
+ attr_accessor :ends_at
3447
+
3448
+ # Name of the product on subscription. e.g. Apple Music Subscription
3449
+ attr_accessor :name
3450
+
3451
+ # Subscription start time. Measured in seconds since the Unix epoch.
3452
+ attr_accessor :starts_at
3453
+
3454
+ def initialize(
3455
+ affiliate: nil,
3456
+ auto_renewal: nil,
3457
+ billing_interval: nil,
3458
+ ends_at: nil,
3459
+ name: nil,
3460
+ starts_at: nil
3461
+ )
3462
+ @affiliate = affiliate
3463
+ @auto_renewal = auto_renewal
3464
+ @billing_interval = billing_interval
3465
+ @ends_at = ends_at
3466
+ @name = name
3467
+ @starts_at = starts_at
3468
+ end
3469
+ end
3470
+ # Car rental details for this PaymentIntent.
3471
+ attr_accessor :car_rental
3472
+
3473
+ # Event details for this PaymentIntent
3474
+ attr_accessor :event_details
3475
+
3476
+ # Flight reservation details for this PaymentIntent
3477
+ attr_accessor :flight
3478
+
3479
+ # Lodging reservation details for this PaymentIntent
3480
+ attr_accessor :lodging
3481
+
3482
+ # Subscription details for this PaymentIntent
3483
+ attr_accessor :subscription
3484
+
3485
+ def initialize(
3486
+ car_rental: nil,
3487
+ event_details: nil,
3488
+ flight: nil,
3489
+ lodging: nil,
3490
+ subscription: nil
3491
+ )
3492
+ @car_rental = car_rental
3493
+ @event_details = event_details
3494
+ @flight = flight
3495
+ @lodging = lodging
3496
+ @subscription = subscription
3497
+ end
3498
+ end
3499
+
3500
+ class TransferData < Stripe::RequestParams
3501
+ # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
3502
+ attr_accessor :amount
3503
+
3504
+ def initialize(amount: nil)
3505
+ @amount = amount
3506
+ end
3507
+ end
3508
+ # The amount to capture, which must be less than or equal to the original amount. Any additional amount will be automatically refunded.
3509
+ attr_accessor :amount
3510
+
3511
+ # An application fee to add on to this charge.
3512
+ attr_accessor :application_fee
3513
+
3514
+ # An application fee amount to add on to this charge, which must be less than or equal to the original amount.
3515
+ attr_accessor :application_fee_amount
3516
+
3517
+ # Specifies which fields in the response should be expanded.
3518
+ attr_accessor :expand
3519
+
3520
+ # Provides industry-specific information about the charge.
3521
+ attr_accessor :payment_details
3522
+
3523
+ # The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
3524
+ attr_accessor :receipt_email
3525
+
3526
+ # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
3527
+ #
3528
+ # For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
3529
+ attr_accessor :statement_descriptor
3530
+
3531
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
3532
+ attr_accessor :statement_descriptor_suffix
3533
+
3534
+ # An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
3535
+ attr_accessor :transfer_data
3536
+
3537
+ # A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
3538
+ attr_accessor :transfer_group
3539
+
3540
+ def initialize(
3541
+ amount: nil,
3542
+ application_fee: nil,
3543
+ application_fee_amount: nil,
3544
+ expand: nil,
3545
+ payment_details: nil,
3546
+ receipt_email: nil,
3547
+ statement_descriptor: nil,
3548
+ statement_descriptor_suffix: nil,
3549
+ transfer_data: nil,
3550
+ transfer_group: nil
3551
+ )
3552
+ @amount = amount
3553
+ @application_fee = application_fee
3554
+ @application_fee_amount = application_fee_amount
3555
+ @expand = expand
3556
+ @payment_details = payment_details
3557
+ @receipt_email = receipt_email
3558
+ @statement_descriptor = statement_descriptor
3559
+ @statement_descriptor_suffix = statement_descriptor_suffix
3560
+ @transfer_data = transfer_data
3561
+ @transfer_group = transfer_group
3562
+ end
3563
+ end
3564
+ # Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
3565
+ attr_reader :amount
3566
+
3567
+ # Amount in cents (or local equivalent) captured (can be less than the amount attribute on the charge if a partial capture was made).
3568
+ attr_reader :amount_captured
3569
+
3570
+ # Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the charge if a partial refund was issued).
3571
+ attr_reader :amount_refunded
3572
+
3573
+ # ID of the Connect application that created the charge.
3574
+ attr_reader :application
3575
+
3576
+ # The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details.
3577
+ attr_reader :application_fee
3578
+
3579
+ # The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details.
3580
+ attr_reader :application_fee_amount
3581
+
3582
+ # Authorization code on the charge.
3583
+ attr_reader :authorization_code
3584
+
3585
+ # ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).
3586
+ attr_reader :balance_transaction
3587
+
3588
+ # Attribute for field billing_details
3589
+ attr_reader :billing_details
3590
+
3591
+ # The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments.
3592
+ attr_reader :calculated_statement_descriptor
3593
+
3594
+ # If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured.
3595
+ attr_reader :captured
3596
+
3597
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
3598
+ attr_reader :created
3599
+
3600
+ # 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).
3601
+ attr_reader :currency
3602
+
3603
+ # ID of the customer this charge is for if one exists.
3604
+ attr_reader :customer
3605
+
3606
+ # An arbitrary string attached to the object. Often useful for displaying to users.
3607
+ attr_reader :description
3608
+
3609
+ # Whether the charge has been disputed.
3610
+ attr_reader :disputed
3611
+
3612
+ # ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.
3613
+ attr_reader :failure_balance_transaction
3614
+
3615
+ # Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/error-codes) for a list of codes).
3616
+ attr_reader :failure_code
3617
+
3618
+ # Message to user further explaining reason for charge failure if available.
3619
+ attr_reader :failure_message
3620
+
3621
+ # Information on fraud assessments for the charge.
3622
+ attr_reader :fraud_details
3623
+
3624
+ # Unique identifier for the object.
3625
+ attr_reader :id
3626
+
3627
+ # ID of the invoice this charge is for if one exists.
3628
+ attr_reader :invoice
3629
+
3630
+ # Attribute for field level3
3631
+ attr_reader :level3
3632
+
3633
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
3634
+ attr_reader :livemode
3635
+
3636
+ # 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.
3637
+ attr_reader :metadata
3638
+
3639
+ # String representing the object's type. Objects of the same type share the same value.
3640
+ attr_reader :object
3641
+
3642
+ # The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
3643
+ attr_reader :on_behalf_of
3644
+
3645
+ # Details about whether the payment was accepted, and why. See [understanding declines](https://stripe.com/docs/declines) for details.
3646
+ attr_reader :outcome
3647
+
3648
+ # `true` if the charge succeeded, or was successfully authorized for later capture.
3649
+ attr_reader :paid
3650
+
3651
+ # ID of the PaymentIntent associated with this charge, if one exists.
3652
+ attr_reader :payment_intent
3653
+
3654
+ # ID of the payment method used in this charge.
3655
+ attr_reader :payment_method
3656
+
3657
+ # Details about the payment method at the time of the transaction.
3658
+ attr_reader :payment_method_details
3659
+
3660
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
3661
+ attr_reader :radar_options
3662
+
3663
+ # This is the email address that the receipt for this charge was sent to.
3664
+ attr_reader :receipt_email
3665
+
3666
+ # This is the transaction number that appears on email receipts sent for this charge. This attribute will be `null` until a receipt has been sent.
3667
+ attr_reader :receipt_number
3668
+
3669
+ # This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
3670
+ attr_reader :receipt_url
3671
+
3672
+ # Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
3673
+ attr_reader :refunded
3674
+
3675
+ # A list of refunds that have been applied to the charge.
3676
+ attr_reader :refunds
3677
+
3678
+ # ID of the review associated with this charge if one exists.
3679
+ attr_reader :review
3680
+
3681
+ # Shipping information for the charge.
3682
+ attr_reader :shipping
3683
+
3684
+ # This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to `payment_method` or `payment_method_details` instead.
3685
+ attr_reader :source
3686
+
3687
+ # The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
3688
+ attr_reader :source_transfer
3689
+
3690
+ # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
3691
+ #
3692
+ # For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
3693
+ attr_reader :statement_descriptor
3694
+
3695
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
3696
+ attr_reader :statement_descriptor_suffix
3697
+
3698
+ # The status of the payment is either `succeeded`, `pending`, or `failed`.
3699
+ attr_reader :status
3700
+
3701
+ # ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter).
3702
+ attr_reader :transfer
3703
+
3704
+ # An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
3705
+ attr_reader :transfer_data
3706
+
3707
+ # A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
3708
+ attr_reader :transfer_group
3709
+
23
3710
  # Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
24
3711
  #
25
3712
  # Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.