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
@@ -24,14 +24,6 @@ module Stripe
|
|
24
24
|
attr_reader :account
|
25
25
|
# Type of the account referenced.
|
26
26
|
attr_reader :type
|
27
|
-
|
28
|
-
def self.inner_class_types
|
29
|
-
@inner_class_types = {}
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.field_remappings
|
33
|
-
@field_remappings = {}
|
34
|
-
end
|
35
27
|
end
|
36
28
|
# Automatically calculate taxes
|
37
29
|
attr_reader :enabled
|
@@ -41,14 +33,6 @@ module Stripe
|
|
41
33
|
attr_reader :provider
|
42
34
|
# The status of the most recent automated tax calculation for this quote.
|
43
35
|
attr_reader :status
|
44
|
-
|
45
|
-
def self.inner_class_types
|
46
|
-
@inner_class_types = { liability: Liability }
|
47
|
-
end
|
48
|
-
|
49
|
-
def self.field_remappings
|
50
|
-
@field_remappings = {}
|
51
|
-
end
|
52
36
|
end
|
53
37
|
|
54
38
|
class Computed < Stripe::StripeObject
|
@@ -60,27 +44,11 @@ module Stripe
|
|
60
44
|
attr_reader :message
|
61
45
|
# The reason the reestimation failed.
|
62
46
|
attr_reader :reason
|
63
|
-
|
64
|
-
def self.inner_class_types
|
65
|
-
@inner_class_types = {}
|
66
|
-
end
|
67
|
-
|
68
|
-
def self.field_remappings
|
69
|
-
@field_remappings = {}
|
70
|
-
end
|
71
47
|
end
|
72
48
|
# When `status` is `failed`, provides details about the quote reestimation failure.
|
73
49
|
attr_reader :failed
|
74
50
|
# Latest status of the reestimation.
|
75
51
|
attr_reader :status
|
76
|
-
|
77
|
-
def self.inner_class_types
|
78
|
-
@inner_class_types = { failed: Failed }
|
79
|
-
end
|
80
|
-
|
81
|
-
def self.field_remappings
|
82
|
-
@field_remappings = {}
|
83
|
-
end
|
84
52
|
end
|
85
53
|
|
86
54
|
class Recurring < Stripe::StripeObject
|
@@ -94,14 +62,6 @@ module Stripe
|
|
94
62
|
#
|
95
63
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
96
64
|
attr_reader :discount
|
97
|
-
|
98
|
-
def self.inner_class_types
|
99
|
-
@inner_class_types = {}
|
100
|
-
end
|
101
|
-
|
102
|
-
def self.field_remappings
|
103
|
-
@field_remappings = {}
|
104
|
-
end
|
105
65
|
end
|
106
66
|
|
107
67
|
class Tax < Stripe::StripeObject
|
@@ -115,27 +75,11 @@ module Stripe
|
|
115
75
|
attr_reader :taxability_reason
|
116
76
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
117
77
|
attr_reader :taxable_amount
|
118
|
-
|
119
|
-
def self.inner_class_types
|
120
|
-
@inner_class_types = {}
|
121
|
-
end
|
122
|
-
|
123
|
-
def self.field_remappings
|
124
|
-
@field_remappings = {}
|
125
|
-
end
|
126
78
|
end
|
127
79
|
# The aggregated discounts.
|
128
80
|
attr_reader :discounts
|
129
81
|
# The aggregated tax amounts by rate.
|
130
82
|
attr_reader :taxes
|
131
|
-
|
132
|
-
def self.inner_class_types
|
133
|
-
@inner_class_types = { discounts: Discount, taxes: Tax }
|
134
|
-
end
|
135
|
-
|
136
|
-
def self.field_remappings
|
137
|
-
@field_remappings = {}
|
138
|
-
end
|
139
83
|
end
|
140
84
|
# This is the sum of all the discounts.
|
141
85
|
attr_reader :amount_discount
|
@@ -145,14 +89,6 @@ module Stripe
|
|
145
89
|
attr_reader :amount_tax
|
146
90
|
# Attribute for field breakdown
|
147
91
|
attr_reader :breakdown
|
148
|
-
|
149
|
-
def self.inner_class_types
|
150
|
-
@inner_class_types = { breakdown: Breakdown }
|
151
|
-
end
|
152
|
-
|
153
|
-
def self.field_remappings
|
154
|
-
@field_remappings = {}
|
155
|
-
end
|
156
92
|
end
|
157
93
|
# Total before any discounts or taxes are applied.
|
158
94
|
attr_reader :amount_subtotal
|
@@ -164,14 +100,6 @@ module Stripe
|
|
164
100
|
attr_reader :interval_count
|
165
101
|
# Attribute for field total_details
|
166
102
|
attr_reader :total_details
|
167
|
-
|
168
|
-
def self.inner_class_types
|
169
|
-
@inner_class_types = { total_details: TotalDetails }
|
170
|
-
end
|
171
|
-
|
172
|
-
def self.field_remappings
|
173
|
-
@field_remappings = {}
|
174
|
-
end
|
175
103
|
end
|
176
104
|
|
177
105
|
class Upfront < Stripe::StripeObject
|
@@ -185,14 +113,6 @@ module Stripe
|
|
185
113
|
#
|
186
114
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
187
115
|
attr_reader :discount
|
188
|
-
|
189
|
-
def self.inner_class_types
|
190
|
-
@inner_class_types = {}
|
191
|
-
end
|
192
|
-
|
193
|
-
def self.field_remappings
|
194
|
-
@field_remappings = {}
|
195
|
-
end
|
196
116
|
end
|
197
117
|
|
198
118
|
class Tax < Stripe::StripeObject
|
@@ -206,27 +126,11 @@ module Stripe
|
|
206
126
|
attr_reader :taxability_reason
|
207
127
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
208
128
|
attr_reader :taxable_amount
|
209
|
-
|
210
|
-
def self.inner_class_types
|
211
|
-
@inner_class_types = {}
|
212
|
-
end
|
213
|
-
|
214
|
-
def self.field_remappings
|
215
|
-
@field_remappings = {}
|
216
|
-
end
|
217
129
|
end
|
218
130
|
# The aggregated discounts.
|
219
131
|
attr_reader :discounts
|
220
132
|
# The aggregated tax amounts by rate.
|
221
133
|
attr_reader :taxes
|
222
|
-
|
223
|
-
def self.inner_class_types
|
224
|
-
@inner_class_types = { discounts: Discount, taxes: Tax }
|
225
|
-
end
|
226
|
-
|
227
|
-
def self.field_remappings
|
228
|
-
@field_remappings = {}
|
229
|
-
end
|
230
134
|
end
|
231
135
|
# This is the sum of all the discounts.
|
232
136
|
attr_reader :amount_discount
|
@@ -236,14 +140,6 @@ module Stripe
|
|
236
140
|
attr_reader :amount_tax
|
237
141
|
# Attribute for field breakdown
|
238
142
|
attr_reader :breakdown
|
239
|
-
|
240
|
-
def self.inner_class_types
|
241
|
-
@inner_class_types = { breakdown: Breakdown }
|
242
|
-
end
|
243
|
-
|
244
|
-
def self.field_remappings
|
245
|
-
@field_remappings = {}
|
246
|
-
end
|
247
143
|
end
|
248
144
|
# Total before any discounts or taxes are applied.
|
249
145
|
attr_reader :amount_subtotal
|
@@ -253,14 +149,6 @@ module Stripe
|
|
253
149
|
attr_reader :line_items
|
254
150
|
# Attribute for field total_details
|
255
151
|
attr_reader :total_details
|
256
|
-
|
257
|
-
def self.inner_class_types
|
258
|
-
@inner_class_types = { total_details: TotalDetails }
|
259
|
-
end
|
260
|
-
|
261
|
-
def self.field_remappings
|
262
|
-
@field_remappings = {}
|
263
|
-
end
|
264
152
|
end
|
265
153
|
# Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
|
266
154
|
attr_reader :last_reestimation_details
|
@@ -270,18 +158,6 @@ module Stripe
|
|
270
158
|
attr_reader :updated_at
|
271
159
|
# Attribute for field upfront
|
272
160
|
attr_reader :upfront
|
273
|
-
|
274
|
-
def self.inner_class_types
|
275
|
-
@inner_class_types = {
|
276
|
-
last_reestimation_details: LastReestimationDetails,
|
277
|
-
recurring: Recurring,
|
278
|
-
upfront: Upfront,
|
279
|
-
}
|
280
|
-
end
|
281
|
-
|
282
|
-
def self.field_remappings
|
283
|
-
@field_remappings = {}
|
284
|
-
end
|
285
161
|
end
|
286
162
|
|
287
163
|
class FromQuote < Stripe::StripeObject
|
@@ -289,14 +165,6 @@ module Stripe
|
|
289
165
|
attr_reader :is_revision
|
290
166
|
# The quote that was cloned.
|
291
167
|
attr_reader :quote
|
292
|
-
|
293
|
-
def self.inner_class_types
|
294
|
-
@inner_class_types = {}
|
295
|
-
end
|
296
|
-
|
297
|
-
def self.field_remappings
|
298
|
-
@field_remappings = {}
|
299
|
-
end
|
300
168
|
end
|
301
169
|
|
302
170
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -305,27 +173,11 @@ module Stripe
|
|
305
173
|
attr_reader :account
|
306
174
|
# Type of the account referenced.
|
307
175
|
attr_reader :type
|
308
|
-
|
309
|
-
def self.inner_class_types
|
310
|
-
@inner_class_types = {}
|
311
|
-
end
|
312
|
-
|
313
|
-
def self.field_remappings
|
314
|
-
@field_remappings = {}
|
315
|
-
end
|
316
176
|
end
|
317
177
|
# Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
|
318
178
|
attr_reader :days_until_due
|
319
179
|
# Attribute for field issuer
|
320
180
|
attr_reader :issuer
|
321
|
-
|
322
|
-
def self.inner_class_types
|
323
|
-
@inner_class_types = { issuer: Issuer }
|
324
|
-
end
|
325
|
-
|
326
|
-
def self.field_remappings
|
327
|
-
@field_remappings = {}
|
328
|
-
end
|
329
181
|
end
|
330
182
|
|
331
183
|
class StatusDetails < Stripe::StripeObject
|
@@ -334,14 +186,6 @@ module Stripe
|
|
334
186
|
attr_reader :reason
|
335
187
|
# Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
|
336
188
|
attr_reader :transitioned_at
|
337
|
-
|
338
|
-
def self.inner_class_types
|
339
|
-
@inner_class_types = {}
|
340
|
-
end
|
341
|
-
|
342
|
-
def self.field_remappings
|
343
|
-
@field_remappings = {}
|
344
|
-
end
|
345
189
|
end
|
346
190
|
|
347
191
|
class Stale < Stripe::StripeObject
|
@@ -351,40 +195,16 @@ module Stripe
|
|
351
195
|
attr_reader :invalid_at
|
352
196
|
# The list of lines that became invalid at the given timestamp.
|
353
197
|
attr_reader :lines
|
354
|
-
|
355
|
-
def self.inner_class_types
|
356
|
-
@inner_class_types = {}
|
357
|
-
end
|
358
|
-
|
359
|
-
def self.field_remappings
|
360
|
-
@field_remappings = {}
|
361
|
-
end
|
362
198
|
end
|
363
199
|
|
364
200
|
class SubscriptionChanged < Stripe::StripeObject
|
365
201
|
# The subscription's state before the quote was marked as stale.
|
366
202
|
attr_reader :previous_subscription
|
367
|
-
|
368
|
-
def self.inner_class_types
|
369
|
-
@inner_class_types = {}
|
370
|
-
end
|
371
|
-
|
372
|
-
def self.field_remappings
|
373
|
-
@field_remappings = {}
|
374
|
-
end
|
375
203
|
end
|
376
204
|
|
377
205
|
class SubscriptionScheduleChanged < Stripe::StripeObject
|
378
206
|
# The subscription schedule's state before the quote was marked as stale.
|
379
207
|
attr_reader :previous_subscription_schedule
|
380
|
-
|
381
|
-
def self.inner_class_types
|
382
|
-
@inner_class_types = {}
|
383
|
-
end
|
384
|
-
|
385
|
-
def self.field_remappings
|
386
|
-
@field_remappings = {}
|
387
|
-
end
|
388
208
|
end
|
389
209
|
# The ID of the line that is invalid if the stale reason type is `line_invalid`.
|
390
210
|
attr_reader :line_invalid
|
@@ -406,18 +226,6 @@ module Stripe
|
|
406
226
|
attr_reader :subscription_schedule_released
|
407
227
|
# The reason the quote was marked as stale.
|
408
228
|
attr_reader :type
|
409
|
-
|
410
|
-
def self.inner_class_types
|
411
|
-
@inner_class_types = {
|
412
|
-
lines_invalid: LinesInvalid,
|
413
|
-
subscription_changed: SubscriptionChanged,
|
414
|
-
subscription_schedule_changed: SubscriptionScheduleChanged,
|
415
|
-
}
|
416
|
-
end
|
417
|
-
|
418
|
-
def self.field_remappings
|
419
|
-
@field_remappings = {}
|
420
|
-
end
|
421
229
|
end
|
422
230
|
# Time at which the quote expires. Measured in seconds since the Unix epoch.
|
423
231
|
attr_reader :expires_at
|
@@ -427,27 +235,11 @@ module Stripe
|
|
427
235
|
attr_reader :last_updated_at
|
428
236
|
# Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
|
429
237
|
attr_reader :transitioned_at
|
430
|
-
|
431
|
-
def self.inner_class_types
|
432
|
-
@inner_class_types = { last_reason: LastReason }
|
433
|
-
end
|
434
|
-
|
435
|
-
def self.field_remappings
|
436
|
-
@field_remappings = {}
|
437
|
-
end
|
438
238
|
end
|
439
239
|
# Attribute for field canceled
|
440
240
|
attr_reader :canceled
|
441
241
|
# Attribute for field stale
|
442
242
|
attr_reader :stale
|
443
|
-
|
444
|
-
def self.inner_class_types
|
445
|
-
@inner_class_types = { canceled: Canceled, stale: Stale }
|
446
|
-
end
|
447
|
-
|
448
|
-
def self.field_remappings
|
449
|
-
@field_remappings = {}
|
450
|
-
end
|
451
243
|
end
|
452
244
|
|
453
245
|
class StatusTransitions < Stripe::StripeObject
|
@@ -457,14 +249,6 @@ module Stripe
|
|
457
249
|
attr_reader :canceled_at
|
458
250
|
# The time that the quote was finalized. Measured in seconds since Unix epoch.
|
459
251
|
attr_reader :finalized_at
|
460
|
-
|
461
|
-
def self.inner_class_types
|
462
|
-
@inner_class_types = {}
|
463
|
-
end
|
464
|
-
|
465
|
-
def self.field_remappings
|
466
|
-
@field_remappings = {}
|
467
|
-
end
|
468
252
|
end
|
469
253
|
|
470
254
|
class SubscriptionData < Stripe::StripeObject
|
@@ -473,14 +257,6 @@ module Stripe
|
|
473
257
|
class LineStartsAt < Stripe::StripeObject
|
474
258
|
# Unique identifier for the object.
|
475
259
|
attr_reader :id
|
476
|
-
|
477
|
-
def self.inner_class_types
|
478
|
-
@inner_class_types = {}
|
479
|
-
end
|
480
|
-
|
481
|
-
def self.field_remappings
|
482
|
-
@field_remappings = {}
|
483
|
-
end
|
484
260
|
end
|
485
261
|
# The materialized time.
|
486
262
|
attr_reader :computed
|
@@ -490,14 +266,6 @@ module Stripe
|
|
490
266
|
attr_reader :timestamp
|
491
267
|
# The type of method to specify the `bill_from` time.
|
492
268
|
attr_reader :type
|
493
|
-
|
494
|
-
def self.inner_class_types
|
495
|
-
@inner_class_types = { line_starts_at: LineStartsAt }
|
496
|
-
end
|
497
|
-
|
498
|
-
def self.field_remappings
|
499
|
-
@field_remappings = {}
|
500
|
-
end
|
501
269
|
end
|
502
270
|
|
503
271
|
class BillUntil < Stripe::StripeObject
|
@@ -506,27 +274,11 @@ module Stripe
|
|
506
274
|
attr_reader :interval
|
507
275
|
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
508
276
|
attr_reader :interval_count
|
509
|
-
|
510
|
-
def self.inner_class_types
|
511
|
-
@inner_class_types = {}
|
512
|
-
end
|
513
|
-
|
514
|
-
def self.field_remappings
|
515
|
-
@field_remappings = {}
|
516
|
-
end
|
517
277
|
end
|
518
278
|
|
519
279
|
class LineEndsAt < Stripe::StripeObject
|
520
280
|
# Unique identifier for the object.
|
521
281
|
attr_reader :id
|
522
|
-
|
523
|
-
def self.inner_class_types
|
524
|
-
@inner_class_types = {}
|
525
|
-
end
|
526
|
-
|
527
|
-
def self.field_remappings
|
528
|
-
@field_remappings = {}
|
529
|
-
end
|
530
282
|
end
|
531
283
|
# The materialized time.
|
532
284
|
attr_reader :computed
|
@@ -538,53 +290,21 @@ module Stripe
|
|
538
290
|
attr_reader :timestamp
|
539
291
|
# The type of method to specify the `bill_until` time.
|
540
292
|
attr_reader :type
|
541
|
-
|
542
|
-
def self.inner_class_types
|
543
|
-
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
544
|
-
end
|
545
|
-
|
546
|
-
def self.field_remappings
|
547
|
-
@field_remappings = {}
|
548
|
-
end
|
549
293
|
end
|
550
294
|
# The start of the period to bill from when the Quote is accepted.
|
551
295
|
attr_reader :bill_from
|
552
296
|
# The end of the period to bill until when the Quote is accepted.
|
553
297
|
attr_reader :bill_until
|
554
|
-
|
555
|
-
def self.inner_class_types
|
556
|
-
@inner_class_types = { bill_from: BillFrom, bill_until: BillUntil }
|
557
|
-
end
|
558
|
-
|
559
|
-
def self.field_remappings
|
560
|
-
@field_remappings = {}
|
561
|
-
end
|
562
298
|
end
|
563
299
|
|
564
300
|
class BillingMode < Stripe::StripeObject
|
565
301
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
566
302
|
attr_reader :type
|
567
|
-
|
568
|
-
def self.inner_class_types
|
569
|
-
@inner_class_types = {}
|
570
|
-
end
|
571
|
-
|
572
|
-
def self.field_remappings
|
573
|
-
@field_remappings = {}
|
574
|
-
end
|
575
303
|
end
|
576
304
|
|
577
305
|
class Prebilling < Stripe::StripeObject
|
578
306
|
# Attribute for field iterations
|
579
307
|
attr_reader :iterations
|
580
|
-
|
581
|
-
def self.inner_class_types
|
582
|
-
@inner_class_types = {}
|
583
|
-
end
|
584
|
-
|
585
|
-
def self.field_remappings
|
586
|
-
@field_remappings = {}
|
587
|
-
end
|
588
308
|
end
|
589
309
|
# Describes the period to bill for upon accepting the quote.
|
590
310
|
attr_reader :bill_on_acceptance
|
@@ -610,18 +330,6 @@ module Stripe
|
|
610
330
|
attr_reader :proration_behavior
|
611
331
|
# Integer representing the number of trial period days before the customer is charged for the first time.
|
612
332
|
attr_reader :trial_period_days
|
613
|
-
|
614
|
-
def self.inner_class_types
|
615
|
-
@inner_class_types = {
|
616
|
-
bill_on_acceptance: BillOnAcceptance,
|
617
|
-
billing_mode: BillingMode,
|
618
|
-
prebilling: Prebilling,
|
619
|
-
}
|
620
|
-
end
|
621
|
-
|
622
|
-
def self.field_remappings
|
623
|
-
@field_remappings = {}
|
624
|
-
end
|
625
333
|
end
|
626
334
|
|
627
335
|
class SubscriptionDataOverride < Stripe::StripeObject
|
@@ -632,14 +340,6 @@ module Stripe
|
|
632
340
|
attr_reader :subscription_schedule
|
633
341
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
634
342
|
attr_reader :type
|
635
|
-
|
636
|
-
def self.inner_class_types
|
637
|
-
@inner_class_types = {}
|
638
|
-
end
|
639
|
-
|
640
|
-
def self.field_remappings
|
641
|
-
@field_remappings = {}
|
642
|
-
end
|
643
343
|
end
|
644
344
|
|
645
345
|
class BillOnAcceptance < Stripe::StripeObject
|
@@ -647,14 +347,6 @@ module Stripe
|
|
647
347
|
class LineStartsAt < Stripe::StripeObject
|
648
348
|
# Unique identifier for the object.
|
649
349
|
attr_reader :id
|
650
|
-
|
651
|
-
def self.inner_class_types
|
652
|
-
@inner_class_types = {}
|
653
|
-
end
|
654
|
-
|
655
|
-
def self.field_remappings
|
656
|
-
@field_remappings = {}
|
657
|
-
end
|
658
350
|
end
|
659
351
|
# The materialized time.
|
660
352
|
attr_reader :computed
|
@@ -664,14 +356,6 @@ module Stripe
|
|
664
356
|
attr_reader :timestamp
|
665
357
|
# The type of method to specify the `bill_from` time.
|
666
358
|
attr_reader :type
|
667
|
-
|
668
|
-
def self.inner_class_types
|
669
|
-
@inner_class_types = { line_starts_at: LineStartsAt }
|
670
|
-
end
|
671
|
-
|
672
|
-
def self.field_remappings
|
673
|
-
@field_remappings = {}
|
674
|
-
end
|
675
359
|
end
|
676
360
|
|
677
361
|
class BillUntil < Stripe::StripeObject
|
@@ -680,27 +364,11 @@ module Stripe
|
|
680
364
|
attr_reader :interval
|
681
365
|
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
682
366
|
attr_reader :interval_count
|
683
|
-
|
684
|
-
def self.inner_class_types
|
685
|
-
@inner_class_types = {}
|
686
|
-
end
|
687
|
-
|
688
|
-
def self.field_remappings
|
689
|
-
@field_remappings = {}
|
690
|
-
end
|
691
367
|
end
|
692
368
|
|
693
369
|
class LineEndsAt < Stripe::StripeObject
|
694
370
|
# Unique identifier for the object.
|
695
371
|
attr_reader :id
|
696
|
-
|
697
|
-
def self.inner_class_types
|
698
|
-
@inner_class_types = {}
|
699
|
-
end
|
700
|
-
|
701
|
-
def self.field_remappings
|
702
|
-
@field_remappings = {}
|
703
|
-
end
|
704
372
|
end
|
705
373
|
# The materialized time.
|
706
374
|
attr_reader :computed
|
@@ -712,27 +380,11 @@ module Stripe
|
|
712
380
|
attr_reader :timestamp
|
713
381
|
# The type of method to specify the `bill_until` time.
|
714
382
|
attr_reader :type
|
715
|
-
|
716
|
-
def self.inner_class_types
|
717
|
-
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
718
|
-
end
|
719
|
-
|
720
|
-
def self.field_remappings
|
721
|
-
@field_remappings = {}
|
722
|
-
end
|
723
383
|
end
|
724
384
|
# The start of the period to bill from when the Quote is accepted.
|
725
385
|
attr_reader :bill_from
|
726
386
|
# The end of the period to bill until when the Quote is accepted.
|
727
387
|
attr_reader :bill_until
|
728
|
-
|
729
|
-
def self.inner_class_types
|
730
|
-
@inner_class_types = { bill_from: BillFrom, bill_until: BillUntil }
|
731
|
-
end
|
732
|
-
|
733
|
-
def self.field_remappings
|
734
|
-
@field_remappings = {}
|
735
|
-
end
|
736
388
|
end
|
737
389
|
# Attribute for field applies_to
|
738
390
|
attr_reader :applies_to
|
@@ -748,14 +400,6 @@ module Stripe
|
|
748
400
|
attr_reader :end_behavior
|
749
401
|
# Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
750
402
|
attr_reader :proration_behavior
|
751
|
-
|
752
|
-
def self.inner_class_types
|
753
|
-
@inner_class_types = { applies_to: AppliesTo, bill_on_acceptance: BillOnAcceptance }
|
754
|
-
end
|
755
|
-
|
756
|
-
def self.field_remappings
|
757
|
-
@field_remappings = {}
|
758
|
-
end
|
759
403
|
end
|
760
404
|
|
761
405
|
class SubscriptionSchedule < Stripe::StripeObject
|
@@ -766,27 +410,11 @@ module Stripe
|
|
766
410
|
attr_reader :subscription_schedule
|
767
411
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
768
412
|
attr_reader :type
|
769
|
-
|
770
|
-
def self.inner_class_types
|
771
|
-
@inner_class_types = {}
|
772
|
-
end
|
773
|
-
|
774
|
-
def self.field_remappings
|
775
|
-
@field_remappings = {}
|
776
|
-
end
|
777
413
|
end
|
778
414
|
# Attribute for field applies_to
|
779
415
|
attr_reader :applies_to
|
780
416
|
# The subscription schedule that was created or updated from this quote.
|
781
417
|
attr_reader :subscription_schedule
|
782
|
-
|
783
|
-
def self.inner_class_types
|
784
|
-
@inner_class_types = { applies_to: AppliesTo }
|
785
|
-
end
|
786
|
-
|
787
|
-
def self.field_remappings
|
788
|
-
@field_remappings = {}
|
789
|
-
end
|
790
418
|
end
|
791
419
|
|
792
420
|
class TotalDetails < Stripe::StripeObject
|
@@ -799,14 +427,6 @@ module Stripe
|
|
799
427
|
#
|
800
428
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
801
429
|
attr_reader :discount
|
802
|
-
|
803
|
-
def self.inner_class_types
|
804
|
-
@inner_class_types = {}
|
805
|
-
end
|
806
|
-
|
807
|
-
def self.field_remappings
|
808
|
-
@field_remappings = {}
|
809
|
-
end
|
810
430
|
end
|
811
431
|
|
812
432
|
class Tax < Stripe::StripeObject
|
@@ -820,27 +440,11 @@ module Stripe
|
|
820
440
|
attr_reader :taxability_reason
|
821
441
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
822
442
|
attr_reader :taxable_amount
|
823
|
-
|
824
|
-
def self.inner_class_types
|
825
|
-
@inner_class_types = {}
|
826
|
-
end
|
827
|
-
|
828
|
-
def self.field_remappings
|
829
|
-
@field_remappings = {}
|
830
|
-
end
|
831
443
|
end
|
832
444
|
# The aggregated discounts.
|
833
445
|
attr_reader :discounts
|
834
446
|
# The aggregated tax amounts by rate.
|
835
447
|
attr_reader :taxes
|
836
|
-
|
837
|
-
def self.inner_class_types
|
838
|
-
@inner_class_types = { discounts: Discount, taxes: Tax }
|
839
|
-
end
|
840
|
-
|
841
|
-
def self.field_remappings
|
842
|
-
@field_remappings = {}
|
843
|
-
end
|
844
448
|
end
|
845
449
|
# This is the sum of all the discounts.
|
846
450
|
attr_reader :amount_discount
|
@@ -850,14 +454,6 @@ module Stripe
|
|
850
454
|
attr_reader :amount_tax
|
851
455
|
# Attribute for field breakdown
|
852
456
|
attr_reader :breakdown
|
853
|
-
|
854
|
-
def self.inner_class_types
|
855
|
-
@inner_class_types = { breakdown: Breakdown }
|
856
|
-
end
|
857
|
-
|
858
|
-
def self.field_remappings
|
859
|
-
@field_remappings = {}
|
860
|
-
end
|
861
457
|
end
|
862
458
|
|
863
459
|
class TransferData < Stripe::StripeObject
|
@@ -867,14 +463,6 @@ module Stripe
|
|
867
463
|
attr_reader :amount_percent
|
868
464
|
# The account where funds from the payment will be transferred to upon payment success.
|
869
465
|
attr_reader :destination
|
870
|
-
|
871
|
-
def self.inner_class_types
|
872
|
-
@inner_class_types = {}
|
873
|
-
end
|
874
|
-
|
875
|
-
def self.field_remappings
|
876
|
-
@field_remappings = {}
|
877
|
-
end
|
878
466
|
end
|
879
467
|
|
880
468
|
class ListParams < Stripe::RequestParams
|
@@ -3544,25 +3132,5 @@ module Stripe
|
|
3544
3132
|
opts: opts
|
3545
3133
|
)
|
3546
3134
|
end
|
3547
|
-
|
3548
|
-
def self.inner_class_types
|
3549
|
-
@inner_class_types = {
|
3550
|
-
automatic_tax: AutomaticTax,
|
3551
|
-
computed: Computed,
|
3552
|
-
from_quote: FromQuote,
|
3553
|
-
invoice_settings: InvoiceSettings,
|
3554
|
-
status_details: StatusDetails,
|
3555
|
-
status_transitions: StatusTransitions,
|
3556
|
-
subscription_data: SubscriptionData,
|
3557
|
-
subscription_data_overrides: SubscriptionDataOverride,
|
3558
|
-
subscription_schedules: SubscriptionSchedule,
|
3559
|
-
total_details: TotalDetails,
|
3560
|
-
transfer_data: TransferData,
|
3561
|
-
}
|
3562
|
-
end
|
3563
|
-
|
3564
|
-
def self.field_remappings
|
3565
|
-
@field_remappings = {}
|
3566
|
-
end
|
3567
3135
|
end
|
3568
3136
|
end
|