stripe 17.3.0.pre.alpha.2 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (922) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +0 -34
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -63
  5. data/lib/stripe/event_types.rb +0 -1050
  6. data/lib/stripe/object_types.rb +0 -82
  7. data/lib/stripe/params/account_create_params.rb +3 -334
  8. data/lib/stripe/params/account_person_create_params.rb +1 -33
  9. data/lib/stripe/params/account_person_update_params.rb +1 -33
  10. data/lib/stripe/params/account_session_create_params.rb +1 -226
  11. data/lib/stripe/params/account_update_params.rb +2 -296
  12. data/lib/stripe/params/billing/alert_create_params.rb +1 -121
  13. data/lib/stripe/params/billing/alert_list_params.rb +0 -4
  14. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -17
  15. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +0 -4
  16. data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -33
  17. data/lib/stripe/params/billing/credit_grant_list_params.rb +0 -4
  18. data/lib/stripe/params/billing/meter_create_params.rb +0 -4
  19. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
  20. data/lib/stripe/params/billing_portal/session_create_params.rb +0 -4
  21. data/lib/stripe/params/charge_capture_params.rb +0 -709
  22. data/lib/stripe/params/charge_update_params.rb +0 -709
  23. data/lib/stripe/params/checkout/session_create_params.rb +4 -273
  24. data/lib/stripe/params/checkout/session_list_params.rb +0 -4
  25. data/lib/stripe/params/checkout/session_update_params.rb +1 -288
  26. data/lib/stripe/params/confirmation_token_create_params.rb +0 -97
  27. data/lib/stripe/params/coupon_create_params.rb +1 -17
  28. data/lib/stripe/params/credit_note_list_params.rb +0 -4
  29. data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
  30. data/lib/stripe/params/customer_session_create_params.rb +3 -37
  31. data/lib/stripe/params/dispute_update_params.rb +1 -10
  32. data/lib/stripe/params/financial_connections/account_list_params.rb +1 -4
  33. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -34
  34. data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
  35. data/lib/stripe/params/identity/verification_session_create_params.rb +0 -4
  36. data/lib/stripe/params/identity/verification_session_list_params.rb +0 -4
  37. data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
  38. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  39. data/lib/stripe/params/invoice_create_params.rb +2 -112
  40. data/lib/stripe/params/invoice_create_preview_params.rb +9 -882
  41. data/lib/stripe/params/invoice_item_create_params.rb +1 -37
  42. data/lib/stripe/params/invoice_item_list_params.rb +0 -4
  43. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  44. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
  45. data/lib/stripe/params/invoice_list_params.rb +0 -8
  46. data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
  47. data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
  48. data/lib/stripe/params/invoice_update_params.rb +2 -108
  49. data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
  50. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  51. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  52. data/lib/stripe/params/payment_intent_capture_params.rb +30 -707
  53. data/lib/stripe/params/payment_intent_confirm_params.rb +42 -1216
  54. data/lib/stripe/params/payment_intent_create_params.rb +48 -1230
  55. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -34
  56. data/lib/stripe/params/payment_intent_list_params.rb +0 -4
  57. data/lib/stripe/params/payment_intent_update_params.rb +52 -1265
  58. data/lib/stripe/params/payment_method_attach_params.rb +1 -4
  59. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -126
  60. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -126
  61. data/lib/stripe/params/payment_method_create_params.rb +0 -97
  62. data/lib/stripe/params/payment_method_update_params.rb +0 -19
  63. data/lib/stripe/params/price_update_params.rb +0 -19
  64. data/lib/stripe/params/promotion_code_create_params.rb +0 -4
  65. data/lib/stripe/params/promotion_code_list_params.rb +0 -4
  66. data/lib/stripe/params/quote_create_params.rb +4 -1014
  67. data/lib/stripe/params/quote_list_params.rb +0 -8
  68. data/lib/stripe/params/quote_update_params.rb +4 -1021
  69. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -254
  70. data/lib/stripe/params/setup_intent_create_params.rb +3 -260
  71. data/lib/stripe/params/setup_intent_list_params.rb +0 -4
  72. data/lib/stripe/params/setup_intent_update_params.rb +4 -261
  73. data/lib/stripe/params/subscription_create_params.rb +5 -259
  74. data/lib/stripe/params/subscription_item_create_params.rb +2 -46
  75. data/lib/stripe/params/subscription_item_update_params.rb +1 -29
  76. data/lib/stripe/params/subscription_list_params.rb +0 -4
  77. data/lib/stripe/params/subscription_schedule_create_params.rb +7 -229
  78. data/lib/stripe/params/subscription_schedule_list_params.rb +0 -4
  79. data/lib/stripe/params/subscription_schedule_update_params.rb +7 -225
  80. data/lib/stripe/params/subscription_update_params.rb +4 -238
  81. data/lib/stripe/params/tax/registration_create_params.rb +1 -1
  82. data/lib/stripe/params/tax_id_create_params.rb +1 -4
  83. data/lib/stripe/params/tax_id_list_params.rb +1 -4
  84. data/lib/stripe/params/terminal/configuration_create_params.rb +9 -22
  85. data/lib/stripe/params/terminal/configuration_update_params.rb +9 -22
  86. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -97
  87. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
  88. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  89. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  90. data/lib/stripe/params/token_create_params.rb +2 -66
  91. data/lib/stripe/params/transfer_create_params.rb +1 -9
  92. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  93. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  94. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  95. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  96. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  97. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  98. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  99. data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
  100. data/lib/stripe/params.rb +0 -250
  101. data/lib/stripe/resources/account.rb +2 -167
  102. data/lib/stripe/resources/account_session.rb +0 -81
  103. data/lib/stripe/resources/application_fee.rb +0 -2
  104. data/lib/stripe/resources/balance.rb +0 -83
  105. data/lib/stripe/resources/bank_account.rb +2 -2
  106. data/lib/stripe/resources/billing/alert.rb +1 -105
  107. data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
  108. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -86
  109. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
  110. data/lib/stripe/resources/billing/credit_grant.rb +2 -60
  111. data/lib/stripe/resources/billing/meter.rb +0 -2
  112. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
  113. data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
  114. data/lib/stripe/resources/billing_portal/session.rb +0 -2
  115. data/lib/stripe/resources/card.rb +1 -20
  116. data/lib/stripe/resources/cash_balance.rb +0 -2
  117. data/lib/stripe/resources/charge.rb +4 -256
  118. data/lib/stripe/resources/checkout/session.rb +4 -246
  119. data/lib/stripe/resources/confirmation_token.rb +1 -174
  120. data/lib/stripe/resources/coupon.rb +1 -26
  121. data/lib/stripe/resources/credit_note.rb +0 -2
  122. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  123. data/lib/stripe/resources/customer.rb +0 -2
  124. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  125. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  126. data/lib/stripe/resources/customer_session.rb +0 -38
  127. data/lib/stripe/resources/discount.rb +0 -4
  128. data/lib/stripe/resources/dispute.rb +0 -22
  129. data/lib/stripe/resources/event.rb +1 -64
  130. data/lib/stripe/resources/financial_connections/account.rb +22 -27
  131. data/lib/stripe/resources/financial_connections/session.rb +1 -67
  132. data/lib/stripe/resources/identity/verification_report.rb +0 -4
  133. data/lib/stripe/resources/identity/verification_session.rb +0 -2
  134. data/lib/stripe/resources/invoice.rb +2 -169
  135. data/lib/stripe/resources/invoice_item.rb +2 -110
  136. data/lib/stripe/resources/invoice_line_item.rb +1 -147
  137. data/lib/stripe/resources/issuing/card.rb +18 -0
  138. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  139. data/lib/stripe/resources/line_item.rb +1 -68
  140. data/lib/stripe/resources/mandate.rb +0 -71
  141. data/lib/stripe/resources/payment_attempt_record.rb +9 -209
  142. data/lib/stripe/resources/payment_intent.rb +23 -800
  143. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
  144. data/lib/stripe/resources/payment_method.rb +1 -196
  145. data/lib/stripe/resources/payment_method_configuration.rb +0 -204
  146. data/lib/stripe/resources/payment_record.rb +9 -209
  147. data/lib/stripe/resources/person.rb +0 -36
  148. data/lib/stripe/resources/price.rb +0 -20
  149. data/lib/stripe/resources/promotion_code.rb +0 -2
  150. data/lib/stripe/resources/quote.rb +2 -918
  151. data/lib/stripe/resources/refund.rb +24 -11
  152. data/lib/stripe/resources/setup_attempt.rb +1 -64
  153. data/lib/stripe/resources/setup_intent.rb +1 -172
  154. data/lib/stripe/resources/source.rb +0 -38
  155. data/lib/stripe/resources/subscription.rb +0 -335
  156. data/lib/stripe/resources/subscription_item.rb +1 -20
  157. data/lib/stripe/resources/subscription_schedule.rb +3 -372
  158. data/lib/stripe/resources/tax_id.rb +0 -4
  159. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  160. data/lib/stripe/resources/terminal/reader.rb +0 -8
  161. data/lib/stripe/resources/transfer.rb +0 -6
  162. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  163. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  164. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  165. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  166. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  167. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
  168. data/lib/stripe/resources/v2/core/event.rb +0 -4
  169. data/lib/stripe/resources.rb +0 -391
  170. data/lib/stripe/services/billing_service.rb +1 -2
  171. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  172. data/lib/stripe/services/financial_connections_service.rb +1 -2
  173. data/lib/stripe/services/identity_service.rb +1 -2
  174. data/lib/stripe/services/issuing_service.rb +1 -6
  175. data/lib/stripe/services/mandate_service.rb +0 -5
  176. data/lib/stripe/services/payment_intent_service.rb +0 -37
  177. data/lib/stripe/services/payment_method_service.rb +0 -11
  178. data/lib/stripe/services/quote_service.rb +1 -49
  179. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  180. data/lib/stripe/services/subscription_service.rb +0 -11
  181. data/lib/stripe/services/tax_service.rb +1 -2
  182. data/lib/stripe/services/terminal_service.rb +1 -2
  183. data/lib/stripe/services/test_helpers_service.rb +1 -2
  184. data/lib/stripe/services/v1_services.rb +1 -9
  185. data/lib/stripe/services/v2/billing_service.rb +1 -18
  186. data/lib/stripe/services/v2/core_service.rb +1 -5
  187. data/lib/stripe/services/v2_services.rb +1 -5
  188. data/lib/stripe/services.rb +0 -86
  189. data/lib/stripe/stripe_configuration.rb +1 -3
  190. data/lib/stripe/stripe_object.rb +1 -1
  191. data/lib/stripe/util.rb +3 -12
  192. data/lib/stripe/version.rb +1 -1
  193. data/lib/stripe.rb +0 -53
  194. data/rbi/stripe.rbi +49831 -122462
  195. metadata +4 -731
  196. data/lib/stripe/events/v1_account_updated_event.rb +0 -44
  197. data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
  198. data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
  199. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
  200. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
  201. data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
  202. data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
  203. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
  204. data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
  205. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
  206. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
  207. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
  208. data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
  209. data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
  210. data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
  211. data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
  212. data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
  213. data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
  214. data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
  215. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
  216. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
  217. data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
  218. data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
  219. data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
  220. data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
  221. data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
  222. data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
  223. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
  224. data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
  225. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
  226. data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
  227. data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
  228. data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
  229. data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
  230. data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
  231. data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
  232. data/lib/stripe/events/v1_customer_created_event.rb +0 -44
  233. data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
  234. data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
  235. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
  236. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
  237. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
  238. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
  239. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
  240. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
  241. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
  242. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
  243. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
  244. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
  245. data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
  246. data/lib/stripe/events/v1_file_created_event.rb +0 -44
  247. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
  248. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
  249. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
  250. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
  251. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
  252. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
  253. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
  254. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
  255. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
  256. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
  257. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
  258. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
  259. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
  260. data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
  261. data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
  262. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
  263. data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
  264. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
  265. data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
  266. data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
  267. data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
  268. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
  269. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
  270. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
  271. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
  272. data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
  273. data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
  274. data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
  275. data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
  276. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
  277. data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
  278. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
  279. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
  280. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
  281. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
  282. data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
  283. data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
  284. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
  285. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
  286. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
  287. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
  288. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
  289. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
  290. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
  291. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
  292. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
  293. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
  294. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
  295. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
  296. data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
  297. data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
  298. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
  299. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
  300. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
  301. data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
  302. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
  303. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
  304. data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
  305. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
  306. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
  307. data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
  308. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
  309. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
  310. data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
  311. data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
  312. data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
  313. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
  314. data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
  315. data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
  316. data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
  317. data/lib/stripe/events/v1_payout_created_event.rb +0 -44
  318. data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
  319. data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
  320. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
  321. data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
  322. data/lib/stripe/events/v1_person_created_event.rb +0 -44
  323. data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
  324. data/lib/stripe/events/v1_person_updated_event.rb +0 -44
  325. data/lib/stripe/events/v1_plan_created_event.rb +0 -44
  326. data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
  327. data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
  328. data/lib/stripe/events/v1_price_created_event.rb +0 -44
  329. data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
  330. data/lib/stripe/events/v1_price_updated_event.rb +0 -44
  331. data/lib/stripe/events/v1_product_created_event.rb +0 -44
  332. data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
  333. data/lib/stripe/events/v1_product_updated_event.rb +0 -44
  334. data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
  335. data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
  336. data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
  337. data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
  338. data/lib/stripe/events/v1_quote_created_event.rb +0 -44
  339. data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
  340. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +0 -44
  341. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
  342. data/lib/stripe/events/v1_refund_created_event.rb +0 -44
  343. data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
  344. data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
  345. data/lib/stripe/events/v1_review_closed_event.rb +0 -44
  346. data/lib/stripe/events/v1_review_opened_event.rb +0 -44
  347. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
  348. data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
  349. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
  350. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
  351. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
  352. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +0 -44
  353. data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
  354. data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
  355. data/lib/stripe/events/v1_source_failed_event.rb +0 -44
  356. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
  357. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
  358. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
  359. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
  360. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
  361. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
  362. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
  363. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
  364. data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
  365. data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
  366. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
  367. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
  368. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
  369. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
  370. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
  371. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
  372. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
  373. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
  374. data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
  375. data/lib/stripe/events/v1_topup_created_event.rb +0 -44
  376. data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
  377. data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
  378. data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
  379. data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
  380. data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
  381. data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
  382. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
  383. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
  384. data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
  385. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
  386. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
  387. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
  388. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
  389. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
  390. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
  391. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
  392. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
  393. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
  394. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
  395. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
  396. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
  397. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
  398. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
  399. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
  400. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
  401. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
  402. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
  403. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
  404. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
  405. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
  406. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
  407. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
  408. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
  409. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
  410. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
  411. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
  412. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
  413. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
  414. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
  415. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
  416. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
  417. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
  418. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
  419. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
  420. data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
  421. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
  422. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
  423. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
  424. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
  425. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
  426. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
  427. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
  428. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
  429. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  430. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  431. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
  432. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
  433. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
  434. data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
  435. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
  436. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
  437. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
  438. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
  439. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
  440. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
  441. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
  442. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
  443. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
  444. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -66
  445. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -66
  446. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -64
  447. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -64
  448. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
  449. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
  450. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -66
  451. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -64
  452. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -62
  453. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -64
  454. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -64
  455. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -64
  456. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -62
  457. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -62
  458. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
  459. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
  460. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
  461. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
  462. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  463. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  464. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  465. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  466. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  467. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  468. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  469. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  470. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  471. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  472. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  473. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  474. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  475. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  476. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  477. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  478. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  479. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  480. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  481. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  482. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  483. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  484. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  485. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  486. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  487. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  488. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  489. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  490. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  491. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  492. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  493. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  494. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  495. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
  496. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +0 -44
  497. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -61
  498. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  499. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
  500. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
  501. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
  502. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
  503. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
  504. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  505. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
  506. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
  507. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
  508. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
  509. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
  510. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  511. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  512. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  513. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -69
  514. data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
  515. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  516. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  517. data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
  518. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  519. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  520. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  521. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  522. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -55
  523. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
  524. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
  525. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
  526. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
  527. data/lib/stripe/params/external_account_create_params.rb +0 -134
  528. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  529. data/lib/stripe/params/external_account_list_params.rb +0 -25
  530. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  531. data/lib/stripe/params/external_account_update_params.rb +0 -91
  532. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  533. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  534. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  535. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  536. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  537. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  538. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
  539. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
  540. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
  541. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
  542. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  543. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  544. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  545. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  546. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  547. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  548. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  549. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  550. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  551. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  552. data/lib/stripe/params/issuing/program_create_params.rb +0 -21
  553. data/lib/stripe/params/issuing/program_list_params.rb +0 -24
  554. data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
  555. data/lib/stripe/params/issuing/program_update_params.rb +0 -21
  556. data/lib/stripe/params/mandate_list_params.rb +0 -39
  557. data/lib/stripe/params/margin_create_params.rb +0 -25
  558. data/lib/stripe/params/margin_list_params.rb +0 -25
  559. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  560. data/lib/stripe/params/margin_update_params.rb +0 -22
  561. data/lib/stripe/params/order_cancel_params.rb +0 -13
  562. data/lib/stripe/params/order_create_params.rb +0 -1124
  563. data/lib/stripe/params/order_line_item_list_params.rb +0 -22
  564. data/lib/stripe/params/order_list_line_items_params.rb +0 -22
  565. data/lib/stripe/params/order_list_params.rb +0 -25
  566. data/lib/stripe/params/order_reopen_params.rb +0 -13
  567. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  568. data/lib/stripe/params/order_submit_params.rb +0 -16
  569. data/lib/stripe/params/order_update_params.rb +0 -1128
  570. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
  571. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  572. data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
  573. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  574. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  575. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  576. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  577. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  578. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  579. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  580. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  581. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  582. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  583. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  584. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  585. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  586. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  587. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  588. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  589. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
  590. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
  591. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  592. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  593. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  594. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  595. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
  596. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
  597. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  598. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  599. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  600. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  601. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  602. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  603. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -17
  604. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -257
  605. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  606. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  607. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -78
  608. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
  609. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  610. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  611. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
  612. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  613. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  614. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +0 -26
  615. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
  616. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
  617. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
  618. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
  619. data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
  620. data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -355
  621. data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
  622. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
  623. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
  624. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
  625. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
  626. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
  627. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
  628. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
  629. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
  630. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
  631. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
  632. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
  633. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
  634. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
  635. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
  636. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
  637. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
  638. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
  639. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
  640. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
  641. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
  642. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
  643. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
  644. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
  645. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
  646. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
  647. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
  648. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
  649. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
  650. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
  651. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
  652. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
  653. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
  654. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
  655. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
  656. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
  657. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  658. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  659. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  660. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  661. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
  662. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
  663. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
  664. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
  665. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
  666. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
  667. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
  668. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
  669. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
  670. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
  671. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
  672. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
  673. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
  674. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
  675. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +0 -12
  676. data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -254
  677. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
  678. data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
  679. data/lib/stripe/params/v2/core/account_close_params.rb +0 -17
  680. data/lib/stripe/params/v2/core/account_create_params.rb +0 -2943
  681. data/lib/stripe/params/v2/core/account_link_create_params.rb +0 -101
  682. data/lib/stripe/params/v2/core/account_list_params.rb +0 -23
  683. data/lib/stripe/params/v2/core/account_retrieve_params.rb +0 -17
  684. data/lib/stripe/params/v2/core/account_update_params.rb +0 -2975
  685. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +0 -493
  686. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +0 -12
  687. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +0 -19
  688. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +0 -12
  689. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +0 -493
  690. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
  691. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +0 -10
  692. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  693. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  694. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
  695. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  696. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  697. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  698. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  699. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  700. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
  701. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  702. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  703. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  704. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  705. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  706. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  707. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  708. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  709. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  710. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  711. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  712. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -31
  713. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  714. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  715. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  716. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  717. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  718. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  719. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
  720. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  721. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  722. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  723. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  724. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  725. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -103
  726. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  727. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  728. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
  729. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  730. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -81
  731. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  732. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  733. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  734. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  735. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  736. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  737. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  738. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  739. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  740. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  741. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  742. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
  743. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
  744. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +0 -10
  745. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  746. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  747. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  748. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  749. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
  750. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
  751. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
  752. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
  753. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
  754. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
  755. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
  756. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
  757. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  758. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  759. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
  760. data/lib/stripe/resources/account_notice.rb +0 -94
  761. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  762. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -40
  763. data/lib/stripe/resources/capital/financing_offer.rb +0 -183
  764. data/lib/stripe/resources/capital/financing_summary.rb +0 -79
  765. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  766. data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -420
  767. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  768. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  769. data/lib/stripe/resources/fx_quote.rb +0 -147
  770. data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
  771. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  772. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  773. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  774. data/lib/stripe/resources/issuing/program.rb +0 -69
  775. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  776. data/lib/stripe/resources/margin.rb +0 -64
  777. data/lib/stripe/resources/order.rb +0 -987
  778. data/lib/stripe/resources/payment_method_balance.rb +0 -68
  779. data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
  780. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  781. data/lib/stripe/resources/quote_line.rb +0 -521
  782. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1166
  783. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -906
  784. data/lib/stripe/resources/tax/form.rb +0 -264
  785. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  786. data/lib/stripe/resources/transit_balance.rb +0 -45
  787. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  788. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
  789. data/lib/stripe/resources/v2/billing/cadence.rb +0 -655
  790. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
  791. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
  792. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
  793. data/lib/stripe/resources/v2/billing/intent.rb +0 -86
  794. data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
  795. data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
  796. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
  797. data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
  798. data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
  799. data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
  800. data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
  801. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
  802. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
  803. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
  804. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
  805. data/lib/stripe/resources/v2/billing/profile.rb +0 -46
  806. data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
  807. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
  808. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
  809. data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
  810. data/lib/stripe/resources/v2/billing/service_action.rb +0 -244
  811. data/lib/stripe/resources/v2/core/account.rb +0 -4967
  812. data/lib/stripe/resources/v2/core/account_link.rb +0 -123
  813. data/lib/stripe/resources/v2/core/account_person.rb +0 -477
  814. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
  815. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
  816. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -81
  817. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
  818. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
  819. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  820. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  821. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
  822. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
  823. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
  824. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  825. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  826. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -198
  827. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -137
  828. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
  829. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
  830. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -140
  831. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
  832. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
  833. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  834. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
  835. data/lib/stripe/resources/v2/reporting/report.rb +0 -116
  836. data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
  837. data/lib/stripe/services/account_notice_service.rb +0 -39
  838. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  839. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  840. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  841. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  842. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  843. data/lib/stripe/services/capital_service.rb +0 -15
  844. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
  845. data/lib/stripe/services/delegated_checkout_service.rb +0 -13
  846. data/lib/stripe/services/external_account_service.rb +0 -68
  847. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  848. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  849. data/lib/stripe/services/fx_quote_service.rb +0 -27
  850. data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
  851. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  852. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  853. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  854. data/lib/stripe/services/issuing/program_service.rb +0 -52
  855. data/lib/stripe/services/margin_service.rb +0 -50
  856. data/lib/stripe/services/order_line_item_service.rb +0 -17
  857. data/lib/stripe/services/order_service.rb +0 -78
  858. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  859. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  860. data/lib/stripe/services/privacy_service.rb +0 -13
  861. data/lib/stripe/services/quote_line_service.rb +0 -17
  862. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  863. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  864. data/lib/stripe/services/tax/form_service.rb +0 -37
  865. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  866. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
  867. data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
  868. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  869. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  870. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  871. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
  872. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  873. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -54
  874. data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
  875. data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
  876. data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
  877. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
  878. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
  879. data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
  880. data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
  881. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
  882. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
  883. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
  884. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
  885. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
  886. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  887. data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
  888. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
  889. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
  890. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
  891. data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
  892. data/lib/stripe/services/v2/core/account_link_service.rb +0 -21
  893. data/lib/stripe/services/v2/core/account_service.rb +0 -76
  894. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -67
  895. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
  896. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  897. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  898. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  899. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  900. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  901. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  902. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  903. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  904. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  905. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
  906. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  907. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
  908. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  909. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  910. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  911. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
  912. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  913. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  914. data/lib/stripe/services/v2/money_management_service.rb +0 -33
  915. data/lib/stripe/services/v2/payment_service.rb +0 -15
  916. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
  917. data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
  918. data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
  919. data/lib/stripe/services/v2/reporting_service.rb +0 -16
  920. data/lib/stripe/services/v2/test_helper_service.rb +0 -16
  921. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
  922. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
@@ -144,88 +144,32 @@ module Stripe
144
144
  end
145
145
 
146
146
  class Discount < ::Stripe::RequestParams
147
- class DiscountEnd < ::Stripe::RequestParams
148
- class Duration < ::Stripe::RequestParams
149
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
150
- attr_accessor :interval
151
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
152
- attr_accessor :interval_count
153
-
154
- def initialize(interval: nil, interval_count: nil)
155
- @interval = interval
156
- @interval_count = interval_count
157
- end
158
- end
159
- # Time span for the redeemed discount.
160
- attr_accessor :duration
161
- # A precise Unix timestamp for the discount to end. Must be in the future.
162
- attr_accessor :timestamp
163
- # The type of calculation made to determine when the discount ends.
164
- attr_accessor :type
165
-
166
- def initialize(duration: nil, timestamp: nil, type: nil)
167
- @duration = duration
168
- @timestamp = timestamp
169
- @type = type
170
- end
171
- end
172
147
  # ID of the coupon to create a new discount for.
173
148
  attr_accessor :coupon
174
149
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
175
150
  attr_accessor :discount
176
- # Details to determine how long the discount should be applied for.
177
- attr_accessor :discount_end
178
151
  # ID of the promotion code to create a new discount for.
179
152
  attr_accessor :promotion_code
180
153
 
181
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
154
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
182
155
  @coupon = coupon
183
156
  @discount = discount
184
- @discount_end = discount_end
185
157
  @promotion_code = promotion_code
186
158
  end
187
159
  end
188
160
 
189
161
  class InvoiceItem < ::Stripe::RequestParams
190
162
  class Discount < ::Stripe::RequestParams
191
- class DiscountEnd < ::Stripe::RequestParams
192
- class Duration < ::Stripe::RequestParams
193
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
194
- attr_accessor :interval
195
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
196
- attr_accessor :interval_count
197
-
198
- def initialize(interval: nil, interval_count: nil)
199
- @interval = interval
200
- @interval_count = interval_count
201
- end
202
- end
203
- # Time span for the redeemed discount.
204
- attr_accessor :duration
205
- # A precise Unix timestamp for the discount to end. Must be in the future.
206
- attr_accessor :timestamp
207
- # The type of calculation made to determine when the discount ends.
208
- attr_accessor :type
209
-
210
- def initialize(duration: nil, timestamp: nil, type: nil)
211
- @duration = duration
212
- @timestamp = timestamp
213
- @type = type
214
- end
215
- end
216
163
  # ID of the coupon to create a new discount for.
217
164
  attr_accessor :coupon
218
165
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
219
166
  attr_accessor :discount
220
- # Details to determine how long the discount should be applied for.
221
- attr_accessor :discount_end
222
167
  # ID of the promotion code to create a new discount for.
223
168
  attr_accessor :promotion_code
224
169
 
225
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
170
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
226
171
  @coupon = coupon
227
172
  @discount = discount
228
- @discount_end = discount_end
229
173
  @promotion_code = promotion_code
230
174
  end
231
175
  end
@@ -351,458 +295,6 @@ module Stripe
351
295
  end
352
296
 
353
297
  class ScheduleDetails < ::Stripe::RequestParams
354
- class Amendment < ::Stripe::RequestParams
355
- class AmendmentEnd < ::Stripe::RequestParams
356
- class DiscountEnd < ::Stripe::RequestParams
357
- # The ID of a specific discount.
358
- attr_accessor :discount
359
-
360
- def initialize(discount: nil)
361
- @discount = discount
362
- end
363
- end
364
-
365
- class Duration < ::Stripe::RequestParams
366
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
367
- attr_accessor :interval
368
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
369
- attr_accessor :interval_count
370
-
371
- def initialize(interval: nil, interval_count: nil)
372
- @interval = interval
373
- @interval_count = interval_count
374
- end
375
- end
376
- # Use the `end` time of a given discount.
377
- attr_accessor :discount_end
378
- # Time span for the amendment starting from the `amendment_start`.
379
- attr_accessor :duration
380
- # A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
381
- attr_accessor :timestamp
382
- # Select one of three ways to pass the `amendment_end`.
383
- attr_accessor :type
384
-
385
- def initialize(discount_end: nil, duration: nil, timestamp: nil, type: nil)
386
- @discount_end = discount_end
387
- @duration = duration
388
- @timestamp = timestamp
389
- @type = type
390
- end
391
- end
392
-
393
- class AmendmentStart < ::Stripe::RequestParams
394
- class AmendmentEnd < ::Stripe::RequestParams
395
- # The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
396
- attr_accessor :index
397
-
398
- def initialize(index: nil)
399
- @index = index
400
- end
401
- end
402
-
403
- class DiscountEnd < ::Stripe::RequestParams
404
- # The ID of a specific discount.
405
- attr_accessor :discount
406
-
407
- def initialize(discount: nil)
408
- @discount = discount
409
- end
410
- end
411
- # Details of another amendment in the same array, immediately after which this amendment should begin.
412
- attr_accessor :amendment_end
413
- # Use the `end` time of a given discount.
414
- attr_accessor :discount_end
415
- # A precise Unix timestamp for the amendment to start.
416
- attr_accessor :timestamp
417
- # Select one of three ways to pass the `amendment_start`.
418
- attr_accessor :type
419
-
420
- def initialize(amendment_end: nil, discount_end: nil, timestamp: nil, type: nil)
421
- @amendment_end = amendment_end
422
- @discount_end = discount_end
423
- @timestamp = timestamp
424
- @type = type
425
- end
426
- end
427
-
428
- class DiscountAction < ::Stripe::RequestParams
429
- class Add < ::Stripe::RequestParams
430
- class DiscountEnd < ::Stripe::RequestParams
431
- # The type of calculation made to determine when the discount ends.
432
- attr_accessor :type
433
-
434
- def initialize(type: nil)
435
- @type = type
436
- end
437
- end
438
- # The coupon code to redeem.
439
- attr_accessor :coupon
440
- # An ID of an existing discount for a coupon that was already redeemed.
441
- attr_accessor :discount
442
- # Details to determine how long the discount should be applied for.
443
- attr_accessor :discount_end
444
- # 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.
445
- attr_accessor :index
446
- # The promotion code to redeem.
447
- attr_accessor :promotion_code
448
-
449
- def initialize(
450
- coupon: nil,
451
- discount: nil,
452
- discount_end: nil,
453
- index: nil,
454
- promotion_code: nil
455
- )
456
- @coupon = coupon
457
- @discount = discount
458
- @discount_end = discount_end
459
- @index = index
460
- @promotion_code = promotion_code
461
- end
462
- end
463
-
464
- class Remove < ::Stripe::RequestParams
465
- # The coupon code to remove from the `discounts` array.
466
- attr_accessor :coupon
467
- # The ID of a discount to remove from the `discounts` array.
468
- attr_accessor :discount
469
- # The ID of a promotion code to remove from the `discounts` array.
470
- attr_accessor :promotion_code
471
-
472
- def initialize(coupon: nil, discount: nil, promotion_code: nil)
473
- @coupon = coupon
474
- @discount = discount
475
- @promotion_code = promotion_code
476
- end
477
- end
478
-
479
- class Set < ::Stripe::RequestParams
480
- # The coupon code to replace the `discounts` array with.
481
- attr_accessor :coupon
482
- # An ID of an existing discount to replace the `discounts` array with.
483
- attr_accessor :discount
484
- # An ID of an existing promotion code to replace the `discounts` array with.
485
- attr_accessor :promotion_code
486
-
487
- def initialize(coupon: nil, discount: nil, promotion_code: nil)
488
- @coupon = coupon
489
- @discount = discount
490
- @promotion_code = promotion_code
491
- end
492
- end
493
- # Details of the discount to add.
494
- attr_accessor :add
495
- # Details of the discount to remove.
496
- attr_accessor :remove
497
- # Details of the discount to replace the existing discounts with.
498
- attr_accessor :set
499
- # Determines the type of discount action.
500
- attr_accessor :type
501
-
502
- def initialize(add: nil, remove: nil, set: nil, type: nil)
503
- @add = add
504
- @remove = remove
505
- @set = set
506
- @type = type
507
- end
508
- end
509
-
510
- class ItemAction < ::Stripe::RequestParams
511
- class Add < ::Stripe::RequestParams
512
- class Discount < ::Stripe::RequestParams
513
- class DiscountEnd < ::Stripe::RequestParams
514
- class Duration < ::Stripe::RequestParams
515
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
516
- attr_accessor :interval
517
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
518
- attr_accessor :interval_count
519
-
520
- def initialize(interval: nil, interval_count: nil)
521
- @interval = interval
522
- @interval_count = interval_count
523
- end
524
- end
525
- # Time span for the redeemed discount.
526
- attr_accessor :duration
527
- # A precise Unix timestamp for the discount to end. Must be in the future.
528
- attr_accessor :timestamp
529
- # The type of calculation made to determine when the discount ends.
530
- attr_accessor :type
531
-
532
- def initialize(duration: nil, timestamp: nil, type: nil)
533
- @duration = duration
534
- @timestamp = timestamp
535
- @type = type
536
- end
537
- end
538
- # ID of the coupon to create a new discount for.
539
- attr_accessor :coupon
540
- # ID of an existing discount on the object (or one of its ancestors) to reuse.
541
- attr_accessor :discount
542
- # Details to determine how long the discount should be applied for.
543
- attr_accessor :discount_end
544
- # ID of the promotion code to create a new discount for.
545
- attr_accessor :promotion_code
546
-
547
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
548
- @coupon = coupon
549
- @discount = discount
550
- @discount_end = discount_end
551
- @promotion_code = promotion_code
552
- end
553
- end
554
-
555
- class Trial < ::Stripe::RequestParams
556
- # 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.
557
- attr_accessor :converts_to
558
- # Determines the type of trial for this item.
559
- attr_accessor :type
560
-
561
- def initialize(converts_to: nil, type: nil)
562
- @converts_to = converts_to
563
- @type = type
564
- end
565
- end
566
- # The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
567
- attr_accessor :discounts
568
- # 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`.
569
- attr_accessor :metadata
570
- # The ID of the price object.
571
- attr_accessor :price
572
- # Quantity for this item.
573
- attr_accessor :quantity
574
- # 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`.
575
- attr_accessor :tax_rates
576
- # Options that configure the trial on the subscription item.
577
- attr_accessor :trial
578
-
579
- def initialize(
580
- discounts: nil,
581
- metadata: nil,
582
- price: nil,
583
- quantity: nil,
584
- tax_rates: nil,
585
- trial: nil
586
- )
587
- @discounts = discounts
588
- @metadata = metadata
589
- @price = price
590
- @quantity = quantity
591
- @tax_rates = tax_rates
592
- @trial = trial
593
- end
594
- end
595
-
596
- class Remove < ::Stripe::RequestParams
597
- # ID of a price to remove.
598
- attr_accessor :price
599
-
600
- def initialize(price: nil)
601
- @price = price
602
- end
603
- end
604
-
605
- class Set < ::Stripe::RequestParams
606
- class Discount < ::Stripe::RequestParams
607
- class DiscountEnd < ::Stripe::RequestParams
608
- class Duration < ::Stripe::RequestParams
609
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
610
- attr_accessor :interval
611
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
612
- attr_accessor :interval_count
613
-
614
- def initialize(interval: nil, interval_count: nil)
615
- @interval = interval
616
- @interval_count = interval_count
617
- end
618
- end
619
- # Time span for the redeemed discount.
620
- attr_accessor :duration
621
- # A precise Unix timestamp for the discount to end. Must be in the future.
622
- attr_accessor :timestamp
623
- # The type of calculation made to determine when the discount ends.
624
- attr_accessor :type
625
-
626
- def initialize(duration: nil, timestamp: nil, type: nil)
627
- @duration = duration
628
- @timestamp = timestamp
629
- @type = type
630
- end
631
- end
632
- # ID of the coupon to create a new discount for.
633
- attr_accessor :coupon
634
- # ID of an existing discount on the object (or one of its ancestors) to reuse.
635
- attr_accessor :discount
636
- # Details to determine how long the discount should be applied for.
637
- attr_accessor :discount_end
638
- # ID of the promotion code to create a new discount for.
639
- attr_accessor :promotion_code
640
-
641
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
642
- @coupon = coupon
643
- @discount = discount
644
- @discount_end = discount_end
645
- @promotion_code = promotion_code
646
- end
647
- end
648
-
649
- class Trial < ::Stripe::RequestParams
650
- # 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.
651
- attr_accessor :converts_to
652
- # Determines the type of trial for this item.
653
- attr_accessor :type
654
-
655
- def initialize(converts_to: nil, type: nil)
656
- @converts_to = converts_to
657
- @type = type
658
- end
659
- end
660
- # 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`.
661
- attr_accessor :discounts
662
- # 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`.
663
- attr_accessor :metadata
664
- # The ID of the price object.
665
- attr_accessor :price
666
- # 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`.
667
- attr_accessor :quantity
668
- # 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`.
669
- attr_accessor :tax_rates
670
- # 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`.
671
- attr_accessor :trial
672
-
673
- def initialize(
674
- discounts: nil,
675
- metadata: nil,
676
- price: nil,
677
- quantity: nil,
678
- tax_rates: nil,
679
- trial: nil
680
- )
681
- @discounts = discounts
682
- @metadata = metadata
683
- @price = price
684
- @quantity = quantity
685
- @tax_rates = tax_rates
686
- @trial = trial
687
- end
688
- end
689
- # 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.
690
- attr_accessor :add
691
- # Details of the subscription item to remove.
692
- attr_accessor :remove
693
- # 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.
694
- attr_accessor :set
695
- # Determines the type of item action.
696
- attr_accessor :type
697
-
698
- def initialize(add: nil, remove: nil, set: nil, type: nil)
699
- @add = add
700
- @remove = remove
701
- @set = set
702
- @type = type
703
- end
704
- end
705
-
706
- class MetadataAction < ::Stripe::RequestParams
707
- # Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
708
- attr_accessor :add
709
- # Keys to remove from schedule phase metadata.
710
- attr_accessor :remove
711
- # Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
712
- attr_accessor :set
713
- # Select one of three ways to update phase-level `metadata` on subscription schedules.
714
- attr_accessor :type
715
-
716
- def initialize(add: nil, remove: nil, set: nil, type: nil)
717
- @add = add
718
- @remove = remove
719
- @set = set
720
- @type = type
721
- end
722
- end
723
-
724
- class SetPauseCollection < ::Stripe::RequestParams
725
- class Set < ::Stripe::RequestParams
726
- # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
727
- attr_accessor :behavior
728
-
729
- def initialize(behavior: nil)
730
- @behavior = behavior
731
- end
732
- end
733
- # Details of the pause_collection behavior to apply to the amendment.
734
- attr_accessor :set
735
- # Determines the type of the pause_collection amendment.
736
- attr_accessor :type
737
-
738
- def initialize(set: nil, type: nil)
739
- @set = set
740
- @type = type
741
- end
742
- end
743
-
744
- class TrialSettings < ::Stripe::RequestParams
745
- class EndBehavior < ::Stripe::RequestParams
746
- # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
747
- attr_accessor :prorate_up_front
748
-
749
- def initialize(prorate_up_front: nil)
750
- @prorate_up_front = prorate_up_front
751
- end
752
- end
753
- # Defines how the subscription should behave when a trial ends.
754
- attr_accessor :end_behavior
755
-
756
- def initialize(end_behavior: nil)
757
- @end_behavior = end_behavior
758
- end
759
- end
760
- # 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.
761
- attr_accessor :amendment_end
762
- # Details to identify the earliest timestamp where the proposed change should take effect.
763
- attr_accessor :amendment_start
764
- # 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.
765
- attr_accessor :billing_cycle_anchor
766
- # Changes to the coupons being redeemed or discounts being applied during the amendment time span.
767
- attr_accessor :discount_actions
768
- # Changes to the subscription items during the amendment time span.
769
- attr_accessor :item_actions
770
- # Instructions for how to modify phase metadata
771
- attr_accessor :metadata_actions
772
- # 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`.
773
- attr_accessor :proration_behavior
774
- # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
775
- attr_accessor :set_pause_collection
776
- # Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
777
- attr_accessor :set_schedule_end
778
- # Settings related to subscription trials.
779
- attr_accessor :trial_settings
780
-
781
- def initialize(
782
- amendment_end: nil,
783
- amendment_start: nil,
784
- billing_cycle_anchor: nil,
785
- discount_actions: nil,
786
- item_actions: nil,
787
- metadata_actions: nil,
788
- proration_behavior: nil,
789
- set_pause_collection: nil,
790
- set_schedule_end: nil,
791
- trial_settings: nil
792
- )
793
- @amendment_end = amendment_end
794
- @amendment_start = amendment_start
795
- @billing_cycle_anchor = billing_cycle_anchor
796
- @discount_actions = discount_actions
797
- @item_actions = item_actions
798
- @metadata_actions = metadata_actions
799
- @proration_behavior = proration_behavior
800
- @set_pause_collection = set_pause_collection
801
- @set_schedule_end = set_schedule_end
802
- @trial_settings = trial_settings
803
- end
804
- end
805
-
806
298
  class BillingMode < ::Stripe::RequestParams
807
299
  class Flexible < ::Stripe::RequestParams
808
300
  # Controls how invoices and invoice items display proration amounts and discount amounts.
@@ -823,99 +315,19 @@ module Stripe
823
315
  end
824
316
  end
825
317
 
826
- class BillingSchedule < ::Stripe::RequestParams
827
- class AppliesTo < ::Stripe::RequestParams
828
- # The ID of the price object.
829
- attr_accessor :price
830
- # Controls which subscription items the billing schedule applies to.
831
- attr_accessor :type
832
-
833
- def initialize(price: nil, type: nil)
834
- @price = price
835
- @type = type
836
- end
837
- end
838
-
839
- class BillUntil < ::Stripe::RequestParams
840
- class Duration < ::Stripe::RequestParams
841
- # Specifies billing duration. Either `day`, `week`, `month` or `year`.
842
- attr_accessor :interval
843
- # The multiplier applied to the interval.
844
- attr_accessor :interval_count
845
-
846
- def initialize(interval: nil, interval_count: nil)
847
- @interval = interval
848
- @interval_count = interval_count
849
- end
850
- end
851
- # Specifies the billing period.
852
- attr_accessor :duration
853
- # The end date of the billing schedule.
854
- attr_accessor :timestamp
855
- # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
856
- attr_accessor :type
857
-
858
- def initialize(duration: nil, timestamp: nil, type: nil)
859
- @duration = duration
860
- @timestamp = timestamp
861
- @type = type
862
- end
863
- end
864
- # Configure billing schedule differently for individual subscription items.
865
- attr_accessor :applies_to
866
- # The end date for the billing schedule.
867
- attr_accessor :bill_until
868
- # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
869
- attr_accessor :key
870
-
871
- def initialize(applies_to: nil, bill_until: nil, key: nil)
872
- @applies_to = applies_to
873
- @bill_until = bill_until
874
- @key = key
875
- end
876
- end
877
-
878
318
  class Phase < ::Stripe::RequestParams
879
319
  class AddInvoiceItem < ::Stripe::RequestParams
880
320
  class Discount < ::Stripe::RequestParams
881
- class DiscountEnd < ::Stripe::RequestParams
882
- class Duration < ::Stripe::RequestParams
883
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
884
- attr_accessor :interval
885
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
886
- attr_accessor :interval_count
887
-
888
- def initialize(interval: nil, interval_count: nil)
889
- @interval = interval
890
- @interval_count = interval_count
891
- end
892
- end
893
- # Time span for the redeemed discount.
894
- attr_accessor :duration
895
- # A precise Unix timestamp for the discount to end. Must be in the future.
896
- attr_accessor :timestamp
897
- # The type of calculation made to determine when the discount ends.
898
- attr_accessor :type
899
-
900
- def initialize(duration: nil, timestamp: nil, type: nil)
901
- @duration = duration
902
- @timestamp = timestamp
903
- @type = type
904
- end
905
- end
906
321
  # ID of the coupon to create a new discount for.
907
322
  attr_accessor :coupon
908
323
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
909
324
  attr_accessor :discount
910
- # Details to determine how long the discount should be applied for.
911
- attr_accessor :discount_end
912
325
  # ID of the promotion code to create a new discount for.
913
326
  attr_accessor :promotion_code
914
327
 
915
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
328
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
916
329
  @coupon = coupon
917
330
  @discount = discount
918
- @discount_end = discount_end
919
331
  @promotion_code = promotion_code
920
332
  end
921
333
  end
@@ -1051,44 +463,16 @@ module Stripe
1051
463
  end
1052
464
 
1053
465
  class Discount < ::Stripe::RequestParams
1054
- class DiscountEnd < ::Stripe::RequestParams
1055
- class Duration < ::Stripe::RequestParams
1056
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1057
- attr_accessor :interval
1058
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1059
- attr_accessor :interval_count
1060
-
1061
- def initialize(interval: nil, interval_count: nil)
1062
- @interval = interval
1063
- @interval_count = interval_count
1064
- end
1065
- end
1066
- # Time span for the redeemed discount.
1067
- attr_accessor :duration
1068
- # A precise Unix timestamp for the discount to end. Must be in the future.
1069
- attr_accessor :timestamp
1070
- # The type of calculation made to determine when the discount ends.
1071
- attr_accessor :type
1072
-
1073
- def initialize(duration: nil, timestamp: nil, type: nil)
1074
- @duration = duration
1075
- @timestamp = timestamp
1076
- @type = type
1077
- end
1078
- end
1079
466
  # ID of the coupon to create a new discount for.
1080
467
  attr_accessor :coupon
1081
468
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1082
469
  attr_accessor :discount
1083
- # Details to determine how long the discount should be applied for.
1084
- attr_accessor :discount_end
1085
470
  # ID of the promotion code to create a new discount for.
1086
471
  attr_accessor :promotion_code
1087
472
 
1088
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
473
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
1089
474
  @coupon = coupon
1090
475
  @discount = discount
1091
- @discount_end = discount_end
1092
476
  @promotion_code = promotion_code
1093
477
  end
1094
478
  end
@@ -1142,44 +526,16 @@ module Stripe
1142
526
  end
1143
527
 
1144
528
  class Discount < ::Stripe::RequestParams
1145
- class DiscountEnd < ::Stripe::RequestParams
1146
- class Duration < ::Stripe::RequestParams
1147
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1148
- attr_accessor :interval
1149
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1150
- attr_accessor :interval_count
1151
-
1152
- def initialize(interval: nil, interval_count: nil)
1153
- @interval = interval
1154
- @interval_count = interval_count
1155
- end
1156
- end
1157
- # Time span for the redeemed discount.
1158
- attr_accessor :duration
1159
- # A precise Unix timestamp for the discount to end. Must be in the future.
1160
- attr_accessor :timestamp
1161
- # The type of calculation made to determine when the discount ends.
1162
- attr_accessor :type
1163
-
1164
- def initialize(duration: nil, timestamp: nil, type: nil)
1165
- @duration = duration
1166
- @timestamp = timestamp
1167
- @type = type
1168
- end
1169
- end
1170
529
  # ID of the coupon to create a new discount for.
1171
530
  attr_accessor :coupon
1172
531
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1173
532
  attr_accessor :discount
1174
- # Details to determine how long the discount should be applied for.
1175
- attr_accessor :discount_end
1176
533
  # ID of the promotion code to create a new discount for.
1177
534
  attr_accessor :promotion_code
1178
535
 
1179
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
536
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
1180
537
  @coupon = coupon
1181
538
  @discount = discount
1182
- @discount_end = discount_end
1183
539
  @promotion_code = promotion_code
1184
540
  end
1185
541
  end
@@ -1225,18 +581,6 @@ module Stripe
1225
581
  @unit_amount_decimal = unit_amount_decimal
1226
582
  end
1227
583
  end
1228
-
1229
- class Trial < ::Stripe::RequestParams
1230
- # 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.
1231
- attr_accessor :converts_to
1232
- # Determines the type of trial for this item.
1233
- attr_accessor :type
1234
-
1235
- def initialize(converts_to: nil, type: nil)
1236
- @converts_to = converts_to
1237
- @type = type
1238
- end
1239
- end
1240
584
  # 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.
1241
585
  attr_accessor :billing_thresholds
1242
586
  # The coupons to redeem into discounts for the subscription item.
@@ -1253,8 +597,6 @@ module Stripe
1253
597
  attr_accessor :quantity
1254
598
  # 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.
1255
599
  attr_accessor :tax_rates
1256
- # Options that configure the trial on the subscription item.
1257
- attr_accessor :trial
1258
600
 
1259
601
  def initialize(
1260
602
  billing_thresholds: nil,
@@ -1264,8 +606,7 @@ module Stripe
1264
606
  price: nil,
1265
607
  price_data: nil,
1266
608
  quantity: nil,
1267
- tax_rates: nil,
1268
- trial: nil
609
+ tax_rates: nil
1269
610
  )
1270
611
  @billing_thresholds = billing_thresholds
1271
612
  @discounts = discounts
@@ -1275,16 +616,6 @@ module Stripe
1275
616
  @price_data = price_data
1276
617
  @quantity = quantity
1277
618
  @tax_rates = tax_rates
1278
- @trial = trial
1279
- end
1280
- end
1281
-
1282
- class PauseCollection < ::Stripe::RequestParams
1283
- # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
1284
- attr_accessor :behavior
1285
-
1286
- def initialize(behavior: nil)
1287
- @behavior = behavior
1288
619
  end
1289
620
  end
1290
621
 
@@ -1299,23 +630,6 @@ module Stripe
1299
630
  @destination = destination
1300
631
  end
1301
632
  end
1302
-
1303
- class TrialSettings < ::Stripe::RequestParams
1304
- class EndBehavior < ::Stripe::RequestParams
1305
- # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
1306
- attr_accessor :prorate_up_front
1307
-
1308
- def initialize(prorate_up_front: nil)
1309
- @prorate_up_front = prorate_up_front
1310
- end
1311
- end
1312
- # Defines how the subscription should behave when a trial ends.
1313
- attr_accessor :end_behavior
1314
-
1315
- def initialize(end_behavior: nil)
1316
- @end_behavior = end_behavior
1317
- end
1318
- end
1319
633
  # 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.
1320
634
  attr_accessor :add_invoice_items
1321
635
  # 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).
@@ -1350,8 +664,6 @@ module Stripe
1350
664
  attr_accessor :metadata
1351
665
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
1352
666
  attr_accessor :on_behalf_of
1353
- # 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).
1354
- attr_accessor :pause_collection
1355
667
  # Controls whether the subscription schedule should create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. 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 (item price, quantity, etc.) of the current phase.
1356
668
  attr_accessor :proration_behavior
1357
669
  # The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
@@ -1360,12 +672,8 @@ module Stripe
1360
672
  attr_accessor :transfer_data
1361
673
  # If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
1362
674
  attr_accessor :trial
1363
- # Specify trial behavior when crossing phase boundaries
1364
- attr_accessor :trial_continuation
1365
675
  # 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`
1366
676
  attr_accessor :trial_end
1367
- # Settings related to subscription trials.
1368
- attr_accessor :trial_settings
1369
677
 
1370
678
  def initialize(
1371
679
  add_invoice_items: nil,
@@ -1385,14 +693,11 @@ module Stripe
1385
693
  items: nil,
1386
694
  metadata: nil,
1387
695
  on_behalf_of: nil,
1388
- pause_collection: nil,
1389
696
  proration_behavior: nil,
1390
697
  start_date: nil,
1391
698
  transfer_data: nil,
1392
699
  trial: nil,
1393
- trial_continuation: nil,
1394
- trial_end: nil,
1395
- trial_settings: nil
700
+ trial_end: nil
1396
701
  )
1397
702
  @add_invoice_items = add_invoice_items
1398
703
  @application_fee_percent = application_fee_percent
@@ -1411,100 +716,27 @@ module Stripe
1411
716
  @items = items
1412
717
  @metadata = metadata
1413
718
  @on_behalf_of = on_behalf_of
1414
- @pause_collection = pause_collection
1415
719
  @proration_behavior = proration_behavior
1416
720
  @start_date = start_date
1417
721
  @transfer_data = transfer_data
1418
722
  @trial = trial
1419
- @trial_continuation = trial_continuation
1420
723
  @trial_end = trial_end
1421
- @trial_settings = trial_settings
1422
- end
1423
- end
1424
-
1425
- class Prebilling < ::Stripe::RequestParams
1426
- class BillUntil < ::Stripe::RequestParams
1427
- class AmendmentEnd < ::Stripe::RequestParams
1428
- # The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
1429
- attr_accessor :index
1430
-
1431
- def initialize(index: nil)
1432
- @index = index
1433
- end
1434
- end
1435
-
1436
- class Duration < ::Stripe::RequestParams
1437
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1438
- attr_accessor :interval
1439
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1440
- attr_accessor :interval_count
1441
-
1442
- def initialize(interval: nil, interval_count: nil)
1443
- @interval = interval
1444
- @interval_count = interval_count
1445
- end
1446
- end
1447
- # End the prebilled period when a specified amendment ends.
1448
- attr_accessor :amendment_end
1449
- # Time span for prebilling, starting from `bill_from`.
1450
- attr_accessor :duration
1451
- # End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
1452
- attr_accessor :timestamp
1453
- # Select one of several ways to pass the `bill_until` value.
1454
- attr_accessor :type
1455
-
1456
- def initialize(amendment_end: nil, duration: nil, timestamp: nil, type: nil)
1457
- @amendment_end = amendment_end
1458
- @duration = duration
1459
- @timestamp = timestamp
1460
- @type = type
1461
- end
1462
- end
1463
- # The end of the prebilled time period.
1464
- attr_accessor :bill_until
1465
- # This is used to determine the number of billing cycles to prebill.
1466
- attr_accessor :iterations
1467
-
1468
- def initialize(bill_until: nil, iterations: nil)
1469
- @bill_until = bill_until
1470
- @iterations = iterations
1471
724
  end
1472
725
  end
1473
- # Changes to apply to the phases of the subscription schedule, in the order provided.
1474
- attr_accessor :amendments
1475
- # 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.
1476
- attr_accessor :billing_behavior
1477
726
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
1478
727
  attr_accessor :billing_mode
1479
728
  # 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.
1480
729
  attr_accessor :end_behavior
1481
730
  # 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.
1482
731
  attr_accessor :phases
1483
- # Provide any time periods to bill in advance.
1484
- attr_accessor :prebilling
1485
732
  # In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
1486
733
  attr_accessor :proration_behavior
1487
- # Sets the billing schedules for the subscription schedule.
1488
- attr_accessor :billing_schedules
1489
734
 
1490
- def initialize(
1491
- amendments: nil,
1492
- billing_behavior: nil,
1493
- billing_mode: nil,
1494
- end_behavior: nil,
1495
- phases: nil,
1496
- prebilling: nil,
1497
- proration_behavior: nil,
1498
- billing_schedules: nil
1499
- )
1500
- @amendments = amendments
1501
- @billing_behavior = billing_behavior
735
+ def initialize(billing_mode: nil, end_behavior: nil, phases: nil, proration_behavior: nil)
1502
736
  @billing_mode = billing_mode
1503
737
  @end_behavior = end_behavior
1504
738
  @phases = phases
1505
- @prebilling = prebilling
1506
739
  @proration_behavior = proration_behavior
1507
- @billing_schedules = billing_schedules
1508
740
  end
1509
741
  end
1510
742
 
@@ -1529,58 +761,6 @@ module Stripe
1529
761
  end
1530
762
  end
1531
763
 
1532
- class BillingSchedule < ::Stripe::RequestParams
1533
- class AppliesTo < ::Stripe::RequestParams
1534
- # The ID of the price object.
1535
- attr_accessor :price
1536
- # Controls which subscription items the billing schedule applies to.
1537
- attr_accessor :type
1538
-
1539
- def initialize(price: nil, type: nil)
1540
- @price = price
1541
- @type = type
1542
- end
1543
- end
1544
-
1545
- class BillUntil < ::Stripe::RequestParams
1546
- class Duration < ::Stripe::RequestParams
1547
- # Specifies billing duration. Either `day`, `week`, `month` or `year`.
1548
- attr_accessor :interval
1549
- # The multiplier applied to the interval.
1550
- attr_accessor :interval_count
1551
-
1552
- def initialize(interval: nil, interval_count: nil)
1553
- @interval = interval
1554
- @interval_count = interval_count
1555
- end
1556
- end
1557
- # Specifies the billing period.
1558
- attr_accessor :duration
1559
- # The end date of the billing schedule.
1560
- attr_accessor :timestamp
1561
- # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
1562
- attr_accessor :type
1563
-
1564
- def initialize(duration: nil, timestamp: nil, type: nil)
1565
- @duration = duration
1566
- @timestamp = timestamp
1567
- @type = type
1568
- end
1569
- end
1570
- # Configure billing schedule differently for individual subscription items.
1571
- attr_accessor :applies_to
1572
- # The end date for the billing schedule.
1573
- attr_accessor :bill_until
1574
- # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
1575
- attr_accessor :key
1576
-
1577
- def initialize(applies_to: nil, bill_until: nil, key: nil)
1578
- @applies_to = applies_to
1579
- @bill_until = bill_until
1580
- @key = key
1581
- end
1582
- end
1583
-
1584
764
  class Item < ::Stripe::RequestParams
1585
765
  class BillingThresholds < ::Stripe::RequestParams
1586
766
  # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
@@ -1592,44 +772,16 @@ module Stripe
1592
772
  end
1593
773
 
1594
774
  class Discount < ::Stripe::RequestParams
1595
- class DiscountEnd < ::Stripe::RequestParams
1596
- class Duration < ::Stripe::RequestParams
1597
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1598
- attr_accessor :interval
1599
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1600
- attr_accessor :interval_count
1601
-
1602
- def initialize(interval: nil, interval_count: nil)
1603
- @interval = interval
1604
- @interval_count = interval_count
1605
- end
1606
- end
1607
- # Time span for the redeemed discount.
1608
- attr_accessor :duration
1609
- # A precise Unix timestamp for the discount to end. Must be in the future.
1610
- attr_accessor :timestamp
1611
- # The type of calculation made to determine when the discount ends.
1612
- attr_accessor :type
1613
-
1614
- def initialize(duration: nil, timestamp: nil, type: nil)
1615
- @duration = duration
1616
- @timestamp = timestamp
1617
- @type = type
1618
- end
1619
- end
1620
775
  # ID of the coupon to create a new discount for.
1621
776
  attr_accessor :coupon
1622
777
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
1623
778
  attr_accessor :discount
1624
- # Details to determine how long the discount should be applied for.
1625
- attr_accessor :discount_end
1626
779
  # ID of the promotion code to create a new discount for.
1627
780
  attr_accessor :promotion_code
1628
781
 
1629
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
782
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
1630
783
  @coupon = coupon
1631
784
  @discount = discount
1632
- @discount_end = discount_end
1633
785
  @promotion_code = promotion_code
1634
786
  end
1635
787
  end
@@ -1724,21 +876,10 @@ module Stripe
1724
876
  @tax_rates = tax_rates
1725
877
  end
1726
878
  end
1727
-
1728
- class Prebilling < ::Stripe::RequestParams
1729
- # This is used to determine the number of billing cycles to prebill.
1730
- attr_accessor :iterations
1731
-
1732
- def initialize(iterations: nil)
1733
- @iterations = iterations
1734
- end
1735
- end
1736
879
  # For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.
1737
880
  attr_accessor :billing_cycle_anchor
1738
881
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
1739
882
  attr_accessor :billing_mode
1740
- # Sets the billing schedules for the subscription.
1741
- attr_accessor :billing_schedules
1742
883
  # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
1743
884
  attr_accessor :cancel_at
1744
885
  # Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
@@ -1749,8 +890,6 @@ module Stripe
1749
890
  attr_accessor :default_tax_rates
1750
891
  # A list of up to 20 subscription items, each with an attached price.
1751
892
  attr_accessor :items
1752
- # The pre-billing to apply to the subscription as a preview.
1753
- attr_accessor :prebilling
1754
893
  # Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
1755
894
  attr_accessor :proration_behavior
1756
895
  # If previewing an update to a subscription, and doing proration, `subscription_details.proration_date` forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period and within the current phase of the schedule backing this subscription, if the schedule exists. If set, `subscription`, and one of `subscription_details.items`, or `subscription_details.trial_end` are required. Also, `subscription_details.proration_behavior` cannot be set to 'none'.
@@ -1765,13 +904,11 @@ module Stripe
1765
904
  def initialize(
1766
905
  billing_cycle_anchor: nil,
1767
906
  billing_mode: nil,
1768
- billing_schedules: nil,
1769
907
  cancel_at: nil,
1770
908
  cancel_at_period_end: nil,
1771
909
  cancel_now: nil,
1772
910
  default_tax_rates: nil,
1773
911
  items: nil,
1774
- prebilling: nil,
1775
912
  proration_behavior: nil,
1776
913
  proration_date: nil,
1777
914
  resume_at: nil,
@@ -1780,13 +917,11 @@ module Stripe
1780
917
  )
1781
918
  @billing_cycle_anchor = billing_cycle_anchor
1782
919
  @billing_mode = billing_mode
1783
- @billing_schedules = billing_schedules
1784
920
  @cancel_at = cancel_at
1785
921
  @cancel_at_period_end = cancel_at_period_end
1786
922
  @cancel_now = cancel_now
1787
923
  @default_tax_rates = default_tax_rates
1788
924
  @items = items
1789
- @prebilling = prebilling
1790
925
  @proration_behavior = proration_behavior
1791
926
  @proration_date = proration_date
1792
927
  @resume_at = resume_at
@@ -1796,14 +931,10 @@ module Stripe
1796
931
  end
1797
932
  # Settings for automatic tax lookup for this invoice preview.
1798
933
  attr_accessor :automatic_tax
1799
- # The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice.Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
1800
- attr_accessor :billing_cadence
1801
934
  # The currency to preview this invoice in. Defaults to that of `customer` if not specified.
1802
935
  attr_accessor :currency
1803
936
  # The identifier of the customer whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
1804
937
  attr_accessor :customer
1805
- # The identifier of the account whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_account`, `customer_details`, `subscription`, or `schedule` must be set.
1806
- attr_accessor :customer_account
1807
938
  # Details about the customer you want to invoice or overrides for an existing customer. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
1808
939
  attr_accessor :customer_details
1809
940
  # The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.
@@ -1829,10 +960,8 @@ module Stripe
1829
960
 
1830
961
  def initialize(
1831
962
  automatic_tax: nil,
1832
- billing_cadence: nil,
1833
963
  currency: nil,
1834
964
  customer: nil,
1835
- customer_account: nil,
1836
965
  customer_details: nil,
1837
966
  discounts: nil,
1838
967
  expand: nil,
@@ -1846,10 +975,8 @@ module Stripe
1846
975
  subscription_details: nil
1847
976
  )
1848
977
  @automatic_tax = automatic_tax
1849
- @billing_cadence = billing_cadence
1850
978
  @currency = currency
1851
979
  @customer = customer
1852
- @customer_account = customer_account
1853
980
  @customer_details = customer_details
1854
981
  @discounts = discounts
1855
982
  @expand = expand