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