stripe 13.3.0 → 13.4.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (743) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1410 -650
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_operations/request.rb +1 -0
  6. data/lib/stripe/api_requestor.rb +1 -0
  7. data/lib/stripe/object_types.rb +32 -0
  8. data/lib/stripe/request_params.rb +24 -0
  9. data/lib/stripe/request_signing_authenticator.rb +79 -0
  10. data/lib/stripe/resources/account.rb +5793 -0
  11. data/lib/stripe/resources/account_link.rb +64 -0
  12. data/lib/stripe/resources/account_notice.rb +154 -0
  13. data/lib/stripe/resources/account_session.rb +1002 -0
  14. data/lib/stripe/resources/apple_pay_domain.rb +73 -0
  15. data/lib/stripe/resources/application.rb +23 -0
  16. data/lib/stripe/resources/application_fee.rb +120 -0
  17. data/lib/stripe/resources/application_fee_refund.rb +24 -0
  18. data/lib/stripe/resources/apps/secret.rb +166 -0
  19. data/lib/stripe/resources/balance.rb +162 -0
  20. data/lib/stripe/resources/balance_transaction.rb +141 -0
  21. data/lib/stripe/resources/bank_account.rb +113 -2
  22. data/lib/stripe/resources/billing/alert.rb +166 -0
  23. data/lib/stripe/resources/billing/alert_triggered.rb +31 -0
  24. data/lib/stripe/resources/billing/credit_balance_summary.rb +89 -0
  25. data/lib/stripe/resources/billing/credit_balance_transaction.rb +140 -0
  26. data/lib/stripe/resources/billing/credit_grant.rb +235 -0
  27. data/lib/stripe/resources/billing/meter.rb +203 -0
  28. data/lib/stripe/resources/billing/meter_error_report.rb +70 -0
  29. data/lib/stripe/resources/billing/meter_event.rb +45 -0
  30. data/lib/stripe/resources/billing/meter_event_adjustment.rb +51 -0
  31. data/lib/stripe/resources/billing/meter_event_summary.rb +21 -0
  32. data/lib/stripe/resources/billing_portal/configuration.rb +639 -0
  33. data/lib/stripe/resources/billing_portal/session.rb +313 -0
  34. data/lib/stripe/resources/capability.rb +111 -0
  35. data/lib/stripe/resources/capital/financing_offer.rb +221 -0
  36. data/lib/stripe/resources/capital/financing_summary.rb +77 -0
  37. data/lib/stripe/resources/capital/financing_transaction.rb +147 -0
  38. data/lib/stripe/resources/card.rb +111 -0
  39. data/lib/stripe/resources/cash_balance.rb +22 -0
  40. data/lib/stripe/resources/charge.rb +3687 -0
  41. data/lib/stripe/resources/checkout/session.rb +4162 -0
  42. data/lib/stripe/resources/climate/order.rb +216 -0
  43. data/lib/stripe/resources/climate/product.rb +69 -0
  44. data/lib/stripe/resources/climate/supplier.rb +67 -0
  45. data/lib/stripe/resources/confirmation_token.rb +1855 -0
  46. data/lib/stripe/resources/connect_collection_transfer.rb +29 -0
  47. data/lib/stripe/resources/country_spec.rb +76 -0
  48. data/lib/stripe/resources/coupon.rb +237 -0
  49. data/lib/stripe/resources/credit_note.rb +798 -0
  50. data/lib/stripe/resources/credit_note_line_item.rb +89 -0
  51. data/lib/stripe/resources/customer.rb +995 -0
  52. data/lib/stripe/resources/customer_balance_transaction.rb +39 -0
  53. data/lib/stripe/resources/customer_cash_balance_transaction.rb +136 -0
  54. data/lib/stripe/resources/customer_session.rb +183 -0
  55. data/lib/stripe/resources/discount.rb +41 -0
  56. data/lib/stripe/resources/dispute.rb +767 -0
  57. data/lib/stripe/resources/entitlements/active_entitlement.rb +54 -0
  58. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +26 -0
  59. data/lib/stripe/resources/entitlements/feature.rb +107 -0
  60. data/lib/stripe/resources/ephemeral_key.rb +26 -0
  61. data/lib/stripe/resources/event.rb +157 -0
  62. data/lib/stripe/resources/exchange_rate.rb +38 -0
  63. data/lib/stripe/resources/file.rb +134 -0
  64. data/lib/stripe/resources/file_link.rb +134 -0
  65. data/lib/stripe/resources/financial_connections/account.rb +307 -0
  66. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +30 -0
  67. data/lib/stripe/resources/financial_connections/account_owner.rb +24 -0
  68. data/lib/stripe/resources/financial_connections/account_ownership.rb +12 -0
  69. data/lib/stripe/resources/financial_connections/institution.rb +112 -0
  70. data/lib/stripe/resources/financial_connections/session.rb +187 -0
  71. data/lib/stripe/resources/financial_connections/transaction.rb +122 -0
  72. data/lib/stripe/resources/forwarding/request.rb +196 -0
  73. data/lib/stripe/resources/funding_instructions.rb +415 -0
  74. data/lib/stripe/resources/gift_cards/card.rb +245 -0
  75. data/lib/stripe/resources/gift_cards/transaction.rb +313 -0
  76. data/lib/stripe/resources/identity/verification_report.rb +335 -0
  77. data/lib/stripe/resources/identity/verification_session.rb +430 -0
  78. data/lib/stripe/resources/invoice.rb +9348 -0
  79. data/lib/stripe/resources/invoice_item.rb +536 -0
  80. data/lib/stripe/resources/invoice_line_item.rb +409 -0
  81. data/lib/stripe/resources/invoice_payment.rb +72 -0
  82. data/lib/stripe/resources/invoice_rendering_template.rb +79 -0
  83. data/lib/stripe/resources/issuing/authorization.rb +1316 -2
  84. data/lib/stripe/resources/issuing/card.rb +794 -0
  85. data/lib/stripe/resources/issuing/cardholder.rb +768 -0
  86. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +693 -0
  87. data/lib/stripe/resources/issuing/dispute.rb +941 -0
  88. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
  89. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +109 -0
  90. data/lib/stripe/resources/issuing/personalization_design.rb +333 -0
  91. data/lib/stripe/resources/issuing/physical_bundle.rb +76 -0
  92. data/lib/stripe/resources/issuing/settlement.rb +65 -0
  93. data/lib/stripe/resources/issuing/token.rb +221 -0
  94. data/lib/stripe/resources/issuing/transaction.rb +1098 -0
  95. data/lib/stripe/resources/line_item.rb +98 -0
  96. data/lib/stripe/resources/login_link.rb +9 -0
  97. data/lib/stripe/resources/mandate.rb +214 -0
  98. data/lib/stripe/resources/margin.rb +143 -0
  99. data/lib/stripe/resources/order.rb +3238 -0
  100. data/lib/stripe/resources/payment_attempt_record.rb +226 -0
  101. data/lib/stripe/resources/payment_intent.rb +14630 -0
  102. data/lib/stripe/resources/payment_link.rb +1761 -0
  103. data/lib/stripe/resources/payment_method.rb +1981 -0
  104. data/lib/stripe/resources/payment_method_configuration.rb +3137 -0
  105. data/lib/stripe/resources/payment_method_domain.rb +176 -0
  106. data/lib/stripe/resources/payment_record.rb +824 -0
  107. data/lib/stripe/resources/payout.rb +267 -0
  108. data/lib/stripe/resources/person.rb +353 -0
  109. data/lib/stripe/resources/plan.rb +386 -0
  110. data/lib/stripe/resources/price.rb +782 -0
  111. data/lib/stripe/resources/product.rb +636 -0
  112. data/lib/stripe/resources/product_feature.rb +16 -0
  113. data/lib/stripe/resources/promotion_code.rb +261 -0
  114. data/lib/stripe/resources/quote.rb +3404 -0
  115. data/lib/stripe/resources/quote_line.rb +340 -0
  116. data/lib/stripe/resources/quote_preview_invoice.rb +833 -0
  117. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +463 -0
  118. data/lib/stripe/resources/radar/early_fraud_warning.rb +93 -0
  119. data/lib/stripe/resources/radar/value_list.rb +151 -0
  120. data/lib/stripe/resources/radar/value_list_item.rb +113 -0
  121. data/lib/stripe/resources/refund.rb +489 -0
  122. data/lib/stripe/resources/reporting/report_run.rb +182 -0
  123. data/lib/stripe/resources/reporting/report_type.rb +44 -0
  124. data/lib/stripe/resources/reserve_transaction.rb +26 -0
  125. data/lib/stripe/resources/reversal.rb +30 -0
  126. data/lib/stripe/resources/review.rb +135 -0
  127. data/lib/stripe/resources/setup_attempt.rb +474 -0
  128. data/lib/stripe/resources/setup_intent.rb +4371 -0
  129. data/lib/stripe/resources/shipping_rate.rb +303 -0
  130. data/lib/stripe/resources/sigma/scheduled_query_run.rb +67 -0
  131. data/lib/stripe/resources/source.rb +1571 -0
  132. data/lib/stripe/resources/source_mandate_notification.rb +79 -0
  133. data/lib/stripe/resources/source_transaction.rb +114 -0
  134. data/lib/stripe/resources/subscription.rb +2395 -0
  135. data/lib/stripe/resources/subscription_item.rb +502 -0
  136. data/lib/stripe/resources/subscription_schedule.rb +2790 -0
  137. data/lib/stripe/resources/tax/association.rb +100 -0
  138. data/lib/stripe/resources/tax/calculation.rb +474 -0
  139. data/lib/stripe/resources/tax/calculation_line_item.rb +76 -0
  140. data/lib/stripe/resources/tax/form.rb +253 -0
  141. data/lib/stripe/resources/tax/registration.rb +2174 -0
  142. data/lib/stripe/resources/tax/settings.rb +146 -0
  143. data/lib/stripe/resources/tax/transaction.rb +332 -0
  144. data/lib/stripe/resources/tax/transaction_line_item.rb +43 -0
  145. data/lib/stripe/resources/tax_code.rb +41 -0
  146. data/lib/stripe/resources/tax_deducted_at_source.rb +26 -0
  147. data/lib/stripe/resources/tax_id.rb +147 -0
  148. data/lib/stripe/resources/tax_rate.rb +245 -0
  149. data/lib/stripe/resources/terminal/configuration.rb +1175 -0
  150. data/lib/stripe/resources/terminal/connection_token.rb +21 -0
  151. data/lib/stripe/resources/terminal/location.rb +208 -0
  152. data/lib/stripe/resources/terminal/reader.rb +911 -0
  153. data/lib/stripe/resources/terminal/reader_collected_data.rb +45 -0
  154. data/lib/stripe/resources/test_helpers/test_clock.rb +101 -0
  155. data/lib/stripe/resources/token.rb +1337 -0
  156. data/lib/stripe/resources/topup.rb +210 -0
  157. data/lib/stripe/resources/transfer.rb +188 -0
  158. data/lib/stripe/resources/treasury/credit_reversal.rb +113 -0
  159. data/lib/stripe/resources/treasury/debit_reversal.rb +126 -0
  160. data/lib/stripe/resources/treasury/financial_account.rb +766 -0
  161. data/lib/stripe/resources/treasury/financial_account_features.rb +237 -0
  162. data/lib/stripe/resources/treasury/inbound_transfer.rb +285 -0
  163. data/lib/stripe/resources/treasury/outbound_payment.rb +587 -0
  164. data/lib/stripe/resources/treasury/outbound_transfer.rb +428 -0
  165. data/lib/stripe/resources/treasury/received_credit.rb +335 -0
  166. data/lib/stripe/resources/treasury/received_debit.rb +298 -0
  167. data/lib/stripe/resources/treasury/transaction.rb +215 -0
  168. data/lib/stripe/resources/treasury/transaction_entry.rb +193 -0
  169. data/lib/stripe/resources/usage_record.rb +18 -0
  170. data/lib/stripe/resources/usage_record_summary.rb +28 -0
  171. data/lib/stripe/resources/v2/amount.rb +9 -0
  172. data/lib/stripe/resources/v2/billing/meter_event.rb +24 -0
  173. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +28 -0
  174. data/lib/stripe/resources/v2/billing/meter_event_session.rb +19 -0
  175. data/lib/stripe/resources/v2/event.rb +35 -0
  176. data/lib/stripe/resources/v2/event_destination.rb +78 -0
  177. data/lib/stripe/resources/webhook_endpoint.rb +148 -0
  178. data/lib/stripe/resources.rb +31 -0
  179. data/lib/stripe/services/account_capability_service.rb +33 -0
  180. data/lib/stripe/services/account_external_account_service.rb +293 -0
  181. data/lib/stripe/services/account_link_service.rb +53 -0
  182. data/lib/stripe/services/account_login_link_service.rb +9 -0
  183. data/lib/stripe/services/account_notice_service.rb +110 -0
  184. data/lib/stripe/services/account_person_service.rb +1014 -0
  185. data/lib/stripe/services/account_service.rb +4862 -0
  186. data/lib/stripe/services/account_session_service.rb +740 -0
  187. data/lib/stripe/services/apple_pay_domain_service.rb +56 -0
  188. data/lib/stripe/services/application_fee_refund_service.rb +60 -0
  189. data/lib/stripe/services/application_fee_service.rb +65 -0
  190. data/lib/stripe/services/apps/secret_service.rb +132 -0
  191. data/lib/stripe/services/balance_service.rb +9 -0
  192. data/lib/stripe/services/balance_transaction_service.rb +80 -0
  193. data/lib/stripe/services/billing/alert_service.rb +125 -0
  194. data/lib/stripe/services/billing/credit_balance_summary_service.rb +41 -0
  195. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +45 -0
  196. data/lib/stripe/services/billing/credit_grant_service.rb +167 -0
  197. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +29 -0
  198. data/lib/stripe/services/billing/meter_event_service.rb +25 -0
  199. data/lib/stripe/services/billing/meter_event_summary_service.rb +46 -0
  200. data/lib/stripe/services/billing/meter_service.rb +142 -0
  201. data/lib/stripe/services/billing_portal/configuration_service.rb +492 -0
  202. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  203. data/lib/stripe/services/capital/financing_offer_service.rb +121 -0
  204. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  205. data/lib/stripe/services/capital/financing_transaction_service.rb +86 -0
  206. data/lib/stripe/services/capital_service.rb +15 -0
  207. data/lib/stripe/services/charge_service.rb +2010 -0
  208. data/lib/stripe/services/checkout/session_line_item_service.rb +21 -0
  209. data/lib/stripe/services/checkout/session_service.rb +2736 -0
  210. data/lib/stripe/services/climate/order_service.rb +113 -0
  211. data/lib/stripe/services/climate/product_service.rb +30 -0
  212. data/lib/stripe/services/climate/supplier_service.rb +30 -0
  213. data/lib/stripe/services/confirmation_token_service.rb +9 -0
  214. data/lib/stripe/services/country_spec_service.rb +30 -0
  215. data/lib/stripe/services/coupon_service.rb +174 -0
  216. data/lib/stripe/services/credit_note_line_item_service.rb +21 -0
  217. data/lib/stripe/services/credit_note_preview_lines_service.rb +184 -0
  218. data/lib/stripe/services/credit_note_service.rb +434 -0
  219. data/lib/stripe/services/customer_balance_transaction_service.rb +72 -0
  220. data/lib/stripe/services/customer_cash_balance_service.rb +30 -0
  221. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +30 -0
  222. data/lib/stripe/services/customer_funding_instructions_service.rb +47 -0
  223. data/lib/stripe/services/customer_payment_method_service.rb +45 -0
  224. data/lib/stripe/services/customer_payment_source_service.rb +208 -0
  225. data/lib/stripe/services/customer_service.rb +684 -0
  226. data/lib/stripe/services/customer_session_service.rb +106 -0
  227. data/lib/stripe/services/customer_tax_id_service.rb +50 -0
  228. data/lib/stripe/services/dispute_service.rb +439 -0
  229. data/lib/stripe/services/entitlements/active_entitlement_service.rb +40 -0
  230. data/lib/stripe/services/entitlements/feature_service.rb +87 -0
  231. data/lib/stripe/services/ephemeral_key_service.rb +40 -0
  232. data/lib/stripe/services/event_service.rb +75 -0
  233. data/lib/stripe/services/exchange_rate_service.rb +30 -0
  234. data/lib/stripe/services/file_link_service.rb +108 -0
  235. data/lib/stripe/services/file_service.rb +102 -0
  236. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +40 -0
  237. data/lib/stripe/services/financial_connections/account_owner_service.rb +31 -0
  238. data/lib/stripe/services/financial_connections/account_service.rb +108 -1
  239. data/lib/stripe/services/financial_connections/institution_service.rb +60 -0
  240. data/lib/stripe/services/financial_connections/session_service.rb +108 -0
  241. data/lib/stripe/services/financial_connections/transaction_service.rb +79 -0
  242. data/lib/stripe/services/financial_connections_service.rb +2 -1
  243. data/lib/stripe/services/forwarding/request_service.rb +120 -0
  244. data/lib/stripe/services/gift_cards/card_service.rb +183 -0
  245. data/lib/stripe/services/gift_cards/transaction_service.rb +225 -0
  246. data/lib/stripe/services/gift_cards_service.rb +14 -0
  247. data/lib/stripe/services/identity/verification_report_service.rb +75 -0
  248. data/lib/stripe/services/identity/verification_session_service.rb +261 -0
  249. data/lib/stripe/services/invoice_item_service.rb +454 -0
  250. data/lib/stripe/services/invoice_line_item_service.rb +277 -0
  251. data/lib/stripe/services/invoice_payment_service.rb +58 -0
  252. data/lib/stripe/services/invoice_rendering_template_service.rb +56 -0
  253. data/lib/stripe/services/invoice_service.rb +6375 -1
  254. data/lib/stripe/services/invoice_upcoming_lines_service.rb +2142 -0
  255. data/lib/stripe/services/issuing/authorization_service.rb +118 -0
  256. data/lib/stripe/services/issuing/card_service.rb +525 -0
  257. data/lib/stripe/services/issuing/cardholder_service.rb +599 -0
  258. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +560 -0
  259. data/lib/stripe/services/issuing/dispute_service.rb +731 -0
  260. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +70 -0
  261. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +90 -0
  262. data/lib/stripe/services/issuing/personalization_design_service.rb +222 -0
  263. data/lib/stripe/services/issuing/physical_bundle_service.rb +45 -0
  264. data/lib/stripe/services/issuing/token_service.rb +83 -0
  265. data/lib/stripe/services/issuing/transaction_service.rb +93 -0
  266. data/lib/stripe/services/issuing_service.rb +5 -1
  267. data/lib/stripe/services/mandate_service.rb +9 -0
  268. data/lib/stripe/services/margin_service.rb +130 -0
  269. data/lib/stripe/services/order_line_item_service.rb +38 -0
  270. data/lib/stripe/services/order_service.rb +2518 -0
  271. data/lib/stripe/services/payment_attempt_record_service.rb +50 -0
  272. data/lib/stripe/services/payment_intent_service.rb +12203 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +21 -0
  274. data/lib/stripe/services/payment_link_service.rb +1343 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2148 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +84 -0
  277. data/lib/stripe/services/payment_method_service.rb +977 -0
  278. data/lib/stripe/services/payment_record_service.rb +610 -0
  279. data/lib/stripe/services/payout_service.rb +182 -0
  280. data/lib/stripe/services/plan_service.rb +296 -0
  281. data/lib/stripe/services/price_service.rb +603 -0
  282. data/lib/stripe/services/product_feature_service.rb +46 -0
  283. data/lib/stripe/services/product_service.rb +533 -0
  284. data/lib/stripe/services/promotion_code_service.rb +203 -0
  285. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +21 -0
  286. data/lib/stripe/services/quote_line_item_service.rb +21 -0
  287. data/lib/stripe/services/quote_line_service.rb +38 -0
  288. data/lib/stripe/services/quote_preview_invoice_service.rb +38 -0
  289. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +38 -0
  290. data/lib/stripe/services/quote_service.rb +2628 -1
  291. data/lib/stripe/services/radar/early_fraud_warning_service.rb +70 -0
  292. data/lib/stripe/services/radar/value_list_item_service.rb +90 -0
  293. data/lib/stripe/services/radar/value_list_service.rb +119 -0
  294. data/lib/stripe/services/refund_service.rb +158 -0
  295. data/lib/stripe/services/reporting/report_run_service.rb +122 -0
  296. data/lib/stripe/services/reporting/report_type_service.rb +18 -0
  297. data/lib/stripe/services/review_service.rb +63 -0
  298. data/lib/stripe/services/setup_attempt_service.rb +59 -0
  299. data/lib/stripe/services/setup_intent_service.rb +3923 -0
  300. data/lib/stripe/services/shipping_rate_service.rb +227 -0
  301. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
  302. data/lib/stripe/services/source_service.rb +693 -0
  303. data/lib/stripe/services/source_transaction_service.rb +21 -0
  304. data/lib/stripe/services/subscription_item_service.rb +439 -0
  305. data/lib/stripe/services/subscription_item_usage_record_service.rb +21 -0
  306. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +21 -0
  307. data/lib/stripe/services/subscription_schedule_service.rb +2343 -0
  308. data/lib/stripe/services/subscription_service.rb +1967 -0
  309. data/lib/stripe/services/tax/association_service.rb +32 -0
  310. data/lib/stripe/services/tax/calculation_line_item_service.rb +21 -0
  311. data/lib/stripe/services/tax/calculation_service.rb +235 -0
  312. data/lib/stripe/services/tax/form_service.rb +107 -0
  313. data/lib/stripe/services/tax/registration_service.rb +1398 -0
  314. data/lib/stripe/services/tax/settings_service.rb +82 -0
  315. data/lib/stripe/services/tax/transaction_line_item_service.rb +21 -0
  316. data/lib/stripe/services/tax/transaction_service.rb +128 -0
  317. data/lib/stripe/services/tax_code_service.rb +30 -0
  318. data/lib/stripe/services/tax_id_service.rb +90 -0
  319. data/lib/stripe/services/tax_rate_service.rb +182 -0
  320. data/lib/stripe/services/tax_service.rb +3 -1
  321. data/lib/stripe/services/terminal/configuration_service.rb +901 -0
  322. data/lib/stripe/services/terminal/connection_token_service.rb +13 -0
  323. data/lib/stripe/services/terminal/location_service.rb +165 -0
  324. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  325. data/lib/stripe/services/terminal/reader_service.rb +496 -0
  326. data/lib/stripe/services/terminal_service.rb +2 -1
  327. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +762 -0
  328. data/lib/stripe/services/test_helpers/customer_service.rb +21 -0
  329. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +844 -0
  330. data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
  331. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
  332. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +723 -0
  333. data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
  334. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +48 -0
  335. data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
  336. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +39 -0
  337. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +93 -0
  338. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +93 -0
  339. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +95 -0
  340. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +95 -0
  341. data/lib/stripe/services/token_service.rb +1301 -0
  342. data/lib/stripe/services/topup_service.rb +163 -0
  343. data/lib/stripe/services/transfer_reversal_service.rb +74 -0
  344. data/lib/stripe/services/transfer_service.rb +138 -0
  345. data/lib/stripe/services/treasury/credit_reversal_service.rb +67 -0
  346. data/lib/stripe/services/treasury/debit_reversal_service.rb +72 -0
  347. data/lib/stripe/services/treasury/financial_account_features_service.rb +179 -0
  348. data/lib/stripe/services/treasury/financial_account_service.rb +481 -0
  349. data/lib/stripe/services/treasury/inbound_transfer_service.rb +100 -0
  350. data/lib/stripe/services/treasury/outbound_payment_service.rb +296 -0
  351. data/lib/stripe/services/treasury/outbound_transfer_service.rb +147 -0
  352. data/lib/stripe/services/treasury/received_credit_service.rb +58 -0
  353. data/lib/stripe/services/treasury/received_debit_service.rb +45 -0
  354. data/lib/stripe/services/treasury/transaction_entry_service.rb +101 -0
  355. data/lib/stripe/services/treasury/transaction_service.rb +109 -0
  356. data/lib/stripe/services/v1_services.rb +8 -1
  357. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +25 -0
  358. data/lib/stripe/services/v2/billing/meter_event_service.rb +28 -0
  359. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
  360. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +36 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +164 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +20 -0
  363. data/lib/stripe/services/webhook_endpoint_service.rb +110 -0
  364. data/lib/stripe/services.rb +25 -0
  365. data/lib/stripe/stripe_client.rb +2 -2
  366. data/lib/stripe/stripe_configuration.rb +3 -1
  367. data/lib/stripe/stripe_object.rb +8 -3
  368. data/lib/stripe/util.rb +8 -2
  369. data/lib/stripe/version.rb +1 -1
  370. data/lib/stripe.rb +46 -0
  371. data/rbi/stripe/resources/account.rbi +6072 -0
  372. data/rbi/stripe/resources/account_link.rbi +87 -0
  373. data/rbi/stripe/resources/account_notice.rbi +166 -0
  374. data/rbi/stripe/resources/account_session.rbi +1173 -0
  375. data/rbi/stripe/resources/apple_pay_domain.rbi +111 -0
  376. data/rbi/stripe/resources/application.rbi +23 -0
  377. data/rbi/stripe/resources/application_fee.rbi +151 -0
  378. data/rbi/stripe/resources/application_fee_refund.rbi +44 -0
  379. data/rbi/stripe/resources/apps/secret.rbi +229 -0
  380. data/rbi/stripe/resources/balance.rbi +220 -0
  381. data/rbi/stripe/resources/balance_transaction.rbi +182 -0
  382. data/rbi/stripe/resources/bank_account.rbi +156 -0
  383. data/rbi/stripe/resources/billing/alert.rbi +237 -0
  384. data/rbi/stripe/resources/billing/alert_triggered.rbi +33 -0
  385. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +118 -0
  386. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +181 -0
  387. data/rbi/stripe/resources/billing/credit_grant.rbi +312 -0
  388. data/rbi/stripe/resources/billing/meter.rbi +268 -0
  389. data/rbi/stripe/resources/billing/meter_error_report.rbi +82 -0
  390. data/rbi/stripe/resources/billing/meter_event.rbi +76 -0
  391. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +75 -0
  392. data/rbi/stripe/resources/billing/meter_event_summary.rbi +39 -0
  393. data/rbi/stripe/resources/billing_portal/configuration.rbi +746 -0
  394. data/rbi/stripe/resources/billing_portal/session.rbi +396 -0
  395. data/rbi/stripe/resources/capability.rbi +152 -0
  396. data/rbi/stripe/resources/capital/financing_offer.rbi +228 -0
  397. data/rbi/stripe/resources/capital/financing_summary.rbi +89 -0
  398. data/rbi/stripe/resources/capital/financing_transaction.rbi +157 -0
  399. data/rbi/stripe/resources/card.rbi +159 -0
  400. data/rbi/stripe/resources/cash_balance.rbi +37 -0
  401. data/rbi/stripe/resources/charge.rbi +4216 -0
  402. data/rbi/stripe/resources/checkout/session.rbi +4627 -0
  403. data/rbi/stripe/resources/climate/order.rbi +298 -0
  404. data/rbi/stripe/resources/climate/product.rbi +98 -0
  405. data/rbi/stripe/resources/climate/supplier.rbi +95 -0
  406. data/rbi/stripe/resources/confirmation_token.rbi +2137 -0
  407. data/rbi/stripe/resources/connect_collection_transfer.rbi +31 -0
  408. data/rbi/stripe/resources/country_spec.rbi +108 -0
  409. data/rbi/stripe/resources/coupon.rbi +305 -0
  410. data/rbi/stripe/resources/credit_note.rbi +918 -0
  411. data/rbi/stripe/resources/credit_note_line_item.rbi +123 -0
  412. data/rbi/stripe/resources/customer.rbi +1188 -0
  413. data/rbi/stripe/resources/customer_balance_transaction.rbi +65 -0
  414. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +178 -0
  415. data/rbi/stripe/resources/customer_session.rbi +227 -0
  416. data/rbi/stripe/resources/discount.rbi +65 -0
  417. data/rbi/stripe/resources/dispute.rbi +926 -0
  418. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +76 -0
  419. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +26 -0
  420. data/rbi/stripe/resources/entitlements/feature.rbi +146 -0
  421. data/rbi/stripe/resources/ephemeral_key.rbi +51 -0
  422. data/rbi/stripe/resources/event.rbi +221 -0
  423. data/rbi/stripe/resources/exchange_rate.rbi +81 -0
  424. data/rbi/stripe/resources/file.rbi +177 -0
  425. data/rbi/stripe/resources/file_link.rbi +174 -0
  426. data/rbi/stripe/resources/financial_connections/account.rbi +414 -0
  427. data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +30 -0
  428. data/rbi/stripe/resources/financial_connections/account_owner.rbi +42 -0
  429. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +26 -0
  430. data/rbi/stripe/resources/financial_connections/institution.rbi +115 -0
  431. data/rbi/stripe/resources/financial_connections/session.rbi +221 -0
  432. data/rbi/stripe/resources/financial_connections/transaction.rbi +153 -0
  433. data/rbi/stripe/resources/forwarding/request.rbi +257 -0
  434. data/rbi/stripe/resources/funding_instructions.rbi +544 -0
  435. data/rbi/stripe/resources/gift_cards/card.rbi +242 -0
  436. data/rbi/stripe/resources/gift_cards/transaction.rbi +298 -0
  437. data/rbi/stripe/resources/identity/verification_report.rbi +427 -0
  438. data/rbi/stripe/resources/identity/verification_session.rbi +601 -0
  439. data/rbi/stripe/resources/invoice.rbi +10584 -0
  440. data/rbi/stripe/resources/invoice_item.rbi +621 -0
  441. data/rbi/stripe/resources/invoice_line_item.rbi +486 -0
  442. data/rbi/stripe/resources/invoice_payment.rbi +86 -0
  443. data/rbi/stripe/resources/invoice_rendering_template.rbi +131 -0
  444. data/rbi/stripe/resources/issuing/authorization.rbi +1511 -0
  445. data/rbi/stripe/resources/issuing/card.rbi +891 -0
  446. data/rbi/stripe/resources/issuing/cardholder.rbi +870 -0
  447. data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +731 -0
  448. data/rbi/stripe/resources/issuing/dispute.rbi +1077 -0
  449. data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +100 -0
  450. data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +108 -0
  451. data/rbi/stripe/resources/issuing/personalization_design.rbi +395 -0
  452. data/rbi/stripe/resources/issuing/physical_bundle.rbi +102 -0
  453. data/rbi/stripe/resources/issuing/settlement.rbi +78 -0
  454. data/rbi/stripe/resources/issuing/token.rbi +282 -0
  455. data/rbi/stripe/resources/issuing/transaction.rbi +1262 -0
  456. data/rbi/stripe/resources/line_item.rbi +131 -0
  457. data/rbi/stripe/resources/login_link.rbi +20 -0
  458. data/rbi/stripe/resources/mandate.rbi +266 -0
  459. data/rbi/stripe/resources/margin.rbi +151 -0
  460. data/rbi/stripe/resources/order.rbi +3505 -0
  461. data/rbi/stripe/resources/payment_attempt_record.rbi +260 -0
  462. data/rbi/stripe/resources/payment_intent.rbi +16064 -0
  463. data/rbi/stripe/resources/payment_link.rbi +1943 -0
  464. data/rbi/stripe/resources/payment_method.rbi +2287 -0
  465. data/rbi/stripe/resources/payment_method_configuration.rbi +3657 -0
  466. data/rbi/stripe/resources/payment_method_domain.rbi +246 -0
  467. data/rbi/stripe/resources/payment_record.rbi +856 -0
  468. data/rbi/stripe/resources/payout.rbi +357 -0
  469. data/rbi/stripe/resources/person.rbi +461 -0
  470. data/rbi/stripe/resources/plan.rbi +463 -0
  471. data/rbi/stripe/resources/price.rbi +884 -0
  472. data/rbi/stripe/resources/product.rbi +735 -0
  473. data/rbi/stripe/resources/product_feature.rbi +30 -0
  474. data/rbi/stripe/resources/promotion_code.rbi +316 -0
  475. data/rbi/stripe/resources/quote.rbi +3779 -0
  476. data/rbi/stripe/resources/quote_line.rbi +416 -0
  477. data/rbi/stripe/resources/quote_preview_invoice.rbi +1030 -0
  478. data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +575 -0
  479. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +121 -0
  480. data/rbi/stripe/resources/radar/value_list.rbi +207 -0
  481. data/rbi/stripe/resources/radar/value_list_item.rbi +157 -0
  482. data/rbi/stripe/resources/refund.rbi +615 -0
  483. data/rbi/stripe/resources/reporting/report_run.rbi +232 -0
  484. data/rbi/stripe/resources/reporting/report_type.rbi +75 -0
  485. data/rbi/stripe/resources/reserve_transaction.rbi +27 -0
  486. data/rbi/stripe/resources/reversal.rbi +60 -0
  487. data/rbi/stripe/resources/review.rbi +191 -0
  488. data/rbi/stripe/resources/setup_attempt.rbi +587 -0
  489. data/rbi/stripe/resources/setup_intent.rbi +4726 -0
  490. data/rbi/stripe/resources/shipping_rate.rbi +367 -0
  491. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +98 -0
  492. data/rbi/stripe/resources/source.rbi +1899 -0
  493. data/rbi/stripe/resources/source_mandate_notification.rbi +90 -0
  494. data/rbi/stripe/resources/source_transaction.rbi +156 -0
  495. data/rbi/stripe/resources/subscription.rbi +2739 -0
  496. data/rbi/stripe/resources/subscription_item.rbi +566 -0
  497. data/rbi/stripe/resources/subscription_schedule.rbi +3157 -0
  498. data/rbi/stripe/resources/tax/association.rbi +107 -0
  499. data/rbi/stripe/resources/tax/calculation.rbi +577 -0
  500. data/rbi/stripe/resources/tax/calculation_line_item.rbi +108 -0
  501. data/rbi/stripe/resources/tax/form.rbi +262 -0
  502. data/rbi/stripe/resources/tax/registration.rbi +2354 -0
  503. data/rbi/stripe/resources/tax/settings.rbi +174 -0
  504. data/rbi/stripe/resources/tax/transaction.rbi +428 -0
  505. data/rbi/stripe/resources/tax/transaction_line_item.rbi +66 -0
  506. data/rbi/stripe/resources/tax_code.rbi +60 -0
  507. data/rbi/stripe/resources/tax_deducted_at_source.rbi +27 -0
  508. data/rbi/stripe/resources/tax_id.rbi +206 -0
  509. data/rbi/stripe/resources/tax_rate.rbi +295 -0
  510. data/rbi/stripe/resources/terminal/configuration.rbi +1302 -0
  511. data/rbi/stripe/resources/terminal/connection_token.rbi +42 -0
  512. data/rbi/stripe/resources/terminal/location.rbi +271 -0
  513. data/rbi/stripe/resources/terminal/reader.rbi +1110 -0
  514. data/rbi/stripe/resources/terminal/reader_collected_data.rbi +48 -0
  515. data/rbi/stripe/resources/test_helpers/test_clock.rbi +159 -0
  516. data/rbi/stripe/resources/token.rbi +1405 -0
  517. data/rbi/stripe/resources/topup.rbi +269 -0
  518. data/rbi/stripe/resources/transfer.rbi +245 -0
  519. data/rbi/stripe/resources/treasury/credit_reversal.rbi +151 -0
  520. data/rbi/stripe/resources/treasury/debit_reversal.rbi +165 -0
  521. data/rbi/stripe/resources/treasury/financial_account.rbi +924 -0
  522. data/rbi/stripe/resources/treasury/financial_account_features.rbi +309 -0
  523. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +361 -0
  524. data/rbi/stripe/resources/treasury/outbound_payment.rbi +702 -0
  525. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +529 -0
  526. data/rbi/stripe/resources/treasury/received_credit.rbi +408 -0
  527. data/rbi/stripe/resources/treasury/received_debit.rbi +367 -0
  528. data/rbi/stripe/resources/treasury/transaction.rbi +261 -0
  529. data/rbi/stripe/resources/treasury/transaction_entry.rbi +234 -0
  530. data/rbi/stripe/resources/usage_record.rbi +37 -0
  531. data/rbi/stripe/resources/usage_record_summary.rbi +45 -0
  532. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  533. data/rbi/stripe/resources/v2/billing/meter_event.rbi +43 -0
  534. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +48 -0
  535. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +36 -0
  536. data/rbi/stripe/resources/v2/event.rbi +55 -0
  537. data/rbi/stripe/resources/v2/event_destination.rbi +109 -0
  538. data/rbi/stripe/resources/webhook_endpoint.rbi +208 -0
  539. data/rbi/stripe/services/account_capability_service.rbi +55 -0
  540. data/rbi/stripe/services/account_external_account_service.rbi +358 -0
  541. data/rbi/stripe/services/account_link_service.rbi +67 -0
  542. data/rbi/stripe/services/account_login_link_service.rbi +23 -0
  543. data/rbi/stripe/services/account_notice_service.rbi +103 -0
  544. data/rbi/stripe/services/account_person_service.rbi +1077 -0
  545. data/rbi/stripe/services/account_service.rbi +4948 -0
  546. data/rbi/stripe/services/account_session_service.rbi +873 -0
  547. data/rbi/stripe/services/apple_pay_domain_service.rbi +86 -0
  548. data/rbi/stripe/services/application_fee_refund_service.rbi +101 -0
  549. data/rbi/stripe/services/application_fee_service.rbi +85 -0
  550. data/rbi/stripe/services/apps/secret_service.rbi +175 -0
  551. data/rbi/stripe/services/apps_service.rbi +9 -0
  552. data/rbi/stripe/services/balance_service.rbi +22 -0
  553. data/rbi/stripe/services/balance_transaction_service.rbi +103 -0
  554. data/rbi/stripe/services/billing/alert_service.rbi +172 -0
  555. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +61 -0
  556. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +66 -0
  557. data/rbi/stripe/services/billing/credit_grant_service.rbi +217 -0
  558. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +45 -0
  559. data/rbi/stripe/services/billing/meter_event_service.rbi +47 -0
  560. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +62 -0
  561. data/rbi/stripe/services/billing/meter_service.rbi +184 -0
  562. data/rbi/stripe/services/billing_portal/configuration_service.rbi +573 -0
  563. data/rbi/stripe/services/billing_portal/session_service.rbi +233 -0
  564. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  565. data/rbi/stripe/services/billing_service.rbi +15 -0
  566. data/rbi/stripe/services/capital/financing_offer_service.rbi +108 -0
  567. data/rbi/stripe/services/capital/financing_summary_service.rbi +23 -0
  568. data/rbi/stripe/services/capital/financing_transaction_service.rbi +77 -0
  569. data/rbi/stripe/services/capital_service.rbi +11 -0
  570. data/rbi/stripe/services/charge_service.rbi +2162 -0
  571. data/rbi/stripe/services/checkout/session_line_item_service.rbi +37 -0
  572. data/rbi/stripe/services/checkout/session_service.rbi +2975 -0
  573. data/rbi/stripe/services/checkout_service.rbi +9 -0
  574. data/rbi/stripe/services/climate/order_service.rbi +158 -0
  575. data/rbi/stripe/services/climate/product_service.rbi +51 -0
  576. data/rbi/stripe/services/climate/supplier_service.rbi +51 -0
  577. data/rbi/stripe/services/climate_service.rbi +11 -0
  578. data/rbi/stripe/services/confirmation_token_service.rbi +21 -0
  579. data/rbi/stripe/services/country_spec_service.rbi +49 -0
  580. data/rbi/stripe/services/coupon_service.rbi +220 -0
  581. data/rbi/stripe/services/credit_note_line_item_service.rbi +35 -0
  582. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +200 -0
  583. data/rbi/stripe/services/credit_note_service.rbi +496 -0
  584. data/rbi/stripe/services/customer_balance_transaction_service.rbi +105 -0
  585. data/rbi/stripe/services/customer_cash_balance_service.rbi +49 -0
  586. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +49 -0
  587. data/rbi/stripe/services/customer_funding_instructions_service.rbi +67 -0
  588. data/rbi/stripe/services/customer_payment_method_service.rbi +64 -0
  589. data/rbi/stripe/services/customer_payment_source_service.rbi +265 -0
  590. data/rbi/stripe/services/customer_service.rbi +763 -0
  591. data/rbi/stripe/services/customer_session_service.rbi +126 -0
  592. data/rbi/stripe/services/customer_tax_id_service.rbi +80 -0
  593. data/rbi/stripe/services/dispute_service.rbi +500 -0
  594. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +61 -0
  595. data/rbi/stripe/services/entitlements/feature_service.rbi +122 -0
  596. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  597. data/rbi/stripe/services/ephemeral_key_service.rbi +59 -0
  598. data/rbi/stripe/services/event_service.rbi +94 -0
  599. data/rbi/stripe/services/exchange_rate_service.rbi +49 -0
  600. data/rbi/stripe/services/file_link_service.rbi +141 -0
  601. data/rbi/stripe/services/file_service.rbi +132 -0
  602. data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +37 -0
  603. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +47 -0
  604. data/rbi/stripe/services/financial_connections/account_service.rbi +148 -0
  605. data/rbi/stripe/services/financial_connections/institution_service.rbi +51 -0
  606. data/rbi/stripe/services/financial_connections/session_service.rbi +128 -0
  607. data/rbi/stripe/services/financial_connections/transaction_service.rbi +103 -0
  608. data/rbi/stripe/services/financial_connections_service.rbi +12 -0
  609. data/rbi/stripe/services/forwarding/request_service.rbi +152 -0
  610. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  611. data/rbi/stripe/services/gift_cards/card_service.rbi +162 -0
  612. data/rbi/stripe/services/gift_cards/transaction_service.rbi +198 -0
  613. data/rbi/stripe/services/gift_cards_service.rbi +10 -0
  614. data/rbi/stripe/services/identity/verification_report_service.rbi +98 -0
  615. data/rbi/stripe/services/identity/verification_session_service.rbi +360 -0
  616. data/rbi/stripe/services/identity_service.rbi +10 -0
  617. data/rbi/stripe/services/invoice_item_service.rbi +505 -0
  618. data/rbi/stripe/services/invoice_line_item_service.rbi +320 -0
  619. data/rbi/stripe/services/invoice_payment_service.rbi +49 -0
  620. data/rbi/stripe/services/invoice_rendering_template_service.rbi +91 -0
  621. data/rbi/stripe/services/invoice_service.rbi +7138 -0
  622. data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +2397 -0
  623. data/rbi/stripe/services/issuing/authorization_service.rbi +160 -0
  624. data/rbi/stripe/services/issuing/card_service.rbi +568 -0
  625. data/rbi/stripe/services/issuing/cardholder_service.rbi +668 -0
  626. data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +580 -0
  627. data/rbi/stripe/services/issuing/dispute_service.rbi +824 -0
  628. data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +61 -0
  629. data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +83 -0
  630. data/rbi/stripe/services/issuing/personalization_design_service.rbi +271 -0
  631. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +66 -0
  632. data/rbi/stripe/services/issuing/token_service.rbi +109 -0
  633. data/rbi/stripe/services/issuing/transaction_service.rbi +119 -0
  634. data/rbi/stripe/services/issuing_service.rbi +19 -0
  635. data/rbi/stripe/services/mandate_service.rbi +21 -0
  636. data/rbi/stripe/services/margin_service.rbi +119 -0
  637. data/rbi/stripe/services/order_line_item_service.rbi +35 -0
  638. data/rbi/stripe/services/order_service.rbi +2669 -0
  639. data/rbi/stripe/services/payment_attempt_record_service.rbi +39 -0
  640. data/rbi/stripe/services/payment_intent_service.rbi +13193 -0
  641. data/rbi/stripe/services/payment_link_line_item_service.rbi +35 -0
  642. data/rbi/stripe/services/payment_link_service.rbi +1447 -0
  643. data/rbi/stripe/services/payment_method_configuration_service.rbi +2465 -0
  644. data/rbi/stripe/services/payment_method_domain_service.rbi +123 -0
  645. data/rbi/stripe/services/payment_method_service.rbi +1032 -0
  646. data/rbi/stripe/services/payment_record_service.rbi +613 -0
  647. data/rbi/stripe/services/payout_service.rbi +228 -0
  648. data/rbi/stripe/services/plan_service.rbi +337 -0
  649. data/rbi/stripe/services/price_service.rbi +657 -0
  650. data/rbi/stripe/services/product_feature_service.rbi +76 -0
  651. data/rbi/stripe/services/product_service.rbi +596 -0
  652. data/rbi/stripe/services/promotion_code_service.rbi +244 -0
  653. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +35 -0
  654. data/rbi/stripe/services/quote_line_item_service.rbi +35 -0
  655. data/rbi/stripe/services/quote_line_service.rbi +35 -0
  656. data/rbi/stripe/services/quote_preview_invoice_service.rbi +35 -0
  657. data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +35 -0
  658. data/rbi/stripe/services/quote_service.rbi +2830 -0
  659. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +95 -0
  660. data/rbi/stripe/services/radar/value_list_item_service.rbi +122 -0
  661. data/rbi/stripe/services/radar/value_list_service.rbi +160 -0
  662. data/rbi/stripe/services/radar_service.rbi +11 -0
  663. data/rbi/stripe/services/refund_service.rbi +208 -0
  664. data/rbi/stripe/services/reporting/report_run_service.rbi +152 -0
  665. data/rbi/stripe/services/reporting/report_type_service.rbi +37 -0
  666. data/rbi/stripe/services/reporting_service.rbi +10 -0
  667. data/rbi/stripe/services/review_service.rbi +93 -0
  668. data/rbi/stripe/services/setup_attempt_service.rbi +73 -0
  669. data/rbi/stripe/services/setup_intent_service.rbi +4204 -0
  670. data/rbi/stripe/services/shipping_rate_service.rbi +274 -0
  671. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +51 -0
  672. data/rbi/stripe/services/sigma_service.rbi +9 -0
  673. data/rbi/stripe/services/source_service.rbi +766 -0
  674. data/rbi/stripe/services/source_transaction_service.rbi +35 -0
  675. data/rbi/stripe/services/subscription_item_service.rbi +496 -0
  676. data/rbi/stripe/services/subscription_item_usage_record_service.rbi +41 -0
  677. data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +37 -0
  678. data/rbi/stripe/services/subscription_schedule_service.rbi +2613 -0
  679. data/rbi/stripe/services/subscription_service.rbi +2207 -0
  680. data/rbi/stripe/services/tax/association_service.rbi +27 -0
  681. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +37 -0
  682. data/rbi/stripe/services/tax/calculation_service.rbi +267 -0
  683. data/rbi/stripe/services/tax/form_service.rbi +96 -0
  684. data/rbi/stripe/services/tax/registration_service.rbi +1495 -0
  685. data/rbi/stripe/services/tax/settings_service.rbi +106 -0
  686. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +37 -0
  687. data/rbi/stripe/services/tax/transaction_service.rbi +164 -0
  688. data/rbi/stripe/services/tax_code_service.rbi +49 -0
  689. data/rbi/stripe/services/tax_id_service.rbi +128 -0
  690. data/rbi/stripe/services/tax_rate_service.rbi +215 -0
  691. data/rbi/stripe/services/tax_service.rbi +14 -0
  692. data/rbi/stripe/services/terminal/configuration_service.rbi +976 -0
  693. data/rbi/stripe/services/terminal/connection_token_service.rbi +27 -0
  694. data/rbi/stripe/services/terminal/location_service.rbi +211 -0
  695. data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +23 -0
  696. data/rbi/stripe/services/terminal/reader_service.rbi +591 -0
  697. data/rbi/stripe/services/terminal_service.rbi +13 -0
  698. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +892 -0
  699. data/rbi/stripe/services/test_helpers/customer_service.rbi +37 -0
  700. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +974 -0
  701. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +81 -0
  702. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +73 -0
  703. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +825 -0
  704. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  705. data/rbi/stripe/services/test_helpers/refund_service.rbi +23 -0
  706. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +69 -0
  707. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  708. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +100 -0
  709. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +69 -0
  710. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +137 -0
  711. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +137 -0
  712. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +130 -0
  713. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +130 -0
  714. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  715. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  716. data/rbi/stripe/services/token_service.rbi +1357 -0
  717. data/rbi/stripe/services/topup_service.rbi +200 -0
  718. data/rbi/stripe/services/transfer_reversal_service.rbi +111 -0
  719. data/rbi/stripe/services/transfer_service.rbi +174 -0
  720. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +95 -0
  721. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +100 -0
  722. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +226 -0
  723. data/rbi/stripe/services/treasury/financial_account_service.rbi +577 -0
  724. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +133 -0
  725. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +350 -0
  726. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +189 -0
  727. data/rbi/stripe/services/treasury/received_credit_service.rbi +79 -0
  728. data/rbi/stripe/services/treasury/received_debit_service.rbi +66 -0
  729. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +125 -0
  730. data/rbi/stripe/services/treasury/transaction_service.rbi +133 -0
  731. data/rbi/stripe/services/treasury_service.rbi +18 -0
  732. data/rbi/stripe/services/v1_services.rbi +83 -0
  733. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +43 -0
  734. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +46 -0
  735. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  736. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +60 -0
  737. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  738. data/rbi/stripe/services/v2/core/event_destination_service.rbi +228 -0
  739. data/rbi/stripe/services/v2/core/event_service.rbi +42 -0
  740. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  741. data/rbi/stripe/services/v2_services.rbi +10 -0
  742. data/rbi/stripe/services/webhook_endpoint_service.rbi +149 -0
  743. metadata +435 -4
@@ -3,6 +3,2016 @@
3
3
 
4
4
  module Stripe
5
5
  class ChargeService < StripeService
6
+ class ListParams < Stripe::RequestParams
7
+ class Created < Stripe::RequestParams
8
+ # Minimum value to filter by (exclusive)
9
+ attr_accessor :gt
10
+
11
+ # Minimum value to filter by (inclusive)
12
+ attr_accessor :gte
13
+
14
+ # Maximum value to filter by (exclusive)
15
+ attr_accessor :lt
16
+
17
+ # Maximum value to filter by (inclusive)
18
+ attr_accessor :lte
19
+
20
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
21
+ @gt = gt
22
+ @gte = gte
23
+ @lt = lt
24
+ @lte = lte
25
+ end
26
+ end
27
+ # Only return charges that were created during the given date interval.
28
+ attr_accessor :created
29
+
30
+ # Only return charges for the customer specified by this customer ID.
31
+ attr_accessor :customer
32
+
33
+ # 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.
34
+ attr_accessor :ending_before
35
+
36
+ # Specifies which fields in the response should be expanded.
37
+ attr_accessor :expand
38
+
39
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
40
+ attr_accessor :limit
41
+
42
+ # Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.
43
+ attr_accessor :payment_intent
44
+
45
+ # 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.
46
+ attr_accessor :starting_after
47
+
48
+ # Only return charges for this transfer group, limited to 100.
49
+ attr_accessor :transfer_group
50
+
51
+ def initialize(
52
+ created: nil,
53
+ customer: nil,
54
+ ending_before: nil,
55
+ expand: nil,
56
+ limit: nil,
57
+ payment_intent: nil,
58
+ starting_after: nil,
59
+ transfer_group: nil
60
+ )
61
+ @created = created
62
+ @customer = customer
63
+ @ending_before = ending_before
64
+ @expand = expand
65
+ @limit = limit
66
+ @payment_intent = payment_intent
67
+ @starting_after = starting_after
68
+ @transfer_group = transfer_group
69
+ end
70
+ end
71
+
72
+ class CreateParams < Stripe::RequestParams
73
+ class Destination < Stripe::RequestParams
74
+ # ID of an existing, connected Stripe account.
75
+ attr_accessor :account
76
+
77
+ # 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.
78
+ attr_accessor :amount
79
+
80
+ def initialize(account: nil, amount: nil)
81
+ @account = account
82
+ @amount = amount
83
+ end
84
+ end
85
+
86
+ class RadarOptions < Stripe::RequestParams
87
+ # 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.
88
+ attr_accessor :session
89
+
90
+ def initialize(session: nil)
91
+ @session = session
92
+ end
93
+ end
94
+
95
+ class Shipping < Stripe::RequestParams
96
+ class Address < Stripe::RequestParams
97
+ # City, district, suburb, town, or village.
98
+ attr_accessor :city
99
+
100
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
101
+ attr_accessor :country
102
+
103
+ # Address line 1 (e.g., street, PO Box, or company name).
104
+ attr_accessor :line1
105
+
106
+ # Address line 2 (e.g., apartment, suite, unit, or building).
107
+ attr_accessor :line2
108
+
109
+ # ZIP or postal code.
110
+ attr_accessor :postal_code
111
+
112
+ # State, county, province, or region.
113
+ attr_accessor :state
114
+
115
+ def initialize(
116
+ city: nil,
117
+ country: nil,
118
+ line1: nil,
119
+ line2: nil,
120
+ postal_code: nil,
121
+ state: nil
122
+ )
123
+ @city = city
124
+ @country = country
125
+ @line1 = line1
126
+ @line2 = line2
127
+ @postal_code = postal_code
128
+ @state = state
129
+ end
130
+ end
131
+ # Shipping address.
132
+ attr_accessor :address
133
+
134
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
135
+ attr_accessor :carrier
136
+
137
+ # Recipient name.
138
+ attr_accessor :name
139
+
140
+ # Recipient phone (including extension).
141
+ attr_accessor :phone
142
+
143
+ # 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.
144
+ attr_accessor :tracking_number
145
+
146
+ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
147
+ @address = address
148
+ @carrier = carrier
149
+ @name = name
150
+ @phone = phone
151
+ @tracking_number = tracking_number
152
+ end
153
+ end
154
+
155
+ class TransferData < Stripe::RequestParams
156
+ # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
157
+ attr_accessor :amount
158
+
159
+ # ID of an existing, connected Stripe account.
160
+ attr_accessor :destination
161
+
162
+ def initialize(amount: nil, destination: nil)
163
+ @amount = amount
164
+ @destination = destination
165
+ end
166
+ end
167
+ # 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).
168
+ attr_accessor :amount
169
+
170
+ # Attribute for param field application_fee
171
+ attr_accessor :application_fee
172
+
173
+ # 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).
174
+ attr_accessor :application_fee_amount
175
+
176
+ # 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.
177
+ attr_accessor :capture
178
+
179
+ # 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).
180
+ attr_accessor :currency
181
+
182
+ # The ID of an existing customer that will be charged in this request.
183
+ attr_accessor :customer
184
+
185
+ # 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.
186
+ attr_accessor :description
187
+
188
+ # Attribute for param field destination
189
+ attr_accessor :destination
190
+
191
+ # Specifies which fields in the response should be expanded.
192
+ attr_accessor :expand
193
+
194
+ # 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`.
195
+ attr_accessor :metadata
196
+
197
+ # 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).
198
+ attr_accessor :on_behalf_of
199
+
200
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
201
+ attr_accessor :radar_options
202
+
203
+ # 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).
204
+ attr_accessor :receipt_email
205
+
206
+ # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
207
+ attr_accessor :shipping
208
+
209
+ # 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.
210
+ attr_accessor :source
211
+
212
+ # 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).
213
+ #
214
+ # 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.
215
+ attr_accessor :statement_descriptor
216
+
217
+ # 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.
218
+ attr_accessor :statement_descriptor_suffix
219
+
220
+ # 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.
221
+ attr_accessor :transfer_data
222
+
223
+ # 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).
224
+ attr_accessor :transfer_group
225
+
226
+ def initialize(
227
+ amount: nil,
228
+ application_fee: nil,
229
+ application_fee_amount: nil,
230
+ capture: nil,
231
+ currency: nil,
232
+ customer: nil,
233
+ description: nil,
234
+ destination: nil,
235
+ expand: nil,
236
+ metadata: nil,
237
+ on_behalf_of: nil,
238
+ radar_options: nil,
239
+ receipt_email: nil,
240
+ shipping: nil,
241
+ source: nil,
242
+ statement_descriptor: nil,
243
+ statement_descriptor_suffix: nil,
244
+ transfer_data: nil,
245
+ transfer_group: nil
246
+ )
247
+ @amount = amount
248
+ @application_fee = application_fee
249
+ @application_fee_amount = application_fee_amount
250
+ @capture = capture
251
+ @currency = currency
252
+ @customer = customer
253
+ @description = description
254
+ @destination = destination
255
+ @expand = expand
256
+ @metadata = metadata
257
+ @on_behalf_of = on_behalf_of
258
+ @radar_options = radar_options
259
+ @receipt_email = receipt_email
260
+ @shipping = shipping
261
+ @source = source
262
+ @statement_descriptor = statement_descriptor
263
+ @statement_descriptor_suffix = statement_descriptor_suffix
264
+ @transfer_data = transfer_data
265
+ @transfer_group = transfer_group
266
+ end
267
+ end
268
+
269
+ class RetrieveParams < Stripe::RequestParams
270
+ # Specifies which fields in the response should be expanded.
271
+ attr_accessor :expand
272
+
273
+ def initialize(expand: nil)
274
+ @expand = expand
275
+ end
276
+ end
277
+
278
+ class UpdateParams < Stripe::RequestParams
279
+ class FraudDetails < Stripe::RequestParams
280
+ # Either `safe` or `fraudulent`.
281
+ attr_accessor :user_report
282
+
283
+ def initialize(user_report: nil)
284
+ @user_report = user_report
285
+ end
286
+ end
287
+
288
+ class PaymentDetails < Stripe::RequestParams
289
+ class CarRental < Stripe::RequestParams
290
+ class Affiliate < Stripe::RequestParams
291
+ # The name of the affiliate that originated the purchase.
292
+ attr_accessor :name
293
+
294
+ def initialize(name: nil)
295
+ @name = name
296
+ end
297
+ end
298
+
299
+ class Delivery < Stripe::RequestParams
300
+ class Recipient < Stripe::RequestParams
301
+ # The email of the recipient the ticket is delivered to.
302
+ attr_accessor :email
303
+
304
+ # The name of the recipient the ticket is delivered to.
305
+ attr_accessor :name
306
+
307
+ # The phone number of the recipient the ticket is delivered to.
308
+ attr_accessor :phone
309
+
310
+ def initialize(email: nil, name: nil, phone: nil)
311
+ @email = email
312
+ @name = name
313
+ @phone = phone
314
+ end
315
+ end
316
+ # The delivery method for the payment
317
+ attr_accessor :mode
318
+
319
+ # Details of the recipient.
320
+ attr_accessor :recipient
321
+
322
+ def initialize(mode: nil, recipient: nil)
323
+ @mode = mode
324
+ @recipient = recipient
325
+ end
326
+ end
327
+
328
+ class Driver < Stripe::RequestParams
329
+ # Full name of the person or entity on the car reservation.
330
+ attr_accessor :name
331
+
332
+ def initialize(name: nil)
333
+ @name = name
334
+ end
335
+ end
336
+
337
+ class PickupAddress < Stripe::RequestParams
338
+ # City, district, suburb, town, or village.
339
+ attr_accessor :city
340
+
341
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
342
+ attr_accessor :country
343
+
344
+ # Address line 1 (e.g., street, PO Box, or company name).
345
+ attr_accessor :line1
346
+
347
+ # Address line 2 (e.g., apartment, suite, unit, or building).
348
+ attr_accessor :line2
349
+
350
+ # ZIP or postal code.
351
+ attr_accessor :postal_code
352
+
353
+ # State, county, province, or region.
354
+ attr_accessor :state
355
+
356
+ def initialize(
357
+ city: nil,
358
+ country: nil,
359
+ line1: nil,
360
+ line2: nil,
361
+ postal_code: nil,
362
+ state: nil
363
+ )
364
+ @city = city
365
+ @country = country
366
+ @line1 = line1
367
+ @line2 = line2
368
+ @postal_code = postal_code
369
+ @state = state
370
+ end
371
+ end
372
+
373
+ class ReturnAddress < Stripe::RequestParams
374
+ # City, district, suburb, town, or village.
375
+ attr_accessor :city
376
+
377
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
378
+ attr_accessor :country
379
+
380
+ # Address line 1 (e.g., street, PO Box, or company name).
381
+ attr_accessor :line1
382
+
383
+ # Address line 2 (e.g., apartment, suite, unit, or building).
384
+ attr_accessor :line2
385
+
386
+ # ZIP or postal code.
387
+ attr_accessor :postal_code
388
+
389
+ # State, county, province, or region.
390
+ attr_accessor :state
391
+
392
+ def initialize(
393
+ city: nil,
394
+ country: nil,
395
+ line1: nil,
396
+ line2: nil,
397
+ postal_code: nil,
398
+ state: nil
399
+ )
400
+ @city = city
401
+ @country = country
402
+ @line1 = line1
403
+ @line2 = line2
404
+ @postal_code = postal_code
405
+ @state = state
406
+ end
407
+ end
408
+ # Affiliate details for this purchase.
409
+ attr_accessor :affiliate
410
+
411
+ # The booking number associated with the car rental.
412
+ attr_accessor :booking_number
413
+
414
+ # Class code of the car.
415
+ attr_accessor :car_class_code
416
+
417
+ # Make of the car.
418
+ attr_accessor :car_make
419
+
420
+ # Model of the car.
421
+ attr_accessor :car_model
422
+
423
+ # The name of the rental car company.
424
+ attr_accessor :company
425
+
426
+ # The customer service phone number of the car rental company.
427
+ attr_accessor :customer_service_phone_number
428
+
429
+ # Number of days the car is being rented.
430
+ attr_accessor :days_rented
431
+
432
+ # Delivery details for this purchase.
433
+ attr_accessor :delivery
434
+
435
+ # The details of the passengers in the travel reservation
436
+ attr_accessor :drivers
437
+
438
+ # List of additional charges being billed.
439
+ attr_accessor :extra_charges
440
+
441
+ # Indicates if the customer did not keep nor cancel their booking.
442
+ attr_accessor :no_show
443
+
444
+ # Car pick-up address.
445
+ attr_accessor :pickup_address
446
+
447
+ # Car pick-up time. Measured in seconds since the Unix epoch.
448
+ attr_accessor :pickup_at
449
+
450
+ # Rental rate.
451
+ attr_accessor :rate_amount
452
+
453
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
454
+ attr_accessor :rate_interval
455
+
456
+ # The name of the person or entity renting the car.
457
+ attr_accessor :renter_name
458
+
459
+ # Car return address.
460
+ attr_accessor :return_address
461
+
462
+ # Car return time. Measured in seconds since the Unix epoch.
463
+ attr_accessor :return_at
464
+
465
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
466
+ attr_accessor :tax_exempt
467
+
468
+ def initialize(
469
+ affiliate: nil,
470
+ booking_number: nil,
471
+ car_class_code: nil,
472
+ car_make: nil,
473
+ car_model: nil,
474
+ company: nil,
475
+ customer_service_phone_number: nil,
476
+ days_rented: nil,
477
+ delivery: nil,
478
+ drivers: nil,
479
+ extra_charges: nil,
480
+ no_show: nil,
481
+ pickup_address: nil,
482
+ pickup_at: nil,
483
+ rate_amount: nil,
484
+ rate_interval: nil,
485
+ renter_name: nil,
486
+ return_address: nil,
487
+ return_at: nil,
488
+ tax_exempt: nil
489
+ )
490
+ @affiliate = affiliate
491
+ @booking_number = booking_number
492
+ @car_class_code = car_class_code
493
+ @car_make = car_make
494
+ @car_model = car_model
495
+ @company = company
496
+ @customer_service_phone_number = customer_service_phone_number
497
+ @days_rented = days_rented
498
+ @delivery = delivery
499
+ @drivers = drivers
500
+ @extra_charges = extra_charges
501
+ @no_show = no_show
502
+ @pickup_address = pickup_address
503
+ @pickup_at = pickup_at
504
+ @rate_amount = rate_amount
505
+ @rate_interval = rate_interval
506
+ @renter_name = renter_name
507
+ @return_address = return_address
508
+ @return_at = return_at
509
+ @tax_exempt = tax_exempt
510
+ end
511
+ end
512
+
513
+ class EventDetails < Stripe::RequestParams
514
+ class Address < Stripe::RequestParams
515
+ # City, district, suburb, town, or village.
516
+ attr_accessor :city
517
+
518
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
519
+ attr_accessor :country
520
+
521
+ # Address line 1 (e.g., street, PO Box, or company name).
522
+ attr_accessor :line1
523
+
524
+ # Address line 2 (e.g., apartment, suite, unit, or building).
525
+ attr_accessor :line2
526
+
527
+ # ZIP or postal code.
528
+ attr_accessor :postal_code
529
+
530
+ # State, county, province, or region.
531
+ attr_accessor :state
532
+
533
+ def initialize(
534
+ city: nil,
535
+ country: nil,
536
+ line1: nil,
537
+ line2: nil,
538
+ postal_code: nil,
539
+ state: nil
540
+ )
541
+ @city = city
542
+ @country = country
543
+ @line1 = line1
544
+ @line2 = line2
545
+ @postal_code = postal_code
546
+ @state = state
547
+ end
548
+ end
549
+
550
+ class Affiliate < Stripe::RequestParams
551
+ # The name of the affiliate that originated the purchase.
552
+ attr_accessor :name
553
+
554
+ def initialize(name: nil)
555
+ @name = name
556
+ end
557
+ end
558
+
559
+ class Delivery < Stripe::RequestParams
560
+ class Recipient < Stripe::RequestParams
561
+ # The email of the recipient the ticket is delivered to.
562
+ attr_accessor :email
563
+
564
+ # The name of the recipient the ticket is delivered to.
565
+ attr_accessor :name
566
+
567
+ # The phone number of the recipient the ticket is delivered to.
568
+ attr_accessor :phone
569
+
570
+ def initialize(email: nil, name: nil, phone: nil)
571
+ @email = email
572
+ @name = name
573
+ @phone = phone
574
+ end
575
+ end
576
+ # The delivery method for the payment
577
+ attr_accessor :mode
578
+
579
+ # Details of the recipient.
580
+ attr_accessor :recipient
581
+
582
+ def initialize(mode: nil, recipient: nil)
583
+ @mode = mode
584
+ @recipient = recipient
585
+ end
586
+ end
587
+ # Indicates if the tickets are digitally checked when entering the venue.
588
+ attr_accessor :access_controlled_venue
589
+
590
+ # The event location's address.
591
+ attr_accessor :address
592
+
593
+ # Affiliate details for this purchase.
594
+ attr_accessor :affiliate
595
+
596
+ # The name of the company
597
+ attr_accessor :company
598
+
599
+ # Delivery details for this purchase.
600
+ attr_accessor :delivery
601
+
602
+ # Event end time. Measured in seconds since the Unix epoch.
603
+ attr_accessor :ends_at
604
+
605
+ # Type of the event entertainment (concert, sports event etc)
606
+ attr_accessor :genre
607
+
608
+ # The name of the event.
609
+ attr_accessor :name
610
+
611
+ # Event start time. Measured in seconds since the Unix epoch.
612
+ attr_accessor :starts_at
613
+
614
+ def initialize(
615
+ access_controlled_venue: nil,
616
+ address: nil,
617
+ affiliate: nil,
618
+ company: nil,
619
+ delivery: nil,
620
+ ends_at: nil,
621
+ genre: nil,
622
+ name: nil,
623
+ starts_at: nil
624
+ )
625
+ @access_controlled_venue = access_controlled_venue
626
+ @address = address
627
+ @affiliate = affiliate
628
+ @company = company
629
+ @delivery = delivery
630
+ @ends_at = ends_at
631
+ @genre = genre
632
+ @name = name
633
+ @starts_at = starts_at
634
+ end
635
+ end
636
+
637
+ class Flight < Stripe::RequestParams
638
+ class Affiliate < Stripe::RequestParams
639
+ # The name of the affiliate that originated the purchase.
640
+ attr_accessor :name
641
+
642
+ def initialize(name: nil)
643
+ @name = name
644
+ end
645
+ end
646
+
647
+ class Delivery < Stripe::RequestParams
648
+ class Recipient < Stripe::RequestParams
649
+ # The email of the recipient the ticket is delivered to.
650
+ attr_accessor :email
651
+
652
+ # The name of the recipient the ticket is delivered to.
653
+ attr_accessor :name
654
+
655
+ # The phone number of the recipient the ticket is delivered to.
656
+ attr_accessor :phone
657
+
658
+ def initialize(email: nil, name: nil, phone: nil)
659
+ @email = email
660
+ @name = name
661
+ @phone = phone
662
+ end
663
+ end
664
+ # The delivery method for the payment
665
+ attr_accessor :mode
666
+
667
+ # Details of the recipient.
668
+ attr_accessor :recipient
669
+
670
+ def initialize(mode: nil, recipient: nil)
671
+ @mode = mode
672
+ @recipient = recipient
673
+ end
674
+ end
675
+
676
+ class Passenger < Stripe::RequestParams
677
+ # Full name of the person or entity on the flight reservation.
678
+ attr_accessor :name
679
+
680
+ def initialize(name: nil)
681
+ @name = name
682
+ end
683
+ end
684
+
685
+ class Segment < Stripe::RequestParams
686
+ # The flight segment amount.
687
+ attr_accessor :amount
688
+
689
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
690
+ attr_accessor :arrival_airport
691
+
692
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
693
+ attr_accessor :arrives_at
694
+
695
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
696
+ attr_accessor :carrier
697
+
698
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
699
+ attr_accessor :departs_at
700
+
701
+ # The International Air Transport Association (IATA) airport code for the departure airport.
702
+ attr_accessor :departure_airport
703
+
704
+ # The flight number associated with the segment
705
+ attr_accessor :flight_number
706
+
707
+ # The fare class for the segment.
708
+ attr_accessor :service_class
709
+
710
+ def initialize(
711
+ amount: nil,
712
+ arrival_airport: nil,
713
+ arrives_at: nil,
714
+ carrier: nil,
715
+ departs_at: nil,
716
+ departure_airport: nil,
717
+ flight_number: nil,
718
+ service_class: nil
719
+ )
720
+ @amount = amount
721
+ @arrival_airport = arrival_airport
722
+ @arrives_at = arrives_at
723
+ @carrier = carrier
724
+ @departs_at = departs_at
725
+ @departure_airport = departure_airport
726
+ @flight_number = flight_number
727
+ @service_class = service_class
728
+ end
729
+ end
730
+ # Affiliate details for this purchase.
731
+ attr_accessor :affiliate
732
+
733
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
734
+ attr_accessor :agency_number
735
+
736
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
737
+ attr_accessor :carrier
738
+
739
+ # Delivery details for this purchase.
740
+ attr_accessor :delivery
741
+
742
+ # The name of the person or entity on the reservation.
743
+ attr_accessor :passenger_name
744
+
745
+ # The details of the passengers in the travel reservation.
746
+ attr_accessor :passengers
747
+
748
+ # The individual flight segments associated with the trip.
749
+ attr_accessor :segments
750
+
751
+ # The ticket number associated with the travel reservation.
752
+ attr_accessor :ticket_number
753
+
754
+ def initialize(
755
+ affiliate: nil,
756
+ agency_number: nil,
757
+ carrier: nil,
758
+ delivery: nil,
759
+ passenger_name: nil,
760
+ passengers: nil,
761
+ segments: nil,
762
+ ticket_number: nil
763
+ )
764
+ @affiliate = affiliate
765
+ @agency_number = agency_number
766
+ @carrier = carrier
767
+ @delivery = delivery
768
+ @passenger_name = passenger_name
769
+ @passengers = passengers
770
+ @segments = segments
771
+ @ticket_number = ticket_number
772
+ end
773
+ end
774
+
775
+ class Lodging < Stripe::RequestParams
776
+ class Address < Stripe::RequestParams
777
+ # City, district, suburb, town, or village.
778
+ attr_accessor :city
779
+
780
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
781
+ attr_accessor :country
782
+
783
+ # Address line 1 (e.g., street, PO Box, or company name).
784
+ attr_accessor :line1
785
+
786
+ # Address line 2 (e.g., apartment, suite, unit, or building).
787
+ attr_accessor :line2
788
+
789
+ # ZIP or postal code.
790
+ attr_accessor :postal_code
791
+
792
+ # State, county, province, or region.
793
+ attr_accessor :state
794
+
795
+ def initialize(
796
+ city: nil,
797
+ country: nil,
798
+ line1: nil,
799
+ line2: nil,
800
+ postal_code: nil,
801
+ state: nil
802
+ )
803
+ @city = city
804
+ @country = country
805
+ @line1 = line1
806
+ @line2 = line2
807
+ @postal_code = postal_code
808
+ @state = state
809
+ end
810
+ end
811
+
812
+ class Affiliate < Stripe::RequestParams
813
+ # The name of the affiliate that originated the purchase.
814
+ attr_accessor :name
815
+
816
+ def initialize(name: nil)
817
+ @name = name
818
+ end
819
+ end
820
+
821
+ class Delivery < Stripe::RequestParams
822
+ class Recipient < Stripe::RequestParams
823
+ # The email of the recipient the ticket is delivered to.
824
+ attr_accessor :email
825
+
826
+ # The name of the recipient the ticket is delivered to.
827
+ attr_accessor :name
828
+
829
+ # The phone number of the recipient the ticket is delivered to.
830
+ attr_accessor :phone
831
+
832
+ def initialize(email: nil, name: nil, phone: nil)
833
+ @email = email
834
+ @name = name
835
+ @phone = phone
836
+ end
837
+ end
838
+ # The delivery method for the payment
839
+ attr_accessor :mode
840
+
841
+ # Details of the recipient.
842
+ attr_accessor :recipient
843
+
844
+ def initialize(mode: nil, recipient: nil)
845
+ @mode = mode
846
+ @recipient = recipient
847
+ end
848
+ end
849
+
850
+ class Passenger < Stripe::RequestParams
851
+ # Full name of the person or entity on the lodging reservation.
852
+ attr_accessor :name
853
+
854
+ def initialize(name: nil)
855
+ @name = name
856
+ end
857
+ end
858
+ # The lodging location's address.
859
+ attr_accessor :address
860
+
861
+ # The number of adults on the booking
862
+ attr_accessor :adults
863
+
864
+ # Affiliate details for this purchase.
865
+ attr_accessor :affiliate
866
+
867
+ # The booking number associated with the lodging reservation.
868
+ attr_accessor :booking_number
869
+
870
+ # The lodging category
871
+ attr_accessor :category
872
+
873
+ # Loding check-in time. Measured in seconds since the Unix epoch.
874
+ attr_accessor :checkin_at
875
+
876
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
877
+ attr_accessor :checkout_at
878
+
879
+ # The customer service phone number of the lodging company.
880
+ attr_accessor :customer_service_phone_number
881
+
882
+ # The daily lodging room rate.
883
+ attr_accessor :daily_room_rate_amount
884
+
885
+ # Delivery details for this purchase.
886
+ attr_accessor :delivery
887
+
888
+ # List of additional charges being billed.
889
+ attr_accessor :extra_charges
890
+
891
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
892
+ attr_accessor :fire_safety_act_compliance
893
+
894
+ # The name of the lodging location.
895
+ attr_accessor :name
896
+
897
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
898
+ attr_accessor :no_show
899
+
900
+ # The number of rooms on the booking
901
+ attr_accessor :number_of_rooms
902
+
903
+ # The details of the passengers in the travel reservation
904
+ attr_accessor :passengers
905
+
906
+ # The phone number of the lodging location.
907
+ attr_accessor :property_phone_number
908
+
909
+ # The room class for this purchase.
910
+ attr_accessor :room_class
911
+
912
+ # The number of room nights
913
+ attr_accessor :room_nights
914
+
915
+ # The total tax amount associating with the room reservation.
916
+ attr_accessor :total_room_tax_amount
917
+
918
+ # The total tax amount
919
+ attr_accessor :total_tax_amount
920
+
921
+ def initialize(
922
+ address: nil,
923
+ adults: nil,
924
+ affiliate: nil,
925
+ booking_number: nil,
926
+ category: nil,
927
+ checkin_at: nil,
928
+ checkout_at: nil,
929
+ customer_service_phone_number: nil,
930
+ daily_room_rate_amount: nil,
931
+ delivery: nil,
932
+ extra_charges: nil,
933
+ fire_safety_act_compliance: nil,
934
+ name: nil,
935
+ no_show: nil,
936
+ number_of_rooms: nil,
937
+ passengers: nil,
938
+ property_phone_number: nil,
939
+ room_class: nil,
940
+ room_nights: nil,
941
+ total_room_tax_amount: nil,
942
+ total_tax_amount: nil
943
+ )
944
+ @address = address
945
+ @adults = adults
946
+ @affiliate = affiliate
947
+ @booking_number = booking_number
948
+ @category = category
949
+ @checkin_at = checkin_at
950
+ @checkout_at = checkout_at
951
+ @customer_service_phone_number = customer_service_phone_number
952
+ @daily_room_rate_amount = daily_room_rate_amount
953
+ @delivery = delivery
954
+ @extra_charges = extra_charges
955
+ @fire_safety_act_compliance = fire_safety_act_compliance
956
+ @name = name
957
+ @no_show = no_show
958
+ @number_of_rooms = number_of_rooms
959
+ @passengers = passengers
960
+ @property_phone_number = property_phone_number
961
+ @room_class = room_class
962
+ @room_nights = room_nights
963
+ @total_room_tax_amount = total_room_tax_amount
964
+ @total_tax_amount = total_tax_amount
965
+ end
966
+ end
967
+
968
+ class Subscription < Stripe::RequestParams
969
+ class Affiliate < Stripe::RequestParams
970
+ # The name of the affiliate that originated the purchase.
971
+ attr_accessor :name
972
+
973
+ def initialize(name: nil)
974
+ @name = name
975
+ end
976
+ end
977
+
978
+ class BillingInterval < Stripe::RequestParams
979
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
980
+ attr_accessor :count
981
+
982
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
983
+ attr_accessor :interval
984
+
985
+ def initialize(count: nil, interval: nil)
986
+ @count = count
987
+ @interval = interval
988
+ end
989
+ end
990
+ # Affiliate details for this purchase.
991
+ attr_accessor :affiliate
992
+
993
+ # Info whether the subscription will be auto renewed upon expiry.
994
+ attr_accessor :auto_renewal
995
+
996
+ # Subscription billing details for this purchase.
997
+ attr_accessor :billing_interval
998
+
999
+ # Subscription end time. Measured in seconds since the Unix epoch.
1000
+ attr_accessor :ends_at
1001
+
1002
+ # Name of the product on subscription. e.g. Apple Music Subscription
1003
+ attr_accessor :name
1004
+
1005
+ # Subscription start time. Measured in seconds since the Unix epoch.
1006
+ attr_accessor :starts_at
1007
+
1008
+ def initialize(
1009
+ affiliate: nil,
1010
+ auto_renewal: nil,
1011
+ billing_interval: nil,
1012
+ ends_at: nil,
1013
+ name: nil,
1014
+ starts_at: nil
1015
+ )
1016
+ @affiliate = affiliate
1017
+ @auto_renewal = auto_renewal
1018
+ @billing_interval = billing_interval
1019
+ @ends_at = ends_at
1020
+ @name = name
1021
+ @starts_at = starts_at
1022
+ end
1023
+ end
1024
+ # Car rental details for this PaymentIntent.
1025
+ attr_accessor :car_rental
1026
+
1027
+ # Event details for this PaymentIntent
1028
+ attr_accessor :event_details
1029
+
1030
+ # Flight reservation details for this PaymentIntent
1031
+ attr_accessor :flight
1032
+
1033
+ # Lodging reservation details for this PaymentIntent
1034
+ attr_accessor :lodging
1035
+
1036
+ # Subscription details for this PaymentIntent
1037
+ attr_accessor :subscription
1038
+
1039
+ def initialize(
1040
+ car_rental: nil,
1041
+ event_details: nil,
1042
+ flight: nil,
1043
+ lodging: nil,
1044
+ subscription: nil
1045
+ )
1046
+ @car_rental = car_rental
1047
+ @event_details = event_details
1048
+ @flight = flight
1049
+ @lodging = lodging
1050
+ @subscription = subscription
1051
+ end
1052
+ end
1053
+
1054
+ class Shipping < Stripe::RequestParams
1055
+ class Address < Stripe::RequestParams
1056
+ # City, district, suburb, town, or village.
1057
+ attr_accessor :city
1058
+
1059
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1060
+ attr_accessor :country
1061
+
1062
+ # Address line 1 (e.g., street, PO Box, or company name).
1063
+ attr_accessor :line1
1064
+
1065
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1066
+ attr_accessor :line2
1067
+
1068
+ # ZIP or postal code.
1069
+ attr_accessor :postal_code
1070
+
1071
+ # State, county, province, or region.
1072
+ attr_accessor :state
1073
+
1074
+ def initialize(
1075
+ city: nil,
1076
+ country: nil,
1077
+ line1: nil,
1078
+ line2: nil,
1079
+ postal_code: nil,
1080
+ state: nil
1081
+ )
1082
+ @city = city
1083
+ @country = country
1084
+ @line1 = line1
1085
+ @line2 = line2
1086
+ @postal_code = postal_code
1087
+ @state = state
1088
+ end
1089
+ end
1090
+ # Shipping address.
1091
+ attr_accessor :address
1092
+
1093
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
1094
+ attr_accessor :carrier
1095
+
1096
+ # Recipient name.
1097
+ attr_accessor :name
1098
+
1099
+ # Recipient phone (including extension).
1100
+ attr_accessor :phone
1101
+
1102
+ # 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.
1103
+ attr_accessor :tracking_number
1104
+
1105
+ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
1106
+ @address = address
1107
+ @carrier = carrier
1108
+ @name = name
1109
+ @phone = phone
1110
+ @tracking_number = tracking_number
1111
+ end
1112
+ end
1113
+ # 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.
1114
+ attr_accessor :customer
1115
+
1116
+ # 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.
1117
+ attr_accessor :description
1118
+
1119
+ # Specifies which fields in the response should be expanded.
1120
+ attr_accessor :expand
1121
+
1122
+ # 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.
1123
+ attr_accessor :fraud_details
1124
+
1125
+ # 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`.
1126
+ attr_accessor :metadata
1127
+
1128
+ # Provides industry-specific information about the charge.
1129
+ attr_accessor :payment_details
1130
+
1131
+ # 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.
1132
+ attr_accessor :receipt_email
1133
+
1134
+ # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
1135
+ attr_accessor :shipping
1136
+
1137
+ # 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.
1138
+ attr_accessor :transfer_group
1139
+
1140
+ def initialize(
1141
+ customer: nil,
1142
+ description: nil,
1143
+ expand: nil,
1144
+ fraud_details: nil,
1145
+ metadata: nil,
1146
+ payment_details: nil,
1147
+ receipt_email: nil,
1148
+ shipping: nil,
1149
+ transfer_group: nil
1150
+ )
1151
+ @customer = customer
1152
+ @description = description
1153
+ @expand = expand
1154
+ @fraud_details = fraud_details
1155
+ @metadata = metadata
1156
+ @payment_details = payment_details
1157
+ @receipt_email = receipt_email
1158
+ @shipping = shipping
1159
+ @transfer_group = transfer_group
1160
+ end
1161
+ end
1162
+
1163
+ class SearchParams < Stripe::RequestParams
1164
+ # Specifies which fields in the response should be expanded.
1165
+ attr_accessor :expand
1166
+
1167
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
1168
+ attr_accessor :limit
1169
+
1170
+ # 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.
1171
+ attr_accessor :page
1172
+
1173
+ # 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).
1174
+ attr_accessor :query
1175
+
1176
+ def initialize(expand: nil, limit: nil, page: nil, query: nil)
1177
+ @expand = expand
1178
+ @limit = limit
1179
+ @page = page
1180
+ @query = query
1181
+ end
1182
+ end
1183
+
1184
+ class CaptureParams < Stripe::RequestParams
1185
+ class PaymentDetails < Stripe::RequestParams
1186
+ class CarRental < Stripe::RequestParams
1187
+ class Affiliate < Stripe::RequestParams
1188
+ # The name of the affiliate that originated the purchase.
1189
+ attr_accessor :name
1190
+
1191
+ def initialize(name: nil)
1192
+ @name = name
1193
+ end
1194
+ end
1195
+
1196
+ class Delivery < Stripe::RequestParams
1197
+ class Recipient < Stripe::RequestParams
1198
+ # The email of the recipient the ticket is delivered to.
1199
+ attr_accessor :email
1200
+
1201
+ # The name of the recipient the ticket is delivered to.
1202
+ attr_accessor :name
1203
+
1204
+ # The phone number of the recipient the ticket is delivered to.
1205
+ attr_accessor :phone
1206
+
1207
+ def initialize(email: nil, name: nil, phone: nil)
1208
+ @email = email
1209
+ @name = name
1210
+ @phone = phone
1211
+ end
1212
+ end
1213
+ # The delivery method for the payment
1214
+ attr_accessor :mode
1215
+
1216
+ # Details of the recipient.
1217
+ attr_accessor :recipient
1218
+
1219
+ def initialize(mode: nil, recipient: nil)
1220
+ @mode = mode
1221
+ @recipient = recipient
1222
+ end
1223
+ end
1224
+
1225
+ class Driver < Stripe::RequestParams
1226
+ # Full name of the person or entity on the car reservation.
1227
+ attr_accessor :name
1228
+
1229
+ def initialize(name: nil)
1230
+ @name = name
1231
+ end
1232
+ end
1233
+
1234
+ class PickupAddress < Stripe::RequestParams
1235
+ # City, district, suburb, town, or village.
1236
+ attr_accessor :city
1237
+
1238
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1239
+ attr_accessor :country
1240
+
1241
+ # Address line 1 (e.g., street, PO Box, or company name).
1242
+ attr_accessor :line1
1243
+
1244
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1245
+ attr_accessor :line2
1246
+
1247
+ # ZIP or postal code.
1248
+ attr_accessor :postal_code
1249
+
1250
+ # State, county, province, or region.
1251
+ attr_accessor :state
1252
+
1253
+ def initialize(
1254
+ city: nil,
1255
+ country: nil,
1256
+ line1: nil,
1257
+ line2: nil,
1258
+ postal_code: nil,
1259
+ state: nil
1260
+ )
1261
+ @city = city
1262
+ @country = country
1263
+ @line1 = line1
1264
+ @line2 = line2
1265
+ @postal_code = postal_code
1266
+ @state = state
1267
+ end
1268
+ end
1269
+
1270
+ class ReturnAddress < Stripe::RequestParams
1271
+ # City, district, suburb, town, or village.
1272
+ attr_accessor :city
1273
+
1274
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1275
+ attr_accessor :country
1276
+
1277
+ # Address line 1 (e.g., street, PO Box, or company name).
1278
+ attr_accessor :line1
1279
+
1280
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1281
+ attr_accessor :line2
1282
+
1283
+ # ZIP or postal code.
1284
+ attr_accessor :postal_code
1285
+
1286
+ # State, county, province, or region.
1287
+ attr_accessor :state
1288
+
1289
+ def initialize(
1290
+ city: nil,
1291
+ country: nil,
1292
+ line1: nil,
1293
+ line2: nil,
1294
+ postal_code: nil,
1295
+ state: nil
1296
+ )
1297
+ @city = city
1298
+ @country = country
1299
+ @line1 = line1
1300
+ @line2 = line2
1301
+ @postal_code = postal_code
1302
+ @state = state
1303
+ end
1304
+ end
1305
+ # Affiliate details for this purchase.
1306
+ attr_accessor :affiliate
1307
+
1308
+ # The booking number associated with the car rental.
1309
+ attr_accessor :booking_number
1310
+
1311
+ # Class code of the car.
1312
+ attr_accessor :car_class_code
1313
+
1314
+ # Make of the car.
1315
+ attr_accessor :car_make
1316
+
1317
+ # Model of the car.
1318
+ attr_accessor :car_model
1319
+
1320
+ # The name of the rental car company.
1321
+ attr_accessor :company
1322
+
1323
+ # The customer service phone number of the car rental company.
1324
+ attr_accessor :customer_service_phone_number
1325
+
1326
+ # Number of days the car is being rented.
1327
+ attr_accessor :days_rented
1328
+
1329
+ # Delivery details for this purchase.
1330
+ attr_accessor :delivery
1331
+
1332
+ # The details of the passengers in the travel reservation
1333
+ attr_accessor :drivers
1334
+
1335
+ # List of additional charges being billed.
1336
+ attr_accessor :extra_charges
1337
+
1338
+ # Indicates if the customer did not keep nor cancel their booking.
1339
+ attr_accessor :no_show
1340
+
1341
+ # Car pick-up address.
1342
+ attr_accessor :pickup_address
1343
+
1344
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1345
+ attr_accessor :pickup_at
1346
+
1347
+ # Rental rate.
1348
+ attr_accessor :rate_amount
1349
+
1350
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1351
+ attr_accessor :rate_interval
1352
+
1353
+ # The name of the person or entity renting the car.
1354
+ attr_accessor :renter_name
1355
+
1356
+ # Car return address.
1357
+ attr_accessor :return_address
1358
+
1359
+ # Car return time. Measured in seconds since the Unix epoch.
1360
+ attr_accessor :return_at
1361
+
1362
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1363
+ attr_accessor :tax_exempt
1364
+
1365
+ def initialize(
1366
+ affiliate: nil,
1367
+ booking_number: nil,
1368
+ car_class_code: nil,
1369
+ car_make: nil,
1370
+ car_model: nil,
1371
+ company: nil,
1372
+ customer_service_phone_number: nil,
1373
+ days_rented: nil,
1374
+ delivery: nil,
1375
+ drivers: nil,
1376
+ extra_charges: nil,
1377
+ no_show: nil,
1378
+ pickup_address: nil,
1379
+ pickup_at: nil,
1380
+ rate_amount: nil,
1381
+ rate_interval: nil,
1382
+ renter_name: nil,
1383
+ return_address: nil,
1384
+ return_at: nil,
1385
+ tax_exempt: nil
1386
+ )
1387
+ @affiliate = affiliate
1388
+ @booking_number = booking_number
1389
+ @car_class_code = car_class_code
1390
+ @car_make = car_make
1391
+ @car_model = car_model
1392
+ @company = company
1393
+ @customer_service_phone_number = customer_service_phone_number
1394
+ @days_rented = days_rented
1395
+ @delivery = delivery
1396
+ @drivers = drivers
1397
+ @extra_charges = extra_charges
1398
+ @no_show = no_show
1399
+ @pickup_address = pickup_address
1400
+ @pickup_at = pickup_at
1401
+ @rate_amount = rate_amount
1402
+ @rate_interval = rate_interval
1403
+ @renter_name = renter_name
1404
+ @return_address = return_address
1405
+ @return_at = return_at
1406
+ @tax_exempt = tax_exempt
1407
+ end
1408
+ end
1409
+
1410
+ class EventDetails < Stripe::RequestParams
1411
+ class Address < Stripe::RequestParams
1412
+ # City, district, suburb, town, or village.
1413
+ attr_accessor :city
1414
+
1415
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1416
+ attr_accessor :country
1417
+
1418
+ # Address line 1 (e.g., street, PO Box, or company name).
1419
+ attr_accessor :line1
1420
+
1421
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1422
+ attr_accessor :line2
1423
+
1424
+ # ZIP or postal code.
1425
+ attr_accessor :postal_code
1426
+
1427
+ # State, county, province, or region.
1428
+ attr_accessor :state
1429
+
1430
+ def initialize(
1431
+ city: nil,
1432
+ country: nil,
1433
+ line1: nil,
1434
+ line2: nil,
1435
+ postal_code: nil,
1436
+ state: nil
1437
+ )
1438
+ @city = city
1439
+ @country = country
1440
+ @line1 = line1
1441
+ @line2 = line2
1442
+ @postal_code = postal_code
1443
+ @state = state
1444
+ end
1445
+ end
1446
+
1447
+ class Affiliate < Stripe::RequestParams
1448
+ # The name of the affiliate that originated the purchase.
1449
+ attr_accessor :name
1450
+
1451
+ def initialize(name: nil)
1452
+ @name = name
1453
+ end
1454
+ end
1455
+
1456
+ class Delivery < Stripe::RequestParams
1457
+ class Recipient < Stripe::RequestParams
1458
+ # The email of the recipient the ticket is delivered to.
1459
+ attr_accessor :email
1460
+
1461
+ # The name of the recipient the ticket is delivered to.
1462
+ attr_accessor :name
1463
+
1464
+ # The phone number of the recipient the ticket is delivered to.
1465
+ attr_accessor :phone
1466
+
1467
+ def initialize(email: nil, name: nil, phone: nil)
1468
+ @email = email
1469
+ @name = name
1470
+ @phone = phone
1471
+ end
1472
+ end
1473
+ # The delivery method for the payment
1474
+ attr_accessor :mode
1475
+
1476
+ # Details of the recipient.
1477
+ attr_accessor :recipient
1478
+
1479
+ def initialize(mode: nil, recipient: nil)
1480
+ @mode = mode
1481
+ @recipient = recipient
1482
+ end
1483
+ end
1484
+ # Indicates if the tickets are digitally checked when entering the venue.
1485
+ attr_accessor :access_controlled_venue
1486
+
1487
+ # The event location's address.
1488
+ attr_accessor :address
1489
+
1490
+ # Affiliate details for this purchase.
1491
+ attr_accessor :affiliate
1492
+
1493
+ # The name of the company
1494
+ attr_accessor :company
1495
+
1496
+ # Delivery details for this purchase.
1497
+ attr_accessor :delivery
1498
+
1499
+ # Event end time. Measured in seconds since the Unix epoch.
1500
+ attr_accessor :ends_at
1501
+
1502
+ # Type of the event entertainment (concert, sports event etc)
1503
+ attr_accessor :genre
1504
+
1505
+ # The name of the event.
1506
+ attr_accessor :name
1507
+
1508
+ # Event start time. Measured in seconds since the Unix epoch.
1509
+ attr_accessor :starts_at
1510
+
1511
+ def initialize(
1512
+ access_controlled_venue: nil,
1513
+ address: nil,
1514
+ affiliate: nil,
1515
+ company: nil,
1516
+ delivery: nil,
1517
+ ends_at: nil,
1518
+ genre: nil,
1519
+ name: nil,
1520
+ starts_at: nil
1521
+ )
1522
+ @access_controlled_venue = access_controlled_venue
1523
+ @address = address
1524
+ @affiliate = affiliate
1525
+ @company = company
1526
+ @delivery = delivery
1527
+ @ends_at = ends_at
1528
+ @genre = genre
1529
+ @name = name
1530
+ @starts_at = starts_at
1531
+ end
1532
+ end
1533
+
1534
+ class Flight < Stripe::RequestParams
1535
+ class Affiliate < Stripe::RequestParams
1536
+ # The name of the affiliate that originated the purchase.
1537
+ attr_accessor :name
1538
+
1539
+ def initialize(name: nil)
1540
+ @name = name
1541
+ end
1542
+ end
1543
+
1544
+ class Delivery < Stripe::RequestParams
1545
+ class Recipient < Stripe::RequestParams
1546
+ # The email of the recipient the ticket is delivered to.
1547
+ attr_accessor :email
1548
+
1549
+ # The name of the recipient the ticket is delivered to.
1550
+ attr_accessor :name
1551
+
1552
+ # The phone number of the recipient the ticket is delivered to.
1553
+ attr_accessor :phone
1554
+
1555
+ def initialize(email: nil, name: nil, phone: nil)
1556
+ @email = email
1557
+ @name = name
1558
+ @phone = phone
1559
+ end
1560
+ end
1561
+ # The delivery method for the payment
1562
+ attr_accessor :mode
1563
+
1564
+ # Details of the recipient.
1565
+ attr_accessor :recipient
1566
+
1567
+ def initialize(mode: nil, recipient: nil)
1568
+ @mode = mode
1569
+ @recipient = recipient
1570
+ end
1571
+ end
1572
+
1573
+ class Passenger < Stripe::RequestParams
1574
+ # Full name of the person or entity on the flight reservation.
1575
+ attr_accessor :name
1576
+
1577
+ def initialize(name: nil)
1578
+ @name = name
1579
+ end
1580
+ end
1581
+
1582
+ class Segment < Stripe::RequestParams
1583
+ # The flight segment amount.
1584
+ attr_accessor :amount
1585
+
1586
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1587
+ attr_accessor :arrival_airport
1588
+
1589
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1590
+ attr_accessor :arrives_at
1591
+
1592
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1593
+ attr_accessor :carrier
1594
+
1595
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1596
+ attr_accessor :departs_at
1597
+
1598
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1599
+ attr_accessor :departure_airport
1600
+
1601
+ # The flight number associated with the segment
1602
+ attr_accessor :flight_number
1603
+
1604
+ # The fare class for the segment.
1605
+ attr_accessor :service_class
1606
+
1607
+ def initialize(
1608
+ amount: nil,
1609
+ arrival_airport: nil,
1610
+ arrives_at: nil,
1611
+ carrier: nil,
1612
+ departs_at: nil,
1613
+ departure_airport: nil,
1614
+ flight_number: nil,
1615
+ service_class: nil
1616
+ )
1617
+ @amount = amount
1618
+ @arrival_airport = arrival_airport
1619
+ @arrives_at = arrives_at
1620
+ @carrier = carrier
1621
+ @departs_at = departs_at
1622
+ @departure_airport = departure_airport
1623
+ @flight_number = flight_number
1624
+ @service_class = service_class
1625
+ end
1626
+ end
1627
+ # Affiliate details for this purchase.
1628
+ attr_accessor :affiliate
1629
+
1630
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1631
+ attr_accessor :agency_number
1632
+
1633
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1634
+ attr_accessor :carrier
1635
+
1636
+ # Delivery details for this purchase.
1637
+ attr_accessor :delivery
1638
+
1639
+ # The name of the person or entity on the reservation.
1640
+ attr_accessor :passenger_name
1641
+
1642
+ # The details of the passengers in the travel reservation.
1643
+ attr_accessor :passengers
1644
+
1645
+ # The individual flight segments associated with the trip.
1646
+ attr_accessor :segments
1647
+
1648
+ # The ticket number associated with the travel reservation.
1649
+ attr_accessor :ticket_number
1650
+
1651
+ def initialize(
1652
+ affiliate: nil,
1653
+ agency_number: nil,
1654
+ carrier: nil,
1655
+ delivery: nil,
1656
+ passenger_name: nil,
1657
+ passengers: nil,
1658
+ segments: nil,
1659
+ ticket_number: nil
1660
+ )
1661
+ @affiliate = affiliate
1662
+ @agency_number = agency_number
1663
+ @carrier = carrier
1664
+ @delivery = delivery
1665
+ @passenger_name = passenger_name
1666
+ @passengers = passengers
1667
+ @segments = segments
1668
+ @ticket_number = ticket_number
1669
+ end
1670
+ end
1671
+
1672
+ class Lodging < Stripe::RequestParams
1673
+ class Address < Stripe::RequestParams
1674
+ # City, district, suburb, town, or village.
1675
+ attr_accessor :city
1676
+
1677
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1678
+ attr_accessor :country
1679
+
1680
+ # Address line 1 (e.g., street, PO Box, or company name).
1681
+ attr_accessor :line1
1682
+
1683
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1684
+ attr_accessor :line2
1685
+
1686
+ # ZIP or postal code.
1687
+ attr_accessor :postal_code
1688
+
1689
+ # State, county, province, or region.
1690
+ attr_accessor :state
1691
+
1692
+ def initialize(
1693
+ city: nil,
1694
+ country: nil,
1695
+ line1: nil,
1696
+ line2: nil,
1697
+ postal_code: nil,
1698
+ state: nil
1699
+ )
1700
+ @city = city
1701
+ @country = country
1702
+ @line1 = line1
1703
+ @line2 = line2
1704
+ @postal_code = postal_code
1705
+ @state = state
1706
+ end
1707
+ end
1708
+
1709
+ class Affiliate < Stripe::RequestParams
1710
+ # The name of the affiliate that originated the purchase.
1711
+ attr_accessor :name
1712
+
1713
+ def initialize(name: nil)
1714
+ @name = name
1715
+ end
1716
+ end
1717
+
1718
+ class Delivery < Stripe::RequestParams
1719
+ class Recipient < Stripe::RequestParams
1720
+ # The email of the recipient the ticket is delivered to.
1721
+ attr_accessor :email
1722
+
1723
+ # The name of the recipient the ticket is delivered to.
1724
+ attr_accessor :name
1725
+
1726
+ # The phone number of the recipient the ticket is delivered to.
1727
+ attr_accessor :phone
1728
+
1729
+ def initialize(email: nil, name: nil, phone: nil)
1730
+ @email = email
1731
+ @name = name
1732
+ @phone = phone
1733
+ end
1734
+ end
1735
+ # The delivery method for the payment
1736
+ attr_accessor :mode
1737
+
1738
+ # Details of the recipient.
1739
+ attr_accessor :recipient
1740
+
1741
+ def initialize(mode: nil, recipient: nil)
1742
+ @mode = mode
1743
+ @recipient = recipient
1744
+ end
1745
+ end
1746
+
1747
+ class Passenger < Stripe::RequestParams
1748
+ # Full name of the person or entity on the lodging reservation.
1749
+ attr_accessor :name
1750
+
1751
+ def initialize(name: nil)
1752
+ @name = name
1753
+ end
1754
+ end
1755
+ # The lodging location's address.
1756
+ attr_accessor :address
1757
+
1758
+ # The number of adults on the booking
1759
+ attr_accessor :adults
1760
+
1761
+ # Affiliate details for this purchase.
1762
+ attr_accessor :affiliate
1763
+
1764
+ # The booking number associated with the lodging reservation.
1765
+ attr_accessor :booking_number
1766
+
1767
+ # The lodging category
1768
+ attr_accessor :category
1769
+
1770
+ # Loding check-in time. Measured in seconds since the Unix epoch.
1771
+ attr_accessor :checkin_at
1772
+
1773
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1774
+ attr_accessor :checkout_at
1775
+
1776
+ # The customer service phone number of the lodging company.
1777
+ attr_accessor :customer_service_phone_number
1778
+
1779
+ # The daily lodging room rate.
1780
+ attr_accessor :daily_room_rate_amount
1781
+
1782
+ # Delivery details for this purchase.
1783
+ attr_accessor :delivery
1784
+
1785
+ # List of additional charges being billed.
1786
+ attr_accessor :extra_charges
1787
+
1788
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1789
+ attr_accessor :fire_safety_act_compliance
1790
+
1791
+ # The name of the lodging location.
1792
+ attr_accessor :name
1793
+
1794
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1795
+ attr_accessor :no_show
1796
+
1797
+ # The number of rooms on the booking
1798
+ attr_accessor :number_of_rooms
1799
+
1800
+ # The details of the passengers in the travel reservation
1801
+ attr_accessor :passengers
1802
+
1803
+ # The phone number of the lodging location.
1804
+ attr_accessor :property_phone_number
1805
+
1806
+ # The room class for this purchase.
1807
+ attr_accessor :room_class
1808
+
1809
+ # The number of room nights
1810
+ attr_accessor :room_nights
1811
+
1812
+ # The total tax amount associating with the room reservation.
1813
+ attr_accessor :total_room_tax_amount
1814
+
1815
+ # The total tax amount
1816
+ attr_accessor :total_tax_amount
1817
+
1818
+ def initialize(
1819
+ address: nil,
1820
+ adults: nil,
1821
+ affiliate: nil,
1822
+ booking_number: nil,
1823
+ category: nil,
1824
+ checkin_at: nil,
1825
+ checkout_at: nil,
1826
+ customer_service_phone_number: nil,
1827
+ daily_room_rate_amount: nil,
1828
+ delivery: nil,
1829
+ extra_charges: nil,
1830
+ fire_safety_act_compliance: nil,
1831
+ name: nil,
1832
+ no_show: nil,
1833
+ number_of_rooms: nil,
1834
+ passengers: nil,
1835
+ property_phone_number: nil,
1836
+ room_class: nil,
1837
+ room_nights: nil,
1838
+ total_room_tax_amount: nil,
1839
+ total_tax_amount: nil
1840
+ )
1841
+ @address = address
1842
+ @adults = adults
1843
+ @affiliate = affiliate
1844
+ @booking_number = booking_number
1845
+ @category = category
1846
+ @checkin_at = checkin_at
1847
+ @checkout_at = checkout_at
1848
+ @customer_service_phone_number = customer_service_phone_number
1849
+ @daily_room_rate_amount = daily_room_rate_amount
1850
+ @delivery = delivery
1851
+ @extra_charges = extra_charges
1852
+ @fire_safety_act_compliance = fire_safety_act_compliance
1853
+ @name = name
1854
+ @no_show = no_show
1855
+ @number_of_rooms = number_of_rooms
1856
+ @passengers = passengers
1857
+ @property_phone_number = property_phone_number
1858
+ @room_class = room_class
1859
+ @room_nights = room_nights
1860
+ @total_room_tax_amount = total_room_tax_amount
1861
+ @total_tax_amount = total_tax_amount
1862
+ end
1863
+ end
1864
+
1865
+ class Subscription < Stripe::RequestParams
1866
+ class Affiliate < Stripe::RequestParams
1867
+ # The name of the affiliate that originated the purchase.
1868
+ attr_accessor :name
1869
+
1870
+ def initialize(name: nil)
1871
+ @name = name
1872
+ end
1873
+ end
1874
+
1875
+ class BillingInterval < Stripe::RequestParams
1876
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1877
+ attr_accessor :count
1878
+
1879
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1880
+ attr_accessor :interval
1881
+
1882
+ def initialize(count: nil, interval: nil)
1883
+ @count = count
1884
+ @interval = interval
1885
+ end
1886
+ end
1887
+ # Affiliate details for this purchase.
1888
+ attr_accessor :affiliate
1889
+
1890
+ # Info whether the subscription will be auto renewed upon expiry.
1891
+ attr_accessor :auto_renewal
1892
+
1893
+ # Subscription billing details for this purchase.
1894
+ attr_accessor :billing_interval
1895
+
1896
+ # Subscription end time. Measured in seconds since the Unix epoch.
1897
+ attr_accessor :ends_at
1898
+
1899
+ # Name of the product on subscription. e.g. Apple Music Subscription
1900
+ attr_accessor :name
1901
+
1902
+ # Subscription start time. Measured in seconds since the Unix epoch.
1903
+ attr_accessor :starts_at
1904
+
1905
+ def initialize(
1906
+ affiliate: nil,
1907
+ auto_renewal: nil,
1908
+ billing_interval: nil,
1909
+ ends_at: nil,
1910
+ name: nil,
1911
+ starts_at: nil
1912
+ )
1913
+ @affiliate = affiliate
1914
+ @auto_renewal = auto_renewal
1915
+ @billing_interval = billing_interval
1916
+ @ends_at = ends_at
1917
+ @name = name
1918
+ @starts_at = starts_at
1919
+ end
1920
+ end
1921
+ # Car rental details for this PaymentIntent.
1922
+ attr_accessor :car_rental
1923
+
1924
+ # Event details for this PaymentIntent
1925
+ attr_accessor :event_details
1926
+
1927
+ # Flight reservation details for this PaymentIntent
1928
+ attr_accessor :flight
1929
+
1930
+ # Lodging reservation details for this PaymentIntent
1931
+ attr_accessor :lodging
1932
+
1933
+ # Subscription details for this PaymentIntent
1934
+ attr_accessor :subscription
1935
+
1936
+ def initialize(
1937
+ car_rental: nil,
1938
+ event_details: nil,
1939
+ flight: nil,
1940
+ lodging: nil,
1941
+ subscription: nil
1942
+ )
1943
+ @car_rental = car_rental
1944
+ @event_details = event_details
1945
+ @flight = flight
1946
+ @lodging = lodging
1947
+ @subscription = subscription
1948
+ end
1949
+ end
1950
+
1951
+ class TransferData < Stripe::RequestParams
1952
+ # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1953
+ attr_accessor :amount
1954
+
1955
+ def initialize(amount: nil)
1956
+ @amount = amount
1957
+ end
1958
+ end
1959
+ # The amount to capture, which must be less than or equal to the original amount. Any additional amount will be automatically refunded.
1960
+ attr_accessor :amount
1961
+
1962
+ # An application fee to add on to this charge.
1963
+ attr_accessor :application_fee
1964
+
1965
+ # An application fee amount to add on to this charge, which must be less than or equal to the original amount.
1966
+ attr_accessor :application_fee_amount
1967
+
1968
+ # Specifies which fields in the response should be expanded.
1969
+ attr_accessor :expand
1970
+
1971
+ # Provides industry-specific information about the charge.
1972
+ attr_accessor :payment_details
1973
+
1974
+ # 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.
1975
+ attr_accessor :receipt_email
1976
+
1977
+ # 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).
1978
+ #
1979
+ # 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.
1980
+ attr_accessor :statement_descriptor
1981
+
1982
+ # 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.
1983
+ attr_accessor :statement_descriptor_suffix
1984
+
1985
+ # 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.
1986
+ attr_accessor :transfer_data
1987
+
1988
+ # 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.
1989
+ attr_accessor :transfer_group
1990
+
1991
+ def initialize(
1992
+ amount: nil,
1993
+ application_fee: nil,
1994
+ application_fee_amount: nil,
1995
+ expand: nil,
1996
+ payment_details: nil,
1997
+ receipt_email: nil,
1998
+ statement_descriptor: nil,
1999
+ statement_descriptor_suffix: nil,
2000
+ transfer_data: nil,
2001
+ transfer_group: nil
2002
+ )
2003
+ @amount = amount
2004
+ @application_fee = application_fee
2005
+ @application_fee_amount = application_fee_amount
2006
+ @expand = expand
2007
+ @payment_details = payment_details
2008
+ @receipt_email = receipt_email
2009
+ @statement_descriptor = statement_descriptor
2010
+ @statement_descriptor_suffix = statement_descriptor_suffix
2011
+ @transfer_data = transfer_data
2012
+ @transfer_group = transfer_group
2013
+ end
2014
+ end
2015
+
6
2016
  # Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
7
2017
  #
8
2018
  # 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.