stripe 13.4.0.pre.beta.1 → 13.4.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (688) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/resources/account.rb +23 -745
  6. data/lib/stripe/resources/account_link.rb +0 -10
  7. data/lib/stripe/resources/account_notice.rb +0 -22
  8. data/lib/stripe/resources/account_session.rb +0 -125
  9. data/lib/stripe/resources/apple_pay_domain.rb +0 -10
  10. data/lib/stripe/resources/application.rb +0 -3
  11. data/lib/stripe/resources/application_fee.rb +0 -24
  12. data/lib/stripe/resources/application_fee_refund.rb +0 -7
  13. data/lib/stripe/resources/apps/secret.rb +0 -25
  14. data/lib/stripe/resources/balance.rb +0 -31
  15. data/lib/stripe/resources/balance_transaction.rb +0 -29
  16. data/lib/stripe/resources/bank_account.rb +0 -29
  17. data/lib/stripe/resources/billing/alert.rb +0 -22
  18. data/lib/stripe/resources/billing/alert_triggered.rb +0 -5
  19. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -12
  20. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -24
  21. data/lib/stripe/resources/billing/credit_grant.rb +0 -32
  22. data/lib/stripe/resources/billing/meter.rb +0 -25
  23. data/lib/stripe/resources/billing/meter_error_report.rb +0 -11
  24. data/lib/stripe/resources/billing/meter_event.rb +0 -10
  25. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -8
  26. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -6
  27. data/lib/stripe/resources/billing_portal/configuration.rb +0 -77
  28. data/lib/stripe/resources/billing_portal/session.rb +0 -42
  29. data/lib/stripe/resources/capability.rb +2 -29
  30. data/lib/stripe/resources/capital/financing_offer.rb +0 -33
  31. data/lib/stripe/resources/capital/financing_summary.rb +0 -13
  32. data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
  33. data/lib/stripe/resources/card.rb +2 -34
  34. data/lib/stripe/resources/cash_balance.rb +0 -5
  35. data/lib/stripe/resources/charge.rb +4 -665
  36. data/lib/stripe/resources/checkout/session.rb +4 -512
  37. data/lib/stripe/resources/climate/order.rb +0 -40
  38. data/lib/stripe/resources/climate/product.rb +0 -13
  39. data/lib/stripe/resources/climate/supplier.rb +0 -13
  40. data/lib/stripe/resources/confirmation_token.rb +2 -337
  41. data/lib/stripe/resources/connect_collection_transfer.rb +0 -5
  42. data/lib/stripe/resources/country_spec.rb +0 -13
  43. data/lib/stripe/resources/coupon.rb +0 -39
  44. data/lib/stripe/resources/credit_note.rb +0 -138
  45. data/lib/stripe/resources/credit_note_line_item.rb +0 -24
  46. data/lib/stripe/resources/customer.rb +1 -156
  47. data/lib/stripe/resources/customer_balance_transaction.rb +0 -12
  48. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -27
  49. data/lib/stripe/resources/customer_session.rb +0 -24
  50. data/lib/stripe/resources/discount.rb +0 -12
  51. data/lib/stripe/resources/dispute.rb +4 -152
  52. data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -8
  53. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -3
  54. data/lib/stripe/resources/entitlements/feature.rb +0 -17
  55. data/lib/stripe/resources/ephemeral_key.rb +0 -5
  56. data/lib/stripe/resources/event.rb +0 -27
  57. data/lib/stripe/resources/exchange_rate.rb +0 -5
  58. data/lib/stripe/resources/file.rb +0 -23
  59. data/lib/stripe/resources/file_link.rb +0 -22
  60. data/lib/stripe/resources/financial_connections/account.rb +0 -47
  61. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -3
  62. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -7
  63. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -3
  64. data/lib/stripe/resources/financial_connections/institution.rb +0 -13
  65. data/lib/stripe/resources/financial_connections/session.rb +0 -28
  66. data/lib/stripe/resources/financial_connections/transaction.rb +0 -21
  67. data/lib/stripe/resources/forwarding/request.rb +0 -31
  68. data/lib/stripe/resources/funding_instructions.rb +0 -107
  69. data/lib/stripe/resources/gift_cards/card.rb +0 -28
  70. data/lib/stripe/resources/gift_cards/transaction.rb +0 -32
  71. data/lib/stripe/resources/identity/verification_report.rb +0 -69
  72. data/lib/stripe/resources/identity/verification_session.rb +0 -69
  73. data/lib/stripe/resources/invoice.rb +6 -1276
  74. data/lib/stripe/resources/invoice_item.rb +0 -91
  75. data/lib/stripe/resources/invoice_line_item.rb +0 -76
  76. data/lib/stripe/resources/invoice_payment.rb +0 -16
  77. data/lib/stripe/resources/invoice_rendering_template.rb +0 -12
  78. data/lib/stripe/resources/issuing/authorization.rb +0 -199
  79. data/lib/stripe/resources/issuing/card.rb +0 -128
  80. data/lib/stripe/resources/issuing/cardholder.rb +0 -110
  81. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -82
  82. data/lib/stripe/resources/issuing/dispute.rb +0 -151
  83. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -14
  84. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -14
  85. data/lib/stripe/resources/issuing/personalization_design.rb +0 -48
  86. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  87. data/lib/stripe/resources/issuing/settlement.rb +0 -16
  88. data/lib/stripe/resources/issuing/token.rb +0 -46
  89. data/lib/stripe/resources/issuing/transaction.rb +0 -171
  90. data/lib/stripe/resources/line_item.rb +0 -23
  91. data/lib/stripe/resources/login_link.rb +0 -2
  92. data/lib/stripe/resources/mandate.rb +0 -45
  93. data/lib/stripe/resources/margin.rb +0 -19
  94. data/lib/stripe/resources/order.rb +3 -391
  95. data/lib/stripe/resources/payment_attempt_record.rb +0 -42
  96. data/lib/stripe/resources/payment_intent.rb +2 -1768
  97. data/lib/stripe/resources/payment_link.rb +15 -213
  98. data/lib/stripe/resources/payment_method.rb +2 -345
  99. data/lib/stripe/resources/payment_method_configuration.rb +0 -293
  100. data/lib/stripe/resources/payment_method_domain.rb +0 -23
  101. data/lib/stripe/resources/payment_record.rb +0 -109
  102. data/lib/stripe/resources/payout.rb +0 -49
  103. data/lib/stripe/resources/person.rb +2 -92
  104. data/lib/stripe/resources/plan.rb +0 -69
  105. data/lib/stripe/resources/price.rb +0 -133
  106. data/lib/stripe/resources/product.rb +0 -100
  107. data/lib/stripe/resources/product_feature.rb +0 -4
  108. data/lib/stripe/resources/promotion_code.rb +0 -40
  109. data/lib/stripe/resources/quote.rb +0 -458
  110. data/lib/stripe/resources/quote_line.rb +0 -66
  111. data/lib/stripe/resources/quote_preview_invoice.rb +3 -184
  112. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -101
  113. data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -16
  114. data/lib/stripe/resources/radar/value_list.rb +0 -26
  115. data/lib/stripe/resources/radar/value_list_item.rb +0 -18
  116. data/lib/stripe/resources/refund.rb +0 -92
  117. data/lib/stripe/resources/reporting/report_run.rb +0 -32
  118. data/lib/stripe/resources/reporting/report_type.rb +0 -8
  119. data/lib/stripe/resources/reserve_transaction.rb +0 -4
  120. data/lib/stripe/resources/reversal.rb +0 -9
  121. data/lib/stripe/resources/review.rb +0 -27
  122. data/lib/stripe/resources/setup_attempt.rb +2 -103
  123. data/lib/stripe/resources/setup_intent.rb +2 -539
  124. data/lib/stripe/resources/shipping_rate.rb +0 -44
  125. data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -13
  126. data/lib/stripe/resources/source.rb +6 -338
  127. data/lib/stripe/resources/source_mandate_notification.rb +0 -13
  128. data/lib/stripe/resources/source_transaction.rb +0 -29
  129. data/lib/stripe/resources/subscription.rb +0 -338
  130. data/lib/stripe/resources/subscription_item.rb +0 -69
  131. data/lib/stripe/resources/subscription_schedule.rb +0 -388
  132. data/lib/stripe/resources/tax/association.rb +0 -11
  133. data/lib/stripe/resources/tax/calculation.rb +2 -89
  134. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -20
  135. data/lib/stripe/resources/tax/form.rb +2 -35
  136. data/lib/stripe/resources/tax/registration.rb +421 -213
  137. data/lib/stripe/resources/tax/settings.rb +0 -20
  138. data/lib/stripe/resources/tax/transaction.rb +1 -66
  139. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -12
  140. data/lib/stripe/resources/tax_code.rb +0 -6
  141. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -4
  142. data/lib/stripe/resources/tax_id.rb +2 -28
  143. data/lib/stripe/resources/tax_rate.rb +0 -45
  144. data/lib/stripe/resources/terminal/configuration.rb +0 -164
  145. data/lib/stripe/resources/terminal/connection_token.rb +0 -3
  146. data/lib/stripe/resources/terminal/location.rb +0 -33
  147. data/lib/stripe/resources/terminal/reader.rb +0 -129
  148. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -5
  149. data/lib/stripe/resources/test_helpers/test_clock.rb +0 -15
  150. data/lib/stripe/resources/token.rb +4 -192
  151. data/lib/stripe/resources/topup.rb +0 -36
  152. data/lib/stripe/resources/transfer.rb +0 -35
  153. data/lib/stripe/resources/treasury/credit_reversal.rb +0 -21
  154. data/lib/stripe/resources/treasury/debit_reversal.rb +0 -23
  155. data/lib/stripe/resources/treasury/financial_account.rb +77 -71
  156. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -46
  157. data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -50
  158. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -92
  159. data/lib/stripe/resources/treasury/outbound_transfer.rb +25 -66
  160. data/lib/stripe/resources/treasury/received_credit.rb +6 -58
  161. data/lib/stripe/resources/treasury/received_debit.rb +0 -54
  162. data/lib/stripe/resources/treasury/transaction.rb +0 -39
  163. data/lib/stripe/resources/treasury/transaction_entry.rb +0 -36
  164. data/lib/stripe/resources/usage_record.rb +0 -5
  165. data/lib/stripe/resources/usage_record_summary.rb +0 -7
  166. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -6
  167. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -7
  168. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -5
  169. data/lib/stripe/resources/v2/event.rb +0 -8
  170. data/lib/stripe/resources/v2/event_destination.rb +0 -19
  171. data/lib/stripe/resources/webhook_endpoint.rb +0 -26
  172. data/lib/stripe/services/account_capability_service.rb +0 -1
  173. data/lib/stripe/services/account_external_account_service.rb +0 -43
  174. data/lib/stripe/services/account_link_service.rb +0 -7
  175. data/lib/stripe/services/account_notice_service.rb +0 -9
  176. data/lib/stripe/services/account_person_service.rb +0 -139
  177. data/lib/stripe/services/account_service.rb +8 -519
  178. data/lib/stripe/services/account_session_service.rb +0 -76
  179. data/lib/stripe/services/apple_pay_domain_service.rb +0 -5
  180. data/lib/stripe/services/application_fee_refund_service.rb +0 -6
  181. data/lib/stripe/services/application_fee_service.rb +0 -8
  182. data/lib/stripe/services/apps/secret_service.rb +0 -16
  183. data/lib/stripe/services/balance_transaction_service.rb +0 -11
  184. data/lib/stripe/services/billing/alert_service.rb +0 -12
  185. data/lib/stripe/services/billing/credit_balance_summary_service.rb +0 -4
  186. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -5
  187. data/lib/stripe/services/billing/credit_grant_service.rb +0 -16
  188. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +0 -3
  189. data/lib/stripe/services/billing/meter_event_service.rb +0 -4
  190. data/lib/stripe/services/billing/meter_event_summary_service.rb +0 -7
  191. data/lib/stripe/services/billing/meter_service.rb +0 -12
  192. data/lib/stripe/services/billing_portal/configuration_service.rb +0 -48
  193. data/lib/stripe/services/billing_portal/session_service.rb +0 -19
  194. data/lib/stripe/services/capital/financing_offer_service.rb +0 -9
  195. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -7
  196. data/lib/stripe/services/charge_service.rb +0 -274
  197. data/lib/stripe/services/checkout/session_line_item_service.rb +0 -3
  198. data/lib/stripe/services/checkout/session_service.rb +2 -273
  199. data/lib/stripe/services/climate/order_service.rb +0 -11
  200. data/lib/stripe/services/climate/product_service.rb +0 -3
  201. data/lib/stripe/services/climate/supplier_service.rb +0 -3
  202. data/lib/stripe/services/country_spec_service.rb +0 -3
  203. data/lib/stripe/services/coupon_service.rb +0 -22
  204. data/lib/stripe/services/credit_note_line_item_service.rb +0 -3
  205. data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -28
  206. data/lib/stripe/services/credit_note_service.rb +0 -61
  207. data/lib/stripe/services/customer_balance_transaction_service.rb +0 -9
  208. data/lib/stripe/services/customer_cash_balance_service.rb +0 -1
  209. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +0 -3
  210. data/lib/stripe/services/customer_funding_instructions_service.rb +0 -5
  211. data/lib/stripe/services/customer_payment_method_service.rb +0 -5
  212. data/lib/stripe/services/customer_payment_source_service.rb +0 -29
  213. data/lib/stripe/services/customer_service.rb +1 -92
  214. data/lib/stripe/services/customer_session_service.rb +0 -10
  215. data/lib/stripe/services/customer_tax_id_service.rb +1 -6
  216. data/lib/stripe/services/dispute_service.rb +2 -67
  217. data/lib/stripe/services/entitlements/active_entitlement_service.rb +0 -4
  218. data/lib/stripe/services/entitlements/feature_service.rb +0 -11
  219. data/lib/stripe/services/ephemeral_key_service.rb +0 -4
  220. data/lib/stripe/services/event_service.rb +0 -10
  221. data/lib/stripe/services/exchange_rate_service.rb +0 -3
  222. data/lib/stripe/services/file_link_service.rb +0 -14
  223. data/lib/stripe/services/file_service.rb +0 -13
  224. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -3
  225. data/lib/stripe/services/financial_connections/account_owner_service.rb +0 -4
  226. data/lib/stripe/services/financial_connections/account_service.rb +0 -9
  227. data/lib/stripe/services/financial_connections/institution_service.rb +0 -3
  228. data/lib/stripe/services/financial_connections/session_service.rb +0 -11
  229. data/lib/stripe/services/financial_connections/transaction_service.rb +0 -9
  230. data/lib/stripe/services/forwarding/request_service.rb +0 -14
  231. data/lib/stripe/services/gift_cards/card_service.rb +0 -13
  232. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -16
  233. data/lib/stripe/services/identity/verification_report_service.rb +0 -10
  234. data/lib/stripe/services/identity/verification_session_service.rb +0 -30
  235. data/lib/stripe/services/invoice_item_service.rb +0 -66
  236. data/lib/stripe/services/invoice_line_item_service.rb +0 -40
  237. data/lib/stripe/services/invoice_payment_service.rb +0 -3
  238. data/lib/stripe/services/invoice_rendering_template_service.rb +0 -5
  239. data/lib/stripe/services/invoice_service.rb +2 -810
  240. data/lib/stripe/services/invoice_upcoming_lines_service.rb +1 -279
  241. data/lib/stripe/services/issuing/authorization_service.rb +0 -14
  242. data/lib/stripe/services/issuing/card_service.rb +0 -70
  243. data/lib/stripe/services/issuing/cardholder_service.rb +0 -73
  244. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -56
  245. data/lib/stripe/services/issuing/dispute_service.rb +0 -98
  246. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -4
  247. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -7
  248. data/lib/stripe/services/issuing/personalization_design_service.rb +0 -29
  249. data/lib/stripe/services/issuing/physical_bundle_service.rb +0 -5
  250. data/lib/stripe/services/issuing/token_service.rb +0 -10
  251. data/lib/stripe/services/issuing/transaction_service.rb +0 -12
  252. data/lib/stripe/services/margin_service.rb +0 -11
  253. data/lib/stripe/services/order_line_item_service.rb +0 -3
  254. data/lib/stripe/services/order_service.rb +2 -266
  255. data/lib/stripe/services/payment_attempt_record_service.rb +0 -1
  256. data/lib/stripe/services/payment_intent_service.rb +0 -1309
  257. data/lib/stripe/services/payment_link_line_item_service.rb +0 -3
  258. data/lib/stripe/services/payment_link_service.rb +15 -135
  259. data/lib/stripe/services/payment_method_configuration_service.rb +0 -102
  260. data/lib/stripe/services/payment_method_domain_service.rb +0 -8
  261. data/lib/stripe/services/payment_method_service.rb +0 -113
  262. data/lib/stripe/services/payment_record_service.rb +0 -68
  263. data/lib/stripe/services/payout_service.rb +0 -23
  264. data/lib/stripe/services/plan_service.rb +0 -43
  265. data/lib/stripe/services/price_service.rb +0 -87
  266. data/lib/stripe/services/product_feature_service.rb +0 -4
  267. data/lib/stripe/services/product_service.rb +0 -74
  268. data/lib/stripe/services/promotion_code_service.rb +0 -25
  269. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +0 -3
  270. data/lib/stripe/services/quote_line_item_service.rb +0 -3
  271. data/lib/stripe/services/quote_line_service.rb +0 -3
  272. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -3
  273. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -3
  274. data/lib/stripe/services/quote_service.rb +0 -309
  275. data/lib/stripe/services/radar/early_fraud_warning_service.rb +0 -9
  276. data/lib/stripe/services/radar/value_list_item_service.rb +0 -11
  277. data/lib/stripe/services/radar/value_list_service.rb +0 -16
  278. data/lib/stripe/services/refund_service.rb +0 -21
  279. data/lib/stripe/services/reporting/report_run_service.rb +0 -16
  280. data/lib/stripe/services/review_service.rb +0 -7
  281. data/lib/stripe/services/setup_attempt_service.rb +0 -8
  282. data/lib/stripe/services/setup_intent_service.rb +0 -447
  283. data/lib/stripe/services/shipping_rate_service.rb +0 -27
  284. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +0 -3
  285. data/lib/stripe/services/source_service.rb +0 -92
  286. data/lib/stripe/services/source_transaction_service.rb +0 -3
  287. data/lib/stripe/services/subscription_item_service.rb +0 -56
  288. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -3
  289. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -3
  290. data/lib/stripe/services/subscription_schedule_service.rb +0 -290
  291. data/lib/stripe/services/subscription_service.rb +0 -245
  292. data/lib/stripe/services/tax/association_service.rb +0 -1
  293. data/lib/stripe/services/tax/calculation_line_item_service.rb +0 -3
  294. data/lib/stripe/services/tax/calculation_service.rb +1 -31
  295. data/lib/stripe/services/tax/form_service.rb +0 -7
  296. data/lib/stripe/services/tax/registration_service.rb +274 -108
  297. data/lib/stripe/services/tax/settings_service.rb +0 -8
  298. data/lib/stripe/services/tax/transaction_line_item_service.rb +0 -3
  299. data/lib/stripe/services/tax/transaction_service.rb +0 -17
  300. data/lib/stripe/services/tax_code_service.rb +0 -3
  301. data/lib/stripe/services/tax_id_service.rb +1 -12
  302. data/lib/stripe/services/tax_rate_service.rb +0 -27
  303. data/lib/stripe/services/terminal/configuration_service.rb +0 -108
  304. data/lib/stripe/services/terminal/connection_token_service.rb +0 -1
  305. data/lib/stripe/services/terminal/location_service.rb +0 -21
  306. data/lib/stripe/services/terminal/reader_service.rb +0 -53
  307. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -89
  308. data/lib/stripe/services/test_helpers/customer_service.rb +0 -3
  309. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +0 -99
  310. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +0 -2
  311. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +0 -91
  312. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -4
  313. data/lib/stripe/services/test_helpers/test_clock_service.rb +0 -6
  314. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +0 -1
  315. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +0 -6
  316. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +0 -6
  317. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +0 -11
  318. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -11
  319. data/lib/stripe/services/token_service.rb +4 -184
  320. data/lib/stripe/services/topup_service.rb +0 -21
  321. data/lib/stripe/services/transfer_reversal_service.rb +0 -8
  322. data/lib/stripe/services/transfer_service.rb +0 -19
  323. data/lib/stripe/services/treasury/credit_reversal_service.rb +0 -8
  324. data/lib/stripe/services/treasury/debit_reversal_service.rb +0 -9
  325. data/lib/stripe/services/treasury/financial_account_features_service.rb +0 -10
  326. data/lib/stripe/services/treasury/financial_account_service.rb +64 -36
  327. data/lib/stripe/services/treasury/inbound_transfer_service.rb +0 -12
  328. data/lib/stripe/services/treasury/outbound_payment_service.rb +0 -38
  329. data/lib/stripe/services/treasury/outbound_transfer_service.rb +16 -15
  330. data/lib/stripe/services/treasury/received_credit_service.rb +0 -6
  331. data/lib/stripe/services/treasury/received_debit_service.rb +0 -5
  332. data/lib/stripe/services/treasury/transaction_entry_service.rb +0 -14
  333. data/lib/stripe/services/treasury/transaction_service.rb +0 -14
  334. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +0 -2
  335. data/lib/stripe/services/v2/billing/meter_event_service.rb +0 -3
  336. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +0 -3
  337. data/lib/stripe/services/v2/core/event_destination_service.rb +0 -18
  338. data/lib/stripe/services/v2/core/event_service.rb +0 -2
  339. data/lib/stripe/services/webhook_endpoint_service.rb +0 -14
  340. data/lib/stripe/stripe_client.rb +1 -1
  341. data/lib/stripe/stripe_object.rb +3 -3
  342. data/lib/stripe/util.rb +1 -1
  343. data/lib/stripe/version.rb +1 -1
  344. data/rbi/stripe/resources/account.rbi +29 -1001
  345. data/rbi/stripe/resources/account_link.rbi +0 -13
  346. data/rbi/stripe/resources/account_notice.rbi +0 -27
  347. data/rbi/stripe/resources/account_session.rbi +0 -166
  348. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -14
  349. data/rbi/stripe/resources/application.rbi +0 -3
  350. data/rbi/stripe/resources/application_fee.rbi +0 -28
  351. data/rbi/stripe/resources/application_fee_refund.rbi +0 -7
  352. data/rbi/stripe/resources/apps/secret.rbi +0 -34
  353. data/rbi/stripe/resources/balance.rbi +0 -33
  354. data/rbi/stripe/resources/balance_transaction.rbi +0 -33
  355. data/rbi/stripe/resources/bank_account.rbi +0 -29
  356. data/rbi/stripe/resources/billing/alert.rbi +0 -31
  357. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -5
  358. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -16
  359. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -27
  360. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -43
  361. data/rbi/stripe/resources/billing/meter.rbi +0 -35
  362. data/rbi/stripe/resources/billing/meter_error_report.rbi +0 -11
  363. data/rbi/stripe/resources/billing/meter_event.rbi +0 -12
  364. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -11
  365. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -6
  366. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -106
  367. data/rbi/stripe/resources/billing_portal/session.rbi +0 -55
  368. data/rbi/stripe/resources/capability.rbi +2 -29
  369. data/rbi/stripe/resources/capital/financing_offer.rbi +0 -38
  370. data/rbi/stripe/resources/capital/financing_summary.rbi +0 -15
  371. data/rbi/stripe/resources/capital/financing_transaction.rbi +0 -27
  372. data/rbi/stripe/resources/card.rbi +3 -34
  373. data/rbi/stripe/resources/cash_balance.rbi +0 -5
  374. data/rbi/stripe/resources/charge.rbi +6 -738
  375. data/rbi/stripe/resources/checkout/session.rbi +4 -636
  376. data/rbi/stripe/resources/climate/order.rbi +0 -48
  377. data/rbi/stripe/resources/climate/product.rbi +0 -16
  378. data/rbi/stripe/resources/climate/supplier.rbi +0 -16
  379. data/rbi/stripe/resources/confirmation_token.rbi +3 -364
  380. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -5
  381. data/rbi/stripe/resources/country_spec.rbi +0 -16
  382. data/rbi/stripe/resources/coupon.rbi +0 -48
  383. data/rbi/stripe/resources/credit_note.rbi +0 -159
  384. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -24
  385. data/rbi/stripe/resources/customer.rbi +1 -188
  386. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -12
  387. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -27
  388. data/rbi/stripe/resources/customer_session.rbi +0 -31
  389. data/rbi/stripe/resources/discount.rbi +0 -12
  390. data/rbi/stripe/resources/dispute.rbi +4 -166
  391. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -11
  392. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -3
  393. data/rbi/stripe/resources/entitlements/feature.rbi +0 -22
  394. data/rbi/stripe/resources/ephemeral_key.rbi +0 -7
  395. data/rbi/stripe/resources/event.rbi +0 -31
  396. data/rbi/stripe/resources/exchange_rate.rbi +0 -8
  397. data/rbi/stripe/resources/file.rbi +0 -29
  398. data/rbi/stripe/resources/file_link.rbi +0 -28
  399. data/rbi/stripe/resources/financial_connections/account.rbi +0 -56
  400. data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +0 -3
  401. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -7
  402. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -3
  403. data/rbi/stripe/resources/financial_connections/institution.rbi +0 -16
  404. data/rbi/stripe/resources/financial_connections/session.rbi +0 -35
  405. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -26
  406. data/rbi/stripe/resources/forwarding/request.rbi +0 -38
  407. data/rbi/stripe/resources/funding_instructions.rbi +0 -107
  408. data/rbi/stripe/resources/gift_cards/card.rbi +0 -36
  409. data/rbi/stripe/resources/gift_cards/transaction.rbi +0 -41
  410. data/rbi/stripe/resources/identity/verification_report.rbi +0 -73
  411. data/rbi/stripe/resources/identity/verification_session.rbi +0 -83
  412. data/rbi/stripe/resources/invoice.rbi +7 -1663
  413. data/rbi/stripe/resources/invoice_item.rbi +0 -107
  414. data/rbi/stripe/resources/invoice_line_item.rbi +0 -86
  415. data/rbi/stripe/resources/invoice_payment.rbi +0 -16
  416. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -17
  417. data/rbi/stripe/resources/issuing/authorization.rbi +0 -245
  418. data/rbi/stripe/resources/issuing/card.rbi +0 -153
  419. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -138
  420. data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +0 -109
  421. data/rbi/stripe/resources/issuing/dispute.rbi +0 -177
  422. data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +0 -17
  423. data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +0 -18
  424. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -62
  425. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -16
  426. data/rbi/stripe/resources/issuing/settlement.rbi +0 -16
  427. data/rbi/stripe/resources/issuing/token.rbi +0 -51
  428. data/rbi/stripe/resources/issuing/transaction.rbi +0 -205
  429. data/rbi/stripe/resources/line_item.rbi +0 -23
  430. data/rbi/stripe/resources/login_link.rbi +0 -2
  431. data/rbi/stripe/resources/mandate.rbi +0 -47
  432. data/rbi/stripe/resources/margin.rbi +0 -24
  433. data/rbi/stripe/resources/order.rbi +3 -492
  434. data/rbi/stripe/resources/payment_attempt_record.rbi +0 -45
  435. data/rbi/stripe/resources/payment_intent.rbi +3 -2224
  436. data/rbi/stripe/resources/payment_link.rbi +14 -291
  437. data/rbi/stripe/resources/payment_method.rbi +3 -382
  438. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -486
  439. data/rbi/stripe/resources/payment_method_domain.rbi +0 -29
  440. data/rbi/stripe/resources/payment_record.rbi +0 -134
  441. data/rbi/stripe/resources/payout.rbi +0 -58
  442. data/rbi/stripe/resources/person.rbi +2 -92
  443. data/rbi/stripe/resources/plan.rbi +0 -78
  444. data/rbi/stripe/resources/price.rbi +0 -153
  445. data/rbi/stripe/resources/product.rbi +0 -120
  446. data/rbi/stripe/resources/product_feature.rbi +0 -4
  447. data/rbi/stripe/resources/promotion_code.rbi +0 -50
  448. data/rbi/stripe/resources/quote.rbi +0 -593
  449. data/rbi/stripe/resources/quote_line.rbi +0 -66
  450. data/rbi/stripe/resources/quote_preview_invoice.rbi +4 -184
  451. data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +0 -101
  452. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -20
  453. data/rbi/stripe/resources/radar/value_list.rbi +0 -32
  454. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -23
  455. data/rbi/stripe/resources/refund.rbi +0 -100
  456. data/rbi/stripe/resources/reporting/report_run.rbi +0 -38
  457. data/rbi/stripe/resources/reporting/report_type.rbi +0 -11
  458. data/rbi/stripe/resources/reserve_transaction.rbi +0 -4
  459. data/rbi/stripe/resources/reversal.rbi +0 -9
  460. data/rbi/stripe/resources/review.rbi +0 -32
  461. data/rbi/stripe/resources/setup_attempt.rbi +3 -106
  462. data/rbi/stripe/resources/setup_intent.rbi +3 -688
  463. data/rbi/stripe/resources/shipping_rate.rbi +0 -57
  464. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -16
  465. data/rbi/stripe/resources/source.rbi +9 -365
  466. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -13
  467. data/rbi/stripe/resources/source_transaction.rbi +0 -29
  468. data/rbi/stripe/resources/subscription.rbi +0 -431
  469. data/rbi/stripe/resources/subscription_item.rbi +0 -88
  470. data/rbi/stripe/resources/subscription_schedule.rbi +0 -504
  471. data/rbi/stripe/resources/tax/association.rbi +0 -13
  472. data/rbi/stripe/resources/tax/calculation.rbi +2 -100
  473. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -20
  474. data/rbi/stripe/resources/tax/form.rbi +2 -40
  475. data/rbi/stripe/resources/tax/registration.rbi +401 -317
  476. data/rbi/stripe/resources/tax/settings.rbi +0 -26
  477. data/rbi/stripe/resources/tax/transaction.rbi +1 -73
  478. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -12
  479. data/rbi/stripe/resources/tax_code.rbi +0 -9
  480. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -4
  481. data/rbi/stripe/resources/tax_id.rbi +2 -34
  482. data/rbi/stripe/resources/tax_rate.rbi +0 -51
  483. data/rbi/stripe/resources/terminal/configuration.rbi +0 -211
  484. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -5
  485. data/rbi/stripe/resources/terminal/location.rbi +0 -40
  486. data/rbi/stripe/resources/terminal/reader.rbi +0 -158
  487. data/rbi/stripe/resources/terminal/reader_collected_data.rbi +0 -7
  488. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -20
  489. data/rbi/stripe/resources/token.rbi +5 -235
  490. data/rbi/stripe/resources/topup.rbi +0 -44
  491. data/rbi/stripe/resources/transfer.rbi +0 -41
  492. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -25
  493. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -27
  494. data/rbi/stripe/resources/treasury/financial_account.rbi +70 -124
  495. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -46
  496. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -59
  497. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -113
  498. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +28 -84
  499. data/rbi/stripe/resources/treasury/received_credit.rbi +7 -67
  500. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -62
  501. data/rbi/stripe/resources/treasury/transaction.rbi +0 -45
  502. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -41
  503. data/rbi/stripe/resources/usage_record.rbi +0 -5
  504. data/rbi/stripe/resources/usage_record_summary.rbi +0 -7
  505. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -6
  506. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -7
  507. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -5
  508. data/rbi/stripe/resources/v2/event.rbi +0 -8
  509. data/rbi/stripe/resources/v2/event_destination.rbi +0 -19
  510. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -31
  511. data/rbi/stripe/services/account_capability_service.rbi +0 -4
  512. data/rbi/stripe/services/account_external_account_service.rbi +0 -52
  513. data/rbi/stripe/services/account_link_service.rbi +0 -9
  514. data/rbi/stripe/services/account_login_link_service.rbi +0 -1
  515. data/rbi/stripe/services/account_notice_service.rbi +0 -13
  516. data/rbi/stripe/services/account_person_service.rbi +0 -174
  517. data/rbi/stripe/services/account_service.rbi +10 -773
  518. data/rbi/stripe/services/account_session_service.rbi +0 -116
  519. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -8
  520. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -10
  521. data/rbi/stripe/services/application_fee_service.rbi +0 -11
  522. data/rbi/stripe/services/apps/secret_service.rbi +0 -24
  523. data/rbi/stripe/services/balance_service.rbi +0 -1
  524. data/rbi/stripe/services/balance_transaction_service.rbi +0 -14
  525. data/rbi/stripe/services/billing/alert_service.rbi +0 -20
  526. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -7
  527. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -7
  528. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -26
  529. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -5
  530. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -5
  531. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -8
  532. data/rbi/stripe/services/billing/meter_service.rbi +0 -21
  533. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -76
  534. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -31
  535. data/rbi/stripe/services/capital/financing_offer_service.rbi +0 -13
  536. data/rbi/stripe/services/capital/financing_summary_service.rbi +0 -1
  537. data/rbi/stripe/services/capital/financing_transaction_service.rbi +0 -9
  538. data/rbi/stripe/services/charge_service.rbi +0 -346
  539. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -4
  540. data/rbi/stripe/services/checkout/session_service.rbi +2 -395
  541. data/rbi/stripe/services/climate/order_service.rbi +0 -18
  542. data/rbi/stripe/services/climate/product_service.rbi +0 -5
  543. data/rbi/stripe/services/climate/supplier_service.rbi +0 -5
  544. data/rbi/stripe/services/confirmation_token_service.rbi +0 -1
  545. data/rbi/stripe/services/country_spec_service.rbi +0 -5
  546. data/rbi/stripe/services/coupon_service.rbi +0 -30
  547. data/rbi/stripe/services/credit_note_line_item_service.rbi +0 -4
  548. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -33
  549. data/rbi/stripe/services/credit_note_service.rbi +0 -76
  550. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -13
  551. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -4
  552. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -5
  553. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -8
  554. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -7
  555. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -37
  556. data/rbi/stripe/services/customer_service.rbi +1 -117
  557. data/rbi/stripe/services/customer_session_service.rbi +0 -16
  558. data/rbi/stripe/services/customer_tax_id_service.rbi +1 -9
  559. data/rbi/stripe/services/dispute_service.rbi +2 -80
  560. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -6
  561. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -15
  562. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -6
  563. data/rbi/stripe/services/event_service.rbi +0 -13
  564. data/rbi/stripe/services/exchange_rate_service.rbi +0 -5
  565. data/rbi/stripe/services/file_link_service.rbi +0 -19
  566. data/rbi/stripe/services/file_service.rbi +0 -18
  567. data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +0 -4
  568. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -5
  569. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -16
  570. data/rbi/stripe/services/financial_connections/institution_service.rbi +0 -5
  571. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -17
  572. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -13
  573. data/rbi/stripe/services/forwarding/request_service.rbi +0 -20
  574. data/rbi/stripe/services/gift_cards/card_service.rbi +0 -20
  575. data/rbi/stripe/services/gift_cards/transaction_service.rbi +0 -24
  576. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -13
  577. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -43
  578. data/rbi/stripe/services/invoice_item_service.rbi +0 -81
  579. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -50
  580. data/rbi/stripe/services/invoice_payment_service.rbi +0 -5
  581. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -9
  582. data/rbi/stripe/services/invoice_service.rbi +2 -1100
  583. data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +1 -375
  584. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -20
  585. data/rbi/stripe/services/issuing/card_service.rbi +0 -89
  586. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -100
  587. data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +0 -82
  588. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -123
  589. data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +0 -6
  590. data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +0 -10
  591. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -38
  592. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -7
  593. data/rbi/stripe/services/issuing/token_service.rbi +0 -14
  594. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -16
  595. data/rbi/stripe/services/mandate_service.rbi +0 -1
  596. data/rbi/stripe/services/margin_service.rbi +0 -15
  597. data/rbi/stripe/services/order_line_item_service.rbi +0 -4
  598. data/rbi/stripe/services/order_service.rbi +2 -365
  599. data/rbi/stripe/services/payment_attempt_record_service.rbi +0 -3
  600. data/rbi/stripe/services/payment_intent_service.rbi +0 -1764
  601. data/rbi/stripe/services/payment_link_line_item_service.rbi +0 -4
  602. data/rbi/stripe/services/payment_link_service.rbi +14 -211
  603. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -294
  604. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -13
  605. data/rbi/stripe/services/payment_method_service.rbi +0 -149
  606. data/rbi/stripe/services/payment_record_service.rbi +0 -92
  607. data/rbi/stripe/services/payout_service.rbi +0 -31
  608. data/rbi/stripe/services/plan_service.rbi +0 -51
  609. data/rbi/stripe/services/price_service.rbi +0 -106
  610. data/rbi/stripe/services/product_feature_service.rbi +0 -7
  611. data/rbi/stripe/services/product_service.rbi +0 -93
  612. data/rbi/stripe/services/promotion_code_service.rbi +0 -34
  613. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -4
  614. data/rbi/stripe/services/quote_line_item_service.rbi +0 -4
  615. data/rbi/stripe/services/quote_line_service.rbi +0 -4
  616. data/rbi/stripe/services/quote_preview_invoice_service.rbi +0 -4
  617. data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +0 -4
  618. data/rbi/stripe/services/quote_service.rbi +0 -440
  619. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -12
  620. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -15
  621. data/rbi/stripe/services/radar/value_list_service.rbi +0 -21
  622. data/rbi/stripe/services/refund_service.rbi +0 -27
  623. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -21
  624. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -2
  625. data/rbi/stripe/services/review_service.rbi +0 -11
  626. data/rbi/stripe/services/setup_attempt_service.rbi +0 -10
  627. data/rbi/stripe/services/setup_intent_service.rbi +0 -595
  628. data/rbi/stripe/services/shipping_rate_service.rbi +0 -39
  629. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -5
  630. data/rbi/stripe/services/source_service.rbi +0 -119
  631. data/rbi/stripe/services/source_transaction_service.rbi +0 -4
  632. data/rbi/stripe/services/subscription_item_service.rbi +0 -74
  633. data/rbi/stripe/services/subscription_item_usage_record_service.rbi +0 -4
  634. data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +0 -4
  635. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -405
  636. data/rbi/stripe/services/subscription_service.rbi +0 -337
  637. data/rbi/stripe/services/tax/association_service.rbi +0 -2
  638. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +0 -4
  639. data/rbi/stripe/services/tax/calculation_service.rbi +1 -40
  640. data/rbi/stripe/services/tax/form_service.rbi +0 -11
  641. data/rbi/stripe/services/tax/registration_service.rbi +233 -211
  642. data/rbi/stripe/services/tax/settings_service.rbi +0 -13
  643. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +0 -4
  644. data/rbi/stripe/services/tax/transaction_service.rbi +0 -22
  645. data/rbi/stripe/services/tax_code_service.rbi +0 -5
  646. data/rbi/stripe/services/tax_id_service.rbi +1 -17
  647. data/rbi/stripe/services/tax_rate_service.rbi +0 -32
  648. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -154
  649. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -2
  650. data/rbi/stripe/services/terminal/location_service.rbi +0 -27
  651. data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +0 -1
  652. data/rbi/stripe/services/terminal/reader_service.rbi +0 -78
  653. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -114
  654. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -4
  655. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -138
  656. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -5
  657. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -6
  658. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -120
  659. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -1
  660. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -7
  661. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -10
  662. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -5
  663. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -14
  664. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -14
  665. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -16
  666. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -16
  667. data/rbi/stripe/services/token_service.rbi +5 -226
  668. data/rbi/stripe/services/topup_service.rbi +0 -28
  669. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -12
  670. data/rbi/stripe/services/transfer_service.rbi +0 -24
  671. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -11
  672. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -12
  673. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -25
  674. data/rbi/stripe/services/treasury/financial_account_service.rbi +62 -73
  675. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -16
  676. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -50
  677. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +17 -24
  678. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -9
  679. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -7
  680. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -18
  681. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -19
  682. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -4
  683. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -4
  684. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -5
  685. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -25
  686. data/rbi/stripe/services/v2/core/event_service.rbi +0 -3
  687. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -18
  688. metadata +2 -2
@@ -11,7 +11,6 @@ module Stripe
11
11
  # The connected account being referenced when `type` is `account`.
12
12
  sig { returns(T.any(String, Stripe::Account)) }
13
13
  attr_reader :account
14
-
15
14
  # Type of the account referenced.
16
15
  sig { returns(String) }
17
16
  attr_reader :type
@@ -19,11 +18,9 @@ module Stripe
19
18
  # Automatically calculate taxes
20
19
  sig { returns(T::Boolean) }
21
20
  attr_reader :enabled
22
-
23
21
  # 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.
24
22
  sig { returns(T.nilable(Liability)) }
25
23
  attr_reader :liability
26
-
27
24
  # The status of the most recent automated tax calculation for this quote.
28
25
  sig { returns(T.nilable(String)) }
29
26
  attr_reader :status
@@ -34,11 +31,9 @@ module Stripe
34
31
  # The failure `code` is more granular than the `reason` provided and may correspond to a Stripe error code. For automation errors, this field is one of: `reverse_api_failure`, `reverse_api_deadline_exceeeded`, or `reverse_api_response_validation_error`, which are Stripe error codes and map to the error `message` field.
35
32
  sig { returns(T.nilable(String)) }
36
33
  attr_reader :failure_code
37
-
38
34
  # Information derived from the `failure_code` or a freeform message that explains the error as a human-readable English string. For example, "margin ID is not a valid ID".
39
35
  sig { returns(T.nilable(String)) }
40
36
  attr_reader :message
41
-
42
37
  # The reason the reestimation failed.
43
38
  sig { returns(String) }
44
39
  attr_reader :reason
@@ -46,7 +41,6 @@ module Stripe
46
41
  # When `status` is `failed`, provides details about the quote reestimation failure.
47
42
  sig { returns(T.nilable(Failed)) }
48
43
  attr_reader :failed
49
-
50
44
  # Latest status of the reestimation.
51
45
  sig { returns(String) }
52
46
  attr_reader :status
@@ -58,7 +52,6 @@ module Stripe
58
52
  # The amount discounted.
59
53
  sig { returns(Integer) }
60
54
  attr_reader :amount
61
-
62
55
  # 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).
63
56
  # It contains information about when the discount began, when it will end, and what it is applied to.
64
57
  #
@@ -70,17 +63,14 @@ module Stripe
70
63
  # Amount of tax applied for this rate.
71
64
  sig { returns(Integer) }
72
65
  attr_reader :amount
73
-
74
66
  # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
75
67
  #
76
68
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
77
69
  sig { returns(Stripe::TaxRate) }
78
70
  attr_reader :rate
79
-
80
71
  # 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.
81
72
  sig { returns(T.nilable(String)) }
82
73
  attr_reader :taxability_reason
83
-
84
74
  # The amount on which tax is calculated, in cents (or local equivalent).
85
75
  sig { returns(T.nilable(Integer)) }
86
76
  attr_reader :taxable_amount
@@ -88,7 +78,6 @@ module Stripe
88
78
  # The aggregated discounts.
89
79
  sig { returns(T::Array[Discount]) }
90
80
  attr_reader :discounts
91
-
92
81
  # The aggregated tax amounts by rate.
93
82
  sig { returns(T::Array[Tax]) }
94
83
  attr_reader :taxes
@@ -96,15 +85,12 @@ module Stripe
96
85
  # This is the sum of all the discounts.
97
86
  sig { returns(Integer) }
98
87
  attr_reader :amount_discount
99
-
100
88
  # This is the sum of all the shipping amounts.
101
89
  sig { returns(T.nilable(Integer)) }
102
90
  attr_reader :amount_shipping
103
-
104
91
  # This is the sum of all the tax amounts.
105
92
  sig { returns(Integer) }
106
93
  attr_reader :amount_tax
107
-
108
94
  # Attribute for field breakdown
109
95
  sig { returns(Breakdown) }
110
96
  attr_reader :breakdown
@@ -112,19 +98,15 @@ module Stripe
112
98
  # Total before any discounts or taxes are applied.
113
99
  sig { returns(Integer) }
114
100
  attr_reader :amount_subtotal
115
-
116
101
  # Total after discounts and taxes are applied.
117
102
  sig { returns(Integer) }
118
103
  attr_reader :amount_total
119
-
120
104
  # The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
121
105
  sig { returns(String) }
122
106
  attr_reader :interval
123
-
124
107
  # The number of intervals (specified in the `interval` attribute) between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months.
125
108
  sig { returns(Integer) }
126
109
  attr_reader :interval_count
127
-
128
110
  # Attribute for field total_details
129
111
  sig { returns(TotalDetails) }
130
112
  attr_reader :total_details
@@ -136,7 +118,6 @@ module Stripe
136
118
  # The amount discounted.
137
119
  sig { returns(Integer) }
138
120
  attr_reader :amount
139
-
140
121
  # 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).
141
122
  # It contains information about when the discount began, when it will end, and what it is applied to.
142
123
  #
@@ -148,17 +129,14 @@ module Stripe
148
129
  # Amount of tax applied for this rate.
149
130
  sig { returns(Integer) }
150
131
  attr_reader :amount
151
-
152
132
  # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
153
133
  #
154
134
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
155
135
  sig { returns(Stripe::TaxRate) }
156
136
  attr_reader :rate
157
-
158
137
  # 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.
159
138
  sig { returns(T.nilable(String)) }
160
139
  attr_reader :taxability_reason
161
-
162
140
  # The amount on which tax is calculated, in cents (or local equivalent).
163
141
  sig { returns(T.nilable(Integer)) }
164
142
  attr_reader :taxable_amount
@@ -166,7 +144,6 @@ module Stripe
166
144
  # The aggregated discounts.
167
145
  sig { returns(T::Array[Discount]) }
168
146
  attr_reader :discounts
169
-
170
147
  # The aggregated tax amounts by rate.
171
148
  sig { returns(T::Array[Tax]) }
172
149
  attr_reader :taxes
@@ -174,15 +151,12 @@ module Stripe
174
151
  # This is the sum of all the discounts.
175
152
  sig { returns(Integer) }
176
153
  attr_reader :amount_discount
177
-
178
154
  # This is the sum of all the shipping amounts.
179
155
  sig { returns(T.nilable(Integer)) }
180
156
  attr_reader :amount_shipping
181
-
182
157
  # This is the sum of all the tax amounts.
183
158
  sig { returns(Integer) }
184
159
  attr_reader :amount_tax
185
-
186
160
  # Attribute for field breakdown
187
161
  sig { returns(Breakdown) }
188
162
  attr_reader :breakdown
@@ -190,15 +164,12 @@ module Stripe
190
164
  # Total before any discounts or taxes are applied.
191
165
  sig { returns(Integer) }
192
166
  attr_reader :amount_subtotal
193
-
194
167
  # Total after discounts and taxes are applied.
195
168
  sig { returns(Integer) }
196
169
  attr_reader :amount_total
197
-
198
170
  # 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.
199
171
  sig { returns(Stripe::ListObject) }
200
172
  attr_reader :line_items
201
-
202
173
  # Attribute for field total_details
203
174
  sig { returns(TotalDetails) }
204
175
  attr_reader :total_details
@@ -206,15 +177,12 @@ module Stripe
206
177
  # Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
207
178
  sig { returns(T.nilable(LastReestimationDetails)) }
208
179
  attr_reader :last_reestimation_details
209
-
210
180
  # 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.
211
181
  sig { returns(T.nilable(Recurring)) }
212
182
  attr_reader :recurring
213
-
214
183
  # The time at which the quote's estimated schedules and upcoming invoices were generated.
215
184
  sig { returns(T.nilable(Integer)) }
216
185
  attr_reader :updated_at
217
-
218
186
  # Attribute for field upfront
219
187
  sig { returns(Upfront) }
220
188
  attr_reader :upfront
@@ -223,7 +191,6 @@ module Stripe
223
191
  # Whether this quote is a revision of a different quote.
224
192
  sig { returns(T::Boolean) }
225
193
  attr_reader :is_revision
226
-
227
194
  # The quote that was cloned.
228
195
  sig { returns(T.any(String, Stripe::Quote)) }
229
196
  attr_reader :quote
@@ -233,7 +200,6 @@ module Stripe
233
200
  # The connected account being referenced when `type` is `account`.
234
201
  sig { returns(T.any(String, Stripe::Account)) }
235
202
  attr_reader :account
236
-
237
203
  # Type of the account referenced.
238
204
  sig { returns(String) }
239
205
  attr_reader :type
@@ -241,7 +207,6 @@ module Stripe
241
207
  # 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`.
242
208
  sig { returns(T.nilable(Integer)) }
243
209
  attr_reader :days_until_due
244
-
245
210
  # Attribute for field issuer
246
211
  sig { returns(Issuer) }
247
212
  attr_reader :issuer
@@ -251,7 +216,6 @@ module Stripe
251
216
  # The reason this quote was marked as canceled.
252
217
  sig { returns(T.nilable(String)) }
253
218
  attr_reader :reason
254
-
255
219
  # Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
256
220
  sig { returns(T.nilable(Integer)) }
257
221
  attr_reader :transitioned_at
@@ -262,7 +226,6 @@ module Stripe
262
226
  # The timestamp at which the lines were marked as invalid.
263
227
  sig { returns(Integer) }
264
228
  attr_reader :invalid_at
265
-
266
229
  # The list of lines that became invalid at the given timestamp.
267
230
  sig { returns(T::Array[String]) }
268
231
  attr_reader :lines
@@ -280,39 +243,30 @@ module Stripe
280
243
  # The ID of the line that is invalid if the stale reason type is `line_invalid`.
281
244
  sig { returns(String) }
282
245
  attr_reader :line_invalid
283
-
284
246
  # The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
285
247
  sig { returns(T::Array[LinesInvalid]) }
286
248
  attr_reader :lines_invalid
287
-
288
249
  # The user supplied mark stale reason.
289
250
  sig { returns(T.nilable(String)) }
290
251
  attr_reader :marked_stale
291
-
292
252
  # The ID of the subscription that was canceled.
293
253
  sig { returns(String) }
294
254
  attr_reader :subscription_canceled
295
-
296
255
  # Attribute for field subscription_changed
297
256
  sig { returns(SubscriptionChanged) }
298
257
  attr_reader :subscription_changed
299
-
300
258
  # The ID of the subscription that was expired.
301
259
  sig { returns(String) }
302
260
  attr_reader :subscription_expired
303
-
304
261
  # The ID of the subscription schedule that was canceled.
305
262
  sig { returns(String) }
306
263
  attr_reader :subscription_schedule_canceled
307
-
308
264
  # Attribute for field subscription_schedule_changed
309
265
  sig { returns(SubscriptionScheduleChanged) }
310
266
  attr_reader :subscription_schedule_changed
311
-
312
267
  # The ID of the subscription schedule that was released.
313
268
  sig { returns(String) }
314
269
  attr_reader :subscription_schedule_released
315
-
316
270
  # The reason the quote was marked as stale.
317
271
  sig { returns(T.nilable(String)) }
318
272
  attr_reader :type
@@ -320,15 +274,12 @@ module Stripe
320
274
  # Time at which the quote expires. Measured in seconds since the Unix epoch.
321
275
  sig { returns(T.nilable(Integer)) }
322
276
  attr_reader :expires_at
323
-
324
277
  # The most recent reason this quote was marked as stale.
325
278
  sig { returns(T.nilable(LastReason)) }
326
279
  attr_reader :last_reason
327
-
328
280
  # Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
329
281
  sig { returns(T.nilable(Integer)) }
330
282
  attr_reader :last_updated_at
331
-
332
283
  # Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
333
284
  sig { returns(T.nilable(Integer)) }
334
285
  attr_reader :transitioned_at
@@ -336,7 +287,6 @@ module Stripe
336
287
  # Attribute for field canceled
337
288
  sig { returns(Canceled) }
338
289
  attr_reader :canceled
339
-
340
290
  # Attribute for field stale
341
291
  sig { returns(Stale) }
342
292
  attr_reader :stale
@@ -345,11 +295,9 @@ module Stripe
345
295
  # The time that the quote was accepted. Measured in seconds since Unix epoch.
346
296
  sig { returns(T.nilable(Integer)) }
347
297
  attr_reader :accepted_at
348
-
349
298
  # The time that the quote was canceled. Measured in seconds since Unix epoch.
350
299
  sig { returns(T.nilable(Integer)) }
351
300
  attr_reader :canceled_at
352
-
353
301
  # The time that the quote was finalized. Measured in seconds since Unix epoch.
354
302
  sig { returns(T.nilable(Integer)) }
355
303
  attr_reader :finalized_at
@@ -365,15 +313,12 @@ module Stripe
365
313
  # The materialized time.
366
314
  sig { returns(T.nilable(Integer)) }
367
315
  attr_reader :computed
368
-
369
316
  # The timestamp the given line starts at.
370
317
  sig { returns(T.nilable(LineStartsAt)) }
371
318
  attr_reader :line_starts_at
372
-
373
319
  # A precise Unix timestamp.
374
320
  sig { returns(T.nilable(Integer)) }
375
321
  attr_reader :timestamp
376
-
377
322
  # The type of method to specify the `bill_from` time.
378
323
  sig { returns(String) }
379
324
  attr_reader :type
@@ -383,7 +328,6 @@ module Stripe
383
328
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
384
329
  sig { returns(String) }
385
330
  attr_reader :interval
386
-
387
331
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
388
332
  sig { returns(Integer) }
389
333
  attr_reader :interval_count
@@ -396,19 +340,15 @@ module Stripe
396
340
  # The materialized time.
397
341
  sig { returns(T.nilable(Integer)) }
398
342
  attr_reader :computed
399
-
400
343
  # Time span for the quote line starting from the `starts_at` date.
401
344
  sig { returns(T.nilable(Duration)) }
402
345
  attr_reader :duration
403
-
404
346
  # The timestamp the given line ends at.
405
347
  sig { returns(T.nilable(LineEndsAt)) }
406
348
  attr_reader :line_ends_at
407
-
408
349
  # A precise Unix timestamp.
409
350
  sig { returns(T.nilable(Integer)) }
410
351
  attr_reader :timestamp
411
-
412
352
  # The type of method to specify the `bill_until` time.
413
353
  sig { returns(String) }
414
354
  attr_reader :type
@@ -416,7 +356,6 @@ module Stripe
416
356
  # The start of the period to bill from when the Quote is accepted.
417
357
  sig { returns(T.nilable(BillFrom)) }
418
358
  attr_reader :bill_from
419
-
420
359
  # The end of the period to bill until when the Quote is accepted.
421
360
  sig { returns(T.nilable(BillUntil)) }
422
361
  attr_reader :bill_until
@@ -429,43 +368,33 @@ module Stripe
429
368
  # Describes the period to bill for upon accepting the quote.
430
369
  sig { returns(T.nilable(BillOnAcceptance)) }
431
370
  attr_reader :bill_on_acceptance
432
-
433
371
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
434
372
  sig { returns(String) }
435
373
  attr_reader :billing_behavior
436
-
437
374
  # Whether the subscription will always start a new billing period when the quote is accepted.
438
375
  sig { returns(T.nilable(String)) }
439
376
  attr_reader :billing_cycle_anchor
440
-
441
377
  # 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.
442
378
  sig { returns(T.nilable(String)) }
443
379
  attr_reader :description
444
-
445
380
  # 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.
446
381
  sig { returns(T.nilable(Integer)) }
447
382
  attr_reader :effective_date
448
-
449
383
  # Behavior of the subscription schedule and underlying subscription when it ends.
450
384
  sig { returns(T.nilable(String)) }
451
385
  attr_reader :end_behavior
452
-
453
386
  # The id of the subscription that will be updated when the quote is accepted.
454
387
  sig { returns(T.nilable(T.any(String, Stripe::Subscription))) }
455
388
  attr_reader :from_subscription
456
-
457
389
  # 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.
458
390
  sig { returns(T.nilable(T::Hash[String, String])) }
459
391
  attr_reader :metadata
460
-
461
392
  # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
462
393
  sig { returns(T.nilable(Prebilling)) }
463
394
  attr_reader :prebilling
464
-
465
395
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
466
396
  sig { returns(String) }
467
397
  attr_reader :proration_behavior
468
-
469
398
  # Integer representing the number of trial period days before the customer is charged for the first time.
470
399
  sig { returns(T.nilable(Integer)) }
471
400
  attr_reader :trial_period_days
@@ -475,11 +404,9 @@ module Stripe
475
404
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
476
405
  sig { returns(T.nilable(String)) }
477
406
  attr_reader :new_reference
478
-
479
407
  # The ID of the schedule the line applies to.
480
408
  sig { returns(T.nilable(String)) }
481
409
  attr_reader :subscription_schedule
482
-
483
410
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
484
411
  sig { returns(String) }
485
412
  attr_reader :type
@@ -494,15 +421,12 @@ module Stripe
494
421
  # The materialized time.
495
422
  sig { returns(T.nilable(Integer)) }
496
423
  attr_reader :computed
497
-
498
424
  # The timestamp the given line starts at.
499
425
  sig { returns(T.nilable(LineStartsAt)) }
500
426
  attr_reader :line_starts_at
501
-
502
427
  # A precise Unix timestamp.
503
428
  sig { returns(T.nilable(Integer)) }
504
429
  attr_reader :timestamp
505
-
506
430
  # The type of method to specify the `bill_from` time.
507
431
  sig { returns(String) }
508
432
  attr_reader :type
@@ -512,7 +436,6 @@ module Stripe
512
436
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
513
437
  sig { returns(String) }
514
438
  attr_reader :interval
515
-
516
439
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
517
440
  sig { returns(Integer) }
518
441
  attr_reader :interval_count
@@ -525,19 +448,15 @@ module Stripe
525
448
  # The materialized time.
526
449
  sig { returns(T.nilable(Integer)) }
527
450
  attr_reader :computed
528
-
529
451
  # Time span for the quote line starting from the `starts_at` date.
530
452
  sig { returns(T.nilable(Duration)) }
531
453
  attr_reader :duration
532
-
533
454
  # The timestamp the given line ends at.
534
455
  sig { returns(T.nilable(LineEndsAt)) }
535
456
  attr_reader :line_ends_at
536
-
537
457
  # A precise Unix timestamp.
538
458
  sig { returns(T.nilable(Integer)) }
539
459
  attr_reader :timestamp
540
-
541
460
  # The type of method to specify the `bill_until` time.
542
461
  sig { returns(String) }
543
462
  attr_reader :type
@@ -545,7 +464,6 @@ module Stripe
545
464
  # The start of the period to bill from when the Quote is accepted.
546
465
  sig { returns(T.nilable(BillFrom)) }
547
466
  attr_reader :bill_from
548
-
549
467
  # The end of the period to bill until when the Quote is accepted.
550
468
  sig { returns(T.nilable(BillUntil)) }
551
469
  attr_reader :bill_until
@@ -553,27 +471,21 @@ module Stripe
553
471
  # Attribute for field applies_to
554
472
  sig { returns(AppliesTo) }
555
473
  attr_reader :applies_to
556
-
557
474
  # Describes the period to bill for upon accepting the quote.
558
475
  sig { returns(T.nilable(BillOnAcceptance)) }
559
476
  attr_reader :bill_on_acceptance
560
-
561
477
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
562
478
  sig { returns(String) }
563
479
  attr_reader :billing_behavior
564
-
565
480
  # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
566
481
  sig { returns(T.nilable(String)) }
567
482
  attr_reader :customer
568
-
569
483
  # 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.
570
484
  sig { returns(T.nilable(String)) }
571
485
  attr_reader :description
572
-
573
486
  # Behavior of the subscription schedule and underlying subscription when it ends.
574
487
  sig { returns(T.nilable(String)) }
575
488
  attr_reader :end_behavior
576
-
577
489
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
578
490
  sig { returns(T.nilable(String)) }
579
491
  attr_reader :proration_behavior
@@ -583,11 +495,9 @@ module Stripe
583
495
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
584
496
  sig { returns(T.nilable(String)) }
585
497
  attr_reader :new_reference
586
-
587
498
  # The ID of the schedule the line applies to.
588
499
  sig { returns(T.nilable(String)) }
589
500
  attr_reader :subscription_schedule
590
-
591
501
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
592
502
  sig { returns(String) }
593
503
  attr_reader :type
@@ -595,7 +505,6 @@ module Stripe
595
505
  # Attribute for field applies_to
596
506
  sig { returns(AppliesTo) }
597
507
  attr_reader :applies_to
598
-
599
508
  # The subscription schedule that was created or updated from this quote.
600
509
  sig { returns(String) }
601
510
  attr_reader :subscription_schedule
@@ -606,7 +515,6 @@ module Stripe
606
515
  # The amount discounted.
607
516
  sig { returns(Integer) }
608
517
  attr_reader :amount
609
-
610
518
  # 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).
611
519
  # It contains information about when the discount began, when it will end, and what it is applied to.
612
520
  #
@@ -618,17 +526,14 @@ module Stripe
618
526
  # Amount of tax applied for this rate.
619
527
  sig { returns(Integer) }
620
528
  attr_reader :amount
621
-
622
529
  # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
623
530
  #
624
531
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
625
532
  sig { returns(Stripe::TaxRate) }
626
533
  attr_reader :rate
627
-
628
534
  # 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.
629
535
  sig { returns(T.nilable(String)) }
630
536
  attr_reader :taxability_reason
631
-
632
537
  # The amount on which tax is calculated, in cents (or local equivalent).
633
538
  sig { returns(T.nilable(Integer)) }
634
539
  attr_reader :taxable_amount
@@ -636,7 +541,6 @@ module Stripe
636
541
  # The aggregated discounts.
637
542
  sig { returns(T::Array[Discount]) }
638
543
  attr_reader :discounts
639
-
640
544
  # The aggregated tax amounts by rate.
641
545
  sig { returns(T::Array[Tax]) }
642
546
  attr_reader :taxes
@@ -644,15 +548,12 @@ module Stripe
644
548
  # This is the sum of all the discounts.
645
549
  sig { returns(Integer) }
646
550
  attr_reader :amount_discount
647
-
648
551
  # This is the sum of all the shipping amounts.
649
552
  sig { returns(T.nilable(Integer)) }
650
553
  attr_reader :amount_shipping
651
-
652
554
  # This is the sum of all the tax amounts.
653
555
  sig { returns(Integer) }
654
556
  attr_reader :amount_tax
655
-
656
557
  # Attribute for field breakdown
657
558
  sig { returns(Breakdown) }
658
559
  attr_reader :breakdown
@@ -661,11 +562,9 @@ module Stripe
661
562
  # 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.
662
563
  sig { returns(T.nilable(Integer)) }
663
564
  attr_reader :amount
664
-
665
565
  # 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.
666
566
  sig { returns(T.nilable(Float)) }
667
567
  attr_reader :amount_percent
668
-
669
568
  # The account where funds from the payment will be transferred to upon payment success.
670
569
  sig { returns(T.any(String, Stripe::Account)) }
671
570
  attr_reader :destination
@@ -673,196 +572,148 @@ module Stripe
673
572
  # Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
674
573
  sig { returns(T.nilable(T::Boolean)) }
675
574
  attr_reader :allow_backdated_lines
676
-
677
575
  # Total before any discounts or taxes are applied.
678
576
  sig { returns(Integer) }
679
577
  attr_reader :amount_subtotal
680
-
681
578
  # Total after discounts and taxes are applied.
682
579
  sig { returns(Integer) }
683
580
  attr_reader :amount_total
684
-
685
581
  # ID of the Connect Application that created the quote.
686
582
  sig { returns(T.nilable(T.any(String, Stripe::Application))) }
687
583
  attr_reader :application
688
-
689
584
  # 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.
690
585
  sig { returns(T.nilable(Integer)) }
691
586
  attr_reader :application_fee_amount
692
-
693
587
  # 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.
694
588
  sig { returns(T.nilable(Float)) }
695
589
  attr_reader :application_fee_percent
696
-
697
590
  # Attribute for field automatic_tax
698
591
  sig { returns(AutomaticTax) }
699
592
  attr_reader :automatic_tax
700
-
701
593
  # 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`.
702
594
  sig { returns(String) }
703
595
  attr_reader :collection_method
704
-
705
596
  # Attribute for field computed
706
597
  sig { returns(Computed) }
707
598
  attr_reader :computed
708
-
709
599
  # Time at which the object was created. Measured in seconds since the Unix epoch.
710
600
  sig { returns(Integer) }
711
601
  attr_reader :created
712
-
713
602
  # 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).
714
603
  sig { returns(T.nilable(String)) }
715
604
  attr_reader :currency
716
-
717
605
  # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
718
606
  sig { returns(T.nilable(T.any(String, Stripe::Customer))) }
719
607
  attr_reader :customer
720
-
721
608
  # The tax rates applied to this quote.
722
609
  sig { returns(T::Array[T.any(String, Stripe::TaxRate)]) }
723
610
  attr_reader :default_tax_rates
724
-
725
611
  # A description that will be displayed on the quote PDF.
726
612
  sig { returns(T.nilable(String)) }
727
613
  attr_reader :description
728
-
729
614
  # The discounts applied to this quote.
730
615
  sig { returns(T::Array[T.any(String, Stripe::Discount)]) }
731
616
  attr_reader :discounts
732
-
733
617
  # The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
734
618
  sig { returns(Integer) }
735
619
  attr_reader :expires_at
736
-
737
620
  # A footer that will be displayed on the quote PDF.
738
621
  sig { returns(T.nilable(String)) }
739
622
  attr_reader :footer
740
-
741
623
  # Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.
742
624
  sig { returns(T.nilable(FromQuote)) }
743
625
  attr_reader :from_quote
744
-
745
626
  # A header that will be displayed on the quote PDF.
746
627
  sig { returns(T.nilable(String)) }
747
628
  attr_reader :header
748
-
749
629
  # Unique identifier for the object.
750
630
  sig { returns(String) }
751
631
  attr_reader :id
752
-
753
632
  # The invoice that was created from this quote.
754
633
  sig { returns(T.nilable(T.any(String, Stripe::Invoice))) }
755
634
  attr_reader :invoice
756
-
757
635
  # Attribute for field invoice_settings
758
636
  sig { returns(InvoiceSettings) }
759
637
  attr_reader :invoice_settings
760
-
761
638
  # A list of items the customer is being quoted for.
762
639
  sig { returns(Stripe::ListObject) }
763
640
  attr_reader :line_items
764
-
765
641
  # A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
766
642
  sig { returns(T.nilable(T::Array[String])) }
767
643
  attr_reader :lines
768
-
769
644
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
770
645
  sig { returns(T::Boolean) }
771
646
  attr_reader :livemode
772
-
773
647
  # 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.
774
648
  sig { returns(T::Hash[String, String]) }
775
649
  attr_reader :metadata
776
-
777
650
  # A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/docs/quotes/overview#finalize).
778
651
  sig { returns(T.nilable(String)) }
779
652
  attr_reader :number
780
-
781
653
  # String representing the object's type. Objects of the same type share the same value.
782
654
  sig { returns(String) }
783
655
  attr_reader :object
784
-
785
656
  # 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.
786
657
  sig { returns(T.nilable(T.any(String, Stripe::Account))) }
787
658
  attr_reader :on_behalf_of
788
-
789
659
  # The status of the quote.
790
660
  sig { returns(String) }
791
661
  attr_reader :status
792
-
793
662
  # Details on when and why a quote has been marked as stale or canceled.
794
663
  sig { returns(T.nilable(StatusDetails)) }
795
664
  attr_reader :status_details
796
-
797
665
  # Attribute for field status_transitions
798
666
  sig { returns(StatusTransitions) }
799
667
  attr_reader :status_transitions
800
-
801
668
  # The subscription that was created or updated from this quote.
802
669
  sig { returns(T.nilable(T.any(String, Stripe::Subscription))) }
803
670
  attr_reader :subscription
804
-
805
671
  # Attribute for field subscription_data
806
672
  sig { returns(SubscriptionData) }
807
673
  attr_reader :subscription_data
808
-
809
674
  # List representing overrides for `subscription_data` configurations for specific subscription schedules.
810
675
  sig { returns(T.nilable(T::Array[SubscriptionDataOverride])) }
811
676
  attr_reader :subscription_data_overrides
812
-
813
677
  # The subscription schedule that was created or updated from this quote.
814
678
  sig { returns(T.nilable(T.any(String, Stripe::SubscriptionSchedule))) }
815
679
  attr_reader :subscription_schedule
816
-
817
680
  # The subscription schedules that were created or updated from this quote.
818
681
  sig { returns(T.nilable(T::Array[SubscriptionSchedule])) }
819
682
  attr_reader :subscription_schedules
820
-
821
683
  # ID of the test clock this quote belongs to.
822
684
  sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) }
823
685
  attr_reader :test_clock
824
-
825
686
  # Attribute for field total_details
826
687
  sig { returns(TotalDetails) }
827
688
  attr_reader :total_details
828
-
829
689
  # 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.
830
690
  sig { returns(T.nilable(TransferData)) }
831
691
  attr_reader :transfer_data
832
-
833
692
  class ListParams < Stripe::RequestParams
834
693
  # The ID of the customer whose quotes will be retrieved.
835
694
  sig { returns(String) }
836
695
  attr_accessor :customer
837
-
838
696
  # 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.
839
697
  sig { returns(String) }
840
698
  attr_accessor :ending_before
841
-
842
699
  # Specifies which fields in the response should be expanded.
843
700
  sig { returns(T::Array[String]) }
844
701
  attr_accessor :expand
845
-
846
702
  # The subscription which the quote updates.
847
703
  sig { returns(String) }
848
704
  attr_accessor :from_subscription
849
-
850
705
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
851
706
  sig { returns(Integer) }
852
707
  attr_accessor :limit
853
-
854
708
  # 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.
855
709
  sig { returns(String) }
856
710
  attr_accessor :starting_after
857
-
858
711
  # The status of the quote.
859
712
  sig { returns(String) }
860
713
  attr_accessor :status
861
-
862
714
  # 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.
863
715
  sig { returns(String) }
864
716
  attr_accessor :test_clock
865
-
866
717
  sig {
867
718
  params(customer: String, ending_before: String, expand: T::Array[String], from_subscription: String, limit: Integer, starting_after: String, status: String, test_clock: String).void
868
719
  }
@@ -883,22 +734,18 @@ module Stripe
883
734
  # The connected account being referenced when `type` is `account`.
884
735
  sig { returns(String) }
885
736
  attr_accessor :account
886
-
887
737
  # Type of the account referenced in the request.
888
738
  sig { returns(String) }
889
739
  attr_accessor :type
890
-
891
740
  sig { params(account: String, type: String).void }
892
741
  def initialize(account: nil, type: nil); end
893
742
  end
894
743
  # Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself.
895
744
  sig { returns(T::Boolean) }
896
745
  attr_accessor :enabled
897
-
898
746
  # 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.
899
747
  sig { returns(::Stripe::Quote::CreateParams::AutomaticTax::Liability) }
900
748
  attr_accessor :liability
901
-
902
749
  sig {
903
750
  params(enabled: T::Boolean, liability: ::Stripe::Quote::CreateParams::AutomaticTax::Liability).void
904
751
  }
@@ -910,26 +757,21 @@ module Stripe
910
757
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
911
758
  sig { returns(String) }
912
759
  attr_accessor :interval
913
-
914
760
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
915
761
  sig { returns(Integer) }
916
762
  attr_accessor :interval_count
917
-
918
763
  sig { params(interval: String, interval_count: Integer).void }
919
764
  def initialize(interval: nil, interval_count: nil); end
920
765
  end
921
766
  # Time span for the redeemed discount.
922
767
  sig { returns(::Stripe::Quote::CreateParams::Discount::DiscountEnd::Duration) }
923
768
  attr_accessor :duration
924
-
925
769
  # A precise Unix timestamp for the discount to end. Must be in the future.
926
770
  sig { returns(Integer) }
927
771
  attr_accessor :timestamp
928
-
929
772
  # The type of calculation made to determine when the discount ends.
930
773
  sig { returns(String) }
931
774
  attr_accessor :type
932
-
933
775
  sig {
934
776
  params(duration: ::Stripe::Quote::CreateParams::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
935
777
  }
@@ -938,19 +780,15 @@ module Stripe
938
780
  # ID of the coupon to create a new discount for.
939
781
  sig { returns(String) }
940
782
  attr_accessor :coupon
941
-
942
783
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
943
784
  sig { returns(String) }
944
785
  attr_accessor :discount
945
-
946
786
  # Details to determine how long the discount should be applied for.
947
787
  sig { returns(::Stripe::Quote::CreateParams::Discount::DiscountEnd) }
948
788
  attr_accessor :discount_end
949
-
950
789
  # ID of the promotion code to create a new discount for.
951
790
  sig { returns(String) }
952
791
  attr_accessor :promotion_code
953
-
954
792
  sig {
955
793
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::CreateParams::Discount::DiscountEnd, promotion_code: String).void
956
794
  }
@@ -960,11 +798,9 @@ module Stripe
960
798
  # Whether this quote is a revision of the previous quote.
961
799
  sig { returns(T::Boolean) }
962
800
  attr_accessor :is_revision
963
-
964
801
  # The `id` of the quote that will be cloned.
965
802
  sig { returns(String) }
966
803
  attr_accessor :quote
967
-
968
804
  sig { params(is_revision: T::Boolean, quote: String).void }
969
805
  def initialize(is_revision: nil, quote: nil); end
970
806
  end
@@ -973,22 +809,18 @@ module Stripe
973
809
  # The connected account being referenced when `type` is `account`.
974
810
  sig { returns(String) }
975
811
  attr_accessor :account
976
-
977
812
  # Type of the account referenced in the request.
978
813
  sig { returns(String) }
979
814
  attr_accessor :type
980
-
981
815
  sig { params(account: String, type: String).void }
982
816
  def initialize(account: nil, type: nil); end
983
817
  end
984
818
  # 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`.
985
819
  sig { returns(Integer) }
986
820
  attr_accessor :days_until_due
987
-
988
821
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
989
822
  sig { returns(::Stripe::Quote::CreateParams::InvoiceSettings::Issuer) }
990
823
  attr_accessor :issuer
991
-
992
824
  sig {
993
825
  params(days_until_due: Integer, issuer: ::Stripe::Quote::CreateParams::InvoiceSettings::Issuer).void
994
826
  }
@@ -1001,30 +833,24 @@ module Stripe
1001
833
  # The type of calculation made to determine when the discount ends.
1002
834
  sig { returns(String) }
1003
835
  attr_accessor :type
1004
-
1005
836
  sig { params(type: String).void }
1006
837
  def initialize(type: nil); end
1007
838
  end
1008
839
  # The coupon code to redeem.
1009
840
  sig { returns(String) }
1010
841
  attr_accessor :coupon
1011
-
1012
842
  # An ID of an existing discount for a coupon that was already redeemed.
1013
843
  sig { returns(String) }
1014
844
  attr_accessor :discount
1015
-
1016
845
  # Details to determine how long the discount should be applied for.
1017
846
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::AddDiscount::DiscountEnd) }
1018
847
  attr_accessor :discount_end
1019
-
1020
848
  # The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
1021
849
  sig { returns(Integer) }
1022
850
  attr_accessor :index
1023
-
1024
851
  # The promotion code to redeem.
1025
852
  sig { returns(String) }
1026
853
  attr_accessor :promotion_code
1027
-
1028
854
  sig {
1029
855
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::CreateParams::Line::Action::AddDiscount::DiscountEnd, index: Integer, promotion_code: String).void
1030
856
  }
@@ -1043,11 +869,9 @@ module Stripe
1043
869
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1044
870
  sig { returns(String) }
1045
871
  attr_accessor :interval
1046
-
1047
872
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1048
873
  sig { returns(Integer) }
1049
874
  attr_accessor :interval_count
1050
-
1051
875
  sig { params(interval: String, interval_count: Integer).void }
1052
876
  def initialize(interval: nil, interval_count: nil); end
1053
877
  end
@@ -1056,15 +880,12 @@ module Stripe
1056
880
  returns(::Stripe::Quote::CreateParams::Line::Action::AddItem::Discount::DiscountEnd::Duration)
1057
881
  }
1058
882
  attr_accessor :duration
1059
-
1060
883
  # A precise Unix timestamp for the discount to end. Must be in the future.
1061
884
  sig { returns(Integer) }
1062
885
  attr_accessor :timestamp
1063
-
1064
886
  # The type of calculation made to determine when the discount ends.
1065
887
  sig { returns(String) }
1066
888
  attr_accessor :type
1067
-
1068
889
  sig {
1069
890
  params(duration: ::Stripe::Quote::CreateParams::Line::Action::AddItem::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
1070
891
  }
@@ -1073,21 +894,17 @@ module Stripe
1073
894
  # ID of the coupon to create a new discount for.
1074
895
  sig { returns(String) }
1075
896
  attr_accessor :coupon
1076
-
1077
897
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1078
898
  sig { returns(String) }
1079
899
  attr_accessor :discount
1080
-
1081
900
  # Details to determine how long the discount should be applied for.
1082
901
  sig {
1083
902
  returns(::Stripe::Quote::CreateParams::Line::Action::AddItem::Discount::DiscountEnd)
1084
903
  }
1085
904
  attr_accessor :discount_end
1086
-
1087
905
  # ID of the promotion code to create a new discount for.
1088
906
  sig { returns(String) }
1089
907
  attr_accessor :promotion_code
1090
-
1091
908
  sig {
1092
909
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::CreateParams::Line::Action::AddItem::Discount::DiscountEnd, promotion_code: String).void
1093
910
  }
@@ -1102,11 +919,9 @@ module Stripe
1102
919
  # List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
1103
920
  sig { returns(T::Array[String]) }
1104
921
  attr_accessor :converts_to
1105
-
1106
922
  # Determines the type of trial for this item.
1107
923
  sig { returns(String) }
1108
924
  attr_accessor :type
1109
-
1110
925
  sig { params(converts_to: T::Array[String], type: String).void }
1111
926
  def initialize(converts_to: nil, type: nil); end
1112
927
  end
@@ -1115,27 +930,21 @@ module Stripe
1115
930
  returns(T::Array[::Stripe::Quote::CreateParams::Line::Action::AddItem::Discount])
1116
931
  }
1117
932
  attr_accessor :discounts
1118
-
1119
933
  # 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`.
1120
934
  sig { returns(T::Hash[String, String]) }
1121
935
  attr_accessor :metadata
1122
-
1123
936
  # The ID of the price object.
1124
937
  sig { returns(String) }
1125
938
  attr_accessor :price
1126
-
1127
939
  # Quantity for this item.
1128
940
  sig { returns(Integer) }
1129
941
  attr_accessor :quantity
1130
-
1131
942
  # The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
1132
943
  sig { returns(T::Array[String]) }
1133
944
  attr_accessor :tax_rates
1134
-
1135
945
  # Options that configure the trial on the subscription item.
1136
946
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::AddItem::Trial) }
1137
947
  attr_accessor :trial
1138
-
1139
948
  sig {
1140
949
  params(discounts: T::Array[::Stripe::Quote::CreateParams::Line::Action::AddItem::Discount], metadata: T::Hash[String, String], price: String, quantity: Integer, tax_rates: T::Array[String], trial: ::Stripe::Quote::CreateParams::Line::Action::AddItem::Trial).void
1141
950
  }
@@ -1152,15 +961,12 @@ module Stripe
1152
961
  # The coupon code to remove from the `discounts` array.
1153
962
  sig { returns(String) }
1154
963
  attr_accessor :coupon
1155
-
1156
964
  # The ID of a discount to remove from the `discounts` array.
1157
965
  sig { returns(String) }
1158
966
  attr_accessor :discount
1159
-
1160
967
  # The ID of a promotion code to remove from the `discounts` array.
1161
968
  sig { returns(String) }
1162
969
  attr_accessor :promotion_code
1163
-
1164
970
  sig { params(coupon: String, discount: String, promotion_code: String).void }
1165
971
  def initialize(coupon: nil, discount: nil, promotion_code: nil); end
1166
972
  end
@@ -1168,7 +974,6 @@ module Stripe
1168
974
  # ID of a price to remove.
1169
975
  sig { returns(String) }
1170
976
  attr_accessor :price
1171
-
1172
977
  sig { params(price: String).void }
1173
978
  def initialize(price: nil); end
1174
979
  end
@@ -1176,15 +981,12 @@ module Stripe
1176
981
  # The coupon code to replace the `discounts` array with.
1177
982
  sig { returns(String) }
1178
983
  attr_accessor :coupon
1179
-
1180
984
  # An ID of an existing discount to replace the `discounts` array with.
1181
985
  sig { returns(String) }
1182
986
  attr_accessor :discount
1183
-
1184
987
  # An ID of an existing promotion code to replace the `discounts` array with.
1185
988
  sig { returns(String) }
1186
989
  attr_accessor :promotion_code
1187
-
1188
990
  sig { params(coupon: String, discount: String, promotion_code: String).void }
1189
991
  def initialize(coupon: nil, discount: nil, promotion_code: nil); end
1190
992
  end
@@ -1195,11 +997,9 @@ module Stripe
1195
997
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1196
998
  sig { returns(String) }
1197
999
  attr_accessor :interval
1198
-
1199
1000
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1200
1001
  sig { returns(Integer) }
1201
1002
  attr_accessor :interval_count
1202
-
1203
1003
  sig { params(interval: String, interval_count: Integer).void }
1204
1004
  def initialize(interval: nil, interval_count: nil); end
1205
1005
  end
@@ -1208,15 +1008,12 @@ module Stripe
1208
1008
  returns(::Stripe::Quote::CreateParams::Line::Action::SetItem::Discount::DiscountEnd::Duration)
1209
1009
  }
1210
1010
  attr_accessor :duration
1211
-
1212
1011
  # A precise Unix timestamp for the discount to end. Must be in the future.
1213
1012
  sig { returns(Integer) }
1214
1013
  attr_accessor :timestamp
1215
-
1216
1014
  # The type of calculation made to determine when the discount ends.
1217
1015
  sig { returns(String) }
1218
1016
  attr_accessor :type
1219
-
1220
1017
  sig {
1221
1018
  params(duration: ::Stripe::Quote::CreateParams::Line::Action::SetItem::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
1222
1019
  }
@@ -1225,21 +1022,17 @@ module Stripe
1225
1022
  # ID of the coupon to create a new discount for.
1226
1023
  sig { returns(String) }
1227
1024
  attr_accessor :coupon
1228
-
1229
1025
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1230
1026
  sig { returns(String) }
1231
1027
  attr_accessor :discount
1232
-
1233
1028
  # Details to determine how long the discount should be applied for.
1234
1029
  sig {
1235
1030
  returns(::Stripe::Quote::CreateParams::Line::Action::SetItem::Discount::DiscountEnd)
1236
1031
  }
1237
1032
  attr_accessor :discount_end
1238
-
1239
1033
  # ID of the promotion code to create a new discount for.
1240
1034
  sig { returns(String) }
1241
1035
  attr_accessor :promotion_code
1242
-
1243
1036
  sig {
1244
1037
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::CreateParams::Line::Action::SetItem::Discount::DiscountEnd, promotion_code: String).void
1245
1038
  }
@@ -1254,11 +1047,9 @@ module Stripe
1254
1047
  # List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
1255
1048
  sig { returns(T::Array[String]) }
1256
1049
  attr_accessor :converts_to
1257
-
1258
1050
  # Determines the type of trial for this item.
1259
1051
  sig { returns(String) }
1260
1052
  attr_accessor :type
1261
-
1262
1053
  sig { params(converts_to: T::Array[String], type: String).void }
1263
1054
  def initialize(converts_to: nil, type: nil); end
1264
1055
  end
@@ -1267,27 +1058,21 @@ module Stripe
1267
1058
  returns(T::Array[::Stripe::Quote::CreateParams::Line::Action::SetItem::Discount])
1268
1059
  }
1269
1060
  attr_accessor :discounts
1270
-
1271
1061
  # If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
1272
1062
  sig { returns(T::Hash[String, String]) }
1273
1063
  attr_accessor :metadata
1274
-
1275
1064
  # The ID of the price object.
1276
1065
  sig { returns(String) }
1277
1066
  attr_accessor :price
1278
-
1279
1067
  # If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
1280
1068
  sig { returns(Integer) }
1281
1069
  attr_accessor :quantity
1282
-
1283
1070
  # If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
1284
1071
  sig { returns(T::Array[String]) }
1285
1072
  attr_accessor :tax_rates
1286
-
1287
1073
  # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
1288
1074
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::SetItem::Trial) }
1289
1075
  attr_accessor :trial
1290
-
1291
1076
  sig {
1292
1077
  params(discounts: T::Array[::Stripe::Quote::CreateParams::Line::Action::SetItem::Discount], metadata: T::Hash[String, String], price: String, quantity: Integer, tax_rates: T::Array[String], trial: ::Stripe::Quote::CreateParams::Line::Action::SetItem::Trial).void
1293
1078
  }
@@ -1303,43 +1088,33 @@ module Stripe
1303
1088
  # Details for the `add_discount` type.
1304
1089
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::AddDiscount) }
1305
1090
  attr_accessor :add_discount
1306
-
1307
1091
  # Details for the `add_item` type.
1308
1092
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::AddItem) }
1309
1093
  attr_accessor :add_item
1310
-
1311
1094
  # Details for the `add_metadata` type: specify a hash of key-value pairs.
1312
1095
  sig { returns(T::Hash[String, String]) }
1313
1096
  attr_accessor :add_metadata
1314
-
1315
1097
  # Details for the `remove_discount` type.
1316
1098
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::RemoveDiscount) }
1317
1099
  attr_accessor :remove_discount
1318
-
1319
1100
  # Details for the `remove_item` type.
1320
1101
  sig { returns(::Stripe::Quote::CreateParams::Line::Action::RemoveItem) }
1321
1102
  attr_accessor :remove_item
1322
-
1323
1103
  # Details for the `remove_metadata` type: specify an array of metadata keys.
1324
1104
  sig { returns(T::Array[String]) }
1325
1105
  attr_accessor :remove_metadata
1326
-
1327
1106
  # Details for the `set_discounts` type.
1328
1107
  sig { returns(T::Array[::Stripe::Quote::CreateParams::Line::Action::SetDiscount]) }
1329
1108
  attr_accessor :set_discounts
1330
-
1331
1109
  # Details for the `set_items` type.
1332
1110
  sig { returns(T::Array[::Stripe::Quote::CreateParams::Line::Action::SetItem]) }
1333
1111
  attr_accessor :set_items
1334
-
1335
1112
  # Details for the `set_metadata` type: specify an array of key-value pairs.
1336
1113
  sig { returns(T.nilable(T::Hash[String, String])) }
1337
1114
  attr_accessor :set_metadata
1338
-
1339
1115
  # The type of action the quote line performs.
1340
1116
  sig { returns(String) }
1341
1117
  attr_accessor :type
1342
-
1343
1118
  sig {
1344
1119
  params(add_discount: ::Stripe::Quote::CreateParams::Line::Action::AddDiscount, add_item: ::Stripe::Quote::CreateParams::Line::Action::AddItem, add_metadata: T::Hash[String, String], remove_discount: ::Stripe::Quote::CreateParams::Line::Action::RemoveDiscount, remove_item: ::Stripe::Quote::CreateParams::Line::Action::RemoveItem, remove_metadata: T::Array[String], set_discounts: T::Array[::Stripe::Quote::CreateParams::Line::Action::SetDiscount], set_items: T::Array[::Stripe::Quote::CreateParams::Line::Action::SetItem], set_metadata: T.nilable(T::Hash[String, String]), type: String).void
1345
1120
  }
@@ -1360,15 +1135,12 @@ module Stripe
1360
1135
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
1361
1136
  sig { returns(String) }
1362
1137
  attr_accessor :new_reference
1363
-
1364
1138
  # The ID of the schedule the line applies to.
1365
1139
  sig { returns(String) }
1366
1140
  attr_accessor :subscription_schedule
1367
-
1368
1141
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
1369
1142
  sig { returns(String) }
1370
1143
  attr_accessor :type
1371
-
1372
1144
  sig { params(new_reference: String, subscription_schedule: String, type: String).void }
1373
1145
  def initialize(new_reference: nil, subscription_schedule: nil, type: nil); end
1374
1146
  end
@@ -1376,15 +1148,12 @@ module Stripe
1376
1148
  # Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
1377
1149
  sig { returns(String) }
1378
1150
  attr_accessor :cancel_at
1379
-
1380
1151
  # If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
1381
1152
  sig { returns(T::Boolean) }
1382
1153
  attr_accessor :invoice_now
1383
-
1384
1154
  # If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
1385
1155
  sig { returns(T::Boolean) }
1386
1156
  attr_accessor :prorate
1387
-
1388
1157
  sig { params(cancel_at: String, invoice_now: T::Boolean, prorate: T::Boolean).void }
1389
1158
  def initialize(cancel_at: nil, invoice_now: nil, prorate: nil); end
1390
1159
  end
@@ -1393,7 +1162,6 @@ module Stripe
1393
1162
  # The ID of a specific discount.
1394
1163
  sig { returns(String) }
1395
1164
  attr_accessor :discount
1396
-
1397
1165
  sig { params(discount: String).void }
1398
1166
  def initialize(discount: nil); end
1399
1167
  end
@@ -1401,30 +1169,24 @@ module Stripe
1401
1169
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1402
1170
  sig { returns(String) }
1403
1171
  attr_accessor :interval
1404
-
1405
1172
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1406
1173
  sig { returns(Integer) }
1407
1174
  attr_accessor :interval_count
1408
-
1409
1175
  sig { params(interval: String, interval_count: Integer).void }
1410
1176
  def initialize(interval: nil, interval_count: nil); end
1411
1177
  end
1412
1178
  # Use the `end` time of a given discount.
1413
1179
  sig { returns(::Stripe::Quote::CreateParams::Line::EndsAt::DiscountEnd) }
1414
1180
  attr_accessor :discount_end
1415
-
1416
1181
  # Time span for the quote line starting from the `starts_at` date.
1417
1182
  sig { returns(::Stripe::Quote::CreateParams::Line::EndsAt::Duration) }
1418
1183
  attr_accessor :duration
1419
-
1420
1184
  # A precise Unix timestamp.
1421
1185
  sig { returns(Integer) }
1422
1186
  attr_accessor :timestamp
1423
-
1424
1187
  # Select a way to pass in `ends_at`.
1425
1188
  sig { returns(String) }
1426
1189
  attr_accessor :type
1427
-
1428
1190
  sig {
1429
1191
  params(discount_end: ::Stripe::Quote::CreateParams::Line::EndsAt::DiscountEnd, duration: ::Stripe::Quote::CreateParams::Line::EndsAt::Duration, timestamp: Integer, type: String).void
1430
1192
  }
@@ -1435,18 +1197,15 @@ module Stripe
1435
1197
  # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
1436
1198
  sig { returns(String) }
1437
1199
  attr_accessor :behavior
1438
-
1439
1200
  sig { params(behavior: String).void }
1440
1201
  def initialize(behavior: nil); end
1441
1202
  end
1442
1203
  # Details of the pause_collection behavior to apply to the amendment.
1443
1204
  sig { returns(::Stripe::Quote::CreateParams::Line::SetPauseCollection::Set) }
1444
1205
  attr_accessor :set
1445
-
1446
1206
  # Determines the type of the pause_collection amendment.
1447
1207
  sig { returns(String) }
1448
1208
  attr_accessor :type
1449
-
1450
1209
  sig {
1451
1210
  params(set: ::Stripe::Quote::CreateParams::Line::SetPauseCollection::Set, type: String).void
1452
1211
  }
@@ -1457,7 +1216,6 @@ module Stripe
1457
1216
  # The ID of a specific discount.
1458
1217
  sig { returns(String) }
1459
1218
  attr_accessor :discount
1460
-
1461
1219
  sig { params(discount: String).void }
1462
1220
  def initialize(discount: nil); end
1463
1221
  end
@@ -1465,26 +1223,21 @@ module Stripe
1465
1223
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
1466
1224
  sig { returns(Integer) }
1467
1225
  attr_accessor :index
1468
-
1469
1226
  sig { params(index: Integer).void }
1470
1227
  def initialize(index: nil); end
1471
1228
  end
1472
1229
  # Use the `end` time of a given discount.
1473
1230
  sig { returns(::Stripe::Quote::CreateParams::Line::StartsAt::DiscountEnd) }
1474
1231
  attr_accessor :discount_end
1475
-
1476
1232
  # The timestamp the given line ends at.
1477
1233
  sig { returns(::Stripe::Quote::CreateParams::Line::StartsAt::LineEndsAt) }
1478
1234
  attr_accessor :line_ends_at
1479
-
1480
1235
  # A precise Unix timestamp.
1481
1236
  sig { returns(Integer) }
1482
1237
  attr_accessor :timestamp
1483
-
1484
1238
  # Select a way to pass in `starts_at`.
1485
1239
  sig { returns(String) }
1486
1240
  attr_accessor :type
1487
-
1488
1241
  sig {
1489
1242
  params(discount_end: ::Stripe::Quote::CreateParams::Line::StartsAt::DiscountEnd, line_ends_at: ::Stripe::Quote::CreateParams::Line::StartsAt::LineEndsAt, timestamp: Integer, type: String).void
1490
1243
  }
@@ -1495,14 +1248,12 @@ module Stripe
1495
1248
  # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
1496
1249
  sig { returns(String) }
1497
1250
  attr_accessor :prorate_up_front
1498
-
1499
1251
  sig { params(prorate_up_front: String).void }
1500
1252
  def initialize(prorate_up_front: nil); end
1501
1253
  end
1502
1254
  # Defines how the subscription should behave when a trial ends.
1503
1255
  sig { returns(::Stripe::Quote::CreateParams::Line::TrialSettings::EndBehavior) }
1504
1256
  attr_accessor :end_behavior
1505
-
1506
1257
  sig {
1507
1258
  params(end_behavior: ::Stripe::Quote::CreateParams::Line::TrialSettings::EndBehavior).void
1508
1259
  }
@@ -1511,43 +1262,33 @@ module Stripe
1511
1262
  # An array of operations the quote line performs.
1512
1263
  sig { returns(T::Array[::Stripe::Quote::CreateParams::Line::Action]) }
1513
1264
  attr_accessor :actions
1514
-
1515
1265
  # Details to identify the subscription schedule the quote line applies to.
1516
1266
  sig { returns(::Stripe::Quote::CreateParams::Line::AppliesTo) }
1517
1267
  attr_accessor :applies_to
1518
-
1519
1268
  # For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
1520
1269
  sig { returns(String) }
1521
1270
  attr_accessor :billing_cycle_anchor
1522
-
1523
1271
  # A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
1524
1272
  sig { returns(::Stripe::Quote::CreateParams::Line::CancelSubscriptionSchedule) }
1525
1273
  attr_accessor :cancel_subscription_schedule
1526
-
1527
1274
  # Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
1528
1275
  sig { returns(::Stripe::Quote::CreateParams::Line::EndsAt) }
1529
1276
  attr_accessor :ends_at
1530
-
1531
1277
  # Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
1532
1278
  sig { returns(String) }
1533
1279
  attr_accessor :proration_behavior
1534
-
1535
1280
  # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
1536
1281
  sig { returns(::Stripe::Quote::CreateParams::Line::SetPauseCollection) }
1537
1282
  attr_accessor :set_pause_collection
1538
-
1539
1283
  # Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
1540
1284
  sig { returns(String) }
1541
1285
  attr_accessor :set_schedule_end
1542
-
1543
1286
  # Details to identify the earliest timestamp where the proposed change should take effect.
1544
1287
  sig { returns(::Stripe::Quote::CreateParams::Line::StartsAt) }
1545
1288
  attr_accessor :starts_at
1546
-
1547
1289
  # Settings related to subscription trials.
1548
1290
  sig { returns(::Stripe::Quote::CreateParams::Line::TrialSettings) }
1549
1291
  attr_accessor :trial_settings
1550
-
1551
1292
  sig {
1552
1293
  params(actions: T::Array[::Stripe::Quote::CreateParams::Line::Action], applies_to: ::Stripe::Quote::CreateParams::Line::AppliesTo, billing_cycle_anchor: String, cancel_subscription_schedule: ::Stripe::Quote::CreateParams::Line::CancelSubscriptionSchedule, ends_at: ::Stripe::Quote::CreateParams::Line::EndsAt, proration_behavior: String, set_pause_collection: ::Stripe::Quote::CreateParams::Line::SetPauseCollection, set_schedule_end: String, starts_at: ::Stripe::Quote::CreateParams::Line::StartsAt, trial_settings: ::Stripe::Quote::CreateParams::Line::TrialSettings).void
1553
1294
  }
@@ -1571,11 +1312,9 @@ module Stripe
1571
1312
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1572
1313
  sig { returns(String) }
1573
1314
  attr_accessor :interval
1574
-
1575
1315
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1576
1316
  sig { returns(Integer) }
1577
1317
  attr_accessor :interval_count
1578
-
1579
1318
  sig { params(interval: String, interval_count: Integer).void }
1580
1319
  def initialize(interval: nil, interval_count: nil); end
1581
1320
  end
@@ -1584,15 +1323,12 @@ module Stripe
1584
1323
  returns(::Stripe::Quote::CreateParams::LineItem::Discount::DiscountEnd::Duration)
1585
1324
  }
1586
1325
  attr_accessor :duration
1587
-
1588
1326
  # A precise Unix timestamp for the discount to end. Must be in the future.
1589
1327
  sig { returns(Integer) }
1590
1328
  attr_accessor :timestamp
1591
-
1592
1329
  # The type of calculation made to determine when the discount ends.
1593
1330
  sig { returns(String) }
1594
1331
  attr_accessor :type
1595
-
1596
1332
  sig {
1597
1333
  params(duration: ::Stripe::Quote::CreateParams::LineItem::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
1598
1334
  }
@@ -1601,19 +1337,15 @@ module Stripe
1601
1337
  # ID of the coupon to create a new discount for.
1602
1338
  sig { returns(String) }
1603
1339
  attr_accessor :coupon
1604
-
1605
1340
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1606
1341
  sig { returns(String) }
1607
1342
  attr_accessor :discount
1608
-
1609
1343
  # Details to determine how long the discount should be applied for.
1610
1344
  sig { returns(::Stripe::Quote::CreateParams::LineItem::Discount::DiscountEnd) }
1611
1345
  attr_accessor :discount_end
1612
-
1613
1346
  # ID of the promotion code to create a new discount for.
1614
1347
  sig { returns(String) }
1615
1348
  attr_accessor :promotion_code
1616
-
1617
1349
  sig {
1618
1350
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::CreateParams::LineItem::Discount::DiscountEnd, promotion_code: String).void
1619
1351
  }
@@ -1624,38 +1356,30 @@ module Stripe
1624
1356
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
1625
1357
  sig { returns(String) }
1626
1358
  attr_accessor :interval
1627
-
1628
1359
  # 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).
1629
1360
  sig { returns(Integer) }
1630
1361
  attr_accessor :interval_count
1631
-
1632
1362
  sig { params(interval: String, interval_count: Integer).void }
1633
1363
  def initialize(interval: nil, interval_count: nil); end
1634
1364
  end
1635
1365
  # 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).
1636
1366
  sig { returns(String) }
1637
1367
  attr_accessor :currency
1638
-
1639
1368
  # The ID of the product that this price will belong to.
1640
1369
  sig { returns(String) }
1641
1370
  attr_accessor :product
1642
-
1643
1371
  # The recurring components of a price such as `interval` and `interval_count`.
1644
1372
  sig { returns(::Stripe::Quote::CreateParams::LineItem::PriceData::Recurring) }
1645
1373
  attr_accessor :recurring
1646
-
1647
1374
  # 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.
1648
1375
  sig { returns(String) }
1649
1376
  attr_accessor :tax_behavior
1650
-
1651
1377
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
1652
1378
  sig { returns(Integer) }
1653
1379
  attr_accessor :unit_amount
1654
-
1655
1380
  # 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.
1656
1381
  sig { returns(String) }
1657
1382
  attr_accessor :unit_amount_decimal
1658
-
1659
1383
  sig {
1660
1384
  params(currency: String, product: String, recurring: ::Stripe::Quote::CreateParams::LineItem::PriceData::Recurring, tax_behavior: String, unit_amount: Integer, unit_amount_decimal: String).void
1661
1385
  }
@@ -1671,23 +1395,18 @@ module Stripe
1671
1395
  # The discounts applied to this line item.
1672
1396
  sig { returns(T.nilable(T::Array[::Stripe::Quote::CreateParams::LineItem::Discount])) }
1673
1397
  attr_accessor :discounts
1674
-
1675
1398
  # The ID of the price object. One of `price` or `price_data` is required.
1676
1399
  sig { returns(String) }
1677
1400
  attr_accessor :price
1678
-
1679
1401
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
1680
1402
  sig { returns(::Stripe::Quote::CreateParams::LineItem::PriceData) }
1681
1403
  attr_accessor :price_data
1682
-
1683
1404
  # The quantity of the line item.
1684
1405
  sig { returns(Integer) }
1685
1406
  attr_accessor :quantity
1686
-
1687
1407
  # 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.
1688
1408
  sig { returns(T.nilable(T::Array[String])) }
1689
1409
  attr_accessor :tax_rates
1690
-
1691
1410
  sig {
1692
1411
  params(discounts: T.nilable(T::Array[::Stripe::Quote::CreateParams::LineItem::Discount]), price: String, price_data: ::Stripe::Quote::CreateParams::LineItem::PriceData, quantity: Integer, tax_rates: T.nilable(T::Array[String])).void
1693
1412
  }
@@ -1706,11 +1425,9 @@ module Stripe
1706
1425
  # The ID of a quote line.
1707
1426
  sig { returns(String) }
1708
1427
  attr_accessor :id
1709
-
1710
1428
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
1711
1429
  sig { returns(Integer) }
1712
1430
  attr_accessor :index
1713
-
1714
1431
  sig { params(id: String, index: Integer).void }
1715
1432
  def initialize(id: nil, index: nil); end
1716
1433
  end
@@ -1719,15 +1436,12 @@ module Stripe
1719
1436
  returns(::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillFrom::LineStartsAt)
1720
1437
  }
1721
1438
  attr_accessor :line_starts_at
1722
-
1723
1439
  # A precise Unix timestamp.
1724
1440
  sig { returns(Integer) }
1725
1441
  attr_accessor :timestamp
1726
-
1727
1442
  # The type of method to specify the `bill_from` time.
1728
1443
  sig { returns(String) }
1729
1444
  attr_accessor :type
1730
-
1731
1445
  sig {
1732
1446
  params(line_starts_at: ::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillFrom::LineStartsAt, timestamp: Integer, type: String).void
1733
1447
  }
@@ -1738,11 +1452,9 @@ module Stripe
1738
1452
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1739
1453
  sig { returns(String) }
1740
1454
  attr_accessor :interval
1741
-
1742
1455
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1743
1456
  sig { returns(Integer) }
1744
1457
  attr_accessor :interval_count
1745
-
1746
1458
  sig { params(interval: String, interval_count: Integer).void }
1747
1459
  def initialize(interval: nil, interval_count: nil); end
1748
1460
  end
@@ -1750,11 +1462,9 @@ module Stripe
1750
1462
  # The ID of a quote line.
1751
1463
  sig { returns(String) }
1752
1464
  attr_accessor :id
1753
-
1754
1465
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
1755
1466
  sig { returns(Integer) }
1756
1467
  attr_accessor :index
1757
-
1758
1468
  sig { params(id: String, index: Integer).void }
1759
1469
  def initialize(id: nil, index: nil); end
1760
1470
  end
@@ -1763,21 +1473,17 @@ module Stripe
1763
1473
  returns(::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil::Duration)
1764
1474
  }
1765
1475
  attr_accessor :duration
1766
-
1767
1476
  # Details of a Quote line item from which to bill until.
1768
1477
  sig {
1769
1478
  returns(::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil::LineEndsAt)
1770
1479
  }
1771
1480
  attr_accessor :line_ends_at
1772
-
1773
1481
  # A precise Unix timestamp.
1774
1482
  sig { returns(Integer) }
1775
1483
  attr_accessor :timestamp
1776
-
1777
1484
  # The type of method to specify the `bill_until` time.
1778
1485
  sig { returns(String) }
1779
1486
  attr_accessor :type
1780
-
1781
1487
  sig {
1782
1488
  params(duration: ::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil::Duration, line_ends_at: ::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil::LineEndsAt, timestamp: Integer, type: String).void
1783
1489
  }
@@ -1788,13 +1494,11 @@ module Stripe
1788
1494
  returns(::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillFrom)
1789
1495
  }
1790
1496
  attr_accessor :bill_from
1791
-
1792
1497
  # The end of the period to bill until when the Quote is accepted.
1793
1498
  sig {
1794
1499
  returns(::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil)
1795
1500
  }
1796
1501
  attr_accessor :bill_until
1797
-
1798
1502
  sig {
1799
1503
  params(bill_from: ::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillFrom, bill_until: ::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil).void
1800
1504
  }
@@ -1804,46 +1508,36 @@ module Stripe
1804
1508
  # This is used to determine the number of billing cycles to prebill.
1805
1509
  sig { returns(Integer) }
1806
1510
  attr_accessor :iterations
1807
-
1808
1511
  sig { params(iterations: Integer).void }
1809
1512
  def initialize(iterations: nil); end
1810
1513
  end
1811
1514
  # Describes the period to bill for upon accepting the quote.
1812
1515
  sig { returns(::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance) }
1813
1516
  attr_accessor :bill_on_acceptance
1814
-
1815
1517
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
1816
1518
  sig { returns(String) }
1817
1519
  attr_accessor :billing_behavior
1818
-
1819
1520
  # When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
1820
1521
  sig { returns(T.nilable(String)) }
1821
1522
  attr_accessor :billing_cycle_anchor
1822
-
1823
1523
  # 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.
1824
1524
  sig { returns(String) }
1825
1525
  attr_accessor :description
1826
-
1827
1526
  # 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.
1828
1527
  sig { returns(T.nilable(T.any(String, Integer))) }
1829
1528
  attr_accessor :effective_date
1830
-
1831
1529
  # Behavior of the subscription schedule and underlying subscription when it ends.
1832
1530
  sig { returns(String) }
1833
1531
  attr_accessor :end_behavior
1834
-
1835
1532
  # The id of a subscription that the quote will update. By default, the quote will contain the state of the subscription (such as line items, collection method and billing thresholds) unless overridden.
1836
1533
  sig { returns(String) }
1837
1534
  attr_accessor :from_subscription
1838
-
1839
1535
  # 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.
1840
1536
  sig { returns(T::Hash[String, String]) }
1841
1537
  attr_accessor :metadata
1842
-
1843
1538
  # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
1844
1539
  sig { returns(T.nilable(::Stripe::Quote::CreateParams::SubscriptionData::Prebilling)) }
1845
1540
  attr_accessor :prebilling
1846
-
1847
1541
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
1848
1542
  #
1849
1543
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -1853,11 +1547,9 @@ module Stripe
1853
1547
  # Prorations can be disabled by passing `none`.
1854
1548
  sig { returns(String) }
1855
1549
  attr_accessor :proration_behavior
1856
-
1857
1550
  # Integer representing the number of trial period days before the customer is charged for the first time.
1858
1551
  sig { returns(T.nilable(Integer)) }
1859
1552
  attr_accessor :trial_period_days
1860
-
1861
1553
  sig {
1862
1554
  params(bill_on_acceptance: ::Stripe::Quote::CreateParams::SubscriptionData::BillOnAcceptance, billing_behavior: String, billing_cycle_anchor: T.nilable(String), description: String, effective_date: T.nilable(T.any(String, Integer)), end_behavior: String, from_subscription: String, metadata: T::Hash[String, String], prebilling: T.nilable(::Stripe::Quote::CreateParams::SubscriptionData::Prebilling), proration_behavior: String, trial_period_days: T.nilable(Integer)).void
1863
1555
  }
@@ -1880,15 +1572,12 @@ module Stripe
1880
1572
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
1881
1573
  sig { returns(String) }
1882
1574
  attr_accessor :new_reference
1883
-
1884
1575
  # The ID of the schedule the line applies to.
1885
1576
  sig { returns(String) }
1886
1577
  attr_accessor :subscription_schedule
1887
-
1888
1578
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
1889
1579
  sig { returns(String) }
1890
1580
  attr_accessor :type
1891
-
1892
1581
  sig { params(new_reference: String, subscription_schedule: String, type: String).void }
1893
1582
  def initialize(new_reference: nil, subscription_schedule: nil, type: nil); end
1894
1583
  end
@@ -1898,11 +1587,9 @@ module Stripe
1898
1587
  # The ID of a quote line.
1899
1588
  sig { returns(String) }
1900
1589
  attr_accessor :id
1901
-
1902
1590
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
1903
1591
  sig { returns(Integer) }
1904
1592
  attr_accessor :index
1905
-
1906
1593
  sig { params(id: String, index: Integer).void }
1907
1594
  def initialize(id: nil, index: nil); end
1908
1595
  end
@@ -1911,15 +1598,12 @@ module Stripe
1911
1598
  returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom::LineStartsAt)
1912
1599
  }
1913
1600
  attr_accessor :line_starts_at
1914
-
1915
1601
  # A precise Unix timestamp.
1916
1602
  sig { returns(Integer) }
1917
1603
  attr_accessor :timestamp
1918
-
1919
1604
  # The type of method to specify the `bill_from` time.
1920
1605
  sig { returns(String) }
1921
1606
  attr_accessor :type
1922
-
1923
1607
  sig {
1924
1608
  params(line_starts_at: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom::LineStartsAt, timestamp: Integer, type: String).void
1925
1609
  }
@@ -1930,11 +1614,9 @@ module Stripe
1930
1614
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1931
1615
  sig { returns(String) }
1932
1616
  attr_accessor :interval
1933
-
1934
1617
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1935
1618
  sig { returns(Integer) }
1936
1619
  attr_accessor :interval_count
1937
-
1938
1620
  sig { params(interval: String, interval_count: Integer).void }
1939
1621
  def initialize(interval: nil, interval_count: nil); end
1940
1622
  end
@@ -1942,11 +1624,9 @@ module Stripe
1942
1624
  # The ID of a quote line.
1943
1625
  sig { returns(String) }
1944
1626
  attr_accessor :id
1945
-
1946
1627
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
1947
1628
  sig { returns(Integer) }
1948
1629
  attr_accessor :index
1949
-
1950
1630
  sig { params(id: String, index: Integer).void }
1951
1631
  def initialize(id: nil, index: nil); end
1952
1632
  end
@@ -1955,21 +1635,17 @@ module Stripe
1955
1635
  returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::Duration)
1956
1636
  }
1957
1637
  attr_accessor :duration
1958
-
1959
1638
  # Details of a Quote line item from which to bill until.
1960
1639
  sig {
1961
1640
  returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::LineEndsAt)
1962
1641
  }
1963
1642
  attr_accessor :line_ends_at
1964
-
1965
1643
  # A precise Unix timestamp.
1966
1644
  sig { returns(Integer) }
1967
1645
  attr_accessor :timestamp
1968
-
1969
1646
  # The type of method to specify the `bill_until` time.
1970
1647
  sig { returns(String) }
1971
1648
  attr_accessor :type
1972
-
1973
1649
  sig {
1974
1650
  params(duration: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::Duration, line_ends_at: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::LineEndsAt, timestamp: Integer, type: String).void
1975
1651
  }
@@ -1980,13 +1656,11 @@ module Stripe
1980
1656
  returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom)
1981
1657
  }
1982
1658
  attr_accessor :bill_from
1983
-
1984
1659
  # The end of the period to bill until when the Quote is accepted.
1985
1660
  sig {
1986
1661
  returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil)
1987
1662
  }
1988
1663
  attr_accessor :bill_until
1989
-
1990
1664
  sig {
1991
1665
  params(bill_from: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom, bill_until: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil).void
1992
1666
  }
@@ -1995,27 +1669,21 @@ module Stripe
1995
1669
  # Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
1996
1670
  sig { returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::AppliesTo) }
1997
1671
  attr_accessor :applies_to
1998
-
1999
1672
  # Describes the period to bill for upon accepting the quote.
2000
1673
  sig { returns(::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance) }
2001
1674
  attr_accessor :bill_on_acceptance
2002
-
2003
1675
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
2004
1676
  sig { returns(String) }
2005
1677
  attr_accessor :billing_behavior
2006
-
2007
1678
  # The customer the Subscription Data override applies to. This is only relevant when `applies_to.type=new_reference`.
2008
1679
  sig { returns(String) }
2009
1680
  attr_accessor :customer
2010
-
2011
1681
  # 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.
2012
1682
  sig { returns(String) }
2013
1683
  attr_accessor :description
2014
-
2015
1684
  # Behavior of the subscription schedule and underlying subscription when it ends.
2016
1685
  sig { returns(String) }
2017
1686
  attr_accessor :end_behavior
2018
-
2019
1687
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
2020
1688
  #
2021
1689
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -2025,7 +1693,6 @@ module Stripe
2025
1693
  # Prorations can be disabled by passing `none`.
2026
1694
  sig { returns(String) }
2027
1695
  attr_accessor :proration_behavior
2028
-
2029
1696
  sig {
2030
1697
  params(applies_to: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::AppliesTo, bill_on_acceptance: ::Stripe::Quote::CreateParams::SubscriptionDataOverride::BillOnAcceptance, billing_behavior: String, customer: String, description: String, end_behavior: String, proration_behavior: String).void
2031
1698
  }
@@ -2043,110 +1710,84 @@ module Stripe
2043
1710
  # 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.
2044
1711
  sig { returns(Integer) }
2045
1712
  attr_accessor :amount
2046
-
2047
1713
  # 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.
2048
1714
  sig { returns(Float) }
2049
1715
  attr_accessor :amount_percent
2050
-
2051
1716
  # ID of an existing, connected Stripe account.
2052
1717
  sig { returns(String) }
2053
1718
  attr_accessor :destination
2054
-
2055
1719
  sig { params(amount: Integer, amount_percent: Float, destination: String).void }
2056
1720
  def initialize(amount: nil, amount_percent: nil, destination: nil); end
2057
1721
  end
2058
1722
  # Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
2059
1723
  sig { returns(T::Boolean) }
2060
1724
  attr_accessor :allow_backdated_lines
2061
-
2062
1725
  # 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.
2063
1726
  sig { returns(T.nilable(Integer)) }
2064
1727
  attr_accessor :application_fee_amount
2065
-
2066
1728
  # 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.
2067
1729
  sig { returns(T.nilable(Float)) }
2068
1730
  attr_accessor :application_fee_percent
2069
-
2070
1731
  # Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
2071
1732
  sig { returns(::Stripe::Quote::CreateParams::AutomaticTax) }
2072
1733
  attr_accessor :automatic_tax
2073
-
2074
1734
  # 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`.
2075
1735
  sig { returns(String) }
2076
1736
  attr_accessor :collection_method
2077
-
2078
1737
  # The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
2079
1738
  sig { returns(String) }
2080
1739
  attr_accessor :customer
2081
-
2082
1740
  # The tax rates that will apply to any line item that does not have `tax_rates` set.
2083
1741
  sig { returns(T.nilable(T::Array[String])) }
2084
1742
  attr_accessor :default_tax_rates
2085
-
2086
1743
  # 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.
2087
1744
  sig { returns(T.nilable(String)) }
2088
1745
  attr_accessor :description
2089
-
2090
1746
  # The discounts applied to the quote.
2091
1747
  sig { returns(T.nilable(T::Array[::Stripe::Quote::CreateParams::Discount])) }
2092
1748
  attr_accessor :discounts
2093
-
2094
1749
  # Specifies which fields in the response should be expanded.
2095
1750
  sig { returns(T::Array[String]) }
2096
1751
  attr_accessor :expand
2097
-
2098
1752
  # 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.
2099
1753
  sig { returns(Integer) }
2100
1754
  attr_accessor :expires_at
2101
-
2102
1755
  # 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.
2103
1756
  sig { returns(T.nilable(String)) }
2104
1757
  attr_accessor :footer
2105
-
2106
1758
  # 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`.
2107
1759
  sig { returns(::Stripe::Quote::CreateParams::FromQuote) }
2108
1760
  attr_accessor :from_quote
2109
-
2110
1761
  # 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.
2111
1762
  sig { returns(T.nilable(String)) }
2112
1763
  attr_accessor :header
2113
-
2114
1764
  # All invoices will be billed using the specified settings.
2115
1765
  sig { returns(::Stripe::Quote::CreateParams::InvoiceSettings) }
2116
1766
  attr_accessor :invoice_settings
2117
-
2118
1767
  # 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.
2119
1768
  sig { returns(T::Array[::Stripe::Quote::CreateParams::LineItem]) }
2120
1769
  attr_accessor :line_items
2121
-
2122
1770
  # A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
2123
1771
  sig { returns(T::Array[::Stripe::Quote::CreateParams::Line]) }
2124
1772
  attr_accessor :lines
2125
-
2126
1773
  # 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`.
2127
1774
  sig { returns(T::Hash[String, String]) }
2128
1775
  attr_accessor :metadata
2129
-
2130
1776
  # The account on behalf of which to charge.
2131
1777
  sig { returns(T.nilable(String)) }
2132
1778
  attr_accessor :on_behalf_of
2133
-
2134
1779
  # 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.
2135
1780
  sig { returns(::Stripe::Quote::CreateParams::SubscriptionData) }
2136
1781
  attr_accessor :subscription_data
2137
-
2138
1782
  # List representing overrides for `subscription_data` configurations for specific subscription schedules.
2139
1783
  sig { returns(T::Array[::Stripe::Quote::CreateParams::SubscriptionDataOverride]) }
2140
1784
  attr_accessor :subscription_data_overrides
2141
-
2142
1785
  # ID of the test clock to attach to the quote.
2143
1786
  sig { returns(String) }
2144
1787
  attr_accessor :test_clock
2145
-
2146
1788
  # The data with which to automatically create a Transfer for each of the invoices.
2147
1789
  sig { returns(T.nilable(::Stripe::Quote::CreateParams::TransferData)) }
2148
1790
  attr_accessor :transfer_data
2149
-
2150
1791
  sig {
2151
1792
  params(allow_backdated_lines: T::Boolean, application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: ::Stripe::Quote::CreateParams::AutomaticTax, collection_method: String, customer: String, default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), discounts: T.nilable(T::Array[::Stripe::Quote::CreateParams::Discount]), expand: T::Array[String], expires_at: Integer, footer: T.nilable(String), from_quote: ::Stripe::Quote::CreateParams::FromQuote, header: T.nilable(String), invoice_settings: ::Stripe::Quote::CreateParams::InvoiceSettings, line_items: T::Array[::Stripe::Quote::CreateParams::LineItem], lines: T::Array[::Stripe::Quote::CreateParams::Line], metadata: T::Hash[String, String], on_behalf_of: T.nilable(String), subscription_data: ::Stripe::Quote::CreateParams::SubscriptionData, subscription_data_overrides: T::Array[::Stripe::Quote::CreateParams::SubscriptionDataOverride], test_clock: String, transfer_data: T.nilable(::Stripe::Quote::CreateParams::TransferData)).void
2152
1793
  }
@@ -2180,7 +1821,6 @@ module Stripe
2180
1821
  # Specifies which fields in the response should be expanded.
2181
1822
  sig { returns(T::Array[String]) }
2182
1823
  attr_accessor :expand
2183
-
2184
1824
  sig { params(expand: T::Array[String]).void }
2185
1825
  def initialize(expand: nil); end
2186
1826
  end
@@ -2190,22 +1830,18 @@ module Stripe
2190
1830
  # The connected account being referenced when `type` is `account`.
2191
1831
  sig { returns(String) }
2192
1832
  attr_accessor :account
2193
-
2194
1833
  # Type of the account referenced in the request.
2195
1834
  sig { returns(String) }
2196
1835
  attr_accessor :type
2197
-
2198
1836
  sig { params(account: String, type: String).void }
2199
1837
  def initialize(account: nil, type: nil); end
2200
1838
  end
2201
1839
  # Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself.
2202
1840
  sig { returns(T::Boolean) }
2203
1841
  attr_accessor :enabled
2204
-
2205
1842
  # 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.
2206
1843
  sig { returns(::Stripe::Quote::UpdateParams::AutomaticTax::Liability) }
2207
1844
  attr_accessor :liability
2208
-
2209
1845
  sig {
2210
1846
  params(enabled: T::Boolean, liability: ::Stripe::Quote::UpdateParams::AutomaticTax::Liability).void
2211
1847
  }
@@ -2217,26 +1853,21 @@ module Stripe
2217
1853
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2218
1854
  sig { returns(String) }
2219
1855
  attr_accessor :interval
2220
-
2221
1856
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2222
1857
  sig { returns(Integer) }
2223
1858
  attr_accessor :interval_count
2224
-
2225
1859
  sig { params(interval: String, interval_count: Integer).void }
2226
1860
  def initialize(interval: nil, interval_count: nil); end
2227
1861
  end
2228
1862
  # Time span for the redeemed discount.
2229
1863
  sig { returns(::Stripe::Quote::UpdateParams::Discount::DiscountEnd::Duration) }
2230
1864
  attr_accessor :duration
2231
-
2232
1865
  # A precise Unix timestamp for the discount to end. Must be in the future.
2233
1866
  sig { returns(Integer) }
2234
1867
  attr_accessor :timestamp
2235
-
2236
1868
  # The type of calculation made to determine when the discount ends.
2237
1869
  sig { returns(String) }
2238
1870
  attr_accessor :type
2239
-
2240
1871
  sig {
2241
1872
  params(duration: ::Stripe::Quote::UpdateParams::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
2242
1873
  }
@@ -2245,19 +1876,15 @@ module Stripe
2245
1876
  # ID of the coupon to create a new discount for.
2246
1877
  sig { returns(String) }
2247
1878
  attr_accessor :coupon
2248
-
2249
1879
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2250
1880
  sig { returns(String) }
2251
1881
  attr_accessor :discount
2252
-
2253
1882
  # Details to determine how long the discount should be applied for.
2254
1883
  sig { returns(::Stripe::Quote::UpdateParams::Discount::DiscountEnd) }
2255
1884
  attr_accessor :discount_end
2256
-
2257
1885
  # ID of the promotion code to create a new discount for.
2258
1886
  sig { returns(String) }
2259
1887
  attr_accessor :promotion_code
2260
-
2261
1888
  sig {
2262
1889
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::UpdateParams::Discount::DiscountEnd, promotion_code: String).void
2263
1890
  }
@@ -2268,22 +1895,18 @@ module Stripe
2268
1895
  # The connected account being referenced when `type` is `account`.
2269
1896
  sig { returns(String) }
2270
1897
  attr_accessor :account
2271
-
2272
1898
  # Type of the account referenced in the request.
2273
1899
  sig { returns(String) }
2274
1900
  attr_accessor :type
2275
-
2276
1901
  sig { params(account: String, type: String).void }
2277
1902
  def initialize(account: nil, type: nil); end
2278
1903
  end
2279
1904
  # 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`.
2280
1905
  sig { returns(Integer) }
2281
1906
  attr_accessor :days_until_due
2282
-
2283
1907
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
2284
1908
  sig { returns(::Stripe::Quote::UpdateParams::InvoiceSettings::Issuer) }
2285
1909
  attr_accessor :issuer
2286
-
2287
1910
  sig {
2288
1911
  params(days_until_due: Integer, issuer: ::Stripe::Quote::UpdateParams::InvoiceSettings::Issuer).void
2289
1912
  }
@@ -2296,30 +1919,24 @@ module Stripe
2296
1919
  # The type of calculation made to determine when the discount ends.
2297
1920
  sig { returns(String) }
2298
1921
  attr_accessor :type
2299
-
2300
1922
  sig { params(type: String).void }
2301
1923
  def initialize(type: nil); end
2302
1924
  end
2303
1925
  # The coupon code to redeem.
2304
1926
  sig { returns(String) }
2305
1927
  attr_accessor :coupon
2306
-
2307
1928
  # An ID of an existing discount for a coupon that was already redeemed.
2308
1929
  sig { returns(String) }
2309
1930
  attr_accessor :discount
2310
-
2311
1931
  # Details to determine how long the discount should be applied for.
2312
1932
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::AddDiscount::DiscountEnd) }
2313
1933
  attr_accessor :discount_end
2314
-
2315
1934
  # The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
2316
1935
  sig { returns(Integer) }
2317
1936
  attr_accessor :index
2318
-
2319
1937
  # The promotion code to redeem.
2320
1938
  sig { returns(String) }
2321
1939
  attr_accessor :promotion_code
2322
-
2323
1940
  sig {
2324
1941
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::UpdateParams::Line::Action::AddDiscount::DiscountEnd, index: Integer, promotion_code: String).void
2325
1942
  }
@@ -2338,11 +1955,9 @@ module Stripe
2338
1955
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2339
1956
  sig { returns(String) }
2340
1957
  attr_accessor :interval
2341
-
2342
1958
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2343
1959
  sig { returns(Integer) }
2344
1960
  attr_accessor :interval_count
2345
-
2346
1961
  sig { params(interval: String, interval_count: Integer).void }
2347
1962
  def initialize(interval: nil, interval_count: nil); end
2348
1963
  end
@@ -2351,15 +1966,12 @@ module Stripe
2351
1966
  returns(::Stripe::Quote::UpdateParams::Line::Action::AddItem::Discount::DiscountEnd::Duration)
2352
1967
  }
2353
1968
  attr_accessor :duration
2354
-
2355
1969
  # A precise Unix timestamp for the discount to end. Must be in the future.
2356
1970
  sig { returns(Integer) }
2357
1971
  attr_accessor :timestamp
2358
-
2359
1972
  # The type of calculation made to determine when the discount ends.
2360
1973
  sig { returns(String) }
2361
1974
  attr_accessor :type
2362
-
2363
1975
  sig {
2364
1976
  params(duration: ::Stripe::Quote::UpdateParams::Line::Action::AddItem::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
2365
1977
  }
@@ -2368,21 +1980,17 @@ module Stripe
2368
1980
  # ID of the coupon to create a new discount for.
2369
1981
  sig { returns(String) }
2370
1982
  attr_accessor :coupon
2371
-
2372
1983
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2373
1984
  sig { returns(String) }
2374
1985
  attr_accessor :discount
2375
-
2376
1986
  # Details to determine how long the discount should be applied for.
2377
1987
  sig {
2378
1988
  returns(::Stripe::Quote::UpdateParams::Line::Action::AddItem::Discount::DiscountEnd)
2379
1989
  }
2380
1990
  attr_accessor :discount_end
2381
-
2382
1991
  # ID of the promotion code to create a new discount for.
2383
1992
  sig { returns(String) }
2384
1993
  attr_accessor :promotion_code
2385
-
2386
1994
  sig {
2387
1995
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::UpdateParams::Line::Action::AddItem::Discount::DiscountEnd, promotion_code: String).void
2388
1996
  }
@@ -2397,11 +2005,9 @@ module Stripe
2397
2005
  # List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
2398
2006
  sig { returns(T::Array[String]) }
2399
2007
  attr_accessor :converts_to
2400
-
2401
2008
  # Determines the type of trial for this item.
2402
2009
  sig { returns(String) }
2403
2010
  attr_accessor :type
2404
-
2405
2011
  sig { params(converts_to: T::Array[String], type: String).void }
2406
2012
  def initialize(converts_to: nil, type: nil); end
2407
2013
  end
@@ -2410,27 +2016,21 @@ module Stripe
2410
2016
  returns(T::Array[::Stripe::Quote::UpdateParams::Line::Action::AddItem::Discount])
2411
2017
  }
2412
2018
  attr_accessor :discounts
2413
-
2414
2019
  # 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`.
2415
2020
  sig { returns(T::Hash[String, String]) }
2416
2021
  attr_accessor :metadata
2417
-
2418
2022
  # The ID of the price object.
2419
2023
  sig { returns(String) }
2420
2024
  attr_accessor :price
2421
-
2422
2025
  # Quantity for this item.
2423
2026
  sig { returns(Integer) }
2424
2027
  attr_accessor :quantity
2425
-
2426
2028
  # The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
2427
2029
  sig { returns(T::Array[String]) }
2428
2030
  attr_accessor :tax_rates
2429
-
2430
2031
  # Options that configure the trial on the subscription item.
2431
2032
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::AddItem::Trial) }
2432
2033
  attr_accessor :trial
2433
-
2434
2034
  sig {
2435
2035
  params(discounts: T::Array[::Stripe::Quote::UpdateParams::Line::Action::AddItem::Discount], metadata: T::Hash[String, String], price: String, quantity: Integer, tax_rates: T::Array[String], trial: ::Stripe::Quote::UpdateParams::Line::Action::AddItem::Trial).void
2436
2036
  }
@@ -2447,15 +2047,12 @@ module Stripe
2447
2047
  # The coupon code to remove from the `discounts` array.
2448
2048
  sig { returns(String) }
2449
2049
  attr_accessor :coupon
2450
-
2451
2050
  # The ID of a discount to remove from the `discounts` array.
2452
2051
  sig { returns(String) }
2453
2052
  attr_accessor :discount
2454
-
2455
2053
  # The ID of a promotion code to remove from the `discounts` array.
2456
2054
  sig { returns(String) }
2457
2055
  attr_accessor :promotion_code
2458
-
2459
2056
  sig { params(coupon: String, discount: String, promotion_code: String).void }
2460
2057
  def initialize(coupon: nil, discount: nil, promotion_code: nil); end
2461
2058
  end
@@ -2463,7 +2060,6 @@ module Stripe
2463
2060
  # ID of a price to remove.
2464
2061
  sig { returns(String) }
2465
2062
  attr_accessor :price
2466
-
2467
2063
  sig { params(price: String).void }
2468
2064
  def initialize(price: nil); end
2469
2065
  end
@@ -2471,15 +2067,12 @@ module Stripe
2471
2067
  # The coupon code to replace the `discounts` array with.
2472
2068
  sig { returns(String) }
2473
2069
  attr_accessor :coupon
2474
-
2475
2070
  # An ID of an existing discount to replace the `discounts` array with.
2476
2071
  sig { returns(String) }
2477
2072
  attr_accessor :discount
2478
-
2479
2073
  # An ID of an existing promotion code to replace the `discounts` array with.
2480
2074
  sig { returns(String) }
2481
2075
  attr_accessor :promotion_code
2482
-
2483
2076
  sig { params(coupon: String, discount: String, promotion_code: String).void }
2484
2077
  def initialize(coupon: nil, discount: nil, promotion_code: nil); end
2485
2078
  end
@@ -2490,11 +2083,9 @@ module Stripe
2490
2083
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2491
2084
  sig { returns(String) }
2492
2085
  attr_accessor :interval
2493
-
2494
2086
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2495
2087
  sig { returns(Integer) }
2496
2088
  attr_accessor :interval_count
2497
-
2498
2089
  sig { params(interval: String, interval_count: Integer).void }
2499
2090
  def initialize(interval: nil, interval_count: nil); end
2500
2091
  end
@@ -2503,15 +2094,12 @@ module Stripe
2503
2094
  returns(::Stripe::Quote::UpdateParams::Line::Action::SetItem::Discount::DiscountEnd::Duration)
2504
2095
  }
2505
2096
  attr_accessor :duration
2506
-
2507
2097
  # A precise Unix timestamp for the discount to end. Must be in the future.
2508
2098
  sig { returns(Integer) }
2509
2099
  attr_accessor :timestamp
2510
-
2511
2100
  # The type of calculation made to determine when the discount ends.
2512
2101
  sig { returns(String) }
2513
2102
  attr_accessor :type
2514
-
2515
2103
  sig {
2516
2104
  params(duration: ::Stripe::Quote::UpdateParams::Line::Action::SetItem::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
2517
2105
  }
@@ -2520,21 +2108,17 @@ module Stripe
2520
2108
  # ID of the coupon to create a new discount for.
2521
2109
  sig { returns(String) }
2522
2110
  attr_accessor :coupon
2523
-
2524
2111
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2525
2112
  sig { returns(String) }
2526
2113
  attr_accessor :discount
2527
-
2528
2114
  # Details to determine how long the discount should be applied for.
2529
2115
  sig {
2530
2116
  returns(::Stripe::Quote::UpdateParams::Line::Action::SetItem::Discount::DiscountEnd)
2531
2117
  }
2532
2118
  attr_accessor :discount_end
2533
-
2534
2119
  # ID of the promotion code to create a new discount for.
2535
2120
  sig { returns(String) }
2536
2121
  attr_accessor :promotion_code
2537
-
2538
2122
  sig {
2539
2123
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::UpdateParams::Line::Action::SetItem::Discount::DiscountEnd, promotion_code: String).void
2540
2124
  }
@@ -2549,11 +2133,9 @@ module Stripe
2549
2133
  # List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
2550
2134
  sig { returns(T::Array[String]) }
2551
2135
  attr_accessor :converts_to
2552
-
2553
2136
  # Determines the type of trial for this item.
2554
2137
  sig { returns(String) }
2555
2138
  attr_accessor :type
2556
-
2557
2139
  sig { params(converts_to: T::Array[String], type: String).void }
2558
2140
  def initialize(converts_to: nil, type: nil); end
2559
2141
  end
@@ -2562,27 +2144,21 @@ module Stripe
2562
2144
  returns(T::Array[::Stripe::Quote::UpdateParams::Line::Action::SetItem::Discount])
2563
2145
  }
2564
2146
  attr_accessor :discounts
2565
-
2566
2147
  # If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
2567
2148
  sig { returns(T::Hash[String, String]) }
2568
2149
  attr_accessor :metadata
2569
-
2570
2150
  # The ID of the price object.
2571
2151
  sig { returns(String) }
2572
2152
  attr_accessor :price
2573
-
2574
2153
  # If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
2575
2154
  sig { returns(Integer) }
2576
2155
  attr_accessor :quantity
2577
-
2578
2156
  # If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
2579
2157
  sig { returns(T::Array[String]) }
2580
2158
  attr_accessor :tax_rates
2581
-
2582
2159
  # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
2583
2160
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::SetItem::Trial) }
2584
2161
  attr_accessor :trial
2585
-
2586
2162
  sig {
2587
2163
  params(discounts: T::Array[::Stripe::Quote::UpdateParams::Line::Action::SetItem::Discount], metadata: T::Hash[String, String], price: String, quantity: Integer, tax_rates: T::Array[String], trial: ::Stripe::Quote::UpdateParams::Line::Action::SetItem::Trial).void
2588
2164
  }
@@ -2598,43 +2174,33 @@ module Stripe
2598
2174
  # Details for the `add_discount` type.
2599
2175
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::AddDiscount) }
2600
2176
  attr_accessor :add_discount
2601
-
2602
2177
  # Details for the `add_item` type.
2603
2178
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::AddItem) }
2604
2179
  attr_accessor :add_item
2605
-
2606
2180
  # Details for the `add_metadata` type: specify a hash of key-value pairs.
2607
2181
  sig { returns(T::Hash[String, String]) }
2608
2182
  attr_accessor :add_metadata
2609
-
2610
2183
  # Details for the `remove_discount` type.
2611
2184
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::RemoveDiscount) }
2612
2185
  attr_accessor :remove_discount
2613
-
2614
2186
  # Details for the `remove_item` type.
2615
2187
  sig { returns(::Stripe::Quote::UpdateParams::Line::Action::RemoveItem) }
2616
2188
  attr_accessor :remove_item
2617
-
2618
2189
  # Details for the `remove_metadata` type: specify an array of metadata keys.
2619
2190
  sig { returns(T::Array[String]) }
2620
2191
  attr_accessor :remove_metadata
2621
-
2622
2192
  # Details for the `set_discounts` type.
2623
2193
  sig { returns(T::Array[::Stripe::Quote::UpdateParams::Line::Action::SetDiscount]) }
2624
2194
  attr_accessor :set_discounts
2625
-
2626
2195
  # Details for the `set_items` type.
2627
2196
  sig { returns(T::Array[::Stripe::Quote::UpdateParams::Line::Action::SetItem]) }
2628
2197
  attr_accessor :set_items
2629
-
2630
2198
  # Details for the `set_metadata` type: specify an array of key-value pairs.
2631
2199
  sig { returns(T.nilable(T::Hash[String, String])) }
2632
2200
  attr_accessor :set_metadata
2633
-
2634
2201
  # The type of action the quote line performs.
2635
2202
  sig { returns(String) }
2636
2203
  attr_accessor :type
2637
-
2638
2204
  sig {
2639
2205
  params(add_discount: ::Stripe::Quote::UpdateParams::Line::Action::AddDiscount, add_item: ::Stripe::Quote::UpdateParams::Line::Action::AddItem, add_metadata: T::Hash[String, String], remove_discount: ::Stripe::Quote::UpdateParams::Line::Action::RemoveDiscount, remove_item: ::Stripe::Quote::UpdateParams::Line::Action::RemoveItem, remove_metadata: T::Array[String], set_discounts: T::Array[::Stripe::Quote::UpdateParams::Line::Action::SetDiscount], set_items: T::Array[::Stripe::Quote::UpdateParams::Line::Action::SetItem], set_metadata: T.nilable(T::Hash[String, String]), type: String).void
2640
2206
  }
@@ -2655,15 +2221,12 @@ module Stripe
2655
2221
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
2656
2222
  sig { returns(String) }
2657
2223
  attr_accessor :new_reference
2658
-
2659
2224
  # The ID of the schedule the line applies to.
2660
2225
  sig { returns(String) }
2661
2226
  attr_accessor :subscription_schedule
2662
-
2663
2227
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
2664
2228
  sig { returns(String) }
2665
2229
  attr_accessor :type
2666
-
2667
2230
  sig { params(new_reference: String, subscription_schedule: String, type: String).void }
2668
2231
  def initialize(new_reference: nil, subscription_schedule: nil, type: nil); end
2669
2232
  end
@@ -2671,15 +2234,12 @@ module Stripe
2671
2234
  # Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
2672
2235
  sig { returns(String) }
2673
2236
  attr_accessor :cancel_at
2674
-
2675
2237
  # If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
2676
2238
  sig { returns(T::Boolean) }
2677
2239
  attr_accessor :invoice_now
2678
-
2679
2240
  # If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
2680
2241
  sig { returns(T::Boolean) }
2681
2242
  attr_accessor :prorate
2682
-
2683
2243
  sig { params(cancel_at: String, invoice_now: T::Boolean, prorate: T::Boolean).void }
2684
2244
  def initialize(cancel_at: nil, invoice_now: nil, prorate: nil); end
2685
2245
  end
@@ -2688,7 +2248,6 @@ module Stripe
2688
2248
  # The ID of a specific discount.
2689
2249
  sig { returns(String) }
2690
2250
  attr_accessor :discount
2691
-
2692
2251
  sig { params(discount: String).void }
2693
2252
  def initialize(discount: nil); end
2694
2253
  end
@@ -2696,30 +2255,24 @@ module Stripe
2696
2255
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2697
2256
  sig { returns(String) }
2698
2257
  attr_accessor :interval
2699
-
2700
2258
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2701
2259
  sig { returns(Integer) }
2702
2260
  attr_accessor :interval_count
2703
-
2704
2261
  sig { params(interval: String, interval_count: Integer).void }
2705
2262
  def initialize(interval: nil, interval_count: nil); end
2706
2263
  end
2707
2264
  # Use the `end` time of a given discount.
2708
2265
  sig { returns(::Stripe::Quote::UpdateParams::Line::EndsAt::DiscountEnd) }
2709
2266
  attr_accessor :discount_end
2710
-
2711
2267
  # Time span for the quote line starting from the `starts_at` date.
2712
2268
  sig { returns(::Stripe::Quote::UpdateParams::Line::EndsAt::Duration) }
2713
2269
  attr_accessor :duration
2714
-
2715
2270
  # A precise Unix timestamp.
2716
2271
  sig { returns(Integer) }
2717
2272
  attr_accessor :timestamp
2718
-
2719
2273
  # Select a way to pass in `ends_at`.
2720
2274
  sig { returns(String) }
2721
2275
  attr_accessor :type
2722
-
2723
2276
  sig {
2724
2277
  params(discount_end: ::Stripe::Quote::UpdateParams::Line::EndsAt::DiscountEnd, duration: ::Stripe::Quote::UpdateParams::Line::EndsAt::Duration, timestamp: Integer, type: String).void
2725
2278
  }
@@ -2730,18 +2283,15 @@ module Stripe
2730
2283
  # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
2731
2284
  sig { returns(String) }
2732
2285
  attr_accessor :behavior
2733
-
2734
2286
  sig { params(behavior: String).void }
2735
2287
  def initialize(behavior: nil); end
2736
2288
  end
2737
2289
  # Details of the pause_collection behavior to apply to the amendment.
2738
2290
  sig { returns(::Stripe::Quote::UpdateParams::Line::SetPauseCollection::Set) }
2739
2291
  attr_accessor :set
2740
-
2741
2292
  # Determines the type of the pause_collection amendment.
2742
2293
  sig { returns(String) }
2743
2294
  attr_accessor :type
2744
-
2745
2295
  sig {
2746
2296
  params(set: ::Stripe::Quote::UpdateParams::Line::SetPauseCollection::Set, type: String).void
2747
2297
  }
@@ -2752,7 +2302,6 @@ module Stripe
2752
2302
  # The ID of a specific discount.
2753
2303
  sig { returns(String) }
2754
2304
  attr_accessor :discount
2755
-
2756
2305
  sig { params(discount: String).void }
2757
2306
  def initialize(discount: nil); end
2758
2307
  end
@@ -2760,30 +2309,24 @@ module Stripe
2760
2309
  # The ID of a quote line.
2761
2310
  sig { returns(String) }
2762
2311
  attr_accessor :id
2763
-
2764
2312
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
2765
2313
  sig { returns(Integer) }
2766
2314
  attr_accessor :index
2767
-
2768
2315
  sig { params(id: String, index: Integer).void }
2769
2316
  def initialize(id: nil, index: nil); end
2770
2317
  end
2771
2318
  # Use the `end` time of a given discount.
2772
2319
  sig { returns(::Stripe::Quote::UpdateParams::Line::StartsAt::DiscountEnd) }
2773
2320
  attr_accessor :discount_end
2774
-
2775
2321
  # The timestamp the given line ends at.
2776
2322
  sig { returns(::Stripe::Quote::UpdateParams::Line::StartsAt::LineEndsAt) }
2777
2323
  attr_accessor :line_ends_at
2778
-
2779
2324
  # A precise Unix timestamp.
2780
2325
  sig { returns(Integer) }
2781
2326
  attr_accessor :timestamp
2782
-
2783
2327
  # Select a way to pass in `starts_at`.
2784
2328
  sig { returns(String) }
2785
2329
  attr_accessor :type
2786
-
2787
2330
  sig {
2788
2331
  params(discount_end: ::Stripe::Quote::UpdateParams::Line::StartsAt::DiscountEnd, line_ends_at: ::Stripe::Quote::UpdateParams::Line::StartsAt::LineEndsAt, timestamp: Integer, type: String).void
2789
2332
  }
@@ -2794,14 +2337,12 @@ module Stripe
2794
2337
  # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
2795
2338
  sig { returns(String) }
2796
2339
  attr_accessor :prorate_up_front
2797
-
2798
2340
  sig { params(prorate_up_front: String).void }
2799
2341
  def initialize(prorate_up_front: nil); end
2800
2342
  end
2801
2343
  # Defines how the subscription should behave when a trial ends.
2802
2344
  sig { returns(::Stripe::Quote::UpdateParams::Line::TrialSettings::EndBehavior) }
2803
2345
  attr_accessor :end_behavior
2804
-
2805
2346
  sig {
2806
2347
  params(end_behavior: ::Stripe::Quote::UpdateParams::Line::TrialSettings::EndBehavior).void
2807
2348
  }
@@ -2810,47 +2351,36 @@ module Stripe
2810
2351
  # An array of operations the quote line performs.
2811
2352
  sig { returns(T::Array[::Stripe::Quote::UpdateParams::Line::Action]) }
2812
2353
  attr_accessor :actions
2813
-
2814
2354
  # Details to identify the subscription schedule the quote line applies to.
2815
2355
  sig { returns(::Stripe::Quote::UpdateParams::Line::AppliesTo) }
2816
2356
  attr_accessor :applies_to
2817
-
2818
2357
  # For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
2819
2358
  sig { returns(String) }
2820
2359
  attr_accessor :billing_cycle_anchor
2821
-
2822
2360
  # A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
2823
2361
  sig { returns(::Stripe::Quote::UpdateParams::Line::CancelSubscriptionSchedule) }
2824
2362
  attr_accessor :cancel_subscription_schedule
2825
-
2826
2363
  # Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
2827
2364
  sig { returns(::Stripe::Quote::UpdateParams::Line::EndsAt) }
2828
2365
  attr_accessor :ends_at
2829
-
2830
2366
  # The ID of an existing line on the quote.
2831
2367
  sig { returns(String) }
2832
2368
  attr_accessor :id
2833
-
2834
2369
  # Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
2835
2370
  sig { returns(String) }
2836
2371
  attr_accessor :proration_behavior
2837
-
2838
2372
  # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
2839
2373
  sig { returns(::Stripe::Quote::UpdateParams::Line::SetPauseCollection) }
2840
2374
  attr_accessor :set_pause_collection
2841
-
2842
2375
  # Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
2843
2376
  sig { returns(String) }
2844
2377
  attr_accessor :set_schedule_end
2845
-
2846
2378
  # Details to identify the earliest timestamp where the proposed change should take effect.
2847
2379
  sig { returns(::Stripe::Quote::UpdateParams::Line::StartsAt) }
2848
2380
  attr_accessor :starts_at
2849
-
2850
2381
  # Settings related to subscription trials.
2851
2382
  sig { returns(::Stripe::Quote::UpdateParams::Line::TrialSettings) }
2852
2383
  attr_accessor :trial_settings
2853
-
2854
2384
  sig {
2855
2385
  params(actions: T::Array[::Stripe::Quote::UpdateParams::Line::Action], applies_to: ::Stripe::Quote::UpdateParams::Line::AppliesTo, billing_cycle_anchor: String, cancel_subscription_schedule: ::Stripe::Quote::UpdateParams::Line::CancelSubscriptionSchedule, ends_at: ::Stripe::Quote::UpdateParams::Line::EndsAt, id: String, proration_behavior: String, set_pause_collection: ::Stripe::Quote::UpdateParams::Line::SetPauseCollection, set_schedule_end: String, starts_at: ::Stripe::Quote::UpdateParams::Line::StartsAt, trial_settings: ::Stripe::Quote::UpdateParams::Line::TrialSettings).void
2856
2386
  }
@@ -2875,11 +2405,9 @@ module Stripe
2875
2405
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2876
2406
  sig { returns(String) }
2877
2407
  attr_accessor :interval
2878
-
2879
2408
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2880
2409
  sig { returns(Integer) }
2881
2410
  attr_accessor :interval_count
2882
-
2883
2411
  sig { params(interval: String, interval_count: Integer).void }
2884
2412
  def initialize(interval: nil, interval_count: nil); end
2885
2413
  end
@@ -2888,15 +2416,12 @@ module Stripe
2888
2416
  returns(::Stripe::Quote::UpdateParams::LineItem::Discount::DiscountEnd::Duration)
2889
2417
  }
2890
2418
  attr_accessor :duration
2891
-
2892
2419
  # A precise Unix timestamp for the discount to end. Must be in the future.
2893
2420
  sig { returns(Integer) }
2894
2421
  attr_accessor :timestamp
2895
-
2896
2422
  # The type of calculation made to determine when the discount ends.
2897
2423
  sig { returns(String) }
2898
2424
  attr_accessor :type
2899
-
2900
2425
  sig {
2901
2426
  params(duration: ::Stripe::Quote::UpdateParams::LineItem::Discount::DiscountEnd::Duration, timestamp: Integer, type: String).void
2902
2427
  }
@@ -2905,19 +2430,15 @@ module Stripe
2905
2430
  # ID of the coupon to create a new discount for.
2906
2431
  sig { returns(String) }
2907
2432
  attr_accessor :coupon
2908
-
2909
2433
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2910
2434
  sig { returns(String) }
2911
2435
  attr_accessor :discount
2912
-
2913
2436
  # Details to determine how long the discount should be applied for.
2914
2437
  sig { returns(::Stripe::Quote::UpdateParams::LineItem::Discount::DiscountEnd) }
2915
2438
  attr_accessor :discount_end
2916
-
2917
2439
  # ID of the promotion code to create a new discount for.
2918
2440
  sig { returns(String) }
2919
2441
  attr_accessor :promotion_code
2920
-
2921
2442
  sig {
2922
2443
  params(coupon: String, discount: String, discount_end: ::Stripe::Quote::UpdateParams::LineItem::Discount::DiscountEnd, promotion_code: String).void
2923
2444
  }
@@ -2928,38 +2449,30 @@ module Stripe
2928
2449
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
2929
2450
  sig { returns(String) }
2930
2451
  attr_accessor :interval
2931
-
2932
2452
  # 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).
2933
2453
  sig { returns(Integer) }
2934
2454
  attr_accessor :interval_count
2935
-
2936
2455
  sig { params(interval: String, interval_count: Integer).void }
2937
2456
  def initialize(interval: nil, interval_count: nil); end
2938
2457
  end
2939
2458
  # 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).
2940
2459
  sig { returns(String) }
2941
2460
  attr_accessor :currency
2942
-
2943
2461
  # The ID of the product that this price will belong to.
2944
2462
  sig { returns(String) }
2945
2463
  attr_accessor :product
2946
-
2947
2464
  # The recurring components of a price such as `interval` and `interval_count`.
2948
2465
  sig { returns(::Stripe::Quote::UpdateParams::LineItem::PriceData::Recurring) }
2949
2466
  attr_accessor :recurring
2950
-
2951
2467
  # 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.
2952
2468
  sig { returns(String) }
2953
2469
  attr_accessor :tax_behavior
2954
-
2955
2470
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
2956
2471
  sig { returns(Integer) }
2957
2472
  attr_accessor :unit_amount
2958
-
2959
2473
  # 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.
2960
2474
  sig { returns(String) }
2961
2475
  attr_accessor :unit_amount_decimal
2962
-
2963
2476
  sig {
2964
2477
  params(currency: String, product: String, recurring: ::Stripe::Quote::UpdateParams::LineItem::PriceData::Recurring, tax_behavior: String, unit_amount: Integer, unit_amount_decimal: String).void
2965
2478
  }
@@ -2975,27 +2488,21 @@ module Stripe
2975
2488
  # The discounts applied to this line item.
2976
2489
  sig { returns(T.nilable(T::Array[::Stripe::Quote::UpdateParams::LineItem::Discount])) }
2977
2490
  attr_accessor :discounts
2978
-
2979
2491
  # The ID of an existing line item on the quote.
2980
2492
  sig { returns(String) }
2981
2493
  attr_accessor :id
2982
-
2983
2494
  # The ID of the price object. One of `price` or `price_data` is required.
2984
2495
  sig { returns(String) }
2985
2496
  attr_accessor :price
2986
-
2987
2497
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
2988
2498
  sig { returns(::Stripe::Quote::UpdateParams::LineItem::PriceData) }
2989
2499
  attr_accessor :price_data
2990
-
2991
2500
  # The quantity of the line item.
2992
2501
  sig { returns(Integer) }
2993
2502
  attr_accessor :quantity
2994
-
2995
2503
  # 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.
2996
2504
  sig { returns(T.nilable(T::Array[String])) }
2997
2505
  attr_accessor :tax_rates
2998
-
2999
2506
  sig {
3000
2507
  params(discounts: T.nilable(T::Array[::Stripe::Quote::UpdateParams::LineItem::Discount]), id: String, price: String, price_data: ::Stripe::Quote::UpdateParams::LineItem::PriceData, quantity: Integer, tax_rates: T.nilable(T::Array[String])).void
3001
2508
  }
@@ -3015,11 +2522,9 @@ module Stripe
3015
2522
  # The ID of a quote line.
3016
2523
  sig { returns(String) }
3017
2524
  attr_accessor :id
3018
-
3019
2525
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
3020
2526
  sig { returns(Integer) }
3021
2527
  attr_accessor :index
3022
-
3023
2528
  sig { params(id: String, index: Integer).void }
3024
2529
  def initialize(id: nil, index: nil); end
3025
2530
  end
@@ -3028,15 +2533,12 @@ module Stripe
3028
2533
  returns(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillFrom::LineStartsAt)
3029
2534
  }
3030
2535
  attr_accessor :line_starts_at
3031
-
3032
2536
  # A precise Unix timestamp.
3033
2537
  sig { returns(Integer) }
3034
2538
  attr_accessor :timestamp
3035
-
3036
2539
  # The type of method to specify the `bill_from` time.
3037
2540
  sig { returns(String) }
3038
2541
  attr_accessor :type
3039
-
3040
2542
  sig {
3041
2543
  params(line_starts_at: ::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillFrom::LineStartsAt, timestamp: Integer, type: String).void
3042
2544
  }
@@ -3047,11 +2549,9 @@ module Stripe
3047
2549
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3048
2550
  sig { returns(String) }
3049
2551
  attr_accessor :interval
3050
-
3051
2552
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3052
2553
  sig { returns(Integer) }
3053
2554
  attr_accessor :interval_count
3054
-
3055
2555
  sig { params(interval: String, interval_count: Integer).void }
3056
2556
  def initialize(interval: nil, interval_count: nil); end
3057
2557
  end
@@ -3059,11 +2559,9 @@ module Stripe
3059
2559
  # The ID of a quote line.
3060
2560
  sig { returns(String) }
3061
2561
  attr_accessor :id
3062
-
3063
2562
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
3064
2563
  sig { returns(Integer) }
3065
2564
  attr_accessor :index
3066
-
3067
2565
  sig { params(id: String, index: Integer).void }
3068
2566
  def initialize(id: nil, index: nil); end
3069
2567
  end
@@ -3072,21 +2570,17 @@ module Stripe
3072
2570
  returns(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillUntil::Duration)
3073
2571
  }
3074
2572
  attr_accessor :duration
3075
-
3076
2573
  # Details of a Quote line item from which to bill until.
3077
2574
  sig {
3078
2575
  returns(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillUntil::LineEndsAt)
3079
2576
  }
3080
2577
  attr_accessor :line_ends_at
3081
-
3082
2578
  # A precise Unix timestamp.
3083
2579
  sig { returns(Integer) }
3084
2580
  attr_accessor :timestamp
3085
-
3086
2581
  # The type of method to specify the `bill_until` time.
3087
2582
  sig { returns(String) }
3088
2583
  attr_accessor :type
3089
-
3090
2584
  sig {
3091
2585
  params(duration: ::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillUntil::Duration, line_ends_at: ::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillUntil::LineEndsAt, timestamp: Integer, type: String).void
3092
2586
  }
@@ -3097,13 +2591,11 @@ module Stripe
3097
2591
  returns(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillFrom)
3098
2592
  }
3099
2593
  attr_accessor :bill_from
3100
-
3101
2594
  # The end of the period to bill until when the Quote is accepted.
3102
2595
  sig {
3103
2596
  returns(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillUntil)
3104
2597
  }
3105
2598
  attr_accessor :bill_until
3106
-
3107
2599
  sig {
3108
2600
  params(bill_from: ::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillFrom, bill_until: ::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance::BillUntil).void
3109
2601
  }
@@ -3113,7 +2605,6 @@ module Stripe
3113
2605
  # This is used to determine the number of billing cycles to prebill.
3114
2606
  sig { returns(Integer) }
3115
2607
  attr_accessor :iterations
3116
-
3117
2608
  sig { params(iterations: Integer).void }
3118
2609
  def initialize(iterations: nil); end
3119
2610
  end
@@ -3122,35 +2613,27 @@ module Stripe
3122
2613
  returns(T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance))
3123
2614
  }
3124
2615
  attr_accessor :bill_on_acceptance
3125
-
3126
2616
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
3127
2617
  sig { returns(String) }
3128
2618
  attr_accessor :billing_behavior
3129
-
3130
2619
  # When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
3131
2620
  sig { returns(T.nilable(String)) }
3132
2621
  attr_accessor :billing_cycle_anchor
3133
-
3134
2622
  # 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.
3135
2623
  sig { returns(T.nilable(String)) }
3136
2624
  attr_accessor :description
3137
-
3138
2625
  # 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.
3139
2626
  sig { returns(T.nilable(T.any(String, Integer))) }
3140
2627
  attr_accessor :effective_date
3141
-
3142
2628
  # Behavior of the subscription schedule and underlying subscription when it ends.
3143
2629
  sig { returns(String) }
3144
2630
  attr_accessor :end_behavior
3145
-
3146
2631
  # 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.
3147
2632
  sig { returns(T::Hash[String, String]) }
3148
2633
  attr_accessor :metadata
3149
-
3150
2634
  # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
3151
2635
  sig { returns(T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData::Prebilling)) }
3152
2636
  attr_accessor :prebilling
3153
-
3154
2637
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
3155
2638
  #
3156
2639
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -3160,11 +2643,9 @@ module Stripe
3160
2643
  # Prorations can be disabled by passing `none`.
3161
2644
  sig { returns(String) }
3162
2645
  attr_accessor :proration_behavior
3163
-
3164
2646
  # Integer representing the number of trial period days before the customer is charged for the first time.
3165
2647
  sig { returns(T.nilable(Integer)) }
3166
2648
  attr_accessor :trial_period_days
3167
-
3168
2649
  sig {
3169
2650
  params(bill_on_acceptance: T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData::BillOnAcceptance), billing_behavior: String, billing_cycle_anchor: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(T.any(String, Integer)), end_behavior: String, metadata: T::Hash[String, String], prebilling: T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData::Prebilling), proration_behavior: String, trial_period_days: T.nilable(Integer)).void
3170
2651
  }
@@ -3186,15 +2667,12 @@ module Stripe
3186
2667
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
3187
2668
  sig { returns(String) }
3188
2669
  attr_accessor :new_reference
3189
-
3190
2670
  # The ID of the schedule the line applies to.
3191
2671
  sig { returns(String) }
3192
2672
  attr_accessor :subscription_schedule
3193
-
3194
2673
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
3195
2674
  sig { returns(String) }
3196
2675
  attr_accessor :type
3197
-
3198
2676
  sig { params(new_reference: String, subscription_schedule: String, type: String).void }
3199
2677
  def initialize(new_reference: nil, subscription_schedule: nil, type: nil); end
3200
2678
  end
@@ -3204,11 +2682,9 @@ module Stripe
3204
2682
  # The ID of a quote line.
3205
2683
  sig { returns(String) }
3206
2684
  attr_accessor :id
3207
-
3208
2685
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
3209
2686
  sig { returns(Integer) }
3210
2687
  attr_accessor :index
3211
-
3212
2688
  sig { params(id: String, index: Integer).void }
3213
2689
  def initialize(id: nil, index: nil); end
3214
2690
  end
@@ -3217,15 +2693,12 @@ module Stripe
3217
2693
  returns(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom::LineStartsAt)
3218
2694
  }
3219
2695
  attr_accessor :line_starts_at
3220
-
3221
2696
  # A precise Unix timestamp.
3222
2697
  sig { returns(Integer) }
3223
2698
  attr_accessor :timestamp
3224
-
3225
2699
  # The type of method to specify the `bill_from` time.
3226
2700
  sig { returns(String) }
3227
2701
  attr_accessor :type
3228
-
3229
2702
  sig {
3230
2703
  params(line_starts_at: ::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom::LineStartsAt, timestamp: Integer, type: String).void
3231
2704
  }
@@ -3236,11 +2709,9 @@ module Stripe
3236
2709
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3237
2710
  sig { returns(String) }
3238
2711
  attr_accessor :interval
3239
-
3240
2712
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3241
2713
  sig { returns(Integer) }
3242
2714
  attr_accessor :interval_count
3243
-
3244
2715
  sig { params(interval: String, interval_count: Integer).void }
3245
2716
  def initialize(interval: nil, interval_count: nil); end
3246
2717
  end
@@ -3248,11 +2719,9 @@ module Stripe
3248
2719
  # The ID of a quote line.
3249
2720
  sig { returns(String) }
3250
2721
  attr_accessor :id
3251
-
3252
2722
  # The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
3253
2723
  sig { returns(Integer) }
3254
2724
  attr_accessor :index
3255
-
3256
2725
  sig { params(id: String, index: Integer).void }
3257
2726
  def initialize(id: nil, index: nil); end
3258
2727
  end
@@ -3261,21 +2730,17 @@ module Stripe
3261
2730
  returns(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::Duration)
3262
2731
  }
3263
2732
  attr_accessor :duration
3264
-
3265
2733
  # Details of a Quote line item from which to bill until.
3266
2734
  sig {
3267
2735
  returns(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::LineEndsAt)
3268
2736
  }
3269
2737
  attr_accessor :line_ends_at
3270
-
3271
2738
  # A precise Unix timestamp.
3272
2739
  sig { returns(Integer) }
3273
2740
  attr_accessor :timestamp
3274
-
3275
2741
  # The type of method to specify the `bill_until` time.
3276
2742
  sig { returns(String) }
3277
2743
  attr_accessor :type
3278
-
3279
2744
  sig {
3280
2745
  params(duration: ::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::Duration, line_ends_at: ::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil::LineEndsAt, timestamp: Integer, type: String).void
3281
2746
  }
@@ -3286,13 +2751,11 @@ module Stripe
3286
2751
  returns(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom)
3287
2752
  }
3288
2753
  attr_accessor :bill_from
3289
-
3290
2754
  # The end of the period to bill until when the Quote is accepted.
3291
2755
  sig {
3292
2756
  returns(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil)
3293
2757
  }
3294
2758
  attr_accessor :bill_until
3295
-
3296
2759
  sig {
3297
2760
  params(bill_from: ::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillFrom, bill_until: ::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance::BillUntil).void
3298
2761
  }
@@ -3301,29 +2764,23 @@ module Stripe
3301
2764
  # Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
3302
2765
  sig { returns(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::AppliesTo) }
3303
2766
  attr_accessor :applies_to
3304
-
3305
2767
  # Describes the period to bill for upon accepting the quote.
3306
2768
  sig {
3307
2769
  returns(T.nilable(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance))
3308
2770
  }
3309
2771
  attr_accessor :bill_on_acceptance
3310
-
3311
2772
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
3312
2773
  sig { returns(String) }
3313
2774
  attr_accessor :billing_behavior
3314
-
3315
2775
  # The customer the Subscription Data override applies to.
3316
2776
  sig { returns(String) }
3317
2777
  attr_accessor :customer
3318
-
3319
2778
  # 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.
3320
2779
  sig { returns(T.nilable(String)) }
3321
2780
  attr_accessor :description
3322
-
3323
2781
  # Behavior of the subscription schedule and underlying subscription when it ends.
3324
2782
  sig { returns(String) }
3325
2783
  attr_accessor :end_behavior
3326
-
3327
2784
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
3328
2785
  #
3329
2786
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -3333,7 +2790,6 @@ module Stripe
3333
2790
  # Prorations can be disabled by passing `none`.
3334
2791
  sig { returns(String) }
3335
2792
  attr_accessor :proration_behavior
3336
-
3337
2793
  sig {
3338
2794
  params(applies_to: ::Stripe::Quote::UpdateParams::SubscriptionDataOverride::AppliesTo, bill_on_acceptance: T.nilable(::Stripe::Quote::UpdateParams::SubscriptionDataOverride::BillOnAcceptance), billing_behavior: String, customer: String, description: T.nilable(String), end_behavior: String, proration_behavior: String).void
3339
2795
  }
@@ -3351,102 +2807,78 @@ module Stripe
3351
2807
  # 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.
3352
2808
  sig { returns(Integer) }
3353
2809
  attr_accessor :amount
3354
-
3355
2810
  # 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.
3356
2811
  sig { returns(Float) }
3357
2812
  attr_accessor :amount_percent
3358
-
3359
2813
  # ID of an existing, connected Stripe account.
3360
2814
  sig { returns(String) }
3361
2815
  attr_accessor :destination
3362
-
3363
2816
  sig { params(amount: Integer, amount_percent: Float, destination: String).void }
3364
2817
  def initialize(amount: nil, amount_percent: nil, destination: nil); end
3365
2818
  end
3366
2819
  # Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
3367
2820
  sig { returns(T::Boolean) }
3368
2821
  attr_accessor :allow_backdated_lines
3369
-
3370
2822
  # 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.
3371
2823
  sig { returns(T.nilable(Integer)) }
3372
2824
  attr_accessor :application_fee_amount
3373
-
3374
2825
  # 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.
3375
2826
  sig { returns(T.nilable(Float)) }
3376
2827
  attr_accessor :application_fee_percent
3377
-
3378
2828
  # Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
3379
2829
  sig { returns(::Stripe::Quote::UpdateParams::AutomaticTax) }
3380
2830
  attr_accessor :automatic_tax
3381
-
3382
2831
  # 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`.
3383
2832
  sig { returns(String) }
3384
2833
  attr_accessor :collection_method
3385
-
3386
2834
  # The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
3387
2835
  sig { returns(String) }
3388
2836
  attr_accessor :customer
3389
-
3390
2837
  # The tax rates that will apply to any line item that does not have `tax_rates` set.
3391
2838
  sig { returns(T.nilable(T::Array[String])) }
3392
2839
  attr_accessor :default_tax_rates
3393
-
3394
2840
  # A description that will be displayed on the quote PDF.
3395
2841
  sig { returns(T.nilable(String)) }
3396
2842
  attr_accessor :description
3397
-
3398
2843
  # The discounts applied to the quote.
3399
2844
  sig { returns(T.nilable(T::Array[::Stripe::Quote::UpdateParams::Discount])) }
3400
2845
  attr_accessor :discounts
3401
-
3402
2846
  # Specifies which fields in the response should be expanded.
3403
2847
  sig { returns(T::Array[String]) }
3404
2848
  attr_accessor :expand
3405
-
3406
2849
  # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
3407
2850
  sig { returns(Integer) }
3408
2851
  attr_accessor :expires_at
3409
-
3410
2852
  # A footer that will be displayed on the quote PDF.
3411
2853
  sig { returns(T.nilable(String)) }
3412
2854
  attr_accessor :footer
3413
-
3414
2855
  # A header that will be displayed on the quote PDF.
3415
2856
  sig { returns(T.nilable(String)) }
3416
2857
  attr_accessor :header
3417
-
3418
2858
  # All invoices will be billed using the specified settings.
3419
2859
  sig { returns(::Stripe::Quote::UpdateParams::InvoiceSettings) }
3420
2860
  attr_accessor :invoice_settings
3421
-
3422
2861
  # 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.
3423
2862
  sig { returns(T::Array[::Stripe::Quote::UpdateParams::LineItem]) }
3424
2863
  attr_accessor :line_items
3425
-
3426
2864
  # A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
3427
2865
  sig { returns(T::Array[::Stripe::Quote::UpdateParams::Line]) }
3428
2866
  attr_accessor :lines
3429
-
3430
2867
  # 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`.
3431
2868
  sig { returns(T::Hash[String, String]) }
3432
2869
  attr_accessor :metadata
3433
-
3434
2870
  # The account on behalf of which to charge.
3435
2871
  sig { returns(T.nilable(String)) }
3436
2872
  attr_accessor :on_behalf_of
3437
-
3438
2873
  # 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.
3439
2874
  sig { returns(::Stripe::Quote::UpdateParams::SubscriptionData) }
3440
2875
  attr_accessor :subscription_data
3441
-
3442
2876
  # List representing overrides for `subscription_data` configurations for specific subscription schedules.
3443
2877
  sig { returns(T.nilable(T::Array[::Stripe::Quote::UpdateParams::SubscriptionDataOverride])) }
3444
2878
  attr_accessor :subscription_data_overrides
3445
-
3446
2879
  # The data with which to automatically create a Transfer for each of the invoices.
3447
2880
  sig { returns(T.nilable(::Stripe::Quote::UpdateParams::TransferData)) }
3448
2881
  attr_accessor :transfer_data
3449
-
3450
2882
  sig {
3451
2883
  params(allow_backdated_lines: T::Boolean, application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: ::Stripe::Quote::UpdateParams::AutomaticTax, collection_method: String, customer: String, default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), discounts: T.nilable(T::Array[::Stripe::Quote::UpdateParams::Discount]), expand: T::Array[String], expires_at: Integer, footer: T.nilable(String), header: T.nilable(String), invoice_settings: ::Stripe::Quote::UpdateParams::InvoiceSettings, line_items: T::Array[::Stripe::Quote::UpdateParams::LineItem], lines: T::Array[::Stripe::Quote::UpdateParams::Line], metadata: T::Hash[String, String], on_behalf_of: T.nilable(String), subscription_data: ::Stripe::Quote::UpdateParams::SubscriptionData, subscription_data_overrides: T.nilable(T::Array[::Stripe::Quote::UpdateParams::SubscriptionDataOverride]), transfer_data: T.nilable(::Stripe::Quote::UpdateParams::TransferData)).void
3452
2884
  }
@@ -3478,19 +2910,15 @@ module Stripe
3478
2910
  # 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.
3479
2911
  sig { returns(String) }
3480
2912
  attr_accessor :ending_before
3481
-
3482
2913
  # Specifies which fields in the response should be expanded.
3483
2914
  sig { returns(T::Array[String]) }
3484
2915
  attr_accessor :expand
3485
-
3486
2916
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3487
2917
  sig { returns(Integer) }
3488
2918
  attr_accessor :limit
3489
-
3490
2919
  # 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.
3491
2920
  sig { returns(String) }
3492
2921
  attr_accessor :starting_after
3493
-
3494
2922
  sig {
3495
2923
  params(ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
3496
2924
  }
@@ -3500,19 +2928,15 @@ module Stripe
3500
2928
  # 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.
3501
2929
  sig { returns(String) }
3502
2930
  attr_accessor :ending_before
3503
-
3504
2931
  # Specifies which fields in the response should be expanded.
3505
2932
  sig { returns(T::Array[String]) }
3506
2933
  attr_accessor :expand
3507
-
3508
2934
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3509
2935
  sig { returns(Integer) }
3510
2936
  attr_accessor :limit
3511
-
3512
2937
  # 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.
3513
2938
  sig { returns(String) }
3514
2939
  attr_accessor :starting_after
3515
-
3516
2940
  sig {
3517
2941
  params(ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
3518
2942
  }
@@ -3522,19 +2946,15 @@ module Stripe
3522
2946
  # 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.
3523
2947
  sig { returns(String) }
3524
2948
  attr_accessor :ending_before
3525
-
3526
2949
  # Specifies which fields in the response should be expanded.
3527
2950
  sig { returns(T::Array[String]) }
3528
2951
  attr_accessor :expand
3529
-
3530
2952
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3531
2953
  sig { returns(Integer) }
3532
2954
  attr_accessor :limit
3533
-
3534
2955
  # 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.
3535
2956
  sig { returns(String) }
3536
2957
  attr_accessor :starting_after
3537
-
3538
2958
  sig {
3539
2959
  params(ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
3540
2960
  }
@@ -3544,7 +2964,6 @@ module Stripe
3544
2964
  # Specifies which fields in the response should be expanded.
3545
2965
  sig { returns(T::Array[String]) }
3546
2966
  attr_accessor :expand
3547
-
3548
2967
  sig { params(expand: T::Array[String]).void }
3549
2968
  def initialize(expand: nil); end
3550
2969
  end
@@ -3552,7 +2971,6 @@ module Stripe
3552
2971
  # Specifies which fields in the response should be expanded.
3553
2972
  sig { returns(T::Array[String]) }
3554
2973
  attr_accessor :expand
3555
-
3556
2974
  sig { params(expand: T::Array[String]).void }
3557
2975
  def initialize(expand: nil); end
3558
2976
  end
@@ -3560,11 +2978,9 @@ module Stripe
3560
2978
  # Specifies which fields in the response should be expanded.
3561
2979
  sig { returns(T::Array[String]) }
3562
2980
  attr_accessor :expand
3563
-
3564
2981
  # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
3565
2982
  sig { returns(Integer) }
3566
2983
  attr_accessor :expires_at
3567
-
3568
2984
  sig { params(expand: T::Array[String], expires_at: Integer).void }
3569
2985
  def initialize(expand: nil, expires_at: nil); end
3570
2986
  end
@@ -3572,7 +2988,6 @@ module Stripe
3572
2988
  # Specifies which fields in the response should be expanded.
3573
2989
  sig { returns(T::Array[String]) }
3574
2990
  attr_accessor :expand
3575
-
3576
2991
  sig { params(expand: T::Array[String]).void }
3577
2992
  def initialize(expand: nil); end
3578
2993
  end
@@ -3580,11 +2995,9 @@ module Stripe
3580
2995
  # Specifies which fields in the response should be expanded.
3581
2996
  sig { returns(T::Array[String]) }
3582
2997
  attr_accessor :expand
3583
-
3584
2998
  # Reason the Quote is being marked stale.
3585
2999
  sig { returns(String) }
3586
3000
  attr_accessor :reason
3587
-
3588
3001
  sig { params(expand: T::Array[String], reason: String).void }
3589
3002
  def initialize(expand: nil, reason: nil); end
3590
3003
  end
@@ -3592,7 +3005,6 @@ module Stripe
3592
3005
  # Specifies which fields in the response should be expanded.
3593
3006
  sig { returns(T::Array[String]) }
3594
3007
  attr_accessor :expand
3595
-
3596
3008
  sig { params(expand: T::Array[String]).void }
3597
3009
  def initialize(expand: nil); end
3598
3010
  end
@@ -3600,7 +3012,6 @@ module Stripe
3600
3012
  # Specifies which fields in the response should be expanded.
3601
3013
  sig { returns(T::Array[String]) }
3602
3014
  attr_accessor :expand
3603
-
3604
3015
  sig { params(expand: T::Array[String]).void }
3605
3016
  def initialize(expand: nil); end
3606
3017
  end
@@ -3608,19 +3019,15 @@ module Stripe
3608
3019
  # 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.
3609
3020
  sig { returns(String) }
3610
3021
  attr_accessor :ending_before
3611
-
3612
3022
  # Specifies which fields in the response should be expanded.
3613
3023
  sig { returns(T::Array[String]) }
3614
3024
  attr_accessor :expand
3615
-
3616
3025
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3617
3026
  sig { returns(Integer) }
3618
3027
  attr_accessor :limit
3619
-
3620
3028
  # 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.
3621
3029
  sig { returns(String) }
3622
3030
  attr_accessor :starting_after
3623
-
3624
3031
  sig {
3625
3032
  params(ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
3626
3033
  }