stripe 19.2.0.pre.beta.1 → 19.2.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 (517) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -34
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -63
  5. data/lib/stripe/event_types.rb +16 -187
  6. data/lib/stripe/events/{v2_money_management_received_debit_pending_event.rb → v2_commerce_product_catalog_imports_failed_event.rb} +7 -7
  7. data/lib/stripe/events/{v2_money_management_outbound_transfer_canceled_event.rb → v2_commerce_product_catalog_imports_processing_event.rb} +7 -7
  8. data/lib/stripe/events/{v2_money_management_financial_account_created_event.rb → v2_commerce_product_catalog_imports_succeeded_event.rb} +7 -7
  9. data/lib/stripe/events/{v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb → v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb} +7 -7
  10. data/lib/stripe/object_types.rb +1 -55
  11. data/lib/stripe/params/account_create_params.rb +17 -364
  12. data/lib/stripe/params/account_session_create_params.rb +1 -226
  13. data/lib/stripe/params/account_update_params.rb +16 -326
  14. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  15. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  16. data/lib/stripe/params/charge_create_params.rb +4 -1
  17. data/lib/stripe/params/charge_update_params.rb +0 -1646
  18. data/lib/stripe/params/checkout/session_create_params.rb +31 -141
  19. data/lib/stripe/params/checkout/session_update_params.rb +1 -176
  20. data/lib/stripe/params/confirmation_token_create_params.rb +11 -79
  21. data/lib/stripe/params/coupon_create_params.rb +1 -17
  22. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  23. data/lib/stripe/params/dispute_update_params.rb +1 -10
  24. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
  25. data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
  26. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  27. data/lib/stripe/params/invoice_create_params.rb +2 -70
  28. data/lib/stripe/params/invoice_create_preview_params.rb +13 -790
  29. data/lib/stripe/params/invoice_item_create_params.rb +1 -33
  30. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  31. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
  32. data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
  33. data/lib/stripe/params/invoice_update_params.rb +2 -70
  34. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  35. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  36. data/lib/stripe/params/payment_intent_capture_params.rb +3 -1645
  37. data/lib/stripe/params/payment_intent_confirm_params.rb +136 -3038
  38. data/lib/stripe/params/payment_intent_create_params.rb +167 -3043
  39. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -39
  40. data/lib/stripe/params/payment_intent_update_params.rb +121 -3034
  41. data/lib/stripe/params/payment_link_create_params.rb +30 -16
  42. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  43. data/lib/stripe/params/payment_method_configuration_create_params.rb +24 -87
  44. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  45. data/lib/stripe/params/payment_method_configuration_update_params.rb +24 -87
  46. data/lib/stripe/params/payment_method_create_params.rb +11 -75
  47. data/lib/stripe/params/payout_create_params.rb +1 -1
  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 +21 -110
  57. data/lib/stripe/params/setup_intent_create_params.rb +21 -110
  58. data/lib/stripe/params/setup_intent_update_params.rb +21 -110
  59. data/lib/stripe/params/subscription_create_params.rb +11 -181
  60. data/lib/stripe/params/subscription_item_create_params.rb +3 -69
  61. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  62. data/lib/stripe/params/subscription_item_update_params.rb +2 -52
  63. data/lib/stripe/params/subscription_schedule_create_params.rb +9 -167
  64. data/lib/stripe/params/subscription_schedule_update_params.rb +9 -167
  65. data/lib/stripe/params/subscription_update_params.rb +11 -161
  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 +52 -13
  69. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -13
  70. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -79
  71. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  72. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  73. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  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/billing/meter_event_adjustment_create_params.rb +2 -2
  84. data/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
  85. data/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
  86. data/lib/stripe/params/v2/{billing/bill_settings/version_retrieve_params.rb → commerce/product_catalog/import_retrieve_params.rb} +3 -3
  87. data/lib/stripe/params/v2/core/account_create_params.rb +33 -288
  88. data/lib/stripe/params/v2/core/account_token_create_params.rb +28 -18
  89. data/lib/stripe/params/v2/core/account_update_params.rb +33 -281
  90. data/lib/stripe/params.rb +1342 -777
  91. data/lib/stripe/railtie.rb +8 -0
  92. data/lib/stripe/resources/account.rb +5 -259
  93. data/lib/stripe/resources/account_session.rb +0 -81
  94. data/lib/stripe/resources/balance.rb +0 -83
  95. data/lib/stripe/resources/balance_settings.rb +42 -2
  96. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  97. data/lib/stripe/resources/card.rb +0 -2
  98. data/lib/stripe/resources/charge.rb +36 -211
  99. data/lib/stripe/resources/checkout/session.rb +26 -82
  100. data/lib/stripe/resources/confirmation_token.rb +20 -125
  101. data/lib/stripe/resources/coupon.rb +1 -26
  102. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  103. data/lib/stripe/resources/customer_session.rb +0 -36
  104. data/lib/stripe/resources/discount.rb +2 -2
  105. data/lib/stripe/resources/dispute.rb +0 -22
  106. data/lib/stripe/resources/event.rb +1 -64
  107. data/lib/stripe/resources/financial_connections/account.rb +0 -57
  108. data/lib/stripe/resources/financial_connections/session.rb +1 -125
  109. data/lib/stripe/resources/invoice.rb +3 -117
  110. data/lib/stripe/resources/invoice_item.rb +34 -3
  111. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  112. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  113. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  114. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  115. data/lib/stripe/resources/line_item.rb +0 -42
  116. data/lib/stripe/resources/mandate.rb +13 -12
  117. data/lib/stripe/resources/payment_attempt_record.rb +41 -187
  118. data/lib/stripe/resources/payment_intent.rb +96 -1583
  119. data/lib/stripe/resources/payment_link.rb +40 -0
  120. data/lib/stripe/resources/payment_method.rb +21 -130
  121. data/lib/stripe/resources/payment_method_configuration.rb +20 -122
  122. data/lib/stripe/resources/payment_record.rb +41 -187
  123. data/lib/stripe/resources/price.rb +0 -20
  124. data/lib/stripe/resources/product.rb +0 -18
  125. data/lib/stripe/resources/quote.rb +2 -569
  126. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  127. data/lib/stripe/resources/refund.rb +13 -18
  128. data/lib/stripe/resources/reserve/hold.rb +0 -7
  129. data/lib/stripe/resources/reserve/release.rb +0 -12
  130. data/lib/stripe/resources/setup_attempt.rb +4 -26
  131. data/lib/stripe/resources/setup_intent.rb +27 -22
  132. data/lib/stripe/resources/source.rb +0 -38
  133. data/lib/stripe/resources/subscription.rb +10 -107
  134. data/lib/stripe/resources/subscription_item.rb +1 -41
  135. data/lib/stripe/resources/subscription_schedule.rb +5 -198
  136. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  137. data/lib/stripe/resources/tax/registration.rb +0 -128
  138. data/lib/stripe/resources/tax_code.rb +1 -15
  139. data/lib/stripe/resources/terminal/configuration.rb +64 -16
  140. data/lib/stripe/resources/terminal/reader.rb +116 -8
  141. data/lib/stripe/resources/transfer.rb +0 -2
  142. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  143. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  144. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
  145. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  146. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  147. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  148. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +3 -3
  149. data/lib/stripe/resources/v2/billing/meter_event_session.rb +3 -3
  150. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +274 -0
  151. data/lib/stripe/resources/v2/core/account.rb +40 -607
  152. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  153. data/lib/stripe/resources/v2/core/event.rb +1 -0
  154. data/lib/stripe/resources.rb +500 -279
  155. data/lib/stripe/services/account_service.rb +0 -15
  156. data/lib/stripe/services/billing_service.rb +1 -2
  157. data/lib/stripe/services/credit_note_service.rb +0 -14
  158. data/lib/stripe/services/customer_service.rb +0 -15
  159. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  160. data/lib/stripe/services/financial_connections_service.rb +1 -3
  161. data/lib/stripe/services/invoice_service.rb +0 -41
  162. data/lib/stripe/services/issuing_service.rb +1 -5
  163. data/lib/stripe/services/mandate_service.rb +0 -5
  164. data/lib/stripe/services/payment_intent_service.rb +3 -38
  165. data/lib/stripe/services/promotion_code_service.rb +0 -29
  166. data/lib/stripe/services/quote_service.rb +1 -49
  167. data/lib/stripe/services/subscription_schedule_service.rb +0 -55
  168. data/lib/stripe/services/subscription_service.rb +2 -32
  169. data/lib/stripe/services/tax_service.rb +1 -3
  170. data/lib/stripe/services/terminal_service.rb +1 -2
  171. data/lib/stripe/services/test_helpers_service.rb +1 -2
  172. data/lib/stripe/services/v1_services.rb +1 -11
  173. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -1
  174. data/lib/stripe/services/v2/billing_service.rb +1 -5
  175. data/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
  176. data/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
  177. data/lib/stripe/services/v2/commerce_service.rb +15 -0
  178. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  179. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  180. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
  181. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  182. data/lib/stripe/services/v2/core_service.rb +1 -3
  183. data/lib/stripe/services/v2_services.rb +2 -3
  184. data/lib/stripe/services.rb +469 -253
  185. data/lib/stripe/stripe_client.rb +1 -8
  186. data/lib/stripe/stripe_configuration.rb +1 -3
  187. data/lib/stripe/stripe_object.rb +1 -1
  188. data/lib/stripe/util.rb +1 -7
  189. data/lib/stripe/version.rb +1 -1
  190. data/lib/stripe.rb +25 -58
  191. data/rbi/stripe/stripe_client.rbi +0 -13
  192. data/rbi/stripe.rbi +50053 -113322
  193. metadata +16 -333
  194. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  195. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  196. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  197. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  198. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  199. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  200. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  201. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  202. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  203. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  204. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  205. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
  206. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  207. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  212. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  220. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  221. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  222. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  223. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  224. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  225. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  226. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  227. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
  228. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  229. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  230. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  231. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  232. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  233. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  234. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  235. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  236. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  237. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -61
  238. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  239. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  240. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  241. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  242. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  243. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  244. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  245. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  246. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  247. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  248. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  249. data/lib/stripe/params/external_account_create_params.rb +0 -134
  250. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  251. data/lib/stripe/params/external_account_list_params.rb +0 -25
  252. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  253. data/lib/stripe/params/external_account_update_params.rb +0 -91
  254. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  255. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  257. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  258. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  259. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  260. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  261. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  262. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  263. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  264. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  265. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  266. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  267. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  269. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  270. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  271. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  272. data/lib/stripe/params/mandate_list_params.rb +0 -39
  273. data/lib/stripe/params/margin_create_params.rb +0 -25
  274. data/lib/stripe/params/margin_list_params.rb +0 -25
  275. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  276. data/lib/stripe/params/margin_update_params.rb +0 -22
  277. data/lib/stripe/params/order_create_params.rb +0 -2083
  278. data/lib/stripe/params/order_list_params.rb +0 -25
  279. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  280. data/lib/stripe/params/order_submit_params.rb +0 -16
  281. data/lib/stripe/params/order_update_params.rb +0 -2087
  282. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  283. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  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/product_catalog/trial_offer_create_params.rb +0 -63
  293. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  294. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  295. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  296. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  297. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  298. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  299. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  300. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  301. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  302. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  303. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  304. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  305. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  307. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  308. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  309. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
  310. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  311. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  312. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  313. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  314. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  315. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  316. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  317. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  318. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  319. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  320. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  321. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  322. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  323. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  324. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  325. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  326. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  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 -254
  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 -260
  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/money_management/adjustment_list_params.rb +0 -48
  359. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  360. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  361. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  362. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  363. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  364. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  365. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  366. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  367. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  368. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  369. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  370. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  371. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  372. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
  373. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  374. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  375. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  376. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  377. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  378. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
  379. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  380. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  381. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -87
  382. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  383. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  384. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  385. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  386. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  388. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  389. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  390. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  391. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  392. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  393. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  394. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  395. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  396. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  397. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  398. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  399. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  400. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  401. data/lib/stripe/resources/account_notice.rb +0 -94
  402. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  403. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  404. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  405. data/lib/stripe/resources/capital/financing_summary.rb +0 -82
  406. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  407. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  408. data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
  409. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  410. data/lib/stripe/resources/fx_quote.rb +0 -147
  411. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  412. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  413. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  414. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  415. data/lib/stripe/resources/margin.rb +0 -64
  416. data/lib/stripe/resources/order.rb +0 -927
  417. data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
  418. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  419. data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
  420. data/lib/stripe/resources/quote_line.rb +0 -525
  421. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1181
  422. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -734
  423. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1766
  424. data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
  425. data/lib/stripe/resources/tax/form.rb +0 -264
  426. data/lib/stripe/resources/tax/location.rb +0 -72
  427. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  428. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  429. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
  430. data/lib/stripe/resources/v2/billing/cadence.rb +0 -688
  431. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -305
  432. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -294
  433. data/lib/stripe/resources/v2/billing/profile.rb +0 -47
  434. data/lib/stripe/resources/v2/core/batch_job.rb +0 -492
  435. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
  436. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
  437. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
  438. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
  439. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  440. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  441. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
  442. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
  443. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
  444. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  445. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  446. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  447. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
  448. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
  449. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
  450. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  451. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
  452. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  453. data/lib/stripe/services/account_notice_service.rb +0 -39
  454. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  455. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  456. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  457. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  458. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  459. data/lib/stripe/services/capital_service.rb +0 -15
  460. data/lib/stripe/services/external_account_service.rb +0 -68
  461. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  462. data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
  463. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  464. data/lib/stripe/services/fx_quote_service.rb +0 -27
  465. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  466. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  467. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  468. data/lib/stripe/services/margin_service.rb +0 -50
  469. data/lib/stripe/services/order_service.rb +0 -53
  470. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  471. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  472. data/lib/stripe/services/privacy_service.rb +0 -13
  473. data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
  474. data/lib/stripe/services/product_catalog_service.rb +0 -13
  475. data/lib/stripe/services/quote_line_service.rb +0 -17
  476. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  477. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  478. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  479. data/lib/stripe/services/reserve/plan_service.rb +0 -19
  480. data/lib/stripe/services/reserve/release_service.rb +0 -30
  481. data/lib/stripe/services/reserve_service.rb +0 -15
  482. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  483. data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
  484. data/lib/stripe/services/shared_payment_service.rb +0 -14
  485. data/lib/stripe/services/tax/form_service.rb +0 -37
  486. data/lib/stripe/services/tax/location_service.rb +0 -45
  487. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  488. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  489. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  490. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  491. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  492. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  493. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
  494. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  495. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  496. data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
  497. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  498. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  499. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  500. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  501. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  502. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  503. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  504. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  505. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  506. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
  507. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  508. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -65
  509. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  510. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  511. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  512. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  513. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  514. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  515. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  516. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
  517. data/lib/stripe/stripe_event_notification_handler.rb +0 -491
@@ -1,578 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class SubscriptionScheduleAmendParams < ::Stripe::RequestParams
6
- class Amendment < ::Stripe::RequestParams
7
- class AmendmentEnd < ::Stripe::RequestParams
8
- class DiscountEnd < ::Stripe::RequestParams
9
- # The ID of a specific discount.
10
- attr_accessor :discount
11
-
12
- def initialize(discount: nil)
13
- @discount = discount
14
- end
15
- end
16
-
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
- # Use the `end` time of a given discount.
29
- attr_accessor :discount_end
30
- # Time span for the amendment starting from the `amendment_start`.
31
- attr_accessor :duration
32
- # A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
33
- attr_accessor :timestamp
34
- # Select one of three ways to pass the `amendment_end`.
35
- attr_accessor :type
36
-
37
- def initialize(discount_end: nil, duration: nil, timestamp: nil, type: nil)
38
- @discount_end = discount_end
39
- @duration = duration
40
- @timestamp = timestamp
41
- @type = type
42
- end
43
- end
44
-
45
- class AmendmentStart < ::Stripe::RequestParams
46
- class AmendmentEnd < ::Stripe::RequestParams
47
- # The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
48
- attr_accessor :index
49
-
50
- def initialize(index: nil)
51
- @index = index
52
- end
53
- end
54
-
55
- class DiscountEnd < ::Stripe::RequestParams
56
- # The ID of a specific discount.
57
- attr_accessor :discount
58
-
59
- def initialize(discount: nil)
60
- @discount = discount
61
- end
62
- end
63
- # Details of another amendment in the same array, immediately after which this amendment should begin.
64
- attr_accessor :amendment_end
65
- # Use the `end` time of a given discount.
66
- attr_accessor :discount_end
67
- # A precise Unix timestamp for the amendment to start.
68
- attr_accessor :timestamp
69
- # Select one of three ways to pass the `amendment_start`.
70
- attr_accessor :type
71
-
72
- def initialize(amendment_end: nil, discount_end: nil, timestamp: nil, type: nil)
73
- @amendment_end = amendment_end
74
- @discount_end = discount_end
75
- @timestamp = timestamp
76
- @type = type
77
- end
78
- end
79
-
80
- class DiscountAction < ::Stripe::RequestParams
81
- class Add < ::Stripe::RequestParams
82
- class DiscountEnd < ::Stripe::RequestParams
83
- # The type of calculation made to determine when the discount ends.
84
- attr_accessor :type
85
-
86
- def initialize(type: nil)
87
- @type = type
88
- end
89
- end
90
- # The coupon code to redeem.
91
- attr_accessor :coupon
92
- # An ID of an existing discount for a coupon that was already redeemed.
93
- attr_accessor :discount
94
- # Details to determine how long the discount should be applied for.
95
- attr_accessor :discount_end
96
- # The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
97
- attr_accessor :index
98
- # The promotion code to redeem.
99
- attr_accessor :promotion_code
100
-
101
- def initialize(
102
- coupon: nil,
103
- discount: nil,
104
- discount_end: nil,
105
- index: nil,
106
- promotion_code: nil
107
- )
108
- @coupon = coupon
109
- @discount = discount
110
- @discount_end = discount_end
111
- @index = index
112
- @promotion_code = promotion_code
113
- end
114
- end
115
-
116
- class Remove < ::Stripe::RequestParams
117
- # The coupon code to remove from the `discounts` array.
118
- attr_accessor :coupon
119
- # The ID of a discount to remove from the `discounts` array.
120
- attr_accessor :discount
121
- # The ID of a promotion code to remove from the `discounts` array.
122
- attr_accessor :promotion_code
123
-
124
- def initialize(coupon: nil, discount: nil, promotion_code: nil)
125
- @coupon = coupon
126
- @discount = discount
127
- @promotion_code = promotion_code
128
- end
129
- end
130
-
131
- class Set < ::Stripe::RequestParams
132
- # The coupon code to replace the `discounts` array with.
133
- attr_accessor :coupon
134
- # An ID of an existing discount to replace the `discounts` array with.
135
- attr_accessor :discount
136
- # An ID of an existing promotion code to replace the `discounts` array with.
137
- attr_accessor :promotion_code
138
-
139
- def initialize(coupon: nil, discount: nil, promotion_code: nil)
140
- @coupon = coupon
141
- @discount = discount
142
- @promotion_code = promotion_code
143
- end
144
- end
145
- # Details of the discount to add.
146
- attr_accessor :add
147
- # Details of the discount to remove.
148
- attr_accessor :remove
149
- # Details of the discount to replace the existing discounts with.
150
- attr_accessor :set
151
- # Determines the type of discount action.
152
- attr_accessor :type
153
-
154
- def initialize(add: nil, remove: nil, set: nil, type: nil)
155
- @add = add
156
- @remove = remove
157
- @set = set
158
- @type = type
159
- end
160
- end
161
-
162
- class ItemAction < ::Stripe::RequestParams
163
- class Add < ::Stripe::RequestParams
164
- class Discount < ::Stripe::RequestParams
165
- class DiscountEnd < ::Stripe::RequestParams
166
- class Duration < ::Stripe::RequestParams
167
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
168
- attr_accessor :interval
169
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
170
- attr_accessor :interval_count
171
-
172
- def initialize(interval: nil, interval_count: nil)
173
- @interval = interval
174
- @interval_count = interval_count
175
- end
176
- end
177
- # Time span for the redeemed discount.
178
- attr_accessor :duration
179
- # A precise Unix timestamp for the discount to end. Must be in the future.
180
- attr_accessor :timestamp
181
- # The type of calculation made to determine when the discount ends.
182
- attr_accessor :type
183
-
184
- def initialize(duration: nil, timestamp: nil, type: nil)
185
- @duration = duration
186
- @timestamp = timestamp
187
- @type = type
188
- end
189
- end
190
- # ID of the coupon to create a new discount for.
191
- attr_accessor :coupon
192
- # ID of an existing discount on the object (or one of its ancestors) to reuse.
193
- attr_accessor :discount
194
- # Details to determine how long the discount should be applied for.
195
- attr_accessor :discount_end
196
- # ID of the promotion code to create a new discount for.
197
- attr_accessor :promotion_code
198
-
199
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
200
- @coupon = coupon
201
- @discount = discount
202
- @discount_end = discount_end
203
- @promotion_code = promotion_code
204
- end
205
- end
206
-
207
- class Trial < ::Stripe::RequestParams
208
- # 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.
209
- attr_accessor :converts_to
210
- # Determines the type of trial for this item.
211
- attr_accessor :type
212
-
213
- def initialize(converts_to: nil, type: nil)
214
- @converts_to = converts_to
215
- @type = type
216
- end
217
- end
218
- # The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
219
- attr_accessor :discounts
220
- # 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`.
221
- attr_accessor :metadata
222
- # The ID of the price object.
223
- attr_accessor :price
224
- # Quantity for this item.
225
- attr_accessor :quantity
226
- # The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
227
- attr_accessor :tax_rates
228
- # Options that configure the trial on the subscription item.
229
- attr_accessor :trial
230
- # The ID of the trial offer to apply to the configuration item.
231
- attr_accessor :trial_offer
232
-
233
- def initialize(
234
- discounts: nil,
235
- metadata: nil,
236
- price: nil,
237
- quantity: nil,
238
- tax_rates: nil,
239
- trial: nil,
240
- trial_offer: nil
241
- )
242
- @discounts = discounts
243
- @metadata = metadata
244
- @price = price
245
- @quantity = quantity
246
- @tax_rates = tax_rates
247
- @trial = trial
248
- @trial_offer = trial_offer
249
- end
250
- end
251
-
252
- class Remove < ::Stripe::RequestParams
253
- # ID of a price to remove.
254
- attr_accessor :price
255
-
256
- def initialize(price: nil)
257
- @price = price
258
- end
259
- end
260
-
261
- class Set < ::Stripe::RequestParams
262
- class Discount < ::Stripe::RequestParams
263
- class DiscountEnd < ::Stripe::RequestParams
264
- class Duration < ::Stripe::RequestParams
265
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
266
- attr_accessor :interval
267
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
268
- attr_accessor :interval_count
269
-
270
- def initialize(interval: nil, interval_count: nil)
271
- @interval = interval
272
- @interval_count = interval_count
273
- end
274
- end
275
- # Time span for the redeemed discount.
276
- attr_accessor :duration
277
- # A precise Unix timestamp for the discount to end. Must be in the future.
278
- attr_accessor :timestamp
279
- # The type of calculation made to determine when the discount ends.
280
- attr_accessor :type
281
-
282
- def initialize(duration: nil, timestamp: nil, type: nil)
283
- @duration = duration
284
- @timestamp = timestamp
285
- @type = type
286
- end
287
- end
288
- # ID of the coupon to create a new discount for.
289
- attr_accessor :coupon
290
- # ID of an existing discount on the object (or one of its ancestors) to reuse.
291
- attr_accessor :discount
292
- # Details to determine how long the discount should be applied for.
293
- attr_accessor :discount_end
294
- # ID of the promotion code to create a new discount for.
295
- attr_accessor :promotion_code
296
-
297
- def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
298
- @coupon = coupon
299
- @discount = discount
300
- @discount_end = discount_end
301
- @promotion_code = promotion_code
302
- end
303
- end
304
-
305
- class Trial < ::Stripe::RequestParams
306
- # 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.
307
- attr_accessor :converts_to
308
- # Determines the type of trial for this item.
309
- attr_accessor :type
310
-
311
- def initialize(converts_to: nil, type: nil)
312
- @converts_to = converts_to
313
- @type = type
314
- end
315
- end
316
- # If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
317
- attr_accessor :discounts
318
- # If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
319
- attr_accessor :metadata
320
- # The ID of the price object.
321
- attr_accessor :price
322
- # If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
323
- attr_accessor :quantity
324
- # If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
325
- attr_accessor :tax_rates
326
- # If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
327
- attr_accessor :trial
328
- # The ID of the trial offer to apply to the configuration item.
329
- attr_accessor :trial_offer
330
-
331
- def initialize(
332
- discounts: nil,
333
- metadata: nil,
334
- price: nil,
335
- quantity: nil,
336
- tax_rates: nil,
337
- trial: nil,
338
- trial_offer: nil
339
- )
340
- @discounts = discounts
341
- @metadata = metadata
342
- @price = price
343
- @quantity = quantity
344
- @tax_rates = tax_rates
345
- @trial = trial
346
- @trial_offer = trial_offer
347
- end
348
- end
349
- # Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
350
- attr_accessor :add
351
- # Details of the subscription item to remove.
352
- attr_accessor :remove
353
- # Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
354
- attr_accessor :set
355
- # Determines the type of item action.
356
- attr_accessor :type
357
-
358
- def initialize(add: nil, remove: nil, set: nil, type: nil)
359
- @add = add
360
- @remove = remove
361
- @set = set
362
- @type = type
363
- end
364
- end
365
-
366
- class MetadataAction < ::Stripe::RequestParams
367
- # Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
368
- attr_accessor :add
369
- # Keys to remove from schedule phase metadata.
370
- attr_accessor :remove
371
- # Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
372
- attr_accessor :set
373
- # Select one of three ways to update phase-level `metadata` on subscription schedules.
374
- attr_accessor :type
375
-
376
- def initialize(add: nil, remove: nil, set: nil, type: nil)
377
- @add = add
378
- @remove = remove
379
- @set = set
380
- @type = type
381
- end
382
- end
383
-
384
- class SetPauseCollection < ::Stripe::RequestParams
385
- class Set < ::Stripe::RequestParams
386
- # The payment collection behavior for this subscription while paused.
387
- attr_accessor :behavior
388
-
389
- def initialize(behavior: nil)
390
- @behavior = behavior
391
- end
392
- end
393
- # Details of the pause_collection behavior to apply to the amendment.
394
- attr_accessor :set
395
- # Determines the type of the pause_collection amendment.
396
- attr_accessor :type
397
-
398
- def initialize(set: nil, type: nil)
399
- @set = set
400
- @type = type
401
- end
402
- end
403
-
404
- class TrialSettings < ::Stripe::RequestParams
405
- class EndBehavior < ::Stripe::RequestParams
406
- # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
407
- attr_accessor :prorate_up_front
408
-
409
- def initialize(prorate_up_front: nil)
410
- @prorate_up_front = prorate_up_front
411
- end
412
- end
413
- # Defines how the subscription should behave when a trial ends.
414
- attr_accessor :end_behavior
415
-
416
- def initialize(end_behavior: nil)
417
- @end_behavior = end_behavior
418
- end
419
- end
420
- # Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
421
- attr_accessor :amendment_end
422
- # Details to identify the earliest timestamp where the proposed change should take effect.
423
- attr_accessor :amendment_start
424
- # For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
425
- attr_accessor :billing_cycle_anchor
426
- # Changes to the coupons being redeemed or discounts being applied during the amendment time span.
427
- attr_accessor :discount_actions
428
- # Changes to the subscription items during the amendment time span.
429
- attr_accessor :item_actions
430
- # Instructions for how to modify phase metadata
431
- attr_accessor :metadata_actions
432
- # Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
433
- attr_accessor :proration_behavior
434
- # Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
435
- attr_accessor :set_pause_collection
436
- # Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
437
- attr_accessor :set_schedule_end
438
- # Settings related to subscription trials.
439
- attr_accessor :trial_settings
440
-
441
- def initialize(
442
- amendment_end: nil,
443
- amendment_start: nil,
444
- billing_cycle_anchor: nil,
445
- discount_actions: nil,
446
- item_actions: nil,
447
- metadata_actions: nil,
448
- proration_behavior: nil,
449
- set_pause_collection: nil,
450
- set_schedule_end: nil,
451
- trial_settings: nil
452
- )
453
- @amendment_end = amendment_end
454
- @amendment_start = amendment_start
455
- @billing_cycle_anchor = billing_cycle_anchor
456
- @discount_actions = discount_actions
457
- @item_actions = item_actions
458
- @metadata_actions = metadata_actions
459
- @proration_behavior = proration_behavior
460
- @set_pause_collection = set_pause_collection
461
- @set_schedule_end = set_schedule_end
462
- @trial_settings = trial_settings
463
- end
464
- end
465
-
466
- class Prebilling < ::Stripe::RequestParams
467
- class BillFrom < ::Stripe::RequestParams
468
- class AmendmentStart < ::Stripe::RequestParams
469
- # The position of the amendment in the `amendments` array with which prebilling should begin. Indexes start from 0 and must be less than the total number of supplied amendments.
470
- attr_accessor :index
471
-
472
- def initialize(index: nil)
473
- @index = index
474
- end
475
- end
476
- # Start the prebilled period when a specified amendment begins.
477
- attr_accessor :amendment_start
478
- # Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
479
- attr_accessor :timestamp
480
- # Select one of several ways to pass the `bill_from` value.
481
- attr_accessor :type
482
-
483
- def initialize(amendment_start: nil, timestamp: nil, type: nil)
484
- @amendment_start = amendment_start
485
- @timestamp = timestamp
486
- @type = type
487
- end
488
- end
489
-
490
- class BillUntil < ::Stripe::RequestParams
491
- class AmendmentEnd < ::Stripe::RequestParams
492
- # The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
493
- attr_accessor :index
494
-
495
- def initialize(index: nil)
496
- @index = index
497
- end
498
- end
499
-
500
- class Duration < ::Stripe::RequestParams
501
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
502
- attr_accessor :interval
503
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
504
- attr_accessor :interval_count
505
-
506
- def initialize(interval: nil, interval_count: nil)
507
- @interval = interval
508
- @interval_count = interval_count
509
- end
510
- end
511
- # End the prebilled period when a specified amendment ends.
512
- attr_accessor :amendment_end
513
- # Time span for prebilling, starting from `bill_from`.
514
- attr_accessor :duration
515
- # End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
516
- attr_accessor :timestamp
517
- # Select one of several ways to pass the `bill_until` value.
518
- attr_accessor :type
519
-
520
- def initialize(amendment_end: nil, duration: nil, timestamp: nil, type: nil)
521
- @amendment_end = amendment_end
522
- @duration = duration
523
- @timestamp = timestamp
524
- @type = type
525
- end
526
- end
527
- # The beginning of the prebilled time period. The default value is `now`.
528
- attr_accessor :bill_from
529
- # The end of the prebilled time period.
530
- attr_accessor :bill_until
531
- # When the prebilling invoice should be created. The default value is `now`.
532
- attr_accessor :invoice_at
533
- # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
534
- attr_accessor :update_behavior
535
-
536
- def initialize(bill_from: nil, bill_until: nil, invoice_at: nil, update_behavior: nil)
537
- @bill_from = bill_from
538
- @bill_until = bill_until
539
- @invoice_at = invoice_at
540
- @update_behavior = update_behavior
541
- end
542
- end
543
-
544
- class ScheduleSettings < ::Stripe::RequestParams
545
- # Behavior of the subscription schedule and underlying subscription when it ends.
546
- attr_accessor :end_behavior
547
-
548
- def initialize(end_behavior: nil)
549
- @end_behavior = end_behavior
550
- end
551
- end
552
- # Changes to apply to the phases of the subscription schedule, in the order provided.
553
- attr_accessor :amendments
554
- # Specifies which fields in the response should be expanded.
555
- attr_accessor :expand
556
- # Provide any time periods to bill in advance.
557
- attr_accessor :prebilling
558
- # In cases where the amendment changes the currently active phase,
559
- # specifies if and how to prorate at the time of the request.
560
- attr_accessor :proration_behavior
561
- # Changes to apply to the subscription schedule.
562
- attr_accessor :schedule_settings
563
-
564
- def initialize(
565
- amendments: nil,
566
- expand: nil,
567
- prebilling: nil,
568
- proration_behavior: nil,
569
- schedule_settings: nil
570
- )
571
- @amendments = amendments
572
- @expand = expand
573
- @prebilling = prebilling
574
- @proration_behavior = proration_behavior
575
- @schedule_settings = schedule_settings
576
- end
577
- end
578
- end
@@ -1,51 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Tax
6
- class FormListParams < ::Stripe::RequestParams
7
- class Payee < ::Stripe::RequestParams
8
- # The ID of the Stripe account whose forms will be retrieved.
9
- attr_accessor :account
10
- # The external reference to the payee whose forms will be retrieved.
11
- attr_accessor :external_reference
12
- # Specifies the payee type. Either `account` or `external_reference`.
13
- attr_accessor :type
14
-
15
- def initialize(account: nil, external_reference: nil, type: nil)
16
- @account = account
17
- @external_reference = external_reference
18
- @type = type
19
- end
20
- end
21
- # 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.
22
- attr_accessor :ending_before
23
- # Specifies which fields in the response should be expanded.
24
- attr_accessor :expand
25
- # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
26
- attr_accessor :limit
27
- # The payee whose volume is represented on the tax form.
28
- attr_accessor :payee
29
- # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
30
- attr_accessor :starting_after
31
- # An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future tax form types. If your integration expects only one type of tax form in the response, make sure to provide a type value in the request.
32
- attr_accessor :type
33
-
34
- def initialize(
35
- ending_before: nil,
36
- expand: nil,
37
- limit: nil,
38
- payee: nil,
39
- starting_after: nil,
40
- type: nil
41
- )
42
- @ending_before = ending_before
43
- @expand = expand
44
- @limit = limit
45
- @payee = payee
46
- @starting_after = starting_after
47
- @type = type
48
- end
49
- end
50
- end
51
- end
@@ -1,15 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Tax
6
- class FormPdfParams < ::Stripe::RequestParams
7
- # Specifies which fields in the response should be expanded.
8
- attr_accessor :expand
9
-
10
- def initialize(expand: nil)
11
- @expand = expand
12
- end
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Tax
6
- class FormRetrieveParams < ::Stripe::RequestParams
7
- # Specifies which fields in the response should be expanded.
8
- attr_accessor :expand
9
-
10
- def initialize(expand: nil)
11
- @expand = expand
12
- end
13
- end
14
- end
15
- end