stripe 19.3.0.pre.beta.1 → 19.3.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 (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -37
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -87
  5. data/lib/stripe/event_types.rb +0 -228
  6. data/lib/stripe/events/unknown_event_notification.rb +0 -1
  7. data/lib/stripe/object_types.rb +0 -61
  8. data/lib/stripe/params/account_create_params.rb +2 -375
  9. data/lib/stripe/params/account_session_create_params.rb +1 -226
  10. data/lib/stripe/params/account_update_params.rb +1 -337
  11. data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
  12. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
  13. data/lib/stripe/params/billing/credit_grant_create_params.rb +1 -1
  14. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  15. data/lib/stripe/params/charge_update_params.rb +0 -1646
  16. data/lib/stripe/params/checkout/session_create_params.rb +50 -128
  17. data/lib/stripe/params/checkout/session_update_params.rb +1 -176
  18. data/lib/stripe/params/confirmation_token_create_params.rb +1 -79
  19. data/lib/stripe/params/coupon_create_params.rb +1 -17
  20. data/lib/stripe/params/credit_note_create_params.rb +1 -1
  21. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
  22. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
  23. data/lib/stripe/params/credit_note_preview_params.rb +1 -1
  24. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  25. data/lib/stripe/params/dispute_update_params.rb +18 -11
  26. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
  27. data/lib/stripe/params/invoice_add_lines_params.rb +2 -49
  28. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  29. data/lib/stripe/params/invoice_create_params.rb +2 -70
  30. data/lib/stripe/params/invoice_create_preview_params.rb +10 -791
  31. data/lib/stripe/params/invoice_item_create_params.rb +1 -33
  32. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  33. data/lib/stripe/params/invoice_line_item_update_params.rb +2 -49
  34. data/lib/stripe/params/invoice_update_lines_params.rb +2 -49
  35. data/lib/stripe/params/invoice_update_params.rb +2 -70
  36. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  37. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  38. data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
  39. data/lib/stripe/params/payment_intent_confirm_params.rb +116 -3016
  40. data/lib/stripe/params/payment_intent_create_params.rb +128 -3028
  41. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
  42. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  43. data/lib/stripe/params/payment_intent_update_params.rb +86 -3017
  44. data/lib/stripe/params/payment_link_create_params.rb +1 -16
  45. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
  46. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
  47. data/lib/stripe/params/payment_method_create_params.rb +1 -75
  48. data/lib/stripe/params/plan_create_params.rb +0 -15
  49. data/lib/stripe/params/price_create_params.rb +0 -15
  50. data/lib/stripe/params/price_update_params.rb +0 -19
  51. data/lib/stripe/params/product_create_params.rb +0 -16
  52. data/lib/stripe/params/product_update_params.rb +0 -16
  53. data/lib/stripe/params/quote_create_params.rb +3 -809
  54. data/lib/stripe/params/quote_list_params.rb +0 -4
  55. data/lib/stripe/params/quote_update_params.rb +4 -817
  56. data/lib/stripe/params/setup_intent_confirm_params.rb +4 -109
  57. data/lib/stripe/params/setup_intent_create_params.rb +4 -109
  58. data/lib/stripe/params/setup_intent_update_params.rb +4 -109
  59. data/lib/stripe/params/subscription_create_params.rb +34 -171
  60. data/lib/stripe/params/subscription_item_create_params.rb +2 -62
  61. data/lib/stripe/params/subscription_item_update_params.rb +1 -45
  62. data/lib/stripe/params/subscription_resume_params.rb +0 -4
  63. data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
  64. data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
  65. data/lib/stripe/params/subscription_update_params.rb +34 -155
  66. data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
  67. data/lib/stripe/params/tax/registration_create_params.rb +0 -104
  68. data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
  69. data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
  70. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +1 -79
  71. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  72. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  73. data/lib/stripe/params/topup_create_params.rb +24 -0
  74. data/lib/stripe/params/transfer_create_params.rb +0 -4
  75. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  76. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  77. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  78. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  79. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
  80. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  81. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  82. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  83. data/lib/stripe/params/v2/core/account_create_params.rb +18 -282
  84. data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -13
  85. data/lib/stripe/params/v2/core/account_update_params.rb +25 -282
  86. data/lib/stripe/params.rb +0 -426
  87. data/lib/stripe/resources/account.rb +1 -259
  88. data/lib/stripe/resources/account_session.rb +0 -81
  89. data/lib/stripe/resources/balance.rb +0 -83
  90. data/lib/stripe/resources/balance_transaction.rb +3 -3
  91. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  92. data/lib/stripe/resources/card.rb +0 -2
  93. data/lib/stripe/resources/charge.rb +7 -211
  94. data/lib/stripe/resources/checkout/session.rb +53 -75
  95. data/lib/stripe/resources/confirmation_token.rb +9 -131
  96. data/lib/stripe/resources/coupon.rb +1 -26
  97. data/lib/stripe/resources/credit_note.rb +2 -0
  98. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  99. data/lib/stripe/resources/customer_session.rb +0 -36
  100. data/lib/stripe/resources/dispute.rb +32 -22
  101. data/lib/stripe/resources/event.rb +1 -64
  102. data/lib/stripe/resources/financial_connections/account.rb +8 -33
  103. data/lib/stripe/resources/financial_connections/session.rb +1 -125
  104. data/lib/stripe/resources/invoice.rb +1 -117
  105. data/lib/stripe/resources/invoice_item.rb +0 -2
  106. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  107. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  108. data/lib/stripe/resources/line_item.rb +0 -42
  109. data/lib/stripe/resources/mandate.rb +0 -12
  110. data/lib/stripe/resources/payment_attempt_record.rb +3 -179
  111. data/lib/stripe/resources/payment_intent.rb +47 -1568
  112. data/lib/stripe/resources/payment_method.rb +9 -135
  113. data/lib/stripe/resources/payment_method_configuration.rb +0 -170
  114. data/lib/stripe/resources/payment_record.rb +3 -179
  115. data/lib/stripe/resources/price.rb +0 -20
  116. data/lib/stripe/resources/product.rb +0 -18
  117. data/lib/stripe/resources/quote.rb +2 -569
  118. data/lib/stripe/resources/refund.rb +0 -18
  119. data/lib/stripe/resources/reserve/hold.rb +18 -8
  120. data/lib/stripe/resources/reserve/release.rb +0 -12
  121. data/lib/stripe/resources/setup_attempt.rb +16 -35
  122. data/lib/stripe/resources/setup_intent.rb +1 -22
  123. data/lib/stripe/resources/source.rb +0 -38
  124. data/lib/stripe/resources/subscription.rb +23 -169
  125. data/lib/stripe/resources/subscription_item.rb +1 -41
  126. data/lib/stripe/resources/subscription_schedule.rb +3 -198
  127. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  128. data/lib/stripe/resources/tax/registration.rb +0 -128
  129. data/lib/stripe/resources/tax_code.rb +1 -15
  130. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  131. data/lib/stripe/resources/terminal/reader.rb +0 -8
  132. data/lib/stripe/resources/transfer.rb +0 -2
  133. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  134. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  135. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
  136. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  137. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  138. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  139. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +2 -0
  140. data/lib/stripe/resources/v2/core/account.rb +155 -717
  141. data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
  142. data/lib/stripe/resources.rb +0 -417
  143. data/lib/stripe/services/account_service.rb +0 -15
  144. data/lib/stripe/services/balance_transaction_service.rb +2 -2
  145. data/lib/stripe/services/billing_service.rb +1 -2
  146. data/lib/stripe/services/coupon_service.rb +0 -14
  147. data/lib/stripe/services/credit_note_service.rb +2 -0
  148. data/lib/stripe/services/customer_service.rb +0 -15
  149. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  150. data/lib/stripe/services/financial_connections_service.rb +1 -3
  151. data/lib/stripe/services/invoice_service.rb +0 -11
  152. data/lib/stripe/services/issuing_service.rb +1 -5
  153. data/lib/stripe/services/mandate_service.rb +0 -5
  154. data/lib/stripe/services/payment_intent_service.rb +0 -37
  155. data/lib/stripe/services/promotion_code_service.rb +0 -29
  156. data/lib/stripe/services/quote_service.rb +1 -49
  157. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  158. data/lib/stripe/services/subscription_service.rb +1 -57
  159. data/lib/stripe/services/tax_service.rb +1 -3
  160. data/lib/stripe/services/terminal_service.rb +1 -2
  161. data/lib/stripe/services/test_helpers_service.rb +1 -2
  162. data/lib/stripe/services/v1_services.rb +1 -11
  163. data/lib/stripe/services/v2/billing_service.rb +1 -5
  164. data/lib/stripe/services/v2/core_service.rb +1 -3
  165. data/lib/stripe/services/v2_services.rb +1 -8
  166. data/lib/stripe/services.rb +0 -209
  167. data/lib/stripe/stripe_client.rb +1 -8
  168. data/lib/stripe/stripe_configuration.rb +1 -3
  169. data/lib/stripe/stripe_object.rb +1 -1
  170. data/lib/stripe/util.rb +1 -7
  171. data/lib/stripe/version.rb +1 -1
  172. data/lib/stripe.rb +0 -54
  173. data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -3
  174. data/rbi/stripe/stripe_client.rbi +0 -13
  175. data/rbi/stripe.rbi +52694 -118800
  176. metadata +7 -382
  177. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  178. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  179. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  180. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  181. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  182. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  183. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  184. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  185. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  186. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  187. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  188. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
  189. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  190. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
  191. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
  192. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
  193. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
  194. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
  195. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
  196. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
  197. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  198. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  203. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  205. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  220. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
  221. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  222. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  223. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  224. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  225. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  226. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  227. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  228. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  229. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  230. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  231. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
  232. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  233. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
  234. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
  235. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
  236. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
  237. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  238. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  239. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  240. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  241. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  242. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  243. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  244. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  245. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  246. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  247. data/lib/stripe/params/external_account_create_params.rb +0 -134
  248. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  249. data/lib/stripe/params/external_account_list_params.rb +0 -25
  250. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  251. data/lib/stripe/params/external_account_update_params.rb +0 -91
  252. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  253. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  254. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  255. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  257. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  258. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  259. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  260. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  261. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  262. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  263. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  264. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  265. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  266. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  267. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  269. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  270. data/lib/stripe/params/mandate_list_params.rb +0 -39
  271. data/lib/stripe/params/margin_create_params.rb +0 -25
  272. data/lib/stripe/params/margin_list_params.rb +0 -25
  273. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  274. data/lib/stripe/params/margin_update_params.rb +0 -22
  275. data/lib/stripe/params/order_create_params.rb +0 -2083
  276. data/lib/stripe/params/order_list_params.rb +0 -25
  277. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  278. data/lib/stripe/params/order_submit_params.rb +0 -16
  279. data/lib/stripe/params/order_update_params.rb +0 -2087
  280. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  281. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  282. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  283. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  284. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  285. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  286. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  287. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  288. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  290. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
  291. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  292. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  293. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  294. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  295. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  296. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  297. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  298. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  299. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  300. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  301. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  302. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  303. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  304. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  305. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  307. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
  308. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  309. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  310. data/lib/stripe/params/subscription_pause_params.rb +0 -50
  311. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  312. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  313. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  314. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  315. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  316. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  317. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  318. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  319. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  320. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  321. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  322. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  323. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  324. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  325. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  326. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  327. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  328. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  329. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  330. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  331. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  332. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
  333. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  334. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  335. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
  336. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  337. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  338. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  339. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  340. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  341. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  342. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
  343. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
  344. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
  345. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  346. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  347. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
  348. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  349. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  350. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  351. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  352. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  353. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
  354. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  355. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  356. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  357. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  358. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
  359. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
  360. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
  361. data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
  362. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
  363. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
  364. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
  365. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
  366. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
  367. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  368. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  369. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  370. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  371. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  372. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  374. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  375. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  376. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  377. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  378. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  379. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  380. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  381. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
  382. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  383. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  384. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  385. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  386. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
  388. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  389. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  390. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -88
  391. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  392. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  393. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  394. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  395. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  396. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  397. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  398. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  399. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  400. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  401. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  402. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  403. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  404. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  405. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  406. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  407. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  408. data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
  409. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
  410. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
  411. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
  412. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
  413. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
  414. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
  415. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  416. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  417. data/lib/stripe/resources/account_notice.rb +0 -94
  418. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  419. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  420. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  421. data/lib/stripe/resources/capital/financing_summary.rb +0 -82
  422. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  423. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  424. data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
  425. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  426. data/lib/stripe/resources/fx_quote.rb +0 -147
  427. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  428. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  429. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  430. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  431. data/lib/stripe/resources/margin.rb +0 -64
  432. data/lib/stripe/resources/order.rb +0 -927
  433. data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
  434. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  435. data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -106
  436. data/lib/stripe/resources/quote_line.rb +0 -525
  437. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1183
  438. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -736
  439. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1792
  440. data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
  441. data/lib/stripe/resources/tax/form.rb +0 -264
  442. data/lib/stripe/resources/tax/location.rb +0 -72
  443. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  444. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  445. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
  446. data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
  447. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
  448. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
  449. data/lib/stripe/resources/v2/billing/profile.rb +0 -47
  450. data/lib/stripe/resources/v2/core/batch_job.rb +0 -488
  451. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
  452. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
  453. data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
  454. data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
  455. data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
  456. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
  457. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
  458. data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
  459. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  460. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  461. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
  462. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
  463. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
  464. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  465. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  466. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  467. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
  468. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
  469. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
  470. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  471. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
  472. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  473. data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
  474. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
  475. data/lib/stripe/services/account_notice_service.rb +0 -39
  476. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  477. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  478. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  479. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  480. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  481. data/lib/stripe/services/capital_service.rb +0 -15
  482. data/lib/stripe/services/external_account_service.rb +0 -68
  483. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  484. data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
  485. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  486. data/lib/stripe/services/fx_quote_service.rb +0 -27
  487. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  488. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  489. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  490. data/lib/stripe/services/margin_service.rb +0 -50
  491. data/lib/stripe/services/order_service.rb +0 -53
  492. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  493. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  494. data/lib/stripe/services/privacy_service.rb +0 -13
  495. data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
  496. data/lib/stripe/services/product_catalog_service.rb +0 -13
  497. data/lib/stripe/services/quote_line_service.rb +0 -17
  498. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  499. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  500. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  501. data/lib/stripe/services/reserve/plan_service.rb +0 -19
  502. data/lib/stripe/services/reserve/release_service.rb +0 -30
  503. data/lib/stripe/services/reserve_service.rb +0 -15
  504. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  505. data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
  506. data/lib/stripe/services/shared_payment_service.rb +0 -14
  507. data/lib/stripe/services/tax/form_service.rb +0 -37
  508. data/lib/stripe/services/tax/location_service.rb +0 -45
  509. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  510. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  511. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  512. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  513. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  514. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  515. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
  516. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  517. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  518. data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
  519. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  520. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  521. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  522. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
  523. data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
  524. data/lib/stripe/services/v2/data_service.rb +0 -15
  525. data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
  526. data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
  527. data/lib/stripe/services/v2/extend_service.rb +0 -16
  528. data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
  529. data/lib/stripe/services/v2/iam_service.rb +0 -15
  530. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  531. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  532. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  533. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  534. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  535. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  536. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
  537. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  538. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -66
  539. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  540. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  541. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  542. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  543. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  544. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  545. data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
  546. data/lib/stripe/services/v2/network_service.rb +0 -15
  547. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
  548. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
  549. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  550. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
  551. data/lib/stripe/stripe_event_notification_handler.rb +0 -582
@@ -125,44 +125,16 @@ module Stripe
125
125
  class Phase < ::Stripe::RequestParams
126
126
  class AddInvoiceItem < ::Stripe::RequestParams
127
127
  class Discount < ::Stripe::RequestParams
128
- class DiscountEnd < ::Stripe::RequestParams
129
- class Duration < ::Stripe::RequestParams
130
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
131
- attr_accessor :interval
132
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
133
- attr_accessor :interval_count
134
-
135
- def initialize(interval: nil, interval_count: nil)
136
- @interval = interval
137
- @interval_count = interval_count
138
- end
139
- end
140
- # Time span for the redeemed discount.
141
- attr_accessor :duration
142
- # A precise Unix timestamp for the discount to end. Must be in the future.
143
- attr_accessor :timestamp
144
- # The type of calculation made to determine when the discount ends.
145
- attr_accessor :type
146
-
147
- def initialize(duration: nil, timestamp: nil, type: nil)
148
- @duration = duration
149
- @timestamp = timestamp
150
- @type = type
151
- end
152
- end
153
128
  # ID of the coupon to create a new discount for.
154
129
  attr_accessor :coupon
155
130
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
156
131
  attr_accessor :discount
157
- # Details to determine how long the discount should be applied for.
158
- attr_accessor :discount_end
159
132
  # ID of the promotion code to create a new discount for.
160
133
  attr_accessor :promotion_code
161
134
 
162
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
135
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
163
136
  @coupon = coupon
164
137
  @discount = discount
165
- @discount_end = discount_end
166
138
  @promotion_code = promotion_code
167
139
  end
168
140
  end
@@ -312,44 +284,16 @@ module Stripe
312
284
  end
313
285
 
314
286
  class Discount < ::Stripe::RequestParams
315
- class DiscountEnd < ::Stripe::RequestParams
316
- class Duration < ::Stripe::RequestParams
317
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
318
- attr_accessor :interval
319
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
320
- attr_accessor :interval_count
321
-
322
- def initialize(interval: nil, interval_count: nil)
323
- @interval = interval
324
- @interval_count = interval_count
325
- end
326
- end
327
- # Time span for the redeemed discount.
328
- attr_accessor :duration
329
- # A precise Unix timestamp for the discount to end. Must be in the future.
330
- attr_accessor :timestamp
331
- # The type of calculation made to determine when the discount ends.
332
- attr_accessor :type
333
-
334
- def initialize(duration: nil, timestamp: nil, type: nil)
335
- @duration = duration
336
- @timestamp = timestamp
337
- @type = type
338
- end
339
- end
340
287
  # ID of the coupon to create a new discount for.
341
288
  attr_accessor :coupon
342
289
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
343
290
  attr_accessor :discount
344
- # Details to determine how long the discount should be applied for.
345
- attr_accessor :discount_end
346
291
  # ID of the promotion code to create a new discount for.
347
292
  attr_accessor :promotion_code
348
293
 
349
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
294
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
350
295
  @coupon = coupon
351
296
  @discount = discount
352
- @discount_end = discount_end
353
297
  @promotion_code = promotion_code
354
298
  end
355
299
  end
@@ -403,44 +347,16 @@ module Stripe
403
347
  end
404
348
 
405
349
  class Discount < ::Stripe::RequestParams
406
- class DiscountEnd < ::Stripe::RequestParams
407
- class Duration < ::Stripe::RequestParams
408
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
409
- attr_accessor :interval
410
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
411
- attr_accessor :interval_count
412
-
413
- def initialize(interval: nil, interval_count: nil)
414
- @interval = interval
415
- @interval_count = interval_count
416
- end
417
- end
418
- # Time span for the redeemed discount.
419
- attr_accessor :duration
420
- # A precise Unix timestamp for the discount to end. Must be in the future.
421
- attr_accessor :timestamp
422
- # The type of calculation made to determine when the discount ends.
423
- attr_accessor :type
424
-
425
- def initialize(duration: nil, timestamp: nil, type: nil)
426
- @duration = duration
427
- @timestamp = timestamp
428
- @type = type
429
- end
430
- end
431
350
  # ID of the coupon to create a new discount for.
432
351
  attr_accessor :coupon
433
352
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
434
353
  attr_accessor :discount
435
- # Details to determine how long the discount should be applied for.
436
- attr_accessor :discount_end
437
354
  # ID of the promotion code to create a new discount for.
438
355
  attr_accessor :promotion_code
439
356
 
440
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
357
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
441
358
  @coupon = coupon
442
359
  @discount = discount
443
- @discount_end = discount_end
444
360
  @promotion_code = promotion_code
445
361
  end
446
362
  end
@@ -490,18 +406,6 @@ module Stripe
490
406
  @field_encodings = { unit_amount_decimal: :decimal_string }
491
407
  end
492
408
  end
493
-
494
- class Trial < ::Stripe::RequestParams
495
- # 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.
496
- attr_accessor :converts_to
497
- # Determines the type of trial for this item.
498
- attr_accessor :type
499
-
500
- def initialize(converts_to: nil, type: nil)
501
- @converts_to = converts_to
502
- @type = type
503
- end
504
- end
505
409
  # 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.
506
410
  attr_accessor :billing_thresholds
507
411
  # The coupons to redeem into discounts for the subscription item.
@@ -518,10 +422,6 @@ module Stripe
518
422
  attr_accessor :quantity
519
423
  # A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
520
424
  attr_accessor :tax_rates
521
- # Options that configure the trial on the subscription item.
522
- attr_accessor :trial
523
- # The ID of the trial offer to apply to the configuration item.
524
- attr_accessor :trial_offer
525
425
 
526
426
  def initialize(
527
427
  billing_thresholds: nil,
@@ -531,9 +431,7 @@ module Stripe
531
431
  price: nil,
532
432
  price_data: nil,
533
433
  quantity: nil,
534
- tax_rates: nil,
535
- trial: nil,
536
- trial_offer: nil
434
+ tax_rates: nil
537
435
  )
538
436
  @billing_thresholds = billing_thresholds
539
437
  @discounts = discounts
@@ -543,8 +441,6 @@ module Stripe
543
441
  @price_data = price_data
544
442
  @quantity = quantity
545
443
  @tax_rates = tax_rates
546
- @trial = trial
547
- @trial_offer = trial_offer
548
444
  end
549
445
 
550
446
  def self.field_encodings
@@ -554,15 +450,6 @@ module Stripe
554
450
  end
555
451
  end
556
452
 
557
- class PauseCollection < ::Stripe::RequestParams
558
- # The payment collection behavior for this subscription while paused.
559
- attr_accessor :behavior
560
-
561
- def initialize(behavior: nil)
562
- @behavior = behavior
563
- end
564
- end
565
-
566
453
  class TransferData < ::Stripe::RequestParams
567
454
  # 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.
568
455
  attr_accessor :amount_percent
@@ -574,23 +461,6 @@ module Stripe
574
461
  @destination = destination
575
462
  end
576
463
  end
577
-
578
- class TrialSettings < ::Stripe::RequestParams
579
- class EndBehavior < ::Stripe::RequestParams
580
- # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
581
- attr_accessor :prorate_up_front
582
-
583
- def initialize(prorate_up_front: nil)
584
- @prorate_up_front = prorate_up_front
585
- end
586
- end
587
- # Defines how the subscription should behave when a trial ends.
588
- attr_accessor :end_behavior
589
-
590
- def initialize(end_behavior: nil)
591
- @end_behavior = end_behavior
592
- end
593
- end
594
464
  # A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
595
465
  attr_accessor :add_invoice_items
596
466
  # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
@@ -625,8 +495,6 @@ module Stripe
625
495
  attr_accessor :metadata
626
496
  # The account on behalf of which to charge, for each of the associated subscription's invoices.
627
497
  attr_accessor :on_behalf_of
628
- # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
629
- attr_accessor :pause_collection
630
498
  # Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
631
499
  attr_accessor :proration_behavior
632
500
  # The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
@@ -635,12 +503,8 @@ module Stripe
635
503
  attr_accessor :transfer_data
636
504
  # If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
637
505
  attr_accessor :trial
638
- # Specify trial behavior when crossing phase boundaries
639
- attr_accessor :trial_continuation
640
506
  # Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
641
507
  attr_accessor :trial_end
642
- # Settings related to subscription trials.
643
- attr_accessor :trial_settings
644
508
 
645
509
  def initialize(
646
510
  add_invoice_items: nil,
@@ -660,14 +524,11 @@ module Stripe
660
524
  items: nil,
661
525
  metadata: nil,
662
526
  on_behalf_of: nil,
663
- pause_collection: nil,
664
527
  proration_behavior: nil,
665
528
  start_date: nil,
666
529
  transfer_data: nil,
667
530
  trial: nil,
668
- trial_continuation: nil,
669
- trial_end: nil,
670
- trial_settings: nil
531
+ trial_end: nil
671
532
  )
672
533
  @add_invoice_items = add_invoice_items
673
534
  @application_fee_percent = application_fee_percent
@@ -686,14 +547,11 @@ module Stripe
686
547
  @items = items
687
548
  @metadata = metadata
688
549
  @on_behalf_of = on_behalf_of
689
- @pause_collection = pause_collection
690
550
  @proration_behavior = proration_behavior
691
551
  @start_date = start_date
692
552
  @transfer_data = transfer_data
693
553
  @trial = trial
694
- @trial_continuation = trial_continuation
695
554
  @trial_end = trial_end
696
- @trial_settings = trial_settings
697
555
  end
698
556
 
699
557
  def self.field_encodings
@@ -715,20 +573,6 @@ module Stripe
715
573
  }
716
574
  end
717
575
  end
718
-
719
- class Prebilling < ::Stripe::RequestParams
720
- # This is used to determine the number of billing cycles to prebill.
721
- attr_accessor :iterations
722
- # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
723
- attr_accessor :update_behavior
724
-
725
- def initialize(iterations: nil, update_behavior: nil)
726
- @iterations = iterations
727
- @update_behavior = update_behavior
728
- end
729
- end
730
- # Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
731
- attr_accessor :billing_behavior
732
576
  # Object representing the subscription schedule's default settings.
733
577
  attr_accessor :default_settings
734
578
  # Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
@@ -739,28 +583,22 @@ module Stripe
739
583
  attr_accessor :metadata
740
584
  # List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
741
585
  attr_accessor :phases
742
- # If specified, the invoicing for the given billing cycle iterations will be processed now.
743
- attr_accessor :prebilling
744
586
  # If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.
745
587
  attr_accessor :proration_behavior
746
588
 
747
589
  def initialize(
748
- billing_behavior: nil,
749
590
  default_settings: nil,
750
591
  end_behavior: nil,
751
592
  expand: nil,
752
593
  metadata: nil,
753
594
  phases: nil,
754
- prebilling: nil,
755
595
  proration_behavior: nil
756
596
  )
757
- @billing_behavior = billing_behavior
758
597
  @default_settings = default_settings
759
598
  @end_behavior = end_behavior
760
599
  @expand = expand
761
600
  @metadata = metadata
762
601
  @phases = phases
763
- @prebilling = prebilling
764
602
  @proration_behavior = proration_behavior
765
603
  end
766
604
 
@@ -5,44 +5,16 @@ module Stripe
5
5
  class SubscriptionUpdateParams < ::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
@@ -256,49 +228,33 @@ module Stripe
256
228
  end
257
229
 
258
230
  class Discount < ::Stripe::RequestParams
259
- class DiscountEnd < ::Stripe::RequestParams
260
- class Duration < ::Stripe::RequestParams
261
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
262
- attr_accessor :interval
263
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
264
- attr_accessor :interval_count
265
-
266
- def initialize(interval: nil, interval_count: nil)
267
- @interval = interval
268
- @interval_count = interval_count
269
- end
270
- end
271
- # Time span for the redeemed discount.
272
- attr_accessor :duration
273
- # A precise Unix timestamp for the discount to end. Must be in the future.
274
- attr_accessor :timestamp
275
- # The type of calculation made to determine when the discount ends.
276
- attr_accessor :type
277
-
278
- def initialize(duration: nil, timestamp: nil, type: nil)
279
- @duration = duration
280
- @timestamp = timestamp
281
- @type = type
282
- end
283
- end
284
231
  # ID of the coupon to create a new discount for.
285
232
  attr_accessor :coupon
286
233
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
287
234
  attr_accessor :discount
288
- # Details to determine how long the discount should be applied for.
289
- attr_accessor :discount_end
290
235
  # ID of the promotion code to create a new discount for.
291
236
  attr_accessor :promotion_code
292
237
 
293
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
238
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
294
239
  @coupon = coupon
295
240
  @discount = discount
296
- @discount_end = discount_end
297
241
  @promotion_code = promotion_code
298
242
  end
299
243
  end
300
244
 
301
245
  class InvoiceSettings < ::Stripe::RequestParams
246
+ class CustomField < ::Stripe::RequestParams
247
+ # The name of the custom field. This may be up to 40 characters.
248
+ attr_accessor :name
249
+ # The value of the custom field. This may be up to 140 characters.
250
+ attr_accessor :value
251
+
252
+ def initialize(name: nil, value: nil)
253
+ @name = name
254
+ @value = value
255
+ end
256
+ end
257
+
302
258
  class Issuer < ::Stripe::RequestParams
303
259
  # The connected account being referenced when `type` is `account`.
304
260
  attr_accessor :account
@@ -312,11 +268,26 @@ module Stripe
312
268
  end
313
269
  # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
314
270
  attr_accessor :account_tax_ids
271
+ # A list of up to 4 custom fields to be displayed on the invoice.
272
+ attr_accessor :custom_fields
273
+ # An arbitrary string attached to the object. Often useful for displaying to users.
274
+ attr_accessor :description
275
+ # Footer to be displayed on the invoice.
276
+ attr_accessor :footer
315
277
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
316
278
  attr_accessor :issuer
317
279
 
318
- def initialize(account_tax_ids: nil, issuer: nil)
280
+ def initialize(
281
+ account_tax_ids: nil,
282
+ custom_fields: nil,
283
+ description: nil,
284
+ footer: nil,
285
+ issuer: nil
286
+ )
319
287
  @account_tax_ids = account_tax_ids
288
+ @custom_fields = custom_fields
289
+ @description = description
290
+ @footer = footer
320
291
  @issuer = issuer
321
292
  end
322
293
  end
@@ -331,57 +302,17 @@ module Stripe
331
302
  end
332
303
  end
333
304
 
334
- class CurrentTrial < ::Stripe::RequestParams
335
- # 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`.
336
- attr_accessor :trial_end
337
- # The ID of the trial offer to apply to the subscription item.
338
- attr_accessor :trial_offer
339
-
340
- def initialize(trial_end: nil, trial_offer: nil)
341
- @trial_end = trial_end
342
- @trial_offer = trial_offer
343
- end
344
- end
345
-
346
305
  class Discount < ::Stripe::RequestParams
347
- class DiscountEnd < ::Stripe::RequestParams
348
- class Duration < ::Stripe::RequestParams
349
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
350
- attr_accessor :interval
351
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
352
- attr_accessor :interval_count
353
-
354
- def initialize(interval: nil, interval_count: nil)
355
- @interval = interval
356
- @interval_count = interval_count
357
- end
358
- end
359
- # Time span for the redeemed discount.
360
- attr_accessor :duration
361
- # A precise Unix timestamp for the discount to end. Must be in the future.
362
- attr_accessor :timestamp
363
- # The type of calculation made to determine when the discount ends.
364
- attr_accessor :type
365
-
366
- def initialize(duration: nil, timestamp: nil, type: nil)
367
- @duration = duration
368
- @timestamp = timestamp
369
- @type = type
370
- end
371
- end
372
306
  # ID of the coupon to create a new discount for.
373
307
  attr_accessor :coupon
374
308
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
375
309
  attr_accessor :discount
376
- # Details to determine how long the discount should be applied for.
377
- attr_accessor :discount_end
378
310
  # ID of the promotion code to create a new discount for.
379
311
  attr_accessor :promotion_code
380
312
 
381
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
313
+ def initialize(coupon: nil, discount: nil, promotion_code: nil)
382
314
  @coupon = coupon
383
315
  @discount = discount
384
- @discount_end = discount_end
385
316
  @promotion_code = promotion_code
386
317
  end
387
318
  end
@@ -435,13 +366,11 @@ module Stripe
435
366
  attr_accessor :billing_thresholds
436
367
  # Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
437
368
  attr_accessor :clear_usage
438
- # The trial offer to apply to this subscription item.
439
- attr_accessor :current_trial
440
369
  # A flag that, if set to `true`, will delete the specified item.
441
370
  attr_accessor :deleted
442
371
  # The coupons to redeem into discounts for the subscription item.
443
372
  attr_accessor :discounts
444
- # Subscription item to update.
373
+ # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing).
445
374
  attr_accessor :id
446
375
  # 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`.
447
376
  attr_accessor :metadata
@@ -459,7 +388,6 @@ module Stripe
459
388
  def initialize(
460
389
  billing_thresholds: nil,
461
390
  clear_usage: nil,
462
- current_trial: nil,
463
391
  deleted: nil,
464
392
  discounts: nil,
465
393
  id: nil,
@@ -472,7 +400,6 @@ module Stripe
472
400
  )
473
401
  @billing_thresholds = billing_thresholds
474
402
  @clear_usage = clear_usage
475
- @current_trial = current_trial
476
403
  @deleted = deleted
477
404
  @discounts = discounts
478
405
  @id = id
@@ -534,23 +461,6 @@ module Stripe
534
461
  end
535
462
  end
536
463
 
537
- class Blik < ::Stripe::RequestParams
538
- class MandateOptions < ::Stripe::RequestParams
539
- # Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
540
- attr_accessor :expires_after
541
-
542
- def initialize(expires_after: nil)
543
- @expires_after = expires_after
544
- end
545
- end
546
- # Configuration options for setting up a mandate
547
- attr_accessor :mandate_options
548
-
549
- def initialize(mandate_options: nil)
550
- @mandate_options = mandate_options
551
- end
552
- end
553
-
554
464
  class Card < ::Stripe::RequestParams
555
465
  class MandateOptions < ::Stripe::RequestParams
556
466
  # Amount to be charged for future payments, specified in the presentment currency.
@@ -611,7 +521,6 @@ module Stripe
611
521
  end
612
522
  end
613
523
 
614
- class IdBankTransfer < ::Stripe::RequestParams; end
615
524
  class Konbini < ::Stripe::RequestParams; end
616
525
 
617
526
  class Payto < ::Stripe::RequestParams
@@ -701,12 +610,9 @@ module Stripe
701
610
  class Filters < ::Stripe::RequestParams
702
611
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
703
612
  attr_accessor :account_subcategories
704
- # ID of the institution to use to filter for selectable accounts.
705
- attr_accessor :institution
706
613
 
707
- def initialize(account_subcategories: nil, institution: nil)
614
+ def initialize(account_subcategories: nil)
708
615
  @account_subcategories = account_subcategories
709
- @institution = institution
710
616
  end
711
617
  end
712
618
  # Provide filters for the linked accounts that the customer can select for the payment method.
@@ -736,14 +642,10 @@ module Stripe
736
642
  attr_accessor :acss_debit
737
643
  # This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
738
644
  attr_accessor :bancontact
739
- # This sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.
740
- attr_accessor :blik
741
645
  # This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
742
646
  attr_accessor :card
743
647
  # This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
744
648
  attr_accessor :customer_balance
745
- # This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
746
- attr_accessor :id_bank_transfer
747
649
  # This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
748
650
  attr_accessor :konbini
749
651
  # This sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
@@ -760,10 +662,8 @@ module Stripe
760
662
  def initialize(
761
663
  acss_debit: nil,
762
664
  bancontact: nil,
763
- blik: nil,
764
665
  card: nil,
765
666
  customer_balance: nil,
766
- id_bank_transfer: nil,
767
667
  konbini: nil,
768
668
  payto: nil,
769
669
  pix: nil,
@@ -773,10 +673,8 @@ module Stripe
773
673
  )
774
674
  @acss_debit = acss_debit
775
675
  @bancontact = bancontact
776
- @blik = blik
777
676
  @card = card
778
677
  @customer_balance = customer_balance
779
- @id_bank_transfer = id_bank_transfer
780
678
  @konbini = konbini
781
679
  @payto = payto
782
680
  @pix = pix
@@ -815,18 +713,6 @@ module Stripe
815
713
  end
816
714
  end
817
715
 
818
- class Prebilling < ::Stripe::RequestParams
819
- # This is used to determine the number of billing cycles to prebill.
820
- attr_accessor :iterations
821
- # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
822
- attr_accessor :update_behavior
823
-
824
- def initialize(iterations: nil, update_behavior: nil)
825
- @iterations = iterations
826
- @update_behavior = update_behavior
827
- end
828
- end
829
-
830
716
  class TransferData < ::Stripe::RequestParams
831
717
  # 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.
832
718
  attr_accessor :amount_percent
@@ -841,13 +727,10 @@ module Stripe
841
727
 
842
728
  class TrialSettings < ::Stripe::RequestParams
843
729
  class EndBehavior < ::Stripe::RequestParams
844
- # Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
845
- attr_accessor :billing_cycle_anchor
846
730
  # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
847
731
  attr_accessor :missing_payment_method
848
732
 
849
- def initialize(billing_cycle_anchor: nil, missing_payment_method: nil)
850
- @billing_cycle_anchor = billing_cycle_anchor
733
+ def initialize(missing_payment_method: nil)
851
734
  @missing_payment_method = missing_payment_method
852
735
  end
853
736
  end
@@ -910,8 +793,6 @@ module Stripe
910
793
  attr_accessor :payment_settings
911
794
  # Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](/api/invoices/create) for the given subscription at the specified interval.
912
795
  attr_accessor :pending_invoice_item_interval
913
- # If specified, the invoicing for the given billing cycle iterations will be processed now.
914
- attr_accessor :prebilling
915
796
  # Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
916
797
  attr_accessor :proration_behavior
917
798
  # If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
@@ -952,7 +833,6 @@ module Stripe
952
833
  payment_behavior: nil,
953
834
  payment_settings: nil,
954
835
  pending_invoice_item_interval: nil,
955
- prebilling: nil,
956
836
  proration_behavior: nil,
957
837
  proration_date: nil,
958
838
  transfer_data: nil,
@@ -986,7 +866,6 @@ module Stripe
986
866
  @payment_behavior = payment_behavior
987
867
  @payment_settings = payment_settings
988
868
  @pending_invoice_item_interval = pending_invoice_item_interval
989
- @prebilling = prebilling
990
869
  @proration_behavior = proration_behavior
991
870
  @proration_date = proration_date
992
871
  @transfer_data = transfer_data