stripe 18.1.0.pre.beta.1 → 18.2.0.pre.alpha.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/lib/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +360 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +40 -0
- data/lib/stripe/params/account_create_params.rb +82 -28
- data/lib/stripe/params/account_external_account_create_params.rb +2 -2
- data/lib/stripe/params/account_external_account_update_params.rb +2 -2
- data/lib/stripe/params/account_notice_update_params.rb +1 -1
- data/lib/stripe/params/account_person_create_params.rb +42 -10
- data/lib/stripe/params/account_person_update_params.rb +42 -10
- data/lib/stripe/params/account_session_create_params.rb +17 -0
- data/lib/stripe/params/account_update_params.rb +81 -27
- data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +5 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +15 -3
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +31 -4
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
- data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/charge_capture_params.rb +9 -9
- data/lib/stripe/params/charge_create_params.rb +12 -12
- data/lib/stripe/params/charge_search_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +10 -10
- data/lib/stripe/params/checkout/session_create_params.rb +133 -42
- data/lib/stripe/params/checkout/session_update_params.rb +27 -15
- data/lib/stripe/params/climate/order_create_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +6 -6
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/coupon_update_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
- data/lib/stripe/params/customer_create_params.rb +5 -5
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
- data/lib/stripe/params/customer_search_params.rb +1 -1
- data/lib/stripe/params/customer_update_params.rb +7 -7
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/dispute_update_params.rb +3 -3
- data/lib/stripe/params/external_account_create_params.rb +2 -2
- data/lib/stripe/params/external_account_update_params.rb +2 -2
- data/lib/stripe/params/file_create_params.rb +3 -3
- data/lib/stripe/params/file_link_create_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/session_create_params.rb +3 -3
- data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
- data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
- data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
- data/lib/stripe/params/invoice_add_lines_params.rb +21 -9
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -1
- data/lib/stripe/params/invoice_create_params.rb +37 -13
- data/lib/stripe/params/invoice_create_preview_params.rb +158 -39
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +8 -8
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +6 -6
- data/lib/stripe/params/invoice_line_item_update_params.rb +20 -8
- data/lib/stripe/params/invoice_list_params.rb +6 -2
- data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +21 -9
- data/lib/stripe/params/invoice_update_params.rb +34 -10
- data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +7 -7
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -11
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +1 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +4 -4
- data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/mandate_list_params.rb +1 -1
- data/lib/stripe/params/margin_create_params.rb +1 -1
- data/lib/stripe/params/margin_update_params.rb +1 -1
- data/lib/stripe/params/order_create_params.rb +12 -12
- data/lib/stripe/params/order_update_params.rb +12 -12
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +18 -18
- data/lib/stripe/params/payment_intent_confirm_params.rb +77 -39
- data/lib/stripe/params/payment_intent_create_params.rb +105 -54
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +4 -4
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +10 -10
- data/lib/stripe/params/payment_intent_list_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +74 -40
- data/lib/stripe/params/payment_link_create_params.rb +32 -20
- data/lib/stripe/params/payment_link_update_params.rb +9 -9
- data/lib/stripe/params/payment_method_attach_params.rb +1 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +40 -40
- data/lib/stripe/params/payment_method_configuration_update_params.rb +40 -40
- data/lib/stripe/params/payment_method_create_params.rb +4 -4
- data/lib/stripe/params/payment_method_update_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
- data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +1 -1
- data/lib/stripe/params/payout_update_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +4 -4
- data/lib/stripe/params/plan_update_params.rb +2 -2
- data/lib/stripe/params/price_create_params.rb +6 -6
- data/lib/stripe/params/price_search_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +3 -3
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
- data/lib/stripe/params/product_create_params.rb +21 -8
- data/lib/stripe/params/product_feature_create_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +1 -1
- data/lib/stripe/params/product_update_params.rb +18 -5
- data/lib/stripe/params/promotion_code_create_params.rb +3 -3
- data/lib/stripe/params/promotion_code_list_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +231 -11
- data/lib/stripe/params/quote_list_params.rb +2 -2
- data/lib/stripe/params/quote_update_params.rb +231 -11
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +2 -2
- data/lib/stripe/params/refund_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +35 -6
- data/lib/stripe/params/setup_intent_create_params.rb +41 -12
- data/lib/stripe/params/setup_intent_update_params.rb +38 -9
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +3 -3
- data/lib/stripe/params/source_update_params.rb +3 -3
- data/lib/stripe/params/subscription_create_params.rb +62 -22
- data/lib/stripe/params/subscription_item_create_params.rb +26 -10
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +26 -10
- data/lib/stripe/params/subscription_list_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +42 -3
- data/lib/stripe/params/subscription_schedule_create_params.rb +85 -17
- data/lib/stripe/params/subscription_schedule_update_params.rb +85 -17
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +60 -20
- data/lib/stripe/params/tax/association_find_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
- data/lib/stripe/params/tax/settings_update_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
- data/lib/stripe/params/tax_id_create_params.rb +2 -2
- data/lib/stripe/params/tax_id_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_create_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +1 -1
- data/lib/stripe/params/terminal/location_create_params.rb +2 -2
- data/lib/stripe/params/terminal/location_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
- data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -6
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/token_create_params.rb +86 -22
- data/lib/stripe/params/topup_create_params.rb +2 -2
- data/lib/stripe/params/topup_update_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +7 -3
- data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
- data/lib/stripe/params/transfer_update_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -3
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +8 -1
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +4 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +4 -1
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +758 -29
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +267 -9
- data/lib/stripe/params/v2/core/account_update_params.rb +750 -35
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- 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/financial_account_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +12 -1
- 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 +20 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +16 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +19 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +16 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +125 -0
- data/lib/stripe/resources/account.rb +27 -27
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_notice.rb +6 -6
- data/lib/stripe/resources/account_session.rb +29 -2
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +1 -1
- data/lib/stripe/resources/balance.rb +85 -2
- data/lib/stripe/resources/balance_settings.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +106 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +60 -4
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
- data/lib/stripe/resources/billing_portal/session.rb +6 -6
- data/lib/stripe/resources/capability.rb +16 -16
- data/lib/stripe/resources/capital/financing_offer.rb +43 -2
- data/lib/stripe/resources/capital/financing_summary.rb +7 -4
- data/lib/stripe/resources/card.rb +20 -3
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +65 -35
- data/lib/stripe/resources/checkout/session.rb +111 -19
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +29 -11
- data/lib/stripe/resources/coupon.rb +3 -3
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -1
- data/lib/stripe/resources/customer.rb +8 -8
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
- data/lib/stripe/resources/discount.rb +5 -3
- data/lib/stripe/resources/dispute.rb +5 -5
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +3 -3
- data/lib/stripe/resources/financial_connections/session.rb +2 -2
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +13 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +79 -31
- data/lib/stripe/resources/invoice_item.rb +112 -8
- data/lib/stripe/resources/invoice_line_item.rb +111 -5
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -20
- data/lib/stripe/resources/issuing/card.rb +16 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +5 -5
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +2 -2
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +13 -13
- data/lib/stripe/resources/line_item.rb +3 -3
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/margin.rb +1 -1
- data/lib/stripe/resources/order.rb +13 -13
- data/lib/stripe/resources/payment_attempt_record.rb +80 -22
- data/lib/stripe/resources/payment_intent.rb +161 -58
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
- data/lib/stripe/resources/payment_link.rb +7 -7
- data/lib/stripe/resources/payment_method.rb +51 -13
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +4 -4
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +82 -22
- data/lib/stripe/resources/payout.rb +7 -7
- data/lib/stripe/resources/person.rb +59 -23
- data/lib/stripe/resources/plan.rb +5 -5
- data/lib/stripe/resources/price.rb +6 -6
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +253 -16
- data/lib/stripe/resources/quote_line.rb +9 -3
- data/lib/stripe/resources/quote_preview_invoice.rb +77 -29
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +102 -8
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -1
- data/lib/stripe/resources/refund.rb +3 -3
- data/lib/stripe/resources/reporting/report_run.rb +3 -3
- data/lib/stripe/resources/reporting/report_type.rb +3 -3
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +17 -17
- data/lib/stripe/resources/setup_intent.rb +59 -19
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/shipping_rate.rb +3 -3
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
- data/lib/stripe/resources/source.rb +8 -8
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +66 -15
- data/lib/stripe/resources/subscription_item.rb +31 -8
- data/lib/stripe/resources/subscription_schedule.rb +103 -9
- data/lib/stripe/resources/tax/association.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +12 -12
- data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
- data/lib/stripe/resources/tax/registration.rb +3 -3
- data/lib/stripe/resources/tax/settings.rb +2 -2
- data/lib/stripe/resources/tax/transaction.rb +9 -9
- data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
- data/lib/stripe/resources/tax_id.rb +4 -4
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -10
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +9 -5
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/financial_account.rb +1 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
- data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/received_credit.rb +10 -10
- data/lib/stripe/resources/treasury/received_debit.rb +7 -7
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/billing/cadence.rb +46 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +1227 -253
- data/lib/stripe/resources/v2/core/account_link.rb +11 -11
- data/lib/stripe/resources/v2/core/account_person.rb +10 -10
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +50 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +21 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +23 -1
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- 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 +83 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +50 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +63 -3
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +48 -2
- data/lib/stripe/resources/v2/money_management/payout_method.rb +49 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +73 -1
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -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 +186 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +133 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +1 -1
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +2 -1
- data/lib/stripe/services/payment_method_service.rb +12 -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/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +5 -1
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +14 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +0 -4
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +2 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/payment_service.rb +17 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +5 -1
- data/lib/stripe/services.rb +47 -0
- data/lib/stripe/stripe_object.rb +30 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +24028 -3406
- metadata +307 -2
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.
|
|
6
|
-
# [Products](https://stripe.com
|
|
6
|
+
# [Products](https://api.stripe.com#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
|
|
7
7
|
#
|
|
8
8
|
# For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
|
|
9
9
|
#
|
|
10
|
-
# Related guides: [Set up a subscription](https://stripe.com/
|
|
10
|
+
# Related guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription), [create an invoice](https://docs.stripe.com/billing/invoices/create), and more about [products and prices](https://docs.stripe.com/products-prices/overview).
|
|
11
11
|
class Price < APIResource
|
|
12
12
|
extend Stripe::APIOperations::Create
|
|
13
13
|
extend Stripe::APIOperations::List
|
|
@@ -59,7 +59,7 @@ module Stripe
|
|
|
59
59
|
end
|
|
60
60
|
# When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
|
|
61
61
|
attr_reader :custom_unit_amount
|
|
62
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
62
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
63
63
|
attr_reader :tax_behavior
|
|
64
64
|
# Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.
|
|
65
65
|
attr_reader :tiers
|
|
@@ -118,7 +118,7 @@ module Stripe
|
|
|
118
118
|
attr_reader :interval_count
|
|
119
119
|
# The meter tracking the usage of a metered price
|
|
120
120
|
attr_reader :meter
|
|
121
|
-
# Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/
|
|
121
|
+
# Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan).
|
|
122
122
|
attr_reader :trial_period_days
|
|
123
123
|
# Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
|
|
124
124
|
attr_reader :usage_type
|
|
@@ -185,7 +185,7 @@ module Stripe
|
|
|
185
185
|
attr_reader :livemode
|
|
186
186
|
# A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
|
|
187
187
|
attr_reader :lookup_key
|
|
188
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
188
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
189
189
|
attr_reader :metadata
|
|
190
190
|
# Subscriptions using this price will be migrated to use the new referenced price.
|
|
191
191
|
attr_reader :migrate_to
|
|
@@ -197,7 +197,7 @@ module Stripe
|
|
|
197
197
|
attr_reader :product
|
|
198
198
|
# The recurring components of a price such as `interval` and `usage_type`.
|
|
199
199
|
attr_reader :recurring
|
|
200
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
200
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
201
201
|
attr_reader :tax_behavior
|
|
202
202
|
# Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.
|
|
203
203
|
attr_reader :tiers
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# Products describe the specific goods or services you offer to your customers.
|
|
6
6
|
# For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
|
|
7
|
-
# They can be used in conjunction with [Prices](https://stripe.com
|
|
7
|
+
# They can be used in conjunction with [Prices](https://api.stripe.com#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.
|
|
8
8
|
#
|
|
9
|
-
# Related guides: [Set up a subscription](https://stripe.com/
|
|
10
|
-
# [share a Payment Link](https://stripe.com/
|
|
11
|
-
# [accept payments with Checkout](https://stripe.com/
|
|
12
|
-
# and more about [Products and Prices](https://stripe.com/
|
|
9
|
+
# Related guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription),
|
|
10
|
+
# [share a Payment Link](https://docs.stripe.com/payment-links),
|
|
11
|
+
# [accept payments with Checkout](https://docs.stripe.com/payments/accept-a-payment#create-product-prices-upfront),
|
|
12
|
+
# and more about [Products and Prices](https://docs.stripe.com/products-prices/overview)
|
|
13
13
|
class Product < APIResource
|
|
14
14
|
extend Stripe::APIOperations::Create
|
|
15
15
|
include Stripe::APIOperations::Delete
|
|
@@ -60,7 +60,7 @@ module Stripe
|
|
|
60
60
|
attr_reader :active
|
|
61
61
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
62
62
|
attr_reader :created
|
|
63
|
-
# The ID of the [Price](https://stripe.com/
|
|
63
|
+
# The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product.
|
|
64
64
|
attr_reader :default_price
|
|
65
65
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
66
66
|
attr_reader :description
|
|
@@ -70,9 +70,9 @@ module Stripe
|
|
|
70
70
|
attr_reader :images
|
|
71
71
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
72
72
|
attr_reader :livemode
|
|
73
|
-
# A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/
|
|
73
|
+
# A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).
|
|
74
74
|
attr_reader :marketing_features
|
|
75
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
75
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
76
76
|
attr_reader :metadata
|
|
77
77
|
# The product's name, meant to be displayable to the customer.
|
|
78
78
|
attr_reader :name
|
|
@@ -84,7 +84,7 @@ module Stripe
|
|
|
84
84
|
attr_reader :shippable
|
|
85
85
|
# Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.
|
|
86
86
|
attr_reader :statement_descriptor
|
|
87
|
-
# A [tax code](https://stripe.com/
|
|
87
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
88
88
|
attr_reader :tax_code
|
|
89
89
|
# The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans.
|
|
90
90
|
attr_reader :type
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module ProductCatalog
|
|
6
|
+
# Resource for the TrialOffer API, used to describe a subscription item's trial period settings.
|
|
7
|
+
# Renders a TrialOffer object that describes the price, duration, end_behavior of a trial offer.
|
|
8
|
+
class TrialOffer < APIResource
|
|
9
|
+
extend Stripe::APIOperations::Create
|
|
10
|
+
|
|
11
|
+
OBJECT_NAME = "product_catalog.trial_offer"
|
|
12
|
+
def self.object_name
|
|
13
|
+
"product_catalog.trial_offer"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class Duration < ::Stripe::StripeObject
|
|
17
|
+
class Relative < ::Stripe::StripeObject
|
|
18
|
+
# The number of iterations of the price's interval for this trial offer.
|
|
19
|
+
attr_reader :iterations
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Attribute for field relative
|
|
30
|
+
attr_reader :relative
|
|
31
|
+
# The type of trial offer duration.
|
|
32
|
+
attr_reader :type
|
|
33
|
+
|
|
34
|
+
def self.inner_class_types
|
|
35
|
+
@inner_class_types = { relative: Relative }
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def self.field_remappings
|
|
39
|
+
@field_remappings = {}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class EndBehavior < ::Stripe::StripeObject
|
|
44
|
+
class Transition < ::Stripe::StripeObject
|
|
45
|
+
# The new price to use at the end of the trial offer period.
|
|
46
|
+
attr_reader :price
|
|
47
|
+
|
|
48
|
+
def self.inner_class_types
|
|
49
|
+
@inner_class_types = {}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def self.field_remappings
|
|
53
|
+
@field_remappings = {}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
# Attribute for field transition
|
|
57
|
+
attr_reader :transition
|
|
58
|
+
# The type of behavior when the trial offer ends.
|
|
59
|
+
attr_reader :type
|
|
60
|
+
|
|
61
|
+
def self.inner_class_types
|
|
62
|
+
@inner_class_types = { transition: Transition }
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def self.field_remappings
|
|
66
|
+
@field_remappings = {}
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
# Attribute for field duration
|
|
70
|
+
attr_reader :duration
|
|
71
|
+
# Attribute for field end_behavior
|
|
72
|
+
attr_reader :end_behavior
|
|
73
|
+
# Unique identifier for the object.
|
|
74
|
+
attr_reader :id
|
|
75
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
76
|
+
attr_reader :livemode
|
|
77
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
78
|
+
attr_reader :object
|
|
79
|
+
# The price during the trial offer.
|
|
80
|
+
attr_reader :price
|
|
81
|
+
|
|
82
|
+
# Creates a trial offer.
|
|
83
|
+
def self.create(params = {}, opts = {})
|
|
84
|
+
request_stripe_object(
|
|
85
|
+
method: :post,
|
|
86
|
+
path: "/v1/product_catalog/trial_offers",
|
|
87
|
+
params: params,
|
|
88
|
+
opts: opts
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def self.inner_class_types
|
|
93
|
+
@inner_class_types = { duration: Duration, end_behavior: EndBehavior }
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self.field_remappings
|
|
97
|
+
@field_remappings = {}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
# A Promotion Code represents a customer-redeemable code for an underlying promotion.
|
|
6
6
|
# You can create multiple codes for a single promotion.
|
|
7
7
|
#
|
|
8
|
-
# If you enable promotion codes in your [customer portal configuration](https://stripe.com/
|
|
8
|
+
# If you enable promotion codes in your [customer portal configuration](https://docs.stripe.com/customer-management/configure-portal), then customers can redeem a code themselves when updating a subscription in the portal.
|
|
9
9
|
# Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal.
|
|
10
10
|
class PromotionCode < APIResource
|
|
11
11
|
extend Stripe::APIOperations::Create
|
|
@@ -68,9 +68,9 @@ module Stripe
|
|
|
68
68
|
attr_reader :code
|
|
69
69
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
70
70
|
attr_reader :created
|
|
71
|
-
# The customer
|
|
71
|
+
# The customer who can use this promotion code.
|
|
72
72
|
attr_reader :customer
|
|
73
|
-
# The account
|
|
73
|
+
# The account representing the customer who can use this promotion code.
|
|
74
74
|
attr_reader :customer_account
|
|
75
75
|
# Date at which the promotion code can no longer be redeemed.
|
|
76
76
|
attr_reader :expires_at
|
|
@@ -80,7 +80,7 @@ module Stripe
|
|
|
80
80
|
attr_reader :livemode
|
|
81
81
|
# Maximum number of times this promotion code can be redeemed.
|
|
82
82
|
attr_reader :max_redemptions
|
|
83
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
83
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
84
84
|
attr_reader :metadata
|
|
85
85
|
# String representing the object's type. Objects of the same type share the same value.
|
|
86
86
|
attr_reader :object
|
|
@@ -89,10 +89,10 @@ module Stripe
|
|
|
89
89
|
class Discount < ::Stripe::StripeObject
|
|
90
90
|
# The amount discounted.
|
|
91
91
|
attr_reader :amount
|
|
92
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
92
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
93
93
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
94
94
|
#
|
|
95
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
95
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
96
96
|
attr_reader :discount
|
|
97
97
|
|
|
98
98
|
def self.inner_class_types
|
|
@@ -180,10 +180,10 @@ module Stripe
|
|
|
180
180
|
class Discount < ::Stripe::StripeObject
|
|
181
181
|
# The amount discounted.
|
|
182
182
|
attr_reader :amount
|
|
183
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
183
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
184
184
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
185
185
|
#
|
|
186
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
186
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
187
187
|
attr_reader :discount
|
|
188
188
|
|
|
189
189
|
def self.inner_class_types
|
|
@@ -588,6 +588,118 @@ module Stripe
|
|
|
588
588
|
end
|
|
589
589
|
end
|
|
590
590
|
|
|
591
|
+
class BillingSchedule < ::Stripe::StripeObject
|
|
592
|
+
class AppliesTo < ::Stripe::StripeObject
|
|
593
|
+
# The billing schedule will apply to the subscription item with the given price ID.
|
|
594
|
+
attr_reader :price
|
|
595
|
+
# Controls which subscription items the billing schedule applies to.
|
|
596
|
+
attr_reader :type
|
|
597
|
+
|
|
598
|
+
def self.inner_class_types
|
|
599
|
+
@inner_class_types = {}
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
def self.field_remappings
|
|
603
|
+
@field_remappings = {}
|
|
604
|
+
end
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
class BillFrom < ::Stripe::StripeObject
|
|
608
|
+
class LineStartsAt < ::Stripe::StripeObject
|
|
609
|
+
# Unique identifier for the object.
|
|
610
|
+
attr_reader :id
|
|
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
|
+
# The time the billing schedule applies from.
|
|
621
|
+
attr_reader :computed_timestamp
|
|
622
|
+
# Lets you bill the period starting from a particular Quote line.
|
|
623
|
+
attr_reader :line_starts_at
|
|
624
|
+
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
625
|
+
attr_reader :timestamp
|
|
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`.
|
|
627
|
+
attr_reader :type
|
|
628
|
+
|
|
629
|
+
def self.inner_class_types
|
|
630
|
+
@inner_class_types = { line_starts_at: LineStartsAt }
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
def self.field_remappings
|
|
634
|
+
@field_remappings = {}
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
class BillUntil < ::Stripe::StripeObject
|
|
639
|
+
class Duration < ::Stripe::StripeObject
|
|
640
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
641
|
+
attr_reader :interval
|
|
642
|
+
# The multiplier applied to the interval.
|
|
643
|
+
attr_reader :interval_count
|
|
644
|
+
|
|
645
|
+
def self.inner_class_types
|
|
646
|
+
@inner_class_types = {}
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
def self.field_remappings
|
|
650
|
+
@field_remappings = {}
|
|
651
|
+
end
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
class LineEndsAt < ::Stripe::StripeObject
|
|
655
|
+
# Unique identifier for the object.
|
|
656
|
+
attr_reader :id
|
|
657
|
+
|
|
658
|
+
def self.inner_class_types
|
|
659
|
+
@inner_class_types = {}
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
def self.field_remappings
|
|
663
|
+
@field_remappings = {}
|
|
664
|
+
end
|
|
665
|
+
end
|
|
666
|
+
# The timestamp the billing schedule will apply until.
|
|
667
|
+
attr_reader :computed_timestamp
|
|
668
|
+
# Specifies the billing period.
|
|
669
|
+
attr_reader :duration
|
|
670
|
+
# Lets you bill the period ending at a particular Quote line.
|
|
671
|
+
attr_reader :line_ends_at
|
|
672
|
+
# If specified, the billing schedule will apply until the specified timestamp.
|
|
673
|
+
attr_reader :timestamp
|
|
674
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
675
|
+
attr_reader :type
|
|
676
|
+
|
|
677
|
+
def self.inner_class_types
|
|
678
|
+
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
def self.field_remappings
|
|
682
|
+
@field_remappings = {}
|
|
683
|
+
end
|
|
684
|
+
end
|
|
685
|
+
# Specifies which subscription items the billing schedule applies to.
|
|
686
|
+
attr_reader :applies_to
|
|
687
|
+
# Specifies the start of the billing period.
|
|
688
|
+
attr_reader :bill_from
|
|
689
|
+
# Attribute for field bill_until
|
|
690
|
+
attr_reader :bill_until
|
|
691
|
+
# Unique identifier for the billing schedule.
|
|
692
|
+
attr_reader :key
|
|
693
|
+
|
|
694
|
+
def self.inner_class_types
|
|
695
|
+
@inner_class_types = { applies_to: AppliesTo, bill_from: BillFrom, bill_until: BillUntil }
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
def self.field_remappings
|
|
699
|
+
@field_remappings = {}
|
|
700
|
+
end
|
|
701
|
+
end
|
|
702
|
+
|
|
591
703
|
class Prebilling < ::Stripe::StripeObject
|
|
592
704
|
# Attribute for field iterations
|
|
593
705
|
attr_reader :iterations
|
|
@@ -608,6 +720,8 @@ module Stripe
|
|
|
608
720
|
attr_reader :billing_cycle_anchor
|
|
609
721
|
# The billing mode of the quote.
|
|
610
722
|
attr_reader :billing_mode
|
|
723
|
+
# Billing schedules that will be applied to the subscription or subscription schedule created from this quote.
|
|
724
|
+
attr_reader :billing_schedules
|
|
611
725
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
612
726
|
attr_reader :description
|
|
613
727
|
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
|
|
@@ -616,11 +730,13 @@ module Stripe
|
|
|
616
730
|
attr_reader :end_behavior
|
|
617
731
|
# The id of the subscription that will be updated when the quote is accepted.
|
|
618
732
|
attr_reader :from_subscription
|
|
619
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
733
|
+
# Set of [key-value pairs](https://docs.stripe.com/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.
|
|
620
734
|
attr_reader :metadata
|
|
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.
|
|
736
|
+
attr_reader :phase_effective_at
|
|
621
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`.
|
|
622
738
|
attr_reader :prebilling
|
|
623
|
-
# Determines how to handle [prorations](https://stripe.com/
|
|
739
|
+
# Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
624
740
|
attr_reader :proration_behavior
|
|
625
741
|
# Integer representing the number of trial period days before the customer is charged for the first time.
|
|
626
742
|
attr_reader :trial_period_days
|
|
@@ -629,6 +745,7 @@ module Stripe
|
|
|
629
745
|
@inner_class_types = {
|
|
630
746
|
bill_on_acceptance: BillOnAcceptance,
|
|
631
747
|
billing_mode: BillingMode,
|
|
748
|
+
billing_schedules: BillingSchedule,
|
|
632
749
|
prebilling: Prebilling,
|
|
633
750
|
}
|
|
634
751
|
end
|
|
@@ -748,23 +865,143 @@ module Stripe
|
|
|
748
865
|
@field_remappings = {}
|
|
749
866
|
end
|
|
750
867
|
end
|
|
868
|
+
|
|
869
|
+
class BillingSchedule < ::Stripe::StripeObject
|
|
870
|
+
class AppliesTo < ::Stripe::StripeObject
|
|
871
|
+
# The billing schedule will apply to the subscription item with the given price ID.
|
|
872
|
+
attr_reader :price
|
|
873
|
+
# Controls which subscription items the billing schedule applies to.
|
|
874
|
+
attr_reader :type
|
|
875
|
+
|
|
876
|
+
def self.inner_class_types
|
|
877
|
+
@inner_class_types = {}
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
def self.field_remappings
|
|
881
|
+
@field_remappings = {}
|
|
882
|
+
end
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
class BillFrom < ::Stripe::StripeObject
|
|
886
|
+
class LineStartsAt < ::Stripe::StripeObject
|
|
887
|
+
# Unique identifier for the object.
|
|
888
|
+
attr_reader :id
|
|
889
|
+
|
|
890
|
+
def self.inner_class_types
|
|
891
|
+
@inner_class_types = {}
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
def self.field_remappings
|
|
895
|
+
@field_remappings = {}
|
|
896
|
+
end
|
|
897
|
+
end
|
|
898
|
+
# The time the billing schedule applies from.
|
|
899
|
+
attr_reader :computed_timestamp
|
|
900
|
+
# Lets you bill the period starting from a particular Quote line.
|
|
901
|
+
attr_reader :line_starts_at
|
|
902
|
+
# Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
|
|
903
|
+
attr_reader :timestamp
|
|
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`.
|
|
905
|
+
attr_reader :type
|
|
906
|
+
|
|
907
|
+
def self.inner_class_types
|
|
908
|
+
@inner_class_types = { line_starts_at: LineStartsAt }
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
def self.field_remappings
|
|
912
|
+
@field_remappings = {}
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
class BillUntil < ::Stripe::StripeObject
|
|
917
|
+
class Duration < ::Stripe::StripeObject
|
|
918
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
919
|
+
attr_reader :interval
|
|
920
|
+
# The multiplier applied to the interval.
|
|
921
|
+
attr_reader :interval_count
|
|
922
|
+
|
|
923
|
+
def self.inner_class_types
|
|
924
|
+
@inner_class_types = {}
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
def self.field_remappings
|
|
928
|
+
@field_remappings = {}
|
|
929
|
+
end
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
class LineEndsAt < ::Stripe::StripeObject
|
|
933
|
+
# Unique identifier for the object.
|
|
934
|
+
attr_reader :id
|
|
935
|
+
|
|
936
|
+
def self.inner_class_types
|
|
937
|
+
@inner_class_types = {}
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
def self.field_remappings
|
|
941
|
+
@field_remappings = {}
|
|
942
|
+
end
|
|
943
|
+
end
|
|
944
|
+
# The timestamp the billing schedule will apply until.
|
|
945
|
+
attr_reader :computed_timestamp
|
|
946
|
+
# Specifies the billing period.
|
|
947
|
+
attr_reader :duration
|
|
948
|
+
# Lets you bill the period ending at a particular Quote line.
|
|
949
|
+
attr_reader :line_ends_at
|
|
950
|
+
# If specified, the billing schedule will apply until the specified timestamp.
|
|
951
|
+
attr_reader :timestamp
|
|
952
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
953
|
+
attr_reader :type
|
|
954
|
+
|
|
955
|
+
def self.inner_class_types
|
|
956
|
+
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
def self.field_remappings
|
|
960
|
+
@field_remappings = {}
|
|
961
|
+
end
|
|
962
|
+
end
|
|
963
|
+
# Specifies which subscription items the billing schedule applies to.
|
|
964
|
+
attr_reader :applies_to
|
|
965
|
+
# Specifies the start of the billing period.
|
|
966
|
+
attr_reader :bill_from
|
|
967
|
+
# Attribute for field bill_until
|
|
968
|
+
attr_reader :bill_until
|
|
969
|
+
# Unique identifier for the billing schedule.
|
|
970
|
+
attr_reader :key
|
|
971
|
+
|
|
972
|
+
def self.inner_class_types
|
|
973
|
+
@inner_class_types = { applies_to: AppliesTo, bill_from: BillFrom, bill_until: BillUntil }
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
def self.field_remappings
|
|
977
|
+
@field_remappings = {}
|
|
978
|
+
end
|
|
979
|
+
end
|
|
751
980
|
# Attribute for field applies_to
|
|
752
981
|
attr_reader :applies_to
|
|
753
982
|
# Describes the period to bill for upon accepting the quote.
|
|
754
983
|
attr_reader :bill_on_acceptance
|
|
755
984
|
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
756
985
|
attr_reader :billing_behavior
|
|
757
|
-
#
|
|
986
|
+
# Billing schedules that will be applied to the subscription or subscription schedule created from this quote.
|
|
987
|
+
attr_reader :billing_schedules
|
|
988
|
+
# The customer who received this quote. A customer is required to finalize the quote. Once specified, you can't change it.
|
|
758
989
|
attr_reader :customer
|
|
759
990
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
760
991
|
attr_reader :description
|
|
761
992
|
# Behavior of the subscription schedule and underlying subscription when it ends.
|
|
762
993
|
attr_reader :end_behavior
|
|
763
|
-
#
|
|
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.
|
|
995
|
+
attr_reader :phase_effective_at
|
|
996
|
+
# Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
764
997
|
attr_reader :proration_behavior
|
|
765
998
|
|
|
766
999
|
def self.inner_class_types
|
|
767
|
-
@inner_class_types = {
|
|
1000
|
+
@inner_class_types = {
|
|
1001
|
+
applies_to: AppliesTo,
|
|
1002
|
+
bill_on_acceptance: BillOnAcceptance,
|
|
1003
|
+
billing_schedules: BillingSchedule,
|
|
1004
|
+
}
|
|
768
1005
|
end
|
|
769
1006
|
|
|
770
1007
|
def self.field_remappings
|
|
@@ -808,10 +1045,10 @@ module Stripe
|
|
|
808
1045
|
class Discount < ::Stripe::StripeObject
|
|
809
1046
|
# The amount discounted.
|
|
810
1047
|
attr_reader :amount
|
|
811
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
1048
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
812
1049
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
813
1050
|
#
|
|
814
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
1051
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
815
1052
|
attr_reader :discount
|
|
816
1053
|
|
|
817
1054
|
def self.inner_class_types
|
|
@@ -912,9 +1149,9 @@ module Stripe
|
|
|
912
1149
|
attr_reader :created
|
|
913
1150
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
914
1151
|
attr_reader :currency
|
|
915
|
-
# The customer
|
|
1152
|
+
# The customer who received this quote. A customer is required to finalize the quote. Once specified, you can't change it.
|
|
916
1153
|
attr_reader :customer
|
|
917
|
-
# The account
|
|
1154
|
+
# The account representing the customer who received this quote. A customer or account is required to finalize the quote. Once specified, you can't change it.
|
|
918
1155
|
attr_reader :customer_account
|
|
919
1156
|
# The tax rates applied to this quote.
|
|
920
1157
|
attr_reader :default_tax_rates
|
|
@@ -926,7 +1163,7 @@ module Stripe
|
|
|
926
1163
|
attr_reader :expires_at
|
|
927
1164
|
# A footer that will be displayed on the quote PDF.
|
|
928
1165
|
attr_reader :footer
|
|
929
|
-
# Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/
|
|
1166
|
+
# Details of the quote that was cloned. See the [cloning documentation](https://docs.stripe.com/quotes/clone) for more details.
|
|
930
1167
|
attr_reader :from_quote
|
|
931
1168
|
# A header that will be displayed on the quote PDF.
|
|
932
1169
|
attr_reader :header
|
|
@@ -942,9 +1179,9 @@ module Stripe
|
|
|
942
1179
|
attr_reader :lines
|
|
943
1180
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
944
1181
|
attr_reader :livemode
|
|
945
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
1182
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
946
1183
|
attr_reader :metadata
|
|
947
|
-
# A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/
|
|
1184
|
+
# A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://docs.stripe.com/quotes/overview#finalize).
|
|
948
1185
|
attr_reader :number
|
|
949
1186
|
# String representing the object's type. Objects of the same type share the same value.
|
|
950
1187
|
attr_reader :object
|
|
@@ -93,7 +93,7 @@ module Stripe
|
|
|
93
93
|
end
|
|
94
94
|
# The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
95
95
|
attr_reader :discounts
|
|
96
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
96
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
|
|
97
97
|
attr_reader :metadata
|
|
98
98
|
# ID of the price to which the customer should be subscribed.
|
|
99
99
|
attr_reader :price
|
|
@@ -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 }
|
|
@@ -242,7 +244,7 @@ module Stripe
|
|
|
242
244
|
end
|
|
243
245
|
# The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
244
246
|
attr_reader :discounts
|
|
245
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
247
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
|
|
246
248
|
attr_reader :metadata
|
|
247
249
|
# ID of the price to which the customer should be subscribed.
|
|
248
250
|
attr_reader :price
|
|
@@ -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 }
|
|
@@ -393,7 +397,7 @@ module Stripe
|
|
|
393
397
|
@field_remappings = {}
|
|
394
398
|
end
|
|
395
399
|
end
|
|
396
|
-
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/
|
|
400
|
+
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
397
401
|
attr_reader :set
|
|
398
402
|
# Defines the type of the pause_collection behavior for the quote line.
|
|
399
403
|
attr_reader :type
|
|
@@ -485,6 +489,8 @@ module Stripe
|
|
|
485
489
|
attr_reader :billing_cycle_anchor
|
|
486
490
|
# A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
|
|
487
491
|
attr_reader :cancel_subscription_schedule
|
|
492
|
+
# 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.
|
|
493
|
+
attr_reader :effective_at
|
|
488
494
|
# Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
|
|
489
495
|
attr_reader :ends_at
|
|
490
496
|
# Unique identifier for the object.
|