stripe 18.2.0.pre.beta.1 → 18.3.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +3 -1
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +360 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +41 -3
- data/lib/stripe/params/account_create_params.rb +34 -2
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +17 -0
- data/lib/stripe/params/account_update_params.rb +34 -2
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +5 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/checkout/session_create_params.rb +96 -2
- data/lib/stripe/params/checkout/session_update_params.rb +16 -1
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/{reserve/plan_retrieve_params.rb → identity/blocklist_entry_disable_params.rb} +2 -2
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +16 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +122 -3
- data/lib/stripe/params/invoice_line_item_update_params.rb +16 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +16 -1
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/{reserve/release_list_params.rb → issuing/program_list_params.rb} +3 -20
- data/lib/stripe/params/{reserve/release_retrieve_params.rb → issuing/program_retrieve_params.rb} +2 -2
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +40 -2
- data/lib/stripe/params/payment_intent_create_params.rb +53 -2
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +35 -1
- data/lib/stripe/params/payment_link_create_params.rb +16 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/plan_create_params.rb +16 -1
- data/lib/stripe/params/price_create_params.rb +16 -1
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +17 -1
- data/lib/stripe/params/product_update_params.rb +17 -1
- data/lib/stripe/params/quote_create_params.rb +222 -2
- data/lib/stripe/params/quote_update_params.rb +222 -2
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +41 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +29 -0
- data/lib/stripe/params/setup_intent_create_params.rb +29 -0
- data/lib/stripe/params/setup_intent_update_params.rb +30 -1
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +16 -0
- data/lib/stripe/params/subscription_item_create_params.rb +16 -0
- data/lib/stripe/params/subscription_item_update_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +41 -2
- data/lib/stripe/params/subscription_schedule_create_params.rb +69 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +69 -1
- data/lib/stripe/params/subscription_update_params.rb +16 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +5 -1
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/{reserve/hold_retrieve_params.rb → tax/location_retrieve_params.rb} +2 -2
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/token_create_params.rb +64 -0
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +8 -1
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +4 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +4 -1
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +716 -9
- data/lib/stripe/params/v2/core/account_token_create_params.rb +237 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +702 -9
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +12 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +25 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +19 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +4 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +128 -5
- data/lib/stripe/resources/account_session.rb +27 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +58 -2
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +41 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +18 -0
- data/lib/stripe/resources/checkout/session.rb +92 -0
- data/lib/stripe/resources/confirmation_token.rb +18 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +509 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/invoice.rb +18 -0
- data/lib/stripe/resources/invoice_item.rb +106 -2
- data/lib/stripe/resources/invoice_line_item.rb +107 -3
- data/lib/stripe/resources/issuing/card.rb +4 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/payment_intent.rb +63 -1
- data/lib/stripe/resources/payment_method.rb +38 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/plan.rb +2 -0
- data/lib/stripe/resources/price.rb +2 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +103 -0
- data/lib/stripe/resources/quote.rb +238 -1
- data/lib/stripe/resources/quote_line.rb +6 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +18 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +94 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +145 -0
- data/lib/stripe/resources/setup_intent.rb +40 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/subscription.rb +20 -1
- data/lib/stripe/resources/subscription_item.rb +24 -1
- data/lib/stripe/resources/subscription_schedule.rb +94 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/transfer.rb +4 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +46 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +1073 -5
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +50 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +21 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +21 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +35 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +87 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +47 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +34 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +56 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources.rb +134 -3
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +2 -1
- data/lib/stripe/services/payment_method_service.rb +11 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +5 -2
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +14 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +2 -0
- data/lib/stripe/services/v2/core/account_service.rb +10 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +4 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +10 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +4 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/payment_service.rb +17 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +5 -1
- data/lib/stripe/services.rb +48 -4
- data/lib/stripe/stripe_client.rb +1 -8
- data/lib/stripe/util.rb +9 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -1
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +21285 -1431
- metadata +312 -15
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/resources/reserve/hold.rb +0 -74
- data/lib/stripe/resources/reserve/plan.rb +0 -78
- data/lib/stripe/resources/reserve/release.rb +0 -77
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/stripe_event_notification_handler.rb +0 -425
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Identity
|
|
6
|
+
class BlocklistEntryRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -21,6 +21,8 @@ module Stripe
|
|
|
21
21
|
@lte = lte
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
|
+
# Only return VerificationReports that were blocked by this BlocklistEntry id.
|
|
25
|
+
attr_accessor :blocked_by_entry
|
|
24
26
|
# A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
|
|
25
27
|
attr_accessor :client_reference_id
|
|
26
28
|
# Only return VerificationReports that were created during the given date interval.
|
|
@@ -39,6 +41,7 @@ module Stripe
|
|
|
39
41
|
attr_accessor :verification_session
|
|
40
42
|
|
|
41
43
|
def initialize(
|
|
44
|
+
blocked_by_entry: nil,
|
|
42
45
|
client_reference_id: nil,
|
|
43
46
|
created: nil,
|
|
44
47
|
ending_before: nil,
|
|
@@ -48,6 +51,7 @@ module Stripe
|
|
|
48
51
|
type: nil,
|
|
49
52
|
verification_session: nil
|
|
50
53
|
)
|
|
54
|
+
@blocked_by_entry = blocked_by_entry
|
|
51
55
|
@client_reference_id = client_reference_id
|
|
52
56
|
@created = created
|
|
53
57
|
@ending_before = ending_before
|
|
@@ -61,6 +61,17 @@ module Stripe
|
|
|
61
61
|
|
|
62
62
|
class PriceData < ::Stripe::RequestParams
|
|
63
63
|
class ProductData < ::Stripe::RequestParams
|
|
64
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
65
|
+
# A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
66
|
+
attr_accessor :performance_location
|
|
67
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
68
|
+
attr_accessor :tax_code
|
|
69
|
+
|
|
70
|
+
def initialize(performance_location: nil, tax_code: nil)
|
|
71
|
+
@performance_location = performance_location
|
|
72
|
+
@tax_code = tax_code
|
|
73
|
+
end
|
|
74
|
+
end
|
|
64
75
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
65
76
|
attr_accessor :description
|
|
66
77
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
@@ -73,6 +84,8 @@ module Stripe
|
|
|
73
84
|
attr_accessor :tax_code
|
|
74
85
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
75
86
|
attr_accessor :unit_label
|
|
87
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
88
|
+
attr_accessor :tax_details
|
|
76
89
|
|
|
77
90
|
def initialize(
|
|
78
91
|
description: nil,
|
|
@@ -80,7 +93,8 @@ module Stripe
|
|
|
80
93
|
metadata: nil,
|
|
81
94
|
name: nil,
|
|
82
95
|
tax_code: nil,
|
|
83
|
-
unit_label: nil
|
|
96
|
+
unit_label: nil,
|
|
97
|
+
tax_details: nil
|
|
84
98
|
)
|
|
85
99
|
@description = description
|
|
86
100
|
@images = images
|
|
@@ -88,6 +102,7 @@ module Stripe
|
|
|
88
102
|
@name = name
|
|
89
103
|
@tax_code = tax_code
|
|
90
104
|
@unit_label = unit_label
|
|
105
|
+
@tax_details = tax_details
|
|
91
106
|
end
|
|
92
107
|
end
|
|
93
108
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -425,6 +425,29 @@ module Stripe
|
|
|
425
425
|
end
|
|
426
426
|
end
|
|
427
427
|
|
|
428
|
+
class BillingSchedulesAction < ::Stripe::RequestParams
|
|
429
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
430
|
+
# The ID of the price object.
|
|
431
|
+
attr_accessor :price
|
|
432
|
+
# Controls which subscription items the billing schedule applies to.
|
|
433
|
+
attr_accessor :type
|
|
434
|
+
|
|
435
|
+
def initialize(price: nil, type: nil)
|
|
436
|
+
@price = price
|
|
437
|
+
@type = type
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
# Specify which subscription items the billing schedule applies to.
|
|
441
|
+
attr_accessor :applies_to
|
|
442
|
+
# Select the action.
|
|
443
|
+
attr_accessor :type
|
|
444
|
+
|
|
445
|
+
def initialize(applies_to: nil, type: nil)
|
|
446
|
+
@applies_to = applies_to
|
|
447
|
+
@type = type
|
|
448
|
+
end
|
|
449
|
+
end
|
|
450
|
+
|
|
428
451
|
class DiscountAction < ::Stripe::RequestParams
|
|
429
452
|
class Add < ::Stripe::RequestParams
|
|
430
453
|
class DiscountEnd < ::Stripe::RequestParams
|
|
@@ -575,6 +598,8 @@ module Stripe
|
|
|
575
598
|
attr_accessor :tax_rates
|
|
576
599
|
# Options that configure the trial on the subscription item.
|
|
577
600
|
attr_accessor :trial
|
|
601
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
602
|
+
attr_accessor :trial_offer
|
|
578
603
|
|
|
579
604
|
def initialize(
|
|
580
605
|
discounts: nil,
|
|
@@ -582,7 +607,8 @@ module Stripe
|
|
|
582
607
|
price: nil,
|
|
583
608
|
quantity: nil,
|
|
584
609
|
tax_rates: nil,
|
|
585
|
-
trial: nil
|
|
610
|
+
trial: nil,
|
|
611
|
+
trial_offer: nil
|
|
586
612
|
)
|
|
587
613
|
@discounts = discounts
|
|
588
614
|
@metadata = metadata
|
|
@@ -590,6 +616,7 @@ module Stripe
|
|
|
590
616
|
@quantity = quantity
|
|
591
617
|
@tax_rates = tax_rates
|
|
592
618
|
@trial = trial
|
|
619
|
+
@trial_offer = trial_offer
|
|
593
620
|
end
|
|
594
621
|
end
|
|
595
622
|
|
|
@@ -669,6 +696,8 @@ module Stripe
|
|
|
669
696
|
attr_accessor :tax_rates
|
|
670
697
|
# 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`.
|
|
671
698
|
attr_accessor :trial
|
|
699
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
700
|
+
attr_accessor :trial_offer
|
|
672
701
|
|
|
673
702
|
def initialize(
|
|
674
703
|
discounts: nil,
|
|
@@ -676,7 +705,8 @@ module Stripe
|
|
|
676
705
|
price: nil,
|
|
677
706
|
quantity: nil,
|
|
678
707
|
tax_rates: nil,
|
|
679
|
-
trial: nil
|
|
708
|
+
trial: nil,
|
|
709
|
+
trial_offer: nil
|
|
680
710
|
)
|
|
681
711
|
@discounts = discounts
|
|
682
712
|
@metadata = metadata
|
|
@@ -684,6 +714,7 @@ module Stripe
|
|
|
684
714
|
@quantity = quantity
|
|
685
715
|
@tax_rates = tax_rates
|
|
686
716
|
@trial = trial
|
|
717
|
+
@trial_offer = trial_offer
|
|
687
718
|
end
|
|
688
719
|
end
|
|
689
720
|
# Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
@@ -763,8 +794,12 @@ module Stripe
|
|
|
763
794
|
attr_accessor :amendment_start
|
|
764
795
|
# For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
|
|
765
796
|
attr_accessor :billing_cycle_anchor
|
|
797
|
+
# Actions to apply to the billing schedules.
|
|
798
|
+
attr_accessor :billing_schedules_actions
|
|
766
799
|
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
767
800
|
attr_accessor :discount_actions
|
|
801
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
802
|
+
attr_accessor :effective_at
|
|
768
803
|
# Changes to the subscription items during the amendment time span.
|
|
769
804
|
attr_accessor :item_actions
|
|
770
805
|
# Instructions for how to modify phase metadata
|
|
@@ -782,7 +817,9 @@ module Stripe
|
|
|
782
817
|
amendment_end: nil,
|
|
783
818
|
amendment_start: nil,
|
|
784
819
|
billing_cycle_anchor: nil,
|
|
820
|
+
billing_schedules_actions: nil,
|
|
785
821
|
discount_actions: nil,
|
|
822
|
+
effective_at: nil,
|
|
786
823
|
item_actions: nil,
|
|
787
824
|
metadata_actions: nil,
|
|
788
825
|
proration_behavior: nil,
|
|
@@ -793,7 +830,9 @@ module Stripe
|
|
|
793
830
|
@amendment_end = amendment_end
|
|
794
831
|
@amendment_start = amendment_start
|
|
795
832
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
833
|
+
@billing_schedules_actions = billing_schedules_actions
|
|
796
834
|
@discount_actions = discount_actions
|
|
835
|
+
@effective_at = effective_at
|
|
797
836
|
@item_actions = item_actions
|
|
798
837
|
@metadata_actions = metadata_actions
|
|
799
838
|
@proration_behavior = proration_behavior
|
|
@@ -823,6 +862,58 @@ module Stripe
|
|
|
823
862
|
end
|
|
824
863
|
end
|
|
825
864
|
|
|
865
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
866
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
867
|
+
# The ID of the price object.
|
|
868
|
+
attr_accessor :price
|
|
869
|
+
# Controls which subscription items the billing schedule applies to.
|
|
870
|
+
attr_accessor :type
|
|
871
|
+
|
|
872
|
+
def initialize(price: nil, type: nil)
|
|
873
|
+
@price = price
|
|
874
|
+
@type = type
|
|
875
|
+
end
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
class BillUntil < ::Stripe::RequestParams
|
|
879
|
+
class Duration < ::Stripe::RequestParams
|
|
880
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
881
|
+
attr_accessor :interval
|
|
882
|
+
# The multiplier applied to the interval.
|
|
883
|
+
attr_accessor :interval_count
|
|
884
|
+
|
|
885
|
+
def initialize(interval: nil, interval_count: nil)
|
|
886
|
+
@interval = interval
|
|
887
|
+
@interval_count = interval_count
|
|
888
|
+
end
|
|
889
|
+
end
|
|
890
|
+
# Specifies the billing period.
|
|
891
|
+
attr_accessor :duration
|
|
892
|
+
# The end date of the billing schedule.
|
|
893
|
+
attr_accessor :timestamp
|
|
894
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
895
|
+
attr_accessor :type
|
|
896
|
+
|
|
897
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
898
|
+
@duration = duration
|
|
899
|
+
@timestamp = timestamp
|
|
900
|
+
@type = type
|
|
901
|
+
end
|
|
902
|
+
end
|
|
903
|
+
# Configure billing schedule differently for individual subscription items.
|
|
904
|
+
attr_accessor :applies_to
|
|
905
|
+
# The end date for the billing schedule.
|
|
906
|
+
attr_accessor :bill_until
|
|
907
|
+
# 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.
|
|
908
|
+
attr_accessor :key
|
|
909
|
+
|
|
910
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
911
|
+
@applies_to = applies_to
|
|
912
|
+
@bill_until = bill_until
|
|
913
|
+
@key = key
|
|
914
|
+
end
|
|
915
|
+
end
|
|
916
|
+
|
|
826
917
|
class Phase < ::Stripe::RequestParams
|
|
827
918
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
828
919
|
class Discount < ::Stripe::RequestParams
|
|
@@ -1203,6 +1294,8 @@ module Stripe
|
|
|
1203
1294
|
attr_accessor :tax_rates
|
|
1204
1295
|
# Options that configure the trial on the subscription item.
|
|
1205
1296
|
attr_accessor :trial
|
|
1297
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
1298
|
+
attr_accessor :trial_offer
|
|
1206
1299
|
|
|
1207
1300
|
def initialize(
|
|
1208
1301
|
billing_thresholds: nil,
|
|
@@ -1213,7 +1306,8 @@ module Stripe
|
|
|
1213
1306
|
price_data: nil,
|
|
1214
1307
|
quantity: nil,
|
|
1215
1308
|
tax_rates: nil,
|
|
1216
|
-
trial: nil
|
|
1309
|
+
trial: nil,
|
|
1310
|
+
trial_offer: nil
|
|
1217
1311
|
)
|
|
1218
1312
|
@billing_thresholds = billing_thresholds
|
|
1219
1313
|
@discounts = discounts
|
|
@@ -1224,6 +1318,7 @@ module Stripe
|
|
|
1224
1318
|
@quantity = quantity
|
|
1225
1319
|
@tax_rates = tax_rates
|
|
1226
1320
|
@trial = trial
|
|
1321
|
+
@trial_offer = trial_offer
|
|
1227
1322
|
end
|
|
1228
1323
|
end
|
|
1229
1324
|
|
|
@@ -1288,6 +1383,8 @@ module Stripe
|
|
|
1288
1383
|
attr_accessor :discounts
|
|
1289
1384
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
1290
1385
|
attr_accessor :duration
|
|
1386
|
+
# Configures how the subscription schedule handles billing for phase transitions.
|
|
1387
|
+
attr_accessor :effective_at
|
|
1291
1388
|
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
1292
1389
|
attr_accessor :end_date
|
|
1293
1390
|
# All invoices will be billed using the specified settings.
|
|
@@ -1328,6 +1425,7 @@ module Stripe
|
|
|
1328
1425
|
description: nil,
|
|
1329
1426
|
discounts: nil,
|
|
1330
1427
|
duration: nil,
|
|
1428
|
+
effective_at: nil,
|
|
1331
1429
|
end_date: nil,
|
|
1332
1430
|
invoice_settings: nil,
|
|
1333
1431
|
items: nil,
|
|
@@ -1354,6 +1452,7 @@ module Stripe
|
|
|
1354
1452
|
@description = description
|
|
1355
1453
|
@discounts = discounts
|
|
1356
1454
|
@duration = duration
|
|
1455
|
+
@effective_at = effective_at
|
|
1357
1456
|
@end_date = end_date
|
|
1358
1457
|
@invoice_settings = invoice_settings
|
|
1359
1458
|
@items = items
|
|
@@ -1424,6 +1523,8 @@ module Stripe
|
|
|
1424
1523
|
attr_accessor :billing_behavior
|
|
1425
1524
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
1426
1525
|
attr_accessor :billing_mode
|
|
1526
|
+
# Sets the billing schedules for the subscription schedule.
|
|
1527
|
+
attr_accessor :billing_schedules
|
|
1427
1528
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
1428
1529
|
attr_accessor :end_behavior
|
|
1429
1530
|
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
@@ -1437,6 +1538,7 @@ module Stripe
|
|
|
1437
1538
|
amendments: nil,
|
|
1438
1539
|
billing_behavior: nil,
|
|
1439
1540
|
billing_mode: nil,
|
|
1541
|
+
billing_schedules: nil,
|
|
1440
1542
|
end_behavior: nil,
|
|
1441
1543
|
phases: nil,
|
|
1442
1544
|
prebilling: nil,
|
|
@@ -1445,6 +1547,7 @@ module Stripe
|
|
|
1445
1547
|
@amendments = amendments
|
|
1446
1548
|
@billing_behavior = billing_behavior
|
|
1447
1549
|
@billing_mode = billing_mode
|
|
1550
|
+
@billing_schedules = billing_schedules
|
|
1448
1551
|
@end_behavior = end_behavior
|
|
1449
1552
|
@phases = phases
|
|
1450
1553
|
@prebilling = prebilling
|
|
@@ -1535,6 +1638,18 @@ module Stripe
|
|
|
1535
1638
|
end
|
|
1536
1639
|
end
|
|
1537
1640
|
|
|
1641
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
1642
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
1643
|
+
attr_accessor :trial_end
|
|
1644
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
1645
|
+
attr_accessor :trial_offer
|
|
1646
|
+
|
|
1647
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
1648
|
+
@trial_end = trial_end
|
|
1649
|
+
@trial_offer = trial_offer
|
|
1650
|
+
end
|
|
1651
|
+
end
|
|
1652
|
+
|
|
1538
1653
|
class Discount < ::Stripe::RequestParams
|
|
1539
1654
|
class DiscountEnd < ::Stripe::RequestParams
|
|
1540
1655
|
class Duration < ::Stripe::RequestParams
|
|
@@ -1623,6 +1738,8 @@ module Stripe
|
|
|
1623
1738
|
attr_accessor :billing_thresholds
|
|
1624
1739
|
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
1625
1740
|
attr_accessor :clear_usage
|
|
1741
|
+
# The trial offer to apply to this subscription item.
|
|
1742
|
+
attr_accessor :current_trial
|
|
1626
1743
|
# A flag that, if set to `true`, will delete the specified item.
|
|
1627
1744
|
attr_accessor :deleted
|
|
1628
1745
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -1645,6 +1762,7 @@ module Stripe
|
|
|
1645
1762
|
def initialize(
|
|
1646
1763
|
billing_thresholds: nil,
|
|
1647
1764
|
clear_usage: nil,
|
|
1765
|
+
current_trial: nil,
|
|
1648
1766
|
deleted: nil,
|
|
1649
1767
|
discounts: nil,
|
|
1650
1768
|
id: nil,
|
|
@@ -1657,6 +1775,7 @@ module Stripe
|
|
|
1657
1775
|
)
|
|
1658
1776
|
@billing_thresholds = billing_thresholds
|
|
1659
1777
|
@clear_usage = clear_usage
|
|
1778
|
+
@current_trial = current_trial
|
|
1660
1779
|
@deleted = deleted
|
|
1661
1780
|
@discounts = discounts
|
|
1662
1781
|
@id = id
|
|
@@ -60,6 +60,17 @@ module Stripe
|
|
|
60
60
|
|
|
61
61
|
class PriceData < ::Stripe::RequestParams
|
|
62
62
|
class ProductData < ::Stripe::RequestParams
|
|
63
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
64
|
+
# A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
65
|
+
attr_accessor :performance_location
|
|
66
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
67
|
+
attr_accessor :tax_code
|
|
68
|
+
|
|
69
|
+
def initialize(performance_location: nil, tax_code: nil)
|
|
70
|
+
@performance_location = performance_location
|
|
71
|
+
@tax_code = tax_code
|
|
72
|
+
end
|
|
73
|
+
end
|
|
63
74
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
64
75
|
attr_accessor :description
|
|
65
76
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
@@ -72,6 +83,8 @@ module Stripe
|
|
|
72
83
|
attr_accessor :tax_code
|
|
73
84
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
74
85
|
attr_accessor :unit_label
|
|
86
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
87
|
+
attr_accessor :tax_details
|
|
75
88
|
|
|
76
89
|
def initialize(
|
|
77
90
|
description: nil,
|
|
@@ -79,7 +92,8 @@ module Stripe
|
|
|
79
92
|
metadata: nil,
|
|
80
93
|
name: nil,
|
|
81
94
|
tax_code: nil,
|
|
82
|
-
unit_label: nil
|
|
95
|
+
unit_label: nil,
|
|
96
|
+
tax_details: nil
|
|
83
97
|
)
|
|
84
98
|
@description = description
|
|
85
99
|
@images = images
|
|
@@ -87,6 +101,7 @@ module Stripe
|
|
|
87
101
|
@name = name
|
|
88
102
|
@tax_code = tax_code
|
|
89
103
|
@unit_label = unit_label
|
|
104
|
+
@tax_details = tax_details
|
|
90
105
|
end
|
|
91
106
|
end
|
|
92
107
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -38,6 +38,8 @@ module Stripe
|
|
|
38
38
|
@lte = lte
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
|
+
# Only return invoices for the cadence specified by this billing cadence ID.
|
|
42
|
+
attr_accessor :billing_cadence
|
|
41
43
|
# The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
42
44
|
attr_accessor :collection_method
|
|
43
45
|
# Only return invoices that were created during the given date interval.
|
|
@@ -62,6 +64,7 @@ module Stripe
|
|
|
62
64
|
attr_accessor :subscription
|
|
63
65
|
|
|
64
66
|
def initialize(
|
|
67
|
+
billing_cadence: nil,
|
|
65
68
|
collection_method: nil,
|
|
66
69
|
created: nil,
|
|
67
70
|
customer: nil,
|
|
@@ -74,6 +77,7 @@ module Stripe
|
|
|
74
77
|
status: nil,
|
|
75
78
|
subscription: nil
|
|
76
79
|
)
|
|
80
|
+
@billing_cadence = billing_cadence
|
|
77
81
|
@collection_method = collection_method
|
|
78
82
|
@created = created
|
|
79
83
|
@customer = customer
|
|
@@ -61,6 +61,17 @@ module Stripe
|
|
|
61
61
|
|
|
62
62
|
class PriceData < ::Stripe::RequestParams
|
|
63
63
|
class ProductData < ::Stripe::RequestParams
|
|
64
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
65
|
+
# A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
66
|
+
attr_accessor :performance_location
|
|
67
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
68
|
+
attr_accessor :tax_code
|
|
69
|
+
|
|
70
|
+
def initialize(performance_location: nil, tax_code: nil)
|
|
71
|
+
@performance_location = performance_location
|
|
72
|
+
@tax_code = tax_code
|
|
73
|
+
end
|
|
74
|
+
end
|
|
64
75
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
65
76
|
attr_accessor :description
|
|
66
77
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
@@ -73,6 +84,8 @@ module Stripe
|
|
|
73
84
|
attr_accessor :tax_code
|
|
74
85
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
75
86
|
attr_accessor :unit_label
|
|
87
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
88
|
+
attr_accessor :tax_details
|
|
76
89
|
|
|
77
90
|
def initialize(
|
|
78
91
|
description: nil,
|
|
@@ -80,7 +93,8 @@ module Stripe
|
|
|
80
93
|
metadata: nil,
|
|
81
94
|
name: nil,
|
|
82
95
|
tax_code: nil,
|
|
83
|
-
unit_label: nil
|
|
96
|
+
unit_label: nil,
|
|
97
|
+
tax_details: nil
|
|
84
98
|
)
|
|
85
99
|
@description = description
|
|
86
100
|
@images = images
|
|
@@ -88,6 +102,7 @@ module Stripe
|
|
|
88
102
|
@name = name
|
|
89
103
|
@tax_code = tax_code
|
|
90
104
|
@unit_label = unit_label
|
|
105
|
+
@tax_details = tax_details
|
|
91
106
|
end
|
|
92
107
|
end
|
|
93
108
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -21,6 +21,35 @@ module Stripe
|
|
|
21
21
|
@lte = lte
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
|
+
|
|
25
|
+
class Wallets < ::Stripe::RequestParams
|
|
26
|
+
class ApplePay < ::Stripe::RequestParams
|
|
27
|
+
# Query by Apple Pay primary account identifier.
|
|
28
|
+
attr_accessor :primary_account_identifier
|
|
29
|
+
|
|
30
|
+
def initialize(primary_account_identifier: nil)
|
|
31
|
+
@primary_account_identifier = primary_account_identifier
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class GooglePay < ::Stripe::RequestParams
|
|
36
|
+
# Query by Google Pay primary account identifier.
|
|
37
|
+
attr_accessor :primary_account_identifier
|
|
38
|
+
|
|
39
|
+
def initialize(primary_account_identifier: nil)
|
|
40
|
+
@primary_account_identifier = primary_account_identifier
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Filter cards by Apple Pay wallet details.
|
|
44
|
+
attr_accessor :apple_pay
|
|
45
|
+
# Filter cards by Google Pay wallet details.
|
|
46
|
+
attr_accessor :google_pay
|
|
47
|
+
|
|
48
|
+
def initialize(apple_pay: nil, google_pay: nil)
|
|
49
|
+
@apple_pay = apple_pay
|
|
50
|
+
@google_pay = google_pay
|
|
51
|
+
end
|
|
52
|
+
end
|
|
24
53
|
# Only return cards belonging to the Cardholder with the provided ID.
|
|
25
54
|
attr_accessor :cardholder
|
|
26
55
|
# Only return cards that were issued during the given date interval.
|
|
@@ -45,6 +74,8 @@ module Stripe
|
|
|
45
74
|
attr_accessor :status
|
|
46
75
|
# Only return cards that have the given type. One of `virtual` or `physical`.
|
|
47
76
|
attr_accessor :type
|
|
77
|
+
# Filter cards by wallet settings.
|
|
78
|
+
attr_accessor :wallets
|
|
48
79
|
|
|
49
80
|
def initialize(
|
|
50
81
|
cardholder: nil,
|
|
@@ -58,7 +89,8 @@ module Stripe
|
|
|
58
89
|
personalization_design: nil,
|
|
59
90
|
starting_after: nil,
|
|
60
91
|
status: nil,
|
|
61
|
-
type: nil
|
|
92
|
+
type: nil,
|
|
93
|
+
wallets: nil
|
|
62
94
|
)
|
|
63
95
|
@cardholder = cardholder
|
|
64
96
|
@created = created
|
|
@@ -72,6 +104,7 @@ module Stripe
|
|
|
72
104
|
@starting_after = starting_after
|
|
73
105
|
@status = status
|
|
74
106
|
@type = type
|
|
107
|
+
@wallets = wallets
|
|
75
108
|
end
|
|
76
109
|
end
|
|
77
110
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramCreateParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
# If true, makes the specified program the default for the given account.
|
|
10
|
+
attr_accessor :is_default
|
|
11
|
+
# The program to use as the parent for the new program to create.
|
|
12
|
+
attr_accessor :platform_program
|
|
13
|
+
|
|
14
|
+
def initialize(expand: nil, is_default: nil, platform_program: nil)
|
|
15
|
+
@expand = expand
|
|
16
|
+
@is_default = is_default
|
|
17
|
+
@platform_program = platform_program
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -2,38 +2,21 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
module
|
|
6
|
-
class
|
|
7
|
-
# Only return ReserveReleases associated with the currency specified by this currency code. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
8
|
-
attr_accessor :currency
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramListParams < ::Stripe::RequestParams
|
|
9
7
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
10
8
|
attr_accessor :ending_before
|
|
11
9
|
# Specifies which fields in the response should be expanded.
|
|
12
10
|
attr_accessor :expand
|
|
13
11
|
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
14
12
|
attr_accessor :limit
|
|
15
|
-
# Only return ReserveReleases associated with the ReserveHold specified by this ReserveHold ID.
|
|
16
|
-
attr_accessor :reserve_hold
|
|
17
|
-
# Only return ReserveReleases associated with the ReservePlan specified by this ReservePlan ID.
|
|
18
|
-
attr_accessor :reserve_plan
|
|
19
13
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
20
14
|
attr_accessor :starting_after
|
|
21
15
|
|
|
22
|
-
def initialize(
|
|
23
|
-
currency: nil,
|
|
24
|
-
ending_before: nil,
|
|
25
|
-
expand: nil,
|
|
26
|
-
limit: nil,
|
|
27
|
-
reserve_hold: nil,
|
|
28
|
-
reserve_plan: nil,
|
|
29
|
-
starting_after: nil
|
|
30
|
-
)
|
|
31
|
-
@currency = currency
|
|
16
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
|
32
17
|
@ending_before = ending_before
|
|
33
18
|
@expand = expand
|
|
34
19
|
@limit = limit
|
|
35
|
-
@reserve_hold = reserve_hold
|
|
36
|
-
@reserve_plan = reserve_plan
|
|
37
20
|
@starting_after = starting_after
|
|
38
21
|
end
|
|
39
22
|
end
|
data/lib/stripe/params/{reserve/release_retrieve_params.rb → issuing/program_retrieve_params.rb}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
module
|
|
6
|
-
class
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramRetrieveParams < ::Stripe::RequestParams
|
|
7
7
|
# Specifies which fields in the response should be expanded.
|
|
8
8
|
attr_accessor :expand
|
|
9
9
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramUpdateParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
# If true, makes the specified program the default.
|
|
10
|
+
attr_accessor :is_default
|
|
11
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
12
|
+
attr_accessor :metadata
|
|
13
|
+
|
|
14
|
+
def initialize(expand: nil, is_default: nil, metadata: nil)
|
|
15
|
+
@expand = expand
|
|
16
|
+
@is_default = is_default
|
|
17
|
+
@metadata = metadata
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -159,7 +159,7 @@ module Stripe
|
|
|
159
159
|
#
|
|
160
160
|
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
161
|
attr_accessor :discount_amount
|
|
162
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of
|
|
162
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
|
163
163
|
attr_accessor :line_items
|
|
164
164
|
# Contains information about the shipping portion of the amount.
|
|
165
165
|
attr_accessor :shipping
|