stripe 17.2.0 → 17.3.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +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 +334 -3
- 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 +33 -1
- data/lib/stripe/params/account_person_update_params.rb +33 -1
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +296 -2
- 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 +709 -0
- data/lib/stripe/params/charge_update_params.rb +709 -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 +37 -3
- 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 +882 -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 +1124 -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 +1128 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +736 -30
- data/lib/stripe/params/payment_intent_confirm_params.rb +1250 -47
- data/lib/stripe/params/payment_intent_create_params.rb +1254 -43
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +63 -29
- 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 +1286 -44
- 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_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 +1014 -4
- 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/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 +570 -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/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_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 +22 -9
- data/lib/stripe/params/terminal/configuration_update_params.rb +22 -9
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -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 +66 -2
- data/lib/stripe/params/transfer_create_params.rb +9 -1
- 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/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 +252 -0
- data/lib/stripe/resources/account.rb +167 -2
- 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/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 +169 -2
- 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 +840 -23
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -13
- 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/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/association.rb +86 -0
- 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/onboarding_link.rb +71 -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/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/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -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 +9 -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 +156568 -83268
- metadata +737 -4
|
@@ -27,16 +27,44 @@ module Stripe
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
class Discount < ::Stripe::RequestParams
|
|
30
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
31
|
+
class Duration < ::Stripe::RequestParams
|
|
32
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
33
|
+
attr_accessor :interval
|
|
34
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
35
|
+
attr_accessor :interval_count
|
|
36
|
+
|
|
37
|
+
def initialize(interval: nil, interval_count: nil)
|
|
38
|
+
@interval = interval
|
|
39
|
+
@interval_count = interval_count
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Time span for the redeemed discount.
|
|
43
|
+
attr_accessor :duration
|
|
44
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
45
|
+
attr_accessor :timestamp
|
|
46
|
+
# The type of calculation made to determine when the discount ends.
|
|
47
|
+
attr_accessor :type
|
|
48
|
+
|
|
49
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
50
|
+
@duration = duration
|
|
51
|
+
@timestamp = timestamp
|
|
52
|
+
@type = type
|
|
53
|
+
end
|
|
54
|
+
end
|
|
30
55
|
# ID of the coupon to create a new discount for.
|
|
31
56
|
attr_accessor :coupon
|
|
32
57
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
33
58
|
attr_accessor :discount
|
|
59
|
+
# Details to determine how long the discount should be applied for.
|
|
60
|
+
attr_accessor :discount_end
|
|
34
61
|
# ID of the promotion code to create a new discount for.
|
|
35
62
|
attr_accessor :promotion_code
|
|
36
63
|
|
|
37
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
64
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
38
65
|
@coupon = coupon
|
|
39
66
|
@discount = discount
|
|
67
|
+
@discount_end = discount_end
|
|
40
68
|
@promotion_code = promotion_code
|
|
41
69
|
end
|
|
42
70
|
end
|
|
@@ -64,18 +92,529 @@ module Stripe
|
|
|
64
92
|
end
|
|
65
93
|
end
|
|
66
94
|
|
|
95
|
+
class Line < ::Stripe::RequestParams
|
|
96
|
+
class Action < ::Stripe::RequestParams
|
|
97
|
+
class AddDiscount < ::Stripe::RequestParams
|
|
98
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
99
|
+
# The type of calculation made to determine when the discount ends.
|
|
100
|
+
attr_accessor :type
|
|
101
|
+
|
|
102
|
+
def initialize(type: nil)
|
|
103
|
+
@type = type
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
# The coupon code to redeem.
|
|
107
|
+
attr_accessor :coupon
|
|
108
|
+
# An ID of an existing discount for a coupon that was already redeemed.
|
|
109
|
+
attr_accessor :discount
|
|
110
|
+
# Details to determine how long the discount should be applied for.
|
|
111
|
+
attr_accessor :discount_end
|
|
112
|
+
# 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.
|
|
113
|
+
attr_accessor :index
|
|
114
|
+
# The promotion code to redeem.
|
|
115
|
+
attr_accessor :promotion_code
|
|
116
|
+
|
|
117
|
+
def initialize(
|
|
118
|
+
coupon: nil,
|
|
119
|
+
discount: nil,
|
|
120
|
+
discount_end: nil,
|
|
121
|
+
index: nil,
|
|
122
|
+
promotion_code: nil
|
|
123
|
+
)
|
|
124
|
+
@coupon = coupon
|
|
125
|
+
@discount = discount
|
|
126
|
+
@discount_end = discount_end
|
|
127
|
+
@index = index
|
|
128
|
+
@promotion_code = promotion_code
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
class AddItem < ::Stripe::RequestParams
|
|
133
|
+
class Discount < ::Stripe::RequestParams
|
|
134
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
135
|
+
class Duration < ::Stripe::RequestParams
|
|
136
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
137
|
+
attr_accessor :interval
|
|
138
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
139
|
+
attr_accessor :interval_count
|
|
140
|
+
|
|
141
|
+
def initialize(interval: nil, interval_count: nil)
|
|
142
|
+
@interval = interval
|
|
143
|
+
@interval_count = interval_count
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
# Time span for the redeemed discount.
|
|
147
|
+
attr_accessor :duration
|
|
148
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
149
|
+
attr_accessor :timestamp
|
|
150
|
+
# The type of calculation made to determine when the discount ends.
|
|
151
|
+
attr_accessor :type
|
|
152
|
+
|
|
153
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
154
|
+
@duration = duration
|
|
155
|
+
@timestamp = timestamp
|
|
156
|
+
@type = type
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
# ID of the coupon to create a new discount for.
|
|
160
|
+
attr_accessor :coupon
|
|
161
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
162
|
+
attr_accessor :discount
|
|
163
|
+
# Details to determine how long the discount should be applied for.
|
|
164
|
+
attr_accessor :discount_end
|
|
165
|
+
# ID of the promotion code to create a new discount for.
|
|
166
|
+
attr_accessor :promotion_code
|
|
167
|
+
|
|
168
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
169
|
+
@coupon = coupon
|
|
170
|
+
@discount = discount
|
|
171
|
+
@discount_end = discount_end
|
|
172
|
+
@promotion_code = promotion_code
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
class Trial < ::Stripe::RequestParams
|
|
177
|
+
# 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.
|
|
178
|
+
attr_accessor :converts_to
|
|
179
|
+
# Determines the type of trial for this item.
|
|
180
|
+
attr_accessor :type
|
|
181
|
+
|
|
182
|
+
def initialize(converts_to: nil, type: nil)
|
|
183
|
+
@converts_to = converts_to
|
|
184
|
+
@type = type
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
# The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
188
|
+
attr_accessor :discounts
|
|
189
|
+
# 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`.
|
|
190
|
+
attr_accessor :metadata
|
|
191
|
+
# The ID of the price object.
|
|
192
|
+
attr_accessor :price
|
|
193
|
+
# Quantity for this item.
|
|
194
|
+
attr_accessor :quantity
|
|
195
|
+
# 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`.
|
|
196
|
+
attr_accessor :tax_rates
|
|
197
|
+
# Options that configure the trial on the subscription item.
|
|
198
|
+
attr_accessor :trial
|
|
199
|
+
|
|
200
|
+
def initialize(
|
|
201
|
+
discounts: nil,
|
|
202
|
+
metadata: nil,
|
|
203
|
+
price: nil,
|
|
204
|
+
quantity: nil,
|
|
205
|
+
tax_rates: nil,
|
|
206
|
+
trial: nil
|
|
207
|
+
)
|
|
208
|
+
@discounts = discounts
|
|
209
|
+
@metadata = metadata
|
|
210
|
+
@price = price
|
|
211
|
+
@quantity = quantity
|
|
212
|
+
@tax_rates = tax_rates
|
|
213
|
+
@trial = trial
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
class RemoveDiscount < ::Stripe::RequestParams
|
|
218
|
+
# The coupon code to remove from the `discounts` array.
|
|
219
|
+
attr_accessor :coupon
|
|
220
|
+
# The ID of a discount to remove from the `discounts` array.
|
|
221
|
+
attr_accessor :discount
|
|
222
|
+
# The ID of a promotion code to remove from the `discounts` array.
|
|
223
|
+
attr_accessor :promotion_code
|
|
224
|
+
|
|
225
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
226
|
+
@coupon = coupon
|
|
227
|
+
@discount = discount
|
|
228
|
+
@promotion_code = promotion_code
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
class RemoveItem < ::Stripe::RequestParams
|
|
233
|
+
# ID of a price to remove.
|
|
234
|
+
attr_accessor :price
|
|
235
|
+
|
|
236
|
+
def initialize(price: nil)
|
|
237
|
+
@price = price
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
class SetDiscount < ::Stripe::RequestParams
|
|
242
|
+
# The coupon code to replace the `discounts` array with.
|
|
243
|
+
attr_accessor :coupon
|
|
244
|
+
# An ID of an existing discount to replace the `discounts` array with.
|
|
245
|
+
attr_accessor :discount
|
|
246
|
+
# An ID of an existing promotion code to replace the `discounts` array with.
|
|
247
|
+
attr_accessor :promotion_code
|
|
248
|
+
|
|
249
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
250
|
+
@coupon = coupon
|
|
251
|
+
@discount = discount
|
|
252
|
+
@promotion_code = promotion_code
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
class SetItem < ::Stripe::RequestParams
|
|
257
|
+
class Discount < ::Stripe::RequestParams
|
|
258
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
259
|
+
class Duration < ::Stripe::RequestParams
|
|
260
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
261
|
+
attr_accessor :interval
|
|
262
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
263
|
+
attr_accessor :interval_count
|
|
264
|
+
|
|
265
|
+
def initialize(interval: nil, interval_count: nil)
|
|
266
|
+
@interval = interval
|
|
267
|
+
@interval_count = interval_count
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
# Time span for the redeemed discount.
|
|
271
|
+
attr_accessor :duration
|
|
272
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
273
|
+
attr_accessor :timestamp
|
|
274
|
+
# The type of calculation made to determine when the discount ends.
|
|
275
|
+
attr_accessor :type
|
|
276
|
+
|
|
277
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
278
|
+
@duration = duration
|
|
279
|
+
@timestamp = timestamp
|
|
280
|
+
@type = type
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
# ID of the coupon to create a new discount for.
|
|
284
|
+
attr_accessor :coupon
|
|
285
|
+
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
286
|
+
attr_accessor :discount
|
|
287
|
+
# Details to determine how long the discount should be applied for.
|
|
288
|
+
attr_accessor :discount_end
|
|
289
|
+
# ID of the promotion code to create a new discount for.
|
|
290
|
+
attr_accessor :promotion_code
|
|
291
|
+
|
|
292
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
293
|
+
@coupon = coupon
|
|
294
|
+
@discount = discount
|
|
295
|
+
@discount_end = discount_end
|
|
296
|
+
@promotion_code = promotion_code
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
class Trial < ::Stripe::RequestParams
|
|
301
|
+
# 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.
|
|
302
|
+
attr_accessor :converts_to
|
|
303
|
+
# Determines the type of trial for this item.
|
|
304
|
+
attr_accessor :type
|
|
305
|
+
|
|
306
|
+
def initialize(converts_to: nil, type: nil)
|
|
307
|
+
@converts_to = converts_to
|
|
308
|
+
@type = type
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
# 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`.
|
|
312
|
+
attr_accessor :discounts
|
|
313
|
+
# 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`.
|
|
314
|
+
attr_accessor :metadata
|
|
315
|
+
# The ID of the price object.
|
|
316
|
+
attr_accessor :price
|
|
317
|
+
# 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`.
|
|
318
|
+
attr_accessor :quantity
|
|
319
|
+
# 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`.
|
|
320
|
+
attr_accessor :tax_rates
|
|
321
|
+
# 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`.
|
|
322
|
+
attr_accessor :trial
|
|
323
|
+
|
|
324
|
+
def initialize(
|
|
325
|
+
discounts: nil,
|
|
326
|
+
metadata: nil,
|
|
327
|
+
price: nil,
|
|
328
|
+
quantity: nil,
|
|
329
|
+
tax_rates: nil,
|
|
330
|
+
trial: nil
|
|
331
|
+
)
|
|
332
|
+
@discounts = discounts
|
|
333
|
+
@metadata = metadata
|
|
334
|
+
@price = price
|
|
335
|
+
@quantity = quantity
|
|
336
|
+
@tax_rates = tax_rates
|
|
337
|
+
@trial = trial
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
# Details for the `add_discount` type.
|
|
341
|
+
attr_accessor :add_discount
|
|
342
|
+
# Details for the `add_item` type.
|
|
343
|
+
attr_accessor :add_item
|
|
344
|
+
# Details for the `add_metadata` type: specify a hash of key-value pairs.
|
|
345
|
+
attr_accessor :add_metadata
|
|
346
|
+
# Details for the `remove_discount` type.
|
|
347
|
+
attr_accessor :remove_discount
|
|
348
|
+
# Details for the `remove_item` type.
|
|
349
|
+
attr_accessor :remove_item
|
|
350
|
+
# Details for the `remove_metadata` type: specify an array of metadata keys.
|
|
351
|
+
attr_accessor :remove_metadata
|
|
352
|
+
# Details for the `set_discounts` type.
|
|
353
|
+
attr_accessor :set_discounts
|
|
354
|
+
# Details for the `set_items` type.
|
|
355
|
+
attr_accessor :set_items
|
|
356
|
+
# Details for the `set_metadata` type: specify an array of key-value pairs.
|
|
357
|
+
attr_accessor :set_metadata
|
|
358
|
+
# The type of action the quote line performs.
|
|
359
|
+
attr_accessor :type
|
|
360
|
+
|
|
361
|
+
def initialize(
|
|
362
|
+
add_discount: nil,
|
|
363
|
+
add_item: nil,
|
|
364
|
+
add_metadata: nil,
|
|
365
|
+
remove_discount: nil,
|
|
366
|
+
remove_item: nil,
|
|
367
|
+
remove_metadata: nil,
|
|
368
|
+
set_discounts: nil,
|
|
369
|
+
set_items: nil,
|
|
370
|
+
set_metadata: nil,
|
|
371
|
+
type: nil
|
|
372
|
+
)
|
|
373
|
+
@add_discount = add_discount
|
|
374
|
+
@add_item = add_item
|
|
375
|
+
@add_metadata = add_metadata
|
|
376
|
+
@remove_discount = remove_discount
|
|
377
|
+
@remove_item = remove_item
|
|
378
|
+
@remove_metadata = remove_metadata
|
|
379
|
+
@set_discounts = set_discounts
|
|
380
|
+
@set_items = set_items
|
|
381
|
+
@set_metadata = set_metadata
|
|
382
|
+
@type = type
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
387
|
+
# A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
|
388
|
+
attr_accessor :new_reference
|
|
389
|
+
# The ID of the schedule the line applies to.
|
|
390
|
+
attr_accessor :subscription_schedule
|
|
391
|
+
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
|
392
|
+
attr_accessor :type
|
|
393
|
+
|
|
394
|
+
def initialize(new_reference: nil, subscription_schedule: nil, type: nil)
|
|
395
|
+
@new_reference = new_reference
|
|
396
|
+
@subscription_schedule = subscription_schedule
|
|
397
|
+
@type = type
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
class CancelSubscriptionSchedule < ::Stripe::RequestParams
|
|
402
|
+
# Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
|
|
403
|
+
attr_accessor :cancel_at
|
|
404
|
+
# If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
|
|
405
|
+
attr_accessor :invoice_now
|
|
406
|
+
# If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
|
|
407
|
+
attr_accessor :prorate
|
|
408
|
+
|
|
409
|
+
def initialize(cancel_at: nil, invoice_now: nil, prorate: nil)
|
|
410
|
+
@cancel_at = cancel_at
|
|
411
|
+
@invoice_now = invoice_now
|
|
412
|
+
@prorate = prorate
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
class EndsAt < ::Stripe::RequestParams
|
|
417
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
418
|
+
# The ID of a specific discount.
|
|
419
|
+
attr_accessor :discount
|
|
420
|
+
|
|
421
|
+
def initialize(discount: nil)
|
|
422
|
+
@discount = discount
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
class Duration < ::Stripe::RequestParams
|
|
427
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
428
|
+
attr_accessor :interval
|
|
429
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
430
|
+
attr_accessor :interval_count
|
|
431
|
+
|
|
432
|
+
def initialize(interval: nil, interval_count: nil)
|
|
433
|
+
@interval = interval
|
|
434
|
+
@interval_count = interval_count
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
# Use the `end` time of a given discount.
|
|
438
|
+
attr_accessor :discount_end
|
|
439
|
+
# Time span for the quote line starting from the `starts_at` date.
|
|
440
|
+
attr_accessor :duration
|
|
441
|
+
# A precise Unix timestamp.
|
|
442
|
+
attr_accessor :timestamp
|
|
443
|
+
# Select a way to pass in `ends_at`.
|
|
444
|
+
attr_accessor :type
|
|
445
|
+
|
|
446
|
+
def initialize(discount_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
447
|
+
@discount_end = discount_end
|
|
448
|
+
@duration = duration
|
|
449
|
+
@timestamp = timestamp
|
|
450
|
+
@type = type
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
class SetPauseCollection < ::Stripe::RequestParams
|
|
455
|
+
class Set < ::Stripe::RequestParams
|
|
456
|
+
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
457
|
+
attr_accessor :behavior
|
|
458
|
+
|
|
459
|
+
def initialize(behavior: nil)
|
|
460
|
+
@behavior = behavior
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
# Details of the pause_collection behavior to apply to the amendment.
|
|
464
|
+
attr_accessor :set
|
|
465
|
+
# Determines the type of the pause_collection amendment.
|
|
466
|
+
attr_accessor :type
|
|
467
|
+
|
|
468
|
+
def initialize(set: nil, type: nil)
|
|
469
|
+
@set = set
|
|
470
|
+
@type = type
|
|
471
|
+
end
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
class StartsAt < ::Stripe::RequestParams
|
|
475
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
476
|
+
# The ID of a specific discount.
|
|
477
|
+
attr_accessor :discount
|
|
478
|
+
|
|
479
|
+
def initialize(discount: nil)
|
|
480
|
+
@discount = discount
|
|
481
|
+
end
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
class LineEndsAt < ::Stripe::RequestParams
|
|
485
|
+
# The ID of a quote line.
|
|
486
|
+
attr_accessor :id
|
|
487
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
488
|
+
attr_accessor :index
|
|
489
|
+
|
|
490
|
+
def initialize(id: nil, index: nil)
|
|
491
|
+
@id = id
|
|
492
|
+
@index = index
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
# Use the `end` time of a given discount.
|
|
496
|
+
attr_accessor :discount_end
|
|
497
|
+
# The timestamp the given line ends at.
|
|
498
|
+
attr_accessor :line_ends_at
|
|
499
|
+
# A precise Unix timestamp.
|
|
500
|
+
attr_accessor :timestamp
|
|
501
|
+
# Select a way to pass in `starts_at`.
|
|
502
|
+
attr_accessor :type
|
|
503
|
+
|
|
504
|
+
def initialize(discount_end: nil, line_ends_at: nil, timestamp: nil, type: nil)
|
|
505
|
+
@discount_end = discount_end
|
|
506
|
+
@line_ends_at = line_ends_at
|
|
507
|
+
@timestamp = timestamp
|
|
508
|
+
@type = type
|
|
509
|
+
end
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
class TrialSettings < ::Stripe::RequestParams
|
|
513
|
+
class EndBehavior < ::Stripe::RequestParams
|
|
514
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
515
|
+
attr_accessor :prorate_up_front
|
|
516
|
+
|
|
517
|
+
def initialize(prorate_up_front: nil)
|
|
518
|
+
@prorate_up_front = prorate_up_front
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
# Defines how the subscription should behave when a trial ends.
|
|
522
|
+
attr_accessor :end_behavior
|
|
523
|
+
|
|
524
|
+
def initialize(end_behavior: nil)
|
|
525
|
+
@end_behavior = end_behavior
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
# An array of operations the quote line performs.
|
|
529
|
+
attr_accessor :actions
|
|
530
|
+
# Details to identify the subscription schedule the quote line applies to.
|
|
531
|
+
attr_accessor :applies_to
|
|
532
|
+
# For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
|
|
533
|
+
attr_accessor :billing_cycle_anchor
|
|
534
|
+
# A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
|
|
535
|
+
attr_accessor :cancel_subscription_schedule
|
|
536
|
+
# Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
|
|
537
|
+
attr_accessor :ends_at
|
|
538
|
+
# The ID of an existing line on the quote.
|
|
539
|
+
attr_accessor :id
|
|
540
|
+
# Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
|
|
541
|
+
attr_accessor :proration_behavior
|
|
542
|
+
# Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
543
|
+
attr_accessor :set_pause_collection
|
|
544
|
+
# Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
|
|
545
|
+
attr_accessor :set_schedule_end
|
|
546
|
+
# Details to identify the earliest timestamp where the proposed change should take effect.
|
|
547
|
+
attr_accessor :starts_at
|
|
548
|
+
# Settings related to subscription trials.
|
|
549
|
+
attr_accessor :trial_settings
|
|
550
|
+
|
|
551
|
+
def initialize(
|
|
552
|
+
actions: nil,
|
|
553
|
+
applies_to: nil,
|
|
554
|
+
billing_cycle_anchor: nil,
|
|
555
|
+
cancel_subscription_schedule: nil,
|
|
556
|
+
ends_at: nil,
|
|
557
|
+
id: nil,
|
|
558
|
+
proration_behavior: nil,
|
|
559
|
+
set_pause_collection: nil,
|
|
560
|
+
set_schedule_end: nil,
|
|
561
|
+
starts_at: nil,
|
|
562
|
+
trial_settings: nil
|
|
563
|
+
)
|
|
564
|
+
@actions = actions
|
|
565
|
+
@applies_to = applies_to
|
|
566
|
+
@billing_cycle_anchor = billing_cycle_anchor
|
|
567
|
+
@cancel_subscription_schedule = cancel_subscription_schedule
|
|
568
|
+
@ends_at = ends_at
|
|
569
|
+
@id = id
|
|
570
|
+
@proration_behavior = proration_behavior
|
|
571
|
+
@set_pause_collection = set_pause_collection
|
|
572
|
+
@set_schedule_end = set_schedule_end
|
|
573
|
+
@starts_at = starts_at
|
|
574
|
+
@trial_settings = trial_settings
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
|
|
67
578
|
class LineItem < ::Stripe::RequestParams
|
|
68
579
|
class Discount < ::Stripe::RequestParams
|
|
580
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
581
|
+
class Duration < ::Stripe::RequestParams
|
|
582
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
583
|
+
attr_accessor :interval
|
|
584
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
585
|
+
attr_accessor :interval_count
|
|
586
|
+
|
|
587
|
+
def initialize(interval: nil, interval_count: nil)
|
|
588
|
+
@interval = interval
|
|
589
|
+
@interval_count = interval_count
|
|
590
|
+
end
|
|
591
|
+
end
|
|
592
|
+
# Time span for the redeemed discount.
|
|
593
|
+
attr_accessor :duration
|
|
594
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
595
|
+
attr_accessor :timestamp
|
|
596
|
+
# The type of calculation made to determine when the discount ends.
|
|
597
|
+
attr_accessor :type
|
|
598
|
+
|
|
599
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
600
|
+
@duration = duration
|
|
601
|
+
@timestamp = timestamp
|
|
602
|
+
@type = type
|
|
603
|
+
end
|
|
604
|
+
end
|
|
69
605
|
# ID of the coupon to create a new discount for.
|
|
70
606
|
attr_accessor :coupon
|
|
71
607
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
72
608
|
attr_accessor :discount
|
|
609
|
+
# Details to determine how long the discount should be applied for.
|
|
610
|
+
attr_accessor :discount_end
|
|
73
611
|
# ID of the promotion code to create a new discount for.
|
|
74
612
|
attr_accessor :promotion_code
|
|
75
613
|
|
|
76
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
614
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
77
615
|
@coupon = coupon
|
|
78
616
|
@discount = discount
|
|
617
|
+
@discount_end = discount_end
|
|
79
618
|
@promotion_code = promotion_code
|
|
80
619
|
end
|
|
81
620
|
end
|
|
@@ -152,20 +691,482 @@ module Stripe
|
|
|
152
691
|
end
|
|
153
692
|
|
|
154
693
|
class SubscriptionData < ::Stripe::RequestParams
|
|
694
|
+
class BillOnAcceptance < ::Stripe::RequestParams
|
|
695
|
+
class BillFrom < ::Stripe::RequestParams
|
|
696
|
+
class LineStartsAt < ::Stripe::RequestParams
|
|
697
|
+
# The ID of a quote line.
|
|
698
|
+
attr_accessor :id
|
|
699
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
700
|
+
attr_accessor :index
|
|
701
|
+
|
|
702
|
+
def initialize(id: nil, index: nil)
|
|
703
|
+
@id = id
|
|
704
|
+
@index = index
|
|
705
|
+
end
|
|
706
|
+
end
|
|
707
|
+
# Details of a Quote line to start the bill period from.
|
|
708
|
+
attr_accessor :line_starts_at
|
|
709
|
+
# A precise Unix timestamp.
|
|
710
|
+
attr_accessor :timestamp
|
|
711
|
+
# The type of method to specify the `bill_from` time.
|
|
712
|
+
attr_accessor :type
|
|
713
|
+
|
|
714
|
+
def initialize(line_starts_at: nil, timestamp: nil, type: nil)
|
|
715
|
+
@line_starts_at = line_starts_at
|
|
716
|
+
@timestamp = timestamp
|
|
717
|
+
@type = type
|
|
718
|
+
end
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
class BillUntil < ::Stripe::RequestParams
|
|
722
|
+
class Duration < ::Stripe::RequestParams
|
|
723
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
724
|
+
attr_accessor :interval
|
|
725
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
726
|
+
attr_accessor :interval_count
|
|
727
|
+
|
|
728
|
+
def initialize(interval: nil, interval_count: nil)
|
|
729
|
+
@interval = interval
|
|
730
|
+
@interval_count = interval_count
|
|
731
|
+
end
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
class LineEndsAt < ::Stripe::RequestParams
|
|
735
|
+
# The ID of a quote line.
|
|
736
|
+
attr_accessor :id
|
|
737
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
738
|
+
attr_accessor :index
|
|
739
|
+
|
|
740
|
+
def initialize(id: nil, index: nil)
|
|
741
|
+
@id = id
|
|
742
|
+
@index = index
|
|
743
|
+
end
|
|
744
|
+
end
|
|
745
|
+
# Details of the duration over which to bill.
|
|
746
|
+
attr_accessor :duration
|
|
747
|
+
# Details of a Quote line item from which to bill until.
|
|
748
|
+
attr_accessor :line_ends_at
|
|
749
|
+
# A precise Unix timestamp.
|
|
750
|
+
attr_accessor :timestamp
|
|
751
|
+
# The type of method to specify the `bill_until` time.
|
|
752
|
+
attr_accessor :type
|
|
753
|
+
|
|
754
|
+
def initialize(duration: nil, line_ends_at: nil, timestamp: nil, type: nil)
|
|
755
|
+
@duration = duration
|
|
756
|
+
@line_ends_at = line_ends_at
|
|
757
|
+
@timestamp = timestamp
|
|
758
|
+
@type = type
|
|
759
|
+
end
|
|
760
|
+
end
|
|
761
|
+
# The start of the period to bill from when the Quote is accepted.
|
|
762
|
+
attr_accessor :bill_from
|
|
763
|
+
# The end of the period to bill until when the Quote is accepted.
|
|
764
|
+
attr_accessor :bill_until
|
|
765
|
+
|
|
766
|
+
def initialize(bill_from: nil, bill_until: nil)
|
|
767
|
+
@bill_from = bill_from
|
|
768
|
+
@bill_until = bill_until
|
|
769
|
+
end
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
773
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
774
|
+
# The ID of the price object.
|
|
775
|
+
attr_accessor :price
|
|
776
|
+
# Controls which subscription items the billing schedule applies to.
|
|
777
|
+
attr_accessor :type
|
|
778
|
+
|
|
779
|
+
def initialize(price: nil, type: nil)
|
|
780
|
+
@price = price
|
|
781
|
+
@type = type
|
|
782
|
+
end
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
class BillFrom < ::Stripe::RequestParams
|
|
786
|
+
class LineStartsAt < ::Stripe::RequestParams
|
|
787
|
+
# The ID of a quote line.
|
|
788
|
+
attr_accessor :id
|
|
789
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
790
|
+
attr_accessor :index
|
|
791
|
+
|
|
792
|
+
def initialize(id: nil, index: nil)
|
|
793
|
+
@id = id
|
|
794
|
+
@index = index
|
|
795
|
+
end
|
|
796
|
+
end
|
|
797
|
+
# Details of a Quote line to start the bill period from.
|
|
798
|
+
attr_accessor :line_starts_at
|
|
799
|
+
# A precise Unix timestamp.
|
|
800
|
+
attr_accessor :timestamp
|
|
801
|
+
# The type of method to specify the `bill_from` time.
|
|
802
|
+
attr_accessor :type
|
|
803
|
+
|
|
804
|
+
def initialize(line_starts_at: nil, timestamp: nil, type: nil)
|
|
805
|
+
@line_starts_at = line_starts_at
|
|
806
|
+
@timestamp = timestamp
|
|
807
|
+
@type = type
|
|
808
|
+
end
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
class BillUntil < ::Stripe::RequestParams
|
|
812
|
+
class Duration < ::Stripe::RequestParams
|
|
813
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
814
|
+
attr_accessor :interval
|
|
815
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
816
|
+
attr_accessor :interval_count
|
|
817
|
+
|
|
818
|
+
def initialize(interval: nil, interval_count: nil)
|
|
819
|
+
@interval = interval
|
|
820
|
+
@interval_count = interval_count
|
|
821
|
+
end
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
class LineEndsAt < ::Stripe::RequestParams
|
|
825
|
+
# The ID of a quote line.
|
|
826
|
+
attr_accessor :id
|
|
827
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
828
|
+
attr_accessor :index
|
|
829
|
+
|
|
830
|
+
def initialize(id: nil, index: nil)
|
|
831
|
+
@id = id
|
|
832
|
+
@index = index
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
# Details of the duration over which to bill.
|
|
836
|
+
attr_accessor :duration
|
|
837
|
+
# Details of a Quote line item from which to bill until.
|
|
838
|
+
attr_accessor :line_ends_at
|
|
839
|
+
# A precise Unix timestamp.
|
|
840
|
+
attr_accessor :timestamp
|
|
841
|
+
# The type of method to specify the `bill_until` time.
|
|
842
|
+
attr_accessor :type
|
|
843
|
+
|
|
844
|
+
def initialize(duration: nil, line_ends_at: nil, timestamp: nil, type: nil)
|
|
845
|
+
@duration = duration
|
|
846
|
+
@line_ends_at = line_ends_at
|
|
847
|
+
@timestamp = timestamp
|
|
848
|
+
@type = type
|
|
849
|
+
end
|
|
850
|
+
end
|
|
851
|
+
# Configure billing schedule differently for individual subscription items.
|
|
852
|
+
attr_accessor :applies_to
|
|
853
|
+
# The start of the period to bill from when the Quote is accepted.
|
|
854
|
+
attr_accessor :bill_from
|
|
855
|
+
# The end of the period to bill until when the Quote is accepted.
|
|
856
|
+
attr_accessor :bill_until
|
|
857
|
+
# 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.
|
|
858
|
+
attr_accessor :key
|
|
859
|
+
|
|
860
|
+
def initialize(applies_to: nil, bill_from: nil, bill_until: nil, key: nil)
|
|
861
|
+
@applies_to = applies_to
|
|
862
|
+
@bill_from = bill_from
|
|
863
|
+
@bill_until = bill_until
|
|
864
|
+
@key = key
|
|
865
|
+
end
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
class Prebilling < ::Stripe::RequestParams
|
|
869
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
870
|
+
attr_accessor :iterations
|
|
871
|
+
|
|
872
|
+
def initialize(iterations: nil)
|
|
873
|
+
@iterations = iterations
|
|
874
|
+
end
|
|
875
|
+
end
|
|
876
|
+
# Describes the period to bill for upon accepting the quote.
|
|
877
|
+
attr_accessor :bill_on_acceptance
|
|
878
|
+
# 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.
|
|
879
|
+
attr_accessor :billing_behavior
|
|
880
|
+
# When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
|
|
881
|
+
attr_accessor :billing_cycle_anchor
|
|
155
882
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
156
883
|
attr_accessor :description
|
|
157
|
-
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
|
884
|
+
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
|
158
885
|
attr_accessor :effective_date
|
|
886
|
+
# Behavior of the subscription schedule and underlying subscription when it ends.
|
|
887
|
+
attr_accessor :end_behavior
|
|
159
888
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
|
160
889
|
attr_accessor :metadata
|
|
890
|
+
# If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
|
|
891
|
+
attr_accessor :prebilling
|
|
892
|
+
# Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
|
|
893
|
+
#
|
|
894
|
+
# When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
|
|
895
|
+
#
|
|
896
|
+
# Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
|
|
897
|
+
#
|
|
898
|
+
# Prorations can be disabled by passing `none`.
|
|
899
|
+
attr_accessor :proration_behavior
|
|
161
900
|
# Integer representing the number of trial period days before the customer is charged for the first time.
|
|
162
901
|
attr_accessor :trial_period_days
|
|
902
|
+
# Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted.
|
|
903
|
+
attr_accessor :billing_schedules
|
|
904
|
+
# Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
905
|
+
attr_accessor :phase_effective_at
|
|
163
906
|
|
|
164
|
-
def initialize(
|
|
907
|
+
def initialize(
|
|
908
|
+
bill_on_acceptance: nil,
|
|
909
|
+
billing_behavior: nil,
|
|
910
|
+
billing_cycle_anchor: nil,
|
|
911
|
+
description: nil,
|
|
912
|
+
effective_date: nil,
|
|
913
|
+
end_behavior: nil,
|
|
914
|
+
metadata: nil,
|
|
915
|
+
prebilling: nil,
|
|
916
|
+
proration_behavior: nil,
|
|
917
|
+
trial_period_days: nil,
|
|
918
|
+
billing_schedules: nil,
|
|
919
|
+
phase_effective_at: nil
|
|
920
|
+
)
|
|
921
|
+
@bill_on_acceptance = bill_on_acceptance
|
|
922
|
+
@billing_behavior = billing_behavior
|
|
923
|
+
@billing_cycle_anchor = billing_cycle_anchor
|
|
165
924
|
@description = description
|
|
166
925
|
@effective_date = effective_date
|
|
926
|
+
@end_behavior = end_behavior
|
|
167
927
|
@metadata = metadata
|
|
928
|
+
@prebilling = prebilling
|
|
929
|
+
@proration_behavior = proration_behavior
|
|
168
930
|
@trial_period_days = trial_period_days
|
|
931
|
+
@billing_schedules = billing_schedules
|
|
932
|
+
@phase_effective_at = phase_effective_at
|
|
933
|
+
end
|
|
934
|
+
end
|
|
935
|
+
|
|
936
|
+
class SubscriptionDataOverride < ::Stripe::RequestParams
|
|
937
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
938
|
+
# A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
|
939
|
+
attr_accessor :new_reference
|
|
940
|
+
# The ID of the schedule the line applies to.
|
|
941
|
+
attr_accessor :subscription_schedule
|
|
942
|
+
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
|
943
|
+
attr_accessor :type
|
|
944
|
+
|
|
945
|
+
def initialize(new_reference: nil, subscription_schedule: nil, type: nil)
|
|
946
|
+
@new_reference = new_reference
|
|
947
|
+
@subscription_schedule = subscription_schedule
|
|
948
|
+
@type = type
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
class BillOnAcceptance < ::Stripe::RequestParams
|
|
953
|
+
class BillFrom < ::Stripe::RequestParams
|
|
954
|
+
class LineStartsAt < ::Stripe::RequestParams
|
|
955
|
+
# The ID of a quote line.
|
|
956
|
+
attr_accessor :id
|
|
957
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
958
|
+
attr_accessor :index
|
|
959
|
+
|
|
960
|
+
def initialize(id: nil, index: nil)
|
|
961
|
+
@id = id
|
|
962
|
+
@index = index
|
|
963
|
+
end
|
|
964
|
+
end
|
|
965
|
+
# Details of a Quote line to start the bill period from.
|
|
966
|
+
attr_accessor :line_starts_at
|
|
967
|
+
# A precise Unix timestamp.
|
|
968
|
+
attr_accessor :timestamp
|
|
969
|
+
# The type of method to specify the `bill_from` time.
|
|
970
|
+
attr_accessor :type
|
|
971
|
+
|
|
972
|
+
def initialize(line_starts_at: nil, timestamp: nil, type: nil)
|
|
973
|
+
@line_starts_at = line_starts_at
|
|
974
|
+
@timestamp = timestamp
|
|
975
|
+
@type = type
|
|
976
|
+
end
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
class BillUntil < ::Stripe::RequestParams
|
|
980
|
+
class Duration < ::Stripe::RequestParams
|
|
981
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
982
|
+
attr_accessor :interval
|
|
983
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
984
|
+
attr_accessor :interval_count
|
|
985
|
+
|
|
986
|
+
def initialize(interval: nil, interval_count: nil)
|
|
987
|
+
@interval = interval
|
|
988
|
+
@interval_count = interval_count
|
|
989
|
+
end
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
class LineEndsAt < ::Stripe::RequestParams
|
|
993
|
+
# The ID of a quote line.
|
|
994
|
+
attr_accessor :id
|
|
995
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
996
|
+
attr_accessor :index
|
|
997
|
+
|
|
998
|
+
def initialize(id: nil, index: nil)
|
|
999
|
+
@id = id
|
|
1000
|
+
@index = index
|
|
1001
|
+
end
|
|
1002
|
+
end
|
|
1003
|
+
# Details of the duration over which to bill.
|
|
1004
|
+
attr_accessor :duration
|
|
1005
|
+
# Details of a Quote line item from which to bill until.
|
|
1006
|
+
attr_accessor :line_ends_at
|
|
1007
|
+
# A precise Unix timestamp.
|
|
1008
|
+
attr_accessor :timestamp
|
|
1009
|
+
# The type of method to specify the `bill_until` time.
|
|
1010
|
+
attr_accessor :type
|
|
1011
|
+
|
|
1012
|
+
def initialize(duration: nil, line_ends_at: nil, timestamp: nil, type: nil)
|
|
1013
|
+
@duration = duration
|
|
1014
|
+
@line_ends_at = line_ends_at
|
|
1015
|
+
@timestamp = timestamp
|
|
1016
|
+
@type = type
|
|
1017
|
+
end
|
|
1018
|
+
end
|
|
1019
|
+
# The start of the period to bill from when the Quote is accepted.
|
|
1020
|
+
attr_accessor :bill_from
|
|
1021
|
+
# The end of the period to bill until when the Quote is accepted.
|
|
1022
|
+
attr_accessor :bill_until
|
|
1023
|
+
|
|
1024
|
+
def initialize(bill_from: nil, bill_until: nil)
|
|
1025
|
+
@bill_from = bill_from
|
|
1026
|
+
@bill_until = bill_until
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
1031
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
1032
|
+
# The ID of the price object.
|
|
1033
|
+
attr_accessor :price
|
|
1034
|
+
# Controls which subscription items the billing schedule applies to.
|
|
1035
|
+
attr_accessor :type
|
|
1036
|
+
|
|
1037
|
+
def initialize(price: nil, type: nil)
|
|
1038
|
+
@price = price
|
|
1039
|
+
@type = type
|
|
1040
|
+
end
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
class BillFrom < ::Stripe::RequestParams
|
|
1044
|
+
class LineStartsAt < ::Stripe::RequestParams
|
|
1045
|
+
# The ID of a quote line.
|
|
1046
|
+
attr_accessor :id
|
|
1047
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
1048
|
+
attr_accessor :index
|
|
1049
|
+
|
|
1050
|
+
def initialize(id: nil, index: nil)
|
|
1051
|
+
@id = id
|
|
1052
|
+
@index = index
|
|
1053
|
+
end
|
|
1054
|
+
end
|
|
1055
|
+
# Details of a Quote line to start the bill period from.
|
|
1056
|
+
attr_accessor :line_starts_at
|
|
1057
|
+
# A precise Unix timestamp.
|
|
1058
|
+
attr_accessor :timestamp
|
|
1059
|
+
# The type of method to specify the `bill_from` time.
|
|
1060
|
+
attr_accessor :type
|
|
1061
|
+
|
|
1062
|
+
def initialize(line_starts_at: nil, timestamp: nil, type: nil)
|
|
1063
|
+
@line_starts_at = line_starts_at
|
|
1064
|
+
@timestamp = timestamp
|
|
1065
|
+
@type = type
|
|
1066
|
+
end
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
class BillUntil < ::Stripe::RequestParams
|
|
1070
|
+
class Duration < ::Stripe::RequestParams
|
|
1071
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1072
|
+
attr_accessor :interval
|
|
1073
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1074
|
+
attr_accessor :interval_count
|
|
1075
|
+
|
|
1076
|
+
def initialize(interval: nil, interval_count: nil)
|
|
1077
|
+
@interval = interval
|
|
1078
|
+
@interval_count = interval_count
|
|
1079
|
+
end
|
|
1080
|
+
end
|
|
1081
|
+
|
|
1082
|
+
class LineEndsAt < ::Stripe::RequestParams
|
|
1083
|
+
# The ID of a quote line.
|
|
1084
|
+
attr_accessor :id
|
|
1085
|
+
# The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
|
|
1086
|
+
attr_accessor :index
|
|
1087
|
+
|
|
1088
|
+
def initialize(id: nil, index: nil)
|
|
1089
|
+
@id = id
|
|
1090
|
+
@index = index
|
|
1091
|
+
end
|
|
1092
|
+
end
|
|
1093
|
+
# Details of the duration over which to bill.
|
|
1094
|
+
attr_accessor :duration
|
|
1095
|
+
# Details of a Quote line item from which to bill until.
|
|
1096
|
+
attr_accessor :line_ends_at
|
|
1097
|
+
# A precise Unix timestamp.
|
|
1098
|
+
attr_accessor :timestamp
|
|
1099
|
+
# The type of method to specify the `bill_until` time.
|
|
1100
|
+
attr_accessor :type
|
|
1101
|
+
|
|
1102
|
+
def initialize(duration: nil, line_ends_at: nil, timestamp: nil, type: nil)
|
|
1103
|
+
@duration = duration
|
|
1104
|
+
@line_ends_at = line_ends_at
|
|
1105
|
+
@timestamp = timestamp
|
|
1106
|
+
@type = type
|
|
1107
|
+
end
|
|
1108
|
+
end
|
|
1109
|
+
# Configure billing schedule differently for individual subscription items.
|
|
1110
|
+
attr_accessor :applies_to
|
|
1111
|
+
# The start of the period to bill from when the Quote is accepted.
|
|
1112
|
+
attr_accessor :bill_from
|
|
1113
|
+
# The end of the period to bill until when the Quote is accepted.
|
|
1114
|
+
attr_accessor :bill_until
|
|
1115
|
+
# 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.
|
|
1116
|
+
attr_accessor :key
|
|
1117
|
+
|
|
1118
|
+
def initialize(applies_to: nil, bill_from: nil, bill_until: nil, key: nil)
|
|
1119
|
+
@applies_to = applies_to
|
|
1120
|
+
@bill_from = bill_from
|
|
1121
|
+
@bill_until = bill_until
|
|
1122
|
+
@key = key
|
|
1123
|
+
end
|
|
1124
|
+
end
|
|
1125
|
+
# Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
|
|
1126
|
+
attr_accessor :applies_to
|
|
1127
|
+
# Describes the period to bill for upon accepting the quote.
|
|
1128
|
+
attr_accessor :bill_on_acceptance
|
|
1129
|
+
# 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.
|
|
1130
|
+
attr_accessor :billing_behavior
|
|
1131
|
+
# The customer the Subscription Data override applies to.
|
|
1132
|
+
attr_accessor :customer
|
|
1133
|
+
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
1134
|
+
attr_accessor :description
|
|
1135
|
+
# Behavior of the subscription schedule and underlying subscription when it ends.
|
|
1136
|
+
attr_accessor :end_behavior
|
|
1137
|
+
# Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
|
|
1138
|
+
#
|
|
1139
|
+
# When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
|
|
1140
|
+
#
|
|
1141
|
+
# Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://stripe.com/docs/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
|
|
1142
|
+
#
|
|
1143
|
+
# Prorations can be disabled by passing `none`.
|
|
1144
|
+
attr_accessor :proration_behavior
|
|
1145
|
+
# Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted.
|
|
1146
|
+
attr_accessor :billing_schedules
|
|
1147
|
+
# Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
1148
|
+
attr_accessor :phase_effective_at
|
|
1149
|
+
|
|
1150
|
+
def initialize(
|
|
1151
|
+
applies_to: nil,
|
|
1152
|
+
bill_on_acceptance: nil,
|
|
1153
|
+
billing_behavior: nil,
|
|
1154
|
+
customer: nil,
|
|
1155
|
+
description: nil,
|
|
1156
|
+
end_behavior: nil,
|
|
1157
|
+
proration_behavior: nil,
|
|
1158
|
+
billing_schedules: nil,
|
|
1159
|
+
phase_effective_at: nil
|
|
1160
|
+
)
|
|
1161
|
+
@applies_to = applies_to
|
|
1162
|
+
@bill_on_acceptance = bill_on_acceptance
|
|
1163
|
+
@billing_behavior = billing_behavior
|
|
1164
|
+
@customer = customer
|
|
1165
|
+
@description = description
|
|
1166
|
+
@end_behavior = end_behavior
|
|
1167
|
+
@proration_behavior = proration_behavior
|
|
1168
|
+
@billing_schedules = billing_schedules
|
|
1169
|
+
@phase_effective_at = phase_effective_at
|
|
169
1170
|
end
|
|
170
1171
|
end
|
|
171
1172
|
|
|
@@ -183,6 +1184,8 @@ module Stripe
|
|
|
183
1184
|
@destination = destination
|
|
184
1185
|
end
|
|
185
1186
|
end
|
|
1187
|
+
# Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
|
|
1188
|
+
attr_accessor :allow_backdated_lines
|
|
186
1189
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
|
|
187
1190
|
attr_accessor :application_fee_amount
|
|
188
1191
|
# 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. There must be at least 1 line item with a recurring price to use this field.
|
|
@@ -193,6 +1196,8 @@ module Stripe
|
|
|
193
1196
|
attr_accessor :collection_method
|
|
194
1197
|
# The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
|
|
195
1198
|
attr_accessor :customer
|
|
1199
|
+
# The account for which this quote belongs to. A customer or account is required before finalizing the quote. Once specified, it cannot be changed.
|
|
1200
|
+
attr_accessor :customer_account
|
|
196
1201
|
# The tax rates that will apply to any line item that does not have `tax_rates` set.
|
|
197
1202
|
attr_accessor :default_tax_rates
|
|
198
1203
|
# A description that will be displayed on the quote PDF.
|
|
@@ -211,21 +1216,27 @@ module Stripe
|
|
|
211
1216
|
attr_accessor :invoice_settings
|
|
212
1217
|
# A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
|
|
213
1218
|
attr_accessor :line_items
|
|
1219
|
+
# A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
|
1220
|
+
attr_accessor :lines
|
|
214
1221
|
# 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`.
|
|
215
1222
|
attr_accessor :metadata
|
|
216
1223
|
# The account on behalf of which to charge.
|
|
217
1224
|
attr_accessor :on_behalf_of
|
|
218
1225
|
# When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
|
|
219
1226
|
attr_accessor :subscription_data
|
|
1227
|
+
# List representing overrides for `subscription_data` configurations for specific subscription schedules.
|
|
1228
|
+
attr_accessor :subscription_data_overrides
|
|
220
1229
|
# The data with which to automatically create a Transfer for each of the invoices.
|
|
221
1230
|
attr_accessor :transfer_data
|
|
222
1231
|
|
|
223
1232
|
def initialize(
|
|
1233
|
+
allow_backdated_lines: nil,
|
|
224
1234
|
application_fee_amount: nil,
|
|
225
1235
|
application_fee_percent: nil,
|
|
226
1236
|
automatic_tax: nil,
|
|
227
1237
|
collection_method: nil,
|
|
228
1238
|
customer: nil,
|
|
1239
|
+
customer_account: nil,
|
|
229
1240
|
default_tax_rates: nil,
|
|
230
1241
|
description: nil,
|
|
231
1242
|
discounts: nil,
|
|
@@ -235,16 +1246,20 @@ module Stripe
|
|
|
235
1246
|
header: nil,
|
|
236
1247
|
invoice_settings: nil,
|
|
237
1248
|
line_items: nil,
|
|
1249
|
+
lines: nil,
|
|
238
1250
|
metadata: nil,
|
|
239
1251
|
on_behalf_of: nil,
|
|
240
1252
|
subscription_data: nil,
|
|
1253
|
+
subscription_data_overrides: nil,
|
|
241
1254
|
transfer_data: nil
|
|
242
1255
|
)
|
|
1256
|
+
@allow_backdated_lines = allow_backdated_lines
|
|
243
1257
|
@application_fee_amount = application_fee_amount
|
|
244
1258
|
@application_fee_percent = application_fee_percent
|
|
245
1259
|
@automatic_tax = automatic_tax
|
|
246
1260
|
@collection_method = collection_method
|
|
247
1261
|
@customer = customer
|
|
1262
|
+
@customer_account = customer_account
|
|
248
1263
|
@default_tax_rates = default_tax_rates
|
|
249
1264
|
@description = description
|
|
250
1265
|
@discounts = discounts
|
|
@@ -254,9 +1269,11 @@ module Stripe
|
|
|
254
1269
|
@header = header
|
|
255
1270
|
@invoice_settings = invoice_settings
|
|
256
1271
|
@line_items = line_items
|
|
1272
|
+
@lines = lines
|
|
257
1273
|
@metadata = metadata
|
|
258
1274
|
@on_behalf_of = on_behalf_of
|
|
259
1275
|
@subscription_data = subscription_data
|
|
1276
|
+
@subscription_data_overrides = subscription_data_overrides
|
|
260
1277
|
@transfer_data = transfer_data
|
|
261
1278
|
end
|
|
262
1279
|
end
|