stripe 13.5.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (641) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -3
  3. data/Gemfile +4 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +29 -0
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_operations/request.rb +1 -0
  8. data/lib/stripe/api_requestor.rb +3 -0
  9. data/lib/stripe/api_version.rb +1 -1
  10. data/lib/stripe/errors.rb +0 -7
  11. data/lib/stripe/object_types.rb +8 -2
  12. data/lib/stripe/request_params.rb +24 -0
  13. data/lib/stripe/resources/account.rb +4634 -0
  14. data/lib/stripe/resources/account_link.rb +54 -0
  15. data/lib/stripe/resources/account_session.rb +739 -0
  16. data/lib/stripe/resources/apple_pay_domain.rb +54 -0
  17. data/lib/stripe/resources/application.rb +20 -0
  18. data/lib/stripe/resources/application_fee.rb +87 -0
  19. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  20. data/lib/stripe/resources/apps/secret.rb +141 -0
  21. data/lib/stripe/resources/balance.rb +122 -0
  22. data/lib/stripe/resources/balance_transaction.rb +103 -0
  23. data/lib/stripe/resources/bank_account.rb +84 -2
  24. data/lib/stripe/resources/billing/alert.rb +135 -0
  25. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  26. data/lib/stripe/resources/billing/credit_balance_summary.rb +40 -0
  27. data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
  28. data/lib/stripe/resources/billing/credit_grant.rb +217 -0
  29. data/lib/stripe/resources/billing/meter.rb +169 -0
  30. data/lib/stripe/resources/billing/meter_event.rb +35 -0
  31. data/lib/stripe/resources/billing/meter_event_adjustment.rb +43 -0
  32. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  33. data/lib/stripe/resources/billing_portal/configuration.rb +553 -0
  34. data/lib/stripe/resources/billing_portal/session.rb +271 -0
  35. data/lib/stripe/resources/capability.rb +84 -0
  36. data/lib/stripe/resources/card.rb +77 -0
  37. data/lib/stripe/resources/cash_balance.rb +17 -0
  38. data/lib/stripe/resources/charge.rb +1612 -0
  39. data/lib/stripe/resources/checkout/session.rb +3530 -6
  40. data/lib/stripe/resources/climate/order.rb +167 -0
  41. data/lib/stripe/resources/climate/product.rb +47 -0
  42. data/lib/stripe/resources/climate/supplier.rb +45 -0
  43. data/lib/stripe/resources/confirmation_token.rb +1448 -0
  44. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  45. data/lib/stripe/resources/country_spec.rb +54 -0
  46. data/lib/stripe/resources/coupon.rb +189 -0
  47. data/lib/stripe/resources/credit_note.rb +639 -0
  48. data/lib/stripe/resources/credit_note_line_item.rb +67 -0
  49. data/lib/stripe/resources/customer.rb +824 -0
  50. data/lib/stripe/resources/customer_balance_transaction.rb +29 -0
  51. data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
  52. data/lib/stripe/resources/customer_session.rb +159 -0
  53. data/lib/stripe/resources/discount.rb +29 -0
  54. data/lib/stripe/resources/dispute.rb +610 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement.rb +37 -0
  56. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  57. data/lib/stripe/resources/entitlements/feature.rb +81 -0
  58. data/lib/stripe/resources/ephemeral_key.rb +21 -0
  59. data/lib/stripe/resources/event.rb +90 -0
  60. data/lib/stripe/resources/exchange_rate.rb +24 -0
  61. data/lib/stripe/resources/file.rb +102 -0
  62. data/lib/stripe/resources/file_link.rb +103 -0
  63. data/lib/stripe/resources/financial_connections/account.rb +237 -0
  64. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  65. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  66. data/lib/stripe/resources/financial_connections/session.rb +95 -0
  67. data/lib/stripe/resources/financial_connections/transaction.rb +92 -0
  68. data/lib/stripe/resources/forwarding/request.rb +156 -0
  69. data/lib/stripe/resources/funding_instructions.rb +308 -0
  70. data/lib/stripe/resources/identity/verification_report.rb +257 -0
  71. data/lib/stripe/resources/identity/verification_session.rb +352 -0
  72. data/lib/stripe/resources/invoice.rb +3204 -21
  73. data/lib/stripe/resources/invoice_item.rb +400 -0
  74. data/lib/stripe/resources/invoice_line_item.rb +350 -0
  75. data/lib/stripe/resources/invoice_payment.rb +105 -0
  76. data/lib/stripe/resources/invoice_rendering_template.rb +55 -0
  77. data/lib/stripe/resources/issuing/authorization.rb +1104 -0
  78. data/lib/stripe/resources/issuing/card.rb +657 -0
  79. data/lib/stripe/resources/issuing/cardholder.rb +648 -0
  80. data/lib/stripe/resources/issuing/dispute.rb +781 -0
  81. data/lib/stripe/resources/issuing/personalization_design.rb +276 -0
  82. data/lib/stripe/resources/issuing/physical_bundle.rb +54 -0
  83. data/lib/stripe/resources/issuing/token.rb +166 -0
  84. data/lib/stripe/resources/issuing/transaction.rb +912 -0
  85. data/lib/stripe/resources/line_item.rb +47 -0
  86. data/lib/stripe/resources/login_link.rb +7 -0
  87. data/lib/stripe/resources/mandate.rb +142 -0
  88. data/lib/stripe/resources/payment_intent.rb +8650 -0
  89. data/lib/stripe/resources/payment_link.rb +1632 -0
  90. data/lib/stripe/resources/payment_method.rb +1542 -0
  91. data/lib/stripe/resources/payment_method_configuration.rb +2776 -0
  92. data/lib/stripe/resources/payment_method_domain.rb +150 -6
  93. data/lib/stripe/resources/payout.rb +209 -0
  94. data/lib/stripe/resources/person.rb +264 -1
  95. data/lib/stripe/resources/plan.rb +302 -0
  96. data/lib/stripe/resources/price.rb +605 -1
  97. data/lib/stripe/resources/product.rb +472 -0
  98. data/lib/stripe/resources/product_feature.rb +12 -0
  99. data/lib/stripe/resources/promotion_code.rb +212 -0
  100. data/lib/stripe/resources/quote.rb +917 -0
  101. data/lib/stripe/resources/radar/early_fraud_warning.rb +68 -0
  102. data/lib/stripe/resources/radar/value_list.rb +116 -0
  103. data/lib/stripe/resources/radar/value_list_item.rb +86 -0
  104. data/lib/stripe/resources/refund.rb +392 -0
  105. data/lib/stripe/resources/reporting/report_run.rb +141 -0
  106. data/lib/stripe/resources/reporting/report_type.rb +27 -0
  107. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  108. data/lib/stripe/resources/reversal.rb +21 -0
  109. data/lib/stripe/resources/review.rb +99 -0
  110. data/lib/stripe/resources/setup_attempt.rb +368 -0
  111. data/lib/stripe/resources/setup_intent.rb +3473 -0
  112. data/lib/stripe/resources/shipping_rate.rb +250 -0
  113. data/lib/stripe/resources/sigma/scheduled_query_run.rb +45 -0
  114. data/lib/stripe/resources/source.rb +1198 -0
  115. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  116. data/lib/stripe/resources/source_transaction.rb +85 -0
  117. data/lib/stripe/resources/subscription.rb +1686 -0
  118. data/lib/stripe/resources/subscription_item.rb +313 -5
  119. data/lib/stripe/resources/subscription_schedule.rb +1281 -0
  120. data/lib/stripe/resources/tax/calculation.rb +378 -0
  121. data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
  122. data/lib/stripe/resources/tax/registration.rb +2373 -0
  123. data/lib/stripe/resources/tax/settings.rb +117 -0
  124. data/lib/stripe/resources/tax/transaction.rb +258 -0
  125. data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
  126. data/lib/stripe/resources/tax_code.rb +26 -0
  127. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  128. data/lib/stripe/resources/tax_id.rb +112 -0
  129. data/lib/stripe/resources/tax_rate.rb +191 -0
  130. data/lib/stripe/resources/terminal/configuration.rb +1260 -0
  131. data/lib/stripe/resources/terminal/connection_token.rb +18 -0
  132. data/lib/stripe/resources/terminal/location.rb +166 -0
  133. data/lib/stripe/resources/terminal/reader.rb +427 -0
  134. data/lib/stripe/resources/test_helpers/test_clock.rb +77 -0
  135. data/lib/stripe/resources/token.rb +1159 -0
  136. data/lib/stripe/resources/topup.rb +165 -0
  137. data/lib/stripe/resources/transfer.rb +144 -0
  138. data/lib/stripe/resources/treasury/credit_reversal.rb +83 -0
  139. data/lib/stripe/resources/treasury/debit_reversal.rb +94 -0
  140. data/lib/stripe/resources/treasury/financial_account.rb +725 -1
  141. data/lib/stripe/resources/treasury/financial_account_features.rb +189 -0
  142. data/lib/stripe/resources/treasury/inbound_transfer.rb +226 -0
  143. data/lib/stripe/resources/treasury/outbound_payment.rb +486 -0
  144. data/lib/stripe/resources/treasury/outbound_transfer.rb +341 -0
  145. data/lib/stripe/resources/treasury/received_credit.rb +237 -0
  146. data/lib/stripe/resources/treasury/received_debit.rb +196 -0
  147. data/lib/stripe/resources/treasury/transaction.rb +167 -0
  148. data/lib/stripe/resources/treasury/transaction_entry.rb +148 -0
  149. data/lib/stripe/resources/v2/amount.rb +9 -0
  150. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  151. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +21 -0
  152. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  153. data/lib/stripe/resources/v2/event.rb +28 -0
  154. data/lib/stripe/resources/v2/event_destination.rb +60 -0
  155. data/lib/stripe/resources/webhook_endpoint.rb +113 -0
  156. data/lib/stripe/resources.rb +8 -2
  157. data/lib/stripe/services/account_capability_service.rb +32 -0
  158. data/lib/stripe/services/account_external_account_service.rb +250 -0
  159. data/lib/stripe/services/account_link_service.rb +46 -0
  160. data/lib/stripe/services/account_login_link_service.rb +9 -0
  161. data/lib/stripe/services/account_person_service.rb +875 -0
  162. data/lib/stripe/services/account_service.rb +4000 -0
  163. data/lib/stripe/services/account_session_service.rb +484 -0
  164. data/lib/stripe/services/apple_pay_domain_service.rb +51 -0
  165. data/lib/stripe/services/application_fee_refund_service.rb +54 -0
  166. data/lib/stripe/services/application_fee_service.rb +57 -0
  167. data/lib/stripe/services/apps/secret_service.rb +116 -0
  168. data/lib/stripe/services/balance_service.rb +9 -0
  169. data/lib/stripe/services/balance_transaction_service.rb +69 -0
  170. data/lib/stripe/services/billing/alert_service.rb +113 -0
  171. data/lib/stripe/services/billing/credit_balance_summary_service.rb +48 -0
  172. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +40 -0
  173. data/lib/stripe/services/billing/credit_grant_service.rb +166 -0
  174. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +26 -0
  175. data/lib/stripe/services/billing/meter_event_service.rb +21 -0
  176. data/lib/stripe/services/billing/meter_event_summary_service.rb +39 -0
  177. data/lib/stripe/services/billing/meter_service.rb +130 -0
  178. data/lib/stripe/services/billing_portal/configuration_service.rb +444 -0
  179. data/lib/stripe/services/billing_portal/session_service.rb +173 -0
  180. data/lib/stripe/services/charge_service.rb +402 -0
  181. data/lib/stripe/services/checkout/session_line_item_service.rb +18 -0
  182. data/lib/stripe/services/checkout/session_service.rb +2399 -5
  183. data/lib/stripe/services/climate/order_service.rb +102 -0
  184. data/lib/stripe/services/climate/product_service.rb +27 -0
  185. data/lib/stripe/services/climate/supplier_service.rb +27 -0
  186. data/lib/stripe/services/confirmation_token_service.rb +9 -0
  187. data/lib/stripe/services/country_spec_service.rb +27 -0
  188. data/lib/stripe/services/coupon_service.rb +152 -0
  189. data/lib/stripe/services/credit_note_line_item_service.rb +18 -0
  190. data/lib/stripe/services/credit_note_preview_lines_service.rb +152 -0
  191. data/lib/stripe/services/credit_note_service.rb +365 -0
  192. data/lib/stripe/services/customer_balance_transaction_service.rb +63 -0
  193. data/lib/stripe/services/customer_cash_balance_service.rb +29 -0
  194. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +27 -0
  195. data/lib/stripe/services/customer_funding_instructions_service.rb +42 -0
  196. data/lib/stripe/services/customer_payment_method_service.rb +40 -0
  197. data/lib/stripe/services/customer_payment_source_service.rb +179 -0
  198. data/lib/stripe/services/customer_service.rb +577 -0
  199. data/lib/stripe/services/customer_session_service.rb +96 -0
  200. data/lib/stripe/services/customer_tax_id_service.rb +45 -0
  201. data/lib/stripe/services/dispute_service.rb +374 -0
  202. data/lib/stripe/services/entitlements/active_entitlement_service.rb +36 -0
  203. data/lib/stripe/services/entitlements/feature_service.rb +76 -0
  204. data/lib/stripe/services/ephemeral_key_service.rb +36 -0
  205. data/lib/stripe/services/event_service.rb +65 -0
  206. data/lib/stripe/services/exchange_rate_service.rb +27 -0
  207. data/lib/stripe/services/file_link_service.rb +94 -0
  208. data/lib/stripe/services/file_service.rb +89 -0
  209. data/lib/stripe/services/financial_connections/account_owner_service.rb +27 -0
  210. data/lib/stripe/services/financial_connections/account_service.rb +96 -0
  211. data/lib/stripe/services/financial_connections/session_service.rb +68 -0
  212. data/lib/stripe/services/financial_connections/transaction_service.rb +70 -0
  213. data/lib/stripe/services/forwarding/request_service.rb +106 -0
  214. data/lib/stripe/services/identity/verification_report_service.rb +65 -0
  215. data/lib/stripe/services/identity/verification_session_service.rb +231 -0
  216. data/lib/stripe/services/invoice_item_service.rb +334 -0
  217. data/lib/stripe/services/invoice_line_item_service.rb +221 -0
  218. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  219. data/lib/stripe/services/invoice_rendering_template_service.rb +51 -0
  220. data/lib/stripe/services/invoice_service.rb +2648 -19
  221. data/lib/stripe/services/issuing/authorization_service.rb +104 -0
  222. data/lib/stripe/services/issuing/card_service.rb +455 -0
  223. data/lib/stripe/services/issuing/cardholder_service.rb +525 -0
  224. data/lib/stripe/services/issuing/dispute_service.rb +633 -0
  225. data/lib/stripe/services/issuing/personalization_design_service.rb +193 -0
  226. data/lib/stripe/services/issuing/physical_bundle_service.rb +40 -0
  227. data/lib/stripe/services/issuing/token_service.rb +73 -0
  228. data/lib/stripe/services/issuing/transaction_service.rb +77 -0
  229. data/lib/stripe/services/mandate_service.rb +9 -0
  230. data/lib/stripe/services/payment_intent_service.rb +7054 -0
  231. data/lib/stripe/services/payment_link_line_item_service.rb +18 -0
  232. data/lib/stripe/services/payment_link_service.rb +1276 -0
  233. data/lib/stripe/services/payment_method_configuration_service.rb +2004 -0
  234. data/lib/stripe/services/payment_method_domain_service.rb +79 -3
  235. data/lib/stripe/services/payment_method_service.rb +808 -0
  236. data/lib/stripe/services/payout_service.rb +159 -0
  237. data/lib/stripe/services/plan_service.rb +249 -0
  238. data/lib/stripe/services/price_service.rb +494 -1
  239. data/lib/stripe/services/product_feature_service.rb +42 -0
  240. data/lib/stripe/services/product_service.rb +425 -0
  241. data/lib/stripe/services/promotion_code_service.rb +178 -0
  242. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +18 -0
  243. data/lib/stripe/services/quote_line_item_service.rb +18 -0
  244. data/lib/stripe/services/quote_service.rb +611 -0
  245. data/lib/stripe/services/radar/early_fraud_warning_service.rb +61 -0
  246. data/lib/stripe/services/radar/value_list_item_service.rb +79 -0
  247. data/lib/stripe/services/radar/value_list_service.rb +103 -0
  248. data/lib/stripe/services/refund_service.rb +137 -0
  249. data/lib/stripe/services/reporting/report_run_service.rb +106 -0
  250. data/lib/stripe/services/reporting/report_type_service.rb +18 -0
  251. data/lib/stripe/services/review_service.rb +56 -0
  252. data/lib/stripe/services/setup_attempt_service.rb +51 -0
  253. data/lib/stripe/services/setup_intent_service.rb +3163 -0
  254. data/lib/stripe/services/shipping_rate_service.rb +200 -0
  255. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +27 -0
  256. data/lib/stripe/services/source_service.rb +601 -0
  257. data/lib/stripe/services/source_transaction_service.rb +18 -0
  258. data/lib/stripe/services/subscription_item_service.rb +282 -5
  259. data/lib/stripe/services/subscription_schedule_service.rb +1062 -0
  260. data/lib/stripe/services/subscription_service.rb +1412 -0
  261. data/lib/stripe/services/tax/calculation_line_item_service.rb +18 -0
  262. data/lib/stripe/services/tax/calculation_service.rb +205 -0
  263. data/lib/stripe/services/tax/registration_service.rb +1564 -0
  264. data/lib/stripe/services/tax/settings_service.rb +74 -0
  265. data/lib/stripe/services/tax/transaction_line_item_service.rb +18 -0
  266. data/lib/stripe/services/tax/transaction_service.rb +111 -0
  267. data/lib/stripe/services/tax_code_service.rb +27 -0
  268. data/lib/stripe/services/tax_id_service.rb +79 -0
  269. data/lib/stripe/services/tax_rate_service.rb +155 -0
  270. data/lib/stripe/services/terminal/configuration_service.rb +997 -0
  271. data/lib/stripe/services/terminal/connection_token_service.rb +12 -0
  272. data/lib/stripe/services/terminal/location_service.rb +144 -0
  273. data/lib/stripe/services/terminal/reader_service.rb +266 -0
  274. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +642 -0
  275. data/lib/stripe/services/test_helpers/customer_service.rb +18 -0
  276. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +745 -0
  277. data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
  278. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +41 -0
  279. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +632 -0
  280. data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
  281. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +44 -0
  282. data/lib/stripe/services/test_helpers/test_clock_service.rb +57 -0
  283. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +38 -0
  284. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +87 -0
  285. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +87 -0
  286. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +60 -0
  287. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +60 -0
  288. data/lib/stripe/services/token_service.rb +1140 -0
  289. data/lib/stripe/services/topup_service.rb +142 -0
  290. data/lib/stripe/services/transfer_reversal_service.rb +66 -0
  291. data/lib/stripe/services/transfer_service.rb +119 -0
  292. data/lib/stripe/services/treasury/credit_reversal_service.rb +59 -0
  293. data/lib/stripe/services/treasury/debit_reversal_service.rb +63 -0
  294. data/lib/stripe/services/treasury/financial_account_features_service.rb +166 -0
  295. data/lib/stripe/services/treasury/financial_account_service.rb +485 -1
  296. data/lib/stripe/services/treasury/inbound_transfer_service.rb +88 -0
  297. data/lib/stripe/services/treasury/outbound_payment_service.rb +258 -0
  298. data/lib/stripe/services/treasury/outbound_transfer_service.rb +124 -0
  299. data/lib/stripe/services/treasury/received_credit_service.rb +52 -0
  300. data/lib/stripe/services/treasury/received_debit_service.rb +40 -0
  301. data/lib/stripe/services/treasury/transaction_entry_service.rb +87 -0
  302. data/lib/stripe/services/treasury/transaction_service.rb +95 -0
  303. data/lib/stripe/services/v1_services.rb +2 -1
  304. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +23 -0
  305. data/lib/stripe/services/v2/billing/meter_event_service.rb +25 -0
  306. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
  307. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +33 -0
  308. data/lib/stripe/services/v2/core/event_destination_service.rb +143 -0
  309. data/lib/stripe/services/v2/core/event_service.rb +15 -0
  310. data/lib/stripe/services/webhook_endpoint_service.rb +96 -0
  311. data/lib/stripe/services.rb +1 -3
  312. data/lib/stripe/stripe_client.rb +2 -1
  313. data/lib/stripe/stripe_object.rb +5 -0
  314. data/lib/stripe/version.rb +1 -1
  315. data/lib/stripe.rb +1 -0
  316. data/rbi/stripe/resources/account.rbi +4840 -0
  317. data/rbi/stripe/resources/account_link.rbi +74 -0
  318. data/rbi/stripe/resources/account_session.rbi +894 -0
  319. data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
  320. data/rbi/stripe/resources/application.rbi +20 -0
  321. data/rbi/stripe/resources/application_fee.rbi +118 -0
  322. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  323. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  324. data/rbi/stripe/resources/balance.rbi +180 -0
  325. data/rbi/stripe/resources/balance_transaction.rbi +144 -0
  326. data/rbi/stripe/resources/bank_account.rbi +127 -0
  327. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  328. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  329. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  330. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  331. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  332. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  333. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  334. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  335. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  336. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  337. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  338. data/rbi/stripe/resources/capability.rbi +125 -0
  339. data/rbi/stripe/resources/card.rbi +125 -0
  340. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  341. data/rbi/stripe/resources/charge.rbi +2054 -0
  342. data/rbi/stripe/resources/checkout/session.rbi +3951 -0
  343. data/rbi/stripe/resources/climate/order.rbi +245 -0
  344. data/rbi/stripe/resources/climate/product.rbi +75 -0
  345. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  346. data/rbi/stripe/resources/confirmation_token.rbi +1793 -0
  347. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  348. data/rbi/stripe/resources/country_spec.rbi +85 -0
  349. data/rbi/stripe/resources/coupon.rbi +252 -0
  350. data/rbi/stripe/resources/credit_note.rbi +747 -0
  351. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  352. data/rbi/stripe/resources/customer.rbi +1009 -0
  353. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  354. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  355. data/rbi/stripe/resources/customer_session.rbi +200 -0
  356. data/rbi/stripe/resources/discount.rbi +53 -0
  357. data/rbi/stripe/resources/dispute.rbi +761 -0
  358. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  359. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  360. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  361. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  362. data/rbi/stripe/resources/event.rbi +146 -0
  363. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  364. data/rbi/stripe/resources/file.rbi +143 -0
  365. data/rbi/stripe/resources/file_link.rbi +141 -0
  366. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  367. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  368. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  369. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  370. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  371. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  372. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  373. data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
  374. data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
  375. data/rbi/stripe/resources/invoice.rbi +3733 -0
  376. data/rbi/stripe/resources/invoice_item.rbi +475 -0
  377. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  378. data/rbi/stripe/resources/invoice_payment.rbi +114 -0
  379. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  380. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  381. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  382. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  383. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  384. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  385. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  386. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  387. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  388. data/rbi/stripe/resources/line_item.rbi +72 -0
  389. data/rbi/stripe/resources/login_link.rbi +18 -0
  390. data/rbi/stripe/resources/mandate.rbi +187 -0
  391. data/rbi/stripe/resources/payment_intent.rbi +9731 -0
  392. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  393. data/rbi/stripe/resources/payment_method.rbi +1822 -0
  394. data/rbi/stripe/resources/payment_method_configuration.rbi +3154 -0
  395. data/rbi/stripe/resources/payment_method_domain.rbi +212 -0
  396. data/rbi/stripe/resources/payout.rbi +300 -0
  397. data/rbi/stripe/resources/person.rbi +371 -0
  398. data/rbi/stripe/resources/plan.rbi +373 -0
  399. data/rbi/stripe/resources/price.rbi +694 -0
  400. data/rbi/stripe/resources/product.rbi +557 -0
  401. data/rbi/stripe/resources/product_feature.rbi +26 -0
  402. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  403. data/rbi/stripe/resources/quote.rbi +1123 -0
  404. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  405. data/rbi/stripe/resources/radar/value_list.rbi +170 -0
  406. data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
  407. data/rbi/stripe/resources/refund.rbi +516 -0
  408. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  409. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  410. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  411. data/rbi/stripe/resources/reversal.rbi +51 -0
  412. data/rbi/stripe/resources/review.rbi +154 -0
  413. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  414. data/rbi/stripe/resources/setup_intent.rbi +3860 -0
  415. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  416. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  417. data/rbi/stripe/resources/source.rbi +1496 -0
  418. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  419. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  420. data/rbi/stripe/resources/subscription.rbi +1964 -0
  421. data/rbi/stripe/resources/subscription_item.rbi +370 -0
  422. data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
  423. data/rbi/stripe/resources/tax/calculation.rbi +474 -0
  424. data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
  425. data/rbi/stripe/resources/tax/registration.rbi +2485 -0
  426. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  427. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  428. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  429. data/rbi/stripe/resources/tax_code.rbi +44 -0
  430. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  431. data/rbi/stripe/resources/tax_id.rbi +167 -0
  432. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  433. data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
  434. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  435. data/rbi/stripe/resources/terminal/location.rbi +224 -0
  436. data/rbi/stripe/resources/terminal/reader.rbi +587 -0
  437. data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
  438. data/rbi/stripe/resources/token.rbi +1217 -0
  439. data/rbi/stripe/resources/topup.rbi +222 -0
  440. data/rbi/stripe/resources/transfer.rbi +199 -0
  441. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  442. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  443. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  444. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  445. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  446. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  447. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  448. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  449. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  450. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  451. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  452. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  453. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  454. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  455. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  456. data/rbi/stripe/resources/v2/event.rbi +48 -0
  457. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  458. data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
  459. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  460. data/rbi/stripe/services/account_external_account_service.rbi +306 -0
  461. data/rbi/stripe/services/account_link_service.rbi +58 -0
  462. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  463. data/rbi/stripe/services/account_person_service.rbi +923 -0
  464. data/rbi/stripe/services/account_service.rbi +4143 -0
  465. data/rbi/stripe/services/account_session_service.rbi +572 -0
  466. data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
  467. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  468. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  469. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  470. data/rbi/stripe/services/apps_service.rbi +9 -0
  471. data/rbi/stripe/services/balance_service.rbi +21 -0
  472. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  473. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  474. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  475. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  476. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  477. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  478. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  479. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  480. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  481. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  482. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  483. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  484. data/rbi/stripe/services/billing_service.rbi +15 -0
  485. data/rbi/stripe/services/charge_service.rbi +448 -0
  486. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  487. data/rbi/stripe/services/checkout/session_service.rbi +2585 -0
  488. data/rbi/stripe/services/checkout_service.rbi +9 -0
  489. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  490. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  491. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  492. data/rbi/stripe/services/climate_service.rbi +11 -0
  493. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  494. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  495. data/rbi/stripe/services/coupon_service.rbi +196 -0
  496. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  497. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  498. data/rbi/stripe/services/credit_note_service.rbi +416 -0
  499. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  500. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  501. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  502. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  503. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  504. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  505. data/rbi/stripe/services/customer_service.rbi +651 -0
  506. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  507. data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
  508. data/rbi/stripe/services/dispute_service.rbi +424 -0
  509. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  510. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  511. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  512. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  513. data/rbi/stripe/services/event_service.rbi +83 -0
  514. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  515. data/rbi/stripe/services/file_link_service.rbi +124 -0
  516. data/rbi/stripe/services/file_service.rbi +116 -0
  517. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  518. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  519. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  520. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  521. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  522. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  523. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  524. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  525. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  526. data/rbi/stripe/services/identity_service.rbi +10 -0
  527. data/rbi/stripe/services/invoice_item_service.rbi +368 -0
  528. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  529. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  530. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  531. data/rbi/stripe/services/invoice_service.rbi +2920 -0
  532. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  533. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  534. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  535. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  536. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  537. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  538. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  539. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  540. data/rbi/stripe/services/issuing_service.rbi +16 -0
  541. data/rbi/stripe/services/mandate_service.rbi +20 -0
  542. data/rbi/stripe/services/payment_intent_service.rbi +7759 -0
  543. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  544. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  545. data/rbi/stripe/services/payment_method_configuration_service.rbi +2211 -0
  546. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  547. data/rbi/stripe/services/payment_method_service.rbi +840 -0
  548. data/rbi/stripe/services/payout_service.rbi +205 -0
  549. data/rbi/stripe/services/plan_service.rbi +284 -0
  550. data/rbi/stripe/services/price_service.rbi +546 -0
  551. data/rbi/stripe/services/product_feature_service.rbi +69 -0
  552. data/rbi/stripe/services/product_service.rbi +479 -0
  553. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  554. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  555. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  556. data/rbi/stripe/services/quote_service.rbi +686 -0
  557. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  558. data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
  559. data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
  560. data/rbi/stripe/services/radar_service.rbi +11 -0
  561. data/rbi/stripe/services/refund_service.rbi +185 -0
  562. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  563. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  564. data/rbi/stripe/services/reporting_service.rbi +10 -0
  565. data/rbi/stripe/services/review_service.rbi +84 -0
  566. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  567. data/rbi/stripe/services/setup_intent_service.rbi +3596 -0
  568. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  569. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  570. data/rbi/stripe/services/sigma_service.rbi +9 -0
  571. data/rbi/stripe/services/source_service.rbi +663 -0
  572. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  573. data/rbi/stripe/services/subscription_item_service.rbi +324 -0
  574. data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
  575. data/rbi/stripe/services/subscription_service.rbi +1596 -0
  576. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  577. data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
  578. data/rbi/stripe/services/tax/registration_service.rbi +1689 -0
  579. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  580. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  581. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  582. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  583. data/rbi/stripe/services/tax_id_service.rbi +112 -0
  584. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  585. data/rbi/stripe/services/tax_service.rbi +12 -0
  586. data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
  587. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  588. data/rbi/stripe/services/terminal/location_service.rbi +184 -0
  589. data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
  590. data/rbi/stripe/services/terminal_service.rbi +12 -0
  591. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
  592. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  593. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  594. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  595. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  596. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  597. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  598. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  599. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
  600. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  601. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
  602. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  603. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  604. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  605. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  606. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  607. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  608. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  609. data/rbi/stripe/services/token_service.rbi +1189 -0
  610. data/rbi/stripe/services/topup_service.rbi +176 -0
  611. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  612. data/rbi/stripe/services/transfer_service.rbi +152 -0
  613. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  614. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  615. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  616. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  617. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  618. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  619. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  620. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  621. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  622. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  623. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  624. data/rbi/stripe/services/treasury_service.rbi +18 -0
  625. data/rbi/stripe/services/v1_services.rbi +77 -0
  626. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  627. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  628. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
  629. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  630. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  631. data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
  632. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  633. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  634. data/rbi/stripe/services/v2_services.rbi +10 -0
  635. data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
  636. metadata +333 -7
  637. data/lib/stripe/resources/usage_record.rb +0 -17
  638. data/lib/stripe/resources/usage_record_summary.rb +0 -12
  639. data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
  640. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
  641. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
@@ -14,6 +14,923 @@ module Stripe
14
14
  "quote"
15
15
  end
16
16
 
17
+ class AutomaticTax < Stripe::StripeObject
18
+ class Liability < Stripe::StripeObject
19
+ # The connected account being referenced when `type` is `account`.
20
+ attr_reader :account
21
+ # Type of the account referenced.
22
+ attr_reader :type
23
+ end
24
+ # Automatically calculate taxes
25
+ attr_reader :enabled
26
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
27
+ attr_reader :liability
28
+ # The status of the most recent automated tax calculation for this quote.
29
+ attr_reader :status
30
+ end
31
+
32
+ class Computed < Stripe::StripeObject
33
+ class Recurring < Stripe::StripeObject
34
+ class TotalDetails < Stripe::StripeObject
35
+ class Breakdown < Stripe::StripeObject
36
+ class Discount < Stripe::StripeObject
37
+ # The amount discounted.
38
+ attr_reader :amount
39
+ # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
40
+ # It contains information about when the discount began, when it will end, and what it is applied to.
41
+ #
42
+ # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
43
+ attr_reader :discount
44
+ end
45
+
46
+ class Tax < Stripe::StripeObject
47
+ # Amount of tax applied for this rate.
48
+ attr_reader :amount
49
+ # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
50
+ #
51
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
52
+ attr_reader :rate
53
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
54
+ attr_reader :taxability_reason
55
+ # The amount on which tax is calculated, in cents (or local equivalent).
56
+ attr_reader :taxable_amount
57
+ end
58
+ # The aggregated discounts.
59
+ attr_reader :discounts
60
+ # The aggregated tax amounts by rate.
61
+ attr_reader :taxes
62
+ end
63
+ # This is the sum of all the discounts.
64
+ attr_reader :amount_discount
65
+ # This is the sum of all the shipping amounts.
66
+ attr_reader :amount_shipping
67
+ # This is the sum of all the tax amounts.
68
+ attr_reader :amount_tax
69
+ # Attribute for field breakdown
70
+ attr_reader :breakdown
71
+ end
72
+ # Total before any discounts or taxes are applied.
73
+ attr_reader :amount_subtotal
74
+ # Total after discounts and taxes are applied.
75
+ attr_reader :amount_total
76
+ # The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
77
+ attr_reader :interval
78
+ # The number of intervals (specified in the `interval` attribute) between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months.
79
+ attr_reader :interval_count
80
+ # Attribute for field total_details
81
+ attr_reader :total_details
82
+ end
83
+
84
+ class Upfront < Stripe::StripeObject
85
+ class TotalDetails < Stripe::StripeObject
86
+ class Breakdown < Stripe::StripeObject
87
+ class Discount < Stripe::StripeObject
88
+ # The amount discounted.
89
+ attr_reader :amount
90
+ # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
91
+ # It contains information about when the discount began, when it will end, and what it is applied to.
92
+ #
93
+ # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
94
+ attr_reader :discount
95
+ end
96
+
97
+ class Tax < Stripe::StripeObject
98
+ # Amount of tax applied for this rate.
99
+ attr_reader :amount
100
+ # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
101
+ #
102
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
103
+ attr_reader :rate
104
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
105
+ attr_reader :taxability_reason
106
+ # The amount on which tax is calculated, in cents (or local equivalent).
107
+ attr_reader :taxable_amount
108
+ end
109
+ # The aggregated discounts.
110
+ attr_reader :discounts
111
+ # The aggregated tax amounts by rate.
112
+ attr_reader :taxes
113
+ end
114
+ # This is the sum of all the discounts.
115
+ attr_reader :amount_discount
116
+ # This is the sum of all the shipping amounts.
117
+ attr_reader :amount_shipping
118
+ # This is the sum of all the tax amounts.
119
+ attr_reader :amount_tax
120
+ # Attribute for field breakdown
121
+ attr_reader :breakdown
122
+ end
123
+ # Total before any discounts or taxes are applied.
124
+ attr_reader :amount_subtotal
125
+ # Total after discounts and taxes are applied.
126
+ attr_reader :amount_total
127
+ # The line items that will appear on the next invoice after this quote is accepted. This does not include pending invoice items that exist on the customer but may still be included in the next invoice.
128
+ attr_reader :line_items
129
+ # Attribute for field total_details
130
+ attr_reader :total_details
131
+ end
132
+ # The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. Defaults to `null` if no inputted line items with recurring prices.
133
+ attr_reader :recurring
134
+ # Attribute for field upfront
135
+ attr_reader :upfront
136
+ end
137
+
138
+ class FromQuote < Stripe::StripeObject
139
+ # Whether this quote is a revision of a different quote.
140
+ attr_reader :is_revision
141
+ # The quote that was cloned.
142
+ attr_reader :quote
143
+ end
144
+
145
+ class InvoiceSettings < Stripe::StripeObject
146
+ class Issuer < Stripe::StripeObject
147
+ # The connected account being referenced when `type` is `account`.
148
+ attr_reader :account
149
+ # Type of the account referenced.
150
+ attr_reader :type
151
+ end
152
+ # Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
153
+ attr_reader :days_until_due
154
+ # Attribute for field issuer
155
+ attr_reader :issuer
156
+ end
157
+
158
+ class StatusTransitions < Stripe::StripeObject
159
+ # The time that the quote was accepted. Measured in seconds since Unix epoch.
160
+ attr_reader :accepted_at
161
+ # The time that the quote was canceled. Measured in seconds since Unix epoch.
162
+ attr_reader :canceled_at
163
+ # The time that the quote was finalized. Measured in seconds since Unix epoch.
164
+ attr_reader :finalized_at
165
+ end
166
+
167
+ class SubscriptionData < Stripe::StripeObject
168
+ # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
169
+ attr_reader :description
170
+ # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
171
+ attr_reader :effective_date
172
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
173
+ attr_reader :metadata
174
+ # Integer representing the number of trial period days before the customer is charged for the first time.
175
+ attr_reader :trial_period_days
176
+ end
177
+
178
+ class TotalDetails < Stripe::StripeObject
179
+ class Breakdown < Stripe::StripeObject
180
+ class Discount < Stripe::StripeObject
181
+ # The amount discounted.
182
+ attr_reader :amount
183
+ # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
184
+ # It contains information about when the discount began, when it will end, and what it is applied to.
185
+ #
186
+ # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
187
+ attr_reader :discount
188
+ end
189
+
190
+ class Tax < Stripe::StripeObject
191
+ # Amount of tax applied for this rate.
192
+ attr_reader :amount
193
+ # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
194
+ #
195
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
196
+ attr_reader :rate
197
+ # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
198
+ attr_reader :taxability_reason
199
+ # The amount on which tax is calculated, in cents (or local equivalent).
200
+ attr_reader :taxable_amount
201
+ end
202
+ # The aggregated discounts.
203
+ attr_reader :discounts
204
+ # The aggregated tax amounts by rate.
205
+ attr_reader :taxes
206
+ end
207
+ # This is the sum of all the discounts.
208
+ attr_reader :amount_discount
209
+ # This is the sum of all the shipping amounts.
210
+ attr_reader :amount_shipping
211
+ # This is the sum of all the tax amounts.
212
+ attr_reader :amount_tax
213
+ # Attribute for field breakdown
214
+ attr_reader :breakdown
215
+ end
216
+
217
+ class TransferData < Stripe::StripeObject
218
+ # The amount in cents (or local equivalent) that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination.
219
+ attr_reader :amount
220
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount will be transferred to the destination.
221
+ attr_reader :amount_percent
222
+ # The account where funds from the payment will be transferred to upon payment success.
223
+ attr_reader :destination
224
+ end
225
+
226
+ class ListParams < Stripe::RequestParams
227
+ # The ID of the customer whose quotes will be retrieved.
228
+ attr_accessor :customer
229
+ # 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.
230
+ attr_accessor :ending_before
231
+ # Specifies which fields in the response should be expanded.
232
+ attr_accessor :expand
233
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
234
+ attr_accessor :limit
235
+ # 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.
236
+ attr_accessor :starting_after
237
+ # The status of the quote.
238
+ attr_accessor :status
239
+ # Provides a list of quotes that are associated with the specified test clock. The response will not include quotes with test clocks if this and the customer parameter is not set.
240
+ attr_accessor :test_clock
241
+
242
+ def initialize(
243
+ customer: nil,
244
+ ending_before: nil,
245
+ expand: nil,
246
+ limit: nil,
247
+ starting_after: nil,
248
+ status: nil,
249
+ test_clock: nil
250
+ )
251
+ @customer = customer
252
+ @ending_before = ending_before
253
+ @expand = expand
254
+ @limit = limit
255
+ @starting_after = starting_after
256
+ @status = status
257
+ @test_clock = test_clock
258
+ end
259
+ end
260
+
261
+ class CreateParams < Stripe::RequestParams
262
+ class AutomaticTax < Stripe::RequestParams
263
+ class Liability < Stripe::RequestParams
264
+ # The connected account being referenced when `type` is `account`.
265
+ attr_accessor :account
266
+ # Type of the account referenced in the request.
267
+ attr_accessor :type
268
+
269
+ def initialize(account: nil, type: nil)
270
+ @account = account
271
+ @type = type
272
+ end
273
+ end
274
+ # Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself.
275
+ attr_accessor :enabled
276
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
277
+ attr_accessor :liability
278
+
279
+ def initialize(enabled: nil, liability: nil)
280
+ @enabled = enabled
281
+ @liability = liability
282
+ end
283
+ end
284
+
285
+ class Discount < Stripe::RequestParams
286
+ # ID of the coupon to create a new discount for.
287
+ attr_accessor :coupon
288
+ # ID of an existing discount on the object (or one of its ancestors) to reuse.
289
+ attr_accessor :discount
290
+ # ID of the promotion code to create a new discount for.
291
+ attr_accessor :promotion_code
292
+
293
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
294
+ @coupon = coupon
295
+ @discount = discount
296
+ @promotion_code = promotion_code
297
+ end
298
+ end
299
+
300
+ class FromQuote < Stripe::RequestParams
301
+ # Whether this quote is a revision of the previous quote.
302
+ attr_accessor :is_revision
303
+ # The `id` of the quote that will be cloned.
304
+ attr_accessor :quote
305
+
306
+ def initialize(is_revision: nil, quote: nil)
307
+ @is_revision = is_revision
308
+ @quote = quote
309
+ end
310
+ end
311
+
312
+ class InvoiceSettings < Stripe::RequestParams
313
+ class Issuer < Stripe::RequestParams
314
+ # The connected account being referenced when `type` is `account`.
315
+ attr_accessor :account
316
+ # Type of the account referenced in the request.
317
+ attr_accessor :type
318
+
319
+ def initialize(account: nil, type: nil)
320
+ @account = account
321
+ @type = type
322
+ end
323
+ end
324
+ # Number of days within which a customer must pay the invoice generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
325
+ attr_accessor :days_until_due
326
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
327
+ attr_accessor :issuer
328
+
329
+ def initialize(days_until_due: nil, issuer: nil)
330
+ @days_until_due = days_until_due
331
+ @issuer = issuer
332
+ end
333
+ end
334
+
335
+ class LineItem < Stripe::RequestParams
336
+ class Discount < Stripe::RequestParams
337
+ # ID of the coupon to create a new discount for.
338
+ attr_accessor :coupon
339
+ # ID of an existing discount on the object (or one of its ancestors) to reuse.
340
+ attr_accessor :discount
341
+ # ID of the promotion code to create a new discount for.
342
+ attr_accessor :promotion_code
343
+
344
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
345
+ @coupon = coupon
346
+ @discount = discount
347
+ @promotion_code = promotion_code
348
+ end
349
+ end
350
+
351
+ class PriceData < Stripe::RequestParams
352
+ class Recurring < Stripe::RequestParams
353
+ # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
354
+ attr_accessor :interval
355
+ # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
356
+ attr_accessor :interval_count
357
+
358
+ def initialize(interval: nil, interval_count: nil)
359
+ @interval = interval
360
+ @interval_count = interval_count
361
+ end
362
+ end
363
+ # 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).
364
+ attr_accessor :currency
365
+ # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
366
+ attr_accessor :product
367
+ # The recurring components of a price such as `interval` and `interval_count`.
368
+ attr_accessor :recurring
369
+ # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
370
+ attr_accessor :tax_behavior
371
+ # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
372
+ attr_accessor :unit_amount
373
+ # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
374
+ attr_accessor :unit_amount_decimal
375
+
376
+ def initialize(
377
+ currency: nil,
378
+ product: nil,
379
+ recurring: nil,
380
+ tax_behavior: nil,
381
+ unit_amount: nil,
382
+ unit_amount_decimal: nil
383
+ )
384
+ @currency = currency
385
+ @product = product
386
+ @recurring = recurring
387
+ @tax_behavior = tax_behavior
388
+ @unit_amount = unit_amount
389
+ @unit_amount_decimal = unit_amount_decimal
390
+ end
391
+ end
392
+ # The discounts applied to this line item.
393
+ attr_accessor :discounts
394
+ # The ID of the price object. One of `price` or `price_data` is required.
395
+ attr_accessor :price
396
+ # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
397
+ attr_accessor :price_data
398
+ # The quantity of the line item.
399
+ attr_accessor :quantity
400
+ # The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
401
+ attr_accessor :tax_rates
402
+
403
+ def initialize(discounts: nil, price: nil, price_data: nil, quantity: nil, tax_rates: nil)
404
+ @discounts = discounts
405
+ @price = price
406
+ @price_data = price_data
407
+ @quantity = quantity
408
+ @tax_rates = tax_rates
409
+ end
410
+ end
411
+
412
+ class SubscriptionData < Stripe::RequestParams
413
+ # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
414
+ attr_accessor :description
415
+ # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
416
+ attr_accessor :effective_date
417
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
418
+ attr_accessor :metadata
419
+ # Integer representing the number of trial period days before the customer is charged for the first time.
420
+ attr_accessor :trial_period_days
421
+
422
+ def initialize(description: nil, effective_date: nil, metadata: nil, trial_period_days: nil)
423
+ @description = description
424
+ @effective_date = effective_date
425
+ @metadata = metadata
426
+ @trial_period_days = trial_period_days
427
+ end
428
+ end
429
+
430
+ class TransferData < Stripe::RequestParams
431
+ # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
432
+ attr_accessor :amount
433
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. There must be at least 1 line item with a recurring price to use this field.
434
+ attr_accessor :amount_percent
435
+ # ID of an existing, connected Stripe account.
436
+ attr_accessor :destination
437
+
438
+ def initialize(amount: nil, amount_percent: nil, destination: nil)
439
+ @amount = amount
440
+ @amount_percent = amount_percent
441
+ @destination = destination
442
+ end
443
+ end
444
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
445
+ attr_accessor :application_fee_amount
446
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
447
+ attr_accessor :application_fee_percent
448
+ # Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
449
+ attr_accessor :automatic_tax
450
+ # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
451
+ attr_accessor :collection_method
452
+ # The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
453
+ attr_accessor :customer
454
+ # The tax rates that will apply to any line item that does not have `tax_rates` set.
455
+ attr_accessor :default_tax_rates
456
+ # A description that will be displayed on the quote PDF. If no value is passed, the default description configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
457
+ attr_accessor :description
458
+ # The discounts applied to the quote.
459
+ attr_accessor :discounts
460
+ # Specifies which fields in the response should be expanded.
461
+ attr_accessor :expand
462
+ # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch. If no value is passed, the default expiration date configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
463
+ attr_accessor :expires_at
464
+ # A footer that will be displayed on the quote PDF. If no value is passed, the default footer configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
465
+ attr_accessor :footer
466
+ # Clone an existing quote. The new quote will be created in `status=draft`. When using this parameter, you cannot specify any other parameters except for `expires_at`.
467
+ attr_accessor :from_quote
468
+ # A header that will be displayed on the quote PDF. If no value is passed, the default header configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
469
+ attr_accessor :header
470
+ # All invoices will be billed using the specified settings.
471
+ attr_accessor :invoice_settings
472
+ # A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
473
+ attr_accessor :line_items
474
+ # 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`.
475
+ attr_accessor :metadata
476
+ # The account on behalf of which to charge.
477
+ attr_accessor :on_behalf_of
478
+ # When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
479
+ attr_accessor :subscription_data
480
+ # ID of the test clock to attach to the quote.
481
+ attr_accessor :test_clock
482
+ # The data with which to automatically create a Transfer for each of the invoices.
483
+ attr_accessor :transfer_data
484
+
485
+ def initialize(
486
+ application_fee_amount: nil,
487
+ application_fee_percent: nil,
488
+ automatic_tax: nil,
489
+ collection_method: nil,
490
+ customer: nil,
491
+ default_tax_rates: nil,
492
+ description: nil,
493
+ discounts: nil,
494
+ expand: nil,
495
+ expires_at: nil,
496
+ footer: nil,
497
+ from_quote: nil,
498
+ header: nil,
499
+ invoice_settings: nil,
500
+ line_items: nil,
501
+ metadata: nil,
502
+ on_behalf_of: nil,
503
+ subscription_data: nil,
504
+ test_clock: nil,
505
+ transfer_data: nil
506
+ )
507
+ @application_fee_amount = application_fee_amount
508
+ @application_fee_percent = application_fee_percent
509
+ @automatic_tax = automatic_tax
510
+ @collection_method = collection_method
511
+ @customer = customer
512
+ @default_tax_rates = default_tax_rates
513
+ @description = description
514
+ @discounts = discounts
515
+ @expand = expand
516
+ @expires_at = expires_at
517
+ @footer = footer
518
+ @from_quote = from_quote
519
+ @header = header
520
+ @invoice_settings = invoice_settings
521
+ @line_items = line_items
522
+ @metadata = metadata
523
+ @on_behalf_of = on_behalf_of
524
+ @subscription_data = subscription_data
525
+ @test_clock = test_clock
526
+ @transfer_data = transfer_data
527
+ end
528
+ end
529
+
530
+ class UpdateParams < Stripe::RequestParams
531
+ class AutomaticTax < Stripe::RequestParams
532
+ class Liability < Stripe::RequestParams
533
+ # The connected account being referenced when `type` is `account`.
534
+ attr_accessor :account
535
+ # Type of the account referenced in the request.
536
+ attr_accessor :type
537
+
538
+ def initialize(account: nil, type: nil)
539
+ @account = account
540
+ @type = type
541
+ end
542
+ end
543
+ # Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself.
544
+ attr_accessor :enabled
545
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
546
+ attr_accessor :liability
547
+
548
+ def initialize(enabled: nil, liability: nil)
549
+ @enabled = enabled
550
+ @liability = liability
551
+ end
552
+ end
553
+
554
+ class Discount < Stripe::RequestParams
555
+ # ID of the coupon to create a new discount for.
556
+ attr_accessor :coupon
557
+ # ID of an existing discount on the object (or one of its ancestors) to reuse.
558
+ attr_accessor :discount
559
+ # ID of the promotion code to create a new discount for.
560
+ attr_accessor :promotion_code
561
+
562
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
563
+ @coupon = coupon
564
+ @discount = discount
565
+ @promotion_code = promotion_code
566
+ end
567
+ end
568
+
569
+ class InvoiceSettings < Stripe::RequestParams
570
+ class Issuer < Stripe::RequestParams
571
+ # The connected account being referenced when `type` is `account`.
572
+ attr_accessor :account
573
+ # Type of the account referenced in the request.
574
+ attr_accessor :type
575
+
576
+ def initialize(account: nil, type: nil)
577
+ @account = account
578
+ @type = type
579
+ end
580
+ end
581
+ # Number of days within which a customer must pay the invoice generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
582
+ attr_accessor :days_until_due
583
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
584
+ attr_accessor :issuer
585
+
586
+ def initialize(days_until_due: nil, issuer: nil)
587
+ @days_until_due = days_until_due
588
+ @issuer = issuer
589
+ end
590
+ end
591
+
592
+ class LineItem < Stripe::RequestParams
593
+ class Discount < Stripe::RequestParams
594
+ # ID of the coupon to create a new discount for.
595
+ attr_accessor :coupon
596
+ # ID of an existing discount on the object (or one of its ancestors) to reuse.
597
+ attr_accessor :discount
598
+ # ID of the promotion code to create a new discount for.
599
+ attr_accessor :promotion_code
600
+
601
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
602
+ @coupon = coupon
603
+ @discount = discount
604
+ @promotion_code = promotion_code
605
+ end
606
+ end
607
+
608
+ class PriceData < Stripe::RequestParams
609
+ class Recurring < Stripe::RequestParams
610
+ # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
611
+ attr_accessor :interval
612
+ # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
613
+ attr_accessor :interval_count
614
+
615
+ def initialize(interval: nil, interval_count: nil)
616
+ @interval = interval
617
+ @interval_count = interval_count
618
+ end
619
+ end
620
+ # 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).
621
+ attr_accessor :currency
622
+ # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
623
+ attr_accessor :product
624
+ # The recurring components of a price such as `interval` and `interval_count`.
625
+ attr_accessor :recurring
626
+ # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
627
+ attr_accessor :tax_behavior
628
+ # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
629
+ attr_accessor :unit_amount
630
+ # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
631
+ attr_accessor :unit_amount_decimal
632
+
633
+ def initialize(
634
+ currency: nil,
635
+ product: nil,
636
+ recurring: nil,
637
+ tax_behavior: nil,
638
+ unit_amount: nil,
639
+ unit_amount_decimal: nil
640
+ )
641
+ @currency = currency
642
+ @product = product
643
+ @recurring = recurring
644
+ @tax_behavior = tax_behavior
645
+ @unit_amount = unit_amount
646
+ @unit_amount_decimal = unit_amount_decimal
647
+ end
648
+ end
649
+ # The discounts applied to this line item.
650
+ attr_accessor :discounts
651
+ # The ID of an existing line item on the quote.
652
+ attr_accessor :id
653
+ # The ID of the price object. One of `price` or `price_data` is required.
654
+ attr_accessor :price
655
+ # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
656
+ attr_accessor :price_data
657
+ # The quantity of the line item.
658
+ attr_accessor :quantity
659
+ # The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
660
+ attr_accessor :tax_rates
661
+
662
+ def initialize(
663
+ discounts: nil,
664
+ id: nil,
665
+ price: nil,
666
+ price_data: nil,
667
+ quantity: nil,
668
+ tax_rates: nil
669
+ )
670
+ @discounts = discounts
671
+ @id = id
672
+ @price = price
673
+ @price_data = price_data
674
+ @quantity = quantity
675
+ @tax_rates = tax_rates
676
+ end
677
+ end
678
+
679
+ class SubscriptionData < Stripe::RequestParams
680
+ # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
681
+ attr_accessor :description
682
+ # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
683
+ attr_accessor :effective_date
684
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
685
+ attr_accessor :metadata
686
+ # Integer representing the number of trial period days before the customer is charged for the first time.
687
+ attr_accessor :trial_period_days
688
+
689
+ def initialize(description: nil, effective_date: nil, metadata: nil, trial_period_days: nil)
690
+ @description = description
691
+ @effective_date = effective_date
692
+ @metadata = metadata
693
+ @trial_period_days = trial_period_days
694
+ end
695
+ end
696
+
697
+ class TransferData < Stripe::RequestParams
698
+ # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
699
+ attr_accessor :amount
700
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. There must be at least 1 line item with a recurring price to use this field.
701
+ attr_accessor :amount_percent
702
+ # ID of an existing, connected Stripe account.
703
+ attr_accessor :destination
704
+
705
+ def initialize(amount: nil, amount_percent: nil, destination: nil)
706
+ @amount = amount
707
+ @amount_percent = amount_percent
708
+ @destination = destination
709
+ end
710
+ end
711
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
712
+ attr_accessor :application_fee_amount
713
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
714
+ attr_accessor :application_fee_percent
715
+ # Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
716
+ attr_accessor :automatic_tax
717
+ # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
718
+ attr_accessor :collection_method
719
+ # The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
720
+ attr_accessor :customer
721
+ # The tax rates that will apply to any line item that does not have `tax_rates` set.
722
+ attr_accessor :default_tax_rates
723
+ # A description that will be displayed on the quote PDF.
724
+ attr_accessor :description
725
+ # The discounts applied to the quote.
726
+ attr_accessor :discounts
727
+ # Specifies which fields in the response should be expanded.
728
+ attr_accessor :expand
729
+ # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
730
+ attr_accessor :expires_at
731
+ # A footer that will be displayed on the quote PDF.
732
+ attr_accessor :footer
733
+ # A header that will be displayed on the quote PDF.
734
+ attr_accessor :header
735
+ # All invoices will be billed using the specified settings.
736
+ attr_accessor :invoice_settings
737
+ # A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
738
+ attr_accessor :line_items
739
+ # 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`.
740
+ attr_accessor :metadata
741
+ # The account on behalf of which to charge.
742
+ attr_accessor :on_behalf_of
743
+ # When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
744
+ attr_accessor :subscription_data
745
+ # The data with which to automatically create a Transfer for each of the invoices.
746
+ attr_accessor :transfer_data
747
+
748
+ def initialize(
749
+ application_fee_amount: nil,
750
+ application_fee_percent: nil,
751
+ automatic_tax: nil,
752
+ collection_method: nil,
753
+ customer: nil,
754
+ default_tax_rates: nil,
755
+ description: nil,
756
+ discounts: nil,
757
+ expand: nil,
758
+ expires_at: nil,
759
+ footer: nil,
760
+ header: nil,
761
+ invoice_settings: nil,
762
+ line_items: nil,
763
+ metadata: nil,
764
+ on_behalf_of: nil,
765
+ subscription_data: nil,
766
+ transfer_data: nil
767
+ )
768
+ @application_fee_amount = application_fee_amount
769
+ @application_fee_percent = application_fee_percent
770
+ @automatic_tax = automatic_tax
771
+ @collection_method = collection_method
772
+ @customer = customer
773
+ @default_tax_rates = default_tax_rates
774
+ @description = description
775
+ @discounts = discounts
776
+ @expand = expand
777
+ @expires_at = expires_at
778
+ @footer = footer
779
+ @header = header
780
+ @invoice_settings = invoice_settings
781
+ @line_items = line_items
782
+ @metadata = metadata
783
+ @on_behalf_of = on_behalf_of
784
+ @subscription_data = subscription_data
785
+ @transfer_data = transfer_data
786
+ end
787
+ end
788
+
789
+ class ListComputedUpfrontLineItemsParams < Stripe::RequestParams
790
+ # 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.
791
+ attr_accessor :ending_before
792
+ # Specifies which fields in the response should be expanded.
793
+ attr_accessor :expand
794
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
795
+ attr_accessor :limit
796
+ # 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.
797
+ attr_accessor :starting_after
798
+
799
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
800
+ @ending_before = ending_before
801
+ @expand = expand
802
+ @limit = limit
803
+ @starting_after = starting_after
804
+ end
805
+ end
806
+
807
+ class ListLineItemsParams < Stripe::RequestParams
808
+ # 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.
809
+ attr_accessor :ending_before
810
+ # Specifies which fields in the response should be expanded.
811
+ attr_accessor :expand
812
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
813
+ attr_accessor :limit
814
+ # 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.
815
+ attr_accessor :starting_after
816
+
817
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
818
+ @ending_before = ending_before
819
+ @expand = expand
820
+ @limit = limit
821
+ @starting_after = starting_after
822
+ end
823
+ end
824
+
825
+ class AcceptParams < Stripe::RequestParams
826
+ # Specifies which fields in the response should be expanded.
827
+ attr_accessor :expand
828
+
829
+ def initialize(expand: nil)
830
+ @expand = expand
831
+ end
832
+ end
833
+
834
+ class CancelParams < Stripe::RequestParams
835
+ # Specifies which fields in the response should be expanded.
836
+ attr_accessor :expand
837
+
838
+ def initialize(expand: nil)
839
+ @expand = expand
840
+ end
841
+ end
842
+
843
+ class FinalizeQuoteParams < Stripe::RequestParams
844
+ # Specifies which fields in the response should be expanded.
845
+ attr_accessor :expand
846
+ # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
847
+ attr_accessor :expires_at
848
+
849
+ def initialize(expand: nil, expires_at: nil)
850
+ @expand = expand
851
+ @expires_at = expires_at
852
+ end
853
+ end
854
+
855
+ class PdfParams < Stripe::RequestParams
856
+ # Specifies which fields in the response should be expanded.
857
+ attr_accessor :expand
858
+
859
+ def initialize(expand: nil)
860
+ @expand = expand
861
+ end
862
+ end
863
+ # Total before any discounts or taxes are applied.
864
+ attr_reader :amount_subtotal
865
+ # Total after discounts and taxes are applied.
866
+ attr_reader :amount_total
867
+ # ID of the Connect Application that created the quote.
868
+ attr_reader :application
869
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote.
870
+ attr_reader :application_fee_amount
871
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.
872
+ attr_reader :application_fee_percent
873
+ # Attribute for field automatic_tax
874
+ attr_reader :automatic_tax
875
+ # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
876
+ attr_reader :collection_method
877
+ # Attribute for field computed
878
+ attr_reader :computed
879
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
880
+ attr_reader :created
881
+ # 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).
882
+ attr_reader :currency
883
+ # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
884
+ attr_reader :customer
885
+ # The tax rates applied to this quote.
886
+ attr_reader :default_tax_rates
887
+ # A description that will be displayed on the quote PDF.
888
+ attr_reader :description
889
+ # The discounts applied to this quote.
890
+ attr_reader :discounts
891
+ # The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
892
+ attr_reader :expires_at
893
+ # A footer that will be displayed on the quote PDF.
894
+ attr_reader :footer
895
+ # Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.
896
+ attr_reader :from_quote
897
+ # A header that will be displayed on the quote PDF.
898
+ attr_reader :header
899
+ # Unique identifier for the object.
900
+ attr_reader :id
901
+ # The invoice that was created from this quote.
902
+ attr_reader :invoice
903
+ # Attribute for field invoice_settings
904
+ attr_reader :invoice_settings
905
+ # A list of items the customer is being quoted for.
906
+ attr_reader :line_items
907
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
908
+ attr_reader :livemode
909
+ # 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.
910
+ attr_reader :metadata
911
+ # A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/docs/quotes/overview#finalize).
912
+ attr_reader :number
913
+ # String representing the object's type. Objects of the same type share the same value.
914
+ attr_reader :object
915
+ # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
916
+ attr_reader :on_behalf_of
917
+ # The status of the quote.
918
+ attr_reader :status
919
+ # Attribute for field status_transitions
920
+ attr_reader :status_transitions
921
+ # The subscription that was created or updated from this quote.
922
+ attr_reader :subscription
923
+ # Attribute for field subscription_data
924
+ attr_reader :subscription_data
925
+ # The subscription schedule that was created or updated from this quote.
926
+ attr_reader :subscription_schedule
927
+ # ID of the test clock this quote belongs to.
928
+ attr_reader :test_clock
929
+ # Attribute for field total_details
930
+ attr_reader :total_details
931
+ # The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
932
+ attr_reader :transfer_data
933
+
17
934
  # Accepts the specified quote.
18
935
  def accept(params = {}, opts = {})
19
936
  request_stripe_object(