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
@@ -1227,31 +1227,6 @@ module Stripe
1227
1227
  @us_bank_account = us_bank_account
1228
1228
  end
1229
1229
  end
1230
-
1231
- class SetupDetails < ::Stripe::RequestParams
1232
- class Benefit < ::Stripe::RequestParams
1233
- class FrMealVoucher < ::Stripe::RequestParams
1234
- # The 14-digit SIRET of the meal voucher acceptor.
1235
- attr_accessor :siret
1236
-
1237
- def initialize(siret: nil)
1238
- @siret = siret
1239
- end
1240
- end
1241
- # French meal voucher benefit details for this SetupIntent.
1242
- attr_accessor :fr_meal_voucher
1243
-
1244
- def initialize(fr_meal_voucher: nil)
1245
- @fr_meal_voucher = fr_meal_voucher
1246
- end
1247
- end
1248
- # Benefit details for this SetupIntent
1249
- attr_accessor :benefit
1250
-
1251
- def initialize(benefit: nil)
1252
- @benefit = benefit
1253
- end
1254
- end
1255
1230
  # ID of the ConfirmationToken used to confirm this SetupIntent.
1256
1231
  #
1257
1232
  # If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
@@ -1271,8 +1246,6 @@ module Stripe
1271
1246
  # If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
1272
1247
  # This parameter is only used for cards and other redirect-based payment methods.
1273
1248
  attr_accessor :return_url
1274
- # Provides industry-specific information about the SetupIntent.
1275
- attr_accessor :setup_details
1276
1249
  # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
1277
1250
  attr_accessor :use_stripe_sdk
1278
1251
 
@@ -1284,7 +1257,6 @@ module Stripe
1284
1257
  payment_method_data: nil,
1285
1258
  payment_method_options: nil,
1286
1259
  return_url: nil,
1287
- setup_details: nil,
1288
1260
  use_stripe_sdk: nil
1289
1261
  )
1290
1262
  @confirmation_token = confirmation_token
@@ -1294,7 +1266,6 @@ module Stripe
1294
1266
  @payment_method_data = payment_method_data
1295
1267
  @payment_method_options = payment_method_options
1296
1268
  @return_url = return_url
1297
- @setup_details = setup_details
1298
1269
  @use_stripe_sdk = use_stripe_sdk
1299
1270
  end
1300
1271
  end
@@ -1242,31 +1242,6 @@ module Stripe
1242
1242
  end
1243
1243
  end
1244
1244
 
1245
- class SetupDetails < ::Stripe::RequestParams
1246
- class Benefit < ::Stripe::RequestParams
1247
- class FrMealVoucher < ::Stripe::RequestParams
1248
- # The 14-digit SIRET of the meal voucher acceptor.
1249
- attr_accessor :siret
1250
-
1251
- def initialize(siret: nil)
1252
- @siret = siret
1253
- end
1254
- end
1255
- # French meal voucher benefit details for this SetupIntent.
1256
- attr_accessor :fr_meal_voucher
1257
-
1258
- def initialize(fr_meal_voucher: nil)
1259
- @fr_meal_voucher = fr_meal_voucher
1260
- end
1261
- end
1262
- # Benefit details for this SetupIntent
1263
- attr_accessor :benefit
1264
-
1265
- def initialize(benefit: nil)
1266
- @benefit = benefit
1267
- end
1268
- end
1269
-
1270
1245
  class SingleUse < ::Stripe::RequestParams
1271
1246
  # Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1272
1247
  attr_accessor :amount
@@ -1327,8 +1302,6 @@ module Stripe
1327
1302
  attr_accessor :payment_method_types
1328
1303
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm).
1329
1304
  attr_accessor :return_url
1330
- # Provides industry-specific information about the SetupIntent.
1331
- attr_accessor :setup_details
1332
1305
  # If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
1333
1306
  #
1334
1307
  # Single-use mandates are only valid for the following payment methods: `acss_debit`, `alipay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `boleto`, `ideal`, `link`, `sepa_debit`, and `us_bank_account`.
@@ -1358,7 +1331,6 @@ module Stripe
1358
1331
  payment_method_options: nil,
1359
1332
  payment_method_types: nil,
1360
1333
  return_url: nil,
1361
- setup_details: nil,
1362
1334
  single_use: nil,
1363
1335
  usage: nil,
1364
1336
  use_stripe_sdk: nil
@@ -1382,7 +1354,6 @@ module Stripe
1382
1354
  @payment_method_options = payment_method_options
1383
1355
  @payment_method_types = payment_method_types
1384
1356
  @return_url = return_url
1385
- @setup_details = setup_details
1386
1357
  @single_use = single_use
1387
1358
  @usage = usage
1388
1359
  @use_stripe_sdk = use_stripe_sdk
@@ -1188,31 +1188,6 @@ module Stripe
1188
1188
  @us_bank_account = us_bank_account
1189
1189
  end
1190
1190
  end
1191
-
1192
- class SetupDetails < ::Stripe::RequestParams
1193
- class Benefit < ::Stripe::RequestParams
1194
- class FrMealVoucher < ::Stripe::RequestParams
1195
- # The 14-digit SIRET of the meal voucher acceptor.
1196
- attr_accessor :siret
1197
-
1198
- def initialize(siret: nil)
1199
- @siret = siret
1200
- end
1201
- end
1202
- # French meal voucher benefit details for this SetupIntent.
1203
- attr_accessor :fr_meal_voucher
1204
-
1205
- def initialize(fr_meal_voucher: nil)
1206
- @fr_meal_voucher = fr_meal_voucher
1207
- end
1208
- end
1209
- # Benefit details for this SetupIntent
1210
- attr_accessor :benefit
1211
-
1212
- def initialize(benefit: nil)
1213
- @benefit = benefit
1214
- end
1215
- end
1216
1191
  # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
1217
1192
  #
1218
1193
  # It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
@@ -1248,8 +1223,6 @@ module Stripe
1248
1223
  attr_accessor :payment_method_options
1249
1224
  # The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
1250
1225
  attr_accessor :payment_method_types
1251
- # Provides industry-specific information about the SetupIntent.
1252
- attr_accessor :setup_details
1253
1226
 
1254
1227
  def initialize(
1255
1228
  attach_to_self: nil,
@@ -1264,8 +1237,7 @@ module Stripe
1264
1237
  payment_method_configuration: nil,
1265
1238
  payment_method_data: nil,
1266
1239
  payment_method_options: nil,
1267
- payment_method_types: nil,
1268
- setup_details: nil
1240
+ payment_method_types: nil
1269
1241
  )
1270
1242
  @attach_to_self = attach_to_self
1271
1243
  @customer = customer
@@ -1280,7 +1252,6 @@ module Stripe
1280
1252
  @payment_method_data = payment_method_data
1281
1253
  @payment_method_options = payment_method_options
1282
1254
  @payment_method_types = payment_method_types
1283
- @setup_details = setup_details
1284
1255
  end
1285
1256
  end
1286
1257
  end
@@ -296,49 +296,6 @@ module Stripe
296
296
  @type = type
297
297
  end
298
298
  end
299
-
300
- class Settings < ::Stripe::RequestParams
301
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
302
- class Custom < ::Stripe::RequestParams
303
- # The day of the month the anchor should be. Ranges from 1 to 31.
304
- attr_accessor :day_of_month
305
- # The hour of the day the anchor should be. Ranges from 0 to 23.
306
- attr_accessor :hour
307
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
308
- attr_accessor :minute
309
- # The month to start full cycle periods. Ranges from 1 to 12.
310
- attr_accessor :month
311
- # The second of the minute the anchor should be. Ranges from 0 to 59.
312
- attr_accessor :second
313
-
314
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
315
- @day_of_month = day_of_month
316
- @hour = hour
317
- @minute = minute
318
- @month = month
319
- @second = second
320
- end
321
- end
322
- # Anchor the service period to a custom date. Type must be `custom` to specify.
323
- attr_accessor :custom
324
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
325
- attr_accessor :type
326
-
327
- def initialize(custom: nil, type: nil)
328
- @custom = custom
329
- @type = type
330
- end
331
- end
332
- # Configures service period cycle anchoring.
333
- attr_accessor :service_period_anchor_config
334
- # 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.
335
- attr_accessor :start_date
336
-
337
- def initialize(service_period_anchor_config: nil, start_date: nil)
338
- @service_period_anchor_config = service_period_anchor_config
339
- @start_date = start_date
340
- end
341
- end
342
299
  # ID of the coupon to create a new discount for.
343
300
  attr_accessor :coupon
344
301
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -347,21 +304,12 @@ module Stripe
347
304
  attr_accessor :discount_end
348
305
  # ID of the promotion code to create a new discount for.
349
306
  attr_accessor :promotion_code
350
- # Settings for discount application including service period anchoring.
351
- attr_accessor :settings
352
307
 
353
- def initialize(
354
- coupon: nil,
355
- discount: nil,
356
- discount_end: nil,
357
- promotion_code: nil,
358
- settings: nil
359
- )
308
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
360
309
  @coupon = coupon
361
310
  @discount = discount
362
311
  @discount_end = discount_end
363
312
  @promotion_code = promotion_code
364
- @settings = settings
365
313
  end
366
314
  end
367
315
 
@@ -398,18 +346,6 @@ module Stripe
398
346
  end
399
347
  end
400
348
 
401
- class CurrentTrial < ::Stripe::RequestParams
402
- # 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`.
403
- attr_accessor :trial_end
404
- # The ID of the trial offer to apply to the subscription item.
405
- attr_accessor :trial_offer
406
-
407
- def initialize(trial_end: nil, trial_offer: nil)
408
- @trial_end = trial_end
409
- @trial_offer = trial_offer
410
- end
411
- end
412
-
413
349
  class Discount < ::Stripe::RequestParams
414
350
  class DiscountEnd < ::Stripe::RequestParams
415
351
  class Duration < ::Stripe::RequestParams
@@ -436,49 +372,6 @@ module Stripe
436
372
  @type = type
437
373
  end
438
374
  end
439
-
440
- class Settings < ::Stripe::RequestParams
441
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
442
- class Custom < ::Stripe::RequestParams
443
- # The day of the month the anchor should be. Ranges from 1 to 31.
444
- attr_accessor :day_of_month
445
- # The hour of the day the anchor should be. Ranges from 0 to 23.
446
- attr_accessor :hour
447
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
448
- attr_accessor :minute
449
- # The month to start full cycle periods. Ranges from 1 to 12.
450
- attr_accessor :month
451
- # The second of the minute the anchor should be. Ranges from 0 to 59.
452
- attr_accessor :second
453
-
454
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
455
- @day_of_month = day_of_month
456
- @hour = hour
457
- @minute = minute
458
- @month = month
459
- @second = second
460
- end
461
- end
462
- # Anchor the service period to a custom date. Type must be `custom` to specify.
463
- attr_accessor :custom
464
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
465
- attr_accessor :type
466
-
467
- def initialize(custom: nil, type: nil)
468
- @custom = custom
469
- @type = type
470
- end
471
- end
472
- # Configures service period cycle anchoring.
473
- attr_accessor :service_period_anchor_config
474
- # 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.
475
- attr_accessor :start_date
476
-
477
- def initialize(service_period_anchor_config: nil, start_date: nil)
478
- @service_period_anchor_config = service_period_anchor_config
479
- @start_date = start_date
480
- end
481
- end
482
375
  # ID of the coupon to create a new discount for.
483
376
  attr_accessor :coupon
484
377
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -487,21 +380,12 @@ module Stripe
487
380
  attr_accessor :discount_end
488
381
  # ID of the promotion code to create a new discount for.
489
382
  attr_accessor :promotion_code
490
- # Settings for discount application including service period anchoring.
491
- attr_accessor :settings
492
383
 
493
- def initialize(
494
- coupon: nil,
495
- discount: nil,
496
- discount_end: nil,
497
- promotion_code: nil,
498
- settings: nil
499
- )
384
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
500
385
  @coupon = coupon
501
386
  @discount = discount
502
387
  @discount_end = discount_end
503
388
  @promotion_code = promotion_code
504
- @settings = settings
505
389
  end
506
390
  end
507
391
 
@@ -560,8 +444,6 @@ module Stripe
560
444
  end
561
445
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
562
446
  attr_accessor :billing_thresholds
563
- # The trial offer to apply to this subscription item.
564
- attr_accessor :current_trial
565
447
  # The coupons to redeem into discounts for the subscription item.
566
448
  attr_accessor :discounts
567
449
  # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -581,7 +463,6 @@ module Stripe
581
463
 
582
464
  def initialize(
583
465
  billing_thresholds: nil,
584
- current_trial: nil,
585
466
  discounts: nil,
586
467
  metadata: nil,
587
468
  plan: nil,
@@ -592,7 +473,6 @@ module Stripe
592
473
  trial: nil
593
474
  )
594
475
  @billing_thresholds = billing_thresholds
595
- @current_trial = current_trial
596
476
  @discounts = discounts
597
477
  @metadata = metadata
598
478
  @plan = plan
@@ -940,8 +820,6 @@ module Stripe
940
820
  attr_accessor :automatic_tax
941
821
  # A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
942
822
  attr_accessor :backdate_start_date
943
- # 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.
944
- attr_accessor :billing_cadence
945
823
  # A future timestamp in UTC format to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
946
824
  attr_accessor :billing_cycle_anchor
947
825
  # Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurrence of the day_of_month at the hour, minute, and second UTC.
@@ -1024,7 +902,6 @@ module Stripe
1024
902
  application_fee_percent: nil,
1025
903
  automatic_tax: nil,
1026
904
  backdate_start_date: nil,
1027
- billing_cadence: nil,
1028
905
  billing_cycle_anchor: nil,
1029
906
  billing_cycle_anchor_config: nil,
1030
907
  billing_mode: nil,
@@ -1063,7 +940,6 @@ module Stripe
1063
940
  @application_fee_percent = application_fee_percent
1064
941
  @automatic_tax = automatic_tax
1065
942
  @backdate_start_date = backdate_start_date
1066
- @billing_cadence = billing_cadence
1067
943
  @billing_cycle_anchor = billing_cycle_anchor
1068
944
  @billing_cycle_anchor_config = billing_cycle_anchor_config
1069
945
  @billing_mode = billing_mode
@@ -12,18 +12,6 @@ module Stripe
12
12
  end
13
13
  end
14
14
 
15
- class CurrentTrial < ::Stripe::RequestParams
16
- # 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`.
17
- attr_accessor :trial_end
18
- # The ID of the trial offer to apply to the subscription item.
19
- attr_accessor :trial_offer
20
-
21
- def initialize(trial_end: nil, trial_offer: nil)
22
- @trial_end = trial_end
23
- @trial_offer = trial_offer
24
- end
25
- end
26
-
27
15
  class Discount < ::Stripe::RequestParams
28
16
  class DiscountEnd < ::Stripe::RequestParams
29
17
  class Duration < ::Stripe::RequestParams
@@ -50,49 +38,6 @@ module Stripe
50
38
  @type = type
51
39
  end
52
40
  end
53
-
54
- class Settings < ::Stripe::RequestParams
55
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
56
- class Custom < ::Stripe::RequestParams
57
- # The day of the month the anchor should be. Ranges from 1 to 31.
58
- attr_accessor :day_of_month
59
- # The hour of the day the anchor should be. Ranges from 0 to 23.
60
- attr_accessor :hour
61
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
62
- attr_accessor :minute
63
- # The month to start full cycle periods. Ranges from 1 to 12.
64
- attr_accessor :month
65
- # The second of the minute the anchor should be. Ranges from 0 to 59.
66
- attr_accessor :second
67
-
68
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
69
- @day_of_month = day_of_month
70
- @hour = hour
71
- @minute = minute
72
- @month = month
73
- @second = second
74
- end
75
- end
76
- # Anchor the service period to a custom date. Type must be `custom` to specify.
77
- attr_accessor :custom
78
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
79
- attr_accessor :type
80
-
81
- def initialize(custom: nil, type: nil)
82
- @custom = custom
83
- @type = type
84
- end
85
- end
86
- # Configures service period cycle anchoring.
87
- attr_accessor :service_period_anchor_config
88
- # 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.
89
- attr_accessor :start_date
90
-
91
- def initialize(service_period_anchor_config: nil, start_date: nil)
92
- @service_period_anchor_config = service_period_anchor_config
93
- @start_date = start_date
94
- end
95
- end
96
41
  # ID of the coupon to create a new discount for.
97
42
  attr_accessor :coupon
98
43
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -101,21 +46,12 @@ module Stripe
101
46
  attr_accessor :discount_end
102
47
  # ID of the promotion code to create a new discount for.
103
48
  attr_accessor :promotion_code
104
- # Settings for discount application including service period anchoring.
105
- attr_accessor :settings
106
49
 
107
- def initialize(
108
- coupon: nil,
109
- discount: nil,
110
- discount_end: nil,
111
- promotion_code: nil,
112
- settings: nil
113
- )
50
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
114
51
  @coupon = coupon
115
52
  @discount = discount
116
53
  @discount_end = discount_end
117
54
  @promotion_code = promotion_code
118
- @settings = settings
119
55
  end
120
56
  end
121
57
 
@@ -174,8 +110,6 @@ module Stripe
174
110
  end
175
111
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
176
112
  attr_accessor :billing_thresholds
177
- # The trial offer to apply to this subscription item.
178
- attr_accessor :current_trial
179
113
  # The coupons to redeem into discounts for the subscription item.
180
114
  attr_accessor :discounts
181
115
  # Specifies which fields in the response should be expanded.
@@ -211,7 +145,6 @@ module Stripe
211
145
 
212
146
  def initialize(
213
147
  billing_thresholds: nil,
214
- current_trial: nil,
215
148
  discounts: nil,
216
149
  expand: nil,
217
150
  metadata: nil,
@@ -227,7 +160,6 @@ module Stripe
227
160
  trial: nil
228
161
  )
229
162
  @billing_thresholds = billing_thresholds
230
- @current_trial = current_trial
231
163
  @discounts = discounts
232
164
  @expand = expand
233
165
  @metadata = metadata
@@ -12,18 +12,6 @@ module Stripe
12
12
  end
13
13
  end
14
14
 
15
- class CurrentTrial < ::Stripe::RequestParams
16
- # 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`.
17
- attr_accessor :trial_end
18
- # The ID of the trial offer to apply to the subscription item.
19
- attr_accessor :trial_offer
20
-
21
- def initialize(trial_end: nil, trial_offer: nil)
22
- @trial_end = trial_end
23
- @trial_offer = trial_offer
24
- end
25
- end
26
-
27
15
  class Discount < ::Stripe::RequestParams
28
16
  class DiscountEnd < ::Stripe::RequestParams
29
17
  class Duration < ::Stripe::RequestParams
@@ -50,49 +38,6 @@ module Stripe
50
38
  @type = type
51
39
  end
52
40
  end
53
-
54
- class Settings < ::Stripe::RequestParams
55
- class ServicePeriodAnchorConfig < ::Stripe::RequestParams
56
- class Custom < ::Stripe::RequestParams
57
- # The day of the month the anchor should be. Ranges from 1 to 31.
58
- attr_accessor :day_of_month
59
- # The hour of the day the anchor should be. Ranges from 0 to 23.
60
- attr_accessor :hour
61
- # The minute of the hour the anchor should be. Ranges from 0 to 59.
62
- attr_accessor :minute
63
- # The month to start full cycle periods. Ranges from 1 to 12.
64
- attr_accessor :month
65
- # The second of the minute the anchor should be. Ranges from 0 to 59.
66
- attr_accessor :second
67
-
68
- def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
69
- @day_of_month = day_of_month
70
- @hour = hour
71
- @minute = minute
72
- @month = month
73
- @second = second
74
- end
75
- end
76
- # Anchor the service period to a custom date. Type must be `custom` to specify.
77
- attr_accessor :custom
78
- # The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
79
- attr_accessor :type
80
-
81
- def initialize(custom: nil, type: nil)
82
- @custom = custom
83
- @type = type
84
- end
85
- end
86
- # Configures service period cycle anchoring.
87
- attr_accessor :service_period_anchor_config
88
- # 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.
89
- attr_accessor :start_date
90
-
91
- def initialize(service_period_anchor_config: nil, start_date: nil)
92
- @service_period_anchor_config = service_period_anchor_config
93
- @start_date = start_date
94
- end
95
- end
96
41
  # ID of the coupon to create a new discount for.
97
42
  attr_accessor :coupon
98
43
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
@@ -101,21 +46,12 @@ module Stripe
101
46
  attr_accessor :discount_end
102
47
  # ID of the promotion code to create a new discount for.
103
48
  attr_accessor :promotion_code
104
- # Settings for discount application including service period anchoring.
105
- attr_accessor :settings
106
49
 
107
- def initialize(
108
- coupon: nil,
109
- discount: nil,
110
- discount_end: nil,
111
- promotion_code: nil,
112
- settings: nil
113
- )
50
+ def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
114
51
  @coupon = coupon
115
52
  @discount = discount
116
53
  @discount_end = discount_end
117
54
  @promotion_code = promotion_code
118
- @settings = settings
119
55
  end
120
56
  end
121
57
 
@@ -162,8 +98,6 @@ module Stripe
162
98
  end
163
99
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
164
100
  attr_accessor :billing_thresholds
165
- # The trial offer to apply to this subscription item.
166
- attr_accessor :current_trial
167
101
  # The coupons to redeem into discounts for the subscription item.
168
102
  attr_accessor :discounts
169
103
  # Specifies which fields in the response should be expanded.
@@ -197,7 +131,6 @@ module Stripe
197
131
 
198
132
  def initialize(
199
133
  billing_thresholds: nil,
200
- current_trial: nil,
201
134
  discounts: nil,
202
135
  expand: nil,
203
136
  metadata: nil,
@@ -212,7 +145,6 @@ module Stripe
212
145
  tax_rates: nil
213
146
  )
214
147
  @billing_thresholds = billing_thresholds
215
- @current_trial = current_trial
216
148
  @discounts = discounts
217
149
  @expand = expand
218
150
  @metadata = metadata
@@ -67,8 +67,6 @@ module Stripe
67
67
  end
68
68
  # Filter subscriptions by their automatic tax settings.
69
69
  attr_accessor :automatic_tax
70
- # Filter for subscriptions that have the specified billing cadence.
71
- attr_accessor :billing_cadence
72
70
  # The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
73
71
  attr_accessor :collection_method
74
72
  # Only return subscriptions that were created during the given date interval.
@@ -100,7 +98,6 @@ module Stripe
100
98
 
101
99
  def initialize(
102
100
  automatic_tax: nil,
103
- billing_cadence: nil,
104
101
  collection_method: nil,
105
102
  created: nil,
106
103
  current_period_end: nil,
@@ -117,7 +114,6 @@ module Stripe
117
114
  test_clock: nil
118
115
  )
119
116
  @automatic_tax = automatic_tax
120
- @billing_cadence = billing_cadence
121
117
  @collection_method = collection_method
122
118
  @created = created
123
119
  @current_period_end = current_period_end