stripe 18.4.0.pre.alpha.1 → 18.4.0.pre.beta.1

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 (456) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +0 -356
  3. data/lib/stripe/object_types.rb +0 -42
  4. data/lib/stripe/params/account_create_params.rb +0 -32
  5. data/lib/stripe/params/account_person_create_params.rb +0 -32
  6. data/lib/stripe/params/account_person_update_params.rb +0 -32
  7. data/lib/stripe/params/account_session_create_params.rb +0 -17
  8. data/lib/stripe/params/account_update_params.rb +0 -32
  9. data/lib/stripe/params/billing/alert_create_params.rb +1 -121
  10. data/lib/stripe/params/billing/alert_list_params.rb +0 -4
  11. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +1 -5
  12. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -13
  13. data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -29
  14. data/lib/stripe/params/billing/meter_create_params.rb +0 -4
  15. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
  16. data/lib/stripe/params/checkout/session_create_params.rb +1 -95
  17. data/lib/stripe/params/checkout/session_update_params.rb +0 -15
  18. data/lib/stripe/params/coupon_create_params.rb +1 -31
  19. data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
  20. data/lib/stripe/params/invoice_add_lines_params.rb +0 -15
  21. data/lib/stripe/params/invoice_create_preview_params.rb +13 -552
  22. data/lib/stripe/params/invoice_line_item_update_params.rb +0 -15
  23. data/lib/stripe/params/invoice_list_params.rb +0 -4
  24. data/lib/stripe/params/invoice_update_lines_params.rb +0 -15
  25. data/lib/stripe/params/issuing/card_list_params.rb +1 -34
  26. data/lib/stripe/params/payment_intent_confirm_params.rb +0 -38
  27. data/lib/stripe/params/payment_intent_create_params.rb +0 -51
  28. data/lib/stripe/params/payment_intent_update_params.rb +0 -34
  29. data/lib/stripe/params/payment_link_create_params.rb +0 -15
  30. data/lib/stripe/params/plan_create_params.rb +0 -15
  31. data/lib/stripe/params/price_create_params.rb +0 -15
  32. data/lib/stripe/params/product_create_params.rb +0 -16
  33. data/lib/stripe/params/product_update_params.rb +0 -16
  34. data/lib/stripe/params/quote_create_params.rb +8 -424
  35. data/lib/stripe/params/quote_update_params.rb +8 -424
  36. data/lib/stripe/params/setup_intent_confirm_params.rb +0 -29
  37. data/lib/stripe/params/setup_intent_create_params.rb +0 -29
  38. data/lib/stripe/params/setup_intent_update_params.rb +1 -30
  39. data/lib/stripe/params/subscription_create_params.rb +2 -126
  40. data/lib/stripe/params/subscription_item_create_params.rb +1 -69
  41. data/lib/stripe/params/subscription_item_update_params.rb +1 -69
  42. data/lib/stripe/params/subscription_list_params.rb +0 -4
  43. data/lib/stripe/params/subscription_schedule_amend_params.rb +8 -243
  44. data/lib/stripe/params/subscription_schedule_create_params.rb +3 -175
  45. data/lib/stripe/params/subscription_schedule_update_params.rb +3 -175
  46. data/lib/stripe/params/subscription_update_params.rb +2 -126
  47. data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
  48. data/lib/stripe/params/token_create_params.rb +0 -64
  49. data/lib/stripe/params/transfer_create_params.rb +0 -4
  50. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +1 -8
  51. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -4
  52. data/lib/stripe/params/v2/billing/cadence_update_params.rb +1 -4
  53. data/lib/stripe/params/v2/core/account_create_params.rb +32 -716
  54. data/lib/stripe/params/v2/core/account_token_create_params.rb +24 -238
  55. data/lib/stripe/params/v2/core/account_update_params.rb +32 -702
  56. data/lib/stripe/params/v2/core/event_list_params.rb +1 -4
  57. data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -8
  58. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +1 -1
  59. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -4
  60. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +1 -12
  61. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +1 -25
  62. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +1 -4
  63. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -19
  64. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -4
  65. data/lib/stripe/params.rb +0 -134
  66. data/lib/stripe/resources/account_session.rb +0 -54
  67. data/lib/stripe/resources/application_fee.rb +0 -2
  68. data/lib/stripe/resources/balance.rb +0 -83
  69. data/lib/stripe/resources/billing/alert.rb +1 -105
  70. data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
  71. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -2
  72. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
  73. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
  74. data/lib/stripe/resources/billing/credit_grant.rb +2 -58
  75. data/lib/stripe/resources/billing/meter.rb +0 -2
  76. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
  77. data/lib/stripe/resources/capital/financing_offer.rb +0 -41
  78. data/lib/stripe/resources/card.rb +1 -18
  79. data/lib/stripe/resources/charge.rb +0 -18
  80. data/lib/stripe/resources/checkout/session.rb +0 -92
  81. data/lib/stripe/resources/confirmation_token.rb +0 -18
  82. data/lib/stripe/resources/coupon.rb +0 -34
  83. data/lib/stripe/resources/discount.rb +1 -20
  84. data/lib/stripe/resources/identity/verification_report.rb +0 -4
  85. data/lib/stripe/resources/invoice.rb +0 -34
  86. data/lib/stripe/resources/invoice_item.rb +2 -106
  87. data/lib/stripe/resources/invoice_line_item.rb +1 -107
  88. data/lib/stripe/resources/issuing/card.rb +0 -4
  89. data/lib/stripe/resources/payment_intent.rb +0 -62
  90. data/lib/stripe/resources/payment_method.rb +0 -38
  91. data/lib/stripe/resources/person.rb +0 -36
  92. data/lib/stripe/resources/plan.rb +0 -2
  93. data/lib/stripe/resources/price.rb +0 -2
  94. data/lib/stripe/resources/quote.rb +1 -238
  95. data/lib/stripe/resources/quote_line.rb +0 -6
  96. data/lib/stripe/resources/quote_preview_invoice.rb +0 -34
  97. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -94
  98. data/lib/stripe/resources/setup_intent.rb +0 -40
  99. data/lib/stripe/resources/subscription.rb +1 -62
  100. data/lib/stripe/resources/subscription_item.rb +1 -24
  101. data/lib/stripe/resources/subscription_schedule.rb +0 -94
  102. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  103. data/lib/stripe/resources/tax/registration.rb +0 -128
  104. data/lib/stripe/resources/tax_code.rb +1 -15
  105. data/lib/stripe/resources/transfer.rb +0 -4
  106. data/lib/stripe/resources/v2/billing/cadence.rb +0 -46
  107. data/lib/stripe/resources/v2/billing/profile.rb +1 -0
  108. data/lib/stripe/resources/v2/core/account.rb +27 -1073
  109. data/lib/stripe/resources/v2/core/event.rb +1 -50
  110. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -35
  111. data/lib/stripe/resources/v2/money_management/financial_address.rb +29 -1
  112. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -87
  113. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -2
  114. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -2
  115. data/lib/stripe/resources/v2/money_management/payout_method.rb +3 -24
  116. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -34
  117. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -56
  118. data/lib/stripe/resources.rb +0 -134
  119. data/lib/stripe/services/identity_service.rb +1 -2
  120. data/lib/stripe/services/issuing_service.rb +1 -2
  121. data/lib/stripe/services/payment_method_service.rb +0 -11
  122. data/lib/stripe/services/radar_service.rb +1 -2
  123. data/lib/stripe/services/subscription_service.rb +0 -22
  124. data/lib/stripe/services/tax_service.rb +1 -2
  125. data/lib/stripe/services/test_helpers_service.rb +1 -3
  126. data/lib/stripe/services/v1_services.rb +1 -6
  127. data/lib/stripe/services/v2/billing_service.rb +1 -14
  128. data/lib/stripe/services/v2/core_service.rb +1 -2
  129. data/lib/stripe/services/v2/money_management_service.rb +1 -5
  130. data/lib/stripe/services/v2/test_helper_service.rb +1 -2
  131. data/lib/stripe/services/v2_services.rb +1 -5
  132. data/lib/stripe/services.rb +0 -49
  133. data/lib/stripe/stripe_client.rb +8 -1
  134. data/lib/stripe/stripe_event_notification_handler.rb +431 -0
  135. data/lib/stripe/version.rb +1 -1
  136. data/lib/stripe.rb +1 -0
  137. data/rbi/stripe/stripe_client.rbi +13 -0
  138. data/rbi/stripe.rbi +751 -23957
  139. metadata +2 -318
  140. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
  141. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
  142. data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
  143. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
  144. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
  145. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
  146. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
  147. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
  148. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
  149. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
  150. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
  151. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
  152. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
  153. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
  154. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
  155. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
  156. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
  157. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
  158. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
  159. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
  160. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
  161. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
  162. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
  163. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
  164. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
  165. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
  166. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
  167. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
  168. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
  169. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
  170. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
  171. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
  172. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
  173. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
  174. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
  175. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
  176. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
  177. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
  178. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
  179. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
  180. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
  181. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
  182. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
  183. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
  184. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -86
  185. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -86
  186. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -84
  187. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -84
  188. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
  189. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
  190. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -78
  191. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -91
  192. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -93
  193. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -93
  194. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -93
  195. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -82
  196. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -82
  197. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +0 -58
  198. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +0 -60
  199. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
  200. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
  201. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
  202. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
  203. data/lib/stripe/events/v2_iam_api_key_created_event.rb +0 -20
  204. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +0 -20
  205. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +0 -20
  206. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +0 -20
  207. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +0 -38
  208. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +0 -20
  209. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +0 -44
  211. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +0 -44
  212. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +0 -46
  213. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -46
  214. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -48
  215. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
  216. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
  217. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
  218. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  219. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
  220. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +0 -44
  221. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +0 -44
  222. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +0 -65
  223. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +0 -44
  224. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +0 -44
  225. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +0 -38
  226. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +0 -44
  227. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +0 -61
  228. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +0 -61
  229. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +0 -61
  230. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +0 -44
  231. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
  232. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
  233. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
  234. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
  235. data/lib/stripe/params/balance_transfer_create_params.rb +0 -66
  236. data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
  237. data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
  238. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -138
  239. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
  240. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
  241. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
  242. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
  243. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
  244. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
  245. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
  246. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
  247. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
  248. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
  249. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
  250. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
  251. data/lib/stripe/params/issuing/program_create_params.rb +0 -21
  252. data/lib/stripe/params/issuing/program_list_params.rb +0 -24
  253. data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
  254. data/lib/stripe/params/issuing/program_update_params.rb +0 -21
  255. data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
  256. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
  257. data/lib/stripe/params/radar/account_evaluation_create_params.rb +0 -81
  258. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +0 -15
  259. data/lib/stripe/params/radar/account_evaluation_update_params.rb +0 -41
  260. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  261. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  262. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  263. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
  264. data/lib/stripe/params/subscription_pause_params.rb +0 -33
  265. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  266. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  267. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
  269. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
  270. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  271. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  272. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +0 -26
  273. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
  274. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
  275. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
  276. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
  277. data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
  278. data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -425
  279. data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
  280. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
  281. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
  282. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
  283. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
  284. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
  285. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
  286. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
  287. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
  288. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
  289. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
  290. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
  291. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
  292. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
  293. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
  294. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
  295. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
  296. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
  297. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
  298. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
  299. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
  300. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
  301. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
  302. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
  303. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
  304. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
  305. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
  306. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
  307. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
  308. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
  309. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
  310. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
  311. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
  312. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
  313. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
  314. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
  315. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
  316. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
  317. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
  318. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
  319. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
  320. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
  321. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
  322. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
  323. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
  324. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
  325. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
  326. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
  327. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
  328. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
  329. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +0 -12
  330. data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -278
  331. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
  332. data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
  333. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
  334. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +0 -10
  335. data/lib/stripe/params/v2/iam/api_key_create_params.rb +0 -51
  336. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +0 -10
  337. data/lib/stripe/params/v2/iam/api_key_list_params.rb +0 -20
  338. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +0 -10
  339. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +0 -46
  340. data/lib/stripe/params/v2/iam/api_key_update_params.rb +0 -20
  341. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +0 -68
  342. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +0 -20
  343. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +0 -10
  344. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
  345. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
  346. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +0 -10
  347. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
  348. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -57
  349. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -161
  350. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
  351. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
  352. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +0 -10
  353. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +0 -46
  354. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +0 -10
  355. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +0 -10
  356. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +0 -31
  357. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +0 -12
  358. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +0 -39
  359. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +0 -12
  360. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
  361. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
  362. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
  363. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +0 -94
  364. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +0 -10
  365. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +0 -17
  366. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +0 -10
  367. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +0 -94
  368. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
  369. data/lib/stripe/resources/balance_transfer.rb +0 -139
  370. data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -509
  371. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -143
  372. data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
  373. data/lib/stripe/resources/issuing/program.rb +0 -69
  374. data/lib/stripe/resources/payment_method_balance.rb +0 -68
  375. data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
  376. data/lib/stripe/resources/radar/account_evaluation.rb +0 -145
  377. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -126
  378. data/lib/stripe/resources/tax/location.rb +0 -72
  379. data/lib/stripe/resources/transit_balance.rb +0 -45
  380. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
  381. data/lib/stripe/resources/v2/billing/intent.rb +0 -86
  382. data/lib/stripe/resources/v2/billing/intent_action.rb +0 -483
  383. data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
  384. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
  385. data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
  386. data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
  387. data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
  388. data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
  389. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
  390. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
  391. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
  392. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
  393. data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
  394. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
  395. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
  396. data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
  397. data/lib/stripe/resources/v2/billing/service_action.rb +0 -274
  398. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
  399. data/lib/stripe/resources/v2/iam/api_key.rb +0 -129
  400. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +0 -94
  401. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
  402. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -186
  403. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +0 -92
  404. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +0 -78
  405. data/lib/stripe/resources/v2/reporting/report.rb +0 -116
  406. data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
  407. data/lib/stripe/resources/v2/tax/manual_rule.rb +0 -115
  408. data/lib/stripe/services/balance_transfer_service.rb +0 -17
  409. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
  410. data/lib/stripe/services/delegated_checkout_service.rb +0 -13
  411. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -50
  412. data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
  413. data/lib/stripe/services/issuing/program_service.rb +0 -52
  414. data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
  415. data/lib/stripe/services/product_catalog_service.rb +0 -13
  416. data/lib/stripe/services/radar/account_evaluation_service.rb +0 -41
  417. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  418. data/lib/stripe/services/shared_payment_service.rb +0 -13
  419. data/lib/stripe/services/tax/location_service.rb +0 -45
  420. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
  421. data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
  422. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  423. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  424. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -54
  425. data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
  426. data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
  427. data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
  428. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
  429. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
  430. data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
  431. data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
  432. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
  433. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
  434. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
  435. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
  436. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
  437. data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
  438. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
  439. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
  440. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
  441. data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
  442. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
  443. data/lib/stripe/services/v2/iam/api_key_service.rb +0 -76
  444. data/lib/stripe/services/v2/iam_service.rb +0 -15
  445. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +0 -45
  446. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
  447. data/lib/stripe/services/v2/payment_service.rb +0 -17
  448. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
  449. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +0 -72
  450. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +0 -45
  451. data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
  452. data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
  453. data/lib/stripe/services/v2/reporting_service.rb +0 -16
  454. data/lib/stripe/services/v2/tax/manual_rule_service.rb +0 -65
  455. data/lib/stripe/services/v2/tax_service.rb +0 -15
  456. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
@@ -169,49 +169,6 @@ module Stripe
169
169
  @type = type
170
170
  end
171
171
  end
172
-
173
- class Settings < ::Stripe::RequestParams
174
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
175
- class Custom < ::Stripe::RequestParams
176
- # The day of the month the anchor should be. Ranges from 1 to 31.
177
- attr_accessor :day_of_month
178
- # The hour of the day the anchor should be. Ranges from 0 to 23.
179
- attr_accessor :hour
180
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
181
- attr_accessor :minute
182
- # The month to start full cycle periods. Ranges from 1 to 12.
183
- attr_accessor :month
184
- # The second of the minute the anchor should be. Ranges from 0 to 59.
185
- attr_accessor :second
186
-
187
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
188
- @day_of_month = day_of_month
189
- @hour = hour
190
- @minute = minute
191
- @month = month
192
- @second = second
193
- end
194
- end
195
- # Anchor the service period to a custom date. Type must be `custom` to specify.
196
- attr_accessor :custom
197
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
198
- attr_accessor :type
199
-
200
- def initialize(custom: nil, type: nil)
201
- @custom = custom
202
- @type = type
203
- end
204
- end
205
- # Configures service period cycle anchoring.
206
- attr_accessor :service_period_anchor_config
207
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
208
- attr_accessor :start_date
209
-
210
- def initialize(service_period_anchor_config: nil, start_date: nil)
211
- @service_period_anchor_config = service_period_anchor_config
212
- @start_date = start_date
213
- end
214
- end
215
172
  # ID of the coupon to create a new discount for.
216
173
  attr_accessor :coupon
217
174
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -220,21 +177,12 @@ module Stripe
220
177
  attr_accessor :discount_end
221
178
  # ID of the promotion code to create a new discount for.
222
179
  attr_accessor :promotion_code
223
- # Settings for discount application including service period anchoring.
224
- attr_accessor :settings
225
180
 
226
- def initialize(
227
- coupon: nil,
228
- discount: nil,
229
- discount_end: nil,
230
- promotion_code: nil,
231
- settings: nil
232
- )
181
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
233
182
  @coupon = coupon
234
183
  @discount = discount
235
184
  @discount_end = discount_end
236
185
  @promotion_code = promotion_code
237
- @settings = settings
238
186
  end
239
187
  end
240
188
 
@@ -477,29 +425,6 @@ module Stripe
477
425
  end
478
426
  end
479
427
 
480
- class BillingSchedulesAction < ::Stripe::RequestParams
481
- class AppliesTo < ::Stripe::RequestParams
482
- # The ID of the price object.
483
- attr_accessor :price
484
- # Controls which subscription items the billing schedule applies to.
485
- attr_accessor :type
486
-
487
- def initialize(price: nil, type: nil)
488
- @price = price
489
- @type = type
490
- end
491
- end
492
- # Specify which subscription items the billing schedule applies to.
493
- attr_accessor :applies_to
494
- # Select the action.
495
- attr_accessor :type
496
-
497
- def initialize(applies_to: nil, type: nil)
498
- @applies_to = applies_to
499
- @type = type
500
- end
501
- end
502
-
503
428
  class DiscountAction < ::Stripe::RequestParams
504
429
  class Add < ::Stripe::RequestParams
505
430
  class DiscountEnd < ::Stripe::RequestParams
@@ -510,49 +435,6 @@ module Stripe
510
435
  @type = type
511
436
  end
512
437
  end
513
-
514
- class Settings < ::Stripe::RequestParams
515
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
516
- class Custom < ::Stripe::RequestParams
517
- # The day of the month the anchor should be. Ranges from 1 to 31.
518
- attr_accessor :day_of_month
519
- # The hour of the day the anchor should be. Ranges from 0 to 23.
520
- attr_accessor :hour
521
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
522
- attr_accessor :minute
523
- # The month to start full cycle periods. Ranges from 1 to 12.
524
- attr_accessor :month
525
- # The second of the minute the anchor should be. Ranges from 0 to 59.
526
- attr_accessor :second
527
-
528
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
529
- @day_of_month = day_of_month
530
- @hour = hour
531
- @minute = minute
532
- @month = month
533
- @second = second
534
- end
535
- end
536
- # Anchor the service period to a custom date. Type must be `custom` to specify.
537
- attr_accessor :custom
538
- # The type of service period anchor config. Defaults to `inherit` if omitted.
539
- attr_accessor :type
540
-
541
- def initialize(custom: nil, type: nil)
542
- @custom = custom
543
- @type = type
544
- end
545
- end
546
- # Configures service period cycle anchoring.
547
- attr_accessor :service_period_anchor_config
548
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
549
- attr_accessor :start_date
550
-
551
- def initialize(service_period_anchor_config: nil, start_date: nil)
552
- @service_period_anchor_config = service_period_anchor_config
553
- @start_date = start_date
554
- end
555
- end
556
438
  # The coupon code to redeem.
557
439
  attr_accessor :coupon
558
440
  # An ID of an existing discount for a coupon that was already redeemed.
@@ -563,23 +445,19 @@ module Stripe
563
445
  attr_accessor :index
564
446
  # The promotion code to redeem.
565
447
  attr_accessor :promotion_code
566
- # Settings for discount application including service period anchoring.
567
- attr_accessor :settings
568
448
 
569
449
  def initialize(
570
450
  coupon: nil,
571
451
  discount: nil,
572
452
  discount_end: nil,
573
453
  index: nil,
574
- promotion_code: nil,
575
- settings: nil
454
+ promotion_code: nil
576
455
  )
577
456
  @coupon = coupon
578
457
  @discount = discount
579
458
  @discount_end = discount_end
580
459
  @index = index
581
460
  @promotion_code = promotion_code
582
- @settings = settings
583
461
  end
584
462
  end
585
463
 
@@ -599,62 +477,17 @@ module Stripe
599
477
  end
600
478
 
601
479
  class Set < ::Stripe::RequestParams
602
- class Settings < ::Stripe::RequestParams
603
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
604
- class Custom < ::Stripe::RequestParams
605
- # The day of the month the anchor should be. Ranges from 1 to 31.
606
- attr_accessor :day_of_month
607
- # The hour of the day the anchor should be. Ranges from 0 to 23.
608
- attr_accessor :hour
609
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
610
- attr_accessor :minute
611
- # The month to start full cycle periods. Ranges from 1 to 12.
612
- attr_accessor :month
613
- # The second of the minute the anchor should be. Ranges from 0 to 59.
614
- attr_accessor :second
615
-
616
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
617
- @day_of_month = day_of_month
618
- @hour = hour
619
- @minute = minute
620
- @month = month
621
- @second = second
622
- end
623
- end
624
- # Anchor the service period to a custom date. Type must be `custom` to specify.
625
- attr_accessor :custom
626
- # The type of service period anchor config. Defaults to `inherit` if omitted.
627
- attr_accessor :type
628
-
629
- def initialize(custom: nil, type: nil)
630
- @custom = custom
631
- @type = type
632
- end
633
- end
634
- # Configures service period cycle anchoring.
635
- attr_accessor :service_period_anchor_config
636
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
637
- attr_accessor :start_date
638
-
639
- def initialize(service_period_anchor_config: nil, start_date: nil)
640
- @service_period_anchor_config = service_period_anchor_config
641
- @start_date = start_date
642
- end
643
- end
644
480
  # The coupon code to replace the `discounts` array with.
645
481
  attr_accessor :coupon
646
482
  # An ID of an existing discount to replace the `discounts` array with.
647
483
  attr_accessor :discount
648
484
  # An ID of an existing promotion code to replace the `discounts` array with.
649
485
  attr_accessor :promotion_code
650
- # Settings for discount application including service period anchoring.
651
- attr_accessor :settings
652
486
 
653
- def initialize(coupon: nil, discount: nil, promotion_code: nil, settings: nil)
487
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
654
488
  @coupon = coupon
655
489
  @discount = discount
656
490
  @promotion_code = promotion_code
657
- @settings = settings
658
491
  end
659
492
  end
660
493
  # Details of the discount to add.
@@ -702,55 +535,6 @@ module Stripe
702
535
  @type = type
703
536
  end
704
537
  end
705
-
706
- class Settings < ::Stripe::RequestParams
707
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
708
- class Custom < ::Stripe::RequestParams
709
- # The day of the month the anchor should be. Ranges from 1 to 31.
710
- attr_accessor :day_of_month
711
- # The hour of the day the anchor should be. Ranges from 0 to 23.
712
- attr_accessor :hour
713
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
714
- attr_accessor :minute
715
- # The month to start full cycle periods. Ranges from 1 to 12.
716
- attr_accessor :month
717
- # The second of the minute the anchor should be. Ranges from 0 to 59.
718
- attr_accessor :second
719
-
720
- def initialize(
721
- day_of_month: nil,
722
- hour: nil,
723
- minute: nil,
724
- month: nil,
725
- second: nil
726
- )
727
- @day_of_month = day_of_month
728
- @hour = hour
729
- @minute = minute
730
- @month = month
731
- @second = second
732
- end
733
- end
734
- # Anchor the service period to a custom date. Type must be `custom` to specify.
735
- attr_accessor :custom
736
- # The type of service period anchor config. Defaults to `inherit` if omitted.
737
- attr_accessor :type
738
-
739
- def initialize(custom: nil, type: nil)
740
- @custom = custom
741
- @type = type
742
- end
743
- end
744
- # Configures service period cycle anchoring.
745
- attr_accessor :service_period_anchor_config
746
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
747
- attr_accessor :start_date
748
-
749
- def initialize(service_period_anchor_config: nil, start_date: nil)
750
- @service_period_anchor_config = service_period_anchor_config
751
- @start_date = start_date
752
- end
753
- end
754
538
  # ID of the coupon to create a new discount for.
755
539
  attr_accessor :coupon
756
540
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -759,21 +543,12 @@ module Stripe
759
543
  attr_accessor :discount_end
760
544
  # ID of the promotion code to create a new discount for.
761
545
  attr_accessor :promotion_code
762
- # Settings for discount application including service period anchoring.
763
- attr_accessor :settings
764
-
765
- def initialize(
766
- coupon: nil,
767
- discount: nil,
768
- discount_end: nil,
769
- promotion_code: nil,
770
- settings: nil
771
- )
546
+
547
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
772
548
  @coupon = coupon
773
549
  @discount = discount
774
550
  @discount_end = discount_end
775
551
  @promotion_code = promotion_code
776
- @settings = settings
777
552
  end
778
553
  end
779
554
 
@@ -800,8 +575,6 @@ module Stripe
800
575
  attr_accessor :tax_rates
801
576
  # Options that configure the trial on the subscription item.
802
577
  attr_accessor :trial
803
- # The ID of the trial offer to apply to the configuration item.
804
- attr_accessor :trial_offer
805
578
 
806
579
  def initialize(
807
580
  discounts: nil,
@@ -809,8 +582,7 @@ module Stripe
809
582
  price: nil,
810
583
  quantity: nil,
811
584
  tax_rates: nil,
812
- trial: nil,
813
- trial_offer: nil
585
+ trial: nil
814
586
  )
815
587
  @discounts = discounts
816
588
  @metadata = metadata
@@ -818,7 +590,6 @@ module Stripe
818
590
  @quantity = quantity
819
591
  @tax_rates = tax_rates
820
592
  @trial = trial
821
- @trial_offer = trial_offer
822
593
  end
823
594
  end
824
595
 
@@ -858,55 +629,6 @@ module Stripe
858
629
  @type = type
859
630
  end
860
631
  end
861
-
862
- class Settings < ::Stripe::RequestParams
863
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
864
- class Custom < ::Stripe::RequestParams
865
- # The day of the month the anchor should be. Ranges from 1 to 31.
866
- attr_accessor :day_of_month
867
- # The hour of the day the anchor should be. Ranges from 0 to 23.
868
- attr_accessor :hour
869
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
870
- attr_accessor :minute
871
- # The month to start full cycle periods. Ranges from 1 to 12.
872
- attr_accessor :month
873
- # The second of the minute the anchor should be. Ranges from 0 to 59.
874
- attr_accessor :second
875
-
876
- def initialize(
877
- day_of_month: nil,
878
- hour: nil,
879
- minute: nil,
880
- month: nil,
881
- second: nil
882
- )
883
- @day_of_month = day_of_month
884
- @hour = hour
885
- @minute = minute
886
- @month = month
887
- @second = second
888
- end
889
- end
890
- # Anchor the service period to a custom date. Type must be `custom` to specify.
891
- attr_accessor :custom
892
- # The type of service period anchor config. Defaults to `inherit` if omitted.
893
- attr_accessor :type
894
-
895
- def initialize(custom: nil, type: nil)
896
- @custom = custom
897
- @type = type
898
- end
899
- end
900
- # Configures service period cycle anchoring.
901
- attr_accessor :service_period_anchor_config
902
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
903
- attr_accessor :start_date
904
-
905
- def initialize(service_period_anchor_config: nil, start_date: nil)
906
- @service_period_anchor_config = service_period_anchor_config
907
- @start_date = start_date
908
- end
909
- end
910
632
  # ID of the coupon to create a new discount for.
911
633
  attr_accessor :coupon
912
634
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -915,21 +637,12 @@ module Stripe
915
637
  attr_accessor :discount_end
916
638
  # ID of the promotion code to create a new discount for.
917
639
  attr_accessor :promotion_code
918
- # Settings for discount application including service period anchoring.
919
- attr_accessor :settings
920
-
921
- def initialize(
922
- coupon: nil,
923
- discount: nil,
924
- discount_end: nil,
925
- promotion_code: nil,
926
- settings: nil
927
- )
640
+
641
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
928
642
  @coupon = coupon
929
643
  @discount = discount
930
644
  @discount_end = discount_end
931
645
  @promotion_code = promotion_code
932
- @settings = settings
933
646
  end
934
647
  end
935
648
 
@@ -956,8 +669,6 @@ module Stripe
956
669
  attr_accessor :tax_rates
957
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`.
958
671
  attr_accessor :trial
959
- # The ID of the trial offer to apply to the configuration item.
960
- attr_accessor :trial_offer
961
672
 
962
673
  def initialize(
963
674
  discounts: nil,
@@ -965,8 +676,7 @@ module Stripe
965
676
  price: nil,
966
677
  quantity: nil,
967
678
  tax_rates: nil,
968
- trial: nil,
969
- trial_offer: nil
679
+ trial: nil
970
680
  )
971
681
  @discounts = discounts
972
682
  @metadata = metadata
@@ -974,7 +684,6 @@ module Stripe
974
684
  @quantity = quantity
975
685
  @tax_rates = tax_rates
976
686
  @trial = trial
977
- @trial_offer = trial_offer
978
687
  end
979
688
  end
980
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.
@@ -1054,12 +763,8 @@ module Stripe
1054
763
  attr_accessor :amendment_start
1055
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.
1056
765
  attr_accessor :billing_cycle_anchor
1057
- # Actions to apply to the billing schedules.
1058
- attr_accessor :billing_schedules_actions
1059
766
  # Changes to the coupons being redeemed or discounts being applied during the amendment time span.
1060
767
  attr_accessor :discount_actions
1061
- # Configures how the subscription schedule handles billing for phase transitions.
1062
- attr_accessor :effective_at
1063
768
  # Changes to the subscription items during the amendment time span.
1064
769
  attr_accessor :item_actions
1065
770
  # Instructions for how to modify phase metadata
@@ -1077,9 +782,7 @@ module Stripe
1077
782
  amendment_end: nil,
1078
783
  amendment_start: nil,
1079
784
  billing_cycle_anchor: nil,
1080
- billing_schedules_actions: nil,
1081
785
  discount_actions: nil,
1082
- effective_at: nil,
1083
786
  item_actions: nil,
1084
787
  metadata_actions: nil,
1085
788
  proration_behavior: nil,
@@ -1090,9 +793,7 @@ module Stripe
1090
793
  @amendment_end = amendment_end
1091
794
  @amendment_start = amendment_start
1092
795
  @billing_cycle_anchor = billing_cycle_anchor
1093
- @billing_schedules_actions = billing_schedules_actions
1094
796
  @discount_actions = discount_actions
1095
- @effective_at = effective_at
1096
797
  @item_actions = item_actions
1097
798
  @metadata_actions = metadata_actions
1098
799
  @proration_behavior = proration_behavior
@@ -1122,58 +823,6 @@ module Stripe
1122
823
  end
1123
824
  end
1124
825
 
1125
- class BillingSchedule < ::Stripe::RequestParams
1126
- class AppliesTo < ::Stripe::RequestParams
1127
- # The ID of the price object.
1128
- attr_accessor :price
1129
- # Controls which subscription items the billing schedule applies to.
1130
- attr_accessor :type
1131
-
1132
- def initialize(price: nil, type: nil)
1133
- @price = price
1134
- @type = type
1135
- end
1136
- end
1137
-
1138
- class BillUntil < ::Stripe::RequestParams
1139
- class Duration < ::Stripe::RequestParams
1140
- # Specifies billing duration. Either `day`, `week`, `month` or `year`.
1141
- attr_accessor :interval
1142
- # The multiplier applied to the interval.
1143
- attr_accessor :interval_count
1144
-
1145
- def initialize(interval: nil, interval_count: nil)
1146
- @interval = interval
1147
- @interval_count = interval_count
1148
- end
1149
- end
1150
- # Specifies the billing period.
1151
- attr_accessor :duration
1152
- # The end date of the billing schedule.
1153
- attr_accessor :timestamp
1154
- # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
1155
- attr_accessor :type
1156
-
1157
- def initialize(duration: nil, timestamp: nil, type: nil)
1158
- @duration = duration
1159
- @timestamp = timestamp
1160
- @type = type
1161
- end
1162
- end
1163
- # Configure billing schedule differently for individual subscription items.
1164
- attr_accessor :applies_to
1165
- # The end date for the billing schedule.
1166
- attr_accessor :bill_until
1167
- # 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.
1168
- attr_accessor :key
1169
-
1170
- def initialize(applies_to: nil, bill_until: nil, key: nil)
1171
- @applies_to = applies_to
1172
- @bill_until = bill_until
1173
- @key = key
1174
- end
1175
- end
1176
-
1177
826
  class Phase < ::Stripe::RequestParams
1178
827
  class AddInvoiceItem < ::Stripe::RequestParams
1179
828
  class Discount < ::Stripe::RequestParams
@@ -1375,49 +1024,6 @@ module Stripe
1375
1024
  @type = type
1376
1025
  end
1377
1026
  end
1378
-
1379
- class Settings < ::Stripe::RequestParams
1380
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
1381
- class Custom < ::Stripe::RequestParams
1382
- # The day of the month the anchor should be. Ranges from 1 to 31.
1383
- attr_accessor :day_of_month
1384
- # The hour of the day the anchor should be. Ranges from 0 to 23.
1385
- attr_accessor :hour
1386
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
1387
- attr_accessor :minute
1388
- # The month to start full cycle periods. Ranges from 1 to 12.
1389
- attr_accessor :month
1390
- # The second of the minute the anchor should be. Ranges from 0 to 59.
1391
- attr_accessor :second
1392
-
1393
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
1394
- @day_of_month = day_of_month
1395
- @hour = hour
1396
- @minute = minute
1397
- @month = month
1398
- @second = second
1399
- end
1400
- end
1401
- # Anchor the service period to a custom date. Type must be `custom` to specify.
1402
- attr_accessor :custom
1403
- # The type of service period anchor config. Defaults to `inherit` if omitted.
1404
- attr_accessor :type
1405
-
1406
- def initialize(custom: nil, type: nil)
1407
- @custom = custom
1408
- @type = type
1409
- end
1410
- end
1411
- # Configures service period cycle anchoring.
1412
- attr_accessor :service_period_anchor_config
1413
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
1414
- attr_accessor :start_date
1415
-
1416
- def initialize(service_period_anchor_config: nil, start_date: nil)
1417
- @service_period_anchor_config = service_period_anchor_config
1418
- @start_date = start_date
1419
- end
1420
- end
1421
1027
  # ID of the coupon to create a new discount for.
1422
1028
  attr_accessor :coupon
1423
1029
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -1426,21 +1032,12 @@ module Stripe
1426
1032
  attr_accessor :discount_end
1427
1033
  # ID of the promotion code to create a new discount for.
1428
1034
  attr_accessor :promotion_code
1429
- # Settings for discount application including service period anchoring.
1430
- attr_accessor :settings
1431
1035
 
1432
- def initialize(
1433
- coupon: nil,
1434
- discount: nil,
1435
- discount_end: nil,
1436
- promotion_code: nil,
1437
- settings: nil
1438
- )
1036
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
1439
1037
  @coupon = coupon
1440
1038
  @discount = discount
1441
1039
  @discount_end = discount_end
1442
1040
  @promotion_code = promotion_code
1443
- @settings = settings
1444
1041
  end
1445
1042
  end
1446
1043
 
@@ -1518,49 +1115,6 @@ module Stripe
1518
1115
  @type = type
1519
1116
  end
1520
1117
  end
1521
-
1522
- class Settings < ::Stripe::RequestParams
1523
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
1524
- class Custom < ::Stripe::RequestParams
1525
- # The day of the month the anchor should be. Ranges from 1 to 31.
1526
- attr_accessor :day_of_month
1527
- # The hour of the day the anchor should be. Ranges from 0 to 23.
1528
- attr_accessor :hour
1529
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
1530
- attr_accessor :minute
1531
- # The month to start full cycle periods. Ranges from 1 to 12.
1532
- attr_accessor :month
1533
- # The second of the minute the anchor should be. Ranges from 0 to 59.
1534
- attr_accessor :second
1535
-
1536
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
1537
- @day_of_month = day_of_month
1538
- @hour = hour
1539
- @minute = minute
1540
- @month = month
1541
- @second = second
1542
- end
1543
- end
1544
- # Anchor the service period to a custom date. Type must be `custom` to specify.
1545
- attr_accessor :custom
1546
- # The type of service period anchor config. Defaults to `inherit` if omitted.
1547
- attr_accessor :type
1548
-
1549
- def initialize(custom: nil, type: nil)
1550
- @custom = custom
1551
- @type = type
1552
- end
1553
- end
1554
- # Configures service period cycle anchoring.
1555
- attr_accessor :service_period_anchor_config
1556
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
1557
- attr_accessor :start_date
1558
-
1559
- def initialize(service_period_anchor_config: nil, start_date: nil)
1560
- @service_period_anchor_config = service_period_anchor_config
1561
- @start_date = start_date
1562
- end
1563
- end
1564
1118
  # ID of the coupon to create a new discount for.
1565
1119
  attr_accessor :coupon
1566
1120
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -1569,21 +1123,12 @@ module Stripe
1569
1123
  attr_accessor :discount_end
1570
1124
  # ID of the promotion code to create a new discount for.
1571
1125
  attr_accessor :promotion_code
1572
- # Settings for discount application including service period anchoring.
1573
- attr_accessor :settings
1574
1126
 
1575
- def initialize(
1576
- coupon: nil,
1577
- discount: nil,
1578
- discount_end: nil,
1579
- promotion_code: nil,
1580
- settings: nil
1581
- )
1127
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
1582
1128
  @coupon = coupon
1583
1129
  @discount = discount
1584
1130
  @discount_end = discount_end
1585
1131
  @promotion_code = promotion_code
1586
- @settings = settings
1587
1132
  end
1588
1133
  end
1589
1134
 
@@ -1658,8 +1203,6 @@ module Stripe
1658
1203
  attr_accessor :tax_rates
1659
1204
  # Options that configure the trial on the subscription item.
1660
1205
  attr_accessor :trial
1661
- # The ID of the trial offer to apply to the configuration item.
1662
- attr_accessor :trial_offer
1663
1206
 
1664
1207
  def initialize(
1665
1208
  billing_thresholds: nil,
@@ -1670,8 +1213,7 @@ module Stripe
1670
1213
  price_data: nil,
1671
1214
  quantity: nil,
1672
1215
  tax_rates: nil,
1673
- trial: nil,
1674
- trial_offer: nil
1216
+ trial: nil
1675
1217
  )
1676
1218
  @billing_thresholds = billing_thresholds
1677
1219
  @discounts = discounts
@@ -1682,7 +1224,6 @@ module Stripe
1682
1224
  @quantity = quantity
1683
1225
  @tax_rates = tax_rates
1684
1226
  @trial = trial
1685
- @trial_offer = trial_offer
1686
1227
  end
1687
1228
  end
1688
1229
 
@@ -1747,8 +1288,6 @@ module Stripe
1747
1288
  attr_accessor :discounts
1748
1289
  # The number of intervals the phase should last. If set, `end_date` must not be set.
1749
1290
  attr_accessor :duration
1750
- # Configures how the subscription schedule handles billing for phase transitions.
1751
- attr_accessor :effective_at
1752
1291
  # The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
1753
1292
  attr_accessor :end_date
1754
1293
  # All invoices will be billed using the specified settings.
@@ -1789,7 +1328,6 @@ module Stripe
1789
1328
  description: nil,
1790
1329
  discounts: nil,
1791
1330
  duration: nil,
1792
- effective_at: nil,
1793
1331
  end_date: nil,
1794
1332
  invoice_settings: nil,
1795
1333
  items: nil,
@@ -1816,7 +1354,6 @@ module Stripe
1816
1354
  @description = description
1817
1355
  @discounts = discounts
1818
1356
  @duration = duration
1819
- @effective_at = effective_at
1820
1357
  @end_date = end_date
1821
1358
  @invoice_settings = invoice_settings
1822
1359
  @items = items
@@ -1887,8 +1424,6 @@ module Stripe
1887
1424
  attr_accessor :billing_behavior
1888
1425
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
1889
1426
  attr_accessor :billing_mode
1890
- # Sets the billing schedules for the subscription schedule.
1891
- attr_accessor :billing_schedules
1892
1427
  # 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.
1893
1428
  attr_accessor :end_behavior
1894
1429
  # 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.
@@ -1902,7 +1437,6 @@ module Stripe
1902
1437
  amendments: nil,
1903
1438
  billing_behavior: nil,
1904
1439
  billing_mode: nil,
1905
- billing_schedules: nil,
1906
1440
  end_behavior: nil,
1907
1441
  phases: nil,
1908
1442
  prebilling: nil,
@@ -1911,7 +1445,6 @@ module Stripe
1911
1445
  @amendments = amendments
1912
1446
  @billing_behavior = billing_behavior
1913
1447
  @billing_mode = billing_mode
1914
- @billing_schedules = billing_schedules
1915
1448
  @end_behavior = end_behavior
1916
1449
  @phases = phases
1917
1450
  @prebilling = prebilling
@@ -2002,18 +1535,6 @@ module Stripe
2002
1535
  end
2003
1536
  end
2004
1537
 
2005
- class CurrentTrial < ::Stripe::RequestParams
2006
- # Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
2007
- attr_accessor :trial_end
2008
- # The ID of the trial offer to apply to the subscription item.
2009
- attr_accessor :trial_offer
2010
-
2011
- def initialize(trial_end: nil, trial_offer: nil)
2012
- @trial_end = trial_end
2013
- @trial_offer = trial_offer
2014
- end
2015
- end
2016
-
2017
1538
  class Discount < ::Stripe::RequestParams
2018
1539
  class DiscountEnd < ::Stripe::RequestParams
2019
1540
  class Duration < ::Stripe::RequestParams
@@ -2040,49 +1561,6 @@ module Stripe
2040
1561
  @type = type
2041
1562
  end
2042
1563
  end
2043
-
2044
- class Settings < ::Stripe::RequestParams
2045
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
2046
- class Custom < ::Stripe::RequestParams
2047
- # The day of the month the anchor should be. Ranges from 1 to 31.
2048
- attr_accessor :day_of_month
2049
- # The hour of the day the anchor should be. Ranges from 0 to 23.
2050
- attr_accessor :hour
2051
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
2052
- attr_accessor :minute
2053
- # The month to start full cycle periods. Ranges from 1 to 12.
2054
- attr_accessor :month
2055
- # The second of the minute the anchor should be. Ranges from 0 to 59.
2056
- attr_accessor :second
2057
-
2058
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
2059
- @day_of_month = day_of_month
2060
- @hour = hour
2061
- @minute = minute
2062
- @month = month
2063
- @second = second
2064
- end
2065
- end
2066
- # Anchor the service period to a custom date. Type must be `custom` to specify.
2067
- attr_accessor :custom
2068
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
2069
- attr_accessor :type
2070
-
2071
- def initialize(custom: nil, type: nil)
2072
- @custom = custom
2073
- @type = type
2074
- end
2075
- end
2076
- # Configures service period cycle anchoring.
2077
- attr_accessor :service_period_anchor_config
2078
- # The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
2079
- attr_accessor :start_date
2080
-
2081
- def initialize(service_period_anchor_config: nil, start_date: nil)
2082
- @service_period_anchor_config = service_period_anchor_config
2083
- @start_date = start_date
2084
- end
2085
- end
2086
1564
  # ID of the coupon to create a new discount for.
2087
1565
  attr_accessor :coupon
2088
1566
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -2091,21 +1569,12 @@ module Stripe
2091
1569
  attr_accessor :discount_end
2092
1570
  # ID of the promotion code to create a new discount for.
2093
1571
  attr_accessor :promotion_code
2094
- # Settings for discount application including service period anchoring.
2095
- attr_accessor :settings
2096
1572
 
2097
- def initialize(
2098
- coupon: nil,
2099
- discount: nil,
2100
- discount_end: nil,
2101
- promotion_code: nil,
2102
- settings: nil
2103
- )
1573
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
2104
1574
  @coupon = coupon
2105
1575
  @discount = discount
2106
1576
  @discount_end = discount_end
2107
1577
  @promotion_code = promotion_code
2108
- @settings = settings
2109
1578
  end
2110
1579
  end
2111
1580
 
@@ -2154,8 +1623,6 @@ module Stripe
2154
1623
  attr_accessor :billing_thresholds
2155
1624
  # Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
2156
1625
  attr_accessor :clear_usage
2157
- # The trial offer to apply to this subscription item.
2158
- attr_accessor :current_trial
2159
1626
  # A flag that, if set to `true`, will delete the specified item.
2160
1627
  attr_accessor :deleted
2161
1628
  # The coupons to redeem into discounts for the subscription item.
@@ -2178,7 +1645,6 @@ module Stripe
2178
1645
  def initialize(
2179
1646
  billing_thresholds: nil,
2180
1647
  clear_usage: nil,
2181
- current_trial: nil,
2182
1648
  deleted: nil,
2183
1649
  discounts: nil,
2184
1650
  id: nil,
@@ -2191,7 +1657,6 @@ module Stripe
2191
1657
  )
2192
1658
  @billing_thresholds = billing_thresholds
2193
1659
  @clear_usage = clear_usage
2194
- @current_trial = current_trial
2195
1660
  @deleted = deleted
2196
1661
  @discounts = discounts
2197
1662
  @id = id
@@ -2275,8 +1740,6 @@ module Stripe
2275
1740
  end
2276
1741
  # Settings for automatic tax lookup for this invoice preview.
2277
1742
  attr_accessor :automatic_tax
2278
- # 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.
2279
- attr_accessor :billing_cadence
2280
1743
  # The currency to preview this invoice in. Defaults to that of `customer` if not specified.
2281
1744
  attr_accessor :currency
2282
1745
  # The identifier of the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
@@ -2308,7 +1771,6 @@ module Stripe
2308
1771
 
2309
1772
  def initialize(
2310
1773
  automatic_tax: nil,
2311
- billing_cadence: nil,
2312
1774
  currency: nil,
2313
1775
  customer: nil,
2314
1776
  customer_account: nil,
@@ -2325,7 +1787,6 @@ module Stripe
2325
1787
  subscription_details: nil
2326
1788
  )
2327
1789
  @automatic_tax = automatic_tax
2328
- @billing_cadence = billing_cadence
2329
1790
  @currency = currency
2330
1791
  @customer = customer
2331
1792
  @customer_account = customer_account