stripe 18.0.0 → 18.1.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +1050 -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_refunded_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_capability_updated_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_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_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_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_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_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -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_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_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_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -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 +64 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_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_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_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 +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +84 -0
- data/lib/stripe/params/account_create_params.rb +349 -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 +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +311 -0
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -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 +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +273 -4
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/dispute_update_params.rb +10 -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/account_list_params.rb +4 -1
- 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 +34 -2
- 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_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +909 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +8 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- 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_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/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_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/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -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 +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3306 -238
- data/lib/stripe/params/payment_intent_create_params.rb +3160 -84
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3192 -85
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_list_params.rb +8 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +19 -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/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +1013 -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 +8 -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 +1021 -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 +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +254 -3
- data/lib/stripe/params/setup_intent_create_params.rb +260 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +261 -4
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +597 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +229 -7
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +225 -7
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- 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_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- 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 +97 -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 +64 -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_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/collection_setting_create_params.rb +223 -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 +229 -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/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 +355 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/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_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -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_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2943 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2975 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- 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 +50 -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 +33 -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/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/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -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 +102 -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 +67 -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 +103 -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 +80 -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 +81 -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/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/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 +254 -0
- data/lib/stripe/resources/account.rb +184 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +60 -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/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +255 -1
- data/lib/stripe/resources/checkout/session.rb +246 -4
- data/lib/stripe/resources/confirmation_token.rb +173 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +38 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +420 -0
- data/lib/stripe/resources/discount.rb +4 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- 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 +4 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +168 -1
- data/lib/stripe/resources/invoice_item.rb +110 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -1
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- 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/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +203 -1
- data/lib/stripe/resources/payment_intent.rb +793 -4
- data/lib/stripe/resources/payment_method.rb +195 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -1
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +918 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1166 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +906 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +172 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +335 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +372 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- 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_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 +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +1 -2
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
- data/lib/stripe/resources/v2/core/account.rb +4967 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +4 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -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 +137 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +140 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources.rb +393 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -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_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/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -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/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- 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/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/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_method_service.rb +11 -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/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_service.rb +2 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -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_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +10 -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 +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -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 +5 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -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 +73 -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 +63 -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 +33 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -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/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 +5 -1
- data/lib/stripe/services.rb +88 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- 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 +53 -0
- data/rbi/stripe.rbi +178406 -88690
- metadata +738 -3
|
@@ -144,32 +144,88 @@ 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
|
|
147
172
|
# ID of the coupon to create a new discount for.
|
|
148
173
|
attr_accessor :coupon
|
|
149
174
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
150
175
|
attr_accessor :discount
|
|
176
|
+
# Details to determine how long the discount should be applied for.
|
|
177
|
+
attr_accessor :discount_end
|
|
151
178
|
# ID of the promotion code to create a new discount for.
|
|
152
179
|
attr_accessor :promotion_code
|
|
153
180
|
|
|
154
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
181
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
155
182
|
@coupon = coupon
|
|
156
183
|
@discount = discount
|
|
184
|
+
@discount_end = discount_end
|
|
157
185
|
@promotion_code = promotion_code
|
|
158
186
|
end
|
|
159
187
|
end
|
|
160
188
|
|
|
161
189
|
class InvoiceItem < ::Stripe::RequestParams
|
|
162
190
|
class Discount < ::Stripe::RequestParams
|
|
191
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
192
|
+
class Duration < ::Stripe::RequestParams
|
|
193
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
194
|
+
attr_accessor :interval
|
|
195
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
196
|
+
attr_accessor :interval_count
|
|
197
|
+
|
|
198
|
+
def initialize(interval: nil, interval_count: nil)
|
|
199
|
+
@interval = interval
|
|
200
|
+
@interval_count = interval_count
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
# Time span for the redeemed discount.
|
|
204
|
+
attr_accessor :duration
|
|
205
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
206
|
+
attr_accessor :timestamp
|
|
207
|
+
# The type of calculation made to determine when the discount ends.
|
|
208
|
+
attr_accessor :type
|
|
209
|
+
|
|
210
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
211
|
+
@duration = duration
|
|
212
|
+
@timestamp = timestamp
|
|
213
|
+
@type = type
|
|
214
|
+
end
|
|
215
|
+
end
|
|
163
216
|
# ID of the coupon to create a new discount for.
|
|
164
217
|
attr_accessor :coupon
|
|
165
218
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
166
219
|
attr_accessor :discount
|
|
220
|
+
# Details to determine how long the discount should be applied for.
|
|
221
|
+
attr_accessor :discount_end
|
|
167
222
|
# ID of the promotion code to create a new discount for.
|
|
168
223
|
attr_accessor :promotion_code
|
|
169
224
|
|
|
170
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
225
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
171
226
|
@coupon = coupon
|
|
172
227
|
@discount = discount
|
|
228
|
+
@discount_end = discount_end
|
|
173
229
|
@promotion_code = promotion_code
|
|
174
230
|
end
|
|
175
231
|
end
|
|
@@ -295,6 +351,485 @@ module Stripe
|
|
|
295
351
|
end
|
|
296
352
|
|
|
297
353
|
class ScheduleDetails < ::Stripe::RequestParams
|
|
354
|
+
class Amendment < ::Stripe::RequestParams
|
|
355
|
+
class AmendmentEnd < ::Stripe::RequestParams
|
|
356
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
357
|
+
# The ID of a specific discount.
|
|
358
|
+
attr_accessor :discount
|
|
359
|
+
|
|
360
|
+
def initialize(discount: nil)
|
|
361
|
+
@discount = discount
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
class Duration < ::Stripe::RequestParams
|
|
366
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
367
|
+
attr_accessor :interval
|
|
368
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
369
|
+
attr_accessor :interval_count
|
|
370
|
+
|
|
371
|
+
def initialize(interval: nil, interval_count: nil)
|
|
372
|
+
@interval = interval
|
|
373
|
+
@interval_count = interval_count
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
# Use the `end` time of a given discount.
|
|
377
|
+
attr_accessor :discount_end
|
|
378
|
+
# Time span for the amendment starting from the `amendment_start`.
|
|
379
|
+
attr_accessor :duration
|
|
380
|
+
# A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
381
|
+
attr_accessor :timestamp
|
|
382
|
+
# Select one of three ways to pass the `amendment_end`.
|
|
383
|
+
attr_accessor :type
|
|
384
|
+
|
|
385
|
+
def initialize(discount_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
386
|
+
@discount_end = discount_end
|
|
387
|
+
@duration = duration
|
|
388
|
+
@timestamp = timestamp
|
|
389
|
+
@type = type
|
|
390
|
+
end
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
class AmendmentStart < ::Stripe::RequestParams
|
|
394
|
+
class AmendmentEnd < ::Stripe::RequestParams
|
|
395
|
+
# 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.
|
|
396
|
+
attr_accessor :index
|
|
397
|
+
|
|
398
|
+
def initialize(index: nil)
|
|
399
|
+
@index = index
|
|
400
|
+
end
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
404
|
+
# The ID of a specific discount.
|
|
405
|
+
attr_accessor :discount
|
|
406
|
+
|
|
407
|
+
def initialize(discount: nil)
|
|
408
|
+
@discount = discount
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
# Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
412
|
+
attr_accessor :amendment_end
|
|
413
|
+
# Use the `end` time of a given discount.
|
|
414
|
+
attr_accessor :discount_end
|
|
415
|
+
# A precise Unix timestamp for the amendment to start.
|
|
416
|
+
attr_accessor :timestamp
|
|
417
|
+
# Select one of three ways to pass the `amendment_start`.
|
|
418
|
+
attr_accessor :type
|
|
419
|
+
|
|
420
|
+
def initialize(amendment_end: nil, discount_end: nil, timestamp: nil, type: nil)
|
|
421
|
+
@amendment_end = amendment_end
|
|
422
|
+
@discount_end = discount_end
|
|
423
|
+
@timestamp = timestamp
|
|
424
|
+
@type = type
|
|
425
|
+
end
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
class BillingSchedulesAction < ::Stripe::RequestParams
|
|
429
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
430
|
+
# The ID of the price object.
|
|
431
|
+
attr_accessor :price
|
|
432
|
+
# Controls which subscription items the billing schedule applies to.
|
|
433
|
+
attr_accessor :type
|
|
434
|
+
|
|
435
|
+
def initialize(price: nil, type: nil)
|
|
436
|
+
@price = price
|
|
437
|
+
@type = type
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
# Specify which subscription items the billing schedule applies to.
|
|
441
|
+
attr_accessor :applies_to
|
|
442
|
+
# Select the action.
|
|
443
|
+
attr_accessor :type
|
|
444
|
+
|
|
445
|
+
def initialize(applies_to: nil, type: nil)
|
|
446
|
+
@applies_to = applies_to
|
|
447
|
+
@type = type
|
|
448
|
+
end
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
class DiscountAction < ::Stripe::RequestParams
|
|
452
|
+
class Add < ::Stripe::RequestParams
|
|
453
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
454
|
+
# The type of calculation made to determine when the discount ends.
|
|
455
|
+
attr_accessor :type
|
|
456
|
+
|
|
457
|
+
def initialize(type: nil)
|
|
458
|
+
@type = type
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
# The coupon code to redeem.
|
|
462
|
+
attr_accessor :coupon
|
|
463
|
+
# An ID of an existing discount for a coupon that was already redeemed.
|
|
464
|
+
attr_accessor :discount
|
|
465
|
+
# Details to determine how long the discount should be applied for.
|
|
466
|
+
attr_accessor :discount_end
|
|
467
|
+
# 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.
|
|
468
|
+
attr_accessor :index
|
|
469
|
+
# The promotion code to redeem.
|
|
470
|
+
attr_accessor :promotion_code
|
|
471
|
+
|
|
472
|
+
def initialize(
|
|
473
|
+
coupon: nil,
|
|
474
|
+
discount: nil,
|
|
475
|
+
discount_end: nil,
|
|
476
|
+
index: nil,
|
|
477
|
+
promotion_code: nil
|
|
478
|
+
)
|
|
479
|
+
@coupon = coupon
|
|
480
|
+
@discount = discount
|
|
481
|
+
@discount_end = discount_end
|
|
482
|
+
@index = index
|
|
483
|
+
@promotion_code = promotion_code
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
class Remove < ::Stripe::RequestParams
|
|
488
|
+
# The coupon code to remove from the `discounts` array.
|
|
489
|
+
attr_accessor :coupon
|
|
490
|
+
# The ID of a discount to remove from the `discounts` array.
|
|
491
|
+
attr_accessor :discount
|
|
492
|
+
# The ID of a promotion code to remove from the `discounts` array.
|
|
493
|
+
attr_accessor :promotion_code
|
|
494
|
+
|
|
495
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
496
|
+
@coupon = coupon
|
|
497
|
+
@discount = discount
|
|
498
|
+
@promotion_code = promotion_code
|
|
499
|
+
end
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
class Set < ::Stripe::RequestParams
|
|
503
|
+
# The coupon code to replace the `discounts` array with.
|
|
504
|
+
attr_accessor :coupon
|
|
505
|
+
# An ID of an existing discount to replace the `discounts` array with.
|
|
506
|
+
attr_accessor :discount
|
|
507
|
+
# An ID of an existing promotion code to replace the `discounts` array with.
|
|
508
|
+
attr_accessor :promotion_code
|
|
509
|
+
|
|
510
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
511
|
+
@coupon = coupon
|
|
512
|
+
@discount = discount
|
|
513
|
+
@promotion_code = promotion_code
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
# Details of the discount to add.
|
|
517
|
+
attr_accessor :add
|
|
518
|
+
# Details of the discount to remove.
|
|
519
|
+
attr_accessor :remove
|
|
520
|
+
# Details of the discount to replace the existing discounts with.
|
|
521
|
+
attr_accessor :set
|
|
522
|
+
# Determines the type of discount action.
|
|
523
|
+
attr_accessor :type
|
|
524
|
+
|
|
525
|
+
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
526
|
+
@add = add
|
|
527
|
+
@remove = remove
|
|
528
|
+
@set = set
|
|
529
|
+
@type = type
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
class ItemAction < ::Stripe::RequestParams
|
|
534
|
+
class Add < ::Stripe::RequestParams
|
|
535
|
+
class Discount < ::Stripe::RequestParams
|
|
536
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
537
|
+
class Duration < ::Stripe::RequestParams
|
|
538
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
539
|
+
attr_accessor :interval
|
|
540
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
541
|
+
attr_accessor :interval_count
|
|
542
|
+
|
|
543
|
+
def initialize(interval: nil, interval_count: nil)
|
|
544
|
+
@interval = interval
|
|
545
|
+
@interval_count = interval_count
|
|
546
|
+
end
|
|
547
|
+
end
|
|
548
|
+
# Time span for the redeemed discount.
|
|
549
|
+
attr_accessor :duration
|
|
550
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
551
|
+
attr_accessor :timestamp
|
|
552
|
+
# The type of calculation made to determine when the discount ends.
|
|
553
|
+
attr_accessor :type
|
|
554
|
+
|
|
555
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
556
|
+
@duration = duration
|
|
557
|
+
@timestamp = timestamp
|
|
558
|
+
@type = type
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
# ID of the coupon to create a new discount for.
|
|
562
|
+
attr_accessor :coupon
|
|
563
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
564
|
+
attr_accessor :discount
|
|
565
|
+
# Details to determine how long the discount should be applied for.
|
|
566
|
+
attr_accessor :discount_end
|
|
567
|
+
# ID of the promotion code to create a new discount for.
|
|
568
|
+
attr_accessor :promotion_code
|
|
569
|
+
|
|
570
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
571
|
+
@coupon = coupon
|
|
572
|
+
@discount = discount
|
|
573
|
+
@discount_end = discount_end
|
|
574
|
+
@promotion_code = promotion_code
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
class Trial < ::Stripe::RequestParams
|
|
579
|
+
# 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.
|
|
580
|
+
attr_accessor :converts_to
|
|
581
|
+
# Determines the type of trial for this item.
|
|
582
|
+
attr_accessor :type
|
|
583
|
+
|
|
584
|
+
def initialize(converts_to: nil, type: nil)
|
|
585
|
+
@converts_to = converts_to
|
|
586
|
+
@type = type
|
|
587
|
+
end
|
|
588
|
+
end
|
|
589
|
+
# The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
590
|
+
attr_accessor :discounts
|
|
591
|
+
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
|
592
|
+
attr_accessor :metadata
|
|
593
|
+
# The ID of the price object.
|
|
594
|
+
attr_accessor :price
|
|
595
|
+
# Quantity for this item.
|
|
596
|
+
attr_accessor :quantity
|
|
597
|
+
# 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`.
|
|
598
|
+
attr_accessor :tax_rates
|
|
599
|
+
# Options that configure the trial on the subscription item.
|
|
600
|
+
attr_accessor :trial
|
|
601
|
+
|
|
602
|
+
def initialize(
|
|
603
|
+
discounts: nil,
|
|
604
|
+
metadata: nil,
|
|
605
|
+
price: nil,
|
|
606
|
+
quantity: nil,
|
|
607
|
+
tax_rates: nil,
|
|
608
|
+
trial: nil
|
|
609
|
+
)
|
|
610
|
+
@discounts = discounts
|
|
611
|
+
@metadata = metadata
|
|
612
|
+
@price = price
|
|
613
|
+
@quantity = quantity
|
|
614
|
+
@tax_rates = tax_rates
|
|
615
|
+
@trial = trial
|
|
616
|
+
end
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
class Remove < ::Stripe::RequestParams
|
|
620
|
+
# ID of a price to remove.
|
|
621
|
+
attr_accessor :price
|
|
622
|
+
|
|
623
|
+
def initialize(price: nil)
|
|
624
|
+
@price = price
|
|
625
|
+
end
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
class Set < ::Stripe::RequestParams
|
|
629
|
+
class Discount < ::Stripe::RequestParams
|
|
630
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
631
|
+
class Duration < ::Stripe::RequestParams
|
|
632
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
633
|
+
attr_accessor :interval
|
|
634
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
635
|
+
attr_accessor :interval_count
|
|
636
|
+
|
|
637
|
+
def initialize(interval: nil, interval_count: nil)
|
|
638
|
+
@interval = interval
|
|
639
|
+
@interval_count = interval_count
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
# Time span for the redeemed discount.
|
|
643
|
+
attr_accessor :duration
|
|
644
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
645
|
+
attr_accessor :timestamp
|
|
646
|
+
# The type of calculation made to determine when the discount ends.
|
|
647
|
+
attr_accessor :type
|
|
648
|
+
|
|
649
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
650
|
+
@duration = duration
|
|
651
|
+
@timestamp = timestamp
|
|
652
|
+
@type = type
|
|
653
|
+
end
|
|
654
|
+
end
|
|
655
|
+
# ID of the coupon to create a new discount for.
|
|
656
|
+
attr_accessor :coupon
|
|
657
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
658
|
+
attr_accessor :discount
|
|
659
|
+
# Details to determine how long the discount should be applied for.
|
|
660
|
+
attr_accessor :discount_end
|
|
661
|
+
# ID of the promotion code to create a new discount for.
|
|
662
|
+
attr_accessor :promotion_code
|
|
663
|
+
|
|
664
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
665
|
+
@coupon = coupon
|
|
666
|
+
@discount = discount
|
|
667
|
+
@discount_end = discount_end
|
|
668
|
+
@promotion_code = promotion_code
|
|
669
|
+
end
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
class Trial < ::Stripe::RequestParams
|
|
673
|
+
# 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.
|
|
674
|
+
attr_accessor :converts_to
|
|
675
|
+
# Determines the type of trial for this item.
|
|
676
|
+
attr_accessor :type
|
|
677
|
+
|
|
678
|
+
def initialize(converts_to: nil, type: nil)
|
|
679
|
+
@converts_to = converts_to
|
|
680
|
+
@type = type
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
# 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`.
|
|
684
|
+
attr_accessor :discounts
|
|
685
|
+
# 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`.
|
|
686
|
+
attr_accessor :metadata
|
|
687
|
+
# The ID of the price object.
|
|
688
|
+
attr_accessor :price
|
|
689
|
+
# 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`.
|
|
690
|
+
attr_accessor :quantity
|
|
691
|
+
# 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`.
|
|
692
|
+
attr_accessor :tax_rates
|
|
693
|
+
# 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`.
|
|
694
|
+
attr_accessor :trial
|
|
695
|
+
|
|
696
|
+
def initialize(
|
|
697
|
+
discounts: nil,
|
|
698
|
+
metadata: nil,
|
|
699
|
+
price: nil,
|
|
700
|
+
quantity: nil,
|
|
701
|
+
tax_rates: nil,
|
|
702
|
+
trial: nil
|
|
703
|
+
)
|
|
704
|
+
@discounts = discounts
|
|
705
|
+
@metadata = metadata
|
|
706
|
+
@price = price
|
|
707
|
+
@quantity = quantity
|
|
708
|
+
@tax_rates = tax_rates
|
|
709
|
+
@trial = trial
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
# 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.
|
|
713
|
+
attr_accessor :add
|
|
714
|
+
# Details of the subscription item to remove.
|
|
715
|
+
attr_accessor :remove
|
|
716
|
+
# 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.
|
|
717
|
+
attr_accessor :set
|
|
718
|
+
# Determines the type of item action.
|
|
719
|
+
attr_accessor :type
|
|
720
|
+
|
|
721
|
+
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
722
|
+
@add = add
|
|
723
|
+
@remove = remove
|
|
724
|
+
@set = set
|
|
725
|
+
@type = type
|
|
726
|
+
end
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
class MetadataAction < ::Stripe::RequestParams
|
|
730
|
+
# Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
731
|
+
attr_accessor :add
|
|
732
|
+
# Keys to remove from schedule phase metadata.
|
|
733
|
+
attr_accessor :remove
|
|
734
|
+
# Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
735
|
+
attr_accessor :set
|
|
736
|
+
# Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
737
|
+
attr_accessor :type
|
|
738
|
+
|
|
739
|
+
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
740
|
+
@add = add
|
|
741
|
+
@remove = remove
|
|
742
|
+
@set = set
|
|
743
|
+
@type = type
|
|
744
|
+
end
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
class SetPauseCollection < ::Stripe::RequestParams
|
|
748
|
+
class Set < ::Stripe::RequestParams
|
|
749
|
+
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
750
|
+
attr_accessor :behavior
|
|
751
|
+
|
|
752
|
+
def initialize(behavior: nil)
|
|
753
|
+
@behavior = behavior
|
|
754
|
+
end
|
|
755
|
+
end
|
|
756
|
+
# Details of the pause_collection behavior to apply to the amendment.
|
|
757
|
+
attr_accessor :set
|
|
758
|
+
# Determines the type of the pause_collection amendment.
|
|
759
|
+
attr_accessor :type
|
|
760
|
+
|
|
761
|
+
def initialize(set: nil, type: nil)
|
|
762
|
+
@set = set
|
|
763
|
+
@type = type
|
|
764
|
+
end
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
class TrialSettings < ::Stripe::RequestParams
|
|
768
|
+
class EndBehavior < ::Stripe::RequestParams
|
|
769
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
770
|
+
attr_accessor :prorate_up_front
|
|
771
|
+
|
|
772
|
+
def initialize(prorate_up_front: nil)
|
|
773
|
+
@prorate_up_front = prorate_up_front
|
|
774
|
+
end
|
|
775
|
+
end
|
|
776
|
+
# Defines how the subscription should behave when a trial ends.
|
|
777
|
+
attr_accessor :end_behavior
|
|
778
|
+
|
|
779
|
+
def initialize(end_behavior: nil)
|
|
780
|
+
@end_behavior = end_behavior
|
|
781
|
+
end
|
|
782
|
+
end
|
|
783
|
+
# 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.
|
|
784
|
+
attr_accessor :amendment_end
|
|
785
|
+
# Details to identify the earliest timestamp where the proposed change should take effect.
|
|
786
|
+
attr_accessor :amendment_start
|
|
787
|
+
# 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.
|
|
788
|
+
attr_accessor :billing_cycle_anchor
|
|
789
|
+
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
790
|
+
attr_accessor :discount_actions
|
|
791
|
+
# Changes to the subscription items during the amendment time span.
|
|
792
|
+
attr_accessor :item_actions
|
|
793
|
+
# Instructions for how to modify phase metadata
|
|
794
|
+
attr_accessor :metadata_actions
|
|
795
|
+
# 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`.
|
|
796
|
+
attr_accessor :proration_behavior
|
|
797
|
+
# Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
798
|
+
attr_accessor :set_pause_collection
|
|
799
|
+
# Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
800
|
+
attr_accessor :set_schedule_end
|
|
801
|
+
# Settings related to subscription trials.
|
|
802
|
+
attr_accessor :trial_settings
|
|
803
|
+
# Actions to apply to the billing schedules.
|
|
804
|
+
attr_accessor :billing_schedules_actions
|
|
805
|
+
|
|
806
|
+
def initialize(
|
|
807
|
+
amendment_end: nil,
|
|
808
|
+
amendment_start: nil,
|
|
809
|
+
billing_cycle_anchor: nil,
|
|
810
|
+
discount_actions: nil,
|
|
811
|
+
item_actions: nil,
|
|
812
|
+
metadata_actions: nil,
|
|
813
|
+
proration_behavior: nil,
|
|
814
|
+
set_pause_collection: nil,
|
|
815
|
+
set_schedule_end: nil,
|
|
816
|
+
trial_settings: nil,
|
|
817
|
+
billing_schedules_actions: nil
|
|
818
|
+
)
|
|
819
|
+
@amendment_end = amendment_end
|
|
820
|
+
@amendment_start = amendment_start
|
|
821
|
+
@billing_cycle_anchor = billing_cycle_anchor
|
|
822
|
+
@discount_actions = discount_actions
|
|
823
|
+
@item_actions = item_actions
|
|
824
|
+
@metadata_actions = metadata_actions
|
|
825
|
+
@proration_behavior = proration_behavior
|
|
826
|
+
@set_pause_collection = set_pause_collection
|
|
827
|
+
@set_schedule_end = set_schedule_end
|
|
828
|
+
@trial_settings = trial_settings
|
|
829
|
+
@billing_schedules_actions = billing_schedules_actions
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
|
|
298
833
|
class BillingMode < ::Stripe::RequestParams
|
|
299
834
|
class Flexible < ::Stripe::RequestParams
|
|
300
835
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
@@ -315,19 +850,99 @@ module Stripe
|
|
|
315
850
|
end
|
|
316
851
|
end
|
|
317
852
|
|
|
853
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
854
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
855
|
+
# The ID of the price object.
|
|
856
|
+
attr_accessor :price
|
|
857
|
+
# Controls which subscription items the billing schedule applies to.
|
|
858
|
+
attr_accessor :type
|
|
859
|
+
|
|
860
|
+
def initialize(price: nil, type: nil)
|
|
861
|
+
@price = price
|
|
862
|
+
@type = type
|
|
863
|
+
end
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
class BillUntil < ::Stripe::RequestParams
|
|
867
|
+
class Duration < ::Stripe::RequestParams
|
|
868
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
869
|
+
attr_accessor :interval
|
|
870
|
+
# The multiplier applied to the interval.
|
|
871
|
+
attr_accessor :interval_count
|
|
872
|
+
|
|
873
|
+
def initialize(interval: nil, interval_count: nil)
|
|
874
|
+
@interval = interval
|
|
875
|
+
@interval_count = interval_count
|
|
876
|
+
end
|
|
877
|
+
end
|
|
878
|
+
# Specifies the billing period.
|
|
879
|
+
attr_accessor :duration
|
|
880
|
+
# The end date of the billing schedule.
|
|
881
|
+
attr_accessor :timestamp
|
|
882
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
883
|
+
attr_accessor :type
|
|
884
|
+
|
|
885
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
886
|
+
@duration = duration
|
|
887
|
+
@timestamp = timestamp
|
|
888
|
+
@type = type
|
|
889
|
+
end
|
|
890
|
+
end
|
|
891
|
+
# Configure billing schedule differently for individual subscription items.
|
|
892
|
+
attr_accessor :applies_to
|
|
893
|
+
# The end date for the billing schedule.
|
|
894
|
+
attr_accessor :bill_until
|
|
895
|
+
# 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.
|
|
896
|
+
attr_accessor :key
|
|
897
|
+
|
|
898
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
899
|
+
@applies_to = applies_to
|
|
900
|
+
@bill_until = bill_until
|
|
901
|
+
@key = key
|
|
902
|
+
end
|
|
903
|
+
end
|
|
904
|
+
|
|
318
905
|
class Phase < ::Stripe::RequestParams
|
|
319
906
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
320
907
|
class Discount < ::Stripe::RequestParams
|
|
908
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
909
|
+
class Duration < ::Stripe::RequestParams
|
|
910
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
911
|
+
attr_accessor :interval
|
|
912
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
913
|
+
attr_accessor :interval_count
|
|
914
|
+
|
|
915
|
+
def initialize(interval: nil, interval_count: nil)
|
|
916
|
+
@interval = interval
|
|
917
|
+
@interval_count = interval_count
|
|
918
|
+
end
|
|
919
|
+
end
|
|
920
|
+
# Time span for the redeemed discount.
|
|
921
|
+
attr_accessor :duration
|
|
922
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
923
|
+
attr_accessor :timestamp
|
|
924
|
+
# The type of calculation made to determine when the discount ends.
|
|
925
|
+
attr_accessor :type
|
|
926
|
+
|
|
927
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
928
|
+
@duration = duration
|
|
929
|
+
@timestamp = timestamp
|
|
930
|
+
@type = type
|
|
931
|
+
end
|
|
932
|
+
end
|
|
321
933
|
# ID of the coupon to create a new discount for.
|
|
322
934
|
attr_accessor :coupon
|
|
323
935
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
324
936
|
attr_accessor :discount
|
|
937
|
+
# Details to determine how long the discount should be applied for.
|
|
938
|
+
attr_accessor :discount_end
|
|
325
939
|
# ID of the promotion code to create a new discount for.
|
|
326
940
|
attr_accessor :promotion_code
|
|
327
941
|
|
|
328
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
942
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
329
943
|
@coupon = coupon
|
|
330
944
|
@discount = discount
|
|
945
|
+
@discount_end = discount_end
|
|
331
946
|
@promotion_code = promotion_code
|
|
332
947
|
end
|
|
333
948
|
end
|
|
@@ -463,16 +1078,44 @@ module Stripe
|
|
|
463
1078
|
end
|
|
464
1079
|
|
|
465
1080
|
class Discount < ::Stripe::RequestParams
|
|
1081
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
1082
|
+
class Duration < ::Stripe::RequestParams
|
|
1083
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1084
|
+
attr_accessor :interval
|
|
1085
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1086
|
+
attr_accessor :interval_count
|
|
1087
|
+
|
|
1088
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1089
|
+
@interval = interval
|
|
1090
|
+
@interval_count = interval_count
|
|
1091
|
+
end
|
|
1092
|
+
end
|
|
1093
|
+
# Time span for the redeemed discount.
|
|
1094
|
+
attr_accessor :duration
|
|
1095
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1096
|
+
attr_accessor :timestamp
|
|
1097
|
+
# The type of calculation made to determine when the discount ends.
|
|
1098
|
+
attr_accessor :type
|
|
1099
|
+
|
|
1100
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1101
|
+
@duration = duration
|
|
1102
|
+
@timestamp = timestamp
|
|
1103
|
+
@type = type
|
|
1104
|
+
end
|
|
1105
|
+
end
|
|
466
1106
|
# ID of the coupon to create a new discount for.
|
|
467
1107
|
attr_accessor :coupon
|
|
468
1108
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
469
1109
|
attr_accessor :discount
|
|
1110
|
+
# Details to determine how long the discount should be applied for.
|
|
1111
|
+
attr_accessor :discount_end
|
|
470
1112
|
# ID of the promotion code to create a new discount for.
|
|
471
1113
|
attr_accessor :promotion_code
|
|
472
1114
|
|
|
473
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1115
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
474
1116
|
@coupon = coupon
|
|
475
1117
|
@discount = discount
|
|
1118
|
+
@discount_end = discount_end
|
|
476
1119
|
@promotion_code = promotion_code
|
|
477
1120
|
end
|
|
478
1121
|
end
|
|
@@ -526,16 +1169,44 @@ module Stripe
|
|
|
526
1169
|
end
|
|
527
1170
|
|
|
528
1171
|
class Discount < ::Stripe::RequestParams
|
|
1172
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
1173
|
+
class Duration < ::Stripe::RequestParams
|
|
1174
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1175
|
+
attr_accessor :interval
|
|
1176
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1177
|
+
attr_accessor :interval_count
|
|
1178
|
+
|
|
1179
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1180
|
+
@interval = interval
|
|
1181
|
+
@interval_count = interval_count
|
|
1182
|
+
end
|
|
1183
|
+
end
|
|
1184
|
+
# Time span for the redeemed discount.
|
|
1185
|
+
attr_accessor :duration
|
|
1186
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1187
|
+
attr_accessor :timestamp
|
|
1188
|
+
# The type of calculation made to determine when the discount ends.
|
|
1189
|
+
attr_accessor :type
|
|
1190
|
+
|
|
1191
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1192
|
+
@duration = duration
|
|
1193
|
+
@timestamp = timestamp
|
|
1194
|
+
@type = type
|
|
1195
|
+
end
|
|
1196
|
+
end
|
|
529
1197
|
# ID of the coupon to create a new discount for.
|
|
530
1198
|
attr_accessor :coupon
|
|
531
1199
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
532
1200
|
attr_accessor :discount
|
|
1201
|
+
# Details to determine how long the discount should be applied for.
|
|
1202
|
+
attr_accessor :discount_end
|
|
533
1203
|
# ID of the promotion code to create a new discount for.
|
|
534
1204
|
attr_accessor :promotion_code
|
|
535
1205
|
|
|
536
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1206
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
537
1207
|
@coupon = coupon
|
|
538
1208
|
@discount = discount
|
|
1209
|
+
@discount_end = discount_end
|
|
539
1210
|
@promotion_code = promotion_code
|
|
540
1211
|
end
|
|
541
1212
|
end
|
|
@@ -581,6 +1252,18 @@ module Stripe
|
|
|
581
1252
|
@unit_amount_decimal = unit_amount_decimal
|
|
582
1253
|
end
|
|
583
1254
|
end
|
|
1255
|
+
|
|
1256
|
+
class Trial < ::Stripe::RequestParams
|
|
1257
|
+
# 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.
|
|
1258
|
+
attr_accessor :converts_to
|
|
1259
|
+
# Determines the type of trial for this item.
|
|
1260
|
+
attr_accessor :type
|
|
1261
|
+
|
|
1262
|
+
def initialize(converts_to: nil, type: nil)
|
|
1263
|
+
@converts_to = converts_to
|
|
1264
|
+
@type = type
|
|
1265
|
+
end
|
|
1266
|
+
end
|
|
584
1267
|
# 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.
|
|
585
1268
|
attr_accessor :billing_thresholds
|
|
586
1269
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -597,6 +1280,8 @@ module Stripe
|
|
|
597
1280
|
attr_accessor :quantity
|
|
598
1281
|
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
599
1282
|
attr_accessor :tax_rates
|
|
1283
|
+
# Options that configure the trial on the subscription item.
|
|
1284
|
+
attr_accessor :trial
|
|
600
1285
|
|
|
601
1286
|
def initialize(
|
|
602
1287
|
billing_thresholds: nil,
|
|
@@ -606,7 +1291,8 @@ module Stripe
|
|
|
606
1291
|
price: nil,
|
|
607
1292
|
price_data: nil,
|
|
608
1293
|
quantity: nil,
|
|
609
|
-
tax_rates: nil
|
|
1294
|
+
tax_rates: nil,
|
|
1295
|
+
trial: nil
|
|
610
1296
|
)
|
|
611
1297
|
@billing_thresholds = billing_thresholds
|
|
612
1298
|
@discounts = discounts
|
|
@@ -616,6 +1302,16 @@ module Stripe
|
|
|
616
1302
|
@price_data = price_data
|
|
617
1303
|
@quantity = quantity
|
|
618
1304
|
@tax_rates = tax_rates
|
|
1305
|
+
@trial = trial
|
|
1306
|
+
end
|
|
1307
|
+
end
|
|
1308
|
+
|
|
1309
|
+
class PauseCollection < ::Stripe::RequestParams
|
|
1310
|
+
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
1311
|
+
attr_accessor :behavior
|
|
1312
|
+
|
|
1313
|
+
def initialize(behavior: nil)
|
|
1314
|
+
@behavior = behavior
|
|
619
1315
|
end
|
|
620
1316
|
end
|
|
621
1317
|
|
|
@@ -630,6 +1326,23 @@ module Stripe
|
|
|
630
1326
|
@destination = destination
|
|
631
1327
|
end
|
|
632
1328
|
end
|
|
1329
|
+
|
|
1330
|
+
class TrialSettings < ::Stripe::RequestParams
|
|
1331
|
+
class EndBehavior < ::Stripe::RequestParams
|
|
1332
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1333
|
+
attr_accessor :prorate_up_front
|
|
1334
|
+
|
|
1335
|
+
def initialize(prorate_up_front: nil)
|
|
1336
|
+
@prorate_up_front = prorate_up_front
|
|
1337
|
+
end
|
|
1338
|
+
end
|
|
1339
|
+
# Defines how the subscription should behave when a trial ends.
|
|
1340
|
+
attr_accessor :end_behavior
|
|
1341
|
+
|
|
1342
|
+
def initialize(end_behavior: nil)
|
|
1343
|
+
@end_behavior = end_behavior
|
|
1344
|
+
end
|
|
1345
|
+
end
|
|
633
1346
|
# 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.
|
|
634
1347
|
attr_accessor :add_invoice_items
|
|
635
1348
|
# 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).
|
|
@@ -664,6 +1377,8 @@ module Stripe
|
|
|
664
1377
|
attr_accessor :metadata
|
|
665
1378
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
666
1379
|
attr_accessor :on_behalf_of
|
|
1380
|
+
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
1381
|
+
attr_accessor :pause_collection
|
|
667
1382
|
# Controls whether the subscription schedule should create [prorations](https://stripe.com/docs/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://stripe.com/docs/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.
|
|
668
1383
|
attr_accessor :proration_behavior
|
|
669
1384
|
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
|
@@ -672,8 +1387,12 @@ module Stripe
|
|
|
672
1387
|
attr_accessor :transfer_data
|
|
673
1388
|
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
674
1389
|
attr_accessor :trial
|
|
1390
|
+
# Specify trial behavior when crossing phase boundaries
|
|
1391
|
+
attr_accessor :trial_continuation
|
|
675
1392
|
# 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`
|
|
676
1393
|
attr_accessor :trial_end
|
|
1394
|
+
# Settings related to subscription trials.
|
|
1395
|
+
attr_accessor :trial_settings
|
|
677
1396
|
|
|
678
1397
|
def initialize(
|
|
679
1398
|
add_invoice_items: nil,
|
|
@@ -693,11 +1412,14 @@ module Stripe
|
|
|
693
1412
|
items: nil,
|
|
694
1413
|
metadata: nil,
|
|
695
1414
|
on_behalf_of: nil,
|
|
1415
|
+
pause_collection: nil,
|
|
696
1416
|
proration_behavior: nil,
|
|
697
1417
|
start_date: nil,
|
|
698
1418
|
transfer_data: nil,
|
|
699
1419
|
trial: nil,
|
|
700
|
-
|
|
1420
|
+
trial_continuation: nil,
|
|
1421
|
+
trial_end: nil,
|
|
1422
|
+
trial_settings: nil
|
|
701
1423
|
)
|
|
702
1424
|
@add_invoice_items = add_invoice_items
|
|
703
1425
|
@application_fee_percent = application_fee_percent
|
|
@@ -716,27 +1438,100 @@ module Stripe
|
|
|
716
1438
|
@items = items
|
|
717
1439
|
@metadata = metadata
|
|
718
1440
|
@on_behalf_of = on_behalf_of
|
|
1441
|
+
@pause_collection = pause_collection
|
|
719
1442
|
@proration_behavior = proration_behavior
|
|
720
1443
|
@start_date = start_date
|
|
721
1444
|
@transfer_data = transfer_data
|
|
722
1445
|
@trial = trial
|
|
1446
|
+
@trial_continuation = trial_continuation
|
|
723
1447
|
@trial_end = trial_end
|
|
1448
|
+
@trial_settings = trial_settings
|
|
724
1449
|
end
|
|
725
1450
|
end
|
|
1451
|
+
|
|
1452
|
+
class Prebilling < ::Stripe::RequestParams
|
|
1453
|
+
class BillUntil < ::Stripe::RequestParams
|
|
1454
|
+
class AmendmentEnd < ::Stripe::RequestParams
|
|
1455
|
+
# 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.
|
|
1456
|
+
attr_accessor :index
|
|
1457
|
+
|
|
1458
|
+
def initialize(index: nil)
|
|
1459
|
+
@index = index
|
|
1460
|
+
end
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
class Duration < ::Stripe::RequestParams
|
|
1464
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1465
|
+
attr_accessor :interval
|
|
1466
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1467
|
+
attr_accessor :interval_count
|
|
1468
|
+
|
|
1469
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1470
|
+
@interval = interval
|
|
1471
|
+
@interval_count = interval_count
|
|
1472
|
+
end
|
|
1473
|
+
end
|
|
1474
|
+
# End the prebilled period when a specified amendment ends.
|
|
1475
|
+
attr_accessor :amendment_end
|
|
1476
|
+
# Time span for prebilling, starting from `bill_from`.
|
|
1477
|
+
attr_accessor :duration
|
|
1478
|
+
# End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
1479
|
+
attr_accessor :timestamp
|
|
1480
|
+
# Select one of several ways to pass the `bill_until` value.
|
|
1481
|
+
attr_accessor :type
|
|
1482
|
+
|
|
1483
|
+
def initialize(amendment_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
1484
|
+
@amendment_end = amendment_end
|
|
1485
|
+
@duration = duration
|
|
1486
|
+
@timestamp = timestamp
|
|
1487
|
+
@type = type
|
|
1488
|
+
end
|
|
1489
|
+
end
|
|
1490
|
+
# The end of the prebilled time period.
|
|
1491
|
+
attr_accessor :bill_until
|
|
1492
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
1493
|
+
attr_accessor :iterations
|
|
1494
|
+
|
|
1495
|
+
def initialize(bill_until: nil, iterations: nil)
|
|
1496
|
+
@bill_until = bill_until
|
|
1497
|
+
@iterations = iterations
|
|
1498
|
+
end
|
|
1499
|
+
end
|
|
1500
|
+
# Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
1501
|
+
attr_accessor :amendments
|
|
1502
|
+
# 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.
|
|
1503
|
+
attr_accessor :billing_behavior
|
|
726
1504
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
727
1505
|
attr_accessor :billing_mode
|
|
728
1506
|
# 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.
|
|
729
1507
|
attr_accessor :end_behavior
|
|
730
1508
|
# 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.
|
|
731
1509
|
attr_accessor :phases
|
|
1510
|
+
# Provide any time periods to bill in advance.
|
|
1511
|
+
attr_accessor :prebilling
|
|
732
1512
|
# In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
733
1513
|
attr_accessor :proration_behavior
|
|
1514
|
+
# Sets the billing schedules for the subscription schedule.
|
|
1515
|
+
attr_accessor :billing_schedules
|
|
734
1516
|
|
|
735
|
-
def initialize(
|
|
1517
|
+
def initialize(
|
|
1518
|
+
amendments: nil,
|
|
1519
|
+
billing_behavior: nil,
|
|
1520
|
+
billing_mode: nil,
|
|
1521
|
+
end_behavior: nil,
|
|
1522
|
+
phases: nil,
|
|
1523
|
+
prebilling: nil,
|
|
1524
|
+
proration_behavior: nil,
|
|
1525
|
+
billing_schedules: nil
|
|
1526
|
+
)
|
|
1527
|
+
@amendments = amendments
|
|
1528
|
+
@billing_behavior = billing_behavior
|
|
736
1529
|
@billing_mode = billing_mode
|
|
737
1530
|
@end_behavior = end_behavior
|
|
738
1531
|
@phases = phases
|
|
1532
|
+
@prebilling = prebilling
|
|
739
1533
|
@proration_behavior = proration_behavior
|
|
1534
|
+
@billing_schedules = billing_schedules
|
|
740
1535
|
end
|
|
741
1536
|
end
|
|
742
1537
|
|
|
@@ -761,6 +1556,58 @@ module Stripe
|
|
|
761
1556
|
end
|
|
762
1557
|
end
|
|
763
1558
|
|
|
1559
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
1560
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
1561
|
+
# The ID of the price object.
|
|
1562
|
+
attr_accessor :price
|
|
1563
|
+
# Controls which subscription items the billing schedule applies to.
|
|
1564
|
+
attr_accessor :type
|
|
1565
|
+
|
|
1566
|
+
def initialize(price: nil, type: nil)
|
|
1567
|
+
@price = price
|
|
1568
|
+
@type = type
|
|
1569
|
+
end
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1572
|
+
class BillUntil < ::Stripe::RequestParams
|
|
1573
|
+
class Duration < ::Stripe::RequestParams
|
|
1574
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
1575
|
+
attr_accessor :interval
|
|
1576
|
+
# The multiplier applied to the interval.
|
|
1577
|
+
attr_accessor :interval_count
|
|
1578
|
+
|
|
1579
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1580
|
+
@interval = interval
|
|
1581
|
+
@interval_count = interval_count
|
|
1582
|
+
end
|
|
1583
|
+
end
|
|
1584
|
+
# Specifies the billing period.
|
|
1585
|
+
attr_accessor :duration
|
|
1586
|
+
# The end date of the billing schedule.
|
|
1587
|
+
attr_accessor :timestamp
|
|
1588
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
1589
|
+
attr_accessor :type
|
|
1590
|
+
|
|
1591
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1592
|
+
@duration = duration
|
|
1593
|
+
@timestamp = timestamp
|
|
1594
|
+
@type = type
|
|
1595
|
+
end
|
|
1596
|
+
end
|
|
1597
|
+
# Configure billing schedule differently for individual subscription items.
|
|
1598
|
+
attr_accessor :applies_to
|
|
1599
|
+
# The end date for the billing schedule.
|
|
1600
|
+
attr_accessor :bill_until
|
|
1601
|
+
# 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.
|
|
1602
|
+
attr_accessor :key
|
|
1603
|
+
|
|
1604
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
1605
|
+
@applies_to = applies_to
|
|
1606
|
+
@bill_until = bill_until
|
|
1607
|
+
@key = key
|
|
1608
|
+
end
|
|
1609
|
+
end
|
|
1610
|
+
|
|
764
1611
|
class Item < ::Stripe::RequestParams
|
|
765
1612
|
class BillingThresholds < ::Stripe::RequestParams
|
|
766
1613
|
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
|
@@ -772,16 +1619,44 @@ module Stripe
|
|
|
772
1619
|
end
|
|
773
1620
|
|
|
774
1621
|
class Discount < ::Stripe::RequestParams
|
|
1622
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
1623
|
+
class Duration < ::Stripe::RequestParams
|
|
1624
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1625
|
+
attr_accessor :interval
|
|
1626
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1627
|
+
attr_accessor :interval_count
|
|
1628
|
+
|
|
1629
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1630
|
+
@interval = interval
|
|
1631
|
+
@interval_count = interval_count
|
|
1632
|
+
end
|
|
1633
|
+
end
|
|
1634
|
+
# Time span for the redeemed discount.
|
|
1635
|
+
attr_accessor :duration
|
|
1636
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1637
|
+
attr_accessor :timestamp
|
|
1638
|
+
# The type of calculation made to determine when the discount ends.
|
|
1639
|
+
attr_accessor :type
|
|
1640
|
+
|
|
1641
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1642
|
+
@duration = duration
|
|
1643
|
+
@timestamp = timestamp
|
|
1644
|
+
@type = type
|
|
1645
|
+
end
|
|
1646
|
+
end
|
|
775
1647
|
# ID of the coupon to create a new discount for.
|
|
776
1648
|
attr_accessor :coupon
|
|
777
1649
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
778
1650
|
attr_accessor :discount
|
|
1651
|
+
# Details to determine how long the discount should be applied for.
|
|
1652
|
+
attr_accessor :discount_end
|
|
779
1653
|
# ID of the promotion code to create a new discount for.
|
|
780
1654
|
attr_accessor :promotion_code
|
|
781
1655
|
|
|
782
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1656
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
783
1657
|
@coupon = coupon
|
|
784
1658
|
@discount = discount
|
|
1659
|
+
@discount_end = discount_end
|
|
785
1660
|
@promotion_code = promotion_code
|
|
786
1661
|
end
|
|
787
1662
|
end
|
|
@@ -876,10 +1751,21 @@ module Stripe
|
|
|
876
1751
|
@tax_rates = tax_rates
|
|
877
1752
|
end
|
|
878
1753
|
end
|
|
1754
|
+
|
|
1755
|
+
class Prebilling < ::Stripe::RequestParams
|
|
1756
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
1757
|
+
attr_accessor :iterations
|
|
1758
|
+
|
|
1759
|
+
def initialize(iterations: nil)
|
|
1760
|
+
@iterations = iterations
|
|
1761
|
+
end
|
|
1762
|
+
end
|
|
879
1763
|
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://stripe.com/docs/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`.
|
|
880
1764
|
attr_accessor :billing_cycle_anchor
|
|
881
1765
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
882
1766
|
attr_accessor :billing_mode
|
|
1767
|
+
# Sets the billing schedules for the subscription.
|
|
1768
|
+
attr_accessor :billing_schedules
|
|
883
1769
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
|
884
1770
|
attr_accessor :cancel_at
|
|
885
1771
|
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
|
@@ -890,6 +1776,8 @@ module Stripe
|
|
|
890
1776
|
attr_accessor :default_tax_rates
|
|
891
1777
|
# A list of up to 20 subscription items, each with an attached price.
|
|
892
1778
|
attr_accessor :items
|
|
1779
|
+
# The pre-billing to apply to the subscription as a preview.
|
|
1780
|
+
attr_accessor :prebilling
|
|
893
1781
|
# Determines how to handle [prorations](https://stripe.com/docs/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`.
|
|
894
1782
|
attr_accessor :proration_behavior
|
|
895
1783
|
# 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'.
|
|
@@ -904,11 +1792,13 @@ module Stripe
|
|
|
904
1792
|
def initialize(
|
|
905
1793
|
billing_cycle_anchor: nil,
|
|
906
1794
|
billing_mode: nil,
|
|
1795
|
+
billing_schedules: nil,
|
|
907
1796
|
cancel_at: nil,
|
|
908
1797
|
cancel_at_period_end: nil,
|
|
909
1798
|
cancel_now: nil,
|
|
910
1799
|
default_tax_rates: nil,
|
|
911
1800
|
items: nil,
|
|
1801
|
+
prebilling: nil,
|
|
912
1802
|
proration_behavior: nil,
|
|
913
1803
|
proration_date: nil,
|
|
914
1804
|
resume_at: nil,
|
|
@@ -917,11 +1807,13 @@ module Stripe
|
|
|
917
1807
|
)
|
|
918
1808
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
919
1809
|
@billing_mode = billing_mode
|
|
1810
|
+
@billing_schedules = billing_schedules
|
|
920
1811
|
@cancel_at = cancel_at
|
|
921
1812
|
@cancel_at_period_end = cancel_at_period_end
|
|
922
1813
|
@cancel_now = cancel_now
|
|
923
1814
|
@default_tax_rates = default_tax_rates
|
|
924
1815
|
@items = items
|
|
1816
|
+
@prebilling = prebilling
|
|
925
1817
|
@proration_behavior = proration_behavior
|
|
926
1818
|
@proration_date = proration_date
|
|
927
1819
|
@resume_at = resume_at
|
|
@@ -931,10 +1823,14 @@ module Stripe
|
|
|
931
1823
|
end
|
|
932
1824
|
# Settings for automatic tax lookup for this invoice preview.
|
|
933
1825
|
attr_accessor :automatic_tax
|
|
1826
|
+
# 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.
|
|
1827
|
+
attr_accessor :billing_cadence
|
|
934
1828
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
935
1829
|
attr_accessor :currency
|
|
936
1830
|
# The identifier of the customer whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
937
1831
|
attr_accessor :customer
|
|
1832
|
+
# The identifier of the account whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_account`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
1833
|
+
attr_accessor :customer_account
|
|
938
1834
|
# Details about the customer you want to invoice or overrides for an existing customer. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
939
1835
|
attr_accessor :customer_details
|
|
940
1836
|
# The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.
|
|
@@ -960,8 +1856,10 @@ module Stripe
|
|
|
960
1856
|
|
|
961
1857
|
def initialize(
|
|
962
1858
|
automatic_tax: nil,
|
|
1859
|
+
billing_cadence: nil,
|
|
963
1860
|
currency: nil,
|
|
964
1861
|
customer: nil,
|
|
1862
|
+
customer_account: nil,
|
|
965
1863
|
customer_details: nil,
|
|
966
1864
|
discounts: nil,
|
|
967
1865
|
expand: nil,
|
|
@@ -975,8 +1873,10 @@ module Stripe
|
|
|
975
1873
|
subscription_details: nil
|
|
976
1874
|
)
|
|
977
1875
|
@automatic_tax = automatic_tax
|
|
1876
|
+
@billing_cadence = billing_cadence
|
|
978
1877
|
@currency = currency
|
|
979
1878
|
@customer = customer
|
|
1879
|
+
@customer_account = customer_account
|
|
980
1880
|
@customer_details = customer_details
|
|
981
1881
|
@discounts = discounts
|
|
982
1882
|
@expand = expand
|