stripe 18.2.0.pre.beta.1 → 18.3.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/stripe/api_requestor.rb +3 -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_account_including_future_requirements_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_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 +41 -3
- data/lib/stripe/params/account_create_params.rb +34 -2
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +17 -0
- data/lib/stripe/params/account_update_params.rb +34 -2
- 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 +13 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- 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/checkout/session_create_params.rb +96 -2
- data/lib/stripe/params/checkout/session_update_params.rb +16 -1
- 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/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/{reserve/plan_retrieve_params.rb → identity/blocklist_entry_disable_params.rb} +2 -2
- 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/invoice_add_lines_params.rb +16 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +122 -3
- data/lib/stripe/params/invoice_line_item_update_params.rb +16 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +16 -1
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/{reserve/release_list_params.rb → issuing/program_list_params.rb} +3 -20
- data/lib/stripe/params/{reserve/release_retrieve_params.rb → issuing/program_retrieve_params.rb} +2 -2
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +40 -2
- data/lib/stripe/params/payment_intent_create_params.rb +53 -2
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +35 -1
- data/lib/stripe/params/payment_link_create_params.rb +16 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/plan_create_params.rb +16 -1
- data/lib/stripe/params/price_create_params.rb +16 -1
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +17 -1
- data/lib/stripe/params/product_update_params.rb +17 -1
- data/lib/stripe/params/quote_create_params.rb +222 -2
- data/lib/stripe/params/quote_update_params.rb +222 -2
- 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 +41 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +29 -0
- data/lib/stripe/params/setup_intent_create_params.rb +29 -0
- data/lib/stripe/params/setup_intent_update_params.rb +30 -1
- 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_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +16 -0
- data/lib/stripe/params/subscription_item_create_params.rb +16 -0
- data/lib/stripe/params/subscription_item_update_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +41 -2
- data/lib/stripe/params/subscription_schedule_create_params.rb +69 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +69 -1
- data/lib/stripe/params/subscription_update_params.rb +16 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +5 -1
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/{reserve/hold_retrieve_params.rb → tax/location_retrieve_params.rb} +2 -2
- 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/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/token_create_params.rb +64 -0
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- 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 +716 -9
- data/lib/stripe/params/v2/core/account_token_create_params.rb +237 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +702 -9
- 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/outbound_payment_create_params.rb +25 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +4 -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 +4 -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/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +128 -5
- data/lib/stripe/resources/account_session.rb +27 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- 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 +58 -2
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +41 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +18 -0
- data/lib/stripe/resources/checkout/session.rb +92 -0
- data/lib/stripe/resources/confirmation_token.rb +18 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +509 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/invoice.rb +18 -0
- data/lib/stripe/resources/invoice_item.rb +106 -2
- data/lib/stripe/resources/invoice_line_item.rb +107 -3
- data/lib/stripe/resources/issuing/card.rb +4 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/payment_intent.rb +63 -1
- data/lib/stripe/resources/payment_method.rb +38 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/plan.rb +2 -0
- data/lib/stripe/resources/price.rb +2 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +103 -0
- data/lib/stripe/resources/quote.rb +238 -1
- data/lib/stripe/resources/quote_line.rb +6 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +18 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +94 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +145 -0
- data/lib/stripe/resources/setup_intent.rb +40 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/subscription.rb +20 -1
- data/lib/stripe/resources/subscription_item.rb +24 -1
- data/lib/stripe/resources/subscription_schedule.rb +94 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/transfer.rb +4 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- 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 +1073 -5
- 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 +21 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +35 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +87 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +47 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +34 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +56 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- 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.rb +134 -3
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- 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 +11 -0
- 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/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- 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 -2
- 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 +2 -0
- data/lib/stripe/services/v2/core/account_service.rb +10 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +4 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +10 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +4 -0
- 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/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 +48 -4
- data/lib/stripe/stripe_client.rb +1 -8
- data/lib/stripe/util.rb +9 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -1
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +21285 -1431
- metadata +312 -15
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/resources/reserve/hold.rb +0 -74
- data/lib/stripe/resources/reserve/plan.rb +0 -78
- data/lib/stripe/resources/reserve/release.rb +0 -77
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/stripe_event_notification_handler.rb +0 -425
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module SharedPayment
|
|
6
|
+
class GrantedTokenCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class UsageLimits < ::Stripe::RequestParams
|
|
8
|
+
# 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).
|
|
9
|
+
attr_accessor :currency
|
|
10
|
+
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
11
|
+
attr_accessor :expires_at
|
|
12
|
+
# Max amount that can be captured using this SharedPaymentToken
|
|
13
|
+
attr_accessor :max_amount
|
|
14
|
+
|
|
15
|
+
def initialize(currency: nil, expires_at: nil, max_amount: nil)
|
|
16
|
+
@currency = currency
|
|
17
|
+
@expires_at = expires_at
|
|
18
|
+
@max_amount = max_amount
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
# The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any.
|
|
22
|
+
attr_accessor :customer
|
|
23
|
+
# Specifies which fields in the response should be expanded.
|
|
24
|
+
attr_accessor :expand
|
|
25
|
+
# The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken.
|
|
26
|
+
attr_accessor :payment_method
|
|
27
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken.
|
|
28
|
+
attr_accessor :shared_metadata
|
|
29
|
+
# Limits on how this SharedPaymentGrantedToken can be used.
|
|
30
|
+
attr_accessor :usage_limits
|
|
31
|
+
|
|
32
|
+
def initialize(
|
|
33
|
+
customer: nil,
|
|
34
|
+
expand: nil,
|
|
35
|
+
payment_method: nil,
|
|
36
|
+
shared_metadata: nil,
|
|
37
|
+
usage_limits: nil
|
|
38
|
+
)
|
|
39
|
+
@customer = customer
|
|
40
|
+
@expand = expand
|
|
41
|
+
@payment_method = payment_method
|
|
42
|
+
@shared_metadata = shared_metadata
|
|
43
|
+
@usage_limits = usage_limits
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module SharedPayment
|
|
6
|
+
class GrantedTokenRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module SharedPayment
|
|
6
|
+
class GrantedTokenRevokeParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -346,6 +346,18 @@ module Stripe
|
|
|
346
346
|
end
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
350
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
351
|
+
attr_accessor :trial_end
|
|
352
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
353
|
+
attr_accessor :trial_offer
|
|
354
|
+
|
|
355
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
356
|
+
@trial_end = trial_end
|
|
357
|
+
@trial_offer = trial_offer
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
|
|
349
361
|
class Discount < ::Stripe::RequestParams
|
|
350
362
|
class DiscountEnd < ::Stripe::RequestParams
|
|
351
363
|
class Duration < ::Stripe::RequestParams
|
|
@@ -444,6 +456,8 @@ module Stripe
|
|
|
444
456
|
end
|
|
445
457
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
446
458
|
attr_accessor :billing_thresholds
|
|
459
|
+
# The trial offer to apply to this subscription item.
|
|
460
|
+
attr_accessor :current_trial
|
|
447
461
|
# The coupons to redeem into discounts for the subscription item.
|
|
448
462
|
attr_accessor :discounts
|
|
449
463
|
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
@@ -463,6 +477,7 @@ module Stripe
|
|
|
463
477
|
|
|
464
478
|
def initialize(
|
|
465
479
|
billing_thresholds: nil,
|
|
480
|
+
current_trial: nil,
|
|
466
481
|
discounts: nil,
|
|
467
482
|
metadata: nil,
|
|
468
483
|
plan: nil,
|
|
@@ -473,6 +488,7 @@ module Stripe
|
|
|
473
488
|
trial: nil
|
|
474
489
|
)
|
|
475
490
|
@billing_thresholds = billing_thresholds
|
|
491
|
+
@current_trial = current_trial
|
|
476
492
|
@discounts = discounts
|
|
477
493
|
@metadata = metadata
|
|
478
494
|
@plan = plan
|
|
@@ -12,6 +12,18 @@ module Stripe
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
16
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
17
|
+
attr_accessor :trial_end
|
|
18
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
19
|
+
attr_accessor :trial_offer
|
|
20
|
+
|
|
21
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
22
|
+
@trial_end = trial_end
|
|
23
|
+
@trial_offer = trial_offer
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
15
27
|
class Discount < ::Stripe::RequestParams
|
|
16
28
|
class DiscountEnd < ::Stripe::RequestParams
|
|
17
29
|
class Duration < ::Stripe::RequestParams
|
|
@@ -110,6 +122,8 @@ module Stripe
|
|
|
110
122
|
end
|
|
111
123
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
112
124
|
attr_accessor :billing_thresholds
|
|
125
|
+
# The trial offer to apply to this subscription item.
|
|
126
|
+
attr_accessor :current_trial
|
|
113
127
|
# The coupons to redeem into discounts for the subscription item.
|
|
114
128
|
attr_accessor :discounts
|
|
115
129
|
# Specifies which fields in the response should be expanded.
|
|
@@ -145,6 +159,7 @@ module Stripe
|
|
|
145
159
|
|
|
146
160
|
def initialize(
|
|
147
161
|
billing_thresholds: nil,
|
|
162
|
+
current_trial: nil,
|
|
148
163
|
discounts: nil,
|
|
149
164
|
expand: nil,
|
|
150
165
|
metadata: nil,
|
|
@@ -160,6 +175,7 @@ module Stripe
|
|
|
160
175
|
trial: nil
|
|
161
176
|
)
|
|
162
177
|
@billing_thresholds = billing_thresholds
|
|
178
|
+
@current_trial = current_trial
|
|
163
179
|
@discounts = discounts
|
|
164
180
|
@expand = expand
|
|
165
181
|
@metadata = metadata
|
|
@@ -12,6 +12,18 @@ module Stripe
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
16
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
17
|
+
attr_accessor :trial_end
|
|
18
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
19
|
+
attr_accessor :trial_offer
|
|
20
|
+
|
|
21
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
22
|
+
@trial_end = trial_end
|
|
23
|
+
@trial_offer = trial_offer
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
15
27
|
class Discount < ::Stripe::RequestParams
|
|
16
28
|
class DiscountEnd < ::Stripe::RequestParams
|
|
17
29
|
class Duration < ::Stripe::RequestParams
|
|
@@ -98,6 +110,8 @@ module Stripe
|
|
|
98
110
|
end
|
|
99
111
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
100
112
|
attr_accessor :billing_thresholds
|
|
113
|
+
# The trial offer to apply to this subscription item.
|
|
114
|
+
attr_accessor :current_trial
|
|
101
115
|
# The coupons to redeem into discounts for the subscription item.
|
|
102
116
|
attr_accessor :discounts
|
|
103
117
|
# Specifies which fields in the response should be expanded.
|
|
@@ -131,6 +145,7 @@ module Stripe
|
|
|
131
145
|
|
|
132
146
|
def initialize(
|
|
133
147
|
billing_thresholds: nil,
|
|
148
|
+
current_trial: nil,
|
|
134
149
|
discounts: nil,
|
|
135
150
|
expand: nil,
|
|
136
151
|
metadata: nil,
|
|
@@ -145,6 +160,7 @@ module Stripe
|
|
|
145
160
|
tax_rates: nil
|
|
146
161
|
)
|
|
147
162
|
@billing_thresholds = billing_thresholds
|
|
163
|
+
@current_trial = current_trial
|
|
148
164
|
@discounts = discounts
|
|
149
165
|
@expand = expand
|
|
150
166
|
@metadata = metadata
|
|
@@ -77,6 +77,29 @@ module Stripe
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
class BillingSchedulesAction < ::Stripe::RequestParams
|
|
81
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
82
|
+
# The ID of the price object.
|
|
83
|
+
attr_accessor :price
|
|
84
|
+
# Controls which subscription items the billing schedule applies to.
|
|
85
|
+
attr_accessor :type
|
|
86
|
+
|
|
87
|
+
def initialize(price: nil, type: nil)
|
|
88
|
+
@price = price
|
|
89
|
+
@type = type
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
# Specify which subscription items the billing schedule applies to.
|
|
93
|
+
attr_accessor :applies_to
|
|
94
|
+
# Select the action.
|
|
95
|
+
attr_accessor :type
|
|
96
|
+
|
|
97
|
+
def initialize(applies_to: nil, type: nil)
|
|
98
|
+
@applies_to = applies_to
|
|
99
|
+
@type = type
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
80
103
|
class DiscountAction < ::Stripe::RequestParams
|
|
81
104
|
class Add < ::Stripe::RequestParams
|
|
82
105
|
class DiscountEnd < ::Stripe::RequestParams
|
|
@@ -227,6 +250,8 @@ module Stripe
|
|
|
227
250
|
attr_accessor :tax_rates
|
|
228
251
|
# Options that configure the trial on the subscription item.
|
|
229
252
|
attr_accessor :trial
|
|
253
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
254
|
+
attr_accessor :trial_offer
|
|
230
255
|
|
|
231
256
|
def initialize(
|
|
232
257
|
discounts: nil,
|
|
@@ -234,7 +259,8 @@ module Stripe
|
|
|
234
259
|
price: nil,
|
|
235
260
|
quantity: nil,
|
|
236
261
|
tax_rates: nil,
|
|
237
|
-
trial: nil
|
|
262
|
+
trial: nil,
|
|
263
|
+
trial_offer: nil
|
|
238
264
|
)
|
|
239
265
|
@discounts = discounts
|
|
240
266
|
@metadata = metadata
|
|
@@ -242,6 +268,7 @@ module Stripe
|
|
|
242
268
|
@quantity = quantity
|
|
243
269
|
@tax_rates = tax_rates
|
|
244
270
|
@trial = trial
|
|
271
|
+
@trial_offer = trial_offer
|
|
245
272
|
end
|
|
246
273
|
end
|
|
247
274
|
|
|
@@ -321,6 +348,8 @@ module Stripe
|
|
|
321
348
|
attr_accessor :tax_rates
|
|
322
349
|
# If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
323
350
|
attr_accessor :trial
|
|
351
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
352
|
+
attr_accessor :trial_offer
|
|
324
353
|
|
|
325
354
|
def initialize(
|
|
326
355
|
discounts: nil,
|
|
@@ -328,7 +357,8 @@ module Stripe
|
|
|
328
357
|
price: nil,
|
|
329
358
|
quantity: nil,
|
|
330
359
|
tax_rates: nil,
|
|
331
|
-
trial: nil
|
|
360
|
+
trial: nil,
|
|
361
|
+
trial_offer: nil
|
|
332
362
|
)
|
|
333
363
|
@discounts = discounts
|
|
334
364
|
@metadata = metadata
|
|
@@ -336,6 +366,7 @@ module Stripe
|
|
|
336
366
|
@quantity = quantity
|
|
337
367
|
@tax_rates = tax_rates
|
|
338
368
|
@trial = trial
|
|
369
|
+
@trial_offer = trial_offer
|
|
339
370
|
end
|
|
340
371
|
end
|
|
341
372
|
# Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
@@ -415,8 +446,12 @@ module Stripe
|
|
|
415
446
|
attr_accessor :amendment_start
|
|
416
447
|
# For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
|
|
417
448
|
attr_accessor :billing_cycle_anchor
|
|
449
|
+
# Actions to apply to the billing schedules.
|
|
450
|
+
attr_accessor :billing_schedules_actions
|
|
418
451
|
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
419
452
|
attr_accessor :discount_actions
|
|
453
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
454
|
+
attr_accessor :effective_at
|
|
420
455
|
# Changes to the subscription items during the amendment time span.
|
|
421
456
|
attr_accessor :item_actions
|
|
422
457
|
# Instructions for how to modify phase metadata
|
|
@@ -434,7 +469,9 @@ module Stripe
|
|
|
434
469
|
amendment_end: nil,
|
|
435
470
|
amendment_start: nil,
|
|
436
471
|
billing_cycle_anchor: nil,
|
|
472
|
+
billing_schedules_actions: nil,
|
|
437
473
|
discount_actions: nil,
|
|
474
|
+
effective_at: nil,
|
|
438
475
|
item_actions: nil,
|
|
439
476
|
metadata_actions: nil,
|
|
440
477
|
proration_behavior: nil,
|
|
@@ -445,7 +482,9 @@ module Stripe
|
|
|
445
482
|
@amendment_end = amendment_end
|
|
446
483
|
@amendment_start = amendment_start
|
|
447
484
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
485
|
+
@billing_schedules_actions = billing_schedules_actions
|
|
448
486
|
@discount_actions = discount_actions
|
|
487
|
+
@effective_at = effective_at
|
|
449
488
|
@item_actions = item_actions
|
|
450
489
|
@metadata_actions = metadata_actions
|
|
451
490
|
@proration_behavior = proration_behavior
|
|
@@ -23,6 +23,58 @@ module Stripe
|
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
27
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
28
|
+
# The ID of the price object.
|
|
29
|
+
attr_accessor :price
|
|
30
|
+
# Controls which subscription items the billing schedule applies to.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
def initialize(price: nil, type: nil)
|
|
34
|
+
@price = price
|
|
35
|
+
@type = type
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
class BillUntil < ::Stripe::RequestParams
|
|
40
|
+
class Duration < ::Stripe::RequestParams
|
|
41
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
42
|
+
attr_accessor :interval
|
|
43
|
+
# The multiplier applied to the interval.
|
|
44
|
+
attr_accessor :interval_count
|
|
45
|
+
|
|
46
|
+
def initialize(interval: nil, interval_count: nil)
|
|
47
|
+
@interval = interval
|
|
48
|
+
@interval_count = interval_count
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
# Specifies the billing period.
|
|
52
|
+
attr_accessor :duration
|
|
53
|
+
# The end date of the billing schedule.
|
|
54
|
+
attr_accessor :timestamp
|
|
55
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
56
|
+
attr_accessor :type
|
|
57
|
+
|
|
58
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
59
|
+
@duration = duration
|
|
60
|
+
@timestamp = timestamp
|
|
61
|
+
@type = type
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
# Configure billing schedule differently for individual subscription items.
|
|
65
|
+
attr_accessor :applies_to
|
|
66
|
+
# The end date for the billing schedule.
|
|
67
|
+
attr_accessor :bill_until
|
|
68
|
+
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
69
|
+
attr_accessor :key
|
|
70
|
+
|
|
71
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
72
|
+
@applies_to = applies_to
|
|
73
|
+
@bill_until = bill_until
|
|
74
|
+
@key = key
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
26
78
|
class DefaultSettings < ::Stripe::RequestParams
|
|
27
79
|
class AutomaticTax < ::Stripe::RequestParams
|
|
28
80
|
class Liability < ::Stripe::RequestParams
|
|
@@ -114,6 +166,8 @@ module Stripe
|
|
|
114
166
|
attr_accessor :invoice_settings
|
|
115
167
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
116
168
|
attr_accessor :on_behalf_of
|
|
169
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
170
|
+
attr_accessor :phase_effective_at
|
|
117
171
|
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
|
118
172
|
attr_accessor :transfer_data
|
|
119
173
|
|
|
@@ -127,6 +181,7 @@ module Stripe
|
|
|
127
181
|
description: nil,
|
|
128
182
|
invoice_settings: nil,
|
|
129
183
|
on_behalf_of: nil,
|
|
184
|
+
phase_effective_at: nil,
|
|
130
185
|
transfer_data: nil
|
|
131
186
|
)
|
|
132
187
|
@application_fee_percent = application_fee_percent
|
|
@@ -138,6 +193,7 @@ module Stripe
|
|
|
138
193
|
@description = description
|
|
139
194
|
@invoice_settings = invoice_settings
|
|
140
195
|
@on_behalf_of = on_behalf_of
|
|
196
|
+
@phase_effective_at = phase_effective_at
|
|
141
197
|
@transfer_data = transfer_data
|
|
142
198
|
end
|
|
143
199
|
end
|
|
@@ -522,6 +578,8 @@ module Stripe
|
|
|
522
578
|
attr_accessor :tax_rates
|
|
523
579
|
# Options that configure the trial on the subscription item.
|
|
524
580
|
attr_accessor :trial
|
|
581
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
582
|
+
attr_accessor :trial_offer
|
|
525
583
|
|
|
526
584
|
def initialize(
|
|
527
585
|
billing_thresholds: nil,
|
|
@@ -532,7 +590,8 @@ module Stripe
|
|
|
532
590
|
price_data: nil,
|
|
533
591
|
quantity: nil,
|
|
534
592
|
tax_rates: nil,
|
|
535
|
-
trial: nil
|
|
593
|
+
trial: nil,
|
|
594
|
+
trial_offer: nil
|
|
536
595
|
)
|
|
537
596
|
@billing_thresholds = billing_thresholds
|
|
538
597
|
@discounts = discounts
|
|
@@ -543,6 +602,7 @@ module Stripe
|
|
|
543
602
|
@quantity = quantity
|
|
544
603
|
@tax_rates = tax_rates
|
|
545
604
|
@trial = trial
|
|
605
|
+
@trial_offer = trial_offer
|
|
546
606
|
end
|
|
547
607
|
end
|
|
548
608
|
|
|
@@ -607,6 +667,8 @@ module Stripe
|
|
|
607
667
|
attr_accessor :discounts
|
|
608
668
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
609
669
|
attr_accessor :duration
|
|
670
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
671
|
+
attr_accessor :effective_at
|
|
610
672
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
611
673
|
attr_accessor :end_date
|
|
612
674
|
# All invoices will be billed using the specified settings.
|
|
@@ -645,6 +707,7 @@ module Stripe
|
|
|
645
707
|
description: nil,
|
|
646
708
|
discounts: nil,
|
|
647
709
|
duration: nil,
|
|
710
|
+
effective_at: nil,
|
|
648
711
|
end_date: nil,
|
|
649
712
|
invoice_settings: nil,
|
|
650
713
|
items: nil,
|
|
@@ -670,6 +733,7 @@ module Stripe
|
|
|
670
733
|
@description = description
|
|
671
734
|
@discounts = discounts
|
|
672
735
|
@duration = duration
|
|
736
|
+
@effective_at = effective_at
|
|
673
737
|
@end_date = end_date
|
|
674
738
|
@invoice_settings = invoice_settings
|
|
675
739
|
@items = items
|
|
@@ -700,6 +764,8 @@ module Stripe
|
|
|
700
764
|
attr_accessor :billing_behavior
|
|
701
765
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
702
766
|
attr_accessor :billing_mode
|
|
767
|
+
# Sets the billing schedules for the subscription schedule.
|
|
768
|
+
attr_accessor :billing_schedules
|
|
703
769
|
# The identifier of the customer to create the subscription schedule for.
|
|
704
770
|
attr_accessor :customer
|
|
705
771
|
# The identifier of the account to create the subscription schedule for.
|
|
@@ -724,6 +790,7 @@ module Stripe
|
|
|
724
790
|
def initialize(
|
|
725
791
|
billing_behavior: nil,
|
|
726
792
|
billing_mode: nil,
|
|
793
|
+
billing_schedules: nil,
|
|
727
794
|
customer: nil,
|
|
728
795
|
customer_account: nil,
|
|
729
796
|
default_settings: nil,
|
|
@@ -737,6 +804,7 @@ module Stripe
|
|
|
737
804
|
)
|
|
738
805
|
@billing_behavior = billing_behavior
|
|
739
806
|
@billing_mode = billing_mode
|
|
807
|
+
@billing_schedules = billing_schedules
|
|
740
808
|
@customer = customer
|
|
741
809
|
@customer_account = customer_account
|
|
742
810
|
@default_settings = default_settings
|
|
@@ -3,6 +3,58 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class SubscriptionScheduleUpdateParams < ::Stripe::RequestParams
|
|
6
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
7
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
8
|
+
# The ID of the price object.
|
|
9
|
+
attr_accessor :price
|
|
10
|
+
# Controls which subscription items the billing schedule applies to.
|
|
11
|
+
attr_accessor :type
|
|
12
|
+
|
|
13
|
+
def initialize(price: nil, type: nil)
|
|
14
|
+
@price = price
|
|
15
|
+
@type = type
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
class BillUntil < ::Stripe::RequestParams
|
|
20
|
+
class Duration < ::Stripe::RequestParams
|
|
21
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
22
|
+
attr_accessor :interval
|
|
23
|
+
# The multiplier applied to the interval.
|
|
24
|
+
attr_accessor :interval_count
|
|
25
|
+
|
|
26
|
+
def initialize(interval: nil, interval_count: nil)
|
|
27
|
+
@interval = interval
|
|
28
|
+
@interval_count = interval_count
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
# Specifies the billing period.
|
|
32
|
+
attr_accessor :duration
|
|
33
|
+
# The end date of the billing schedule.
|
|
34
|
+
attr_accessor :timestamp
|
|
35
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
36
|
+
attr_accessor :type
|
|
37
|
+
|
|
38
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
39
|
+
@duration = duration
|
|
40
|
+
@timestamp = timestamp
|
|
41
|
+
@type = type
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
# Configure billing schedule differently for individual subscription items.
|
|
45
|
+
attr_accessor :applies_to
|
|
46
|
+
# The end date for the billing schedule.
|
|
47
|
+
attr_accessor :bill_until
|
|
48
|
+
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
49
|
+
attr_accessor :key
|
|
50
|
+
|
|
51
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
52
|
+
@applies_to = applies_to
|
|
53
|
+
@bill_until = bill_until
|
|
54
|
+
@key = key
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
6
58
|
class DefaultSettings < ::Stripe::RequestParams
|
|
7
59
|
class AutomaticTax < ::Stripe::RequestParams
|
|
8
60
|
class Liability < ::Stripe::RequestParams
|
|
@@ -94,6 +146,8 @@ module Stripe
|
|
|
94
146
|
attr_accessor :invoice_settings
|
|
95
147
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
96
148
|
attr_accessor :on_behalf_of
|
|
149
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
150
|
+
attr_accessor :phase_effective_at
|
|
97
151
|
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
|
98
152
|
attr_accessor :transfer_data
|
|
99
153
|
|
|
@@ -107,6 +161,7 @@ module Stripe
|
|
|
107
161
|
description: nil,
|
|
108
162
|
invoice_settings: nil,
|
|
109
163
|
on_behalf_of: nil,
|
|
164
|
+
phase_effective_at: nil,
|
|
110
165
|
transfer_data: nil
|
|
111
166
|
)
|
|
112
167
|
@application_fee_percent = application_fee_percent
|
|
@@ -118,6 +173,7 @@ module Stripe
|
|
|
118
173
|
@description = description
|
|
119
174
|
@invoice_settings = invoice_settings
|
|
120
175
|
@on_behalf_of = on_behalf_of
|
|
176
|
+
@phase_effective_at = phase_effective_at
|
|
121
177
|
@transfer_data = transfer_data
|
|
122
178
|
end
|
|
123
179
|
end
|
|
@@ -502,6 +558,8 @@ module Stripe
|
|
|
502
558
|
attr_accessor :tax_rates
|
|
503
559
|
# Options that configure the trial on the subscription item.
|
|
504
560
|
attr_accessor :trial
|
|
561
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
562
|
+
attr_accessor :trial_offer
|
|
505
563
|
|
|
506
564
|
def initialize(
|
|
507
565
|
billing_thresholds: nil,
|
|
@@ -512,7 +570,8 @@ module Stripe
|
|
|
512
570
|
price_data: nil,
|
|
513
571
|
quantity: nil,
|
|
514
572
|
tax_rates: nil,
|
|
515
|
-
trial: nil
|
|
573
|
+
trial: nil,
|
|
574
|
+
trial_offer: nil
|
|
516
575
|
)
|
|
517
576
|
@billing_thresholds = billing_thresholds
|
|
518
577
|
@discounts = discounts
|
|
@@ -523,6 +582,7 @@ module Stripe
|
|
|
523
582
|
@quantity = quantity
|
|
524
583
|
@tax_rates = tax_rates
|
|
525
584
|
@trial = trial
|
|
585
|
+
@trial_offer = trial_offer
|
|
526
586
|
end
|
|
527
587
|
end
|
|
528
588
|
|
|
@@ -587,6 +647,8 @@ module Stripe
|
|
|
587
647
|
attr_accessor :discounts
|
|
588
648
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
589
649
|
attr_accessor :duration
|
|
650
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
651
|
+
attr_accessor :effective_at
|
|
590
652
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
591
653
|
attr_accessor :end_date
|
|
592
654
|
# All invoices will be billed using the specified settings.
|
|
@@ -627,6 +689,7 @@ module Stripe
|
|
|
627
689
|
description: nil,
|
|
628
690
|
discounts: nil,
|
|
629
691
|
duration: nil,
|
|
692
|
+
effective_at: nil,
|
|
630
693
|
end_date: nil,
|
|
631
694
|
invoice_settings: nil,
|
|
632
695
|
items: nil,
|
|
@@ -653,6 +716,7 @@ module Stripe
|
|
|
653
716
|
@description = description
|
|
654
717
|
@discounts = discounts
|
|
655
718
|
@duration = duration
|
|
719
|
+
@effective_at = effective_at
|
|
656
720
|
@end_date = end_date
|
|
657
721
|
@invoice_settings = invoice_settings
|
|
658
722
|
@items = items
|
|
@@ -682,6 +746,8 @@ module Stripe
|
|
|
682
746
|
end
|
|
683
747
|
# 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.
|
|
684
748
|
attr_accessor :billing_behavior
|
|
749
|
+
# Sets the billing schedules for the subscription schedule.
|
|
750
|
+
attr_accessor :billing_schedules
|
|
685
751
|
# Object representing the subscription schedule's default settings.
|
|
686
752
|
attr_accessor :default_settings
|
|
687
753
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
@@ -699,6 +765,7 @@ module Stripe
|
|
|
699
765
|
|
|
700
766
|
def initialize(
|
|
701
767
|
billing_behavior: nil,
|
|
768
|
+
billing_schedules: nil,
|
|
702
769
|
default_settings: nil,
|
|
703
770
|
end_behavior: nil,
|
|
704
771
|
expand: nil,
|
|
@@ -708,6 +775,7 @@ module Stripe
|
|
|
708
775
|
proration_behavior: nil
|
|
709
776
|
)
|
|
710
777
|
@billing_behavior = billing_behavior
|
|
778
|
+
@billing_schedules = billing_schedules
|
|
711
779
|
@default_settings = default_settings
|
|
712
780
|
@end_behavior = end_behavior
|
|
713
781
|
@expand = expand
|
|
@@ -317,6 +317,18 @@ module Stripe
|
|
|
317
317
|
end
|
|
318
318
|
end
|
|
319
319
|
|
|
320
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
321
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
322
|
+
attr_accessor :trial_end
|
|
323
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
324
|
+
attr_accessor :trial_offer
|
|
325
|
+
|
|
326
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
327
|
+
@trial_end = trial_end
|
|
328
|
+
@trial_offer = trial_offer
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
|
|
320
332
|
class Discount < ::Stripe::RequestParams
|
|
321
333
|
class DiscountEnd < ::Stripe::RequestParams
|
|
322
334
|
class Duration < ::Stripe::RequestParams
|
|
@@ -405,6 +417,8 @@ module Stripe
|
|
|
405
417
|
attr_accessor :billing_thresholds
|
|
406
418
|
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
407
419
|
attr_accessor :clear_usage
|
|
420
|
+
# The trial offer to apply to this subscription item.
|
|
421
|
+
attr_accessor :current_trial
|
|
408
422
|
# A flag that, if set to `true`, will delete the specified item.
|
|
409
423
|
attr_accessor :deleted
|
|
410
424
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -427,6 +441,7 @@ module Stripe
|
|
|
427
441
|
def initialize(
|
|
428
442
|
billing_thresholds: nil,
|
|
429
443
|
clear_usage: nil,
|
|
444
|
+
current_trial: nil,
|
|
430
445
|
deleted: nil,
|
|
431
446
|
discounts: nil,
|
|
432
447
|
id: nil,
|
|
@@ -439,6 +454,7 @@ module Stripe
|
|
|
439
454
|
)
|
|
440
455
|
@billing_thresholds = billing_thresholds
|
|
441
456
|
@clear_usage = clear_usage
|
|
457
|
+
@current_trial = current_trial
|
|
442
458
|
@deleted = deleted
|
|
443
459
|
@discounts = discounts
|
|
444
460
|
@id = id
|