stripe 13.3.0 → 13.4.0.pre.beta.2

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