stripe 16.1.0.pre.beta.1 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -35
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -63
  5. data/lib/stripe/event_types.rb +0 -236
  6. data/lib/stripe/object_types.rb +0 -58
  7. data/lib/stripe/params/account_create_params.rb +1 -300
  8. data/lib/stripe/params/account_session_create_params.rb +1 -226
  9. data/lib/stripe/params/account_update_params.rb +0 -262
  10. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -4
  11. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +0 -4
  12. data/lib/stripe/params/billing/credit_grant_create_params.rb +0 -4
  13. data/lib/stripe/params/billing/credit_grant_list_params.rb +0 -4
  14. data/lib/stripe/params/billing_portal/session_create_params.rb +0 -4
  15. data/lib/stripe/params/charge_capture_params.rb +0 -709
  16. data/lib/stripe/params/charge_update_params.rb +0 -709
  17. data/lib/stripe/params/checkout/session_create_params.rb +3 -193
  18. data/lib/stripe/params/checkout/session_list_params.rb +0 -4
  19. data/lib/stripe/params/checkout/session_update_params.rb +1 -288
  20. data/lib/stripe/params/confirmation_token_create_params.rb +0 -97
  21. data/lib/stripe/params/coupon_create_params.rb +1 -17
  22. data/lib/stripe/params/credit_note_list_params.rb +0 -4
  23. data/lib/stripe/params/customer_session_create_params.rb +1 -4
  24. data/lib/stripe/params/dispute_update_params.rb +1 -10
  25. data/lib/stripe/params/financial_connections/account_list_params.rb +1 -4
  26. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -34
  27. data/lib/stripe/params/identity/verification_session_create_params.rb +0 -4
  28. data/lib/stripe/params/identity/verification_session_list_params.rb +0 -4
  29. data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
  30. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -46
  31. data/lib/stripe/params/invoice_create_params.rb +2 -112
  32. data/lib/stripe/params/invoice_create_preview_params.rb +9 -826
  33. data/lib/stripe/params/invoice_item_create_params.rb +1 -37
  34. data/lib/stripe/params/invoice_item_list_params.rb +0 -4
  35. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  36. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
  37. data/lib/stripe/params/invoice_list_params.rb +0 -4
  38. data/lib/stripe/params/invoice_payment_list_params.rb +1 -4
  39. data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
  40. data/lib/stripe/params/invoice_update_params.rb +2 -108
  41. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  42. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  43. data/lib/stripe/params/payment_intent_capture_params.rb +0 -895
  44. data/lib/stripe/params/payment_intent_confirm_params.rb +18 -1384
  45. data/lib/stripe/params/payment_intent_create_params.rb +16 -1390
  46. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -223
  47. data/lib/stripe/params/payment_intent_list_params.rb +0 -4
  48. data/lib/stripe/params/payment_intent_update_params.rb +4 -1409
  49. data/lib/stripe/params/payment_method_attach_params.rb +1 -4
  50. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -126
  51. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -126
  52. data/lib/stripe/params/payment_method_create_params.rb +0 -97
  53. data/lib/stripe/params/payment_method_update_params.rb +0 -19
  54. data/lib/stripe/params/price_update_params.rb +0 -19
  55. data/lib/stripe/params/promotion_code_create_params.rb +0 -4
  56. data/lib/stripe/params/promotion_code_list_params.rb +0 -4
  57. data/lib/stripe/params/quote_create_params.rb +3 -805
  58. data/lib/stripe/params/quote_list_params.rb +0 -8
  59. data/lib/stripe/params/quote_update_params.rb +4 -813
  60. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -225
  61. data/lib/stripe/params/setup_intent_create_params.rb +3 -231
  62. data/lib/stripe/params/setup_intent_list_params.rb +0 -4
  63. data/lib/stripe/params/setup_intent_update_params.rb +3 -231
  64. data/lib/stripe/params/subscription_create_params.rb +5 -259
  65. data/lib/stripe/params/subscription_item_create_params.rb +2 -46
  66. data/lib/stripe/params/subscription_item_update_params.rb +1 -29
  67. data/lib/stripe/params/subscription_list_params.rb +0 -4
  68. data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
  69. data/lib/stripe/params/subscription_schedule_list_params.rb +0 -4
  70. data/lib/stripe/params/subscription_schedule_update_params.rb +5 -163
  71. data/lib/stripe/params/subscription_update_params.rb +4 -238
  72. data/lib/stripe/params/tax_id_create_params.rb +1 -4
  73. data/lib/stripe/params/tax_id_list_params.rb +1 -4
  74. data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
  75. data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
  76. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -97
  77. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  78. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  79. data/lib/stripe/params/transfer_create_params.rb +0 -4
  80. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  81. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  82. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  83. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  84. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  85. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  86. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  87. data/lib/stripe/params.rb +0 -169
  88. data/lib/stripe/request_options.rb +1 -3
  89. data/lib/stripe/resources/account.rb +1 -166
  90. data/lib/stripe/resources/account_session.rb +0 -81
  91. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
  92. data/lib/stripe/resources/billing/credit_grant.rb +0 -2
  93. data/lib/stripe/resources/billing_portal/session.rb +0 -2
  94. data/lib/stripe/resources/card.rb +0 -2
  95. data/lib/stripe/resources/cash_balance.rb +0 -2
  96. data/lib/stripe/resources/charge.rb +1 -234
  97. data/lib/stripe/resources/checkout/session.rb +4 -154
  98. data/lib/stripe/resources/confirmation_token.rb +0 -155
  99. data/lib/stripe/resources/coupon.rb +1 -26
  100. data/lib/stripe/resources/credit_note.rb +0 -2
  101. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  102. data/lib/stripe/resources/customer.rb +0 -2
  103. data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
  104. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
  105. data/lib/stripe/resources/customer_session.rb +0 -2
  106. data/lib/stripe/resources/discount.rb +0 -2
  107. data/lib/stripe/resources/dispute.rb +0 -22
  108. data/lib/stripe/resources/event.rb +1 -64
  109. data/lib/stripe/resources/financial_connections/account.rb +0 -27
  110. data/lib/stripe/resources/financial_connections/session.rb +1 -67
  111. data/lib/stripe/resources/identity/verification_session.rb +0 -2
  112. data/lib/stripe/resources/invoice.rb +1 -152
  113. data/lib/stripe/resources/invoice_item.rb +0 -4
  114. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  115. data/lib/stripe/resources/invoice_payment.rb +0 -2
  116. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  117. data/lib/stripe/resources/line_item.rb +1 -68
  118. data/lib/stripe/resources/mandate.rb +0 -71
  119. data/lib/stripe/resources/payment_intent.rb +4 -848
  120. data/lib/stripe/resources/payment_method.rb +0 -157
  121. data/lib/stripe/resources/payment_method_configuration.rb +0 -204
  122. data/lib/stripe/resources/price.rb +0 -20
  123. data/lib/stripe/resources/promotion_code.rb +0 -2
  124. data/lib/stripe/resources/quote.rb +2 -571
  125. data/lib/stripe/resources/refund.rb +0 -18
  126. data/lib/stripe/resources/setup_attempt.rb +0 -63
  127. data/lib/stripe/resources/setup_intent.rb +1 -132
  128. data/lib/stripe/resources/source.rb +0 -38
  129. data/lib/stripe/resources/subscription.rb +0 -232
  130. data/lib/stripe/resources/subscription_item.rb +1 -20
  131. data/lib/stripe/resources/subscription_schedule.rb +3 -198
  132. data/lib/stripe/resources/tax_id.rb +0 -4
  133. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  134. data/lib/stripe/resources/terminal/reader.rb +0 -8
  135. data/lib/stripe/resources/transfer.rb +0 -2
  136. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  137. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  138. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  139. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  140. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  141. data/lib/stripe/resources.rb +0 -116
  142. data/lib/stripe/services/billing_service.rb +1 -2
  143. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  144. data/lib/stripe/services/financial_connections_service.rb +1 -2
  145. data/lib/stripe/services/issuing_service.rb +1 -5
  146. data/lib/stripe/services/mandate_service.rb +0 -5
  147. data/lib/stripe/services/payment_intent_service.rb +0 -44
  148. data/lib/stripe/services/quote_service.rb +1 -49
  149. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  150. data/lib/stripe/services/subscription_service.rb +0 -11
  151. data/lib/stripe/services/tax_service.rb +1 -3
  152. data/lib/stripe/services/terminal_service.rb +1 -3
  153. data/lib/stripe/services/v1_services.rb +1 -10
  154. data/lib/stripe/services/v2/billing_service.rb +1 -5
  155. data/lib/stripe/services/v2/core_service.rb +1 -4
  156. data/lib/stripe/services/v2_services.rb +1 -4
  157. data/lib/stripe/services.rb +0 -61
  158. data/lib/stripe/stripe_client.rb +1 -1
  159. data/lib/stripe/stripe_configuration.rb +2 -9
  160. data/lib/stripe/stripe_object.rb +15 -9
  161. data/lib/stripe/util.rb +3 -9
  162. data/lib/stripe/version.rb +1 -1
  163. data/lib/stripe.rb +0 -53
  164. data/rbi/stripe.rbi +98094 -162674
  165. metadata +5 -351
  166. data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +0 -61
  167. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
  168. data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
  169. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
  170. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
  171. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
  172. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
  173. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
  174. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
  175. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  176. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  177. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
  178. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
  179. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
  180. data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
  181. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
  182. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
  183. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
  184. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
  185. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  186. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  187. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  188. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  189. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  190. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  191. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  192. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  193. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  194. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  195. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  196. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  197. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  198. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  203. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  205. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  210. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  220. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
  221. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
  222. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
  223. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
  224. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
  225. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  226. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
  227. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  228. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  229. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  230. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  231. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  232. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  233. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  234. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  235. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  236. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  237. data/lib/stripe/params/external_account_create_params.rb +0 -134
  238. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  239. data/lib/stripe/params/external_account_list_params.rb +0 -25
  240. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  241. data/lib/stripe/params/external_account_update_params.rb +0 -91
  242. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  243. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  244. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  245. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  246. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  247. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  248. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  249. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  250. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  251. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  252. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  253. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  254. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  255. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  257. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  258. data/lib/stripe/params/mandate_list_params.rb +0 -39
  259. data/lib/stripe/params/margin_create_params.rb +0 -25
  260. data/lib/stripe/params/margin_list_params.rb +0 -25
  261. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  262. data/lib/stripe/params/margin_update_params.rb +0 -22
  263. data/lib/stripe/params/order_cancel_params.rb +0 -13
  264. data/lib/stripe/params/order_create_params.rb +0 -1124
  265. data/lib/stripe/params/order_line_item_list_params.rb +0 -22
  266. data/lib/stripe/params/order_list_line_items_params.rb +0 -22
  267. data/lib/stripe/params/order_list_params.rb +0 -25
  268. data/lib/stripe/params/order_reopen_params.rb +0 -13
  269. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  270. data/lib/stripe/params/order_submit_params.rb +0 -16
  271. data/lib/stripe/params/order_update_params.rb +0 -1128
  272. data/lib/stripe/params/payment_attempt_record_list_params.rb +0 -19
  273. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +0 -13
  274. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +0 -22
  275. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
  276. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  277. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +0 -19
  278. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +0 -19
  279. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +0 -19
  280. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +0 -93
  281. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +0 -186
  282. data/lib/stripe/params/payment_record_report_payment_params.rb +0 -252
  283. data/lib/stripe/params/payment_record_retrieve_params.rb +0 -13
  284. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  285. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  286. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  287. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  288. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  290. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  291. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  292. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  293. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  294. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  295. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  296. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  297. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  298. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  299. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  300. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
  301. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
  302. data/lib/stripe/params/tax/association_find_params.rb +0 -18
  303. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  304. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  305. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +0 -43
  307. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  308. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  309. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  310. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  311. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  312. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  313. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  314. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  315. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  316. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  317. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  318. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  319. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
  320. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  321. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  322. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
  323. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  324. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  325. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  326. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  327. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  328. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  329. data/lib/stripe/params/v2/core/account_close_params.rb +0 -17
  330. data/lib/stripe/params/v2/core/account_create_params.rb +0 -2217
  331. data/lib/stripe/params/v2/core/account_link_create_params.rb +0 -101
  332. data/lib/stripe/params/v2/core/account_list_params.rb +0 -20
  333. data/lib/stripe/params/v2/core/account_retrieve_params.rb +0 -17
  334. data/lib/stripe/params/v2/core/account_update_params.rb +0 -2245
  335. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +0 -493
  336. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +0 -12
  337. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +0 -19
  338. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +0 -12
  339. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +0 -493
  340. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  341. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  342. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
  343. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  344. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  345. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  346. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
  347. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  348. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  349. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  350. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  351. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  352. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  353. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  354. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  355. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  356. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  357. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  358. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  359. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  360. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  361. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  362. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
  363. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  364. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  365. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  366. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  367. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  368. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
  369. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  370. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  371. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
  372. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  374. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  375. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  376. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  377. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  378. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  379. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  380. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  381. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  382. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  383. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  384. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  385. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  386. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  388. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  389. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +0 -10
  390. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
  391. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
  392. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
  393. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
  394. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  395. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  396. data/lib/stripe/resources/account_notice.rb +0 -94
  397. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  398. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  399. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  400. data/lib/stripe/resources/capital/financing_summary.rb +0 -79
  401. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  402. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  403. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  404. data/lib/stripe/resources/fx_quote.rb +0 -147
  405. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  406. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  407. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  408. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  409. data/lib/stripe/resources/margin.rb +0 -64
  410. data/lib/stripe/resources/order.rb +0 -987
  411. data/lib/stripe/resources/payment_attempt_record.rb +0 -2102
  412. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -128
  413. data/lib/stripe/resources/payment_record.rb +0 -2208
  414. data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
  415. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  416. data/lib/stripe/resources/quote_line.rb +0 -521
  417. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
  418. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
  419. data/lib/stripe/resources/tax/association.rb +0 -86
  420. data/lib/stripe/resources/tax/form.rb +0 -264
  421. data/lib/stripe/resources/terminal/onboarding_link.rb +0 -71
  422. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  423. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  424. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
  425. data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
  426. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
  427. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
  428. data/lib/stripe/resources/v2/billing/profile.rb +0 -46
  429. data/lib/stripe/resources/v2/core/account.rb +0 -3851
  430. data/lib/stripe/resources/v2/core/account_link.rb +0 -123
  431. data/lib/stripe/resources/v2/core/account_person.rb +0 -477
  432. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
  433. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -47
  434. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
  435. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
  436. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  437. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  438. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
  439. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
  440. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
  441. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  442. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  443. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  444. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
  445. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
  446. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
  447. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  448. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
  449. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  450. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
  451. data/lib/stripe/services/account_notice_service.rb +0 -39
  452. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  453. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  454. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  455. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  456. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  457. data/lib/stripe/services/capital_service.rb +0 -15
  458. data/lib/stripe/services/external_account_service.rb +0 -68
  459. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  460. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  461. data/lib/stripe/services/fx_quote_service.rb +0 -27
  462. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  463. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  464. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  465. data/lib/stripe/services/margin_service.rb +0 -50
  466. data/lib/stripe/services/order_line_item_service.rb +0 -17
  467. data/lib/stripe/services/order_service.rb +0 -78
  468. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  469. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +0 -17
  470. data/lib/stripe/services/payment_record_service.rb +0 -89
  471. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  472. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  473. data/lib/stripe/services/privacy_service.rb +0 -13
  474. data/lib/stripe/services/quote_line_service.rb +0 -17
  475. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  476. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  477. data/lib/stripe/services/tax/association_service.rb +0 -19
  478. data/lib/stripe/services/tax/form_service.rb +0 -37
  479. data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -19
  480. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  481. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  482. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  483. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  484. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
  485. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  486. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  487. data/lib/stripe/services/v2/core/account_link_service.rb +0 -21
  488. data/lib/stripe/services/v2/core/account_service.rb +0 -76
  489. data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -67
  490. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -74
  491. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -68
  492. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  493. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  494. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -59
  495. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  496. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  497. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  498. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  499. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
  500. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  501. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
  502. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  503. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  504. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  505. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  506. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  507. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  508. data/lib/stripe/services/v2/payment_service.rb +0 -15
  509. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
  510. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  511. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
@@ -5,44 +5,16 @@ module Stripe
5
5
  class SubscriptionCreateParams < Stripe::RequestParams
6
6
  class AddInvoiceItem < Stripe::RequestParams
7
7
  class Discount < Stripe::RequestParams
8
- class DiscountEnd < Stripe::RequestParams
9
- class Duration < Stripe::RequestParams
10
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
11
- attr_accessor :interval
12
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
13
- attr_accessor :interval_count
14
-
15
- def initialize(interval: nil, interval_count: nil)
16
- @interval = interval
17
- @interval_count = interval_count
18
- end
19
- end
20
- # Time span for the redeemed discount.
21
- attr_accessor :duration
22
- # A precise Unix timestamp for the discount to end. Must be in the future.
23
- attr_accessor :timestamp
24
- # The type of calculation made to determine when the discount ends.
25
- attr_accessor :type
26
-
27
- def initialize(duration: nil, timestamp: nil, type: nil)
28
- @duration = duration
29
- @timestamp = timestamp
30
- @type = type
31
- end
32
- end
33
8
  # ID of the coupon to create a new discount for.
34
9
  attr_accessor :coupon
35
10
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
36
11
  attr_accessor :discount
37
- # Details to determine how long the discount should be applied for.
38
- attr_accessor :discount_end
39
12
  # ID of the promotion code to create a new discount for.
40
13
  attr_accessor :promotion_code
41
14
 
42
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
15
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
43
16
  @coupon = coupon
44
17
  @discount = discount
45
- @discount_end = discount_end
46
18
  @promotion_code = promotion_code
47
19
  end
48
20
  end
@@ -206,58 +178,6 @@ module Stripe
206
178
  end
207
179
  end
208
180
 
209
- class BillingSchedule < Stripe::RequestParams
210
- class AppliesTo < Stripe::RequestParams
211
- # The ID of the price object.
212
- attr_accessor :price
213
- # Controls which subscription items the billing schedule applies to.
214
- attr_accessor :type
215
-
216
- def initialize(price: nil, type: nil)
217
- @price = price
218
- @type = type
219
- end
220
- end
221
-
222
- class BillUntil < Stripe::RequestParams
223
- class Duration < Stripe::RequestParams
224
- # Specifies billing duration. Either `day`, `week`, `month` or `year`.
225
- attr_accessor :interval
226
- # The multiplier applied to the interval.
227
- attr_accessor :interval_count
228
-
229
- def initialize(interval: nil, interval_count: nil)
230
- @interval = interval
231
- @interval_count = interval_count
232
- end
233
- end
234
- # Specifies the billing period.
235
- attr_accessor :duration
236
- # The end date of the billing schedule.
237
- attr_accessor :timestamp
238
- # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
239
- attr_accessor :type
240
-
241
- def initialize(duration: nil, timestamp: nil, type: nil)
242
- @duration = duration
243
- @timestamp = timestamp
244
- @type = type
245
- end
246
- end
247
- # Configure billing schedule differently for individual subscription items.
248
- attr_accessor :applies_to
249
- # The end date for the billing schedule.
250
- attr_accessor :bill_until
251
- # 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.
252
- attr_accessor :key
253
-
254
- def initialize(applies_to: nil, bill_until: nil, key: nil)
255
- @applies_to = applies_to
256
- @bill_until = bill_until
257
- @key = key
258
- end
259
- end
260
-
261
181
  class BillingThresholds < Stripe::RequestParams
262
182
  # Monetary threshold that triggers the subscription to advance to a new billing period
263
183
  attr_accessor :amount_gte
@@ -271,44 +191,16 @@ module Stripe
271
191
  end
272
192
 
273
193
  class Discount < Stripe::RequestParams
274
- class DiscountEnd < Stripe::RequestParams
275
- class Duration < Stripe::RequestParams
276
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
277
- attr_accessor :interval
278
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
279
- attr_accessor :interval_count
280
-
281
- def initialize(interval: nil, interval_count: nil)
282
- @interval = interval
283
- @interval_count = interval_count
284
- end
285
- end
286
- # Time span for the redeemed discount.
287
- attr_accessor :duration
288
- # A precise Unix timestamp for the discount to end. Must be in the future.
289
- attr_accessor :timestamp
290
- # The type of calculation made to determine when the discount ends.
291
- attr_accessor :type
292
-
293
- def initialize(duration: nil, timestamp: nil, type: nil)
294
- @duration = duration
295
- @timestamp = timestamp
296
- @type = type
297
- end
298
- end
299
194
  # ID of the coupon to create a new discount for.
300
195
  attr_accessor :coupon
301
196
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
302
197
  attr_accessor :discount
303
- # Details to determine how long the discount should be applied for.
304
- attr_accessor :discount_end
305
198
  # ID of the promotion code to create a new discount for.
306
199
  attr_accessor :promotion_code
307
200
 
308
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
201
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
309
202
  @coupon = coupon
310
203
  @discount = discount
311
- @discount_end = discount_end
312
204
  @promotion_code = promotion_code
313
205
  end
314
206
  end
@@ -347,44 +239,16 @@ module Stripe
347
239
  end
348
240
 
349
241
  class Discount < Stripe::RequestParams
350
- class DiscountEnd < Stripe::RequestParams
351
- class Duration < Stripe::RequestParams
352
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
353
- attr_accessor :interval
354
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
355
- attr_accessor :interval_count
356
-
357
- def initialize(interval: nil, interval_count: nil)
358
- @interval = interval
359
- @interval_count = interval_count
360
- end
361
- end
362
- # Time span for the redeemed discount.
363
- attr_accessor :duration
364
- # A precise Unix timestamp for the discount to end. Must be in the future.
365
- attr_accessor :timestamp
366
- # The type of calculation made to determine when the discount ends.
367
- attr_accessor :type
368
-
369
- def initialize(duration: nil, timestamp: nil, type: nil)
370
- @duration = duration
371
- @timestamp = timestamp
372
- @type = type
373
- end
374
- end
375
242
  # ID of the coupon to create a new discount for.
376
243
  attr_accessor :coupon
377
244
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
378
245
  attr_accessor :discount
379
- # Details to determine how long the discount should be applied for.
380
- attr_accessor :discount_end
381
246
  # ID of the promotion code to create a new discount for.
382
247
  attr_accessor :promotion_code
383
248
 
384
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
249
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
385
250
  @coupon = coupon
386
251
  @discount = discount
387
- @discount_end = discount_end
388
252
  @promotion_code = promotion_code
389
253
  end
390
254
  end
@@ -430,18 +294,6 @@ module Stripe
430
294
  @unit_amount_decimal = unit_amount_decimal
431
295
  end
432
296
  end
433
-
434
- class Trial < Stripe::RequestParams
435
- # List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
436
- attr_accessor :converts_to
437
- # Determines the type of trial for this item.
438
- attr_accessor :type
439
-
440
- def initialize(converts_to: nil, type: nil)
441
- @converts_to = converts_to
442
- @type = type
443
- end
444
- end
445
297
  # 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.
446
298
  attr_accessor :billing_thresholds
447
299
  # The coupons to redeem into discounts for the subscription item.
@@ -458,8 +310,6 @@ module Stripe
458
310
  attr_accessor :quantity
459
311
  # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
460
312
  attr_accessor :tax_rates
461
- # Define options to configure the trial on the subscription item.
462
- attr_accessor :trial
463
313
 
464
314
  def initialize(
465
315
  billing_thresholds: nil,
@@ -469,8 +319,7 @@ module Stripe
469
319
  price: nil,
470
320
  price_data: nil,
471
321
  quantity: nil,
472
- tax_rates: nil,
473
- trial: nil
322
+ tax_rates: nil
474
323
  )
475
324
  @billing_thresholds = billing_thresholds
476
325
  @discounts = discounts
@@ -480,7 +329,6 @@ module Stripe
480
329
  @price_data = price_data
481
330
  @quantity = quantity
482
331
  @tax_rates = tax_rates
483
- @trial = trial
484
332
  end
485
333
  end
486
334
 
@@ -575,79 +423,17 @@ module Stripe
575
423
  end
576
424
  end
577
425
 
578
- class IdBankTransfer < Stripe::RequestParams; end
579
426
  class Konbini < Stripe::RequestParams; end
580
-
581
- class Pix < Stripe::RequestParams
582
- class MandateOptions < Stripe::RequestParams
583
- # Amount to be charged for future payments. If not provided, defaults to 40000.
584
- attr_accessor :amount
585
- # Determines if the amount includes the IOF tax. Defaults to `never`.
586
- attr_accessor :amount_includes_iof
587
- # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled.
588
- attr_accessor :end_date
589
- # Schedule at which the future payments will be charged. Defaults to `weekly`.
590
- attr_accessor :payment_schedule
591
-
592
- def initialize(
593
- amount: nil,
594
- amount_includes_iof: nil,
595
- end_date: nil,
596
- payment_schedule: nil
597
- )
598
- @amount = amount
599
- @amount_includes_iof = amount_includes_iof
600
- @end_date = end_date
601
- @payment_schedule = payment_schedule
602
- end
603
- end
604
- # Configuration options for setting up a mandate
605
- attr_accessor :mandate_options
606
-
607
- def initialize(mandate_options: nil)
608
- @mandate_options = mandate_options
609
- end
610
- end
611
-
612
427
  class SepaDebit < Stripe::RequestParams; end
613
428
 
614
- class Upi < Stripe::RequestParams
615
- class MandateOptions < Stripe::RequestParams
616
- # Amount to be charged for future payments.
617
- attr_accessor :amount
618
- # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
619
- attr_accessor :amount_type
620
- # A description of the mandate or subscription that is meant to be displayed to the customer.
621
- attr_accessor :description
622
- # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
623
- attr_accessor :end_date
624
-
625
- def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
626
- @amount = amount
627
- @amount_type = amount_type
628
- @description = description
629
- @end_date = end_date
630
- end
631
- end
632
- # Configuration options for setting up an eMandate
633
- attr_accessor :mandate_options
634
-
635
- def initialize(mandate_options: nil)
636
- @mandate_options = mandate_options
637
- end
638
- end
639
-
640
429
  class UsBankAccount < Stripe::RequestParams
641
430
  class FinancialConnections < Stripe::RequestParams
642
431
  class Filters < Stripe::RequestParams
643
432
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
644
433
  attr_accessor :account_subcategories
645
- # ID of the institution to use to filter for selectable accounts.
646
- attr_accessor :institution
647
434
 
648
- def initialize(account_subcategories: nil, institution: nil)
435
+ def initialize(account_subcategories: nil)
649
436
  @account_subcategories = account_subcategories
650
- @institution = institution
651
437
  end
652
438
  end
653
439
  # Provide filters for the linked accounts that the customer can select for the payment method.
@@ -681,16 +467,10 @@ module Stripe
681
467
  attr_accessor :card
682
468
  # This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
683
469
  attr_accessor :customer_balance
684
- # This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
685
- attr_accessor :id_bank_transfer
686
470
  # This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
687
471
  attr_accessor :konbini
688
- # This sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
689
- attr_accessor :pix
690
472
  # This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
691
473
  attr_accessor :sepa_debit
692
- # This sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
693
- attr_accessor :upi
694
474
  # This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
695
475
  attr_accessor :us_bank_account
696
476
 
@@ -699,22 +479,16 @@ module Stripe
699
479
  bancontact: nil,
700
480
  card: nil,
701
481
  customer_balance: nil,
702
- id_bank_transfer: nil,
703
482
  konbini: nil,
704
- pix: nil,
705
483
  sepa_debit: nil,
706
- upi: nil,
707
484
  us_bank_account: nil
708
485
  )
709
486
  @acss_debit = acss_debit
710
487
  @bancontact = bancontact
711
488
  @card = card
712
489
  @customer_balance = customer_balance
713
- @id_bank_transfer = id_bank_transfer
714
490
  @konbini = konbini
715
- @pix = pix
716
491
  @sepa_debit = sepa_debit
717
- @upi = upi
718
492
  @us_bank_account = us_bank_account
719
493
  end
720
494
  end
@@ -748,18 +522,6 @@ module Stripe
748
522
  end
749
523
  end
750
524
 
751
- class Prebilling < Stripe::RequestParams
752
- # This is used to determine the number of billing cycles to prebill.
753
- attr_accessor :iterations
754
- # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
755
- attr_accessor :update_behavior
756
-
757
- def initialize(iterations: nil, update_behavior: nil)
758
- @iterations = iterations
759
- @update_behavior = update_behavior
760
- end
761
- end
762
-
763
525
  class TransferData < Stripe::RequestParams
764
526
  # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
765
527
  attr_accessor :amount_percent
@@ -796,16 +558,12 @@ module Stripe
796
558
  attr_accessor :automatic_tax
797
559
  # 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.
798
560
  attr_accessor :backdate_start_date
799
- # 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.
800
- attr_accessor :billing_cadence
801
561
  # A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/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.
802
562
  attr_accessor :billing_cycle_anchor
803
563
  # 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.
804
564
  attr_accessor :billing_cycle_anchor_config
805
565
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
806
566
  attr_accessor :billing_mode
807
- # Sets the billing schedules for the subscription.
808
- attr_accessor :billing_schedules
809
567
  # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
810
568
  attr_accessor :billing_thresholds
811
569
  # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
@@ -818,8 +576,6 @@ module Stripe
818
576
  attr_accessor :currency
819
577
  # The identifier of the customer to subscribe.
820
578
  attr_accessor :customer
821
- # The identifier of the account to subscribe.
822
- attr_accessor :customer_account
823
579
  # Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
824
580
  attr_accessor :days_until_due
825
581
  # ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
@@ -860,8 +616,6 @@ module Stripe
860
616
  attr_accessor :payment_settings
861
617
  # Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
862
618
  attr_accessor :pending_invoice_item_interval
863
- # If specified, the invoicing for the given billing cycle iterations will be processed now.
864
- attr_accessor :prebilling
865
619
  # Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
866
620
  attr_accessor :proration_behavior
867
621
  # If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
@@ -880,18 +634,15 @@ module Stripe
880
634
  application_fee_percent: nil,
881
635
  automatic_tax: nil,
882
636
  backdate_start_date: nil,
883
- billing_cadence: nil,
884
637
  billing_cycle_anchor: nil,
885
638
  billing_cycle_anchor_config: nil,
886
639
  billing_mode: nil,
887
- billing_schedules: nil,
888
640
  billing_thresholds: nil,
889
641
  cancel_at: nil,
890
642
  cancel_at_period_end: nil,
891
643
  collection_method: nil,
892
644
  currency: nil,
893
645
  customer: nil,
894
- customer_account: nil,
895
646
  days_until_due: nil,
896
647
  default_payment_method: nil,
897
648
  default_source: nil,
@@ -907,7 +658,6 @@ module Stripe
907
658
  payment_behavior: nil,
908
659
  payment_settings: nil,
909
660
  pending_invoice_item_interval: nil,
910
- prebilling: nil,
911
661
  proration_behavior: nil,
912
662
  transfer_data: nil,
913
663
  trial_end: nil,
@@ -919,18 +669,15 @@ module Stripe
919
669
  @application_fee_percent = application_fee_percent
920
670
  @automatic_tax = automatic_tax
921
671
  @backdate_start_date = backdate_start_date
922
- @billing_cadence = billing_cadence
923
672
  @billing_cycle_anchor = billing_cycle_anchor
924
673
  @billing_cycle_anchor_config = billing_cycle_anchor_config
925
674
  @billing_mode = billing_mode
926
- @billing_schedules = billing_schedules
927
675
  @billing_thresholds = billing_thresholds
928
676
  @cancel_at = cancel_at
929
677
  @cancel_at_period_end = cancel_at_period_end
930
678
  @collection_method = collection_method
931
679
  @currency = currency
932
680
  @customer = customer
933
- @customer_account = customer_account
934
681
  @days_until_due = days_until_due
935
682
  @default_payment_method = default_payment_method
936
683
  @default_source = default_source
@@ -946,7 +693,6 @@ module Stripe
946
693
  @payment_behavior = payment_behavior
947
694
  @payment_settings = payment_settings
948
695
  @pending_invoice_item_interval = pending_invoice_item_interval
949
- @prebilling = prebilling
950
696
  @proration_behavior = proration_behavior
951
697
  @transfer_data = transfer_data
952
698
  @trial_end = trial_end
@@ -13,44 +13,16 @@ module Stripe
13
13
  end
14
14
 
15
15
  class Discount < Stripe::RequestParams
16
- class DiscountEnd < Stripe::RequestParams
17
- class Duration < Stripe::RequestParams
18
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
19
- attr_accessor :interval
20
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
21
- attr_accessor :interval_count
22
-
23
- def initialize(interval: nil, interval_count: nil)
24
- @interval = interval
25
- @interval_count = interval_count
26
- end
27
- end
28
- # Time span for the redeemed discount.
29
- attr_accessor :duration
30
- # A precise Unix timestamp for the discount to end. Must be in the future.
31
- attr_accessor :timestamp
32
- # The type of calculation made to determine when the discount ends.
33
- attr_accessor :type
34
-
35
- def initialize(duration: nil, timestamp: nil, type: nil)
36
- @duration = duration
37
- @timestamp = timestamp
38
- @type = type
39
- end
40
- end
41
16
  # ID of the coupon to create a new discount for.
42
17
  attr_accessor :coupon
43
18
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
44
19
  attr_accessor :discount
45
- # Details to determine how long the discount should be applied for.
46
- attr_accessor :discount_end
47
20
  # ID of the promotion code to create a new discount for.
48
21
  attr_accessor :promotion_code
49
22
 
50
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
23
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
51
24
  @coupon = coupon
52
25
  @discount = discount
53
- @discount_end = discount_end
54
26
  @promotion_code = promotion_code
55
27
  end
56
28
  end
@@ -96,18 +68,6 @@ module Stripe
96
68
  @unit_amount_decimal = unit_amount_decimal
97
69
  end
98
70
  end
99
-
100
- class Trial < Stripe::RequestParams
101
- # List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
102
- attr_accessor :converts_to
103
- # Determines the type of trial for this item.
104
- attr_accessor :type
105
-
106
- def initialize(converts_to: nil, type: nil)
107
- @converts_to = converts_to
108
- @type = type
109
- end
110
- end
111
71
  # 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.
112
72
  attr_accessor :billing_thresholds
113
73
  # The coupons to redeem into discounts for the subscription item.
@@ -140,8 +100,6 @@ module Stripe
140
100
  attr_accessor :subscription
141
101
  # A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
142
102
  attr_accessor :tax_rates
143
- # Options that configure the trial on the subscription item.
144
- attr_accessor :trial
145
103
 
146
104
  def initialize(
147
105
  billing_thresholds: nil,
@@ -156,8 +114,7 @@ module Stripe
156
114
  proration_date: nil,
157
115
  quantity: nil,
158
116
  subscription: nil,
159
- tax_rates: nil,
160
- trial: nil
117
+ tax_rates: nil
161
118
  )
162
119
  @billing_thresholds = billing_thresholds
163
120
  @discounts = discounts
@@ -172,7 +129,6 @@ module Stripe
172
129
  @quantity = quantity
173
130
  @subscription = subscription
174
131
  @tax_rates = tax_rates
175
- @trial = trial
176
132
  end
177
133
  end
178
134
  end
@@ -13,44 +13,16 @@ module Stripe
13
13
  end
14
14
 
15
15
  class Discount < Stripe::RequestParams
16
- class DiscountEnd < Stripe::RequestParams
17
- class Duration < Stripe::RequestParams
18
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
19
- attr_accessor :interval
20
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
21
- attr_accessor :interval_count
22
-
23
- def initialize(interval: nil, interval_count: nil)
24
- @interval = interval
25
- @interval_count = interval_count
26
- end
27
- end
28
- # Time span for the redeemed discount.
29
- attr_accessor :duration
30
- # A precise Unix timestamp for the discount to end. Must be in the future.
31
- attr_accessor :timestamp
32
- # The type of calculation made to determine when the discount ends.
33
- attr_accessor :type
34
-
35
- def initialize(duration: nil, timestamp: nil, type: nil)
36
- @duration = duration
37
- @timestamp = timestamp
38
- @type = type
39
- end
40
- end
41
16
  # ID of the coupon to create a new discount for.
42
17
  attr_accessor :coupon
43
18
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
44
19
  attr_accessor :discount
45
- # Details to determine how long the discount should be applied for.
46
- attr_accessor :discount_end
47
20
  # ID of the promotion code to create a new discount for.
48
21
  attr_accessor :promotion_code
49
22
 
50
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
23
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
51
24
  @coupon = coupon
52
25
  @discount = discount
53
- @discount_end = discount_end
54
26
  @promotion_code = promotion_code
55
27
  end
56
28
  end
@@ -77,8 +77,6 @@ module Stripe
77
77
  attr_accessor :current_period_start
78
78
  # The ID of the customer whose subscriptions will be retrieved.
79
79
  attr_accessor :customer
80
- # The ID of the account whose subscriptions will be retrieved.
81
- attr_accessor :customer_account
82
80
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
83
81
  attr_accessor :ending_before
84
82
  # Specifies which fields in the response should be expanded.
@@ -103,7 +101,6 @@ module Stripe
103
101
  current_period_end: nil,
104
102
  current_period_start: nil,
105
103
  customer: nil,
106
- customer_account: nil,
107
104
  ending_before: nil,
108
105
  expand: nil,
109
106
  limit: nil,
@@ -119,7 +116,6 @@ module Stripe
119
116
  @current_period_end = current_period_end
120
117
  @current_period_start = current_period_start
121
118
  @customer = customer
122
- @customer_account = customer_account
123
119
  @ending_before = ending_before
124
120
  @expand = expand
125
121
  @limit = limit