stripe 19.2.0 → 19.3.0.pre.alpha.2
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 +38 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +90 -0
- data/lib/stripe/event_types.rb +1308 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v1_account_application_authorized_event.rb +20 -0
- data/lib/stripe/events/v1_account_application_deauthorized_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_created_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_deleted_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_updated_event.rb +20 -0
- data/lib/stripe/events/v1_account_signals_including_delinquency_created_event.rb +68 -0
- data/lib/stripe/events/v1_account_updated_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_balance_available_event.rb +44 -0
- data/lib/stripe/events/v1_billing_alert_triggered_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_session_created_event.rb +20 -0
- data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
- data/lib/stripe/events/v1_cash_balance_funds_available_event.rb +44 -0
- data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
- data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
- data/lib/stripe/events/v1_customer_cash_balance_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v1_entitlements_active_entitlement_summary_updated_event.rb +20 -0
- data/lib/stripe/events/v1_file_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payout_created_event.rb +44 -0
- data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
- data/lib/stripe/events/v1_person_created_event.rb +44 -0
- data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_person_updated_event.rb +44 -0
- data/lib/stripe/events/v1_plan_created_event.rb +44 -0
- data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v1_price_created_event.rb +44 -0
- data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_price_updated_event.rb +44 -0
- data/lib/stripe/events/v1_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_product_updated_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
- data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
- data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_quote_created_event.rb +44 -0
- data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
- data/lib/stripe/events/v1_refund_created_event.rb +44 -0
- data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
- data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_review_closed_event.rb +44 -0
- data/lib/stripe/events/v1_review_opened_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
- data/lib/stripe/events/v1_source_failed_event.rb +44 -0
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_tax_settings_updated_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
- data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_topup_created_event.rb +44 -0
- data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_updated_event.rb +44 -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_custom_pricing_unit_overage_rate_created_event.rb +67 -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_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_signals_fraudulent_website_ready_event.rb +48 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_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_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +115 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +117 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +113 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +115 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +96 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +98 -0
- data/lib/stripe/events/v2_core_health_elements_error_firing_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_elements_error_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_invoice_count_dropped_firing_event.rb +75 -0
- data/lib/stripe/events/v2_core_health_invoice_count_dropped_resolved_event.rb +77 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_meter_event_summaries_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +111 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +113 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +70 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +72 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +66 -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 +60 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_extension_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +40 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +38 -0
- data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +38 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_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_money_management_transaction_created_event.rb +63 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +61 -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 +61 -0
- data/lib/stripe/events/v2_payments_off_session_payment_paused_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_resumed_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/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +88 -0
- data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +125 -0
- data/lib/stripe/params/account_create_params.rb +461 -2
- data/lib/stripe/params/account_link_create_params.rb +4 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_person_create_params.rb +60 -0
- data/lib/stripe/params/account_person_update_params.rb +60 -0
- data/lib/stripe/params/account_session_create_params.rb +301 -1
- data/lib/stripe/params/account_signals_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_update_params.rb +423 -1
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +264 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +48 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +20 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1912 -0
- data/lib/stripe/params/charge_update_params.rb +1912 -0
- data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
- data/lib/stripe/params/checkout/session_create_params.rb +255 -4
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +91 -0
- data/lib/stripe/params/coupon_create_params.rb +47 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +168 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
- data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -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 +216 -0
- data/lib/stripe/params/dispute_update_params.rb +14 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
- data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +25 -0
- data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +22 -0
- data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +13 -0
- data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +16 -0
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- 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 +4 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +11 -1
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +98 -3
- data/lib/stripe/params/invoice_create_preview_params.rb +1314 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +98 -3
- data/lib/stripe/params/issuing/authorization_create_params.rb +8 -0
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
- data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- 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 +8 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +8 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/orchestration/payment_attempt_retrieve_params.rb +15 -0
- data/lib/stripe/params/order_create_params.rb +2114 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2118 -0
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +41 -0
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +22 -0
- data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +54 -0
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +50 -0
- data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +79 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1928 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +3659 -158
- data/lib/stripe/params/payment_intent_create_params.rb +3639 -122
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +315 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +56 -1
- data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
- data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3680 -148
- data/lib/stripe/params/payment_link_create_params.rb +34 -0
- data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
- data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
- data/lib/stripe/params/payment_location_create_params.rb +54 -0
- data/lib/stripe/params/payment_location_delete_params.rb +6 -0
- data/lib/stripe/params/payment_location_list_params.rb +22 -0
- data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_location_update_params.rb +63 -0
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +87 -0
- data/lib/stripe/params/payment_method_update_params.rb +16 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +4 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +36 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +32 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +60 -2
- data/lib/stripe/params/payment_record_report_payment_params.rb +60 -2
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +23 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +47 -0
- data/lib/stripe/params/product_update_params.rb +47 -0
- data/lib/stripe/params/quote_create_params.rb +1217 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1225 -4
- 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 +72 -0
- data/lib/stripe/params/radar/customer_evaluation_create_params.rb +69 -0
- data/lib/stripe/params/radar/customer_evaluation_update_params.rb +21 -0
- data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +30 -1
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +177 -3
- data/lib/stripe/params/setup_intent_create_params.rb +177 -3
- data/lib/stripe/params/setup_intent_update_params.rb +178 -4
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +50 -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/shared_payment/issued_token_create_params.rb +70 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +325 -7
- data/lib/stripe/params/subscription_item_create_params.rb +114 -2
- data/lib/stripe/params/subscription_item_update_params.rb +97 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +805 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +335 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +335 -5
- data/lib/stripe/params/subscription_update_params.rb +308 -6
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- 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/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +117 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- 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 +91 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +8 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +8 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +8 -0
- data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +52 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/token_create_params.rb +134 -0
- data/lib/stripe/params/transfer_create_params.rb +8 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
- data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_list_params.rb +22 -0
- data/lib/stripe/params/v2/billing/cadences/spend_modifier_rule_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_create_params.rb +831 -0
- data/lib/stripe/params/v2/billing/contract_list_params.rb +20 -0
- data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_update_params.rb +522 -0
- data/lib/stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params.rb +21 -0
- 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 +899 -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 +121 -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_update_params.rb +102 -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/one_time_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/one_time_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/one_time_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/one_time_item_update_params.rb +48 -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 +54 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_remove_discounts_params.rb +17 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -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/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -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_modify_rates_params.rb +177 -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/custom_pricing_unit_overage_rate_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_list_params.rb +22 -0
- data/lib/stripe/params/v2/billing/rate_cards/custom_pricing_unit_overage_rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +109 -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 +315 -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 +1687 -6
- data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +73 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
- data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
- data/lib/stripe/params/v2/core/account_update_params.rb +1667 -7
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_execute_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +17 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_submit_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +59 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +28 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/connection_session_create_params.rb +23 -0
- data/lib/stripe/params/v2/core/connection_session_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/core/fee_batch_list_params.rb +43 -0
- data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
- data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +68 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +19 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- 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/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +49 -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/debit_dispute_create_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +37 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +33 -0
- data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +130 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +70 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +110 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -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/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_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 +178 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +362 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_pause_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_resume_params.rb +10 -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 +35 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_list_params.rb +47 -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 +20 -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 +28 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_list_params.rb +22 -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 +17 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +124 -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 +124 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +909 -0
- data/lib/stripe/resources/account.rb +271 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +302 -0
- data/lib/stripe/resources/account_signals.rb +104 -0
- data/lib/stripe/resources/application_fee.rb +24 -1
- data/lib/stripe/resources/balance.rb +166 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +274 -1
- data/lib/stripe/resources/billing/alert_recovered.rb +44 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +48 -1
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +172 -3
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +145 -2
- data/lib/stripe/resources/billing/credit_grant.rb +77 -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/capability.rb +36 -1
- data/lib/stripe/resources/capital/financing_offer.rb +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/charge.rb +328 -2
- data/lib/stripe/resources/checkout/session.rb +529 -3
- data/lib/stripe/resources/confirmation_token.rb +200 -1
- data/lib/stripe/resources/coupon.rb +60 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
- data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +895 -0
- data/lib/stripe/resources/discount.rb +20 -1
- data/lib/stripe/resources/dispute.rb +24 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +153 -0
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +24 -1
- data/lib/stripe/resources/invoice.rb +195 -1
- data/lib/stripe/resources/invoice_item.rb +126 -2
- data/lib/stripe/resources/invoice_line_item.rb +195 -1
- data/lib/stripe/resources/issuing/authorization.rb +268 -0
- data/lib/stripe/resources/issuing/card.rb +4 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +289 -1
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/token.rb +8 -0
- data/lib/stripe/resources/issuing/transaction.rb +124 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +382 -2
- data/lib/stripe/resources/payment_intent.rb +2269 -47
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +19 -1
- data/lib/stripe/resources/payment_link.rb +22 -0
- data/lib/stripe/resources/payment_location.rb +165 -0
- data/lib/stripe/resources/payment_location_capability.rb +94 -0
- data/lib/stripe/resources/payment_method.rb +228 -1
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +242 -2
- data/lib/stripe/resources/person.rb +62 -0
- data/lib/stripe/resources/price.rb +22 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +46 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
- data/lib/stripe/resources/profile.rb +80 -0
- data/lib/stripe/resources/quote.rb +806 -2
- data/lib/stripe/resources/quote_line.rb +731 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +911 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +180 -0
- data/lib/stripe/resources/radar/customer_evaluation.rb +155 -0
- data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +23 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/risk_signals.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +92 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1822 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +293 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +250 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +373 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +144 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +773 -0
- data/lib/stripe/resources/v2/billing/cadence_spend_modifier.rb +103 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/contract.rb +978 -0
- data/lib/stripe/resources/v2/billing/contract_license_pricing_quantity_change.rb +43 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +354 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +711 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +140 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +101 -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/one_time_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +97 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +719 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +41 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +71 -0
- data/lib/stripe/resources/v2/billing/rate_card_custom_pricing_unit_overage_rate.rb +48 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +131 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +97 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +37 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +306 -0
- data/lib/stripe/resources/v2/core/account.rb +2668 -20
- data/lib/stripe/resources/v2/core/account_evaluation.rb +106 -0
- data/lib/stripe/resources/v2/core/account_link.rb +72 -0
- data/lib/stripe/resources/v2/core/approval_request.rb +337 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +567 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +146 -0
- data/lib/stripe/resources/v2/core/connection_session.rb +58 -0
- data/lib/stripe/resources/v2/core/event.rb +66 -1
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/fee_batch.rb +142 -0
- data/lib/stripe/resources/v2/core/fee_entry.rb +135 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/analytics/metric_query_result.rb +106 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +159 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +69 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +66 -0
- data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +284 -0
- data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +225 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +303 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +146 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +169 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +402 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +243 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +177 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +147 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +288 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +77 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +65 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +159 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +144 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +145 -0
- data/lib/stripe/resources.rb +1729 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +46 -1
- data/lib/stripe/services/account_signals_service.rb +17 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/billing/alert_service.rb +2 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +4 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/checkout/session_service.rb +11 -0
- data/lib/stripe/services/coupon_service.rb +44 -0
- data/lib/stripe/services/credit_note_service.rb +14 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +15 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +15 -0
- data/lib/stripe/services/customer_payment_source_service.rb +60 -0
- data/lib/stripe/services/customer_service.rb +59 -0
- data/lib/stripe/services/customer_session_service.rb +14 -0
- data/lib/stripe/services/customer_tax_id_service.rb +30 -0
- data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
- data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +70 -0
- data/lib/stripe/services/delegated_checkout_service.rb +14 -0
- data/lib/stripe/services/dispute_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +57 -0
- data/lib/stripe/services/fx_quote_service.rb +27 -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/invoice_item_service.rb +44 -0
- data/lib/stripe/services/invoice_line_item_service.rb +15 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +30 -0
- data/lib/stripe/services/invoice_service.rb +189 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +6 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/orchestration/payment_attempt_service.rb +19 -0
- data/lib/stripe/services/orchestration_service.rb +13 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +77 -0
- data/lib/stripe/services/payment_intent_service.rb +55 -0
- data/lib/stripe/services/payment_location_capability_service.rb +39 -0
- data/lib/stripe/services/payment_location_service.rb +61 -0
- data/lib/stripe/services/payment_method_service.rb +26 -0
- data/lib/stripe/services/price_service.rb +29 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -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/product_feature_service.rb +30 -0
- data/lib/stripe/services/product_service.rb +44 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar/customer_evaluation_service.rb +30 -0
- data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +14 -0
- data/lib/stripe/services/radar_service.rb +5 -1
- data/lib/stripe/services/refund_service.rb +29 -0
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_item_service.rb +44 -0
- data/lib/stripe/services/subscription_schedule_service.rb +70 -0
- data/lib/stripe/services/subscription_service.rb +111 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax/registration_service.rb +29 -0
- data/lib/stripe/services/tax/settings_service.rb +14 -0
- data/lib/stripe/services/tax/transaction_service.rb +14 -0
- data/lib/stripe/services/tax_id_service.rb +14 -0
- data/lib/stripe/services/tax_rate_service.rb +29 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_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/issuing/dispute_service.rb +54 -0
- data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
- data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -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 +4 -1
- data/lib/stripe/services/v1_services.rb +17 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +73 -0
- data/lib/stripe/services/v2/billing/cadences/spend_modifier_rule_service.rb +34 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/contract_service.rb +91 -0
- data/lib/stripe/services/v2/billing/contracts/license_pricing/quantity_change_service.rb +25 -0
- data/lib/stripe/services/v2/billing/contracts/license_pricing_service.rb +20 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +98 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +69 -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/one_time_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 +54 -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/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +79 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/custom_pricing_unit_overage_rate_service.rb +56 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +61 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +47 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_evaluation_service.rb +21 -0
- data/lib/stripe/services/v2/core/approval_request_service.rb +70 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +47 -0
- data/lib/stripe/services/v2/core/connection_session_service.rb +32 -0
- data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
- data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +9 -1
- data/lib/stripe/services/v2/data/analytics/metric_query_service.rb +23 -0
- data/lib/stripe/services/v2/data/analytics_service.rb +17 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data_service.rb +16 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +16 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +78 -0
- data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +36 -0
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +87 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +83 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +56 -0
- data/lib/stripe/services/v2/payments_service.rb +17 -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/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +15 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +73 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +16 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +12 -1
- data/lib/stripe/services.rb +396 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +2520 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +219739 -104589
- metadata +1029 -4
|
@@ -144,32 +144,140 @@ module Stripe
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
class Discount < ::Stripe::RequestParams
|
|
147
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
148
|
+
class Duration < ::Stripe::RequestParams
|
|
149
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
150
|
+
attr_accessor :interval
|
|
151
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
152
|
+
attr_accessor :interval_count
|
|
153
|
+
|
|
154
|
+
def initialize(interval: nil, interval_count: nil)
|
|
155
|
+
@interval = interval
|
|
156
|
+
@interval_count = interval_count
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
# Time span for the redeemed discount.
|
|
160
|
+
attr_accessor :duration
|
|
161
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
162
|
+
attr_accessor :timestamp
|
|
163
|
+
# The type of calculation made to determine when the discount ends.
|
|
164
|
+
attr_accessor :type
|
|
165
|
+
|
|
166
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
167
|
+
@duration = duration
|
|
168
|
+
@timestamp = timestamp
|
|
169
|
+
@type = type
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
class Settings < ::Stripe::RequestParams
|
|
174
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
175
|
+
class Custom < ::Stripe::RequestParams
|
|
176
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
177
|
+
attr_accessor :day_of_month
|
|
178
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
179
|
+
attr_accessor :hour
|
|
180
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
181
|
+
attr_accessor :minute
|
|
182
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
183
|
+
attr_accessor :month
|
|
184
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
185
|
+
attr_accessor :second
|
|
186
|
+
|
|
187
|
+
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
188
|
+
@day_of_month = day_of_month
|
|
189
|
+
@hour = hour
|
|
190
|
+
@minute = minute
|
|
191
|
+
@month = month
|
|
192
|
+
@second = second
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
196
|
+
attr_accessor :custom
|
|
197
|
+
# The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
198
|
+
attr_accessor :type
|
|
199
|
+
|
|
200
|
+
def initialize(custom: nil, type: nil)
|
|
201
|
+
@custom = custom
|
|
202
|
+
@type = type
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
# Configures service period cycle anchoring.
|
|
206
|
+
attr_accessor :service_period_anchor_config
|
|
207
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
|
|
208
|
+
attr_accessor :start_date
|
|
209
|
+
|
|
210
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
211
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
212
|
+
@start_date = start_date
|
|
213
|
+
end
|
|
214
|
+
end
|
|
147
215
|
# ID of the coupon to create a new discount for.
|
|
148
216
|
attr_accessor :coupon
|
|
149
217
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
150
218
|
attr_accessor :discount
|
|
219
|
+
# Details to determine how long the discount should be applied for.
|
|
220
|
+
attr_accessor :discount_end
|
|
151
221
|
# ID of the promotion code to create a new discount for.
|
|
152
222
|
attr_accessor :promotion_code
|
|
223
|
+
# Settings for discount application including service period anchoring.
|
|
224
|
+
attr_accessor :settings
|
|
153
225
|
|
|
154
|
-
def initialize(
|
|
226
|
+
def initialize(
|
|
227
|
+
coupon: nil,
|
|
228
|
+
discount: nil,
|
|
229
|
+
discount_end: nil,
|
|
230
|
+
promotion_code: nil,
|
|
231
|
+
settings: nil
|
|
232
|
+
)
|
|
155
233
|
@coupon = coupon
|
|
156
234
|
@discount = discount
|
|
235
|
+
@discount_end = discount_end
|
|
157
236
|
@promotion_code = promotion_code
|
|
237
|
+
@settings = settings
|
|
158
238
|
end
|
|
159
239
|
end
|
|
160
240
|
|
|
161
241
|
class InvoiceItem < ::Stripe::RequestParams
|
|
162
242
|
class Discount < ::Stripe::RequestParams
|
|
243
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
244
|
+
class Duration < ::Stripe::RequestParams
|
|
245
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
246
|
+
attr_accessor :interval
|
|
247
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
248
|
+
attr_accessor :interval_count
|
|
249
|
+
|
|
250
|
+
def initialize(interval: nil, interval_count: nil)
|
|
251
|
+
@interval = interval
|
|
252
|
+
@interval_count = interval_count
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
# Time span for the redeemed discount.
|
|
256
|
+
attr_accessor :duration
|
|
257
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
258
|
+
attr_accessor :timestamp
|
|
259
|
+
# The type of calculation made to determine when the discount ends.
|
|
260
|
+
attr_accessor :type
|
|
261
|
+
|
|
262
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
263
|
+
@duration = duration
|
|
264
|
+
@timestamp = timestamp
|
|
265
|
+
@type = type
|
|
266
|
+
end
|
|
267
|
+
end
|
|
163
268
|
# ID of the coupon to create a new discount for.
|
|
164
269
|
attr_accessor :coupon
|
|
165
270
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
166
271
|
attr_accessor :discount
|
|
272
|
+
# Details to determine how long the discount should be applied for.
|
|
273
|
+
attr_accessor :discount_end
|
|
167
274
|
# ID of the promotion code to create a new discount for.
|
|
168
275
|
attr_accessor :promotion_code
|
|
169
276
|
|
|
170
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
277
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
171
278
|
@coupon = coupon
|
|
172
279
|
@discount = discount
|
|
280
|
+
@discount_end = discount_end
|
|
173
281
|
@promotion_code = promotion_code
|
|
174
282
|
end
|
|
175
283
|
end
|
|
@@ -311,6 +419,705 @@ module Stripe
|
|
|
311
419
|
end
|
|
312
420
|
|
|
313
421
|
class ScheduleDetails < ::Stripe::RequestParams
|
|
422
|
+
class Amendment < ::Stripe::RequestParams
|
|
423
|
+
class AmendmentEnd < ::Stripe::RequestParams
|
|
424
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
425
|
+
# The ID of a specific discount.
|
|
426
|
+
attr_accessor :discount
|
|
427
|
+
|
|
428
|
+
def initialize(discount: nil)
|
|
429
|
+
@discount = discount
|
|
430
|
+
end
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
class Duration < ::Stripe::RequestParams
|
|
434
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
435
|
+
attr_accessor :interval
|
|
436
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
437
|
+
attr_accessor :interval_count
|
|
438
|
+
|
|
439
|
+
def initialize(interval: nil, interval_count: nil)
|
|
440
|
+
@interval = interval
|
|
441
|
+
@interval_count = interval_count
|
|
442
|
+
end
|
|
443
|
+
end
|
|
444
|
+
# Use the `end` time of a given discount.
|
|
445
|
+
attr_accessor :discount_end
|
|
446
|
+
# Time span for the amendment starting from the `amendment_start`.
|
|
447
|
+
attr_accessor :duration
|
|
448
|
+
# A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
449
|
+
attr_accessor :timestamp
|
|
450
|
+
# Select one of three ways to pass the `amendment_end`.
|
|
451
|
+
attr_accessor :type
|
|
452
|
+
|
|
453
|
+
def initialize(discount_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
454
|
+
@discount_end = discount_end
|
|
455
|
+
@duration = duration
|
|
456
|
+
@timestamp = timestamp
|
|
457
|
+
@type = type
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
class AmendmentStart < ::Stripe::RequestParams
|
|
462
|
+
class AmendmentEnd < ::Stripe::RequestParams
|
|
463
|
+
# The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
|
|
464
|
+
attr_accessor :index
|
|
465
|
+
|
|
466
|
+
def initialize(index: nil)
|
|
467
|
+
@index = index
|
|
468
|
+
end
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
472
|
+
# The ID of a specific discount.
|
|
473
|
+
attr_accessor :discount
|
|
474
|
+
|
|
475
|
+
def initialize(discount: nil)
|
|
476
|
+
@discount = discount
|
|
477
|
+
end
|
|
478
|
+
end
|
|
479
|
+
# Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
480
|
+
attr_accessor :amendment_end
|
|
481
|
+
# Use the `end` time of a given discount.
|
|
482
|
+
attr_accessor :discount_end
|
|
483
|
+
# A precise Unix timestamp for the amendment to start.
|
|
484
|
+
attr_accessor :timestamp
|
|
485
|
+
# Select one of three ways to pass the `amendment_start`.
|
|
486
|
+
attr_accessor :type
|
|
487
|
+
|
|
488
|
+
def initialize(amendment_end: nil, discount_end: nil, timestamp: nil, type: nil)
|
|
489
|
+
@amendment_end = amendment_end
|
|
490
|
+
@discount_end = discount_end
|
|
491
|
+
@timestamp = timestamp
|
|
492
|
+
@type = type
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
class BillingSchedulesAction < ::Stripe::RequestParams
|
|
497
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
498
|
+
# The ID of the price object.
|
|
499
|
+
attr_accessor :price
|
|
500
|
+
# Controls which subscription items the billing schedule applies to.
|
|
501
|
+
attr_accessor :type
|
|
502
|
+
|
|
503
|
+
def initialize(price: nil, type: nil)
|
|
504
|
+
@price = price
|
|
505
|
+
@type = type
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
# Specify which subscription items the billing schedule applies to.
|
|
509
|
+
attr_accessor :applies_to
|
|
510
|
+
# Select the action.
|
|
511
|
+
attr_accessor :type
|
|
512
|
+
|
|
513
|
+
def initialize(applies_to: nil, type: nil)
|
|
514
|
+
@applies_to = applies_to
|
|
515
|
+
@type = type
|
|
516
|
+
end
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
class DiscountAction < ::Stripe::RequestParams
|
|
520
|
+
class Add < ::Stripe::RequestParams
|
|
521
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
522
|
+
# The type of calculation made to determine when the discount ends.
|
|
523
|
+
attr_accessor :type
|
|
524
|
+
|
|
525
|
+
def initialize(type: nil)
|
|
526
|
+
@type = type
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
class Settings < ::Stripe::RequestParams
|
|
531
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
532
|
+
class Custom < ::Stripe::RequestParams
|
|
533
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
534
|
+
attr_accessor :day_of_month
|
|
535
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
536
|
+
attr_accessor :hour
|
|
537
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
538
|
+
attr_accessor :minute
|
|
539
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
540
|
+
attr_accessor :month
|
|
541
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
542
|
+
attr_accessor :second
|
|
543
|
+
|
|
544
|
+
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
545
|
+
@day_of_month = day_of_month
|
|
546
|
+
@hour = hour
|
|
547
|
+
@minute = minute
|
|
548
|
+
@month = month
|
|
549
|
+
@second = second
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
553
|
+
attr_accessor :custom
|
|
554
|
+
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
555
|
+
attr_accessor :type
|
|
556
|
+
|
|
557
|
+
def initialize(custom: nil, type: nil)
|
|
558
|
+
@custom = custom
|
|
559
|
+
@type = type
|
|
560
|
+
end
|
|
561
|
+
end
|
|
562
|
+
# Configures service period cycle anchoring.
|
|
563
|
+
attr_accessor :service_period_anchor_config
|
|
564
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
565
|
+
attr_accessor :start_date
|
|
566
|
+
|
|
567
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
568
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
569
|
+
@start_date = start_date
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
# The coupon code to redeem.
|
|
573
|
+
attr_accessor :coupon
|
|
574
|
+
# An ID of an existing discount for a coupon that was already redeemed.
|
|
575
|
+
attr_accessor :discount
|
|
576
|
+
# Details to determine how long the discount should be applied for.
|
|
577
|
+
attr_accessor :discount_end
|
|
578
|
+
# The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
|
|
579
|
+
attr_accessor :index
|
|
580
|
+
# The promotion code to redeem.
|
|
581
|
+
attr_accessor :promotion_code
|
|
582
|
+
# Settings for discount application including service period anchoring.
|
|
583
|
+
attr_accessor :settings
|
|
584
|
+
|
|
585
|
+
def initialize(
|
|
586
|
+
coupon: nil,
|
|
587
|
+
discount: nil,
|
|
588
|
+
discount_end: nil,
|
|
589
|
+
index: nil,
|
|
590
|
+
promotion_code: nil,
|
|
591
|
+
settings: nil
|
|
592
|
+
)
|
|
593
|
+
@coupon = coupon
|
|
594
|
+
@discount = discount
|
|
595
|
+
@discount_end = discount_end
|
|
596
|
+
@index = index
|
|
597
|
+
@promotion_code = promotion_code
|
|
598
|
+
@settings = settings
|
|
599
|
+
end
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
class Remove < ::Stripe::RequestParams
|
|
603
|
+
# The coupon code to remove from the `discounts` array.
|
|
604
|
+
attr_accessor :coupon
|
|
605
|
+
# The ID of a discount to remove from the `discounts` array.
|
|
606
|
+
attr_accessor :discount
|
|
607
|
+
# The ID of a promotion code to remove from the `discounts` array.
|
|
608
|
+
attr_accessor :promotion_code
|
|
609
|
+
|
|
610
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
611
|
+
@coupon = coupon
|
|
612
|
+
@discount = discount
|
|
613
|
+
@promotion_code = promotion_code
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
class Set < ::Stripe::RequestParams
|
|
618
|
+
class Settings < ::Stripe::RequestParams
|
|
619
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
620
|
+
class Custom < ::Stripe::RequestParams
|
|
621
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
622
|
+
attr_accessor :day_of_month
|
|
623
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
624
|
+
attr_accessor :hour
|
|
625
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
626
|
+
attr_accessor :minute
|
|
627
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
628
|
+
attr_accessor :month
|
|
629
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
630
|
+
attr_accessor :second
|
|
631
|
+
|
|
632
|
+
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
633
|
+
@day_of_month = day_of_month
|
|
634
|
+
@hour = hour
|
|
635
|
+
@minute = minute
|
|
636
|
+
@month = month
|
|
637
|
+
@second = second
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
641
|
+
attr_accessor :custom
|
|
642
|
+
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
643
|
+
attr_accessor :type
|
|
644
|
+
|
|
645
|
+
def initialize(custom: nil, type: nil)
|
|
646
|
+
@custom = custom
|
|
647
|
+
@type = type
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
# Configures service period cycle anchoring.
|
|
651
|
+
attr_accessor :service_period_anchor_config
|
|
652
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
653
|
+
attr_accessor :start_date
|
|
654
|
+
|
|
655
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
656
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
657
|
+
@start_date = start_date
|
|
658
|
+
end
|
|
659
|
+
end
|
|
660
|
+
# The coupon code to replace the `discounts` array with.
|
|
661
|
+
attr_accessor :coupon
|
|
662
|
+
# An ID of an existing discount to replace the `discounts` array with.
|
|
663
|
+
attr_accessor :discount
|
|
664
|
+
# An ID of an existing promotion code to replace the `discounts` array with.
|
|
665
|
+
attr_accessor :promotion_code
|
|
666
|
+
# Settings for discount application including service period anchoring.
|
|
667
|
+
attr_accessor :settings
|
|
668
|
+
|
|
669
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil, settings: nil)
|
|
670
|
+
@coupon = coupon
|
|
671
|
+
@discount = discount
|
|
672
|
+
@promotion_code = promotion_code
|
|
673
|
+
@settings = settings
|
|
674
|
+
end
|
|
675
|
+
end
|
|
676
|
+
# Details of the discount to add.
|
|
677
|
+
attr_accessor :add
|
|
678
|
+
# Details of the discount to remove.
|
|
679
|
+
attr_accessor :remove
|
|
680
|
+
# Details of the discount to replace the existing discounts with.
|
|
681
|
+
attr_accessor :set
|
|
682
|
+
# Determines the type of discount action.
|
|
683
|
+
attr_accessor :type
|
|
684
|
+
|
|
685
|
+
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
686
|
+
@add = add
|
|
687
|
+
@remove = remove
|
|
688
|
+
@set = set
|
|
689
|
+
@type = type
|
|
690
|
+
end
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
class ItemAction < ::Stripe::RequestParams
|
|
694
|
+
class Add < ::Stripe::RequestParams
|
|
695
|
+
class Discount < ::Stripe::RequestParams
|
|
696
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
697
|
+
class Duration < ::Stripe::RequestParams
|
|
698
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
699
|
+
attr_accessor :interval
|
|
700
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
701
|
+
attr_accessor :interval_count
|
|
702
|
+
|
|
703
|
+
def initialize(interval: nil, interval_count: nil)
|
|
704
|
+
@interval = interval
|
|
705
|
+
@interval_count = interval_count
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
# Time span for the redeemed discount.
|
|
709
|
+
attr_accessor :duration
|
|
710
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
711
|
+
attr_accessor :timestamp
|
|
712
|
+
# The type of calculation made to determine when the discount ends.
|
|
713
|
+
attr_accessor :type
|
|
714
|
+
|
|
715
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
716
|
+
@duration = duration
|
|
717
|
+
@timestamp = timestamp
|
|
718
|
+
@type = type
|
|
719
|
+
end
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
class Settings < ::Stripe::RequestParams
|
|
723
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
724
|
+
class Custom < ::Stripe::RequestParams
|
|
725
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
726
|
+
attr_accessor :day_of_month
|
|
727
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
728
|
+
attr_accessor :hour
|
|
729
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
730
|
+
attr_accessor :minute
|
|
731
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
732
|
+
attr_accessor :month
|
|
733
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
734
|
+
attr_accessor :second
|
|
735
|
+
|
|
736
|
+
def initialize(
|
|
737
|
+
day_of_month: nil,
|
|
738
|
+
hour: nil,
|
|
739
|
+
minute: nil,
|
|
740
|
+
month: nil,
|
|
741
|
+
second: nil
|
|
742
|
+
)
|
|
743
|
+
@day_of_month = day_of_month
|
|
744
|
+
@hour = hour
|
|
745
|
+
@minute = minute
|
|
746
|
+
@month = month
|
|
747
|
+
@second = second
|
|
748
|
+
end
|
|
749
|
+
end
|
|
750
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
751
|
+
attr_accessor :custom
|
|
752
|
+
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
753
|
+
attr_accessor :type
|
|
754
|
+
|
|
755
|
+
def initialize(custom: nil, type: nil)
|
|
756
|
+
@custom = custom
|
|
757
|
+
@type = type
|
|
758
|
+
end
|
|
759
|
+
end
|
|
760
|
+
# Configures service period cycle anchoring.
|
|
761
|
+
attr_accessor :service_period_anchor_config
|
|
762
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
763
|
+
attr_accessor :start_date
|
|
764
|
+
|
|
765
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
766
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
767
|
+
@start_date = start_date
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
# ID of the coupon to create a new discount for.
|
|
771
|
+
attr_accessor :coupon
|
|
772
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
773
|
+
attr_accessor :discount
|
|
774
|
+
# Details to determine how long the discount should be applied for.
|
|
775
|
+
attr_accessor :discount_end
|
|
776
|
+
# ID of the promotion code to create a new discount for.
|
|
777
|
+
attr_accessor :promotion_code
|
|
778
|
+
# Settings for discount application including service period anchoring.
|
|
779
|
+
attr_accessor :settings
|
|
780
|
+
|
|
781
|
+
def initialize(
|
|
782
|
+
coupon: nil,
|
|
783
|
+
discount: nil,
|
|
784
|
+
discount_end: nil,
|
|
785
|
+
promotion_code: nil,
|
|
786
|
+
settings: nil
|
|
787
|
+
)
|
|
788
|
+
@coupon = coupon
|
|
789
|
+
@discount = discount
|
|
790
|
+
@discount_end = discount_end
|
|
791
|
+
@promotion_code = promotion_code
|
|
792
|
+
@settings = settings
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
class Trial < ::Stripe::RequestParams
|
|
797
|
+
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
798
|
+
attr_accessor :converts_to
|
|
799
|
+
# Determines the type of trial for this item.
|
|
800
|
+
attr_accessor :type
|
|
801
|
+
|
|
802
|
+
def initialize(converts_to: nil, type: nil)
|
|
803
|
+
@converts_to = converts_to
|
|
804
|
+
@type = type
|
|
805
|
+
end
|
|
806
|
+
end
|
|
807
|
+
# The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
808
|
+
attr_accessor :discounts
|
|
809
|
+
# 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`.
|
|
810
|
+
attr_accessor :metadata
|
|
811
|
+
# The ID of the price object.
|
|
812
|
+
attr_accessor :price
|
|
813
|
+
# Quantity for this item.
|
|
814
|
+
attr_accessor :quantity
|
|
815
|
+
# The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
816
|
+
attr_accessor :tax_rates
|
|
817
|
+
# Options that configure the trial on the subscription item.
|
|
818
|
+
attr_accessor :trial
|
|
819
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
820
|
+
attr_accessor :trial_offer
|
|
821
|
+
|
|
822
|
+
def initialize(
|
|
823
|
+
discounts: nil,
|
|
824
|
+
metadata: nil,
|
|
825
|
+
price: nil,
|
|
826
|
+
quantity: nil,
|
|
827
|
+
tax_rates: nil,
|
|
828
|
+
trial: nil,
|
|
829
|
+
trial_offer: nil
|
|
830
|
+
)
|
|
831
|
+
@discounts = discounts
|
|
832
|
+
@metadata = metadata
|
|
833
|
+
@price = price
|
|
834
|
+
@quantity = quantity
|
|
835
|
+
@tax_rates = tax_rates
|
|
836
|
+
@trial = trial
|
|
837
|
+
@trial_offer = trial_offer
|
|
838
|
+
end
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
class Remove < ::Stripe::RequestParams
|
|
842
|
+
# ID of a price to remove.
|
|
843
|
+
attr_accessor :price
|
|
844
|
+
|
|
845
|
+
def initialize(price: nil)
|
|
846
|
+
@price = price
|
|
847
|
+
end
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
class Set < ::Stripe::RequestParams
|
|
851
|
+
class Discount < ::Stripe::RequestParams
|
|
852
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
853
|
+
class Duration < ::Stripe::RequestParams
|
|
854
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
855
|
+
attr_accessor :interval
|
|
856
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
857
|
+
attr_accessor :interval_count
|
|
858
|
+
|
|
859
|
+
def initialize(interval: nil, interval_count: nil)
|
|
860
|
+
@interval = interval
|
|
861
|
+
@interval_count = interval_count
|
|
862
|
+
end
|
|
863
|
+
end
|
|
864
|
+
# Time span for the redeemed discount.
|
|
865
|
+
attr_accessor :duration
|
|
866
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
867
|
+
attr_accessor :timestamp
|
|
868
|
+
# The type of calculation made to determine when the discount ends.
|
|
869
|
+
attr_accessor :type
|
|
870
|
+
|
|
871
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
872
|
+
@duration = duration
|
|
873
|
+
@timestamp = timestamp
|
|
874
|
+
@type = type
|
|
875
|
+
end
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
class Settings < ::Stripe::RequestParams
|
|
879
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
880
|
+
class Custom < ::Stripe::RequestParams
|
|
881
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
882
|
+
attr_accessor :day_of_month
|
|
883
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
884
|
+
attr_accessor :hour
|
|
885
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
886
|
+
attr_accessor :minute
|
|
887
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
888
|
+
attr_accessor :month
|
|
889
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
890
|
+
attr_accessor :second
|
|
891
|
+
|
|
892
|
+
def initialize(
|
|
893
|
+
day_of_month: nil,
|
|
894
|
+
hour: nil,
|
|
895
|
+
minute: nil,
|
|
896
|
+
month: nil,
|
|
897
|
+
second: nil
|
|
898
|
+
)
|
|
899
|
+
@day_of_month = day_of_month
|
|
900
|
+
@hour = hour
|
|
901
|
+
@minute = minute
|
|
902
|
+
@month = month
|
|
903
|
+
@second = second
|
|
904
|
+
end
|
|
905
|
+
end
|
|
906
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
907
|
+
attr_accessor :custom
|
|
908
|
+
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
909
|
+
attr_accessor :type
|
|
910
|
+
|
|
911
|
+
def initialize(custom: nil, type: nil)
|
|
912
|
+
@custom = custom
|
|
913
|
+
@type = type
|
|
914
|
+
end
|
|
915
|
+
end
|
|
916
|
+
# Configures service period cycle anchoring.
|
|
917
|
+
attr_accessor :service_period_anchor_config
|
|
918
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
919
|
+
attr_accessor :start_date
|
|
920
|
+
|
|
921
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
922
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
923
|
+
@start_date = start_date
|
|
924
|
+
end
|
|
925
|
+
end
|
|
926
|
+
# ID of the coupon to create a new discount for.
|
|
927
|
+
attr_accessor :coupon
|
|
928
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
929
|
+
attr_accessor :discount
|
|
930
|
+
# Details to determine how long the discount should be applied for.
|
|
931
|
+
attr_accessor :discount_end
|
|
932
|
+
# ID of the promotion code to create a new discount for.
|
|
933
|
+
attr_accessor :promotion_code
|
|
934
|
+
# Settings for discount application including service period anchoring.
|
|
935
|
+
attr_accessor :settings
|
|
936
|
+
|
|
937
|
+
def initialize(
|
|
938
|
+
coupon: nil,
|
|
939
|
+
discount: nil,
|
|
940
|
+
discount_end: nil,
|
|
941
|
+
promotion_code: nil,
|
|
942
|
+
settings: nil
|
|
943
|
+
)
|
|
944
|
+
@coupon = coupon
|
|
945
|
+
@discount = discount
|
|
946
|
+
@discount_end = discount_end
|
|
947
|
+
@promotion_code = promotion_code
|
|
948
|
+
@settings = settings
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
class Trial < ::Stripe::RequestParams
|
|
953
|
+
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
954
|
+
attr_accessor :converts_to
|
|
955
|
+
# Determines the type of trial for this item.
|
|
956
|
+
attr_accessor :type
|
|
957
|
+
|
|
958
|
+
def initialize(converts_to: nil, type: nil)
|
|
959
|
+
@converts_to = converts_to
|
|
960
|
+
@type = type
|
|
961
|
+
end
|
|
962
|
+
end
|
|
963
|
+
# If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
|
|
964
|
+
attr_accessor :discounts
|
|
965
|
+
# If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
|
|
966
|
+
attr_accessor :metadata
|
|
967
|
+
# The ID of the price object.
|
|
968
|
+
attr_accessor :price
|
|
969
|
+
# If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
|
|
970
|
+
attr_accessor :quantity
|
|
971
|
+
# If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
|
|
972
|
+
attr_accessor :tax_rates
|
|
973
|
+
# 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`.
|
|
974
|
+
attr_accessor :trial
|
|
975
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
976
|
+
attr_accessor :trial_offer
|
|
977
|
+
|
|
978
|
+
def initialize(
|
|
979
|
+
discounts: nil,
|
|
980
|
+
metadata: nil,
|
|
981
|
+
price: nil,
|
|
982
|
+
quantity: nil,
|
|
983
|
+
tax_rates: nil,
|
|
984
|
+
trial: nil,
|
|
985
|
+
trial_offer: nil
|
|
986
|
+
)
|
|
987
|
+
@discounts = discounts
|
|
988
|
+
@metadata = metadata
|
|
989
|
+
@price = price
|
|
990
|
+
@quantity = quantity
|
|
991
|
+
@tax_rates = tax_rates
|
|
992
|
+
@trial = trial
|
|
993
|
+
@trial_offer = trial_offer
|
|
994
|
+
end
|
|
995
|
+
end
|
|
996
|
+
# 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.
|
|
997
|
+
attr_accessor :add
|
|
998
|
+
# Details of the subscription item to remove.
|
|
999
|
+
attr_accessor :remove
|
|
1000
|
+
# Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
|
|
1001
|
+
attr_accessor :set
|
|
1002
|
+
# Determines the type of item action.
|
|
1003
|
+
attr_accessor :type
|
|
1004
|
+
|
|
1005
|
+
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
1006
|
+
@add = add
|
|
1007
|
+
@remove = remove
|
|
1008
|
+
@set = set
|
|
1009
|
+
@type = type
|
|
1010
|
+
end
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
class MetadataAction < ::Stripe::RequestParams
|
|
1014
|
+
# Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
1015
|
+
attr_accessor :add
|
|
1016
|
+
# Keys to remove from schedule phase metadata.
|
|
1017
|
+
attr_accessor :remove
|
|
1018
|
+
# Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
1019
|
+
attr_accessor :set
|
|
1020
|
+
# Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
1021
|
+
attr_accessor :type
|
|
1022
|
+
|
|
1023
|
+
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
1024
|
+
@add = add
|
|
1025
|
+
@remove = remove
|
|
1026
|
+
@set = set
|
|
1027
|
+
@type = type
|
|
1028
|
+
end
|
|
1029
|
+
end
|
|
1030
|
+
|
|
1031
|
+
class SetPauseCollection < ::Stripe::RequestParams
|
|
1032
|
+
class Set < ::Stripe::RequestParams
|
|
1033
|
+
# The payment collection behavior for this subscription while paused.
|
|
1034
|
+
attr_accessor :behavior
|
|
1035
|
+
|
|
1036
|
+
def initialize(behavior: nil)
|
|
1037
|
+
@behavior = behavior
|
|
1038
|
+
end
|
|
1039
|
+
end
|
|
1040
|
+
# Details of the pause_collection behavior to apply to the amendment.
|
|
1041
|
+
attr_accessor :set
|
|
1042
|
+
# Determines the type of the pause_collection amendment.
|
|
1043
|
+
attr_accessor :type
|
|
1044
|
+
|
|
1045
|
+
def initialize(set: nil, type: nil)
|
|
1046
|
+
@set = set
|
|
1047
|
+
@type = type
|
|
1048
|
+
end
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
class TrialSettings < ::Stripe::RequestParams
|
|
1052
|
+
class EndBehavior < ::Stripe::RequestParams
|
|
1053
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1054
|
+
attr_accessor :prorate_up_front
|
|
1055
|
+
|
|
1056
|
+
def initialize(prorate_up_front: nil)
|
|
1057
|
+
@prorate_up_front = prorate_up_front
|
|
1058
|
+
end
|
|
1059
|
+
end
|
|
1060
|
+
# Defines how the subscription should behave when a trial ends.
|
|
1061
|
+
attr_accessor :end_behavior
|
|
1062
|
+
|
|
1063
|
+
def initialize(end_behavior: nil)
|
|
1064
|
+
@end_behavior = end_behavior
|
|
1065
|
+
end
|
|
1066
|
+
end
|
|
1067
|
+
# Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
|
|
1068
|
+
attr_accessor :amendment_end
|
|
1069
|
+
# Details to identify the earliest timestamp where the proposed change should take effect.
|
|
1070
|
+
attr_accessor :amendment_start
|
|
1071
|
+
# 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.
|
|
1072
|
+
attr_accessor :billing_cycle_anchor
|
|
1073
|
+
# Actions to apply to the billing schedules.
|
|
1074
|
+
attr_accessor :billing_schedules_actions
|
|
1075
|
+
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
1076
|
+
attr_accessor :discount_actions
|
|
1077
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
1078
|
+
attr_accessor :effective_at
|
|
1079
|
+
# Changes to the subscription items during the amendment time span.
|
|
1080
|
+
attr_accessor :item_actions
|
|
1081
|
+
# Instructions for how to modify phase metadata
|
|
1082
|
+
attr_accessor :metadata_actions
|
|
1083
|
+
# Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
|
|
1084
|
+
attr_accessor :proration_behavior
|
|
1085
|
+
# Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
1086
|
+
attr_accessor :set_pause_collection
|
|
1087
|
+
# Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
1088
|
+
attr_accessor :set_schedule_end
|
|
1089
|
+
# Settings related to subscription trials.
|
|
1090
|
+
attr_accessor :trial_settings
|
|
1091
|
+
|
|
1092
|
+
def initialize(
|
|
1093
|
+
amendment_end: nil,
|
|
1094
|
+
amendment_start: nil,
|
|
1095
|
+
billing_cycle_anchor: nil,
|
|
1096
|
+
billing_schedules_actions: nil,
|
|
1097
|
+
discount_actions: nil,
|
|
1098
|
+
effective_at: nil,
|
|
1099
|
+
item_actions: nil,
|
|
1100
|
+
metadata_actions: nil,
|
|
1101
|
+
proration_behavior: nil,
|
|
1102
|
+
set_pause_collection: nil,
|
|
1103
|
+
set_schedule_end: nil,
|
|
1104
|
+
trial_settings: nil
|
|
1105
|
+
)
|
|
1106
|
+
@amendment_end = amendment_end
|
|
1107
|
+
@amendment_start = amendment_start
|
|
1108
|
+
@billing_cycle_anchor = billing_cycle_anchor
|
|
1109
|
+
@billing_schedules_actions = billing_schedules_actions
|
|
1110
|
+
@discount_actions = discount_actions
|
|
1111
|
+
@effective_at = effective_at
|
|
1112
|
+
@item_actions = item_actions
|
|
1113
|
+
@metadata_actions = metadata_actions
|
|
1114
|
+
@proration_behavior = proration_behavior
|
|
1115
|
+
@set_pause_collection = set_pause_collection
|
|
1116
|
+
@set_schedule_end = set_schedule_end
|
|
1117
|
+
@trial_settings = trial_settings
|
|
1118
|
+
end
|
|
1119
|
+
end
|
|
1120
|
+
|
|
314
1121
|
class BillingMode < ::Stripe::RequestParams
|
|
315
1122
|
class Flexible < ::Stripe::RequestParams
|
|
316
1123
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
@@ -331,19 +1138,108 @@ module Stripe
|
|
|
331
1138
|
end
|
|
332
1139
|
end
|
|
333
1140
|
|
|
1141
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
1142
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
1143
|
+
# The ID of the price object.
|
|
1144
|
+
attr_accessor :price
|
|
1145
|
+
# Controls which subscription items the billing schedule applies to.
|
|
1146
|
+
attr_accessor :type
|
|
1147
|
+
|
|
1148
|
+
def initialize(price: nil, type: nil)
|
|
1149
|
+
@price = price
|
|
1150
|
+
@type = type
|
|
1151
|
+
end
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
class BillUntil < ::Stripe::RequestParams
|
|
1155
|
+
class Duration < ::Stripe::RequestParams
|
|
1156
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
1157
|
+
attr_accessor :interval
|
|
1158
|
+
# The multiplier applied to the interval.
|
|
1159
|
+
attr_accessor :interval_count
|
|
1160
|
+
|
|
1161
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1162
|
+
@interval = interval
|
|
1163
|
+
@interval_count = interval_count
|
|
1164
|
+
end
|
|
1165
|
+
end
|
|
1166
|
+
# Specifies the billing period.
|
|
1167
|
+
attr_accessor :duration
|
|
1168
|
+
# The end date of the billing schedule.
|
|
1169
|
+
attr_accessor :timestamp
|
|
1170
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
1171
|
+
attr_accessor :type
|
|
1172
|
+
|
|
1173
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1174
|
+
@duration = duration
|
|
1175
|
+
@timestamp = timestamp
|
|
1176
|
+
@type = type
|
|
1177
|
+
end
|
|
1178
|
+
end
|
|
1179
|
+
# Configure billing schedule differently for individual subscription items.
|
|
1180
|
+
attr_accessor :applies_to
|
|
1181
|
+
# The end date for the billing schedule.
|
|
1182
|
+
attr_accessor :bill_until
|
|
1183
|
+
# 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.
|
|
1184
|
+
attr_accessor :key
|
|
1185
|
+
|
|
1186
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
1187
|
+
@applies_to = applies_to
|
|
1188
|
+
@bill_until = bill_until
|
|
1189
|
+
@key = key
|
|
1190
|
+
end
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1193
|
+
class DefaultSettings < ::Stripe::RequestParams
|
|
1194
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
1195
|
+
attr_accessor :phase_effective_at
|
|
1196
|
+
|
|
1197
|
+
def initialize(phase_effective_at: nil)
|
|
1198
|
+
@phase_effective_at = phase_effective_at
|
|
1199
|
+
end
|
|
1200
|
+
end
|
|
1201
|
+
|
|
334
1202
|
class Phase < ::Stripe::RequestParams
|
|
335
1203
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
336
1204
|
class Discount < ::Stripe::RequestParams
|
|
1205
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
1206
|
+
class Duration < ::Stripe::RequestParams
|
|
1207
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1208
|
+
attr_accessor :interval
|
|
1209
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1210
|
+
attr_accessor :interval_count
|
|
1211
|
+
|
|
1212
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1213
|
+
@interval = interval
|
|
1214
|
+
@interval_count = interval_count
|
|
1215
|
+
end
|
|
1216
|
+
end
|
|
1217
|
+
# Time span for the redeemed discount.
|
|
1218
|
+
attr_accessor :duration
|
|
1219
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1220
|
+
attr_accessor :timestamp
|
|
1221
|
+
# The type of calculation made to determine when the discount ends.
|
|
1222
|
+
attr_accessor :type
|
|
1223
|
+
|
|
1224
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1225
|
+
@duration = duration
|
|
1226
|
+
@timestamp = timestamp
|
|
1227
|
+
@type = type
|
|
1228
|
+
end
|
|
1229
|
+
end
|
|
337
1230
|
# ID of the coupon to create a new discount for.
|
|
338
1231
|
attr_accessor :coupon
|
|
339
1232
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
340
1233
|
attr_accessor :discount
|
|
1234
|
+
# Details to determine how long the discount should be applied for.
|
|
1235
|
+
attr_accessor :discount_end
|
|
341
1236
|
# ID of the promotion code to create a new discount for.
|
|
342
1237
|
attr_accessor :promotion_code
|
|
343
1238
|
|
|
344
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1239
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
345
1240
|
@coupon = coupon
|
|
346
1241
|
@discount = discount
|
|
1242
|
+
@discount_end = discount_end
|
|
347
1243
|
@promotion_code = promotion_code
|
|
348
1244
|
end
|
|
349
1245
|
end
|
|
@@ -493,17 +1389,97 @@ module Stripe
|
|
|
493
1389
|
end
|
|
494
1390
|
|
|
495
1391
|
class Discount < ::Stripe::RequestParams
|
|
1392
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
1393
|
+
class Duration < ::Stripe::RequestParams
|
|
1394
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1395
|
+
attr_accessor :interval
|
|
1396
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1397
|
+
attr_accessor :interval_count
|
|
1398
|
+
|
|
1399
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1400
|
+
@interval = interval
|
|
1401
|
+
@interval_count = interval_count
|
|
1402
|
+
end
|
|
1403
|
+
end
|
|
1404
|
+
# Time span for the redeemed discount.
|
|
1405
|
+
attr_accessor :duration
|
|
1406
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1407
|
+
attr_accessor :timestamp
|
|
1408
|
+
# The type of calculation made to determine when the discount ends.
|
|
1409
|
+
attr_accessor :type
|
|
1410
|
+
|
|
1411
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1412
|
+
@duration = duration
|
|
1413
|
+
@timestamp = timestamp
|
|
1414
|
+
@type = type
|
|
1415
|
+
end
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
class Settings < ::Stripe::RequestParams
|
|
1419
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
1420
|
+
class Custom < ::Stripe::RequestParams
|
|
1421
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
1422
|
+
attr_accessor :day_of_month
|
|
1423
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
1424
|
+
attr_accessor :hour
|
|
1425
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
1426
|
+
attr_accessor :minute
|
|
1427
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
1428
|
+
attr_accessor :month
|
|
1429
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
1430
|
+
attr_accessor :second
|
|
1431
|
+
|
|
1432
|
+
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
1433
|
+
@day_of_month = day_of_month
|
|
1434
|
+
@hour = hour
|
|
1435
|
+
@minute = minute
|
|
1436
|
+
@month = month
|
|
1437
|
+
@second = second
|
|
1438
|
+
end
|
|
1439
|
+
end
|
|
1440
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
1441
|
+
attr_accessor :custom
|
|
1442
|
+
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
1443
|
+
attr_accessor :type
|
|
1444
|
+
|
|
1445
|
+
def initialize(custom: nil, type: nil)
|
|
1446
|
+
@custom = custom
|
|
1447
|
+
@type = type
|
|
1448
|
+
end
|
|
1449
|
+
end
|
|
1450
|
+
# Configures service period cycle anchoring.
|
|
1451
|
+
attr_accessor :service_period_anchor_config
|
|
1452
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
|
|
1453
|
+
attr_accessor :start_date
|
|
1454
|
+
|
|
1455
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
1456
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
1457
|
+
@start_date = start_date
|
|
1458
|
+
end
|
|
1459
|
+
end
|
|
496
1460
|
# ID of the coupon to create a new discount for.
|
|
497
1461
|
attr_accessor :coupon
|
|
498
1462
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
499
1463
|
attr_accessor :discount
|
|
1464
|
+
# Details to determine how long the discount should be applied for.
|
|
1465
|
+
attr_accessor :discount_end
|
|
500
1466
|
# ID of the promotion code to create a new discount for.
|
|
501
1467
|
attr_accessor :promotion_code
|
|
1468
|
+
# Settings for discount application including service period anchoring.
|
|
1469
|
+
attr_accessor :settings
|
|
502
1470
|
|
|
503
|
-
def initialize(
|
|
1471
|
+
def initialize(
|
|
1472
|
+
coupon: nil,
|
|
1473
|
+
discount: nil,
|
|
1474
|
+
discount_end: nil,
|
|
1475
|
+
promotion_code: nil,
|
|
1476
|
+
settings: nil
|
|
1477
|
+
)
|
|
504
1478
|
@coupon = coupon
|
|
505
1479
|
@discount = discount
|
|
1480
|
+
@discount_end = discount_end
|
|
506
1481
|
@promotion_code = promotion_code
|
|
1482
|
+
@settings = settings
|
|
507
1483
|
end
|
|
508
1484
|
end
|
|
509
1485
|
|
|
@@ -556,17 +1532,97 @@ module Stripe
|
|
|
556
1532
|
end
|
|
557
1533
|
|
|
558
1534
|
class Discount < ::Stripe::RequestParams
|
|
1535
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
1536
|
+
class Duration < ::Stripe::RequestParams
|
|
1537
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1538
|
+
attr_accessor :interval
|
|
1539
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1540
|
+
attr_accessor :interval_count
|
|
1541
|
+
|
|
1542
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1543
|
+
@interval = interval
|
|
1544
|
+
@interval_count = interval_count
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
# Time span for the redeemed discount.
|
|
1548
|
+
attr_accessor :duration
|
|
1549
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1550
|
+
attr_accessor :timestamp
|
|
1551
|
+
# The type of calculation made to determine when the discount ends.
|
|
1552
|
+
attr_accessor :type
|
|
1553
|
+
|
|
1554
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1555
|
+
@duration = duration
|
|
1556
|
+
@timestamp = timestamp
|
|
1557
|
+
@type = type
|
|
1558
|
+
end
|
|
1559
|
+
end
|
|
1560
|
+
|
|
1561
|
+
class Settings < ::Stripe::RequestParams
|
|
1562
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
1563
|
+
class Custom < ::Stripe::RequestParams
|
|
1564
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
1565
|
+
attr_accessor :day_of_month
|
|
1566
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
1567
|
+
attr_accessor :hour
|
|
1568
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
1569
|
+
attr_accessor :minute
|
|
1570
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
1571
|
+
attr_accessor :month
|
|
1572
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
1573
|
+
attr_accessor :second
|
|
1574
|
+
|
|
1575
|
+
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
1576
|
+
@day_of_month = day_of_month
|
|
1577
|
+
@hour = hour
|
|
1578
|
+
@minute = minute
|
|
1579
|
+
@month = month
|
|
1580
|
+
@second = second
|
|
1581
|
+
end
|
|
1582
|
+
end
|
|
1583
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
1584
|
+
attr_accessor :custom
|
|
1585
|
+
# The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
1586
|
+
attr_accessor :type
|
|
1587
|
+
|
|
1588
|
+
def initialize(custom: nil, type: nil)
|
|
1589
|
+
@custom = custom
|
|
1590
|
+
@type = type
|
|
1591
|
+
end
|
|
1592
|
+
end
|
|
1593
|
+
# Configures service period cycle anchoring.
|
|
1594
|
+
attr_accessor :service_period_anchor_config
|
|
1595
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
|
|
1596
|
+
attr_accessor :start_date
|
|
1597
|
+
|
|
1598
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
1599
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
1600
|
+
@start_date = start_date
|
|
1601
|
+
end
|
|
1602
|
+
end
|
|
559
1603
|
# ID of the coupon to create a new discount for.
|
|
560
1604
|
attr_accessor :coupon
|
|
561
1605
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
562
1606
|
attr_accessor :discount
|
|
1607
|
+
# Details to determine how long the discount should be applied for.
|
|
1608
|
+
attr_accessor :discount_end
|
|
563
1609
|
# ID of the promotion code to create a new discount for.
|
|
564
1610
|
attr_accessor :promotion_code
|
|
1611
|
+
# Settings for discount application including service period anchoring.
|
|
1612
|
+
attr_accessor :settings
|
|
565
1613
|
|
|
566
|
-
def initialize(
|
|
1614
|
+
def initialize(
|
|
1615
|
+
coupon: nil,
|
|
1616
|
+
discount: nil,
|
|
1617
|
+
discount_end: nil,
|
|
1618
|
+
promotion_code: nil,
|
|
1619
|
+
settings: nil
|
|
1620
|
+
)
|
|
567
1621
|
@coupon = coupon
|
|
568
1622
|
@discount = discount
|
|
1623
|
+
@discount_end = discount_end
|
|
569
1624
|
@promotion_code = promotion_code
|
|
1625
|
+
@settings = settings
|
|
570
1626
|
end
|
|
571
1627
|
end
|
|
572
1628
|
|
|
@@ -615,6 +1671,18 @@ module Stripe
|
|
|
615
1671
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
616
1672
|
end
|
|
617
1673
|
end
|
|
1674
|
+
|
|
1675
|
+
class Trial < ::Stripe::RequestParams
|
|
1676
|
+
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
1677
|
+
attr_accessor :converts_to
|
|
1678
|
+
# Determines the type of trial for this item.
|
|
1679
|
+
attr_accessor :type
|
|
1680
|
+
|
|
1681
|
+
def initialize(converts_to: nil, type: nil)
|
|
1682
|
+
@converts_to = converts_to
|
|
1683
|
+
@type = type
|
|
1684
|
+
end
|
|
1685
|
+
end
|
|
618
1686
|
# 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.
|
|
619
1687
|
attr_accessor :billing_thresholds
|
|
620
1688
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -631,6 +1699,10 @@ module Stripe
|
|
|
631
1699
|
attr_accessor :quantity
|
|
632
1700
|
# A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
633
1701
|
attr_accessor :tax_rates
|
|
1702
|
+
# Options that configure the trial on the subscription item.
|
|
1703
|
+
attr_accessor :trial
|
|
1704
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
1705
|
+
attr_accessor :trial_offer
|
|
634
1706
|
|
|
635
1707
|
def initialize(
|
|
636
1708
|
billing_thresholds: nil,
|
|
@@ -640,7 +1712,9 @@ module Stripe
|
|
|
640
1712
|
price: nil,
|
|
641
1713
|
price_data: nil,
|
|
642
1714
|
quantity: nil,
|
|
643
|
-
tax_rates: nil
|
|
1715
|
+
tax_rates: nil,
|
|
1716
|
+
trial: nil,
|
|
1717
|
+
trial_offer: nil
|
|
644
1718
|
)
|
|
645
1719
|
@billing_thresholds = billing_thresholds
|
|
646
1720
|
@discounts = discounts
|
|
@@ -650,6 +1724,8 @@ module Stripe
|
|
|
650
1724
|
@price_data = price_data
|
|
651
1725
|
@quantity = quantity
|
|
652
1726
|
@tax_rates = tax_rates
|
|
1727
|
+
@trial = trial
|
|
1728
|
+
@trial_offer = trial_offer
|
|
653
1729
|
end
|
|
654
1730
|
|
|
655
1731
|
def self.field_encodings
|
|
@@ -659,6 +1735,15 @@ module Stripe
|
|
|
659
1735
|
end
|
|
660
1736
|
end
|
|
661
1737
|
|
|
1738
|
+
class PauseCollection < ::Stripe::RequestParams
|
|
1739
|
+
# The payment collection behavior for this subscription while paused.
|
|
1740
|
+
attr_accessor :behavior
|
|
1741
|
+
|
|
1742
|
+
def initialize(behavior: nil)
|
|
1743
|
+
@behavior = behavior
|
|
1744
|
+
end
|
|
1745
|
+
end
|
|
1746
|
+
|
|
662
1747
|
class TransferData < ::Stripe::RequestParams
|
|
663
1748
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
664
1749
|
attr_accessor :amount_percent
|
|
@@ -670,6 +1755,23 @@ module Stripe
|
|
|
670
1755
|
@destination = destination
|
|
671
1756
|
end
|
|
672
1757
|
end
|
|
1758
|
+
|
|
1759
|
+
class TrialSettings < ::Stripe::RequestParams
|
|
1760
|
+
class EndBehavior < ::Stripe::RequestParams
|
|
1761
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1762
|
+
attr_accessor :prorate_up_front
|
|
1763
|
+
|
|
1764
|
+
def initialize(prorate_up_front: nil)
|
|
1765
|
+
@prorate_up_front = prorate_up_front
|
|
1766
|
+
end
|
|
1767
|
+
end
|
|
1768
|
+
# Defines how the subscription should behave when a trial ends.
|
|
1769
|
+
attr_accessor :end_behavior
|
|
1770
|
+
|
|
1771
|
+
def initialize(end_behavior: nil)
|
|
1772
|
+
@end_behavior = end_behavior
|
|
1773
|
+
end
|
|
1774
|
+
end
|
|
673
1775
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
|
|
674
1776
|
attr_accessor :add_invoice_items
|
|
675
1777
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
|
|
@@ -694,6 +1796,8 @@ module Stripe
|
|
|
694
1796
|
attr_accessor :discounts
|
|
695
1797
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
696
1798
|
attr_accessor :duration
|
|
1799
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
1800
|
+
attr_accessor :effective_at
|
|
697
1801
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
698
1802
|
attr_accessor :end_date
|
|
699
1803
|
# All invoices will be billed using the specified settings.
|
|
@@ -704,6 +1808,8 @@ module Stripe
|
|
|
704
1808
|
attr_accessor :metadata
|
|
705
1809
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
706
1810
|
attr_accessor :on_behalf_of
|
|
1811
|
+
# 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).
|
|
1812
|
+
attr_accessor :pause_collection
|
|
707
1813
|
# Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
708
1814
|
attr_accessor :proration_behavior
|
|
709
1815
|
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
|
@@ -712,8 +1818,12 @@ module Stripe
|
|
|
712
1818
|
attr_accessor :transfer_data
|
|
713
1819
|
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
714
1820
|
attr_accessor :trial
|
|
1821
|
+
# Specify trial behavior when crossing phase boundaries
|
|
1822
|
+
attr_accessor :trial_continuation
|
|
715
1823
|
# Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
716
1824
|
attr_accessor :trial_end
|
|
1825
|
+
# Settings related to subscription trials.
|
|
1826
|
+
attr_accessor :trial_settings
|
|
717
1827
|
|
|
718
1828
|
def initialize(
|
|
719
1829
|
add_invoice_items: nil,
|
|
@@ -728,16 +1838,20 @@ module Stripe
|
|
|
728
1838
|
description: nil,
|
|
729
1839
|
discounts: nil,
|
|
730
1840
|
duration: nil,
|
|
1841
|
+
effective_at: nil,
|
|
731
1842
|
end_date: nil,
|
|
732
1843
|
invoice_settings: nil,
|
|
733
1844
|
items: nil,
|
|
734
1845
|
metadata: nil,
|
|
735
1846
|
on_behalf_of: nil,
|
|
1847
|
+
pause_collection: nil,
|
|
736
1848
|
proration_behavior: nil,
|
|
737
1849
|
start_date: nil,
|
|
738
1850
|
transfer_data: nil,
|
|
739
1851
|
trial: nil,
|
|
740
|
-
|
|
1852
|
+
trial_continuation: nil,
|
|
1853
|
+
trial_end: nil,
|
|
1854
|
+
trial_settings: nil
|
|
741
1855
|
)
|
|
742
1856
|
@add_invoice_items = add_invoice_items
|
|
743
1857
|
@application_fee_percent = application_fee_percent
|
|
@@ -751,16 +1865,20 @@ module Stripe
|
|
|
751
1865
|
@description = description
|
|
752
1866
|
@discounts = discounts
|
|
753
1867
|
@duration = duration
|
|
1868
|
+
@effective_at = effective_at
|
|
754
1869
|
@end_date = end_date
|
|
755
1870
|
@invoice_settings = invoice_settings
|
|
756
1871
|
@items = items
|
|
757
1872
|
@metadata = metadata
|
|
758
1873
|
@on_behalf_of = on_behalf_of
|
|
1874
|
+
@pause_collection = pause_collection
|
|
759
1875
|
@proration_behavior = proration_behavior
|
|
760
1876
|
@start_date = start_date
|
|
761
1877
|
@transfer_data = transfer_data
|
|
762
1878
|
@trial = trial
|
|
1879
|
+
@trial_continuation = trial_continuation
|
|
763
1880
|
@trial_end = trial_end
|
|
1881
|
+
@trial_settings = trial_settings
|
|
764
1882
|
end
|
|
765
1883
|
|
|
766
1884
|
def self.field_encodings
|
|
@@ -786,19 +1904,93 @@ module Stripe
|
|
|
786
1904
|
}
|
|
787
1905
|
end
|
|
788
1906
|
end
|
|
1907
|
+
|
|
1908
|
+
class Prebilling < ::Stripe::RequestParams
|
|
1909
|
+
class BillUntil < ::Stripe::RequestParams
|
|
1910
|
+
class AmendmentEnd < ::Stripe::RequestParams
|
|
1911
|
+
# The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
1912
|
+
attr_accessor :index
|
|
1913
|
+
|
|
1914
|
+
def initialize(index: nil)
|
|
1915
|
+
@index = index
|
|
1916
|
+
end
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
class Duration < ::Stripe::RequestParams
|
|
1920
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1921
|
+
attr_accessor :interval
|
|
1922
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1923
|
+
attr_accessor :interval_count
|
|
1924
|
+
|
|
1925
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1926
|
+
@interval = interval
|
|
1927
|
+
@interval_count = interval_count
|
|
1928
|
+
end
|
|
1929
|
+
end
|
|
1930
|
+
# End the prebilled period when a specified amendment ends.
|
|
1931
|
+
attr_accessor :amendment_end
|
|
1932
|
+
# Time span for prebilling, starting from `bill_from`.
|
|
1933
|
+
attr_accessor :duration
|
|
1934
|
+
# End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
1935
|
+
attr_accessor :timestamp
|
|
1936
|
+
# Select one of several ways to pass the `bill_until` value.
|
|
1937
|
+
attr_accessor :type
|
|
1938
|
+
|
|
1939
|
+
def initialize(amendment_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
1940
|
+
@amendment_end = amendment_end
|
|
1941
|
+
@duration = duration
|
|
1942
|
+
@timestamp = timestamp
|
|
1943
|
+
@type = type
|
|
1944
|
+
end
|
|
1945
|
+
end
|
|
1946
|
+
# The end of the prebilled time period.
|
|
1947
|
+
attr_accessor :bill_until
|
|
1948
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
1949
|
+
attr_accessor :iterations
|
|
1950
|
+
|
|
1951
|
+
def initialize(bill_until: nil, iterations: nil)
|
|
1952
|
+
@bill_until = bill_until
|
|
1953
|
+
@iterations = iterations
|
|
1954
|
+
end
|
|
1955
|
+
end
|
|
1956
|
+
# Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
1957
|
+
attr_accessor :amendments
|
|
1958
|
+
# 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.
|
|
1959
|
+
attr_accessor :billing_behavior
|
|
789
1960
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
790
1961
|
attr_accessor :billing_mode
|
|
1962
|
+
# Sets the billing schedules for the subscription schedule.
|
|
1963
|
+
attr_accessor :billing_schedules
|
|
1964
|
+
# Object representing the subscription schedule's default settings.
|
|
1965
|
+
attr_accessor :default_settings
|
|
791
1966
|
# 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.
|
|
792
1967
|
attr_accessor :end_behavior
|
|
793
1968
|
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
794
1969
|
attr_accessor :phases
|
|
1970
|
+
# Provide any time periods to bill in advance.
|
|
1971
|
+
attr_accessor :prebilling
|
|
795
1972
|
# In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
796
1973
|
attr_accessor :proration_behavior
|
|
797
1974
|
|
|
798
|
-
def initialize(
|
|
1975
|
+
def initialize(
|
|
1976
|
+
amendments: nil,
|
|
1977
|
+
billing_behavior: nil,
|
|
1978
|
+
billing_mode: nil,
|
|
1979
|
+
billing_schedules: nil,
|
|
1980
|
+
default_settings: nil,
|
|
1981
|
+
end_behavior: nil,
|
|
1982
|
+
phases: nil,
|
|
1983
|
+
prebilling: nil,
|
|
1984
|
+
proration_behavior: nil
|
|
1985
|
+
)
|
|
1986
|
+
@amendments = amendments
|
|
1987
|
+
@billing_behavior = billing_behavior
|
|
799
1988
|
@billing_mode = billing_mode
|
|
1989
|
+
@billing_schedules = billing_schedules
|
|
1990
|
+
@default_settings = default_settings
|
|
800
1991
|
@end_behavior = end_behavior
|
|
801
1992
|
@phases = phases
|
|
1993
|
+
@prebilling = prebilling
|
|
802
1994
|
@proration_behavior = proration_behavior
|
|
803
1995
|
end
|
|
804
1996
|
|
|
@@ -917,18 +2109,110 @@ module Stripe
|
|
|
917
2109
|
end
|
|
918
2110
|
end
|
|
919
2111
|
|
|
2112
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
2113
|
+
# 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`.
|
|
2114
|
+
attr_accessor :trial_end
|
|
2115
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
2116
|
+
attr_accessor :trial_offer
|
|
2117
|
+
|
|
2118
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
2119
|
+
@trial_end = trial_end
|
|
2120
|
+
@trial_offer = trial_offer
|
|
2121
|
+
end
|
|
2122
|
+
end
|
|
2123
|
+
|
|
920
2124
|
class Discount < ::Stripe::RequestParams
|
|
2125
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
2126
|
+
class Duration < ::Stripe::RequestParams
|
|
2127
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2128
|
+
attr_accessor :interval
|
|
2129
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2130
|
+
attr_accessor :interval_count
|
|
2131
|
+
|
|
2132
|
+
def initialize(interval: nil, interval_count: nil)
|
|
2133
|
+
@interval = interval
|
|
2134
|
+
@interval_count = interval_count
|
|
2135
|
+
end
|
|
2136
|
+
end
|
|
2137
|
+
# Time span for the redeemed discount.
|
|
2138
|
+
attr_accessor :duration
|
|
2139
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2140
|
+
attr_accessor :timestamp
|
|
2141
|
+
# The type of calculation made to determine when the discount ends.
|
|
2142
|
+
attr_accessor :type
|
|
2143
|
+
|
|
2144
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
2145
|
+
@duration = duration
|
|
2146
|
+
@timestamp = timestamp
|
|
2147
|
+
@type = type
|
|
2148
|
+
end
|
|
2149
|
+
end
|
|
2150
|
+
|
|
2151
|
+
class Settings < ::Stripe::RequestParams
|
|
2152
|
+
class ServicePeriodAnchorConfig < ::Stripe::RequestParams
|
|
2153
|
+
class Custom < ::Stripe::RequestParams
|
|
2154
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
|
2155
|
+
attr_accessor :day_of_month
|
|
2156
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
2157
|
+
attr_accessor :hour
|
|
2158
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
2159
|
+
attr_accessor :minute
|
|
2160
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
|
2161
|
+
attr_accessor :month
|
|
2162
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
2163
|
+
attr_accessor :second
|
|
2164
|
+
|
|
2165
|
+
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
|
2166
|
+
@day_of_month = day_of_month
|
|
2167
|
+
@hour = hour
|
|
2168
|
+
@minute = minute
|
|
2169
|
+
@month = month
|
|
2170
|
+
@second = second
|
|
2171
|
+
end
|
|
2172
|
+
end
|
|
2173
|
+
# Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
2174
|
+
attr_accessor :custom
|
|
2175
|
+
# The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
2176
|
+
attr_accessor :type
|
|
2177
|
+
|
|
2178
|
+
def initialize(custom: nil, type: nil)
|
|
2179
|
+
@custom = custom
|
|
2180
|
+
@type = type
|
|
2181
|
+
end
|
|
2182
|
+
end
|
|
2183
|
+
# Configures service period cycle anchoring.
|
|
2184
|
+
attr_accessor :service_period_anchor_config
|
|
2185
|
+
# The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
|
|
2186
|
+
attr_accessor :start_date
|
|
2187
|
+
|
|
2188
|
+
def initialize(service_period_anchor_config: nil, start_date: nil)
|
|
2189
|
+
@service_period_anchor_config = service_period_anchor_config
|
|
2190
|
+
@start_date = start_date
|
|
2191
|
+
end
|
|
2192
|
+
end
|
|
921
2193
|
# ID of the coupon to create a new discount for.
|
|
922
2194
|
attr_accessor :coupon
|
|
923
2195
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
924
2196
|
attr_accessor :discount
|
|
2197
|
+
# Details to determine how long the discount should be applied for.
|
|
2198
|
+
attr_accessor :discount_end
|
|
925
2199
|
# ID of the promotion code to create a new discount for.
|
|
926
2200
|
attr_accessor :promotion_code
|
|
2201
|
+
# Settings for discount application including service period anchoring.
|
|
2202
|
+
attr_accessor :settings
|
|
927
2203
|
|
|
928
|
-
def initialize(
|
|
2204
|
+
def initialize(
|
|
2205
|
+
coupon: nil,
|
|
2206
|
+
discount: nil,
|
|
2207
|
+
discount_end: nil,
|
|
2208
|
+
promotion_code: nil,
|
|
2209
|
+
settings: nil
|
|
2210
|
+
)
|
|
929
2211
|
@coupon = coupon
|
|
930
2212
|
@discount = discount
|
|
2213
|
+
@discount_end = discount_end
|
|
931
2214
|
@promotion_code = promotion_code
|
|
2215
|
+
@settings = settings
|
|
932
2216
|
end
|
|
933
2217
|
end
|
|
934
2218
|
|
|
@@ -981,6 +2265,8 @@ module Stripe
|
|
|
981
2265
|
attr_accessor :billing_thresholds
|
|
982
2266
|
# 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.
|
|
983
2267
|
attr_accessor :clear_usage
|
|
2268
|
+
# The trial offer to apply to this subscription item.
|
|
2269
|
+
attr_accessor :current_trial
|
|
984
2270
|
# A flag that, if set to `true`, will delete the specified item.
|
|
985
2271
|
attr_accessor :deleted
|
|
986
2272
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -1003,6 +2289,7 @@ module Stripe
|
|
|
1003
2289
|
def initialize(
|
|
1004
2290
|
billing_thresholds: nil,
|
|
1005
2291
|
clear_usage: nil,
|
|
2292
|
+
current_trial: nil,
|
|
1006
2293
|
deleted: nil,
|
|
1007
2294
|
discounts: nil,
|
|
1008
2295
|
id: nil,
|
|
@@ -1015,6 +2302,7 @@ module Stripe
|
|
|
1015
2302
|
)
|
|
1016
2303
|
@billing_thresholds = billing_thresholds
|
|
1017
2304
|
@clear_usage = clear_usage
|
|
2305
|
+
@current_trial = current_trial
|
|
1018
2306
|
@deleted = deleted
|
|
1019
2307
|
@discounts = discounts
|
|
1020
2308
|
@id = id
|
|
@@ -1032,6 +2320,15 @@ module Stripe
|
|
|
1032
2320
|
}
|
|
1033
2321
|
end
|
|
1034
2322
|
end
|
|
2323
|
+
|
|
2324
|
+
class Prebilling < ::Stripe::RequestParams
|
|
2325
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
2326
|
+
attr_accessor :iterations
|
|
2327
|
+
|
|
2328
|
+
def initialize(iterations: nil)
|
|
2329
|
+
@iterations = iterations
|
|
2330
|
+
end
|
|
2331
|
+
end
|
|
1035
2332
|
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.
|
|
1036
2333
|
attr_accessor :billing_cycle_anchor
|
|
1037
2334
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
@@ -1048,6 +2345,8 @@ module Stripe
|
|
|
1048
2345
|
attr_accessor :default_tax_rates
|
|
1049
2346
|
# A list of up to 20 subscription items, each with an attached price.
|
|
1050
2347
|
attr_accessor :items
|
|
2348
|
+
# The pre-billing to apply to the subscription as a preview.
|
|
2349
|
+
attr_accessor :prebilling
|
|
1051
2350
|
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
1052
2351
|
attr_accessor :proration_behavior
|
|
1053
2352
|
# If previewing an update to a subscription, and doing proration, `subscription_details.proration_date` forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period and within the current phase of the schedule backing this subscription, if the schedule exists. If set, `subscription`, and one of `subscription_details.items`, or `subscription_details.trial_end` are required. Also, `subscription_details.proration_behavior` cannot be set to 'none'.
|
|
@@ -1068,6 +2367,7 @@ module Stripe
|
|
|
1068
2367
|
cancel_now: nil,
|
|
1069
2368
|
default_tax_rates: nil,
|
|
1070
2369
|
items: nil,
|
|
2370
|
+
prebilling: nil,
|
|
1071
2371
|
proration_behavior: nil,
|
|
1072
2372
|
proration_date: nil,
|
|
1073
2373
|
resume_at: nil,
|
|
@@ -1082,6 +2382,7 @@ module Stripe
|
|
|
1082
2382
|
@cancel_now = cancel_now
|
|
1083
2383
|
@default_tax_rates = default_tax_rates
|
|
1084
2384
|
@items = items
|
|
2385
|
+
@prebilling = prebilling
|
|
1085
2386
|
@proration_behavior = proration_behavior
|
|
1086
2387
|
@proration_date = proration_date
|
|
1087
2388
|
@resume_at = resume_at
|
|
@@ -1103,6 +2404,8 @@ module Stripe
|
|
|
1103
2404
|
end
|
|
1104
2405
|
# Settings for automatic tax lookup for this invoice preview.
|
|
1105
2406
|
attr_accessor :automatic_tax
|
|
2407
|
+
# The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice. Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
|
|
2408
|
+
attr_accessor :billing_cadence
|
|
1106
2409
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
1107
2410
|
attr_accessor :currency
|
|
1108
2411
|
# The identifier of the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
@@ -1134,6 +2437,7 @@ module Stripe
|
|
|
1134
2437
|
|
|
1135
2438
|
def initialize(
|
|
1136
2439
|
automatic_tax: nil,
|
|
2440
|
+
billing_cadence: nil,
|
|
1137
2441
|
currency: nil,
|
|
1138
2442
|
customer: nil,
|
|
1139
2443
|
customer_account: nil,
|
|
@@ -1150,6 +2454,7 @@ module Stripe
|
|
|
1150
2454
|
subscription_details: nil
|
|
1151
2455
|
)
|
|
1152
2456
|
@automatic_tax = automatic_tax
|
|
2457
|
+
@billing_cadence = billing_cadence
|
|
1153
2458
|
@currency = currency
|
|
1154
2459
|
@customer = customer
|
|
1155
2460
|
@customer_account = customer_account
|