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
@@ -3,58 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  class SubscriptionScheduleUpdateParams < ::Stripe::RequestParams
6
- class BillingSchedule < ::Stripe::RequestParams
7
- class AppliesTo < ::Stripe::RequestParams
8
- # The ID of the price object.
9
- attr_accessor :price
10
- # Controls which subscription items the billing schedule applies to.
11
- attr_accessor :type
12
-
13
- def initialize(price: nil, type: nil)
14
- @price = price
15
- @type = type
16
- end
17
- end
18
-
19
- class BillUntil < ::Stripe::RequestParams
20
- class Duration < ::Stripe::RequestParams
21
- # Specifies billing duration. Either `day`, `week`, `month` or `year`.
22
- attr_accessor :interval
23
- # The multiplier applied to the interval.
24
- attr_accessor :interval_count
25
-
26
- def initialize(interval: nil, interval_count: nil)
27
- @interval = interval
28
- @interval_count = interval_count
29
- end
30
- end
31
- # Specifies the billing period.
32
- attr_accessor :duration
33
- # The end date of the billing schedule.
34
- attr_accessor :timestamp
35
- # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
36
- attr_accessor :type
37
-
38
- def initialize(duration: nil, timestamp: nil, type: nil)
39
- @duration = duration
40
- @timestamp = timestamp
41
- @type = type
42
- end
43
- end
44
- # Configure billing schedule differently for individual subscription items.
45
- attr_accessor :applies_to
46
- # The end date for the billing schedule.
47
- attr_accessor :bill_until
48
- # 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.
49
- attr_accessor :key
50
-
51
- def initialize(applies_to: nil, bill_until: nil, key: nil)
52
- @applies_to = applies_to
53
- @bill_until = bill_until
54
- @key = key
55
- end
56
- end
57
-
58
6
  class DefaultSettings < ::Stripe::RequestParams
59
7
  class AutomaticTax < ::Stripe::RequestParams
60
8
  class Liability < ::Stripe::RequestParams
@@ -146,8 +94,6 @@ module Stripe
146
94
  attr_accessor :invoice_settings
147
95
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
148
96
  attr_accessor :on_behalf_of
149
- # Configures how the subscription schedule handles billing for phase transitions.
150
- attr_accessor :phase_effective_at
151
97
  # The data with which to automatically create a Transfer for each of the associated subscription's invoices.
152
98
  attr_accessor :transfer_data
153
99
 
@@ -161,7 +107,6 @@ module Stripe
161
107
  description: nil,
162
108
  invoice_settings: nil,
163
109
  on_behalf_of: nil,
164
- phase_effective_at: nil,
165
110
  transfer_data: nil
166
111
  )
167
112
  @application_fee_percent = application_fee_percent
@@ -173,7 +118,6 @@ module Stripe
173
118
  @description = description
174
119
  @invoice_settings = invoice_settings
175
120
  @on_behalf_of = on_behalf_of
176
- @phase_effective_at = phase_effective_at
177
121
  @transfer_data = transfer_data
178
122
  end
179
123
  end
@@ -379,49 +323,6 @@ module Stripe
379
323
  @type = type
380
324
  end
381
325
  end
382
-
383
- class Settings < ::Stripe::RequestParams
384
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
385
- class Custom < ::Stripe::RequestParams
386
- # The day of the month the anchor should be. Ranges from 1 to 31.
387
- attr_accessor :day_of_month
388
- # The hour of the day the anchor should be. Ranges from 0 to 23.
389
- attr_accessor :hour
390
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
391
- attr_accessor :minute
392
- # The month to start full cycle periods. Ranges from 1 to 12.
393
- attr_accessor :month
394
- # The second of the minute the anchor should be. Ranges from 0 to 59.
395
- attr_accessor :second
396
-
397
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
398
- @day_of_month = day_of_month
399
- @hour = hour
400
- @minute = minute
401
- @month = month
402
- @second = second
403
- end
404
- end
405
- # Anchor the service period to a custom date. Type must be `custom` to specify.
406
- attr_accessor :custom
407
- # The type of service period anchor config. Defaults to `inherit` if omitted.
408
- attr_accessor :type
409
-
410
- def initialize(custom: nil, type: nil)
411
- @custom = custom
412
- @type = type
413
- end
414
- end
415
- # Configures service period cycle anchoring.
416
- attr_accessor :service_period_anchor_config
417
- # 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.
418
- attr_accessor :start_date
419
-
420
- def initialize(service_period_anchor_config: nil, start_date: nil)
421
- @service_period_anchor_config = service_period_anchor_config
422
- @start_date = start_date
423
- end
424
- end
425
326
  # ID of the coupon to create a new discount for.
426
327
  attr_accessor :coupon
427
328
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -430,21 +331,12 @@ module Stripe
430
331
  attr_accessor :discount_end
431
332
  # ID of the promotion code to create a new discount for.
432
333
  attr_accessor :promotion_code
433
- # Settings for discount application including service period anchoring.
434
- attr_accessor :settings
435
334
 
436
- def initialize(
437
- coupon: nil,
438
- discount: nil,
439
- discount_end: nil,
440
- promotion_code: nil,
441
- settings: nil
442
- )
335
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
443
336
  @coupon = coupon
444
337
  @discount = discount
445
338
  @discount_end = discount_end
446
339
  @promotion_code = promotion_code
447
- @settings = settings
448
340
  end
449
341
  end
450
342
 
@@ -522,49 +414,6 @@ module Stripe
522
414
  @type = type
523
415
  end
524
416
  end
525
-
526
- class Settings < ::Stripe::RequestParams
527
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
528
- class Custom < ::Stripe::RequestParams
529
- # The day of the month the anchor should be. Ranges from 1 to 31.
530
- attr_accessor :day_of_month
531
- # The hour of the day the anchor should be. Ranges from 0 to 23.
532
- attr_accessor :hour
533
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
534
- attr_accessor :minute
535
- # The month to start full cycle periods. Ranges from 1 to 12.
536
- attr_accessor :month
537
- # The second of the minute the anchor should be. Ranges from 0 to 59.
538
- attr_accessor :second
539
-
540
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
541
- @day_of_month = day_of_month
542
- @hour = hour
543
- @minute = minute
544
- @month = month
545
- @second = second
546
- end
547
- end
548
- # Anchor the service period to a custom date. Type must be `custom` to specify.
549
- attr_accessor :custom
550
- # The type of service period anchor config. Defaults to `inherit` if omitted.
551
- attr_accessor :type
552
-
553
- def initialize(custom: nil, type: nil)
554
- @custom = custom
555
- @type = type
556
- end
557
- end
558
- # Configures service period cycle anchoring.
559
- attr_accessor :service_period_anchor_config
560
- # 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.
561
- attr_accessor :start_date
562
-
563
- def initialize(service_period_anchor_config: nil, start_date: nil)
564
- @service_period_anchor_config = service_period_anchor_config
565
- @start_date = start_date
566
- end
567
- end
568
417
  # ID of the coupon to create a new discount for.
569
418
  attr_accessor :coupon
570
419
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -573,21 +422,12 @@ module Stripe
573
422
  attr_accessor :discount_end
574
423
  # ID of the promotion code to create a new discount for.
575
424
  attr_accessor :promotion_code
576
- # Settings for discount application including service period anchoring.
577
- attr_accessor :settings
578
425
 
579
- def initialize(
580
- coupon: nil,
581
- discount: nil,
582
- discount_end: nil,
583
- promotion_code: nil,
584
- settings: nil
585
- )
426
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
586
427
  @coupon = coupon
587
428
  @discount = discount
588
429
  @discount_end = discount_end
589
430
  @promotion_code = promotion_code
590
- @settings = settings
591
431
  end
592
432
  end
593
433
 
@@ -662,8 +502,6 @@ module Stripe
662
502
  attr_accessor :tax_rates
663
503
  # Options that configure the trial on the subscription item.
664
504
  attr_accessor :trial
665
- # The ID of the trial offer to apply to the configuration item.
666
- attr_accessor :trial_offer
667
505
 
668
506
  def initialize(
669
507
  billing_thresholds: nil,
@@ -674,8 +512,7 @@ module Stripe
674
512
  price_data: nil,
675
513
  quantity: nil,
676
514
  tax_rates: nil,
677
- trial: nil,
678
- trial_offer: nil
515
+ trial: nil
679
516
  )
680
517
  @billing_thresholds = billing_thresholds
681
518
  @discounts = discounts
@@ -686,7 +523,6 @@ module Stripe
686
523
  @quantity = quantity
687
524
  @tax_rates = tax_rates
688
525
  @trial = trial
689
- @trial_offer = trial_offer
690
526
  end
691
527
  end
692
528
 
@@ -751,8 +587,6 @@ module Stripe
751
587
  attr_accessor :discounts
752
588
  # The number of intervals the phase should last. If set, `end_date` must not be set.
753
589
  attr_accessor :duration
754
- # Configures how the subscription schedule handles billing for phase transitions.
755
- attr_accessor :effective_at
756
590
  # The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
757
591
  attr_accessor :end_date
758
592
  # All invoices will be billed using the specified settings.
@@ -793,7 +627,6 @@ module Stripe
793
627
  description: nil,
794
628
  discounts: nil,
795
629
  duration: nil,
796
- effective_at: nil,
797
630
  end_date: nil,
798
631
  invoice_settings: nil,
799
632
  items: nil,
@@ -820,7 +653,6 @@ module Stripe
820
653
  @description = description
821
654
  @discounts = discounts
822
655
  @duration = duration
823
- @effective_at = effective_at
824
656
  @end_date = end_date
825
657
  @invoice_settings = invoice_settings
826
658
  @items = items
@@ -850,8 +682,6 @@ module Stripe
850
682
  end
851
683
  # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
852
684
  attr_accessor :billing_behavior
853
- # Sets the billing schedules for the subscription schedule.
854
- attr_accessor :billing_schedules
855
685
  # Object representing the subscription schedule's default settings.
856
686
  attr_accessor :default_settings
857
687
  # 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.
@@ -869,7 +699,6 @@ module Stripe
869
699
 
870
700
  def initialize(
871
701
  billing_behavior: nil,
872
- billing_schedules: nil,
873
702
  default_settings: nil,
874
703
  end_behavior: nil,
875
704
  expand: nil,
@@ -879,7 +708,6 @@ module Stripe
879
708
  proration_behavior: nil
880
709
  )
881
710
  @billing_behavior = billing_behavior
882
- @billing_schedules = billing_schedules
883
711
  @default_settings = default_settings
884
712
  @end_behavior = end_behavior
885
713
  @expand = expand
@@ -267,49 +267,6 @@ module Stripe
267
267
  @type = type
268
268
  end
269
269
  end
270
-
271
- class Settings < ::Stripe::RequestParams
272
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
273
- class Custom < ::Stripe::RequestParams
274
- # The day of the month the anchor should be. Ranges from 1 to 31.
275
- attr_accessor :day_of_month
276
- # The hour of the day the anchor should be. Ranges from 0 to 23.
277
- attr_accessor :hour
278
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
279
- attr_accessor :minute
280
- # The month to start full cycle periods. Ranges from 1 to 12.
281
- attr_accessor :month
282
- # The second of the minute the anchor should be. Ranges from 0 to 59.
283
- attr_accessor :second
284
-
285
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
286
- @day_of_month = day_of_month
287
- @hour = hour
288
- @minute = minute
289
- @month = month
290
- @second = second
291
- end
292
- end
293
- # Anchor the service period to a custom date. Type must be `custom` to specify.
294
- attr_accessor :custom
295
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
296
- attr_accessor :type
297
-
298
- def initialize(custom: nil, type: nil)
299
- @custom = custom
300
- @type = type
301
- end
302
- end
303
- # Configures service period cycle anchoring.
304
- attr_accessor :service_period_anchor_config
305
- # 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.
306
- attr_accessor :start_date
307
-
308
- def initialize(service_period_anchor_config: nil, start_date: nil)
309
- @service_period_anchor_config = service_period_anchor_config
310
- @start_date = start_date
311
- end
312
- end
313
270
  # ID of the coupon to create a new discount for.
314
271
  attr_accessor :coupon
315
272
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -318,21 +275,12 @@ module Stripe
318
275
  attr_accessor :discount_end
319
276
  # ID of the promotion code to create a new discount for.
320
277
  attr_accessor :promotion_code
321
- # Settings for discount application including service period anchoring.
322
- attr_accessor :settings
323
278
 
324
- def initialize(
325
- coupon: nil,
326
- discount: nil,
327
- discount_end: nil,
328
- promotion_code: nil,
329
- settings: nil
330
- )
279
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
331
280
  @coupon = coupon
332
281
  @discount = discount
333
282
  @discount_end = discount_end
334
283
  @promotion_code = promotion_code
335
- @settings = settings
336
284
  end
337
285
  end
338
286
 
@@ -369,18 +317,6 @@ module Stripe
369
317
  end
370
318
  end
371
319
 
372
- class CurrentTrial < ::Stripe::RequestParams
373
- # 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`.
374
- attr_accessor :trial_end
375
- # The ID of the trial offer to apply to the subscription item.
376
- attr_accessor :trial_offer
377
-
378
- def initialize(trial_end: nil, trial_offer: nil)
379
- @trial_end = trial_end
380
- @trial_offer = trial_offer
381
- end
382
- end
383
-
384
320
  class Discount < ::Stripe::RequestParams
385
321
  class DiscountEnd < ::Stripe::RequestParams
386
322
  class Duration < ::Stripe::RequestParams
@@ -407,49 +343,6 @@ module Stripe
407
343
  @type = type
408
344
  end
409
345
  end
410
-
411
- class Settings < ::Stripe::RequestParams
412
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
413
- class Custom < ::Stripe::RequestParams
414
- # The day of the month the anchor should be. Ranges from 1 to 31.
415
- attr_accessor :day_of_month
416
- # The hour of the day the anchor should be. Ranges from 0 to 23.
417
- attr_accessor :hour
418
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
419
- attr_accessor :minute
420
- # The month to start full cycle periods. Ranges from 1 to 12.
421
- attr_accessor :month
422
- # The second of the minute the anchor should be. Ranges from 0 to 59.
423
- attr_accessor :second
424
-
425
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
426
- @day_of_month = day_of_month
427
- @hour = hour
428
- @minute = minute
429
- @month = month
430
- @second = second
431
- end
432
- end
433
- # Anchor the service period to a custom date. Type must be `custom` to specify.
434
- attr_accessor :custom
435
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
436
- attr_accessor :type
437
-
438
- def initialize(custom: nil, type: nil)
439
- @custom = custom
440
- @type = type
441
- end
442
- end
443
- # Configures service period cycle anchoring.
444
- attr_accessor :service_period_anchor_config
445
- # 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.
446
- attr_accessor :start_date
447
-
448
- def initialize(service_period_anchor_config: nil, start_date: nil)
449
- @service_period_anchor_config = service_period_anchor_config
450
- @start_date = start_date
451
- end
452
- end
453
346
  # ID of the coupon to create a new discount for.
454
347
  attr_accessor :coupon
455
348
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -458,21 +351,12 @@ module Stripe
458
351
  attr_accessor :discount_end
459
352
  # ID of the promotion code to create a new discount for.
460
353
  attr_accessor :promotion_code
461
- # Settings for discount application including service period anchoring.
462
- attr_accessor :settings
463
354
 
464
- def initialize(
465
- coupon: nil,
466
- discount: nil,
467
- discount_end: nil,
468
- promotion_code: nil,
469
- settings: nil
470
- )
355
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
471
356
  @coupon = coupon
472
357
  @discount = discount
473
358
  @discount_end = discount_end
474
359
  @promotion_code = promotion_code
475
- @settings = settings
476
360
  end
477
361
  end
478
362
 
@@ -521,8 +405,6 @@ module Stripe
521
405
  attr_accessor :billing_thresholds
522
406
  # 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.
523
407
  attr_accessor :clear_usage
524
- # The trial offer to apply to this subscription item.
525
- attr_accessor :current_trial
526
408
  # A flag that, if set to `true`, will delete the specified item.
527
409
  attr_accessor :deleted
528
410
  # The coupons to redeem into discounts for the subscription item.
@@ -545,7 +427,6 @@ module Stripe
545
427
  def initialize(
546
428
  billing_thresholds: nil,
547
429
  clear_usage: nil,
548
- current_trial: nil,
549
430
  deleted: nil,
550
431
  discounts: nil,
551
432
  id: nil,
@@ -558,7 +439,6 @@ module Stripe
558
439
  )
559
440
  @billing_thresholds = billing_thresholds
560
441
  @clear_usage = clear_usage
561
- @current_trial = current_trial
562
442
  @deleted = deleted
563
443
  @discounts = discounts
564
444
  @id = id
@@ -917,8 +797,6 @@ module Stripe
917
797
  attr_accessor :application_fee_percent
918
798
  # Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
919
799
  attr_accessor :automatic_tax
920
- # The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
921
- attr_accessor :billing_cadence
922
800
  # Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
923
801
  attr_accessor :billing_cycle_anchor
924
802
  # Sets the billing schedules for the subscription.
@@ -990,7 +868,6 @@ module Stripe
990
868
  add_invoice_items: nil,
991
869
  application_fee_percent: nil,
992
870
  automatic_tax: nil,
993
- billing_cadence: nil,
994
871
  billing_cycle_anchor: nil,
995
872
  billing_schedules: nil,
996
873
  billing_thresholds: nil,
@@ -1025,7 +902,6 @@ module Stripe
1025
902
  @add_invoice_items = add_invoice_items
1026
903
  @application_fee_percent = application_fee_percent
1027
904
  @automatic_tax = automatic_tax
1028
- @billing_cadence = billing_cadence
1029
905
  @billing_cycle_anchor = billing_cycle_anchor
1030
906
  @billing_schedules = billing_schedules
1031
907
  @billing_thresholds = billing_thresholds
@@ -79,8 +79,6 @@ module Stripe
79
79
  attr_accessor :amount
80
80
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
81
81
  attr_accessor :metadata
82
- # A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
83
- attr_accessor :performance_location
84
82
  # If provided, the product's `tax_code` will be used as the line item's `tax_code`.
85
83
  attr_accessor :product
86
84
  # The number of units of the item being purchased. Used to calculate the per-unit price from the total `amount` for the line. For example, if `amount=100` and `quantity=4`, the calculated unit price is 25.
@@ -95,7 +93,6 @@ module Stripe
95
93
  def initialize(
96
94
  amount: nil,
97
95
  metadata: nil,
98
- performance_location: nil,
99
96
  product: nil,
100
97
  quantity: nil,
101
98
  reference: nil,
@@ -104,7 +101,6 @@ module Stripe
104
101
  )
105
102
  @amount = amount
106
103
  @metadata = metadata
107
- @performance_location = performance_location
108
104
  @product = product
109
105
  @quantity = quantity
110
106
  @reference = reference
@@ -462,30 +462,6 @@ module Stripe
462
462
  end
463
463
  end
464
464
 
465
- class SelfReportedIncome < ::Stripe::RequestParams
466
- # The amount in the minor currency unit (for example, cents for USD).
467
- attr_accessor :amount
468
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
469
- attr_accessor :currency
470
-
471
- def initialize(amount: nil, currency: nil)
472
- @amount = amount
473
- @currency = currency
474
- end
475
- end
476
-
477
- class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
478
- # The amount in the minor currency unit (for example, cents for USD).
479
- attr_accessor :amount
480
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
481
- attr_accessor :currency
482
-
483
- def initialize(amount: nil, currency: nil)
484
- @amount = amount
485
- @currency = currency
486
- end
487
- end
488
-
489
465
  class Verification < ::Stripe::RequestParams
490
466
  class AdditionalDocument < ::Stripe::RequestParams
491
467
  # The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@@ -562,10 +538,6 @@ module Stripe
562
538
  attr_accessor :registered_address
563
539
  # Describes the person’s relationship to the account.
564
540
  attr_accessor :relationship
565
- # The credit applicant's self-reported yearly income in minor units.
566
- attr_accessor :self_reported_income
567
- # The credit applicant's self-reported monthly housing payment in minor units.
568
- attr_accessor :self_reported_monthly_housing_payment
569
541
  # The last four digits of the individual's Social Security Number (U.S. only).
570
542
  attr_accessor :ssn_last_4
571
543
  # The individual's verification document information.
@@ -593,8 +565,6 @@ module Stripe
593
565
  political_exposure: nil,
594
566
  registered_address: nil,
595
567
  relationship: nil,
596
- self_reported_income: nil,
597
- self_reported_monthly_housing_payment: nil,
598
568
  ssn_last_4: nil,
599
569
  verification: nil
600
570
  )
@@ -619,8 +589,6 @@ module Stripe
619
589
  @political_exposure = political_exposure
620
590
  @registered_address = registered_address
621
591
  @relationship = relationship
622
- @self_reported_income = self_reported_income
623
- @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
624
592
  @ssn_last_4 = ssn_last_4
625
593
  @verification = verification
626
594
  end
@@ -1008,30 +976,6 @@ module Stripe
1008
976
  end
1009
977
  end
1010
978
 
1011
- class SelfReportedIncome < ::Stripe::RequestParams
1012
- # The amount in the minor currency unit (for example, cents for USD).
1013
- attr_accessor :amount
1014
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1015
- attr_accessor :currency
1016
-
1017
- def initialize(amount: nil, currency: nil)
1018
- @amount = amount
1019
- @currency = currency
1020
- end
1021
- end
1022
-
1023
- class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1024
- # The amount in the minor currency unit (for example, cents for USD).
1025
- attr_accessor :amount
1026
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1027
- attr_accessor :currency
1028
-
1029
- def initialize(amount: nil, currency: nil)
1030
- @amount = amount
1031
- @currency = currency
1032
- end
1033
- end
1034
-
1035
979
  class UsCfpbData < ::Stripe::RequestParams
1036
980
  class EthnicityDetails < ::Stripe::RequestParams
1037
981
  # The persons ethnicity
@@ -1152,10 +1096,6 @@ module Stripe
1152
1096
  attr_accessor :registered_address
1153
1097
  # The relationship that this person has with the account's legal entity.
1154
1098
  attr_accessor :relationship
1155
- # The credit applicant's self-reported yearly income in minor units.
1156
- attr_accessor :self_reported_income
1157
- # The credit applicant's self-reported monthly housing payment in minor units.
1158
- attr_accessor :self_reported_monthly_housing_payment
1159
1099
  # The last four digits of the person's Social Security number (U.S. only).
1160
1100
  attr_accessor :ssn_last_4
1161
1101
  # Demographic data related to the person.
@@ -1188,8 +1128,6 @@ module Stripe
1188
1128
  political_exposure: nil,
1189
1129
  registered_address: nil,
1190
1130
  relationship: nil,
1191
- self_reported_income: nil,
1192
- self_reported_monthly_housing_payment: nil,
1193
1131
  ssn_last_4: nil,
1194
1132
  us_cfpb_data: nil,
1195
1133
  verification: nil
@@ -1218,8 +1156,6 @@ module Stripe
1218
1156
  @political_exposure = political_exposure
1219
1157
  @registered_address = registered_address
1220
1158
  @relationship = relationship
1221
- @self_reported_income = self_reported_income
1222
- @self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
1223
1159
  @ssn_last_4 = ssn_last_4
1224
1160
  @us_cfpb_data = us_cfpb_data
1225
1161
  @verification = verification
@@ -5,8 +5,6 @@ module Stripe
5
5
  class TransferCreateParams < ::Stripe::RequestParams
6
6
  # A positive integer in cents (or local equivalent) representing how much to transfer.
7
7
  attr_accessor :amount
8
- # Attribute for param field application_fee_amount
9
- attr_accessor :application_fee_amount
10
8
  # Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies).
11
9
  attr_accessor :currency
12
10
  # An arbitrary string attached to the object. Often useful for displaying to users.
@@ -28,7 +26,6 @@ module Stripe
28
26
 
29
27
  def initialize(
30
28
  amount: nil,
31
- application_fee_amount: nil,
32
29
  currency: nil,
33
30
  description: nil,
34
31
  destination: nil,
@@ -40,7 +37,6 @@ module Stripe
40
37
  transfer_group: nil
41
38
  )
42
39
  @amount = amount
43
- @application_fee_amount = application_fee_amount
44
40
  @currency = currency
45
41
  @description = description
46
42
  @destination = destination