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.
- checksums.yaml +4 -4
- data/API_VERSION +1 -1
- data/CHANGELOG.md +1 -71
- data/OPENAPI_VERSION +1 -1
- data/README.md +4 -6
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -2
- data/lib/stripe/errors.rb +0 -3
- data/lib/stripe/event_types.rb +0 -83
- data/lib/stripe/object_types.rb +0 -27
- data/lib/stripe/resources/account.rb +0 -443
- data/lib/stripe/resources/account_link.rb +0 -8
- data/lib/stripe/resources/account_notice.rb +0 -24
- data/lib/stripe/resources/account_session.rb +10 -435
- data/lib/stripe/resources/apple_pay_domain.rb +0 -8
- data/lib/stripe/resources/application.rb +0 -8
- data/lib/stripe/resources/application_fee.rb +0 -16
- data/lib/stripe/resources/application_fee_refund.rb +0 -8
- data/lib/stripe/resources/apps/secret.rb +0 -16
- data/lib/stripe/resources/balance.rb +0 -159
- data/lib/stripe/resources/balance_settings.rb +0 -40
- data/lib/stripe/resources/balance_transaction.rb +0 -16
- data/lib/stripe/resources/bank_account.rb +0 -40
- data/lib/stripe/resources/billing/alert.rb +1 -203
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -14
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -130
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -157
- data/lib/stripe/resources/billing/credit_grant.rb +2 -133
- data/lib/stripe/resources/billing/meter.rb +0 -45
- data/lib/stripe/resources/billing/meter_event.rb +0 -8
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -8
- data/lib/stripe/resources/billing/meter_usage.rb +0 -8
- data/lib/stripe/resources/billing/meter_usage_row.rb +0 -8
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -122
- data/lib/stripe/resources/billing_portal/session.rb +0 -101
- data/lib/stripe/resources/capability.rb +0 -56
- data/lib/stripe/resources/capital/financing_offer.rb +0 -24
- data/lib/stripe/resources/capital/financing_summary.rb +0 -24
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
- data/lib/stripe/resources/card.rb +0 -16
- data/lib/stripe/resources/cash_balance.rb +0 -16
- data/lib/stripe/resources/charge.rb +20 -1052
- data/lib/stripe/resources/checkout/session.rb +1 -1078
- data/lib/stripe/resources/climate/order.rb +0 -32
- data/lib/stripe/resources/climate/product.rb +0 -16
- data/lib/stripe/resources/climate/supplier.rb +0 -16
- data/lib/stripe/resources/confirmation_token.rb +38 -960
- data/lib/stripe/resources/connect_collection_transfer.rb +0 -8
- data/lib/stripe/resources/country_spec.rb +0 -32
- data/lib/stripe/resources/coupon.rb +0 -36
- data/lib/stripe/resources/credit_note.rb +0 -70
- data/lib/stripe/resources/credit_note_line_item.rb +0 -53
- data/lib/stripe/resources/customer.rb +0 -77
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -8
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -108
- data/lib/stripe/resources/customer_session.rb +0 -52
- data/lib/stripe/resources/discount.rb +0 -8
- data/lib/stripe/resources/dispute.rb +0 -166
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -8
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -8
- data/lib/stripe/resources/entitlements/feature.rb +0 -8
- data/lib/stripe/resources/ephemeral_key.rb +0 -8
- data/lib/stripe/resources/event.rb +0 -56
- data/lib/stripe/resources/exchange_rate.rb +0 -8
- data/lib/stripe/resources/file.rb +0 -8
- data/lib/stripe/resources/file_link.rb +0 -8
- data/lib/stripe/resources/financial_connections/account.rb +0 -79
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -8
- data/lib/stripe/resources/financial_connections/account_owner.rb +0 -8
- data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -8
- data/lib/stripe/resources/financial_connections/institution.rb +0 -53
- data/lib/stripe/resources/financial_connections/session.rb +1 -63
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -16
- data/lib/stripe/resources/forwarding/request.rb +0 -52
- data/lib/stripe/resources/funding_instructions.rb +0 -193
- data/lib/stripe/resources/fx_quote.rb +0 -48
- data/lib/stripe/resources/identity/verification_report.rb +1 -166
- data/lib/stripe/resources/identity/verification_session.rb +1 -126
- data/lib/stripe/resources/invoice.rb +3 -452
- data/lib/stripe/resources/invoice_item.rb +0 -136
- data/lib/stripe/resources/invoice_line_item.rb +0 -238
- data/lib/stripe/resources/invoice_payment.rb +0 -24
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -8
- data/lib/stripe/resources/issuing/authorization.rb +0 -177
- data/lib/stripe/resources/issuing/card.rb +8 -96
- data/lib/stripe/resources/issuing/cardholder.rb +0 -110
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -82
- data/lib/stripe/resources/issuing/dispute.rb +0 -97
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -16
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -8
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -36
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -16
- data/lib/stripe/resources/issuing/settlement.rb +0 -8
- data/lib/stripe/resources/issuing/token.rb +0 -61
- data/lib/stripe/resources/issuing/transaction.rb +0 -151
- data/lib/stripe/resources/line_item.rb +0 -54
- data/lib/stripe/resources/login_link.rb +0 -8
- data/lib/stripe/resources/mandate.rb +11 -242
- data/lib/stripe/resources/margin.rb +0 -8
- data/lib/stripe/resources/order.rb +0 -348
- data/lib/stripe/resources/payment_attempt_record.rb +15 -890
- data/lib/stripe/resources/payment_intent.rb +3 -1405
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -56
- data/lib/stripe/resources/payment_link.rb +0 -337
- data/lib/stripe/resources/payment_method.rb +38 -884
- data/lib/stripe/resources/payment_method_configuration.rb +0 -961
- data/lib/stripe/resources/payment_method_domain.rb +0 -111
- data/lib/stripe/resources/payment_record.rb +15 -890
- data/lib/stripe/resources/payout.rb +0 -16
- data/lib/stripe/resources/person.rb +0 -180
- data/lib/stripe/resources/plan.rb +0 -24
- data/lib/stripe/resources/price.rb +0 -79
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -16
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -16
- data/lib/stripe/resources/product.rb +0 -27
- data/lib/stripe/resources/product_feature.rb +0 -8
- data/lib/stripe/resources/promotion_code.rb +0 -24
- data/lib/stripe/resources/quote.rb +0 -432
- data/lib/stripe/resources/quote_line.rb +0 -247
- data/lib/stripe/resources/quote_preview_invoice.rb +3 -457
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -323
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -8
- data/lib/stripe/resources/radar/value_list.rb +0 -8
- data/lib/stripe/resources/radar/value_list_item.rb +0 -8
- data/lib/stripe/resources/refund.rb +19 -380
- data/lib/stripe/resources/reporting/report_run.rb +0 -16
- data/lib/stripe/resources/reporting/report_type.rb +0 -8
- data/lib/stripe/resources/reserve_transaction.rb +0 -8
- data/lib/stripe/resources/reversal.rb +0 -8
- data/lib/stripe/resources/review.rb +0 -24
- data/lib/stripe/resources/setup_attempt.rb +20 -331
- data/lib/stripe/resources/setup_intent.rb +2 -293
- data/lib/stripe/resources/shipping_rate.rb +0 -48
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -16
- data/lib/stripe/resources/source.rb +0 -274
- data/lib/stripe/resources/source_mandate_notification.rb +0 -32
- data/lib/stripe/resources/source_transaction.rb +0 -54
- data/lib/stripe/resources/subscription.rb +3 -356
- data/lib/stripe/resources/subscription_item.rb +0 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -314
- data/lib/stripe/resources/tax/association.rb +0 -32
- data/lib/stripe/resources/tax/calculation.rb +0 -109
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -32
- data/lib/stripe/resources/tax/form.rb +0 -107
- data/lib/stripe/resources/tax/registration.rb +0 -1232
- data/lib/stripe/resources/tax/settings.rb +1 -61
- data/lib/stripe/resources/tax/transaction.rb +0 -93
- data/lib/stripe/resources/tax/transaction_line_item.rb +0 -16
- data/lib/stripe/resources/tax_code.rb +0 -8
- data/lib/stripe/resources/tax_deducted_at_source.rb +0 -8
- data/lib/stripe/resources/tax_id.rb +0 -24
- data/lib/stripe/resources/tax_rate.rb +0 -16
- data/lib/stripe/resources/terminal/configuration.rb +0 -299
- data/lib/stripe/resources/terminal/connection_token.rb +0 -8
- data/lib/stripe/resources/terminal/location.rb +0 -16
- data/lib/stripe/resources/terminal/onboarding_link.rb +0 -24
- data/lib/stripe/resources/terminal/reader.rb +0 -241
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -16
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -24
- data/lib/stripe/resources/token.rb +0 -8
- data/lib/stripe/resources/topup.rb +0 -8
- data/lib/stripe/resources/transfer.rb +0 -8
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -16
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -24
- data/lib/stripe/resources/treasury/financial_account.rb +0 -61
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -192
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -69
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -106
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -114
- data/lib/stripe/resources/treasury/received_credit.rb +0 -97
- data/lib/stripe/resources/treasury/received_debit.rb +0 -89
- data/lib/stripe/resources/treasury/transaction.rb +0 -36
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -24
- data/lib/stripe/resources/v2/billing/meter_event.rb +0 -8
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -8
- data/lib/stripe/resources/v2/core/account.rb +0 -1900
- data/lib/stripe/resources/v2/core/account_link.rb +0 -51
- data/lib/stripe/resources/v2/core/person.rb +0 -201
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -40
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -8
- data/lib/stripe/resources/v2/event.rb +0 -26
- data/lib/stripe/resources/v2/event_destination.rb +0 -44
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -8
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -8
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -16
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -63
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -32
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +3 -90
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -88
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -62
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -24
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -79
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -32
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -32
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -77
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -52
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -36
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -35
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -24
- data/lib/stripe/resources/webhook_endpoint.rb +0 -8
- data/lib/stripe/resources.rb +0 -85
- data/lib/stripe/services/billing/alert_service.rb +1 -75
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
- data/lib/stripe/services/checkout/session_service.rb +1 -80
- data/lib/stripe/services/invoice_service.rb +0 -4
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/subscription_service.rb +0 -27
- data/lib/stripe/services/v2/billing_service.rb +1 -18
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -29
- data/lib/stripe/stripe_object.rb +1 -25
- data/lib/stripe/util.rb +5 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +37685 -116505
- metadata +2 -116
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -323
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -296
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -284
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -103
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -90
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -107
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -90
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -232
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -81
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -158
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -39
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
- data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -1,465 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class IntentService < StripeService
|
8
|
-
attr_reader :actions
|
9
|
-
|
10
|
-
def initialize(requestor)
|
11
|
-
super
|
12
|
-
@actions = Stripe::V2::Billing::Intents::ActionService.new(@requestor)
|
13
|
-
end
|
14
|
-
|
15
|
-
class ListParams < Stripe::RequestParams
|
16
|
-
# Optionally set the maximum number of results per page. Defaults to 10.
|
17
|
-
attr_accessor :limit
|
18
|
-
|
19
|
-
def initialize(limit: nil)
|
20
|
-
@limit = limit
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
class CreateParams < Stripe::RequestParams
|
25
|
-
class Action < Stripe::RequestParams
|
26
|
-
class Apply < Stripe::RequestParams
|
27
|
-
class InvoiceDiscountRule < Stripe::RequestParams
|
28
|
-
class PercentOff < Stripe::RequestParams
|
29
|
-
class MaximumApplications < Stripe::RequestParams
|
30
|
-
# The type of maximum applications configuration.
|
31
|
-
attr_accessor :type
|
32
|
-
|
33
|
-
def initialize(type: nil)
|
34
|
-
@type = type
|
35
|
-
end
|
36
|
-
end
|
37
|
-
# The maximum number of times this discount can be applied for this cadence.
|
38
|
-
attr_accessor :maximum_applications
|
39
|
-
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
40
|
-
attr_accessor :percent_off
|
41
|
-
|
42
|
-
def initialize(maximum_applications: nil, percent_off: nil)
|
43
|
-
@maximum_applications = maximum_applications
|
44
|
-
@percent_off = percent_off
|
45
|
-
end
|
46
|
-
end
|
47
|
-
# The entity that the discount rule applies to, for example, the cadence.
|
48
|
-
attr_accessor :applies_to
|
49
|
-
# Type of the discount rule.
|
50
|
-
attr_accessor :type
|
51
|
-
# Configuration for percentage off discount.
|
52
|
-
attr_accessor :percent_off
|
53
|
-
|
54
|
-
def initialize(applies_to: nil, type: nil, percent_off: nil)
|
55
|
-
@applies_to = applies_to
|
56
|
-
@type = type
|
57
|
-
@percent_off = percent_off
|
58
|
-
end
|
59
|
-
end
|
60
|
-
# Type of the apply action details.
|
61
|
-
attr_accessor :type
|
62
|
-
# Details for applying a discount rule to future invoices.
|
63
|
-
attr_accessor :invoice_discount_rule
|
64
|
-
|
65
|
-
def initialize(type: nil, invoice_discount_rule: nil)
|
66
|
-
@type = type
|
67
|
-
@invoice_discount_rule = invoice_discount_rule
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
class Deactivate < Stripe::RequestParams
|
72
|
-
class BillingDetails < Stripe::RequestParams
|
73
|
-
# This controls the proration adjustment for the partial servicing period.
|
74
|
-
attr_accessor :proration_behavior
|
75
|
-
|
76
|
-
def initialize(proration_behavior: nil)
|
77
|
-
@proration_behavior = proration_behavior
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
class EffectiveAt < Stripe::RequestParams
|
82
|
-
# The timestamp at which the deactivate action will take effect. Only present if type is timestamp.
|
83
|
-
attr_accessor :timestamp
|
84
|
-
# When the deactivate action will take effect.
|
85
|
-
attr_accessor :type
|
86
|
-
|
87
|
-
def initialize(timestamp: nil, type: nil)
|
88
|
-
@timestamp = timestamp
|
89
|
-
@type = type
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
class PricingPlanSubscriptionDetails < Stripe::RequestParams
|
94
|
-
# ID of the pricing plan subscription to deactivate.
|
95
|
-
attr_accessor :pricing_plan_subscription
|
96
|
-
|
97
|
-
def initialize(pricing_plan_subscription: nil)
|
98
|
-
@pricing_plan_subscription = pricing_plan_subscription
|
99
|
-
end
|
100
|
-
end
|
101
|
-
# Configuration for the billing details.
|
102
|
-
attr_accessor :billing_details
|
103
|
-
# When the deactivate action will take effect. If not specified, the default behavior is on_reserve.
|
104
|
-
attr_accessor :effective_at
|
105
|
-
# Details for deactivating a pricing plan subscription.
|
106
|
-
attr_accessor :pricing_plan_subscription_details
|
107
|
-
# Type of the action details.
|
108
|
-
attr_accessor :type
|
109
|
-
|
110
|
-
def initialize(
|
111
|
-
billing_details: nil,
|
112
|
-
effective_at: nil,
|
113
|
-
pricing_plan_subscription_details: nil,
|
114
|
-
type: nil
|
115
|
-
)
|
116
|
-
@billing_details = billing_details
|
117
|
-
@effective_at = effective_at
|
118
|
-
@pricing_plan_subscription_details = pricing_plan_subscription_details
|
119
|
-
@type = type
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
class Modify < Stripe::RequestParams
|
124
|
-
class BillingDetails < Stripe::RequestParams
|
125
|
-
# This controls the proration adjustment for the partial servicing period.
|
126
|
-
attr_accessor :proration_behavior
|
127
|
-
|
128
|
-
def initialize(proration_behavior: nil)
|
129
|
-
@proration_behavior = proration_behavior
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
class EffectiveAt < Stripe::RequestParams
|
134
|
-
# The timestamp at which the modify action will take effect. Only present if type is timestamp.
|
135
|
-
attr_accessor :timestamp
|
136
|
-
# When the modify action will take effect.
|
137
|
-
attr_accessor :type
|
138
|
-
|
139
|
-
def initialize(timestamp: nil, type: nil)
|
140
|
-
@timestamp = timestamp
|
141
|
-
@type = type
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
class PricingPlanSubscriptionDetails < Stripe::RequestParams
|
146
|
-
class ComponentConfiguration < Stripe::RequestParams
|
147
|
-
# Quantity of the component to be used.
|
148
|
-
attr_accessor :quantity
|
149
|
-
# Lookup key for the pricing plan component.
|
150
|
-
attr_accessor :lookup_key
|
151
|
-
# ID of the pricing plan component.
|
152
|
-
attr_accessor :pricing_plan_component
|
153
|
-
|
154
|
-
def initialize(quantity: nil, lookup_key: nil, pricing_plan_component: nil)
|
155
|
-
@quantity = quantity
|
156
|
-
@lookup_key = lookup_key
|
157
|
-
@pricing_plan_component = pricing_plan_component
|
158
|
-
end
|
159
|
-
end
|
160
|
-
# New configurations for the components of the pricing plan.
|
161
|
-
attr_accessor :component_configurations
|
162
|
-
# The ID of the new Pricing Plan, if changing plans.
|
163
|
-
attr_accessor :new_pricing_plan
|
164
|
-
# The ID of the new Pricing Plan Version to use.
|
165
|
-
attr_accessor :new_pricing_plan_version
|
166
|
-
# The ID of the Pricing Plan Subscription to modify.
|
167
|
-
attr_accessor :pricing_plan_subscription
|
168
|
-
|
169
|
-
def initialize(
|
170
|
-
component_configurations: nil,
|
171
|
-
new_pricing_plan: nil,
|
172
|
-
new_pricing_plan_version: nil,
|
173
|
-
pricing_plan_subscription: nil
|
174
|
-
)
|
175
|
-
@component_configurations = component_configurations
|
176
|
-
@new_pricing_plan = new_pricing_plan
|
177
|
-
@new_pricing_plan_version = new_pricing_plan_version
|
178
|
-
@pricing_plan_subscription = pricing_plan_subscription
|
179
|
-
end
|
180
|
-
end
|
181
|
-
# Configuration for the billing details.
|
182
|
-
attr_accessor :billing_details
|
183
|
-
# When the modify action will take effect. If not specified, the default behavior is on_reserve.
|
184
|
-
attr_accessor :effective_at
|
185
|
-
# Details for modifying a pricing plan subscription.
|
186
|
-
attr_accessor :pricing_plan_subscription_details
|
187
|
-
# Type of the action details.
|
188
|
-
attr_accessor :type
|
189
|
-
|
190
|
-
def initialize(
|
191
|
-
billing_details: nil,
|
192
|
-
effective_at: nil,
|
193
|
-
pricing_plan_subscription_details: nil,
|
194
|
-
type: nil
|
195
|
-
)
|
196
|
-
@billing_details = billing_details
|
197
|
-
@effective_at = effective_at
|
198
|
-
@pricing_plan_subscription_details = pricing_plan_subscription_details
|
199
|
-
@type = type
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
class Remove < Stripe::RequestParams
|
204
|
-
# Type of the remove action.
|
205
|
-
attr_accessor :type
|
206
|
-
# The ID of the discount rule to remove for future invoices.
|
207
|
-
attr_accessor :invoice_discount_rule
|
208
|
-
|
209
|
-
def initialize(type: nil, invoice_discount_rule: nil)
|
210
|
-
@type = type
|
211
|
-
@invoice_discount_rule = invoice_discount_rule
|
212
|
-
end
|
213
|
-
end
|
214
|
-
|
215
|
-
class Subscribe < Stripe::RequestParams
|
216
|
-
class BillingDetails < Stripe::RequestParams
|
217
|
-
# This controls the proration adjustment for the partial servicing period.
|
218
|
-
attr_accessor :proration_behavior
|
219
|
-
|
220
|
-
def initialize(proration_behavior: nil)
|
221
|
-
@proration_behavior = proration_behavior
|
222
|
-
end
|
223
|
-
end
|
224
|
-
|
225
|
-
class EffectiveAt < Stripe::RequestParams
|
226
|
-
# The timestamp at which the subscribe action will take effect. Only present if type is timestamp.
|
227
|
-
attr_accessor :timestamp
|
228
|
-
# When the subscribe action will take effect.
|
229
|
-
attr_accessor :type
|
230
|
-
|
231
|
-
def initialize(timestamp: nil, type: nil)
|
232
|
-
@timestamp = timestamp
|
233
|
-
@type = type
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
class PricingPlanSubscriptionDetails < Stripe::RequestParams
|
238
|
-
class ComponentConfiguration < Stripe::RequestParams
|
239
|
-
# Quantity of the component to be used.
|
240
|
-
attr_accessor :quantity
|
241
|
-
# Lookup key for the pricing plan component.
|
242
|
-
attr_accessor :lookup_key
|
243
|
-
# ID of the pricing plan component.
|
244
|
-
attr_accessor :pricing_plan_component
|
245
|
-
|
246
|
-
def initialize(quantity: nil, lookup_key: nil, pricing_plan_component: nil)
|
247
|
-
@quantity = quantity
|
248
|
-
@lookup_key = lookup_key
|
249
|
-
@pricing_plan_component = pricing_plan_component
|
250
|
-
end
|
251
|
-
end
|
252
|
-
# Configurations for the components of the pricing plan.
|
253
|
-
attr_accessor :component_configurations
|
254
|
-
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
255
|
-
attr_accessor :metadata
|
256
|
-
# ID of the Pricing Plan to subscribe to.
|
257
|
-
attr_accessor :pricing_plan
|
258
|
-
# Version of the Pricing Plan to use.
|
259
|
-
attr_accessor :pricing_plan_version
|
260
|
-
|
261
|
-
def initialize(
|
262
|
-
component_configurations: nil,
|
263
|
-
metadata: nil,
|
264
|
-
pricing_plan: nil,
|
265
|
-
pricing_plan_version: nil
|
266
|
-
)
|
267
|
-
@component_configurations = component_configurations
|
268
|
-
@metadata = metadata
|
269
|
-
@pricing_plan = pricing_plan
|
270
|
-
@pricing_plan_version = pricing_plan_version
|
271
|
-
end
|
272
|
-
end
|
273
|
-
|
274
|
-
class V1SubscriptionDetails < Stripe::RequestParams
|
275
|
-
class Item < Stripe::RequestParams
|
276
|
-
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
277
|
-
attr_accessor :metadata
|
278
|
-
# The ID of the price object.
|
279
|
-
attr_accessor :price
|
280
|
-
# Quantity for this item. If not provided, will default to 1.
|
281
|
-
attr_accessor :quantity
|
282
|
-
|
283
|
-
def initialize(metadata: nil, price: nil, quantity: nil)
|
284
|
-
@metadata = metadata
|
285
|
-
@price = price
|
286
|
-
@quantity = quantity
|
287
|
-
end
|
288
|
-
end
|
289
|
-
# The subscription’s description, meant to be displayable to the customer.
|
290
|
-
# Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
291
|
-
attr_accessor :description
|
292
|
-
# A list of up to 20 subscription items, each with an attached price.
|
293
|
-
attr_accessor :items
|
294
|
-
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
295
|
-
attr_accessor :metadata
|
296
|
-
|
297
|
-
def initialize(description: nil, items: nil, metadata: nil)
|
298
|
-
@description = description
|
299
|
-
@items = items
|
300
|
-
@metadata = metadata
|
301
|
-
end
|
302
|
-
end
|
303
|
-
# Configuration for the billing details. If not specified, see the default behavior for individual attributes.
|
304
|
-
attr_accessor :billing_details
|
305
|
-
# When the subscribe action will take effect. If not specified, the default behavior is on_reserve.
|
306
|
-
attr_accessor :effective_at
|
307
|
-
# Type of the action details.
|
308
|
-
attr_accessor :type
|
309
|
-
# Details for subscribing to a pricing plan.
|
310
|
-
attr_accessor :pricing_plan_subscription_details
|
311
|
-
# Details for subscribing to a v1 subscription.
|
312
|
-
attr_accessor :v1_subscription_details
|
313
|
-
|
314
|
-
def initialize(
|
315
|
-
billing_details: nil,
|
316
|
-
effective_at: nil,
|
317
|
-
type: nil,
|
318
|
-
pricing_plan_subscription_details: nil,
|
319
|
-
v1_subscription_details: nil
|
320
|
-
)
|
321
|
-
@billing_details = billing_details
|
322
|
-
@effective_at = effective_at
|
323
|
-
@type = type
|
324
|
-
@pricing_plan_subscription_details = pricing_plan_subscription_details
|
325
|
-
@v1_subscription_details = v1_subscription_details
|
326
|
-
end
|
327
|
-
end
|
328
|
-
# Type of the Billing Intent action.
|
329
|
-
attr_accessor :type
|
330
|
-
# Details for an apply action.
|
331
|
-
attr_accessor :apply
|
332
|
-
# Details for a deactivate action.
|
333
|
-
attr_accessor :deactivate
|
334
|
-
# Details for a modify action.
|
335
|
-
attr_accessor :modify
|
336
|
-
# Details for a remove action.
|
337
|
-
attr_accessor :remove
|
338
|
-
# Details for a subscribe action.
|
339
|
-
attr_accessor :subscribe
|
340
|
-
|
341
|
-
def initialize(
|
342
|
-
type: nil,
|
343
|
-
apply: nil,
|
344
|
-
deactivate: nil,
|
345
|
-
modify: nil,
|
346
|
-
remove: nil,
|
347
|
-
subscribe: nil
|
348
|
-
)
|
349
|
-
@type = type
|
350
|
-
@apply = apply
|
351
|
-
@deactivate = deactivate
|
352
|
-
@modify = modify
|
353
|
-
@remove = remove
|
354
|
-
@subscribe = subscribe
|
355
|
-
end
|
356
|
-
end
|
357
|
-
# Actions to be performed by this Billing Intent.
|
358
|
-
attr_accessor :actions
|
359
|
-
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
360
|
-
attr_accessor :currency
|
361
|
-
# ID of an existing Cadence to use.
|
362
|
-
attr_accessor :cadence
|
363
|
-
|
364
|
-
def initialize(actions: nil, currency: nil, cadence: nil)
|
365
|
-
@actions = actions
|
366
|
-
@currency = currency
|
367
|
-
@cadence = cadence
|
368
|
-
end
|
369
|
-
end
|
370
|
-
|
371
|
-
class RetrieveParams < Stripe::RequestParams; end
|
372
|
-
class CancelParams < Stripe::RequestParams; end
|
373
|
-
|
374
|
-
class CommitParams < Stripe::RequestParams
|
375
|
-
# ID of the PaymentIntent associated with this commit.
|
376
|
-
attr_accessor :payment_intent
|
377
|
-
|
378
|
-
def initialize(payment_intent: nil)
|
379
|
-
@payment_intent = payment_intent
|
380
|
-
end
|
381
|
-
end
|
382
|
-
|
383
|
-
class ReleaseReservationParams < Stripe::RequestParams; end
|
384
|
-
class ReserveParams < Stripe::RequestParams; end
|
385
|
-
|
386
|
-
# Cancel a Billing Intent.
|
387
|
-
def cancel(id, params = {}, opts = {})
|
388
|
-
request(
|
389
|
-
method: :post,
|
390
|
-
path: format("/v2/billing/intents/%<id>s/cancel", { id: CGI.escape(id) }),
|
391
|
-
params: params,
|
392
|
-
opts: opts,
|
393
|
-
base_address: :api
|
394
|
-
)
|
395
|
-
end
|
396
|
-
|
397
|
-
# Commit a Billing Intent.
|
398
|
-
def commit(id, params = {}, opts = {})
|
399
|
-
request(
|
400
|
-
method: :post,
|
401
|
-
path: format("/v2/billing/intents/%<id>s/commit", { id: CGI.escape(id) }),
|
402
|
-
params: params,
|
403
|
-
opts: opts,
|
404
|
-
base_address: :api
|
405
|
-
)
|
406
|
-
end
|
407
|
-
|
408
|
-
# Create a Billing Intent.
|
409
|
-
def create(params = {}, opts = {})
|
410
|
-
request(
|
411
|
-
method: :post,
|
412
|
-
path: "/v2/billing/intents",
|
413
|
-
params: params,
|
414
|
-
opts: opts,
|
415
|
-
base_address: :api
|
416
|
-
)
|
417
|
-
end
|
418
|
-
|
419
|
-
# List Billing Intents.
|
420
|
-
def list(params = {}, opts = {})
|
421
|
-
request(
|
422
|
-
method: :get,
|
423
|
-
path: "/v2/billing/intents",
|
424
|
-
params: params,
|
425
|
-
opts: opts,
|
426
|
-
base_address: :api
|
427
|
-
)
|
428
|
-
end
|
429
|
-
|
430
|
-
# Release a Billing Intent.
|
431
|
-
def release_reservation(id, params = {}, opts = {})
|
432
|
-
request(
|
433
|
-
method: :post,
|
434
|
-
path: format("/v2/billing/intents/%<id>s/release_reservation", { id: CGI.escape(id) }),
|
435
|
-
params: params,
|
436
|
-
opts: opts,
|
437
|
-
base_address: :api
|
438
|
-
)
|
439
|
-
end
|
440
|
-
|
441
|
-
# Reserve a Billing Intent.
|
442
|
-
def reserve(id, params = {}, opts = {})
|
443
|
-
request(
|
444
|
-
method: :post,
|
445
|
-
path: format("/v2/billing/intents/%<id>s/reserve", { id: CGI.escape(id) }),
|
446
|
-
params: params,
|
447
|
-
opts: opts,
|
448
|
-
base_address: :api
|
449
|
-
)
|
450
|
-
end
|
451
|
-
|
452
|
-
# Retrieve a Billing Intent.
|
453
|
-
def retrieve(id, params = {}, opts = {})
|
454
|
-
request(
|
455
|
-
method: :get,
|
456
|
-
path: format("/v2/billing/intents/%<id>s", { id: CGI.escape(id) }),
|
457
|
-
params: params,
|
458
|
-
opts: opts,
|
459
|
-
base_address: :api
|
460
|
-
)
|
461
|
-
end
|
462
|
-
end
|
463
|
-
end
|
464
|
-
end
|
465
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
module Intents
|
8
|
-
class ActionService < StripeService
|
9
|
-
class ListParams < Stripe::RequestParams
|
10
|
-
# Optionally set the maximum number of results per page. Defaults to 10.
|
11
|
-
attr_accessor :limit
|
12
|
-
|
13
|
-
def initialize(limit: nil)
|
14
|
-
@limit = limit
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
class RetrieveParams < Stripe::RequestParams; end
|
19
|
-
|
20
|
-
# List Billing Intent Actions.
|
21
|
-
def list(intent_id, params = {}, opts = {})
|
22
|
-
request(
|
23
|
-
method: :get,
|
24
|
-
path: format("/v2/billing/intents/%<intent_id>s/actions", { intent_id: CGI.escape(intent_id) }),
|
25
|
-
params: params,
|
26
|
-
opts: opts,
|
27
|
-
base_address: :api
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
# Retrieve a Billing Intent Action.
|
32
|
-
def retrieve(intent_id, id, params = {}, opts = {})
|
33
|
-
request(
|
34
|
-
method: :get,
|
35
|
-
path: format("/v2/billing/intents/%<intent_id>s/actions/%<id>s", { intent_id: CGI.escape(intent_id), id: CGI.escape(id) }),
|
36
|
-
params: params,
|
37
|
-
opts: opts,
|
38
|
-
base_address: :api
|
39
|
-
)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|