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
@@ -22,16 +22,13 @@ module Stripe
22
22
  class Liability < Stripe::StripeObject
23
23
  # The connected account being referenced when `type` is `account`.
24
24
  attr_reader :account
25
-
26
25
  # Type of the account referenced.
27
26
  attr_reader :type
28
27
  end
29
28
  # Automatically calculate taxes
30
29
  attr_reader :enabled
31
-
32
30
  # 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.
33
31
  attr_reader :liability
34
-
35
32
  # The status of the most recent automated tax calculation for this quote.
36
33
  attr_reader :status
37
34
  end
@@ -41,16 +38,13 @@ module Stripe
41
38
  class Failed < Stripe::StripeObject
42
39
  # 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.
43
40
  attr_reader :failure_code
44
-
45
41
  # 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".
46
42
  attr_reader :message
47
-
48
43
  # The reason the reestimation failed.
49
44
  attr_reader :reason
50
45
  end
51
46
  # When `status` is `failed`, provides details about the quote reestimation failure.
52
47
  attr_reader :failed
53
-
54
48
  # Latest status of the reestimation.
55
49
  attr_reader :status
56
50
  end
@@ -61,7 +55,6 @@ module Stripe
61
55
  class Discount < Stripe::StripeObject
62
56
  # The amount discounted.
63
57
  attr_reader :amount
64
-
65
58
  # 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).
66
59
  # It contains information about when the discount began, when it will end, and what it is applied to.
67
60
  #
@@ -72,48 +65,37 @@ module Stripe
72
65
  class Tax < Stripe::StripeObject
73
66
  # Amount of tax applied for this rate.
74
67
  attr_reader :amount
75
-
76
68
  # 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.
77
69
  #
78
70
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
79
71
  attr_reader :rate
80
-
81
72
  # 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.
82
73
  attr_reader :taxability_reason
83
-
84
74
  # The amount on which tax is calculated, in cents (or local equivalent).
85
75
  attr_reader :taxable_amount
86
76
  end
87
77
  # The aggregated discounts.
88
78
  attr_reader :discounts
89
-
90
79
  # The aggregated tax amounts by rate.
91
80
  attr_reader :taxes
92
81
  end
93
82
  # This is the sum of all the discounts.
94
83
  attr_reader :amount_discount
95
-
96
84
  # This is the sum of all the shipping amounts.
97
85
  attr_reader :amount_shipping
98
-
99
86
  # This is the sum of all the tax amounts.
100
87
  attr_reader :amount_tax
101
-
102
88
  # Attribute for field breakdown
103
89
  attr_reader :breakdown
104
90
  end
105
91
  # Total before any discounts or taxes are applied.
106
92
  attr_reader :amount_subtotal
107
-
108
93
  # Total after discounts and taxes are applied.
109
94
  attr_reader :amount_total
110
-
111
95
  # The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
112
96
  attr_reader :interval
113
-
114
97
  # The number of intervals (specified in the `interval` attribute) between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months.
115
98
  attr_reader :interval_count
116
-
117
99
  # Attribute for field total_details
118
100
  attr_reader :total_details
119
101
  end
@@ -124,7 +106,6 @@ module Stripe
124
106
  class Discount < Stripe::StripeObject
125
107
  # The amount discounted.
126
108
  attr_reader :amount
127
-
128
109
  # 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).
129
110
  # It contains information about when the discount began, when it will end, and what it is applied to.
130
111
  #
@@ -135,57 +116,44 @@ module Stripe
135
116
  class Tax < Stripe::StripeObject
136
117
  # Amount of tax applied for this rate.
137
118
  attr_reader :amount
138
-
139
119
  # 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.
140
120
  #
141
121
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
142
122
  attr_reader :rate
143
-
144
123
  # 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.
145
124
  attr_reader :taxability_reason
146
-
147
125
  # The amount on which tax is calculated, in cents (or local equivalent).
148
126
  attr_reader :taxable_amount
149
127
  end
150
128
  # The aggregated discounts.
151
129
  attr_reader :discounts
152
-
153
130
  # The aggregated tax amounts by rate.
154
131
  attr_reader :taxes
155
132
  end
156
133
  # This is the sum of all the discounts.
157
134
  attr_reader :amount_discount
158
-
159
135
  # This is the sum of all the shipping amounts.
160
136
  attr_reader :amount_shipping
161
-
162
137
  # This is the sum of all the tax amounts.
163
138
  attr_reader :amount_tax
164
-
165
139
  # Attribute for field breakdown
166
140
  attr_reader :breakdown
167
141
  end
168
142
  # Total before any discounts or taxes are applied.
169
143
  attr_reader :amount_subtotal
170
-
171
144
  # Total after discounts and taxes are applied.
172
145
  attr_reader :amount_total
173
-
174
146
  # 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.
175
147
  attr_reader :line_items
176
-
177
148
  # Attribute for field total_details
178
149
  attr_reader :total_details
179
150
  end
180
151
  # Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
181
152
  attr_reader :last_reestimation_details
182
-
183
153
  # 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.
184
154
  attr_reader :recurring
185
-
186
155
  # The time at which the quote's estimated schedules and upcoming invoices were generated.
187
156
  attr_reader :updated_at
188
-
189
157
  # Attribute for field upfront
190
158
  attr_reader :upfront
191
159
  end
@@ -193,7 +161,6 @@ module Stripe
193
161
  class FromQuote < Stripe::StripeObject
194
162
  # Whether this quote is a revision of a different quote.
195
163
  attr_reader :is_revision
196
-
197
164
  # The quote that was cloned.
198
165
  attr_reader :quote
199
166
  end
@@ -202,13 +169,11 @@ module Stripe
202
169
  class Issuer < Stripe::StripeObject
203
170
  # The connected account being referenced when `type` is `account`.
204
171
  attr_reader :account
205
-
206
172
  # Type of the account referenced.
207
173
  attr_reader :type
208
174
  end
209
175
  # 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`.
210
176
  attr_reader :days_until_due
211
-
212
177
  # Attribute for field issuer
213
178
  attr_reader :issuer
214
179
  end
@@ -217,7 +182,6 @@ module Stripe
217
182
  class Canceled < Stripe::StripeObject
218
183
  # The reason this quote was marked as canceled.
219
184
  attr_reader :reason
220
-
221
185
  # Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
222
186
  attr_reader :transitioned_at
223
187
  end
@@ -227,7 +191,6 @@ module Stripe
227
191
  class LinesInvalid < Stripe::StripeObject
228
192
  # The timestamp at which the lines were marked as invalid.
229
193
  attr_reader :invalid_at
230
-
231
194
  # The list of lines that became invalid at the given timestamp.
232
195
  attr_reader :lines
233
196
  end
@@ -243,49 +206,36 @@ module Stripe
243
206
  end
244
207
  # The ID of the line that is invalid if the stale reason type is `line_invalid`.
245
208
  attr_reader :line_invalid
246
-
247
209
  # The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
248
210
  attr_reader :lines_invalid
249
-
250
211
  # The user supplied mark stale reason.
251
212
  attr_reader :marked_stale
252
-
253
213
  # The ID of the subscription that was canceled.
254
214
  attr_reader :subscription_canceled
255
-
256
215
  # Attribute for field subscription_changed
257
216
  attr_reader :subscription_changed
258
-
259
217
  # The ID of the subscription that was expired.
260
218
  attr_reader :subscription_expired
261
-
262
219
  # The ID of the subscription schedule that was canceled.
263
220
  attr_reader :subscription_schedule_canceled
264
-
265
221
  # Attribute for field subscription_schedule_changed
266
222
  attr_reader :subscription_schedule_changed
267
-
268
223
  # The ID of the subscription schedule that was released.
269
224
  attr_reader :subscription_schedule_released
270
-
271
225
  # The reason the quote was marked as stale.
272
226
  attr_reader :type
273
227
  end
274
228
  # Time at which the quote expires. Measured in seconds since the Unix epoch.
275
229
  attr_reader :expires_at
276
-
277
230
  # The most recent reason this quote was marked as stale.
278
231
  attr_reader :last_reason
279
-
280
232
  # Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
281
233
  attr_reader :last_updated_at
282
-
283
234
  # Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
284
235
  attr_reader :transitioned_at
285
236
  end
286
237
  # Attribute for field canceled
287
238
  attr_reader :canceled
288
-
289
239
  # Attribute for field stale
290
240
  attr_reader :stale
291
241
  end
@@ -293,10 +243,8 @@ module Stripe
293
243
  class StatusTransitions < Stripe::StripeObject
294
244
  # The time that the quote was accepted. Measured in seconds since Unix epoch.
295
245
  attr_reader :accepted_at
296
-
297
246
  # The time that the quote was canceled. Measured in seconds since Unix epoch.
298
247
  attr_reader :canceled_at
299
-
300
248
  # The time that the quote was finalized. Measured in seconds since Unix epoch.
301
249
  attr_reader :finalized_at
302
250
  end
@@ -310,13 +258,10 @@ module Stripe
310
258
  end
311
259
  # The materialized time.
312
260
  attr_reader :computed
313
-
314
261
  # The timestamp the given line starts at.
315
262
  attr_reader :line_starts_at
316
-
317
263
  # A precise Unix timestamp.
318
264
  attr_reader :timestamp
319
-
320
265
  # The type of method to specify the `bill_from` time.
321
266
  attr_reader :type
322
267
  end
@@ -325,7 +270,6 @@ module Stripe
325
270
  class Duration < Stripe::StripeObject
326
271
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
327
272
  attr_reader :interval
328
-
329
273
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
330
274
  attr_reader :interval_count
331
275
  end
@@ -336,22 +280,17 @@ module Stripe
336
280
  end
337
281
  # The materialized time.
338
282
  attr_reader :computed
339
-
340
283
  # Time span for the quote line starting from the `starts_at` date.
341
284
  attr_reader :duration
342
-
343
285
  # The timestamp the given line ends at.
344
286
  attr_reader :line_ends_at
345
-
346
287
  # A precise Unix timestamp.
347
288
  attr_reader :timestamp
348
-
349
289
  # The type of method to specify the `bill_until` time.
350
290
  attr_reader :type
351
291
  end
352
292
  # The start of the period to bill from when the Quote is accepted.
353
293
  attr_reader :bill_from
354
-
355
294
  # The end of the period to bill until when the Quote is accepted.
356
295
  attr_reader :bill_until
357
296
  end
@@ -362,34 +301,24 @@ module Stripe
362
301
  end
363
302
  # Describes the period to bill for upon accepting the quote.
364
303
  attr_reader :bill_on_acceptance
365
-
366
304
  # 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.
367
305
  attr_reader :billing_behavior
368
-
369
306
  # Whether the subscription will always start a new billing period when the quote is accepted.
370
307
  attr_reader :billing_cycle_anchor
371
-
372
308
  # 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.
373
309
  attr_reader :description
374
-
375
310
  # 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.
376
311
  attr_reader :effective_date
377
-
378
312
  # Behavior of the subscription schedule and underlying subscription when it ends.
379
313
  attr_reader :end_behavior
380
-
381
314
  # The id of the subscription that will be updated when the quote is accepted.
382
315
  attr_reader :from_subscription
383
-
384
316
  # 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.
385
317
  attr_reader :metadata
386
-
387
318
  # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
388
319
  attr_reader :prebilling
389
-
390
320
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
391
321
  attr_reader :proration_behavior
392
-
393
322
  # Integer representing the number of trial period days before the customer is charged for the first time.
394
323
  attr_reader :trial_period_days
395
324
  end
@@ -398,10 +327,8 @@ module Stripe
398
327
  class AppliesTo < Stripe::StripeObject
399
328
  # 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.
400
329
  attr_reader :new_reference
401
-
402
330
  # The ID of the schedule the line applies to.
403
331
  attr_reader :subscription_schedule
404
-
405
332
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
406
333
  attr_reader :type
407
334
  end
@@ -414,13 +341,10 @@ module Stripe
414
341
  end
415
342
  # The materialized time.
416
343
  attr_reader :computed
417
-
418
344
  # The timestamp the given line starts at.
419
345
  attr_reader :line_starts_at
420
-
421
346
  # A precise Unix timestamp.
422
347
  attr_reader :timestamp
423
-
424
348
  # The type of method to specify the `bill_from` time.
425
349
  attr_reader :type
426
350
  end
@@ -429,7 +353,6 @@ module Stripe
429
353
  class Duration < Stripe::StripeObject
430
354
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
431
355
  attr_reader :interval
432
-
433
356
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
434
357
  attr_reader :interval_count
435
358
  end
@@ -440,43 +363,32 @@ module Stripe
440
363
  end
441
364
  # The materialized time.
442
365
  attr_reader :computed
443
-
444
366
  # Time span for the quote line starting from the `starts_at` date.
445
367
  attr_reader :duration
446
-
447
368
  # The timestamp the given line ends at.
448
369
  attr_reader :line_ends_at
449
-
450
370
  # A precise Unix timestamp.
451
371
  attr_reader :timestamp
452
-
453
372
  # The type of method to specify the `bill_until` time.
454
373
  attr_reader :type
455
374
  end
456
375
  # The start of the period to bill from when the Quote is accepted.
457
376
  attr_reader :bill_from
458
-
459
377
  # The end of the period to bill until when the Quote is accepted.
460
378
  attr_reader :bill_until
461
379
  end
462
380
  # Attribute for field applies_to
463
381
  attr_reader :applies_to
464
-
465
382
  # Describes the period to bill for upon accepting the quote.
466
383
  attr_reader :bill_on_acceptance
467
-
468
384
  # 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.
469
385
  attr_reader :billing_behavior
470
-
471
386
  # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
472
387
  attr_reader :customer
473
-
474
388
  # 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.
475
389
  attr_reader :description
476
-
477
390
  # Behavior of the subscription schedule and underlying subscription when it ends.
478
391
  attr_reader :end_behavior
479
-
480
392
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
481
393
  attr_reader :proration_behavior
482
394
  end
@@ -485,16 +397,13 @@ module Stripe
485
397
  class AppliesTo < Stripe::StripeObject
486
398
  # 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.
487
399
  attr_reader :new_reference
488
-
489
400
  # The ID of the schedule the line applies to.
490
401
  attr_reader :subscription_schedule
491
-
492
402
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
493
403
  attr_reader :type
494
404
  end
495
405
  # Attribute for field applies_to
496
406
  attr_reader :applies_to
497
-
498
407
  # The subscription schedule that was created or updated from this quote.
499
408
  attr_reader :subscription_schedule
500
409
  end
@@ -504,7 +413,6 @@ module Stripe
504
413
  class Discount < Stripe::StripeObject
505
414
  # The amount discounted.
506
415
  attr_reader :amount
507
-
508
416
  # 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).
509
417
  # It contains information about when the discount began, when it will end, and what it is applied to.
510
418
  #
@@ -515,33 +423,26 @@ module Stripe
515
423
  class Tax < Stripe::StripeObject
516
424
  # Amount of tax applied for this rate.
517
425
  attr_reader :amount
518
-
519
426
  # 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.
520
427
  #
521
428
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
522
429
  attr_reader :rate
523
-
524
430
  # 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.
525
431
  attr_reader :taxability_reason
526
-
527
432
  # The amount on which tax is calculated, in cents (or local equivalent).
528
433
  attr_reader :taxable_amount
529
434
  end
530
435
  # The aggregated discounts.
531
436
  attr_reader :discounts
532
-
533
437
  # The aggregated tax amounts by rate.
534
438
  attr_reader :taxes
535
439
  end
536
440
  # This is the sum of all the discounts.
537
441
  attr_reader :amount_discount
538
-
539
442
  # This is the sum of all the shipping amounts.
540
443
  attr_reader :amount_shipping
541
-
542
444
  # This is the sum of all the tax amounts.
543
445
  attr_reader :amount_tax
544
-
545
446
  # Attribute for field breakdown
546
447
  attr_reader :breakdown
547
448
  end
@@ -549,10 +450,8 @@ module Stripe
549
450
  class TransferData < Stripe::StripeObject
550
451
  # 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.
551
452
  attr_reader :amount
552
-
553
453
  # 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.
554
454
  attr_reader :amount_percent
555
-
556
455
  # The account where funds from the payment will be transferred to upon payment success.
557
456
  attr_reader :destination
558
457
  end
@@ -560,25 +459,18 @@ module Stripe
560
459
  class ListParams < Stripe::RequestParams
561
460
  # The ID of the customer whose quotes will be retrieved.
562
461
  attr_accessor :customer
563
-
564
462
  # 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.
565
463
  attr_accessor :ending_before
566
-
567
464
  # Specifies which fields in the response should be expanded.
568
465
  attr_accessor :expand
569
-
570
466
  # The subscription which the quote updates.
571
467
  attr_accessor :from_subscription
572
-
573
468
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
574
469
  attr_accessor :limit
575
-
576
470
  # 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.
577
471
  attr_accessor :starting_after
578
-
579
472
  # The status of the quote.
580
473
  attr_accessor :status
581
-
582
474
  # 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.
583
475
  attr_accessor :test_clock
584
476
 
@@ -608,7 +500,6 @@ module Stripe
608
500
  class Liability < Stripe::RequestParams
609
501
  # The connected account being referenced when `type` is `account`.
610
502
  attr_accessor :account
611
-
612
503
  # Type of the account referenced in the request.
613
504
  attr_accessor :type
614
505
 
@@ -619,7 +510,6 @@ module Stripe
619
510
  end
620
511
  # Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself.
621
512
  attr_accessor :enabled
622
-
623
513
  # 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.
624
514
  attr_accessor :liability
625
515
 
@@ -634,7 +524,6 @@ module Stripe
634
524
  class Duration < Stripe::RequestParams
635
525
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
636
526
  attr_accessor :interval
637
-
638
527
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
639
528
  attr_accessor :interval_count
640
529
 
@@ -645,10 +534,8 @@ module Stripe
645
534
  end
646
535
  # Time span for the redeemed discount.
647
536
  attr_accessor :duration
648
-
649
537
  # A precise Unix timestamp for the discount to end. Must be in the future.
650
538
  attr_accessor :timestamp
651
-
652
539
  # The type of calculation made to determine when the discount ends.
653
540
  attr_accessor :type
654
541
 
@@ -660,13 +547,10 @@ module Stripe
660
547
  end
661
548
  # ID of the coupon to create a new discount for.
662
549
  attr_accessor :coupon
663
-
664
550
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
665
551
  attr_accessor :discount
666
-
667
552
  # Details to determine how long the discount should be applied for.
668
553
  attr_accessor :discount_end
669
-
670
554
  # ID of the promotion code to create a new discount for.
671
555
  attr_accessor :promotion_code
672
556
 
@@ -681,7 +565,6 @@ module Stripe
681
565
  class FromQuote < Stripe::RequestParams
682
566
  # Whether this quote is a revision of the previous quote.
683
567
  attr_accessor :is_revision
684
-
685
568
  # The `id` of the quote that will be cloned.
686
569
  attr_accessor :quote
687
570
 
@@ -695,7 +578,6 @@ module Stripe
695
578
  class Issuer < Stripe::RequestParams
696
579
  # The connected account being referenced when `type` is `account`.
697
580
  attr_accessor :account
698
-
699
581
  # Type of the account referenced in the request.
700
582
  attr_accessor :type
701
583
 
@@ -706,7 +588,6 @@ module Stripe
706
588
  end
707
589
  # 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`.
708
590
  attr_accessor :days_until_due
709
-
710
591
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
711
592
  attr_accessor :issuer
712
593
 
@@ -729,16 +610,12 @@ module Stripe
729
610
  end
730
611
  # The coupon code to redeem.
731
612
  attr_accessor :coupon
732
-
733
613
  # An ID of an existing discount for a coupon that was already redeemed.
734
614
  attr_accessor :discount
735
-
736
615
  # Details to determine how long the discount should be applied for.
737
616
  attr_accessor :discount_end
738
-
739
617
  # 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.
740
618
  attr_accessor :index
741
-
742
619
  # The promotion code to redeem.
743
620
  attr_accessor :promotion_code
744
621
 
@@ -763,7 +640,6 @@ module Stripe
763
640
  class Duration < Stripe::RequestParams
764
641
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
765
642
  attr_accessor :interval
766
-
767
643
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
768
644
  attr_accessor :interval_count
769
645
 
@@ -774,10 +650,8 @@ module Stripe
774
650
  end
775
651
  # Time span for the redeemed discount.
776
652
  attr_accessor :duration
777
-
778
653
  # A precise Unix timestamp for the discount to end. Must be in the future.
779
654
  attr_accessor :timestamp
780
-
781
655
  # The type of calculation made to determine when the discount ends.
782
656
  attr_accessor :type
783
657
 
@@ -789,13 +663,10 @@ module Stripe
789
663
  end
790
664
  # ID of the coupon to create a new discount for.
791
665
  attr_accessor :coupon
792
-
793
666
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
794
667
  attr_accessor :discount
795
-
796
668
  # Details to determine how long the discount should be applied for.
797
669
  attr_accessor :discount_end
798
-
799
670
  # ID of the promotion code to create a new discount for.
800
671
  attr_accessor :promotion_code
801
672
 
@@ -810,7 +681,6 @@ module Stripe
810
681
  class Trial < Stripe::RequestParams
811
682
  # 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.
812
683
  attr_accessor :converts_to
813
-
814
684
  # Determines the type of trial for this item.
815
685
  attr_accessor :type
816
686
 
@@ -821,19 +691,14 @@ module Stripe
821
691
  end
822
692
  # The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
823
693
  attr_accessor :discounts
824
-
825
694
  # 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`.
826
695
  attr_accessor :metadata
827
-
828
696
  # The ID of the price object.
829
697
  attr_accessor :price
830
-
831
698
  # Quantity for this item.
832
699
  attr_accessor :quantity
833
-
834
700
  # 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`.
835
701
  attr_accessor :tax_rates
836
-
837
702
  # Options that configure the trial on the subscription item.
838
703
  attr_accessor :trial
839
704
 
@@ -857,10 +722,8 @@ module Stripe
857
722
  class RemoveDiscount < Stripe::RequestParams
858
723
  # The coupon code to remove from the `discounts` array.
859
724
  attr_accessor :coupon
860
-
861
725
  # The ID of a discount to remove from the `discounts` array.
862
726
  attr_accessor :discount
863
-
864
727
  # The ID of a promotion code to remove from the `discounts` array.
865
728
  attr_accessor :promotion_code
866
729
 
@@ -883,10 +746,8 @@ module Stripe
883
746
  class SetDiscount < Stripe::RequestParams
884
747
  # The coupon code to replace the `discounts` array with.
885
748
  attr_accessor :coupon
886
-
887
749
  # An ID of an existing discount to replace the `discounts` array with.
888
750
  attr_accessor :discount
889
-
890
751
  # An ID of an existing promotion code to replace the `discounts` array with.
891
752
  attr_accessor :promotion_code
892
753
 
@@ -903,7 +764,6 @@ module Stripe
903
764
  class Duration < Stripe::RequestParams
904
765
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
905
766
  attr_accessor :interval
906
-
907
767
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
908
768
  attr_accessor :interval_count
909
769
 
@@ -914,10 +774,8 @@ module Stripe
914
774
  end
915
775
  # Time span for the redeemed discount.
916
776
  attr_accessor :duration
917
-
918
777
  # A precise Unix timestamp for the discount to end. Must be in the future.
919
778
  attr_accessor :timestamp
920
-
921
779
  # The type of calculation made to determine when the discount ends.
922
780
  attr_accessor :type
923
781
 
@@ -929,13 +787,10 @@ module Stripe
929
787
  end
930
788
  # ID of the coupon to create a new discount for.
931
789
  attr_accessor :coupon
932
-
933
790
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
934
791
  attr_accessor :discount
935
-
936
792
  # Details to determine how long the discount should be applied for.
937
793
  attr_accessor :discount_end
938
-
939
794
  # ID of the promotion code to create a new discount for.
940
795
  attr_accessor :promotion_code
941
796
 
@@ -950,7 +805,6 @@ module Stripe
950
805
  class Trial < Stripe::RequestParams
951
806
  # 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.
952
807
  attr_accessor :converts_to
953
-
954
808
  # Determines the type of trial for this item.
955
809
  attr_accessor :type
956
810
 
@@ -961,19 +815,14 @@ module Stripe
961
815
  end
962
816
  # If an item with the `price` already exists, passing this will override the `discounts` 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 `discounts`.
963
817
  attr_accessor :discounts
964
-
965
818
  # 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`.
966
819
  attr_accessor :metadata
967
-
968
820
  # The ID of the price object.
969
821
  attr_accessor :price
970
-
971
822
  # 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`.
972
823
  attr_accessor :quantity
973
-
974
824
  # 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`.
975
825
  attr_accessor :tax_rates
976
-
977
826
  # 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`.
978
827
  attr_accessor :trial
979
828
 
@@ -995,31 +844,22 @@ module Stripe
995
844
  end
996
845
  # Details for the `add_discount` type.
997
846
  attr_accessor :add_discount
998
-
999
847
  # Details for the `add_item` type.
1000
848
  attr_accessor :add_item
1001
-
1002
849
  # Details for the `add_metadata` type: specify a hash of key-value pairs.
1003
850
  attr_accessor :add_metadata
1004
-
1005
851
  # Details for the `remove_discount` type.
1006
852
  attr_accessor :remove_discount
1007
-
1008
853
  # Details for the `remove_item` type.
1009
854
  attr_accessor :remove_item
1010
-
1011
855
  # Details for the `remove_metadata` type: specify an array of metadata keys.
1012
856
  attr_accessor :remove_metadata
1013
-
1014
857
  # Details for the `set_discounts` type.
1015
858
  attr_accessor :set_discounts
1016
-
1017
859
  # Details for the `set_items` type.
1018
860
  attr_accessor :set_items
1019
-
1020
861
  # Details for the `set_metadata` type: specify an array of key-value pairs.
1021
862
  attr_accessor :set_metadata
1022
-
1023
863
  # The type of action the quote line performs.
1024
864
  attr_accessor :type
1025
865
 
@@ -1051,10 +891,8 @@ module Stripe
1051
891
  class AppliesTo < Stripe::RequestParams
1052
892
  # 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.
1053
893
  attr_accessor :new_reference
1054
-
1055
894
  # The ID of the schedule the line applies to.
1056
895
  attr_accessor :subscription_schedule
1057
-
1058
896
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
1059
897
  attr_accessor :type
1060
898
 
@@ -1068,10 +906,8 @@ module Stripe
1068
906
  class CancelSubscriptionSchedule < Stripe::RequestParams
1069
907
  # Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
1070
908
  attr_accessor :cancel_at
1071
-
1072
909
  # 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`.
1073
910
  attr_accessor :invoice_now
1074
-
1075
911
  # If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
1076
912
  attr_accessor :prorate
1077
913
 
@@ -1095,7 +931,6 @@ module Stripe
1095
931
  class Duration < Stripe::RequestParams
1096
932
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1097
933
  attr_accessor :interval
1098
-
1099
934
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1100
935
  attr_accessor :interval_count
1101
936
 
@@ -1106,13 +941,10 @@ module Stripe
1106
941
  end
1107
942
  # Use the `end` time of a given discount.
1108
943
  attr_accessor :discount_end
1109
-
1110
944
  # Time span for the quote line starting from the `starts_at` date.
1111
945
  attr_accessor :duration
1112
-
1113
946
  # A precise Unix timestamp.
1114
947
  attr_accessor :timestamp
1115
-
1116
948
  # Select a way to pass in `ends_at`.
1117
949
  attr_accessor :type
1118
950
 
@@ -1135,7 +967,6 @@ module Stripe
1135
967
  end
1136
968
  # Details of the pause_collection behavior to apply to the amendment.
1137
969
  attr_accessor :set
1138
-
1139
970
  # Determines the type of the pause_collection amendment.
1140
971
  attr_accessor :type
1141
972
 
@@ -1165,13 +996,10 @@ module Stripe
1165
996
  end
1166
997
  # Use the `end` time of a given discount.
1167
998
  attr_accessor :discount_end
1168
-
1169
999
  # The timestamp the given line ends at.
1170
1000
  attr_accessor :line_ends_at
1171
-
1172
1001
  # A precise Unix timestamp.
1173
1002
  attr_accessor :timestamp
1174
-
1175
1003
  # Select a way to pass in `starts_at`.
1176
1004
  attr_accessor :type
1177
1005
 
@@ -1201,31 +1029,22 @@ module Stripe
1201
1029
  end
1202
1030
  # An array of operations the quote line performs.
1203
1031
  attr_accessor :actions
1204
-
1205
1032
  # Details to identify the subscription schedule the quote line applies to.
1206
1033
  attr_accessor :applies_to
1207
-
1208
1034
  # 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.
1209
1035
  attr_accessor :billing_cycle_anchor
1210
-
1211
1036
  # 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.
1212
1037
  attr_accessor :cancel_subscription_schedule
1213
-
1214
1038
  # 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.
1215
1039
  attr_accessor :ends_at
1216
-
1217
1040
  # 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.
1218
1041
  attr_accessor :proration_behavior
1219
-
1220
1042
  # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
1221
1043
  attr_accessor :set_pause_collection
1222
-
1223
1044
  # Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
1224
1045
  attr_accessor :set_schedule_end
1225
-
1226
1046
  # Details to identify the earliest timestamp where the proposed change should take effect.
1227
1047
  attr_accessor :starts_at
1228
-
1229
1048
  # Settings related to subscription trials.
1230
1049
  attr_accessor :trial_settings
1231
1050
 
@@ -1260,7 +1079,6 @@ module Stripe
1260
1079
  class Duration < Stripe::RequestParams
1261
1080
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1262
1081
  attr_accessor :interval
1263
-
1264
1082
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1265
1083
  attr_accessor :interval_count
1266
1084
 
@@ -1271,10 +1089,8 @@ module Stripe
1271
1089
  end
1272
1090
  # Time span for the redeemed discount.
1273
1091
  attr_accessor :duration
1274
-
1275
1092
  # A precise Unix timestamp for the discount to end. Must be in the future.
1276
1093
  attr_accessor :timestamp
1277
-
1278
1094
  # The type of calculation made to determine when the discount ends.
1279
1095
  attr_accessor :type
1280
1096
 
@@ -1286,13 +1102,10 @@ module Stripe
1286
1102
  end
1287
1103
  # ID of the coupon to create a new discount for.
1288
1104
  attr_accessor :coupon
1289
-
1290
1105
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1291
1106
  attr_accessor :discount
1292
-
1293
1107
  # Details to determine how long the discount should be applied for.
1294
1108
  attr_accessor :discount_end
1295
-
1296
1109
  # ID of the promotion code to create a new discount for.
1297
1110
  attr_accessor :promotion_code
1298
1111
 
@@ -1308,7 +1121,6 @@ module Stripe
1308
1121
  class Recurring < Stripe::RequestParams
1309
1122
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
1310
1123
  attr_accessor :interval
1311
-
1312
1124
  # 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).
1313
1125
  attr_accessor :interval_count
1314
1126
 
@@ -1319,19 +1131,14 @@ module Stripe
1319
1131
  end
1320
1132
  # 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).
1321
1133
  attr_accessor :currency
1322
-
1323
1134
  # The ID of the product that this price will belong to.
1324
1135
  attr_accessor :product
1325
-
1326
1136
  # The recurring components of a price such as `interval` and `interval_count`.
1327
1137
  attr_accessor :recurring
1328
-
1329
1138
  # 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.
1330
1139
  attr_accessor :tax_behavior
1331
-
1332
1140
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
1333
1141
  attr_accessor :unit_amount
1334
-
1335
1142
  # 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.
1336
1143
  attr_accessor :unit_amount_decimal
1337
1144
 
@@ -1353,16 +1160,12 @@ module Stripe
1353
1160
  end
1354
1161
  # The discounts applied to this line item.
1355
1162
  attr_accessor :discounts
1356
-
1357
1163
  # The ID of the price object. One of `price` or `price_data` is required.
1358
1164
  attr_accessor :price
1359
-
1360
1165
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
1361
1166
  attr_accessor :price_data
1362
-
1363
1167
  # The quantity of the line item.
1364
1168
  attr_accessor :quantity
1365
-
1366
1169
  # 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.
1367
1170
  attr_accessor :tax_rates
1368
1171
 
@@ -1381,7 +1184,6 @@ module Stripe
1381
1184
  class LineStartsAt < Stripe::RequestParams
1382
1185
  # The ID of a quote line.
1383
1186
  attr_accessor :id
1384
-
1385
1187
  # 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.
1386
1188
  attr_accessor :index
1387
1189
 
@@ -1392,10 +1194,8 @@ module Stripe
1392
1194
  end
1393
1195
  # Details of a Quote line to start the bill period from.
1394
1196
  attr_accessor :line_starts_at
1395
-
1396
1197
  # A precise Unix timestamp.
1397
1198
  attr_accessor :timestamp
1398
-
1399
1199
  # The type of method to specify the `bill_from` time.
1400
1200
  attr_accessor :type
1401
1201
 
@@ -1410,7 +1210,6 @@ module Stripe
1410
1210
  class Duration < Stripe::RequestParams
1411
1211
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1412
1212
  attr_accessor :interval
1413
-
1414
1213
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1415
1214
  attr_accessor :interval_count
1416
1215
 
@@ -1423,7 +1222,6 @@ module Stripe
1423
1222
  class LineEndsAt < Stripe::RequestParams
1424
1223
  # The ID of a quote line.
1425
1224
  attr_accessor :id
1426
-
1427
1225
  # 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.
1428
1226
  attr_accessor :index
1429
1227
 
@@ -1434,13 +1232,10 @@ module Stripe
1434
1232
  end
1435
1233
  # Details of the duration over which to bill.
1436
1234
  attr_accessor :duration
1437
-
1438
1235
  # Details of a Quote line item from which to bill until.
1439
1236
  attr_accessor :line_ends_at
1440
-
1441
1237
  # A precise Unix timestamp.
1442
1238
  attr_accessor :timestamp
1443
-
1444
1239
  # The type of method to specify the `bill_until` time.
1445
1240
  attr_accessor :type
1446
1241
 
@@ -1453,7 +1248,6 @@ module Stripe
1453
1248
  end
1454
1249
  # The start of the period to bill from when the Quote is accepted.
1455
1250
  attr_accessor :bill_from
1456
-
1457
1251
  # The end of the period to bill until when the Quote is accepted.
1458
1252
  attr_accessor :bill_until
1459
1253
 
@@ -1473,31 +1267,22 @@ module Stripe
1473
1267
  end
1474
1268
  # Describes the period to bill for upon accepting the quote.
1475
1269
  attr_accessor :bill_on_acceptance
1476
-
1477
1270
  # 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.
1478
1271
  attr_accessor :billing_behavior
1479
-
1480
1272
  # When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
1481
1273
  attr_accessor :billing_cycle_anchor
1482
-
1483
1274
  # 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.
1484
1275
  attr_accessor :description
1485
-
1486
1276
  # 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.
1487
1277
  attr_accessor :effective_date
1488
-
1489
1278
  # Behavior of the subscription schedule and underlying subscription when it ends.
1490
1279
  attr_accessor :end_behavior
1491
-
1492
1280
  # 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.
1493
1281
  attr_accessor :from_subscription
1494
-
1495
1282
  # 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.
1496
1283
  attr_accessor :metadata
1497
-
1498
1284
  # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
1499
1285
  attr_accessor :prebilling
1500
-
1501
1286
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
1502
1287
  #
1503
1288
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -1506,7 +1291,6 @@ module Stripe
1506
1291
  #
1507
1292
  # Prorations can be disabled by passing `none`.
1508
1293
  attr_accessor :proration_behavior
1509
-
1510
1294
  # Integer representing the number of trial period days before the customer is charged for the first time.
1511
1295
  attr_accessor :trial_period_days
1512
1296
 
@@ -1541,10 +1325,8 @@ module Stripe
1541
1325
  class AppliesTo < Stripe::RequestParams
1542
1326
  # 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.
1543
1327
  attr_accessor :new_reference
1544
-
1545
1328
  # The ID of the schedule the line applies to.
1546
1329
  attr_accessor :subscription_schedule
1547
-
1548
1330
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
1549
1331
  attr_accessor :type
1550
1332
 
@@ -1560,7 +1342,6 @@ module Stripe
1560
1342
  class LineStartsAt < Stripe::RequestParams
1561
1343
  # The ID of a quote line.
1562
1344
  attr_accessor :id
1563
-
1564
1345
  # 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.
1565
1346
  attr_accessor :index
1566
1347
 
@@ -1571,10 +1352,8 @@ module Stripe
1571
1352
  end
1572
1353
  # Details of a Quote line to start the bill period from.
1573
1354
  attr_accessor :line_starts_at
1574
-
1575
1355
  # A precise Unix timestamp.
1576
1356
  attr_accessor :timestamp
1577
-
1578
1357
  # The type of method to specify the `bill_from` time.
1579
1358
  attr_accessor :type
1580
1359
 
@@ -1589,7 +1368,6 @@ module Stripe
1589
1368
  class Duration < Stripe::RequestParams
1590
1369
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1591
1370
  attr_accessor :interval
1592
-
1593
1371
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1594
1372
  attr_accessor :interval_count
1595
1373
 
@@ -1602,7 +1380,6 @@ module Stripe
1602
1380
  class LineEndsAt < Stripe::RequestParams
1603
1381
  # The ID of a quote line.
1604
1382
  attr_accessor :id
1605
-
1606
1383
  # 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.
1607
1384
  attr_accessor :index
1608
1385
 
@@ -1613,13 +1390,10 @@ module Stripe
1613
1390
  end
1614
1391
  # Details of the duration over which to bill.
1615
1392
  attr_accessor :duration
1616
-
1617
1393
  # Details of a Quote line item from which to bill until.
1618
1394
  attr_accessor :line_ends_at
1619
-
1620
1395
  # A precise Unix timestamp.
1621
1396
  attr_accessor :timestamp
1622
-
1623
1397
  # The type of method to specify the `bill_until` time.
1624
1398
  attr_accessor :type
1625
1399
 
@@ -1632,7 +1406,6 @@ module Stripe
1632
1406
  end
1633
1407
  # The start of the period to bill from when the Quote is accepted.
1634
1408
  attr_accessor :bill_from
1635
-
1636
1409
  # The end of the period to bill until when the Quote is accepted.
1637
1410
  attr_accessor :bill_until
1638
1411
 
@@ -1643,22 +1416,16 @@ module Stripe
1643
1416
  end
1644
1417
  # Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
1645
1418
  attr_accessor :applies_to
1646
-
1647
1419
  # Describes the period to bill for upon accepting the quote.
1648
1420
  attr_accessor :bill_on_acceptance
1649
-
1650
1421
  # 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.
1651
1422
  attr_accessor :billing_behavior
1652
-
1653
1423
  # The customer the Subscription Data override applies to. This is only relevant when `applies_to.type=new_reference`.
1654
1424
  attr_accessor :customer
1655
-
1656
1425
  # 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.
1657
1426
  attr_accessor :description
1658
-
1659
1427
  # Behavior of the subscription schedule and underlying subscription when it ends.
1660
1428
  attr_accessor :end_behavior
1661
-
1662
1429
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
1663
1430
  #
1664
1431
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -1690,10 +1457,8 @@ module Stripe
1690
1457
  class TransferData < Stripe::RequestParams
1691
1458
  # 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.
1692
1459
  attr_accessor :amount
1693
-
1694
1460
  # 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.
1695
1461
  attr_accessor :amount_percent
1696
-
1697
1462
  # ID of an existing, connected Stripe account.
1698
1463
  attr_accessor :destination
1699
1464
 
@@ -1705,70 +1470,48 @@ module Stripe
1705
1470
  end
1706
1471
  # Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
1707
1472
  attr_accessor :allow_backdated_lines
1708
-
1709
1473
  # 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.
1710
1474
  attr_accessor :application_fee_amount
1711
-
1712
1475
  # 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.
1713
1476
  attr_accessor :application_fee_percent
1714
-
1715
1477
  # Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
1716
1478
  attr_accessor :automatic_tax
1717
-
1718
1479
  # 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`.
1719
1480
  attr_accessor :collection_method
1720
-
1721
1481
  # The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
1722
1482
  attr_accessor :customer
1723
-
1724
1483
  # The tax rates that will apply to any line item that does not have `tax_rates` set.
1725
1484
  attr_accessor :default_tax_rates
1726
-
1727
1485
  # 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.
1728
1486
  attr_accessor :description
1729
-
1730
1487
  # The discounts applied to the quote.
1731
1488
  attr_accessor :discounts
1732
-
1733
1489
  # Specifies which fields in the response should be expanded.
1734
1490
  attr_accessor :expand
1735
-
1736
1491
  # 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.
1737
1492
  attr_accessor :expires_at
1738
-
1739
1493
  # 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.
1740
1494
  attr_accessor :footer
1741
-
1742
1495
  # 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`.
1743
1496
  attr_accessor :from_quote
1744
-
1745
1497
  # 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.
1746
1498
  attr_accessor :header
1747
-
1748
1499
  # All invoices will be billed using the specified settings.
1749
1500
  attr_accessor :invoice_settings
1750
-
1751
1501
  # 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.
1752
1502
  attr_accessor :line_items
1753
-
1754
1503
  # 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.
1755
1504
  attr_accessor :lines
1756
-
1757
1505
  # 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`.
1758
1506
  attr_accessor :metadata
1759
-
1760
1507
  # The account on behalf of which to charge.
1761
1508
  attr_accessor :on_behalf_of
1762
-
1763
1509
  # 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.
1764
1510
  attr_accessor :subscription_data
1765
-
1766
1511
  # List representing overrides for `subscription_data` configurations for specific subscription schedules.
1767
1512
  attr_accessor :subscription_data_overrides
1768
-
1769
1513
  # ID of the test clock to attach to the quote.
1770
1514
  attr_accessor :test_clock
1771
-
1772
1515
  # The data with which to automatically create a Transfer for each of the invoices.
1773
1516
  attr_accessor :transfer_data
1774
1517
 
@@ -1837,7 +1580,6 @@ module Stripe
1837
1580
  class Liability < Stripe::RequestParams
1838
1581
  # The connected account being referenced when `type` is `account`.
1839
1582
  attr_accessor :account
1840
-
1841
1583
  # Type of the account referenced in the request.
1842
1584
  attr_accessor :type
1843
1585
 
@@ -1848,7 +1590,6 @@ module Stripe
1848
1590
  end
1849
1591
  # Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself.
1850
1592
  attr_accessor :enabled
1851
-
1852
1593
  # 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.
1853
1594
  attr_accessor :liability
1854
1595
 
@@ -1863,7 +1604,6 @@ module Stripe
1863
1604
  class Duration < Stripe::RequestParams
1864
1605
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1865
1606
  attr_accessor :interval
1866
-
1867
1607
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1868
1608
  attr_accessor :interval_count
1869
1609
 
@@ -1874,10 +1614,8 @@ module Stripe
1874
1614
  end
1875
1615
  # Time span for the redeemed discount.
1876
1616
  attr_accessor :duration
1877
-
1878
1617
  # A precise Unix timestamp for the discount to end. Must be in the future.
1879
1618
  attr_accessor :timestamp
1880
-
1881
1619
  # The type of calculation made to determine when the discount ends.
1882
1620
  attr_accessor :type
1883
1621
 
@@ -1889,13 +1627,10 @@ module Stripe
1889
1627
  end
1890
1628
  # ID of the coupon to create a new discount for.
1891
1629
  attr_accessor :coupon
1892
-
1893
1630
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1894
1631
  attr_accessor :discount
1895
-
1896
1632
  # Details to determine how long the discount should be applied for.
1897
1633
  attr_accessor :discount_end
1898
-
1899
1634
  # ID of the promotion code to create a new discount for.
1900
1635
  attr_accessor :promotion_code
1901
1636
 
@@ -1911,7 +1646,6 @@ module Stripe
1911
1646
  class Issuer < Stripe::RequestParams
1912
1647
  # The connected account being referenced when `type` is `account`.
1913
1648
  attr_accessor :account
1914
-
1915
1649
  # Type of the account referenced in the request.
1916
1650
  attr_accessor :type
1917
1651
 
@@ -1922,7 +1656,6 @@ module Stripe
1922
1656
  end
1923
1657
  # 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`.
1924
1658
  attr_accessor :days_until_due
1925
-
1926
1659
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
1927
1660
  attr_accessor :issuer
1928
1661
 
@@ -1945,16 +1678,12 @@ module Stripe
1945
1678
  end
1946
1679
  # The coupon code to redeem.
1947
1680
  attr_accessor :coupon
1948
-
1949
1681
  # An ID of an existing discount for a coupon that was already redeemed.
1950
1682
  attr_accessor :discount
1951
-
1952
1683
  # Details to determine how long the discount should be applied for.
1953
1684
  attr_accessor :discount_end
1954
-
1955
1685
  # 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.
1956
1686
  attr_accessor :index
1957
-
1958
1687
  # The promotion code to redeem.
1959
1688
  attr_accessor :promotion_code
1960
1689
 
@@ -1979,7 +1708,6 @@ module Stripe
1979
1708
  class Duration < Stripe::RequestParams
1980
1709
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1981
1710
  attr_accessor :interval
1982
-
1983
1711
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1984
1712
  attr_accessor :interval_count
1985
1713
 
@@ -1990,10 +1718,8 @@ module Stripe
1990
1718
  end
1991
1719
  # Time span for the redeemed discount.
1992
1720
  attr_accessor :duration
1993
-
1994
1721
  # A precise Unix timestamp for the discount to end. Must be in the future.
1995
1722
  attr_accessor :timestamp
1996
-
1997
1723
  # The type of calculation made to determine when the discount ends.
1998
1724
  attr_accessor :type
1999
1725
 
@@ -2005,13 +1731,10 @@ module Stripe
2005
1731
  end
2006
1732
  # ID of the coupon to create a new discount for.
2007
1733
  attr_accessor :coupon
2008
-
2009
1734
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2010
1735
  attr_accessor :discount
2011
-
2012
1736
  # Details to determine how long the discount should be applied for.
2013
1737
  attr_accessor :discount_end
2014
-
2015
1738
  # ID of the promotion code to create a new discount for.
2016
1739
  attr_accessor :promotion_code
2017
1740
 
@@ -2026,7 +1749,6 @@ module Stripe
2026
1749
  class Trial < Stripe::RequestParams
2027
1750
  # 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.
2028
1751
  attr_accessor :converts_to
2029
-
2030
1752
  # Determines the type of trial for this item.
2031
1753
  attr_accessor :type
2032
1754
 
@@ -2037,19 +1759,14 @@ module Stripe
2037
1759
  end
2038
1760
  # The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
2039
1761
  attr_accessor :discounts
2040
-
2041
1762
  # 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`.
2042
1763
  attr_accessor :metadata
2043
-
2044
1764
  # The ID of the price object.
2045
1765
  attr_accessor :price
2046
-
2047
1766
  # Quantity for this item.
2048
1767
  attr_accessor :quantity
2049
-
2050
1768
  # 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`.
2051
1769
  attr_accessor :tax_rates
2052
-
2053
1770
  # Options that configure the trial on the subscription item.
2054
1771
  attr_accessor :trial
2055
1772
 
@@ -2073,10 +1790,8 @@ module Stripe
2073
1790
  class RemoveDiscount < Stripe::RequestParams
2074
1791
  # The coupon code to remove from the `discounts` array.
2075
1792
  attr_accessor :coupon
2076
-
2077
1793
  # The ID of a discount to remove from the `discounts` array.
2078
1794
  attr_accessor :discount
2079
-
2080
1795
  # The ID of a promotion code to remove from the `discounts` array.
2081
1796
  attr_accessor :promotion_code
2082
1797
 
@@ -2099,10 +1814,8 @@ module Stripe
2099
1814
  class SetDiscount < Stripe::RequestParams
2100
1815
  # The coupon code to replace the `discounts` array with.
2101
1816
  attr_accessor :coupon
2102
-
2103
1817
  # An ID of an existing discount to replace the `discounts` array with.
2104
1818
  attr_accessor :discount
2105
-
2106
1819
  # An ID of an existing promotion code to replace the `discounts` array with.
2107
1820
  attr_accessor :promotion_code
2108
1821
 
@@ -2119,7 +1832,6 @@ module Stripe
2119
1832
  class Duration < Stripe::RequestParams
2120
1833
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2121
1834
  attr_accessor :interval
2122
-
2123
1835
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2124
1836
  attr_accessor :interval_count
2125
1837
 
@@ -2130,10 +1842,8 @@ module Stripe
2130
1842
  end
2131
1843
  # Time span for the redeemed discount.
2132
1844
  attr_accessor :duration
2133
-
2134
1845
  # A precise Unix timestamp for the discount to end. Must be in the future.
2135
1846
  attr_accessor :timestamp
2136
-
2137
1847
  # The type of calculation made to determine when the discount ends.
2138
1848
  attr_accessor :type
2139
1849
 
@@ -2145,13 +1855,10 @@ module Stripe
2145
1855
  end
2146
1856
  # ID of the coupon to create a new discount for.
2147
1857
  attr_accessor :coupon
2148
-
2149
1858
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2150
1859
  attr_accessor :discount
2151
-
2152
1860
  # Details to determine how long the discount should be applied for.
2153
1861
  attr_accessor :discount_end
2154
-
2155
1862
  # ID of the promotion code to create a new discount for.
2156
1863
  attr_accessor :promotion_code
2157
1864
 
@@ -2166,7 +1873,6 @@ module Stripe
2166
1873
  class Trial < Stripe::RequestParams
2167
1874
  # 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.
2168
1875
  attr_accessor :converts_to
2169
-
2170
1876
  # Determines the type of trial for this item.
2171
1877
  attr_accessor :type
2172
1878
 
@@ -2177,19 +1883,14 @@ module Stripe
2177
1883
  end
2178
1884
  # If an item with the `price` already exists, passing this will override the `discounts` 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 `discounts`.
2179
1885
  attr_accessor :discounts
2180
-
2181
1886
  # 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`.
2182
1887
  attr_accessor :metadata
2183
-
2184
1888
  # The ID of the price object.
2185
1889
  attr_accessor :price
2186
-
2187
1890
  # 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`.
2188
1891
  attr_accessor :quantity
2189
-
2190
1892
  # 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`.
2191
1893
  attr_accessor :tax_rates
2192
-
2193
1894
  # 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`.
2194
1895
  attr_accessor :trial
2195
1896
 
@@ -2211,31 +1912,22 @@ module Stripe
2211
1912
  end
2212
1913
  # Details for the `add_discount` type.
2213
1914
  attr_accessor :add_discount
2214
-
2215
1915
  # Details for the `add_item` type.
2216
1916
  attr_accessor :add_item
2217
-
2218
1917
  # Details for the `add_metadata` type: specify a hash of key-value pairs.
2219
1918
  attr_accessor :add_metadata
2220
-
2221
1919
  # Details for the `remove_discount` type.
2222
1920
  attr_accessor :remove_discount
2223
-
2224
1921
  # Details for the `remove_item` type.
2225
1922
  attr_accessor :remove_item
2226
-
2227
1923
  # Details for the `remove_metadata` type: specify an array of metadata keys.
2228
1924
  attr_accessor :remove_metadata
2229
-
2230
1925
  # Details for the `set_discounts` type.
2231
1926
  attr_accessor :set_discounts
2232
-
2233
1927
  # Details for the `set_items` type.
2234
1928
  attr_accessor :set_items
2235
-
2236
1929
  # Details for the `set_metadata` type: specify an array of key-value pairs.
2237
1930
  attr_accessor :set_metadata
2238
-
2239
1931
  # The type of action the quote line performs.
2240
1932
  attr_accessor :type
2241
1933
 
@@ -2267,10 +1959,8 @@ module Stripe
2267
1959
  class AppliesTo < Stripe::RequestParams
2268
1960
  # 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.
2269
1961
  attr_accessor :new_reference
2270
-
2271
1962
  # The ID of the schedule the line applies to.
2272
1963
  attr_accessor :subscription_schedule
2273
-
2274
1964
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
2275
1965
  attr_accessor :type
2276
1966
 
@@ -2284,10 +1974,8 @@ module Stripe
2284
1974
  class CancelSubscriptionSchedule < Stripe::RequestParams
2285
1975
  # Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
2286
1976
  attr_accessor :cancel_at
2287
-
2288
1977
  # 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`.
2289
1978
  attr_accessor :invoice_now
2290
-
2291
1979
  # If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
2292
1980
  attr_accessor :prorate
2293
1981
 
@@ -2311,7 +1999,6 @@ module Stripe
2311
1999
  class Duration < Stripe::RequestParams
2312
2000
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2313
2001
  attr_accessor :interval
2314
-
2315
2002
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2316
2003
  attr_accessor :interval_count
2317
2004
 
@@ -2322,13 +2009,10 @@ module Stripe
2322
2009
  end
2323
2010
  # Use the `end` time of a given discount.
2324
2011
  attr_accessor :discount_end
2325
-
2326
2012
  # Time span for the quote line starting from the `starts_at` date.
2327
2013
  attr_accessor :duration
2328
-
2329
2014
  # A precise Unix timestamp.
2330
2015
  attr_accessor :timestamp
2331
-
2332
2016
  # Select a way to pass in `ends_at`.
2333
2017
  attr_accessor :type
2334
2018
 
@@ -2351,7 +2035,6 @@ module Stripe
2351
2035
  end
2352
2036
  # Details of the pause_collection behavior to apply to the amendment.
2353
2037
  attr_accessor :set
2354
-
2355
2038
  # Determines the type of the pause_collection amendment.
2356
2039
  attr_accessor :type
2357
2040
 
@@ -2374,7 +2057,6 @@ module Stripe
2374
2057
  class LineEndsAt < Stripe::RequestParams
2375
2058
  # The ID of a quote line.
2376
2059
  attr_accessor :id
2377
-
2378
2060
  # 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.
2379
2061
  attr_accessor :index
2380
2062
 
@@ -2385,13 +2067,10 @@ module Stripe
2385
2067
  end
2386
2068
  # Use the `end` time of a given discount.
2387
2069
  attr_accessor :discount_end
2388
-
2389
2070
  # The timestamp the given line ends at.
2390
2071
  attr_accessor :line_ends_at
2391
-
2392
2072
  # A precise Unix timestamp.
2393
2073
  attr_accessor :timestamp
2394
-
2395
2074
  # Select a way to pass in `starts_at`.
2396
2075
  attr_accessor :type
2397
2076
 
@@ -2421,34 +2100,24 @@ module Stripe
2421
2100
  end
2422
2101
  # An array of operations the quote line performs.
2423
2102
  attr_accessor :actions
2424
-
2425
2103
  # Details to identify the subscription schedule the quote line applies to.
2426
2104
  attr_accessor :applies_to
2427
-
2428
2105
  # 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.
2429
2106
  attr_accessor :billing_cycle_anchor
2430
-
2431
2107
  # 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.
2432
2108
  attr_accessor :cancel_subscription_schedule
2433
-
2434
2109
  # 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.
2435
2110
  attr_accessor :ends_at
2436
-
2437
2111
  # The ID of an existing line on the quote.
2438
2112
  attr_accessor :id
2439
-
2440
2113
  # 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.
2441
2114
  attr_accessor :proration_behavior
2442
-
2443
2115
  # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
2444
2116
  attr_accessor :set_pause_collection
2445
-
2446
2117
  # Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
2447
2118
  attr_accessor :set_schedule_end
2448
-
2449
2119
  # Details to identify the earliest timestamp where the proposed change should take effect.
2450
2120
  attr_accessor :starts_at
2451
-
2452
2121
  # Settings related to subscription trials.
2453
2122
  attr_accessor :trial_settings
2454
2123
 
@@ -2485,7 +2154,6 @@ module Stripe
2485
2154
  class Duration < Stripe::RequestParams
2486
2155
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2487
2156
  attr_accessor :interval
2488
-
2489
2157
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2490
2158
  attr_accessor :interval_count
2491
2159
 
@@ -2496,10 +2164,8 @@ module Stripe
2496
2164
  end
2497
2165
  # Time span for the redeemed discount.
2498
2166
  attr_accessor :duration
2499
-
2500
2167
  # A precise Unix timestamp for the discount to end. Must be in the future.
2501
2168
  attr_accessor :timestamp
2502
-
2503
2169
  # The type of calculation made to determine when the discount ends.
2504
2170
  attr_accessor :type
2505
2171
 
@@ -2511,13 +2177,10 @@ module Stripe
2511
2177
  end
2512
2178
  # ID of the coupon to create a new discount for.
2513
2179
  attr_accessor :coupon
2514
-
2515
2180
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2516
2181
  attr_accessor :discount
2517
-
2518
2182
  # Details to determine how long the discount should be applied for.
2519
2183
  attr_accessor :discount_end
2520
-
2521
2184
  # ID of the promotion code to create a new discount for.
2522
2185
  attr_accessor :promotion_code
2523
2186
 
@@ -2533,7 +2196,6 @@ module Stripe
2533
2196
  class Recurring < Stripe::RequestParams
2534
2197
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
2535
2198
  attr_accessor :interval
2536
-
2537
2199
  # 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).
2538
2200
  attr_accessor :interval_count
2539
2201
 
@@ -2544,19 +2206,14 @@ module Stripe
2544
2206
  end
2545
2207
  # 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).
2546
2208
  attr_accessor :currency
2547
-
2548
2209
  # The ID of the product that this price will belong to.
2549
2210
  attr_accessor :product
2550
-
2551
2211
  # The recurring components of a price such as `interval` and `interval_count`.
2552
2212
  attr_accessor :recurring
2553
-
2554
2213
  # 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.
2555
2214
  attr_accessor :tax_behavior
2556
-
2557
2215
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
2558
2216
  attr_accessor :unit_amount
2559
-
2560
2217
  # 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.
2561
2218
  attr_accessor :unit_amount_decimal
2562
2219
 
@@ -2578,19 +2235,14 @@ module Stripe
2578
2235
  end
2579
2236
  # The discounts applied to this line item.
2580
2237
  attr_accessor :discounts
2581
-
2582
2238
  # The ID of an existing line item on the quote.
2583
2239
  attr_accessor :id
2584
-
2585
2240
  # The ID of the price object. One of `price` or `price_data` is required.
2586
2241
  attr_accessor :price
2587
-
2588
2242
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
2589
2243
  attr_accessor :price_data
2590
-
2591
2244
  # The quantity of the line item.
2592
2245
  attr_accessor :quantity
2593
-
2594
2246
  # 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.
2595
2247
  attr_accessor :tax_rates
2596
2248
 
@@ -2617,7 +2269,6 @@ module Stripe
2617
2269
  class LineStartsAt < Stripe::RequestParams
2618
2270
  # The ID of a quote line.
2619
2271
  attr_accessor :id
2620
-
2621
2272
  # 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.
2622
2273
  attr_accessor :index
2623
2274
 
@@ -2628,10 +2279,8 @@ module Stripe
2628
2279
  end
2629
2280
  # Details of a Quote line to start the bill period from.
2630
2281
  attr_accessor :line_starts_at
2631
-
2632
2282
  # A precise Unix timestamp.
2633
2283
  attr_accessor :timestamp
2634
-
2635
2284
  # The type of method to specify the `bill_from` time.
2636
2285
  attr_accessor :type
2637
2286
 
@@ -2646,7 +2295,6 @@ module Stripe
2646
2295
  class Duration < Stripe::RequestParams
2647
2296
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2648
2297
  attr_accessor :interval
2649
-
2650
2298
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2651
2299
  attr_accessor :interval_count
2652
2300
 
@@ -2659,7 +2307,6 @@ module Stripe
2659
2307
  class LineEndsAt < Stripe::RequestParams
2660
2308
  # The ID of a quote line.
2661
2309
  attr_accessor :id
2662
-
2663
2310
  # 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.
2664
2311
  attr_accessor :index
2665
2312
 
@@ -2670,13 +2317,10 @@ module Stripe
2670
2317
  end
2671
2318
  # Details of the duration over which to bill.
2672
2319
  attr_accessor :duration
2673
-
2674
2320
  # Details of a Quote line item from which to bill until.
2675
2321
  attr_accessor :line_ends_at
2676
-
2677
2322
  # A precise Unix timestamp.
2678
2323
  attr_accessor :timestamp
2679
-
2680
2324
  # The type of method to specify the `bill_until` time.
2681
2325
  attr_accessor :type
2682
2326
 
@@ -2689,7 +2333,6 @@ module Stripe
2689
2333
  end
2690
2334
  # The start of the period to bill from when the Quote is accepted.
2691
2335
  attr_accessor :bill_from
2692
-
2693
2336
  # The end of the period to bill until when the Quote is accepted.
2694
2337
  attr_accessor :bill_until
2695
2338
 
@@ -2709,28 +2352,20 @@ module Stripe
2709
2352
  end
2710
2353
  # Describes the period to bill for upon accepting the quote.
2711
2354
  attr_accessor :bill_on_acceptance
2712
-
2713
2355
  # 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.
2714
2356
  attr_accessor :billing_behavior
2715
-
2716
2357
  # When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
2717
2358
  attr_accessor :billing_cycle_anchor
2718
-
2719
2359
  # 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.
2720
2360
  attr_accessor :description
2721
-
2722
2361
  # 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.
2723
2362
  attr_accessor :effective_date
2724
-
2725
2363
  # Behavior of the subscription schedule and underlying subscription when it ends.
2726
2364
  attr_accessor :end_behavior
2727
-
2728
2365
  # 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.
2729
2366
  attr_accessor :metadata
2730
-
2731
2367
  # If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
2732
2368
  attr_accessor :prebilling
2733
-
2734
2369
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
2735
2370
  #
2736
2371
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -2739,7 +2374,6 @@ module Stripe
2739
2374
  #
2740
2375
  # Prorations can be disabled by passing `none`.
2741
2376
  attr_accessor :proration_behavior
2742
-
2743
2377
  # Integer representing the number of trial period days before the customer is charged for the first time.
2744
2378
  attr_accessor :trial_period_days
2745
2379
 
@@ -2772,10 +2406,8 @@ module Stripe
2772
2406
  class AppliesTo < Stripe::RequestParams
2773
2407
  # 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.
2774
2408
  attr_accessor :new_reference
2775
-
2776
2409
  # The ID of the schedule the line applies to.
2777
2410
  attr_accessor :subscription_schedule
2778
-
2779
2411
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
2780
2412
  attr_accessor :type
2781
2413
 
@@ -2791,7 +2423,6 @@ module Stripe
2791
2423
  class LineStartsAt < Stripe::RequestParams
2792
2424
  # The ID of a quote line.
2793
2425
  attr_accessor :id
2794
-
2795
2426
  # 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.
2796
2427
  attr_accessor :index
2797
2428
 
@@ -2802,10 +2433,8 @@ module Stripe
2802
2433
  end
2803
2434
  # Details of a Quote line to start the bill period from.
2804
2435
  attr_accessor :line_starts_at
2805
-
2806
2436
  # A precise Unix timestamp.
2807
2437
  attr_accessor :timestamp
2808
-
2809
2438
  # The type of method to specify the `bill_from` time.
2810
2439
  attr_accessor :type
2811
2440
 
@@ -2820,7 +2449,6 @@ module Stripe
2820
2449
  class Duration < Stripe::RequestParams
2821
2450
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2822
2451
  attr_accessor :interval
2823
-
2824
2452
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2825
2453
  attr_accessor :interval_count
2826
2454
 
@@ -2833,7 +2461,6 @@ module Stripe
2833
2461
  class LineEndsAt < Stripe::RequestParams
2834
2462
  # The ID of a quote line.
2835
2463
  attr_accessor :id
2836
-
2837
2464
  # 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.
2838
2465
  attr_accessor :index
2839
2466
 
@@ -2844,13 +2471,10 @@ module Stripe
2844
2471
  end
2845
2472
  # Details of the duration over which to bill.
2846
2473
  attr_accessor :duration
2847
-
2848
2474
  # Details of a Quote line item from which to bill until.
2849
2475
  attr_accessor :line_ends_at
2850
-
2851
2476
  # A precise Unix timestamp.
2852
2477
  attr_accessor :timestamp
2853
-
2854
2478
  # The type of method to specify the `bill_until` time.
2855
2479
  attr_accessor :type
2856
2480
 
@@ -2863,7 +2487,6 @@ module Stripe
2863
2487
  end
2864
2488
  # The start of the period to bill from when the Quote is accepted.
2865
2489
  attr_accessor :bill_from
2866
-
2867
2490
  # The end of the period to bill until when the Quote is accepted.
2868
2491
  attr_accessor :bill_until
2869
2492
 
@@ -2874,22 +2497,16 @@ module Stripe
2874
2497
  end
2875
2498
  # Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
2876
2499
  attr_accessor :applies_to
2877
-
2878
2500
  # Describes the period to bill for upon accepting the quote.
2879
2501
  attr_accessor :bill_on_acceptance
2880
-
2881
2502
  # 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.
2882
2503
  attr_accessor :billing_behavior
2883
-
2884
2504
  # The customer the Subscription Data override applies to.
2885
2505
  attr_accessor :customer
2886
-
2887
2506
  # 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.
2888
2507
  attr_accessor :description
2889
-
2890
2508
  # Behavior of the subscription schedule and underlying subscription when it ends.
2891
2509
  attr_accessor :end_behavior
2892
-
2893
2510
  # Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
2894
2511
  #
2895
2512
  # When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
@@ -2921,10 +2538,8 @@ module Stripe
2921
2538
  class TransferData < Stripe::RequestParams
2922
2539
  # 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.
2923
2540
  attr_accessor :amount
2924
-
2925
2541
  # 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.
2926
2542
  attr_accessor :amount_percent
2927
-
2928
2543
  # ID of an existing, connected Stripe account.
2929
2544
  attr_accessor :destination
2930
2545
 
@@ -2936,64 +2551,44 @@ module Stripe
2936
2551
  end
2937
2552
  # Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
2938
2553
  attr_accessor :allow_backdated_lines
2939
-
2940
2554
  # 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.
2941
2555
  attr_accessor :application_fee_amount
2942
-
2943
2556
  # 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.
2944
2557
  attr_accessor :application_fee_percent
2945
-
2946
2558
  # Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
2947
2559
  attr_accessor :automatic_tax
2948
-
2949
2560
  # 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`.
2950
2561
  attr_accessor :collection_method
2951
-
2952
2562
  # The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
2953
2563
  attr_accessor :customer
2954
-
2955
2564
  # The tax rates that will apply to any line item that does not have `tax_rates` set.
2956
2565
  attr_accessor :default_tax_rates
2957
-
2958
2566
  # A description that will be displayed on the quote PDF.
2959
2567
  attr_accessor :description
2960
-
2961
2568
  # The discounts applied to the quote.
2962
2569
  attr_accessor :discounts
2963
-
2964
2570
  # Specifies which fields in the response should be expanded.
2965
2571
  attr_accessor :expand
2966
-
2967
2572
  # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
2968
2573
  attr_accessor :expires_at
2969
-
2970
2574
  # A footer that will be displayed on the quote PDF.
2971
2575
  attr_accessor :footer
2972
-
2973
2576
  # A header that will be displayed on the quote PDF.
2974
2577
  attr_accessor :header
2975
-
2976
2578
  # All invoices will be billed using the specified settings.
2977
2579
  attr_accessor :invoice_settings
2978
-
2979
2580
  # 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.
2980
2581
  attr_accessor :line_items
2981
-
2982
2582
  # 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.
2983
2583
  attr_accessor :lines
2984
-
2985
2584
  # 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`.
2986
2585
  attr_accessor :metadata
2987
-
2988
2586
  # The account on behalf of which to charge.
2989
2587
  attr_accessor :on_behalf_of
2990
-
2991
2588
  # 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.
2992
2589
  attr_accessor :subscription_data
2993
-
2994
2590
  # List representing overrides for `subscription_data` configurations for specific subscription schedules.
2995
2591
  attr_accessor :subscription_data_overrides
2996
-
2997
2592
  # The data with which to automatically create a Transfer for each of the invoices.
2998
2593
  attr_accessor :transfer_data
2999
2594
 
@@ -3047,13 +2642,10 @@ module Stripe
3047
2642
  class ListComputedUpfrontLineItemsParams < Stripe::RequestParams
3048
2643
  # 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.
3049
2644
  attr_accessor :ending_before
3050
-
3051
2645
  # Specifies which fields in the response should be expanded.
3052
2646
  attr_accessor :expand
3053
-
3054
2647
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3055
2648
  attr_accessor :limit
3056
-
3057
2649
  # 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.
3058
2650
  attr_accessor :starting_after
3059
2651
 
@@ -3068,13 +2660,10 @@ module Stripe
3068
2660
  class ListLineItemsParams < Stripe::RequestParams
3069
2661
  # 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.
3070
2662
  attr_accessor :ending_before
3071
-
3072
2663
  # Specifies which fields in the response should be expanded.
3073
2664
  attr_accessor :expand
3074
-
3075
2665
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3076
2666
  attr_accessor :limit
3077
-
3078
2667
  # 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.
3079
2668
  attr_accessor :starting_after
3080
2669
 
@@ -3089,13 +2678,10 @@ module Stripe
3089
2678
  class ListLinesParams < Stripe::RequestParams
3090
2679
  # 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.
3091
2680
  attr_accessor :ending_before
3092
-
3093
2681
  # Specifies which fields in the response should be expanded.
3094
2682
  attr_accessor :expand
3095
-
3096
2683
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3097
2684
  attr_accessor :limit
3098
-
3099
2685
  # 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.
3100
2686
  attr_accessor :starting_after
3101
2687
 
@@ -3128,7 +2714,6 @@ module Stripe
3128
2714
  class FinalizeQuoteParams < Stripe::RequestParams
3129
2715
  # Specifies which fields in the response should be expanded.
3130
2716
  attr_accessor :expand
3131
-
3132
2717
  # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
3133
2718
  attr_accessor :expires_at
3134
2719
 
@@ -3150,7 +2735,6 @@ module Stripe
3150
2735
  class MarkStaleParams < Stripe::RequestParams
3151
2736
  # Specifies which fields in the response should be expanded.
3152
2737
  attr_accessor :expand
3153
-
3154
2738
  # Reason the Quote is being marked stale.
3155
2739
  attr_accessor :reason
3156
2740
 
@@ -3181,13 +2765,10 @@ module Stripe
3181
2765
  class ListPreviewInvoiceLinesParams < Stripe::RequestParams
3182
2766
  # 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.
3183
2767
  attr_accessor :ending_before
3184
-
3185
2768
  # Specifies which fields in the response should be expanded.
3186
2769
  attr_accessor :expand
3187
-
3188
2770
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3189
2771
  attr_accessor :limit
3190
-
3191
2772
  # 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.
3192
2773
  attr_accessor :starting_after
3193
2774
 
@@ -3200,121 +2781,82 @@ module Stripe
3200
2781
  end
3201
2782
  # Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
3202
2783
  attr_reader :allow_backdated_lines
3203
-
3204
2784
  # Total before any discounts or taxes are applied.
3205
2785
  attr_reader :amount_subtotal
3206
-
3207
2786
  # Total after discounts and taxes are applied.
3208
2787
  attr_reader :amount_total
3209
-
3210
2788
  # ID of the Connect Application that created the quote.
3211
2789
  attr_reader :application
3212
-
3213
2790
  # 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.
3214
2791
  attr_reader :application_fee_amount
3215
-
3216
2792
  # 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.
3217
2793
  attr_reader :application_fee_percent
3218
-
3219
2794
  # Attribute for field automatic_tax
3220
2795
  attr_reader :automatic_tax
3221
-
3222
2796
  # 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`.
3223
2797
  attr_reader :collection_method
3224
-
3225
2798
  # Attribute for field computed
3226
2799
  attr_reader :computed
3227
-
3228
2800
  # Time at which the object was created. Measured in seconds since the Unix epoch.
3229
2801
  attr_reader :created
3230
-
3231
2802
  # 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).
3232
2803
  attr_reader :currency
3233
-
3234
2804
  # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
3235
2805
  attr_reader :customer
3236
-
3237
2806
  # The tax rates applied to this quote.
3238
2807
  attr_reader :default_tax_rates
3239
-
3240
2808
  # A description that will be displayed on the quote PDF.
3241
2809
  attr_reader :description
3242
-
3243
2810
  # The discounts applied to this quote.
3244
2811
  attr_reader :discounts
3245
-
3246
2812
  # The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
3247
2813
  attr_reader :expires_at
3248
-
3249
2814
  # A footer that will be displayed on the quote PDF.
3250
2815
  attr_reader :footer
3251
-
3252
2816
  # Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.
3253
2817
  attr_reader :from_quote
3254
-
3255
2818
  # A header that will be displayed on the quote PDF.
3256
2819
  attr_reader :header
3257
-
3258
2820
  # Unique identifier for the object.
3259
2821
  attr_reader :id
3260
-
3261
2822
  # The invoice that was created from this quote.
3262
2823
  attr_reader :invoice
3263
-
3264
2824
  # Attribute for field invoice_settings
3265
2825
  attr_reader :invoice_settings
3266
-
3267
2826
  # A list of items the customer is being quoted for.
3268
2827
  attr_reader :line_items
3269
-
3270
2828
  # 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.
3271
2829
  attr_reader :lines
3272
-
3273
2830
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
3274
2831
  attr_reader :livemode
3275
-
3276
2832
  # 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.
3277
2833
  attr_reader :metadata
3278
-
3279
2834
  # A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/docs/quotes/overview#finalize).
3280
2835
  attr_reader :number
3281
-
3282
2836
  # String representing the object's type. Objects of the same type share the same value.
3283
2837
  attr_reader :object
3284
-
3285
2838
  # 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.
3286
2839
  attr_reader :on_behalf_of
3287
-
3288
2840
  # The status of the quote.
3289
2841
  attr_reader :status
3290
-
3291
2842
  # Details on when and why a quote has been marked as stale or canceled.
3292
2843
  attr_reader :status_details
3293
-
3294
2844
  # Attribute for field status_transitions
3295
2845
  attr_reader :status_transitions
3296
-
3297
2846
  # The subscription that was created or updated from this quote.
3298
2847
  attr_reader :subscription
3299
-
3300
2848
  # Attribute for field subscription_data
3301
2849
  attr_reader :subscription_data
3302
-
3303
2850
  # List representing overrides for `subscription_data` configurations for specific subscription schedules.
3304
2851
  attr_reader :subscription_data_overrides
3305
-
3306
2852
  # The subscription schedule that was created or updated from this quote.
3307
2853
  attr_reader :subscription_schedule
3308
-
3309
2854
  # The subscription schedules that were created or updated from this quote.
3310
2855
  attr_reader :subscription_schedules
3311
-
3312
2856
  # ID of the test clock this quote belongs to.
3313
2857
  attr_reader :test_clock
3314
-
3315
2858
  # Attribute for field total_details
3316
2859
  attr_reader :total_details
3317
-
3318
2860
  # 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.
3319
2861
  attr_reader :transfer_data
3320
2862