stripe 15.6.0.pre.alpha.2 → 15.6.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1 -71
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +4 -6
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +0 -2
  8. data/lib/stripe/errors.rb +0 -3
  9. data/lib/stripe/event_types.rb +0 -83
  10. data/lib/stripe/object_types.rb +0 -27
  11. data/lib/stripe/resources/account.rb +0 -443
  12. data/lib/stripe/resources/account_link.rb +0 -8
  13. data/lib/stripe/resources/account_notice.rb +0 -24
  14. data/lib/stripe/resources/account_session.rb +10 -435
  15. data/lib/stripe/resources/apple_pay_domain.rb +0 -8
  16. data/lib/stripe/resources/application.rb +0 -8
  17. data/lib/stripe/resources/application_fee.rb +0 -16
  18. data/lib/stripe/resources/application_fee_refund.rb +0 -8
  19. data/lib/stripe/resources/apps/secret.rb +0 -16
  20. data/lib/stripe/resources/balance.rb +0 -159
  21. data/lib/stripe/resources/balance_settings.rb +0 -40
  22. data/lib/stripe/resources/balance_transaction.rb +0 -16
  23. data/lib/stripe/resources/bank_account.rb +0 -40
  24. data/lib/stripe/resources/billing/alert.rb +1 -203
  25. data/lib/stripe/resources/billing/alert_triggered.rb +0 -14
  26. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -130
  27. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -157
  28. data/lib/stripe/resources/billing/credit_grant.rb +2 -133
  29. data/lib/stripe/resources/billing/meter.rb +0 -45
  30. data/lib/stripe/resources/billing/meter_event.rb +0 -8
  31. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  32. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -8
  33. data/lib/stripe/resources/billing/meter_usage.rb +0 -8
  34. data/lib/stripe/resources/billing/meter_usage_row.rb +0 -8
  35. data/lib/stripe/resources/billing_portal/configuration.rb +0 -122
  36. data/lib/stripe/resources/billing_portal/session.rb +0 -101
  37. data/lib/stripe/resources/capability.rb +0 -56
  38. data/lib/stripe/resources/capital/financing_offer.rb +0 -24
  39. data/lib/stripe/resources/capital/financing_summary.rb +0 -24
  40. data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
  41. data/lib/stripe/resources/card.rb +0 -16
  42. data/lib/stripe/resources/cash_balance.rb +0 -16
  43. data/lib/stripe/resources/charge.rb +20 -1052
  44. data/lib/stripe/resources/checkout/session.rb +1 -1078
  45. data/lib/stripe/resources/climate/order.rb +0 -32
  46. data/lib/stripe/resources/climate/product.rb +0 -16
  47. data/lib/stripe/resources/climate/supplier.rb +0 -16
  48. data/lib/stripe/resources/confirmation_token.rb +38 -960
  49. data/lib/stripe/resources/connect_collection_transfer.rb +0 -8
  50. data/lib/stripe/resources/country_spec.rb +0 -32
  51. data/lib/stripe/resources/coupon.rb +0 -36
  52. data/lib/stripe/resources/credit_note.rb +0 -70
  53. data/lib/stripe/resources/credit_note_line_item.rb +0 -53
  54. data/lib/stripe/resources/customer.rb +0 -77
  55. data/lib/stripe/resources/customer_balance_transaction.rb +0 -8
  56. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -108
  57. data/lib/stripe/resources/customer_session.rb +0 -52
  58. data/lib/stripe/resources/discount.rb +0 -8
  59. data/lib/stripe/resources/dispute.rb +0 -166
  60. data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -8
  61. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -8
  62. data/lib/stripe/resources/entitlements/feature.rb +0 -8
  63. data/lib/stripe/resources/ephemeral_key.rb +0 -8
  64. data/lib/stripe/resources/event.rb +0 -56
  65. data/lib/stripe/resources/exchange_rate.rb +0 -8
  66. data/lib/stripe/resources/file.rb +0 -8
  67. data/lib/stripe/resources/file_link.rb +0 -8
  68. data/lib/stripe/resources/financial_connections/account.rb +0 -79
  69. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -8
  70. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -8
  71. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -8
  72. data/lib/stripe/resources/financial_connections/institution.rb +0 -53
  73. data/lib/stripe/resources/financial_connections/session.rb +1 -63
  74. data/lib/stripe/resources/financial_connections/transaction.rb +0 -16
  75. data/lib/stripe/resources/forwarding/request.rb +0 -52
  76. data/lib/stripe/resources/funding_instructions.rb +0 -193
  77. data/lib/stripe/resources/fx_quote.rb +0 -48
  78. data/lib/stripe/resources/identity/verification_report.rb +1 -166
  79. data/lib/stripe/resources/identity/verification_session.rb +1 -126
  80. data/lib/stripe/resources/invoice.rb +3 -452
  81. data/lib/stripe/resources/invoice_item.rb +0 -136
  82. data/lib/stripe/resources/invoice_line_item.rb +0 -238
  83. data/lib/stripe/resources/invoice_payment.rb +0 -24
  84. data/lib/stripe/resources/invoice_rendering_template.rb +0 -8
  85. data/lib/stripe/resources/issuing/authorization.rb +0 -177
  86. data/lib/stripe/resources/issuing/card.rb +8 -96
  87. data/lib/stripe/resources/issuing/cardholder.rb +0 -110
  88. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -82
  89. data/lib/stripe/resources/issuing/dispute.rb +0 -97
  90. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -16
  91. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -8
  92. data/lib/stripe/resources/issuing/personalization_design.rb +0 -36
  93. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -16
  94. data/lib/stripe/resources/issuing/settlement.rb +0 -8
  95. data/lib/stripe/resources/issuing/token.rb +0 -61
  96. data/lib/stripe/resources/issuing/transaction.rb +0 -151
  97. data/lib/stripe/resources/line_item.rb +0 -54
  98. data/lib/stripe/resources/login_link.rb +0 -8
  99. data/lib/stripe/resources/mandate.rb +11 -242
  100. data/lib/stripe/resources/margin.rb +0 -8
  101. data/lib/stripe/resources/order.rb +0 -348
  102. data/lib/stripe/resources/payment_attempt_record.rb +15 -890
  103. data/lib/stripe/resources/payment_intent.rb +3 -1405
  104. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -56
  105. data/lib/stripe/resources/payment_link.rb +0 -337
  106. data/lib/stripe/resources/payment_method.rb +38 -884
  107. data/lib/stripe/resources/payment_method_configuration.rb +0 -961
  108. data/lib/stripe/resources/payment_method_domain.rb +0 -111
  109. data/lib/stripe/resources/payment_record.rb +15 -890
  110. data/lib/stripe/resources/payout.rb +0 -16
  111. data/lib/stripe/resources/person.rb +0 -180
  112. data/lib/stripe/resources/plan.rb +0 -24
  113. data/lib/stripe/resources/price.rb +0 -79
  114. data/lib/stripe/resources/privacy/redaction_job.rb +0 -16
  115. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -16
  116. data/lib/stripe/resources/product.rb +0 -27
  117. data/lib/stripe/resources/product_feature.rb +0 -8
  118. data/lib/stripe/resources/promotion_code.rb +0 -24
  119. data/lib/stripe/resources/quote.rb +0 -432
  120. data/lib/stripe/resources/quote_line.rb +0 -247
  121. data/lib/stripe/resources/quote_preview_invoice.rb +3 -457
  122. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -323
  123. data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -8
  124. data/lib/stripe/resources/radar/value_list.rb +0 -8
  125. data/lib/stripe/resources/radar/value_list_item.rb +0 -8
  126. data/lib/stripe/resources/refund.rb +19 -380
  127. data/lib/stripe/resources/reporting/report_run.rb +0 -16
  128. data/lib/stripe/resources/reporting/report_type.rb +0 -8
  129. data/lib/stripe/resources/reserve_transaction.rb +0 -8
  130. data/lib/stripe/resources/reversal.rb +0 -8
  131. data/lib/stripe/resources/review.rb +0 -24
  132. data/lib/stripe/resources/setup_attempt.rb +20 -331
  133. data/lib/stripe/resources/setup_intent.rb +2 -293
  134. data/lib/stripe/resources/shipping_rate.rb +0 -48
  135. data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -16
  136. data/lib/stripe/resources/source.rb +0 -274
  137. data/lib/stripe/resources/source_mandate_notification.rb +0 -32
  138. data/lib/stripe/resources/source_transaction.rb +0 -54
  139. data/lib/stripe/resources/subscription.rb +3 -356
  140. data/lib/stripe/resources/subscription_item.rb +0 -24
  141. data/lib/stripe/resources/subscription_schedule.rb +0 -314
  142. data/lib/stripe/resources/tax/association.rb +0 -32
  143. data/lib/stripe/resources/tax/calculation.rb +0 -109
  144. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -32
  145. data/lib/stripe/resources/tax/form.rb +0 -107
  146. data/lib/stripe/resources/tax/registration.rb +0 -1232
  147. data/lib/stripe/resources/tax/settings.rb +1 -61
  148. data/lib/stripe/resources/tax/transaction.rb +0 -93
  149. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -16
  150. data/lib/stripe/resources/tax_code.rb +0 -8
  151. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -8
  152. data/lib/stripe/resources/tax_id.rb +0 -24
  153. data/lib/stripe/resources/tax_rate.rb +0 -16
  154. data/lib/stripe/resources/terminal/configuration.rb +0 -299
  155. data/lib/stripe/resources/terminal/connection_token.rb +0 -8
  156. data/lib/stripe/resources/terminal/location.rb +0 -16
  157. data/lib/stripe/resources/terminal/onboarding_link.rb +0 -24
  158. data/lib/stripe/resources/terminal/reader.rb +0 -241
  159. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -16
  160. data/lib/stripe/resources/test_helpers/test_clock.rb +0 -24
  161. data/lib/stripe/resources/token.rb +0 -8
  162. data/lib/stripe/resources/topup.rb +0 -8
  163. data/lib/stripe/resources/transfer.rb +0 -8
  164. data/lib/stripe/resources/treasury/credit_reversal.rb +0 -16
  165. data/lib/stripe/resources/treasury/debit_reversal.rb +0 -24
  166. data/lib/stripe/resources/treasury/financial_account.rb +0 -61
  167. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -192
  168. data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -69
  169. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -106
  170. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -114
  171. data/lib/stripe/resources/treasury/received_credit.rb +0 -97
  172. data/lib/stripe/resources/treasury/received_debit.rb +0 -89
  173. data/lib/stripe/resources/treasury/transaction.rb +0 -36
  174. data/lib/stripe/resources/treasury/transaction_entry.rb +0 -24
  175. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -8
  176. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -16
  177. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -8
  178. data/lib/stripe/resources/v2/core/account.rb +0 -1900
  179. data/lib/stripe/resources/v2/core/account_link.rb +0 -51
  180. data/lib/stripe/resources/v2/core/person.rb +0 -201
  181. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -40
  182. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -8
  183. data/lib/stripe/resources/v2/event.rb +0 -26
  184. data/lib/stripe/resources/v2/event_destination.rb +0 -44
  185. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -8
  186. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -8
  187. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -16
  188. data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -63
  189. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -32
  190. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +3 -90
  191. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -88
  192. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -62
  193. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -24
  194. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -79
  195. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -32
  196. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -32
  197. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -77
  198. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -52
  199. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -36
  200. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -35
  201. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -24
  202. data/lib/stripe/resources/webhook_endpoint.rb +0 -8
  203. data/lib/stripe/resources.rb +0 -85
  204. data/lib/stripe/services/billing/alert_service.rb +1 -75
  205. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
  206. data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
  207. data/lib/stripe/services/checkout/session_service.rb +1 -80
  208. data/lib/stripe/services/invoice_service.rb +0 -4
  209. data/lib/stripe/services/issuing/card_service.rb +8 -0
  210. data/lib/stripe/services/subscription_service.rb +0 -27
  211. data/lib/stripe/services/v2/billing_service.rb +1 -18
  212. data/lib/stripe/services/v2/core_service.rb +1 -2
  213. data/lib/stripe/services/v2_services.rb +1 -3
  214. data/lib/stripe/services.rb +0 -29
  215. data/lib/stripe/stripe_object.rb +1 -25
  216. data/lib/stripe/util.rb +5 -9
  217. data/lib/stripe/version.rb +1 -1
  218. data/rbi/stripe.rbi +37685 -116505
  219. metadata +2 -116
  220. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
  221. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
  222. data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
  223. data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
  224. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
  225. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
  226. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
  227. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
  228. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
  229. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
  230. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
  231. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
  232. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
  233. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
  234. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
  235. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
  236. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
  237. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
  238. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
  239. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
  240. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
  241. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
  242. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
  243. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
  244. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
  245. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
  246. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
  247. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
  248. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
  249. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
  250. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
  251. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
  252. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
  253. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
  254. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
  255. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
  256. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
  257. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
  258. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
  259. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
  260. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
  261. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
  262. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
  263. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
  264. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
  265. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
  266. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
  267. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
  268. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
  269. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
  270. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
  271. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
  272. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
  273. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
  274. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
  275. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
  276. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
  277. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
  278. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  279. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
  280. data/lib/stripe/resources/v2/billing/cadence.rb +0 -323
  281. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -296
  282. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -284
  283. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
  284. data/lib/stripe/resources/v2/billing/intent.rb +0 -86
  285. data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
  286. data/lib/stripe/resources/v2/billing/license_fee.rb +0 -103
  287. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
  288. data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
  289. data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
  290. data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
  291. data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
  292. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
  293. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -90
  294. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
  295. data/lib/stripe/resources/v2/billing/profile.rb +0 -46
  296. data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
  297. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -107
  298. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -90
  299. data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
  300. data/lib/stripe/resources/v2/billing/service_action.rb +0 -232
  301. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -81
  302. data/lib/stripe/resources/v2/reporting/report.rb +0 -116
  303. data/lib/stripe/resources/v2/reporting/report_run.rb +0 -158
  304. data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -39
  305. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
  306. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
  307. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
  308. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
  309. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
  310. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
  311. data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
  312. data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
  313. data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
  314. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
  315. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
  316. data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
  317. data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
  318. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
  319. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
  320. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
  321. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
  322. data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
  323. data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
  324. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
  325. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
  326. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
  327. data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
  328. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
  329. data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
  330. data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
  331. data/lib/stripe/services/v2/reporting_service.rb +0 -16
  332. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
  333. data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -15,14 +15,6 @@ module Stripe
15
15
  attr_reader :subscription_schedule
16
16
  # Describes whether the quote line is affecting a new schedule or an existing schedule.
17
17
  attr_reader :type
18
-
19
- def self.inner_class_types
20
- @inner_class_types = {}
21
- end
22
-
23
- def self.field_remappings
24
- @field_remappings = {}
25
- end
26
18
  end
27
19
 
28
20
  class BillingMode < Stripe::StripeObject
@@ -30,14 +22,6 @@ module Stripe
30
22
  attr_reader :type
31
23
  # Details on when the current billing_mode was adopted.
32
24
  attr_reader :updated_at
33
-
34
- def self.inner_class_types
35
- @inner_class_types = {}
36
- end
37
-
38
- def self.field_remappings
39
- @field_remappings = {}
40
- end
41
25
  end
42
26
 
43
27
  class CurrentPhase < Stripe::StripeObject
@@ -45,14 +29,6 @@ module Stripe
45
29
  attr_reader :end_date
46
30
  # The start of this phase of the subscription schedule.
47
31
  attr_reader :start_date
48
-
49
- def self.inner_class_types
50
- @inner_class_types = {}
51
- end
52
-
53
- def self.field_remappings
54
- @field_remappings = {}
55
- end
56
32
  end
57
33
 
58
34
  class DefaultSettings < Stripe::StripeObject
@@ -62,14 +38,6 @@ module Stripe
62
38
  attr_reader :account
63
39
  # Type of the account referenced.
64
40
  attr_reader :type
65
-
66
- def self.inner_class_types
67
- @inner_class_types = {}
68
- end
69
-
70
- def self.field_remappings
71
- @field_remappings = {}
72
- end
73
41
  end
74
42
  # If Stripe disabled automatic tax, this enum describes why.
75
43
  attr_reader :disabled_reason
@@ -77,14 +45,6 @@ module Stripe
77
45
  attr_reader :enabled
78
46
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
79
47
  attr_reader :liability
80
-
81
- def self.inner_class_types
82
- @inner_class_types = { liability: Liability }
83
- end
84
-
85
- def self.field_remappings
86
- @field_remappings = {}
87
- end
88
48
  end
89
49
 
90
50
  class BillingThresholds < Stripe::StripeObject
@@ -92,14 +52,6 @@ module Stripe
92
52
  attr_reader :amount_gte
93
53
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
94
54
  attr_reader :reset_billing_cycle_anchor
95
-
96
- def self.inner_class_types
97
- @inner_class_types = {}
98
- end
99
-
100
- def self.field_remappings
101
- @field_remappings = {}
102
- end
103
55
  end
104
56
 
105
57
  class InvoiceSettings < Stripe::StripeObject
@@ -108,14 +60,6 @@ module Stripe
108
60
  attr_reader :account
109
61
  # Type of the account referenced.
110
62
  attr_reader :type
111
-
112
- def self.inner_class_types
113
- @inner_class_types = {}
114
- end
115
-
116
- def self.field_remappings
117
- @field_remappings = {}
118
- end
119
63
  end
120
64
  # The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
121
65
  attr_reader :account_tax_ids
@@ -123,14 +67,6 @@ module Stripe
123
67
  attr_reader :days_until_due
124
68
  # Attribute for field issuer
125
69
  attr_reader :issuer
126
-
127
- def self.inner_class_types
128
- @inner_class_types = { issuer: Issuer }
129
- end
130
-
131
- def self.field_remappings
132
- @field_remappings = {}
133
- end
134
70
  end
135
71
 
136
72
  class TransferData < Stripe::StripeObject
@@ -138,14 +74,6 @@ module Stripe
138
74
  attr_reader :amount_percent
139
75
  # The account where funds from the payment will be transferred to upon payment success.
140
76
  attr_reader :destination
141
-
142
- def self.inner_class_types
143
- @inner_class_types = {}
144
- end
145
-
146
- def self.field_remappings
147
- @field_remappings = {}
148
- end
149
77
  end
150
78
  # 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 during this phase of the schedule.
151
79
  attr_reader :application_fee_percent
@@ -167,19 +95,6 @@ module Stripe
167
95
  attr_reader :on_behalf_of
168
96
  # The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
169
97
  attr_reader :transfer_data
170
-
171
- def self.inner_class_types
172
- @inner_class_types = {
173
- automatic_tax: AutomaticTax,
174
- billing_thresholds: BillingThresholds,
175
- invoice_settings: InvoiceSettings,
176
- transfer_data: TransferData,
177
- }
178
- end
179
-
180
- def self.field_remappings
181
- @field_remappings = {}
182
- end
183
98
  end
184
99
 
185
100
  class LastPriceMigrationError < Stripe::StripeObject
@@ -188,14 +103,6 @@ module Stripe
188
103
  attr_reader :source_price
189
104
  # The intended resulting price of the migration.
190
105
  attr_reader :target_price
191
-
192
- def self.inner_class_types
193
- @inner_class_types = {}
194
- end
195
-
196
- def self.field_remappings
197
- @field_remappings = {}
198
- end
199
106
  end
200
107
  # The time at which the price migration encountered an error.
201
108
  attr_reader :errored_at
@@ -203,14 +110,6 @@ module Stripe
203
110
  attr_reader :failed_transitions
204
111
  # The type of error encountered by the price migration.
205
112
  attr_reader :type
206
-
207
- def self.inner_class_types
208
- @inner_class_types = { failed_transitions: FailedTransition }
209
- end
210
-
211
- def self.field_remappings
212
- @field_remappings = {}
213
- end
214
113
  end
215
114
 
216
115
  class Phase < Stripe::StripeObject
@@ -221,14 +120,6 @@ module Stripe
221
120
  attr_reader :timestamp
222
121
  # The discount end type.
223
122
  attr_reader :type
224
-
225
- def self.inner_class_types
226
- @inner_class_types = {}
227
- end
228
-
229
- def self.field_remappings
230
- @field_remappings = {}
231
- end
232
123
  end
233
124
  # ID of the coupon to create a new discount for.
234
125
  attr_reader :coupon
@@ -238,14 +129,6 @@ module Stripe
238
129
  attr_reader :discount_end
239
130
  # ID of the promotion code to create a new discount for.
240
131
  attr_reader :promotion_code
241
-
242
- def self.inner_class_types
243
- @inner_class_types = { discount_end: DiscountEnd }
244
- end
245
-
246
- def self.field_remappings
247
- @field_remappings = {}
248
- end
249
132
  end
250
133
 
251
134
  class Period < Stripe::StripeObject
@@ -254,14 +137,6 @@ module Stripe
254
137
  attr_reader :timestamp
255
138
  # Select how to calculate the end of the invoice item period.
256
139
  attr_reader :type
257
-
258
- def self.inner_class_types
259
- @inner_class_types = {}
260
- end
261
-
262
- def self.field_remappings
263
- @field_remappings = {}
264
- end
265
140
  end
266
141
 
267
142
  class Start < Stripe::StripeObject
@@ -269,27 +144,11 @@ module Stripe
269
144
  attr_reader :timestamp
270
145
  # Select how to calculate the start of the invoice item period.
271
146
  attr_reader :type
272
-
273
- def self.inner_class_types
274
- @inner_class_types = {}
275
- end
276
-
277
- def self.field_remappings
278
- @field_remappings = {}
279
- end
280
147
  end
281
148
  # Attribute for field end
282
149
  attr_reader :end
283
150
  # Attribute for field start
284
151
  attr_reader :start
285
-
286
- def self.inner_class_types
287
- @inner_class_types = { end: End, start: Start }
288
- end
289
-
290
- def self.field_remappings
291
- @field_remappings = {}
292
- end
293
152
  end
294
153
  # The stackable discounts that will be applied to the item.
295
154
  attr_reader :discounts
@@ -303,14 +162,6 @@ module Stripe
303
162
  attr_reader :quantity
304
163
  # The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
305
164
  attr_reader :tax_rates
306
-
307
- def self.inner_class_types
308
- @inner_class_types = { discounts: Discount, period: Period }
309
- end
310
-
311
- def self.field_remappings
312
- @field_remappings = {}
313
- end
314
165
  end
315
166
 
316
167
  class AutomaticTax < Stripe::StripeObject
@@ -319,14 +170,6 @@ module Stripe
319
170
  attr_reader :account
320
171
  # Type of the account referenced.
321
172
  attr_reader :type
322
-
323
- def self.inner_class_types
324
- @inner_class_types = {}
325
- end
326
-
327
- def self.field_remappings
328
- @field_remappings = {}
329
- end
330
173
  end
331
174
  # If Stripe disabled automatic tax, this enum describes why.
332
175
  attr_reader :disabled_reason
@@ -334,14 +177,6 @@ module Stripe
334
177
  attr_reader :enabled
335
178
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
336
179
  attr_reader :liability
337
-
338
- def self.inner_class_types
339
- @inner_class_types = { liability: Liability }
340
- end
341
-
342
- def self.field_remappings
343
- @field_remappings = {}
344
- end
345
180
  end
346
181
 
347
182
  class BillingThresholds < Stripe::StripeObject
@@ -349,14 +184,6 @@ module Stripe
349
184
  attr_reader :amount_gte
350
185
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
351
186
  attr_reader :reset_billing_cycle_anchor
352
-
353
- def self.inner_class_types
354
- @inner_class_types = {}
355
- end
356
-
357
- def self.field_remappings
358
- @field_remappings = {}
359
- end
360
187
  end
361
188
 
362
189
  class Discount < Stripe::StripeObject
@@ -365,14 +192,6 @@ module Stripe
365
192
  attr_reader :timestamp
366
193
  # The discount end type.
367
194
  attr_reader :type
368
-
369
- def self.inner_class_types
370
- @inner_class_types = {}
371
- end
372
-
373
- def self.field_remappings
374
- @field_remappings = {}
375
- end
376
195
  end
377
196
  # ID of the coupon to create a new discount for.
378
197
  attr_reader :coupon
@@ -382,14 +201,6 @@ module Stripe
382
201
  attr_reader :discount_end
383
202
  # ID of the promotion code to create a new discount for.
384
203
  attr_reader :promotion_code
385
-
386
- def self.inner_class_types
387
- @inner_class_types = { discount_end: DiscountEnd }
388
- end
389
-
390
- def self.field_remappings
391
- @field_remappings = {}
392
- end
393
204
  end
394
205
 
395
206
  class InvoiceSettings < Stripe::StripeObject
@@ -398,14 +209,6 @@ module Stripe
398
209
  attr_reader :account
399
210
  # Type of the account referenced.
400
211
  attr_reader :type
401
-
402
- def self.inner_class_types
403
- @inner_class_types = {}
404
- end
405
-
406
- def self.field_remappings
407
- @field_remappings = {}
408
- end
409
212
  end
410
213
  # The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
411
214
  attr_reader :account_tax_ids
@@ -413,28 +216,12 @@ module Stripe
413
216
  attr_reader :days_until_due
414
217
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
415
218
  attr_reader :issuer
416
-
417
- def self.inner_class_types
418
- @inner_class_types = { issuer: Issuer }
419
- end
420
-
421
- def self.field_remappings
422
- @field_remappings = {}
423
- end
424
219
  end
425
220
 
426
221
  class Item < Stripe::StripeObject
427
222
  class BillingThresholds < Stripe::StripeObject
428
223
  # Usage threshold that triggers the subscription to create an invoice
429
224
  attr_reader :usage_gte
430
-
431
- def self.inner_class_types
432
- @inner_class_types = {}
433
- end
434
-
435
- def self.field_remappings
436
- @field_remappings = {}
437
- end
438
225
  end
439
226
 
440
227
  class Discount < Stripe::StripeObject
@@ -443,14 +230,6 @@ module Stripe
443
230
  attr_reader :timestamp
444
231
  # The discount end type.
445
232
  attr_reader :type
446
-
447
- def self.inner_class_types
448
- @inner_class_types = {}
449
- end
450
-
451
- def self.field_remappings
452
- @field_remappings = {}
453
- end
454
233
  end
455
234
  # ID of the coupon to create a new discount for.
456
235
  attr_reader :coupon
@@ -460,14 +239,6 @@ module Stripe
460
239
  attr_reader :discount_end
461
240
  # ID of the promotion code to create a new discount for.
462
241
  attr_reader :promotion_code
463
-
464
- def self.inner_class_types
465
- @inner_class_types = { discount_end: DiscountEnd }
466
- end
467
-
468
- def self.field_remappings
469
- @field_remappings = {}
470
- end
471
242
  end
472
243
 
473
244
  class Trial < Stripe::StripeObject
@@ -475,14 +246,6 @@ module Stripe
475
246
  attr_reader :converts_to
476
247
  # Determines the type of trial for this item.
477
248
  attr_reader :type
478
-
479
- def self.inner_class_types
480
- @inner_class_types = {}
481
- end
482
-
483
- def self.field_remappings
484
- @field_remappings = {}
485
- end
486
249
  end
487
250
  # Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
488
251
  attr_reader :billing_thresholds
@@ -500,31 +263,11 @@ module Stripe
500
263
  attr_reader :tax_rates
501
264
  # Options that configure the trial on the subscription item.
502
265
  attr_reader :trial
503
-
504
- def self.inner_class_types
505
- @inner_class_types = {
506
- billing_thresholds: BillingThresholds,
507
- discounts: Discount,
508
- trial: Trial,
509
- }
510
- end
511
-
512
- def self.field_remappings
513
- @field_remappings = {}
514
- end
515
266
  end
516
267
 
517
268
  class PauseCollection < Stripe::StripeObject
518
269
  # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
519
270
  attr_reader :behavior
520
-
521
- def self.inner_class_types
522
- @inner_class_types = {}
523
- end
524
-
525
- def self.field_remappings
526
- @field_remappings = {}
527
- end
528
271
  end
529
272
 
530
273
  class TransferData < Stripe::StripeObject
@@ -532,39 +275,15 @@ module Stripe
532
275
  attr_reader :amount_percent
533
276
  # The account where funds from the payment will be transferred to upon payment success.
534
277
  attr_reader :destination
535
-
536
- def self.inner_class_types
537
- @inner_class_types = {}
538
- end
539
-
540
- def self.field_remappings
541
- @field_remappings = {}
542
- end
543
278
  end
544
279
 
545
280
  class TrialSettings < Stripe::StripeObject
546
281
  class EndBehavior < Stripe::StripeObject
547
282
  # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
548
283
  attr_reader :prorate_up_front
549
-
550
- def self.inner_class_types
551
- @inner_class_types = {}
552
- end
553
-
554
- def self.field_remappings
555
- @field_remappings = {}
556
- end
557
284
  end
558
285
  # Defines how the subscription should behave when a trial ends.
559
286
  attr_reader :end_behavior
560
-
561
- def self.inner_class_types
562
- @inner_class_types = { end_behavior: EndBehavior }
563
- end
564
-
565
- def self.field_remappings
566
- @field_remappings = {}
567
- end
568
287
  end
569
288
  # A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
570
289
  attr_reader :add_invoice_items
@@ -612,24 +331,6 @@ module Stripe
612
331
  attr_reader :trial_end
613
332
  # Settings related to any trials on the subscription during this phase.
614
333
  attr_reader :trial_settings
615
-
616
- def self.inner_class_types
617
- @inner_class_types = {
618
- add_invoice_items: AddInvoiceItem,
619
- automatic_tax: AutomaticTax,
620
- billing_thresholds: BillingThresholds,
621
- discounts: Discount,
622
- invoice_settings: InvoiceSettings,
623
- items: Item,
624
- pause_collection: PauseCollection,
625
- transfer_data: TransferData,
626
- trial_settings: TrialSettings,
627
- }
628
- end
629
-
630
- def self.field_remappings
631
- @field_remappings = {}
632
- end
633
334
  end
634
335
 
635
336
  class Prebilling < Stripe::StripeObject
@@ -641,14 +342,6 @@ module Stripe
641
342
  attr_reader :period_start
642
343
  # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
643
344
  attr_reader :update_behavior
644
-
645
- def self.inner_class_types
646
- @inner_class_types = {}
647
- end
648
-
649
- def self.field_remappings
650
- @field_remappings = {}
651
- end
652
345
  end
653
346
  # ID of the Connect Application that created the schedule.
654
347
  attr_reader :application
@@ -698,21 +391,5 @@ module Stripe
698
391
  attr_reader :subscription
699
392
  # ID of the test clock this subscription schedule belongs to.
700
393
  attr_reader :test_clock
701
-
702
- def self.inner_class_types
703
- @inner_class_types = {
704
- applies_to: AppliesTo,
705
- billing_mode: BillingMode,
706
- current_phase: CurrentPhase,
707
- default_settings: DefaultSettings,
708
- last_price_migration_error: LastPriceMigrationError,
709
- phases: Phase,
710
- prebilling: Prebilling,
711
- }
712
- end
713
-
714
- def self.field_remappings
715
- @field_remappings = {}
716
- end
717
394
  end
718
395
  end
@@ -92,14 +92,6 @@ module Stripe
92
92
  opts: opts
93
93
  )
94
94
  end
95
-
96
- def self.inner_class_types
97
- @inner_class_types = {}
98
- end
99
-
100
- def self.field_remappings
101
- @field_remappings = {}
102
- end
103
95
  end
104
96
  end
105
97
  end
@@ -181,14 +181,6 @@ module Stripe
181
181
  opts: opts
182
182
  )
183
183
  end
184
-
185
- def self.inner_class_types
186
- @inner_class_types = {}
187
- end
188
-
189
- def self.field_remappings
190
- @field_remappings = {}
191
- end
192
184
  end
193
185
  end
194
186
  end
@@ -140,14 +140,6 @@ module Stripe
140
140
  opts: opts
141
141
  )
142
142
  end
143
-
144
- def self.inner_class_types
145
- @inner_class_types = {}
146
- end
147
-
148
- def self.field_remappings
149
- @field_remappings = {}
150
- end
151
143
  end
152
144
  end
153
145
  end