stripe 18.1.0.pre.alpha.1 → 18.1.0.pre.alpha.3
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/lib/stripe/event_types.rb +8 -565
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +15 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +30 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +2 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +2 -0
- data/lib/stripe/events/{v1_sigma_scheduled_query_run_created_event.rb → v2_payments_off_session_payment_attempt_failed_event.rb} +7 -7
- data/lib/stripe/events/{v1_radar_early_fraud_warning_created_event.rb → v2_payments_off_session_payment_attempt_started_event.rb} +9 -7
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +42 -6
- data/lib/stripe/params/payment_intent_create_params.rb +14 -1
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
- data/lib/stripe/params/quote_create_params.rb +15 -3
- data/lib/stripe/params/quote_update_params.rb +15 -3
- data/lib/stripe/params/subscription_create_params.rb +17 -1
- data/lib/stripe/params/subscription_item_create_params.rb +17 -1
- data/lib/stripe/params/subscription_item_update_params.rb +17 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +15 -3
- data/lib/stripe/params/subscription_schedule_create_params.rb +10 -2
- data/lib/stripe/params/subscription_schedule_update_params.rb +10 -2
- data/lib/stripe/params/subscription_update_params.rb +17 -1
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +24 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +118 -3
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1259 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +119 -4
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +5 -9
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +13 -89
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
- data/lib/stripe/params.rb +8 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +9 -3
- data/lib/stripe/resources/payment_intent.rb +16 -0
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
- data/lib/stripe/resources/quote.rb +8 -118
- data/lib/stripe/resources/quote_line.rb +6 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +7 -87
- data/lib/stripe/resources/subscription.rb +3 -87
- data/lib/stripe/resources/subscription_item.rb +24 -1
- data/lib/stripe/resources/subscription_schedule.rb +7 -87
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
- data/lib/stripe/resources/v2/billing/service_action.rb +32 -2
- data/lib/stripe/resources/v2/core/account.rb +341 -10
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +0 -2
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +49 -1
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +46 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +61 -3
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +46 -2
- data/lib/stripe/resources/v2/money_management/received_credit.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +23 -79
- data/lib/stripe/resources.rb +6 -186
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services/v2/core/account_service.rb +2 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services.rb +5 -0
- data/lib/stripe/stripe_object.rb +22 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6451 -2138
- metadata +21 -188
- data/lib/stripe/events/v1_account_updated_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
- data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
- data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
- data/lib/stripe/events/v1_customer_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v1_file_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payout_created_event.rb +0 -44
- data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
- data/lib/stripe/events/v1_person_created_event.rb +0 -44
- data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_person_updated_event.rb +0 -44
- data/lib/stripe/events/v1_plan_created_event.rb +0 -44
- data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v1_price_created_event.rb +0 -44
- data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_price_updated_event.rb +0 -44
- data/lib/stripe/events/v1_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_product_updated_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
- data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
- data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_quote_created_event.rb +0 -44
- data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
- data/lib/stripe/events/v1_refund_created_event.rb +0 -44
- data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
- data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_review_closed_event.rb +0 -44
- data/lib/stripe/events/v1_review_opened_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
- data/lib/stripe/events/v1_source_failed_event.rb +0 -44
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
- data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_topup_created_event.rb +0 -44
- data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
|
@@ -605,19 +605,6 @@ module Stripe
|
|
|
605
605
|
end
|
|
606
606
|
|
|
607
607
|
class BillFrom < ::Stripe::StripeObject
|
|
608
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
609
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
610
|
-
attr_reader :index
|
|
611
|
-
|
|
612
|
-
def self.inner_class_types
|
|
613
|
-
@inner_class_types = {}
|
|
614
|
-
end
|
|
615
|
-
|
|
616
|
-
def self.field_remappings
|
|
617
|
-
@field_remappings = {}
|
|
618
|
-
end
|
|
619
|
-
end
|
|
620
|
-
|
|
621
608
|
class LineStartsAt < ::Stripe::StripeObject
|
|
622
609
|
# Unique identifier for the object.
|
|
623
610
|
attr_reader :id
|
|
@@ -630,40 +617,17 @@ module Stripe
|
|
|
630
617
|
@field_remappings = {}
|
|
631
618
|
end
|
|
632
619
|
end
|
|
633
|
-
|
|
634
|
-
class Relative < ::Stripe::StripeObject
|
|
635
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
636
|
-
attr_reader :interval
|
|
637
|
-
# The multiplier applied to the interval.
|
|
638
|
-
attr_reader :interval_count
|
|
639
|
-
|
|
640
|
-
def self.inner_class_types
|
|
641
|
-
@inner_class_types = {}
|
|
642
|
-
end
|
|
643
|
-
|
|
644
|
-
def self.field_remappings
|
|
645
|
-
@field_remappings = {}
|
|
646
|
-
end
|
|
647
|
-
end
|
|
648
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
649
|
-
attr_reader :amendment_start
|
|
650
620
|
# The time the billing schedule applies from.
|
|
651
621
|
attr_reader :computed_timestamp
|
|
652
622
|
# Lets you bill the period starting from a particular Quote line.
|
|
653
623
|
attr_reader :line_starts_at
|
|
654
|
-
# Timestamp is calculated from the request time.
|
|
655
|
-
attr_reader :relative
|
|
656
624
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
657
625
|
attr_reader :timestamp
|
|
658
626
|
# Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`.
|
|
659
627
|
attr_reader :type
|
|
660
628
|
|
|
661
629
|
def self.inner_class_types
|
|
662
|
-
@inner_class_types = {
|
|
663
|
-
amendment_start: AmendmentStart,
|
|
664
|
-
line_starts_at: LineStartsAt,
|
|
665
|
-
relative: Relative,
|
|
666
|
-
}
|
|
630
|
+
@inner_class_types = { line_starts_at: LineStartsAt }
|
|
667
631
|
end
|
|
668
632
|
|
|
669
633
|
def self.field_remappings
|
|
@@ -672,19 +636,6 @@ module Stripe
|
|
|
672
636
|
end
|
|
673
637
|
|
|
674
638
|
class BillUntil < ::Stripe::StripeObject
|
|
675
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
676
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
677
|
-
attr_reader :index
|
|
678
|
-
|
|
679
|
-
def self.inner_class_types
|
|
680
|
-
@inner_class_types = {}
|
|
681
|
-
end
|
|
682
|
-
|
|
683
|
-
def self.field_remappings
|
|
684
|
-
@field_remappings = {}
|
|
685
|
-
end
|
|
686
|
-
end
|
|
687
|
-
|
|
688
639
|
class Duration < ::Stripe::StripeObject
|
|
689
640
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
690
641
|
attr_reader :interval
|
|
@@ -712,8 +663,6 @@ module Stripe
|
|
|
712
663
|
@field_remappings = {}
|
|
713
664
|
end
|
|
714
665
|
end
|
|
715
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
716
|
-
attr_reader :amendment_end
|
|
717
666
|
# The timestamp the billing schedule will apply until.
|
|
718
667
|
attr_reader :computed_timestamp
|
|
719
668
|
# Specifies the billing period.
|
|
@@ -726,11 +675,7 @@ module Stripe
|
|
|
726
675
|
attr_reader :type
|
|
727
676
|
|
|
728
677
|
def self.inner_class_types
|
|
729
|
-
@inner_class_types = {
|
|
730
|
-
amendment_end: AmendmentEnd,
|
|
731
|
-
duration: Duration,
|
|
732
|
-
line_ends_at: LineEndsAt,
|
|
733
|
-
}
|
|
678
|
+
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
|
734
679
|
end
|
|
735
680
|
|
|
736
681
|
def self.field_remappings
|
|
@@ -741,7 +686,7 @@ module Stripe
|
|
|
741
686
|
attr_reader :applies_to
|
|
742
687
|
# Specifies the start of the billing period.
|
|
743
688
|
attr_reader :bill_from
|
|
744
|
-
#
|
|
689
|
+
# Attribute for field bill_until
|
|
745
690
|
attr_reader :bill_until
|
|
746
691
|
# Unique identifier for the billing schedule.
|
|
747
692
|
attr_reader :key
|
|
@@ -787,7 +732,7 @@ module Stripe
|
|
|
787
732
|
attr_reader :from_subscription
|
|
788
733
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
|
789
734
|
attr_reader :metadata
|
|
790
|
-
# Configures how the
|
|
735
|
+
# Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
791
736
|
attr_reader :phase_effective_at
|
|
792
737
|
# If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
|
|
793
738
|
attr_reader :prebilling
|
|
@@ -938,19 +883,6 @@ module Stripe
|
|
|
938
883
|
end
|
|
939
884
|
|
|
940
885
|
class BillFrom < ::Stripe::StripeObject
|
|
941
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
942
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
943
|
-
attr_reader :index
|
|
944
|
-
|
|
945
|
-
def self.inner_class_types
|
|
946
|
-
@inner_class_types = {}
|
|
947
|
-
end
|
|
948
|
-
|
|
949
|
-
def self.field_remappings
|
|
950
|
-
@field_remappings = {}
|
|
951
|
-
end
|
|
952
|
-
end
|
|
953
|
-
|
|
954
886
|
class LineStartsAt < ::Stripe::StripeObject
|
|
955
887
|
# Unique identifier for the object.
|
|
956
888
|
attr_reader :id
|
|
@@ -963,40 +895,17 @@ module Stripe
|
|
|
963
895
|
@field_remappings = {}
|
|
964
896
|
end
|
|
965
897
|
end
|
|
966
|
-
|
|
967
|
-
class Relative < ::Stripe::StripeObject
|
|
968
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
969
|
-
attr_reader :interval
|
|
970
|
-
# The multiplier applied to the interval.
|
|
971
|
-
attr_reader :interval_count
|
|
972
|
-
|
|
973
|
-
def self.inner_class_types
|
|
974
|
-
@inner_class_types = {}
|
|
975
|
-
end
|
|
976
|
-
|
|
977
|
-
def self.field_remappings
|
|
978
|
-
@field_remappings = {}
|
|
979
|
-
end
|
|
980
|
-
end
|
|
981
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
982
|
-
attr_reader :amendment_start
|
|
983
898
|
# The time the billing schedule applies from.
|
|
984
899
|
attr_reader :computed_timestamp
|
|
985
900
|
# Lets you bill the period starting from a particular Quote line.
|
|
986
901
|
attr_reader :line_starts_at
|
|
987
|
-
# Timestamp is calculated from the request time.
|
|
988
|
-
attr_reader :relative
|
|
989
902
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
990
903
|
attr_reader :timestamp
|
|
991
904
|
# Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`.
|
|
992
905
|
attr_reader :type
|
|
993
906
|
|
|
994
907
|
def self.inner_class_types
|
|
995
|
-
@inner_class_types = {
|
|
996
|
-
amendment_start: AmendmentStart,
|
|
997
|
-
line_starts_at: LineStartsAt,
|
|
998
|
-
relative: Relative,
|
|
999
|
-
}
|
|
908
|
+
@inner_class_types = { line_starts_at: LineStartsAt }
|
|
1000
909
|
end
|
|
1001
910
|
|
|
1002
911
|
def self.field_remappings
|
|
@@ -1005,19 +914,6 @@ module Stripe
|
|
|
1005
914
|
end
|
|
1006
915
|
|
|
1007
916
|
class BillUntil < ::Stripe::StripeObject
|
|
1008
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
1009
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
1010
|
-
attr_reader :index
|
|
1011
|
-
|
|
1012
|
-
def self.inner_class_types
|
|
1013
|
-
@inner_class_types = {}
|
|
1014
|
-
end
|
|
1015
|
-
|
|
1016
|
-
def self.field_remappings
|
|
1017
|
-
@field_remappings = {}
|
|
1018
|
-
end
|
|
1019
|
-
end
|
|
1020
|
-
|
|
1021
917
|
class Duration < ::Stripe::StripeObject
|
|
1022
918
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
1023
919
|
attr_reader :interval
|
|
@@ -1045,8 +941,6 @@ module Stripe
|
|
|
1045
941
|
@field_remappings = {}
|
|
1046
942
|
end
|
|
1047
943
|
end
|
|
1048
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
1049
|
-
attr_reader :amendment_end
|
|
1050
944
|
# The timestamp the billing schedule will apply until.
|
|
1051
945
|
attr_reader :computed_timestamp
|
|
1052
946
|
# Specifies the billing period.
|
|
@@ -1059,11 +953,7 @@ module Stripe
|
|
|
1059
953
|
attr_reader :type
|
|
1060
954
|
|
|
1061
955
|
def self.inner_class_types
|
|
1062
|
-
@inner_class_types = {
|
|
1063
|
-
amendment_end: AmendmentEnd,
|
|
1064
|
-
duration: Duration,
|
|
1065
|
-
line_ends_at: LineEndsAt,
|
|
1066
|
-
}
|
|
956
|
+
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
|
1067
957
|
end
|
|
1068
958
|
|
|
1069
959
|
def self.field_remappings
|
|
@@ -1074,7 +964,7 @@ module Stripe
|
|
|
1074
964
|
attr_reader :applies_to
|
|
1075
965
|
# Specifies the start of the billing period.
|
|
1076
966
|
attr_reader :bill_from
|
|
1077
|
-
#
|
|
967
|
+
# Attribute for field bill_until
|
|
1078
968
|
attr_reader :bill_until
|
|
1079
969
|
# Unique identifier for the billing schedule.
|
|
1080
970
|
attr_reader :key
|
|
@@ -1101,7 +991,7 @@ module Stripe
|
|
|
1101
991
|
attr_reader :description
|
|
1102
992
|
# Behavior of the subscription schedule and underlying subscription when it ends.
|
|
1103
993
|
attr_reader :end_behavior
|
|
1104
|
-
# Configures how the
|
|
994
|
+
# Configures how the quote handles billing for line transitions. Possible values are `line_start` (default) or `billing_period_start`. `line_start` bills based on the current state of the line, ignoring changes scheduled for future lines. `billing_period_start` bills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
1105
995
|
attr_reader :phase_effective_at
|
|
1106
996
|
# Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
1107
997
|
attr_reader :proration_behavior
|
|
@@ -103,6 +103,8 @@ module Stripe
|
|
|
103
103
|
attr_reader :tax_rates
|
|
104
104
|
# Options that configure the trial on the subscription item.
|
|
105
105
|
attr_reader :trial
|
|
106
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
107
|
+
attr_reader :trial_offer
|
|
106
108
|
|
|
107
109
|
def self.inner_class_types
|
|
108
110
|
@inner_class_types = { discounts: Discount, trial: Trial }
|
|
@@ -252,6 +254,8 @@ module Stripe
|
|
|
252
254
|
attr_reader :tax_rates
|
|
253
255
|
# Options that configure the trial on the subscription item.
|
|
254
256
|
attr_reader :trial
|
|
257
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
258
|
+
attr_reader :trial_offer
|
|
255
259
|
|
|
256
260
|
def self.inner_class_types
|
|
257
261
|
@inner_class_types = { discounts: Discount, trial: Trial }
|
|
@@ -501,6 +505,8 @@ module Stripe
|
|
|
501
505
|
attr_reader :starts_at
|
|
502
506
|
# Settings related to subscription trials.
|
|
503
507
|
attr_reader :trial_settings
|
|
508
|
+
# Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
509
|
+
attr_reader :effective_at
|
|
504
510
|
|
|
505
511
|
def self.inner_class_types
|
|
506
512
|
@inner_class_types = {
|
|
@@ -516,6 +516,8 @@ module Stripe
|
|
|
516
516
|
attr_reader :tax_rates
|
|
517
517
|
# Options that configure the trial on the subscription item.
|
|
518
518
|
attr_reader :trial
|
|
519
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
520
|
+
attr_reader :trial_offer
|
|
519
521
|
|
|
520
522
|
def self.inner_class_types
|
|
521
523
|
@inner_class_types = {
|
|
@@ -628,6 +630,8 @@ module Stripe
|
|
|
628
630
|
attr_reader :trial_end
|
|
629
631
|
# Settings related to any trials on the subscription during this phase.
|
|
630
632
|
attr_reader :trial_settings
|
|
633
|
+
# Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
634
|
+
attr_reader :effective_at
|
|
631
635
|
|
|
632
636
|
def self.inner_class_types
|
|
633
637
|
@inner_class_types = {
|
|
@@ -684,65 +688,15 @@ module Stripe
|
|
|
684
688
|
end
|
|
685
689
|
|
|
686
690
|
class BillFrom < ::Stripe::StripeObject
|
|
687
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
688
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
689
|
-
attr_reader :index
|
|
690
|
-
|
|
691
|
-
def self.inner_class_types
|
|
692
|
-
@inner_class_types = {}
|
|
693
|
-
end
|
|
694
|
-
|
|
695
|
-
def self.field_remappings
|
|
696
|
-
@field_remappings = {}
|
|
697
|
-
end
|
|
698
|
-
end
|
|
699
|
-
|
|
700
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
701
|
-
# Unique identifier for the object.
|
|
702
|
-
attr_reader :id
|
|
703
|
-
|
|
704
|
-
def self.inner_class_types
|
|
705
|
-
@inner_class_types = {}
|
|
706
|
-
end
|
|
707
|
-
|
|
708
|
-
def self.field_remappings
|
|
709
|
-
@field_remappings = {}
|
|
710
|
-
end
|
|
711
|
-
end
|
|
712
|
-
|
|
713
|
-
class Relative < ::Stripe::StripeObject
|
|
714
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
715
|
-
attr_reader :interval
|
|
716
|
-
# The multiplier applied to the interval.
|
|
717
|
-
attr_reader :interval_count
|
|
718
|
-
|
|
719
|
-
def self.inner_class_types
|
|
720
|
-
@inner_class_types = {}
|
|
721
|
-
end
|
|
722
|
-
|
|
723
|
-
def self.field_remappings
|
|
724
|
-
@field_remappings = {}
|
|
725
|
-
end
|
|
726
|
-
end
|
|
727
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
728
|
-
attr_reader :amendment_start
|
|
729
691
|
# The time the billing schedule applies from.
|
|
730
692
|
attr_reader :computed_timestamp
|
|
731
|
-
# Lets you bill the period starting from a particular Quote line.
|
|
732
|
-
attr_reader :line_starts_at
|
|
733
|
-
# Timestamp is calculated from the request time.
|
|
734
|
-
attr_reader :relative
|
|
735
693
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
736
694
|
attr_reader :timestamp
|
|
737
|
-
# Describes how the billing schedule determines the start date. Possible values are `timestamp
|
|
695
|
+
# Describes how the billing schedule determines the start date. Possible values are `timestamp`.
|
|
738
696
|
attr_reader :type
|
|
739
697
|
|
|
740
698
|
def self.inner_class_types
|
|
741
|
-
@inner_class_types = {
|
|
742
|
-
amendment_start: AmendmentStart,
|
|
743
|
-
line_starts_at: LineStartsAt,
|
|
744
|
-
relative: Relative,
|
|
745
|
-
}
|
|
699
|
+
@inner_class_types = {}
|
|
746
700
|
end
|
|
747
701
|
|
|
748
702
|
def self.field_remappings
|
|
@@ -751,19 +705,6 @@ module Stripe
|
|
|
751
705
|
end
|
|
752
706
|
|
|
753
707
|
class BillUntil < ::Stripe::StripeObject
|
|
754
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
755
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
756
|
-
attr_reader :index
|
|
757
|
-
|
|
758
|
-
def self.inner_class_types
|
|
759
|
-
@inner_class_types = {}
|
|
760
|
-
end
|
|
761
|
-
|
|
762
|
-
def self.field_remappings
|
|
763
|
-
@field_remappings = {}
|
|
764
|
-
end
|
|
765
|
-
end
|
|
766
|
-
|
|
767
708
|
class Duration < ::Stripe::StripeObject
|
|
768
709
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
769
710
|
attr_reader :interval
|
|
@@ -778,38 +719,17 @@ module Stripe
|
|
|
778
719
|
@field_remappings = {}
|
|
779
720
|
end
|
|
780
721
|
end
|
|
781
|
-
|
|
782
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
783
|
-
# Unique identifier for the object.
|
|
784
|
-
attr_reader :id
|
|
785
|
-
|
|
786
|
-
def self.inner_class_types
|
|
787
|
-
@inner_class_types = {}
|
|
788
|
-
end
|
|
789
|
-
|
|
790
|
-
def self.field_remappings
|
|
791
|
-
@field_remappings = {}
|
|
792
|
-
end
|
|
793
|
-
end
|
|
794
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
795
|
-
attr_reader :amendment_end
|
|
796
722
|
# The timestamp the billing schedule will apply until.
|
|
797
723
|
attr_reader :computed_timestamp
|
|
798
724
|
# Specifies the billing period.
|
|
799
725
|
attr_reader :duration
|
|
800
|
-
# Lets you bill the period ending at a particular Quote line.
|
|
801
|
-
attr_reader :line_ends_at
|
|
802
726
|
# If specified, the billing schedule will apply until the specified timestamp.
|
|
803
727
|
attr_reader :timestamp
|
|
804
728
|
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
805
729
|
attr_reader :type
|
|
806
730
|
|
|
807
731
|
def self.inner_class_types
|
|
808
|
-
@inner_class_types = {
|
|
809
|
-
amendment_end: AmendmentEnd,
|
|
810
|
-
duration: Duration,
|
|
811
|
-
line_ends_at: LineEndsAt,
|
|
812
|
-
}
|
|
732
|
+
@inner_class_types = { duration: Duration }
|
|
813
733
|
end
|
|
814
734
|
|
|
815
735
|
def self.field_remappings
|
|
@@ -114,65 +114,15 @@ module Stripe
|
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
class BillFrom < ::Stripe::StripeObject
|
|
117
|
-
class AmendmentStart < ::Stripe::StripeObject
|
|
118
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
119
|
-
attr_reader :index
|
|
120
|
-
|
|
121
|
-
def self.inner_class_types
|
|
122
|
-
@inner_class_types = {}
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
def self.field_remappings
|
|
126
|
-
@field_remappings = {}
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
131
|
-
# Unique identifier for the object.
|
|
132
|
-
attr_reader :id
|
|
133
|
-
|
|
134
|
-
def self.inner_class_types
|
|
135
|
-
@inner_class_types = {}
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def self.field_remappings
|
|
139
|
-
@field_remappings = {}
|
|
140
|
-
end
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
class Relative < ::Stripe::StripeObject
|
|
144
|
-
# Specifies billing duration. Possible values are `day`, `week`, `month`, or `year`.
|
|
145
|
-
attr_reader :interval
|
|
146
|
-
# The multiplier applied to the interval.
|
|
147
|
-
attr_reader :interval_count
|
|
148
|
-
|
|
149
|
-
def self.inner_class_types
|
|
150
|
-
@inner_class_types = {}
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
def self.field_remappings
|
|
154
|
-
@field_remappings = {}
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
# Use an index to specify the position of an amendment to start prebilling with.
|
|
158
|
-
attr_reader :amendment_start
|
|
159
117
|
# The time the billing schedule applies from.
|
|
160
118
|
attr_reader :computed_timestamp
|
|
161
|
-
# Lets you bill the period starting from a particular Quote line.
|
|
162
|
-
attr_reader :line_starts_at
|
|
163
|
-
# Timestamp is calculated from the request time.
|
|
164
|
-
attr_reader :relative
|
|
165
119
|
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
166
120
|
attr_reader :timestamp
|
|
167
|
-
# Describes how the billing schedule determines the start date. Possible values are `timestamp
|
|
121
|
+
# Describes how the billing schedule determines the start date. Possible values are `timestamp`.
|
|
168
122
|
attr_reader :type
|
|
169
123
|
|
|
170
124
|
def self.inner_class_types
|
|
171
|
-
@inner_class_types = {
|
|
172
|
-
amendment_start: AmendmentStart,
|
|
173
|
-
line_starts_at: LineStartsAt,
|
|
174
|
-
relative: Relative,
|
|
175
|
-
}
|
|
125
|
+
@inner_class_types = {}
|
|
176
126
|
end
|
|
177
127
|
|
|
178
128
|
def self.field_remappings
|
|
@@ -181,19 +131,6 @@ module Stripe
|
|
|
181
131
|
end
|
|
182
132
|
|
|
183
133
|
class BillUntil < ::Stripe::StripeObject
|
|
184
|
-
class AmendmentEnd < ::Stripe::StripeObject
|
|
185
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
186
|
-
attr_reader :index
|
|
187
|
-
|
|
188
|
-
def self.inner_class_types
|
|
189
|
-
@inner_class_types = {}
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
def self.field_remappings
|
|
193
|
-
@field_remappings = {}
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
|
-
|
|
197
134
|
class Duration < ::Stripe::StripeObject
|
|
198
135
|
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
199
136
|
attr_reader :interval
|
|
@@ -208,38 +145,17 @@ module Stripe
|
|
|
208
145
|
@field_remappings = {}
|
|
209
146
|
end
|
|
210
147
|
end
|
|
211
|
-
|
|
212
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
213
|
-
# Unique identifier for the object.
|
|
214
|
-
attr_reader :id
|
|
215
|
-
|
|
216
|
-
def self.inner_class_types
|
|
217
|
-
@inner_class_types = {}
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
def self.field_remappings
|
|
221
|
-
@field_remappings = {}
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
# Use an index to specify the position of an amendment to end prebilling with.
|
|
225
|
-
attr_reader :amendment_end
|
|
226
148
|
# The timestamp the billing schedule will apply until.
|
|
227
149
|
attr_reader :computed_timestamp
|
|
228
150
|
# Specifies the billing period.
|
|
229
151
|
attr_reader :duration
|
|
230
|
-
# Lets you bill the period ending at a particular Quote line.
|
|
231
|
-
attr_reader :line_ends_at
|
|
232
152
|
# If specified, the billing schedule will apply until the specified timestamp.
|
|
233
153
|
attr_reader :timestamp
|
|
234
154
|
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
235
155
|
attr_reader :type
|
|
236
156
|
|
|
237
157
|
def self.inner_class_types
|
|
238
|
-
@inner_class_types = {
|
|
239
|
-
amendment_end: AmendmentEnd,
|
|
240
|
-
duration: Duration,
|
|
241
|
-
line_ends_at: LineEndsAt,
|
|
242
|
-
}
|
|
158
|
+
@inner_class_types = { duration: Duration }
|
|
243
159
|
end
|
|
244
160
|
|
|
245
161
|
def self.field_remappings
|
|
@@ -42,6 +42,23 @@ module Stripe
|
|
|
42
42
|
@field_remappings = {}
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
|
+
|
|
46
|
+
class CurrentTrial < ::Stripe::StripeObject
|
|
47
|
+
# Attribute for field end_date
|
|
48
|
+
attr_reader :end_date
|
|
49
|
+
# Attribute for field start_date
|
|
50
|
+
attr_reader :start_date
|
|
51
|
+
# Attribute for field trial_offer
|
|
52
|
+
attr_reader :trial_offer
|
|
53
|
+
|
|
54
|
+
def self.inner_class_types
|
|
55
|
+
@inner_class_types = {}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def self.field_remappings
|
|
59
|
+
@field_remappings = {}
|
|
60
|
+
end
|
|
61
|
+
end
|
|
45
62
|
# The time period the subscription item has been billed for.
|
|
46
63
|
attr_reader :billed_until
|
|
47
64
|
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
|
@@ -84,6 +101,8 @@ module Stripe
|
|
|
84
101
|
attr_reader :tax_rates
|
|
85
102
|
# Options that configure the trial on the subscription item.
|
|
86
103
|
attr_reader :trial
|
|
104
|
+
# The current trial that is applied to this subscription item.
|
|
105
|
+
attr_reader :current_trial
|
|
87
106
|
# Always true for a deleted object
|
|
88
107
|
attr_reader :deleted
|
|
89
108
|
|
|
@@ -138,7 +157,11 @@ module Stripe
|
|
|
138
157
|
end
|
|
139
158
|
|
|
140
159
|
def self.inner_class_types
|
|
141
|
-
@inner_class_types = {
|
|
160
|
+
@inner_class_types = {
|
|
161
|
+
billing_thresholds: BillingThresholds,
|
|
162
|
+
trial: Trial,
|
|
163
|
+
current_trial: CurrentTrial,
|
|
164
|
+
}
|
|
142
165
|
end
|
|
143
166
|
|
|
144
167
|
def self.field_remappings
|