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
@@ -7,13 +7,10 @@ module Stripe
7
7
  class CanceledAt < Stripe::RequestParams
8
8
  # Minimum value to filter by (exclusive)
9
9
  attr_accessor :gt
10
-
11
10
  # Minimum value to filter by (inclusive)
12
11
  attr_accessor :gte
13
-
14
12
  # Maximum value to filter by (exclusive)
15
13
  attr_accessor :lt
16
-
17
14
  # Maximum value to filter by (inclusive)
18
15
  attr_accessor :lte
19
16
 
@@ -28,13 +25,10 @@ module Stripe
28
25
  class CompletedAt < Stripe::RequestParams
29
26
  # Minimum value to filter by (exclusive)
30
27
  attr_accessor :gt
31
-
32
28
  # Minimum value to filter by (inclusive)
33
29
  attr_accessor :gte
34
-
35
30
  # Maximum value to filter by (exclusive)
36
31
  attr_accessor :lt
37
-
38
32
  # Maximum value to filter by (inclusive)
39
33
  attr_accessor :lte
40
34
 
@@ -49,13 +43,10 @@ module Stripe
49
43
  class Created < Stripe::RequestParams
50
44
  # Minimum value to filter by (exclusive)
51
45
  attr_accessor :gt
52
-
53
46
  # Minimum value to filter by (inclusive)
54
47
  attr_accessor :gte
55
-
56
48
  # Maximum value to filter by (exclusive)
57
49
  attr_accessor :lt
58
-
59
50
  # Maximum value to filter by (inclusive)
60
51
  attr_accessor :lte
61
52
 
@@ -70,13 +61,10 @@ module Stripe
70
61
  class ReleasedAt < Stripe::RequestParams
71
62
  # Minimum value to filter by (exclusive)
72
63
  attr_accessor :gt
73
-
74
64
  # Minimum value to filter by (inclusive)
75
65
  attr_accessor :gte
76
-
77
66
  # Maximum value to filter by (exclusive)
78
67
  attr_accessor :lt
79
-
80
68
  # Maximum value to filter by (inclusive)
81
69
  attr_accessor :lte
82
70
 
@@ -89,31 +77,22 @@ module Stripe
89
77
  end
90
78
  # Only return subscription schedules that were created canceled the given date interval.
91
79
  attr_accessor :canceled_at
92
-
93
80
  # Only return subscription schedules that completed during the given date interval.
94
81
  attr_accessor :completed_at
95
-
96
82
  # Only return subscription schedules that were created during the given date interval.
97
83
  attr_accessor :created
98
-
99
84
  # Only return subscription schedules for the given customer.
100
85
  attr_accessor :customer
101
-
102
86
  # 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.
103
87
  attr_accessor :ending_before
104
-
105
88
  # Specifies which fields in the response should be expanded.
106
89
  attr_accessor :expand
107
-
108
90
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
109
91
  attr_accessor :limit
110
-
111
92
  # Only return subscription schedules that were released during the given date interval.
112
93
  attr_accessor :released_at
113
-
114
94
  # Only return subscription schedules that have not started yet.
115
95
  attr_accessor :scheduled
116
-
117
96
  # 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.
118
97
  attr_accessor :starting_after
119
98
 
@@ -148,7 +127,6 @@ module Stripe
148
127
  class Liability < Stripe::RequestParams
149
128
  # The connected account being referenced when `type` is `account`.
150
129
  attr_accessor :account
151
-
152
130
  # Type of the account referenced in the request.
153
131
  attr_accessor :type
154
132
 
@@ -159,7 +137,6 @@ module Stripe
159
137
  end
160
138
  # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
161
139
  attr_accessor :enabled
162
-
163
140
  # 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.
164
141
  attr_accessor :liability
165
142
 
@@ -172,7 +149,6 @@ module Stripe
172
149
  class BillingThresholds < Stripe::RequestParams
173
150
  # Monetary threshold that triggers the subscription to advance to a new billing period
174
151
  attr_accessor :amount_gte
175
-
176
152
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
177
153
  attr_accessor :reset_billing_cycle_anchor
178
154
 
@@ -186,7 +162,6 @@ module Stripe
186
162
  class Issuer < Stripe::RequestParams
187
163
  # The connected account being referenced when `type` is `account`.
188
164
  attr_accessor :account
189
-
190
165
  # Type of the account referenced in the request.
191
166
  attr_accessor :type
192
167
 
@@ -197,10 +172,8 @@ module Stripe
197
172
  end
198
173
  # The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
199
174
  attr_accessor :account_tax_ids
200
-
201
175
  # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
202
176
  attr_accessor :days_until_due
203
-
204
177
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
205
178
  attr_accessor :issuer
206
179
 
@@ -214,7 +187,6 @@ module Stripe
214
187
  class TransferData < Stripe::RequestParams
215
188
  # 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.
216
189
  attr_accessor :amount_percent
217
-
218
190
  # ID of an existing, connected Stripe account.
219
191
  attr_accessor :destination
220
192
 
@@ -225,31 +197,22 @@ module Stripe
225
197
  end
226
198
  # 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. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
227
199
  attr_accessor :application_fee_percent
228
-
229
200
  # Default settings for automatic tax computation.
230
201
  attr_accessor :automatic_tax
231
-
232
202
  # Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
233
203
  attr_accessor :billing_cycle_anchor
234
-
235
204
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
236
205
  attr_accessor :billing_thresholds
237
-
238
206
  # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the 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` on creation.
239
207
  attr_accessor :collection_method
240
-
241
208
  # ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
242
209
  attr_accessor :default_payment_method
243
-
244
210
  # Subscription 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.
245
211
  attr_accessor :description
246
-
247
212
  # All invoices will be billed using the specified settings.
248
213
  attr_accessor :invoice_settings
249
-
250
214
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
251
215
  attr_accessor :on_behalf_of
252
-
253
216
  # The data with which to automatically create a Transfer for each of the associated subscription's invoices.
254
217
  attr_accessor :transfer_data
255
218
 
@@ -285,7 +248,6 @@ module Stripe
285
248
  class Duration < Stripe::RequestParams
286
249
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
287
250
  attr_accessor :interval
288
-
289
251
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
290
252
  attr_accessor :interval_count
291
253
 
@@ -296,10 +258,8 @@ module Stripe
296
258
  end
297
259
  # Time span for the redeemed discount.
298
260
  attr_accessor :duration
299
-
300
261
  # A precise Unix timestamp for the discount to end. Must be in the future.
301
262
  attr_accessor :timestamp
302
-
303
263
  # The type of calculation made to determine when the discount ends.
304
264
  attr_accessor :type
305
265
 
@@ -311,13 +271,10 @@ module Stripe
311
271
  end
312
272
  # ID of the coupon to create a new discount for.
313
273
  attr_accessor :coupon
314
-
315
274
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
316
275
  attr_accessor :discount
317
-
318
276
  # Details to determine how long the discount should be applied for.
319
277
  attr_accessor :discount_end
320
-
321
278
  # ID of the promotion code to create a new discount for.
322
279
  attr_accessor :promotion_code
323
280
 
@@ -332,16 +289,12 @@ module Stripe
332
289
  class PriceData < Stripe::RequestParams
333
290
  # 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).
334
291
  attr_accessor :currency
335
-
336
292
  # The ID of the product that this price will belong to.
337
293
  attr_accessor :product
338
-
339
294
  # 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.
340
295
  attr_accessor :tax_behavior
341
-
342
296
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
343
297
  attr_accessor :unit_amount
344
-
345
298
  # 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.
346
299
  attr_accessor :unit_amount_decimal
347
300
 
@@ -361,16 +314,12 @@ module Stripe
361
314
  end
362
315
  # The coupons to redeem into discounts for the item.
363
316
  attr_accessor :discounts
364
-
365
317
  # The ID of the price object. One of `price` or `price_data` is required.
366
318
  attr_accessor :price
367
-
368
319
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
369
320
  attr_accessor :price_data
370
-
371
321
  # Quantity for this item. Defaults to 1.
372
322
  attr_accessor :quantity
373
-
374
323
  # The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
375
324
  attr_accessor :tax_rates
376
325
 
@@ -387,7 +336,6 @@ module Stripe
387
336
  class Liability < Stripe::RequestParams
388
337
  # The connected account being referenced when `type` is `account`.
389
338
  attr_accessor :account
390
-
391
339
  # Type of the account referenced in the request.
392
340
  attr_accessor :type
393
341
 
@@ -398,7 +346,6 @@ module Stripe
398
346
  end
399
347
  # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
400
348
  attr_accessor :enabled
401
-
402
349
  # 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.
403
350
  attr_accessor :liability
404
351
 
@@ -411,7 +358,6 @@ module Stripe
411
358
  class BillingThresholds < Stripe::RequestParams
412
359
  # Monetary threshold that triggers the subscription to advance to a new billing period
413
360
  attr_accessor :amount_gte
414
-
415
361
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
416
362
  attr_accessor :reset_billing_cycle_anchor
417
363
 
@@ -426,7 +372,6 @@ module Stripe
426
372
  class Duration < Stripe::RequestParams
427
373
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
428
374
  attr_accessor :interval
429
-
430
375
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
431
376
  attr_accessor :interval_count
432
377
 
@@ -437,10 +382,8 @@ module Stripe
437
382
  end
438
383
  # Time span for the redeemed discount.
439
384
  attr_accessor :duration
440
-
441
385
  # A precise Unix timestamp for the discount to end. Must be in the future.
442
386
  attr_accessor :timestamp
443
-
444
387
  # The type of calculation made to determine when the discount ends.
445
388
  attr_accessor :type
446
389
 
@@ -452,13 +395,10 @@ module Stripe
452
395
  end
453
396
  # ID of the coupon to create a new discount for.
454
397
  attr_accessor :coupon
455
-
456
398
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
457
399
  attr_accessor :discount
458
-
459
400
  # Details to determine how long the discount should be applied for.
460
401
  attr_accessor :discount_end
461
-
462
402
  # ID of the promotion code to create a new discount for.
463
403
  attr_accessor :promotion_code
464
404
 
@@ -474,7 +414,6 @@ module Stripe
474
414
  class Issuer < Stripe::RequestParams
475
415
  # The connected account being referenced when `type` is `account`.
476
416
  attr_accessor :account
477
-
478
417
  # Type of the account referenced in the request.
479
418
  attr_accessor :type
480
419
 
@@ -485,10 +424,8 @@ module Stripe
485
424
  end
486
425
  # The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
487
426
  attr_accessor :account_tax_ids
488
-
489
427
  # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
490
428
  attr_accessor :days_until_due
491
-
492
429
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
493
430
  attr_accessor :issuer
494
431
 
@@ -514,7 +451,6 @@ module Stripe
514
451
  class Duration < Stripe::RequestParams
515
452
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
516
453
  attr_accessor :interval
517
-
518
454
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
519
455
  attr_accessor :interval_count
520
456
 
@@ -525,10 +461,8 @@ module Stripe
525
461
  end
526
462
  # Time span for the redeemed discount.
527
463
  attr_accessor :duration
528
-
529
464
  # A precise Unix timestamp for the discount to end. Must be in the future.
530
465
  attr_accessor :timestamp
531
-
532
466
  # The type of calculation made to determine when the discount ends.
533
467
  attr_accessor :type
534
468
 
@@ -540,13 +474,10 @@ module Stripe
540
474
  end
541
475
  # ID of the coupon to create a new discount for.
542
476
  attr_accessor :coupon
543
-
544
477
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
545
478
  attr_accessor :discount
546
-
547
479
  # Details to determine how long the discount should be applied for.
548
480
  attr_accessor :discount_end
549
-
550
481
  # ID of the promotion code to create a new discount for.
551
482
  attr_accessor :promotion_code
552
483
 
@@ -562,7 +493,6 @@ module Stripe
562
493
  class Recurring < Stripe::RequestParams
563
494
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
564
495
  attr_accessor :interval
565
-
566
496
  # 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).
567
497
  attr_accessor :interval_count
568
498
 
@@ -573,19 +503,14 @@ module Stripe
573
503
  end
574
504
  # 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).
575
505
  attr_accessor :currency
576
-
577
506
  # The ID of the product that this price will belong to.
578
507
  attr_accessor :product
579
-
580
508
  # The recurring components of a price such as `interval` and `interval_count`.
581
509
  attr_accessor :recurring
582
-
583
510
  # 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.
584
511
  attr_accessor :tax_behavior
585
-
586
512
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
587
513
  attr_accessor :unit_amount
588
-
589
514
  # 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.
590
515
  attr_accessor :unit_amount_decimal
591
516
 
@@ -609,7 +534,6 @@ module Stripe
609
534
  class Trial < Stripe::RequestParams
610
535
  # 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.
611
536
  attr_accessor :converts_to
612
-
613
537
  # Determines the type of trial for this item.
614
538
  attr_accessor :type
615
539
 
@@ -620,28 +544,20 @@ module Stripe
620
544
  end
621
545
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
622
546
  attr_accessor :billing_thresholds
623
-
624
547
  # The coupons to redeem into discounts for the subscription item.
625
548
  attr_accessor :discounts
626
-
627
549
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
628
550
  attr_accessor :metadata
629
-
630
551
  # The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
631
552
  attr_accessor :plan
632
-
633
553
  # The ID of the price object.
634
554
  attr_accessor :price
635
-
636
555
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
637
556
  attr_accessor :price_data
638
-
639
557
  # Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
640
558
  attr_accessor :quantity
641
-
642
559
  # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
643
560
  attr_accessor :tax_rates
644
-
645
561
  # Options that configure the trial on the subscription item.
646
562
  attr_accessor :trial
647
563
 
@@ -680,7 +596,6 @@ module Stripe
680
596
  class TransferData < Stripe::RequestParams
681
597
  # 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.
682
598
  attr_accessor :amount_percent
683
-
684
599
  # ID of an existing, connected Stripe account.
685
600
  attr_accessor :destination
686
601
 
@@ -708,76 +623,52 @@ module Stripe
708
623
  end
709
624
  # A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
710
625
  attr_accessor :add_invoice_items
711
-
712
626
  # 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. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
713
627
  attr_accessor :application_fee_percent
714
-
715
628
  # Automatic tax settings for this phase.
716
629
  attr_accessor :automatic_tax
717
-
718
630
  # Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
719
631
  attr_accessor :billing_cycle_anchor
720
-
721
632
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
722
633
  attr_accessor :billing_thresholds
723
-
724
634
  # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the 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` on creation.
725
635
  attr_accessor :collection_method
726
-
727
636
  # The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
728
637
  attr_accessor :coupon
729
-
730
638
  # 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).
731
639
  attr_accessor :currency
732
-
733
640
  # ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
734
641
  attr_accessor :default_payment_method
735
-
736
642
  # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
737
643
  attr_accessor :default_tax_rates
738
-
739
644
  # Subscription 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.
740
645
  attr_accessor :description
741
-
742
646
  # The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
743
647
  attr_accessor :discounts
744
-
745
648
  # The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
746
649
  attr_accessor :end_date
747
-
748
650
  # All invoices will be billed using the specified settings.
749
651
  attr_accessor :invoice_settings
750
-
751
652
  # List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
752
653
  attr_accessor :items
753
-
754
654
  # Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
755
655
  attr_accessor :iterations
756
-
757
656
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
758
657
  attr_accessor :metadata
759
-
760
658
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
761
659
  attr_accessor :on_behalf_of
762
-
763
660
  # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
764
661
  attr_accessor :pause_collection
765
-
766
662
  # Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
767
663
  attr_accessor :proration_behavior
768
-
769
664
  # The data with which to automatically create a Transfer for each of the associated subscription's invoices.
770
665
  attr_accessor :transfer_data
771
-
772
666
  # If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
773
667
  attr_accessor :trial
774
-
775
668
  # Specify trial behavior when crossing phase boundaries
776
669
  attr_accessor :trial_continuation
777
-
778
670
  # Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
779
671
  attr_accessor :trial_end
780
-
781
672
  # Settings related to subscription trials.
782
673
  attr_accessor :trial_settings
783
674
 
@@ -839,7 +730,6 @@ module Stripe
839
730
  class Prebilling < Stripe::RequestParams
840
731
  # This is used to determine the number of billing cycles to prebill.
841
732
  attr_accessor :iterations
842
-
843
733
  # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
844
734
  attr_accessor :update_behavior
845
735
 
@@ -850,31 +740,22 @@ module Stripe
850
740
  end
851
741
  # 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.
852
742
  attr_accessor :billing_behavior
853
-
854
743
  # The identifier of the customer to create the subscription schedule for.
855
744
  attr_accessor :customer
856
-
857
745
  # Object representing the subscription schedule's default settings.
858
746
  attr_accessor :default_settings
859
-
860
747
  # Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
861
748
  attr_accessor :end_behavior
862
-
863
749
  # Specifies which fields in the response should be expanded.
864
750
  attr_accessor :expand
865
-
866
751
  # Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
867
752
  attr_accessor :from_subscription
868
-
869
753
  # 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`.
870
754
  attr_accessor :metadata
871
-
872
755
  # List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
873
756
  attr_accessor :phases
874
-
875
757
  # If specified, the invoicing for the given billing cycle iterations will be processed now.
876
758
  attr_accessor :prebilling
877
-
878
759
  # When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
879
760
  attr_accessor :start_date
880
761
 
@@ -918,7 +799,6 @@ module Stripe
918
799
  class Liability < Stripe::RequestParams
919
800
  # The connected account being referenced when `type` is `account`.
920
801
  attr_accessor :account
921
-
922
802
  # Type of the account referenced in the request.
923
803
  attr_accessor :type
924
804
 
@@ -929,7 +809,6 @@ module Stripe
929
809
  end
930
810
  # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
931
811
  attr_accessor :enabled
932
-
933
812
  # 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.
934
813
  attr_accessor :liability
935
814
 
@@ -942,7 +821,6 @@ module Stripe
942
821
  class BillingThresholds < Stripe::RequestParams
943
822
  # Monetary threshold that triggers the subscription to advance to a new billing period
944
823
  attr_accessor :amount_gte
945
-
946
824
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
947
825
  attr_accessor :reset_billing_cycle_anchor
948
826
 
@@ -956,7 +834,6 @@ module Stripe
956
834
  class Issuer < Stripe::RequestParams
957
835
  # The connected account being referenced when `type` is `account`.
958
836
  attr_accessor :account
959
-
960
837
  # Type of the account referenced in the request.
961
838
  attr_accessor :type
962
839
 
@@ -967,10 +844,8 @@ module Stripe
967
844
  end
968
845
  # The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
969
846
  attr_accessor :account_tax_ids
970
-
971
847
  # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
972
848
  attr_accessor :days_until_due
973
-
974
849
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
975
850
  attr_accessor :issuer
976
851
 
@@ -984,7 +859,6 @@ module Stripe
984
859
  class TransferData < Stripe::RequestParams
985
860
  # 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.
986
861
  attr_accessor :amount_percent
987
-
988
862
  # ID of an existing, connected Stripe account.
989
863
  attr_accessor :destination
990
864
 
@@ -995,31 +869,22 @@ module Stripe
995
869
  end
996
870
  # 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. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
997
871
  attr_accessor :application_fee_percent
998
-
999
872
  # Default settings for automatic tax computation.
1000
873
  attr_accessor :automatic_tax
1001
-
1002
874
  # Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
1003
875
  attr_accessor :billing_cycle_anchor
1004
-
1005
876
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
1006
877
  attr_accessor :billing_thresholds
1007
-
1008
878
  # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the 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` on creation.
1009
879
  attr_accessor :collection_method
1010
-
1011
880
  # ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
1012
881
  attr_accessor :default_payment_method
1013
-
1014
882
  # Subscription 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.
1015
883
  attr_accessor :description
1016
-
1017
884
  # All invoices will be billed using the specified settings.
1018
885
  attr_accessor :invoice_settings
1019
-
1020
886
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
1021
887
  attr_accessor :on_behalf_of
1022
-
1023
888
  # The data with which to automatically create a Transfer for each of the associated subscription's invoices.
1024
889
  attr_accessor :transfer_data
1025
890
 
@@ -1055,7 +920,6 @@ module Stripe
1055
920
  class Duration < Stripe::RequestParams
1056
921
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1057
922
  attr_accessor :interval
1058
-
1059
923
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1060
924
  attr_accessor :interval_count
1061
925
 
@@ -1066,10 +930,8 @@ module Stripe
1066
930
  end
1067
931
  # Time span for the redeemed discount.
1068
932
  attr_accessor :duration
1069
-
1070
933
  # A precise Unix timestamp for the discount to end. Must be in the future.
1071
934
  attr_accessor :timestamp
1072
-
1073
935
  # The type of calculation made to determine when the discount ends.
1074
936
  attr_accessor :type
1075
937
 
@@ -1081,13 +943,10 @@ module Stripe
1081
943
  end
1082
944
  # ID of the coupon to create a new discount for.
1083
945
  attr_accessor :coupon
1084
-
1085
946
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1086
947
  attr_accessor :discount
1087
-
1088
948
  # Details to determine how long the discount should be applied for.
1089
949
  attr_accessor :discount_end
1090
-
1091
950
  # ID of the promotion code to create a new discount for.
1092
951
  attr_accessor :promotion_code
1093
952
 
@@ -1102,16 +961,12 @@ module Stripe
1102
961
  class PriceData < Stripe::RequestParams
1103
962
  # 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).
1104
963
  attr_accessor :currency
1105
-
1106
964
  # The ID of the product that this price will belong to.
1107
965
  attr_accessor :product
1108
-
1109
966
  # 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.
1110
967
  attr_accessor :tax_behavior
1111
-
1112
968
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
1113
969
  attr_accessor :unit_amount
1114
-
1115
970
  # 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.
1116
971
  attr_accessor :unit_amount_decimal
1117
972
 
@@ -1131,16 +986,12 @@ module Stripe
1131
986
  end
1132
987
  # The coupons to redeem into discounts for the item.
1133
988
  attr_accessor :discounts
1134
-
1135
989
  # The ID of the price object. One of `price` or `price_data` is required.
1136
990
  attr_accessor :price
1137
-
1138
991
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
1139
992
  attr_accessor :price_data
1140
-
1141
993
  # Quantity for this item. Defaults to 1.
1142
994
  attr_accessor :quantity
1143
-
1144
995
  # The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
1145
996
  attr_accessor :tax_rates
1146
997
 
@@ -1157,7 +1008,6 @@ module Stripe
1157
1008
  class Liability < Stripe::RequestParams
1158
1009
  # The connected account being referenced when `type` is `account`.
1159
1010
  attr_accessor :account
1160
-
1161
1011
  # Type of the account referenced in the request.
1162
1012
  attr_accessor :type
1163
1013
 
@@ -1168,7 +1018,6 @@ module Stripe
1168
1018
  end
1169
1019
  # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
1170
1020
  attr_accessor :enabled
1171
-
1172
1021
  # 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.
1173
1022
  attr_accessor :liability
1174
1023
 
@@ -1181,7 +1030,6 @@ module Stripe
1181
1030
  class BillingThresholds < Stripe::RequestParams
1182
1031
  # Monetary threshold that triggers the subscription to advance to a new billing period
1183
1032
  attr_accessor :amount_gte
1184
-
1185
1033
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
1186
1034
  attr_accessor :reset_billing_cycle_anchor
1187
1035
 
@@ -1196,7 +1044,6 @@ module Stripe
1196
1044
  class Duration < Stripe::RequestParams
1197
1045
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1198
1046
  attr_accessor :interval
1199
-
1200
1047
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1201
1048
  attr_accessor :interval_count
1202
1049
 
@@ -1207,10 +1054,8 @@ module Stripe
1207
1054
  end
1208
1055
  # Time span for the redeemed discount.
1209
1056
  attr_accessor :duration
1210
-
1211
1057
  # A precise Unix timestamp for the discount to end. Must be in the future.
1212
1058
  attr_accessor :timestamp
1213
-
1214
1059
  # The type of calculation made to determine when the discount ends.
1215
1060
  attr_accessor :type
1216
1061
 
@@ -1222,13 +1067,10 @@ module Stripe
1222
1067
  end
1223
1068
  # ID of the coupon to create a new discount for.
1224
1069
  attr_accessor :coupon
1225
-
1226
1070
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1227
1071
  attr_accessor :discount
1228
-
1229
1072
  # Details to determine how long the discount should be applied for.
1230
1073
  attr_accessor :discount_end
1231
-
1232
1074
  # ID of the promotion code to create a new discount for.
1233
1075
  attr_accessor :promotion_code
1234
1076
 
@@ -1244,7 +1086,6 @@ module Stripe
1244
1086
  class Issuer < Stripe::RequestParams
1245
1087
  # The connected account being referenced when `type` is `account`.
1246
1088
  attr_accessor :account
1247
-
1248
1089
  # Type of the account referenced in the request.
1249
1090
  attr_accessor :type
1250
1091
 
@@ -1255,10 +1096,8 @@ module Stripe
1255
1096
  end
1256
1097
  # The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
1257
1098
  attr_accessor :account_tax_ids
1258
-
1259
1099
  # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
1260
1100
  attr_accessor :days_until_due
1261
-
1262
1101
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
1263
1102
  attr_accessor :issuer
1264
1103
 
@@ -1284,7 +1123,6 @@ module Stripe
1284
1123
  class Duration < Stripe::RequestParams
1285
1124
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1286
1125
  attr_accessor :interval
1287
-
1288
1126
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1289
1127
  attr_accessor :interval_count
1290
1128
 
@@ -1295,10 +1133,8 @@ module Stripe
1295
1133
  end
1296
1134
  # Time span for the redeemed discount.
1297
1135
  attr_accessor :duration
1298
-
1299
1136
  # A precise Unix timestamp for the discount to end. Must be in the future.
1300
1137
  attr_accessor :timestamp
1301
-
1302
1138
  # The type of calculation made to determine when the discount ends.
1303
1139
  attr_accessor :type
1304
1140
 
@@ -1310,13 +1146,10 @@ module Stripe
1310
1146
  end
1311
1147
  # ID of the coupon to create a new discount for.
1312
1148
  attr_accessor :coupon
1313
-
1314
1149
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1315
1150
  attr_accessor :discount
1316
-
1317
1151
  # Details to determine how long the discount should be applied for.
1318
1152
  attr_accessor :discount_end
1319
-
1320
1153
  # ID of the promotion code to create a new discount for.
1321
1154
  attr_accessor :promotion_code
1322
1155
 
@@ -1332,7 +1165,6 @@ module Stripe
1332
1165
  class Recurring < Stripe::RequestParams
1333
1166
  # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
1334
1167
  attr_accessor :interval
1335
-
1336
1168
  # 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).
1337
1169
  attr_accessor :interval_count
1338
1170
 
@@ -1343,19 +1175,14 @@ module Stripe
1343
1175
  end
1344
1176
  # 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).
1345
1177
  attr_accessor :currency
1346
-
1347
1178
  # The ID of the product that this price will belong to.
1348
1179
  attr_accessor :product
1349
-
1350
1180
  # The recurring components of a price such as `interval` and `interval_count`.
1351
1181
  attr_accessor :recurring
1352
-
1353
1182
  # 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.
1354
1183
  attr_accessor :tax_behavior
1355
-
1356
1184
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
1357
1185
  attr_accessor :unit_amount
1358
-
1359
1186
  # 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.
1360
1187
  attr_accessor :unit_amount_decimal
1361
1188
 
@@ -1379,7 +1206,6 @@ module Stripe
1379
1206
  class Trial < Stripe::RequestParams
1380
1207
  # 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.
1381
1208
  attr_accessor :converts_to
1382
-
1383
1209
  # Determines the type of trial for this item.
1384
1210
  attr_accessor :type
1385
1211
 
@@ -1390,28 +1216,20 @@ module Stripe
1390
1216
  end
1391
1217
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
1392
1218
  attr_accessor :billing_thresholds
1393
-
1394
1219
  # The coupons to redeem into discounts for the subscription item.
1395
1220
  attr_accessor :discounts
1396
-
1397
1221
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
1398
1222
  attr_accessor :metadata
1399
-
1400
1223
  # The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
1401
1224
  attr_accessor :plan
1402
-
1403
1225
  # The ID of the price object.
1404
1226
  attr_accessor :price
1405
-
1406
1227
  # Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
1407
1228
  attr_accessor :price_data
1408
-
1409
1229
  # Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
1410
1230
  attr_accessor :quantity
1411
-
1412
1231
  # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
1413
1232
  attr_accessor :tax_rates
1414
-
1415
1233
  # Options that configure the trial on the subscription item.
1416
1234
  attr_accessor :trial
1417
1235
 
@@ -1450,7 +1268,6 @@ module Stripe
1450
1268
  class TransferData < Stripe::RequestParams
1451
1269
  # 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.
1452
1270
  attr_accessor :amount_percent
1453
-
1454
1271
  # ID of an existing, connected Stripe account.
1455
1272
  attr_accessor :destination
1456
1273
 
@@ -1478,79 +1295,54 @@ module Stripe
1478
1295
  end
1479
1296
  # A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
1480
1297
  attr_accessor :add_invoice_items
1481
-
1482
1298
  # 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. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
1483
1299
  attr_accessor :application_fee_percent
1484
-
1485
1300
  # Automatic tax settings for this phase.
1486
1301
  attr_accessor :automatic_tax
1487
-
1488
1302
  # Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
1489
1303
  attr_accessor :billing_cycle_anchor
1490
-
1491
1304
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
1492
1305
  attr_accessor :billing_thresholds
1493
-
1494
1306
  # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the 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` on creation.
1495
1307
  attr_accessor :collection_method
1496
-
1497
1308
  # The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.
1498
1309
  attr_accessor :coupon
1499
-
1500
1310
  # 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).
1501
1311
  attr_accessor :currency
1502
-
1503
1312
  # ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
1504
1313
  attr_accessor :default_payment_method
1505
-
1506
1314
  # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
1507
1315
  attr_accessor :default_tax_rates
1508
-
1509
1316
  # Subscription 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.
1510
1317
  attr_accessor :description
1511
-
1512
1318
  # The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
1513
1319
  attr_accessor :discounts
1514
-
1515
1320
  # The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
1516
1321
  attr_accessor :end_date
1517
-
1518
1322
  # All invoices will be billed using the specified settings.
1519
1323
  attr_accessor :invoice_settings
1520
-
1521
1324
  # List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
1522
1325
  attr_accessor :items
1523
-
1524
1326
  # Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
1525
1327
  attr_accessor :iterations
1526
-
1527
1328
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
1528
1329
  attr_accessor :metadata
1529
-
1530
1330
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
1531
1331
  attr_accessor :on_behalf_of
1532
-
1533
1332
  # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
1534
1333
  attr_accessor :pause_collection
1535
-
1536
1334
  # Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
1537
1335
  attr_accessor :proration_behavior
1538
-
1539
1336
  # The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
1540
1337
  attr_accessor :start_date
1541
-
1542
1338
  # The data with which to automatically create a Transfer for each of the associated subscription's invoices.
1543
1339
  attr_accessor :transfer_data
1544
-
1545
1340
  # If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
1546
1341
  attr_accessor :trial
1547
-
1548
1342
  # Specify trial behavior when crossing phase boundaries
1549
1343
  attr_accessor :trial_continuation
1550
-
1551
1344
  # Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
1552
1345
  attr_accessor :trial_end
1553
-
1554
1346
  # Settings related to subscription trials.
1555
1347
  attr_accessor :trial_settings
1556
1348
 
@@ -1614,7 +1406,6 @@ module Stripe
1614
1406
  class Prebilling < Stripe::RequestParams
1615
1407
  # This is used to determine the number of billing cycles to prebill.
1616
1408
  attr_accessor :iterations
1617
-
1618
1409
  # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
1619
1410
  attr_accessor :update_behavior
1620
1411
 
@@ -1625,25 +1416,18 @@ module Stripe
1625
1416
  end
1626
1417
  # 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.
1627
1418
  attr_accessor :billing_behavior
1628
-
1629
1419
  # Object representing the subscription schedule's default settings.
1630
1420
  attr_accessor :default_settings
1631
-
1632
1421
  # Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
1633
1422
  attr_accessor :end_behavior
1634
-
1635
1423
  # Specifies which fields in the response should be expanded.
1636
1424
  attr_accessor :expand
1637
-
1638
1425
  # 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`.
1639
1426
  attr_accessor :metadata
1640
-
1641
1427
  # List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
1642
1428
  attr_accessor :phases
1643
-
1644
1429
  # If specified, the invoicing for the given billing cycle iterations will be processed now.
1645
1430
  attr_accessor :prebilling
1646
-
1647
1431
  # If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`.
1648
1432
  attr_accessor :proration_behavior
1649
1433
 
@@ -1683,7 +1467,6 @@ module Stripe
1683
1467
  class Duration < Stripe::RequestParams
1684
1468
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1685
1469
  attr_accessor :interval
1686
-
1687
1470
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1688
1471
  attr_accessor :interval_count
1689
1472
 
@@ -1694,13 +1477,10 @@ module Stripe
1694
1477
  end
1695
1478
  # Use the `end` time of a given discount.
1696
1479
  attr_accessor :discount_end
1697
-
1698
1480
  # Time span for the amendment starting from the `amendment_start`.
1699
1481
  attr_accessor :duration
1700
-
1701
1482
  # A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
1702
1483
  attr_accessor :timestamp
1703
-
1704
1484
  # Select one of three ways to pass the `amendment_end`.
1705
1485
  attr_accessor :type
1706
1486
 
@@ -1732,13 +1512,10 @@ module Stripe
1732
1512
  end
1733
1513
  # Details of another amendment in the same array, immediately after which this amendment should begin.
1734
1514
  attr_accessor :amendment_end
1735
-
1736
1515
  # Use the `end` time of a given discount.
1737
1516
  attr_accessor :discount_end
1738
-
1739
1517
  # A precise Unix timestamp for the amendment to start.
1740
1518
  attr_accessor :timestamp
1741
-
1742
1519
  # Select one of three ways to pass the `amendment_start`.
1743
1520
  attr_accessor :type
1744
1521
 
@@ -1762,16 +1539,12 @@ module Stripe
1762
1539
  end
1763
1540
  # The coupon code to redeem.
1764
1541
  attr_accessor :coupon
1765
-
1766
1542
  # An ID of an existing discount for a coupon that was already redeemed.
1767
1543
  attr_accessor :discount
1768
-
1769
1544
  # Details to determine how long the discount should be applied for.
1770
1545
  attr_accessor :discount_end
1771
-
1772
1546
  # 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.
1773
1547
  attr_accessor :index
1774
-
1775
1548
  # The promotion code to redeem.
1776
1549
  attr_accessor :promotion_code
1777
1550
 
@@ -1793,10 +1566,8 @@ module Stripe
1793
1566
  class Remove < Stripe::RequestParams
1794
1567
  # The coupon code to remove from the `discounts` array.
1795
1568
  attr_accessor :coupon
1796
-
1797
1569
  # The ID of a discount to remove from the `discounts` array.
1798
1570
  attr_accessor :discount
1799
-
1800
1571
  # The ID of a promotion code to remove from the `discounts` array.
1801
1572
  attr_accessor :promotion_code
1802
1573
 
@@ -1810,10 +1581,8 @@ module Stripe
1810
1581
  class Set < Stripe::RequestParams
1811
1582
  # The coupon code to replace the `discounts` array with.
1812
1583
  attr_accessor :coupon
1813
-
1814
1584
  # An ID of an existing discount to replace the `discounts` array with.
1815
1585
  attr_accessor :discount
1816
-
1817
1586
  # An ID of an existing promotion code to replace the `discounts` array with.
1818
1587
  attr_accessor :promotion_code
1819
1588
 
@@ -1825,13 +1594,10 @@ module Stripe
1825
1594
  end
1826
1595
  # Details of the discount to add.
1827
1596
  attr_accessor :add
1828
-
1829
1597
  # Details of the discount to remove.
1830
1598
  attr_accessor :remove
1831
-
1832
1599
  # Details of the discount to replace the existing discounts with.
1833
1600
  attr_accessor :set
1834
-
1835
1601
  # Determines the type of discount action.
1836
1602
  attr_accessor :type
1837
1603
 
@@ -1850,7 +1616,6 @@ module Stripe
1850
1616
  class Duration < Stripe::RequestParams
1851
1617
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1852
1618
  attr_accessor :interval
1853
-
1854
1619
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1855
1620
  attr_accessor :interval_count
1856
1621
 
@@ -1861,10 +1626,8 @@ module Stripe
1861
1626
  end
1862
1627
  # Time span for the redeemed discount.
1863
1628
  attr_accessor :duration
1864
-
1865
1629
  # A precise Unix timestamp for the discount to end. Must be in the future.
1866
1630
  attr_accessor :timestamp
1867
-
1868
1631
  # The type of calculation made to determine when the discount ends.
1869
1632
  attr_accessor :type
1870
1633
 
@@ -1876,13 +1639,10 @@ module Stripe
1876
1639
  end
1877
1640
  # ID of the coupon to create a new discount for.
1878
1641
  attr_accessor :coupon
1879
-
1880
1642
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1881
1643
  attr_accessor :discount
1882
-
1883
1644
  # Details to determine how long the discount should be applied for.
1884
1645
  attr_accessor :discount_end
1885
-
1886
1646
  # ID of the promotion code to create a new discount for.
1887
1647
  attr_accessor :promotion_code
1888
1648
 
@@ -1897,7 +1657,6 @@ module Stripe
1897
1657
  class Trial < Stripe::RequestParams
1898
1658
  # 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.
1899
1659
  attr_accessor :converts_to
1900
-
1901
1660
  # Determines the type of trial for this item.
1902
1661
  attr_accessor :type
1903
1662
 
@@ -1908,19 +1667,14 @@ module Stripe
1908
1667
  end
1909
1668
  # The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
1910
1669
  attr_accessor :discounts
1911
-
1912
1670
  # 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`.
1913
1671
  attr_accessor :metadata
1914
-
1915
1672
  # The ID of the price object.
1916
1673
  attr_accessor :price
1917
-
1918
1674
  # Quantity for this item.
1919
1675
  attr_accessor :quantity
1920
-
1921
1676
  # 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`.
1922
1677
  attr_accessor :tax_rates
1923
-
1924
1678
  # Options that configure the trial on the subscription item.
1925
1679
  attr_accessor :trial
1926
1680
 
@@ -1956,7 +1710,6 @@ module Stripe
1956
1710
  class Duration < Stripe::RequestParams
1957
1711
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1958
1712
  attr_accessor :interval
1959
-
1960
1713
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1961
1714
  attr_accessor :interval_count
1962
1715
 
@@ -1967,10 +1720,8 @@ module Stripe
1967
1720
  end
1968
1721
  # Time span for the redeemed discount.
1969
1722
  attr_accessor :duration
1970
-
1971
1723
  # A precise Unix timestamp for the discount to end. Must be in the future.
1972
1724
  attr_accessor :timestamp
1973
-
1974
1725
  # The type of calculation made to determine when the discount ends.
1975
1726
  attr_accessor :type
1976
1727
 
@@ -1982,13 +1733,10 @@ module Stripe
1982
1733
  end
1983
1734
  # ID of the coupon to create a new discount for.
1984
1735
  attr_accessor :coupon
1985
-
1986
1736
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1987
1737
  attr_accessor :discount
1988
-
1989
1738
  # Details to determine how long the discount should be applied for.
1990
1739
  attr_accessor :discount_end
1991
-
1992
1740
  # ID of the promotion code to create a new discount for.
1993
1741
  attr_accessor :promotion_code
1994
1742
 
@@ -2003,7 +1751,6 @@ module Stripe
2003
1751
  class Trial < Stripe::RequestParams
2004
1752
  # 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.
2005
1753
  attr_accessor :converts_to
2006
-
2007
1754
  # Determines the type of trial for this item.
2008
1755
  attr_accessor :type
2009
1756
 
@@ -2014,19 +1761,14 @@ module Stripe
2014
1761
  end
2015
1762
  # 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`.
2016
1763
  attr_accessor :discounts
2017
-
2018
1764
  # 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`.
2019
1765
  attr_accessor :metadata
2020
-
2021
1766
  # The ID of the price object.
2022
1767
  attr_accessor :price
2023
-
2024
1768
  # 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`.
2025
1769
  attr_accessor :quantity
2026
-
2027
1770
  # 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`.
2028
1771
  attr_accessor :tax_rates
2029
-
2030
1772
  # 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`.
2031
1773
  attr_accessor :trial
2032
1774
 
@@ -2048,13 +1790,10 @@ module Stripe
2048
1790
  end
2049
1791
  # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
2050
1792
  attr_accessor :add
2051
-
2052
1793
  # Details of the subscription item to remove.
2053
1794
  attr_accessor :remove
2054
-
2055
1795
  # Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
2056
1796
  attr_accessor :set
2057
-
2058
1797
  # Determines the type of item action.
2059
1798
  attr_accessor :type
2060
1799
 
@@ -2069,13 +1808,10 @@ module Stripe
2069
1808
  class MetadataAction < Stripe::RequestParams
2070
1809
  # Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
2071
1810
  attr_accessor :add
2072
-
2073
1811
  # Keys to remove from schedule phase metadata.
2074
1812
  attr_accessor :remove
2075
-
2076
1813
  # Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
2077
1814
  attr_accessor :set
2078
-
2079
1815
  # Select one of three ways to update phase-level `metadata` on subscription schedules.
2080
1816
  attr_accessor :type
2081
1817
 
@@ -2098,7 +1834,6 @@ module Stripe
2098
1834
  end
2099
1835
  # Details of the pause_collection behavior to apply to the amendment.
2100
1836
  attr_accessor :set
2101
-
2102
1837
  # Determines the type of the pause_collection amendment.
2103
1838
  attr_accessor :type
2104
1839
 
@@ -2126,31 +1861,22 @@ module Stripe
2126
1861
  end
2127
1862
  # Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
2128
1863
  attr_accessor :amendment_end
2129
-
2130
1864
  # Details to identify the earliest timestamp where the proposed change should take effect.
2131
1865
  attr_accessor :amendment_start
2132
-
2133
1866
  # For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
2134
1867
  attr_accessor :billing_cycle_anchor
2135
-
2136
1868
  # Changes to the coupons being redeemed or discounts being applied during the amendment time span.
2137
1869
  attr_accessor :discount_actions
2138
-
2139
1870
  # Changes to the subscription items during the amendment time span.
2140
1871
  attr_accessor :item_actions
2141
-
2142
1872
  # Instructions for how to modify phase metadata
2143
1873
  attr_accessor :metadata_actions
2144
-
2145
1874
  # Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
2146
1875
  attr_accessor :proration_behavior
2147
-
2148
1876
  # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
2149
1877
  attr_accessor :set_pause_collection
2150
-
2151
1878
  # Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
2152
1879
  attr_accessor :set_schedule_end
2153
-
2154
1880
  # Settings related to subscription trials.
2155
1881
  attr_accessor :trial_settings
2156
1882
 
@@ -2191,10 +1917,8 @@ module Stripe
2191
1917
  end
2192
1918
  # Start the prebilled period when a specified amendment begins.
2193
1919
  attr_accessor :amendment_start
2194
-
2195
1920
  # Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
2196
1921
  attr_accessor :timestamp
2197
-
2198
1922
  # Select one of several ways to pass the `bill_from` value.
2199
1923
  attr_accessor :type
2200
1924
 
@@ -2218,7 +1942,6 @@ module Stripe
2218
1942
  class Duration < Stripe::RequestParams
2219
1943
  # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2220
1944
  attr_accessor :interval
2221
-
2222
1945
  # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2223
1946
  attr_accessor :interval_count
2224
1947
 
@@ -2229,13 +1952,10 @@ module Stripe
2229
1952
  end
2230
1953
  # End the prebilled period when a specified amendment ends.
2231
1954
  attr_accessor :amendment_end
2232
-
2233
1955
  # Time span for prebilling, starting from `bill_from`.
2234
1956
  attr_accessor :duration
2235
-
2236
1957
  # End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
2237
1958
  attr_accessor :timestamp
2238
-
2239
1959
  # Select one of several ways to pass the `bill_until` value.
2240
1960
  attr_accessor :type
2241
1961
 
@@ -2248,13 +1968,10 @@ module Stripe
2248
1968
  end
2249
1969
  # The beginning of the prebilled time period. The default value is `now`.
2250
1970
  attr_accessor :bill_from
2251
-
2252
1971
  # The end of the prebilled time period.
2253
1972
  attr_accessor :bill_until
2254
-
2255
1973
  # When the prebilling invoice should be created. The default value is `now`.
2256
1974
  attr_accessor :invoice_at
2257
-
2258
1975
  # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
2259
1976
  attr_accessor :update_behavior
2260
1977
 
@@ -2276,17 +1993,13 @@ module Stripe
2276
1993
  end
2277
1994
  # Changes to apply to the phases of the subscription schedule, in the order provided.
2278
1995
  attr_accessor :amendments
2279
-
2280
1996
  # Specifies which fields in the response should be expanded.
2281
1997
  attr_accessor :expand
2282
-
2283
1998
  # Provide any time periods to bill in advance.
2284
1999
  attr_accessor :prebilling
2285
-
2286
2000
  # In cases where the amendment changes the currently active phase,
2287
2001
  # specifies if and how to prorate at the time of the request.
2288
2002
  attr_accessor :proration_behavior
2289
-
2290
2003
  # Changes to apply to the subscription schedule.
2291
2004
  attr_accessor :schedule_settings
2292
2005
 
@@ -2308,10 +2021,8 @@ module Stripe
2308
2021
  class CancelParams < Stripe::RequestParams
2309
2022
  # Specifies which fields in the response should be expanded.
2310
2023
  attr_accessor :expand
2311
-
2312
2024
  # 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. Defaults to `true`.
2313
2025
  attr_accessor :invoice_now
2314
-
2315
2026
  # If the subscription schedule is `active`, indicates if the cancellation should be prorated. Defaults to `true`.
2316
2027
  attr_accessor :prorate
2317
2028
 
@@ -2325,7 +2036,6 @@ module Stripe
2325
2036
  class ReleaseParams < Stripe::RequestParams
2326
2037
  # Specifies which fields in the response should be expanded.
2327
2038
  attr_accessor :expand
2328
-
2329
2039
  # Keep any cancellation on the subscription that the schedule has set
2330
2040
  attr_accessor :preserve_cancel_date
2331
2041