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,105 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
# A claimable sandbox represents a Stripe sandbox that is anonymous.
|
|
8
|
+
# When it is created, it can be prefilled with specific metadata, such as email, name, or country.
|
|
9
|
+
# Claimable sandboxes can be claimed through a URL. When a user claims a sandbox through this URL,
|
|
10
|
+
# it will prompt them to create a new Stripe account. Or, it will allow them to claim this sandbox in their
|
|
11
|
+
# existing Stripe account.
|
|
12
|
+
# Claimable sandboxes have 60 days to be claimed. After this expiration time has passed,
|
|
13
|
+
# if the sandbox is not claimed, it will be deleted.
|
|
14
|
+
class ClaimableSandbox < APIResource
|
|
15
|
+
OBJECT_NAME = "v2.core.claimable_sandbox"
|
|
16
|
+
def self.object_name
|
|
17
|
+
"v2.core.claimable_sandbox"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class Prefill < ::Stripe::StripeObject
|
|
21
|
+
# Country in which the account holder resides, or in which the business is legally established.
|
|
22
|
+
# Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
23
|
+
attr_reader :country
|
|
24
|
+
# Email that this sandbox is meant to be claimed by. Stripe will
|
|
25
|
+
# send an email to this email address before the sandbox expires.
|
|
26
|
+
attr_reader :email
|
|
27
|
+
# Name for the sandbox.
|
|
28
|
+
attr_reader :name
|
|
29
|
+
|
|
30
|
+
def self.inner_class_types
|
|
31
|
+
@inner_class_types = {}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.field_remappings
|
|
35
|
+
@field_remappings = {}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
class SandboxDetails < ::Stripe::StripeObject
|
|
40
|
+
class ApiKeys < ::Stripe::StripeObject
|
|
41
|
+
# Used to communicate with [Stripe's MCP server](https://docs.stripe.com/mcp).
|
|
42
|
+
# This allows LLM agents to securely operate on a Stripe account.
|
|
43
|
+
attr_reader :mcp
|
|
44
|
+
# Publicly accessible in a web or mobile app client-side code.
|
|
45
|
+
attr_reader :publishable
|
|
46
|
+
# Should be stored securely in server-side code (such as an environment variable).
|
|
47
|
+
attr_reader :secret
|
|
48
|
+
|
|
49
|
+
def self.inner_class_types
|
|
50
|
+
@inner_class_types = {}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.field_remappings
|
|
54
|
+
@field_remappings = {}
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
# The sandbox's Stripe account ID.
|
|
58
|
+
attr_reader :account
|
|
59
|
+
# Keys that can be used to set up an integration for this sandbox and operate on the account. This will be present only in the create response, and will be null in subsequent retrieve responses.
|
|
60
|
+
attr_reader :api_keys
|
|
61
|
+
# The livemode sandbox Stripe account ID. This field is only set if the user activates their sandbox
|
|
62
|
+
# and chooses to install your platform's Stripe App in their live account.
|
|
63
|
+
attr_reader :owner_account
|
|
64
|
+
|
|
65
|
+
def self.inner_class_types
|
|
66
|
+
@inner_class_types = { api_keys: ApiKeys }
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def self.field_remappings
|
|
70
|
+
@field_remappings = {}
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
# URL for user to claim sandbox into their existing Stripe account.
|
|
74
|
+
# The value will be null if the sandbox status is `claimed` or `expired`.
|
|
75
|
+
attr_reader :claim_url
|
|
76
|
+
# The timestamp the sandbox was claimed. The value will be null if the sandbox status is not `claimed`.
|
|
77
|
+
attr_reader :claimed_at
|
|
78
|
+
# When the sandbox is created.
|
|
79
|
+
attr_reader :created
|
|
80
|
+
# The timestamp the sandbox will expire. The value will be null if the sandbox is `claimed`.
|
|
81
|
+
attr_reader :expires_at
|
|
82
|
+
# Unique identifier for the Claimable sandbox.
|
|
83
|
+
attr_reader :id
|
|
84
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
85
|
+
attr_reader :object
|
|
86
|
+
# Values prefilled during the creation of the sandbox. When a user claims the sandbox, they will be able to update these values.
|
|
87
|
+
attr_reader :prefill
|
|
88
|
+
# Data about the Stripe sandbox object.
|
|
89
|
+
attr_reader :sandbox_details
|
|
90
|
+
# Status of the sandbox. One of `unclaimed`, `expired`, `claimed`.
|
|
91
|
+
attr_reader :status
|
|
92
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
93
|
+
attr_reader :livemode
|
|
94
|
+
|
|
95
|
+
def self.inner_class_types
|
|
96
|
+
@inner_class_types = { prefill: Prefill, sandbox_details: SandboxDetails }
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def self.field_remappings
|
|
100
|
+
@field_remappings = {}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -13,13 +13,62 @@ module Stripe
|
|
|
13
13
|
|
|
14
14
|
class Reason < ::Stripe::StripeObject
|
|
15
15
|
class Request < ::Stripe::StripeObject
|
|
16
|
+
class Client < ::Stripe::StripeObject
|
|
17
|
+
class ApiKey < ::Stripe::StripeObject
|
|
18
|
+
# The ID of the API key.
|
|
19
|
+
attr_reader :id
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
class DashboardUser < ::Stripe::StripeObject
|
|
31
|
+
# The email of the dashboard user.
|
|
32
|
+
attr_reader :email
|
|
33
|
+
# The IP address of the user.
|
|
34
|
+
attr_reader :ip_address
|
|
35
|
+
# The machine identifier of the user.
|
|
36
|
+
attr_reader :machine_identifier
|
|
37
|
+
|
|
38
|
+
def self.inner_class_types
|
|
39
|
+
@inner_class_types = {}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.field_remappings
|
|
43
|
+
@field_remappings = {}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
# The type of the client.
|
|
47
|
+
attr_reader :type
|
|
48
|
+
# API key that triggered the event.
|
|
49
|
+
attr_reader :api_key
|
|
50
|
+
# Dashboard user that triggered the event.
|
|
51
|
+
attr_reader :dashboard_user
|
|
52
|
+
# Stripe action that triggered the event.
|
|
53
|
+
attr_reader :stripe_action
|
|
54
|
+
|
|
55
|
+
def self.inner_class_types
|
|
56
|
+
@inner_class_types = { api_key: ApiKey, dashboard_user: DashboardUser }
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def self.field_remappings
|
|
60
|
+
@field_remappings = {}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
# The client details that made the request.
|
|
64
|
+
attr_reader :client
|
|
16
65
|
# ID of the API request that caused the event.
|
|
17
66
|
attr_reader :id
|
|
18
67
|
# The idempotency key transmitted during the request.
|
|
19
68
|
attr_reader :idempotency_key
|
|
20
69
|
|
|
21
70
|
def self.inner_class_types
|
|
22
|
-
@inner_class_types = {}
|
|
71
|
+
@inner_class_types = { client: Client }
|
|
23
72
|
end
|
|
24
73
|
|
|
25
74
|
def self.field_remappings
|
|
@@ -12,6 +12,21 @@ module Stripe
|
|
|
12
12
|
"v2.core.vault.gb_bank_account"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class AlternativeReference < ::Stripe::StripeObject
|
|
16
|
+
# The ID of the alternative resource being referenced.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
# The type of the alternative reference (e.g., external_account for V1 external accounts).
|
|
19
|
+
attr_reader :type
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
15
30
|
class ConfirmationOfPayee < ::Stripe::StripeObject
|
|
16
31
|
class Result < ::Stripe::StripeObject
|
|
17
32
|
class Matched < ::Stripe::StripeObject
|
|
@@ -76,6 +91,8 @@ module Stripe
|
|
|
76
91
|
@field_remappings = {}
|
|
77
92
|
end
|
|
78
93
|
end
|
|
94
|
+
# The alternative reference for this payout method, if it's a projected payout method.
|
|
95
|
+
attr_reader :alternative_reference
|
|
79
96
|
# Whether this bank account object was archived. Bank account objects can be archived through
|
|
80
97
|
# the /archive API, and they will not be automatically archived by Stripe. Archived bank account objects
|
|
81
98
|
# cannot be used as outbound destinations and will not appear in the outbound destination list.
|
|
@@ -101,7 +118,10 @@ module Stripe
|
|
|
101
118
|
attr_reader :livemode
|
|
102
119
|
|
|
103
120
|
def self.inner_class_types
|
|
104
|
-
@inner_class_types = {
|
|
121
|
+
@inner_class_types = {
|
|
122
|
+
alternative_reference: AlternativeReference,
|
|
123
|
+
confirmation_of_payee: ConfirmationOfPayee,
|
|
124
|
+
}
|
|
105
125
|
end
|
|
106
126
|
|
|
107
127
|
def self.field_remappings
|
|
@@ -12,6 +12,21 @@ module Stripe
|
|
|
12
12
|
"v2.core.vault.us_bank_account"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class AlternativeReference < ::Stripe::StripeObject
|
|
16
|
+
# The ID of the alternative resource being referenced.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
# The type of the alternative reference (e.g., external_account for V1 external accounts).
|
|
19
|
+
attr_reader :type
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
15
30
|
class Verification < ::Stripe::StripeObject
|
|
16
31
|
class MicrodepositVerificationDetails < ::Stripe::StripeObject
|
|
17
32
|
# Time when microdeposits will expire and have to be re-sent.
|
|
@@ -44,6 +59,8 @@ module Stripe
|
|
|
44
59
|
@field_remappings = {}
|
|
45
60
|
end
|
|
46
61
|
end
|
|
62
|
+
# The alternative reference for this payout method, if it's a projected payout method.
|
|
63
|
+
attr_reader :alternative_reference
|
|
47
64
|
# Whether this USBankAccount object was archived.
|
|
48
65
|
attr_reader :archived
|
|
49
66
|
# Closed Enum. The type of bank account (checking or savings).
|
|
@@ -70,7 +87,10 @@ module Stripe
|
|
|
70
87
|
attr_reader :livemode
|
|
71
88
|
|
|
72
89
|
def self.inner_class_types
|
|
73
|
-
@inner_class_types = {
|
|
90
|
+
@inner_class_types = {
|
|
91
|
+
alternative_reference: AlternativeReference,
|
|
92
|
+
verification: Verification,
|
|
93
|
+
}
|
|
74
94
|
end
|
|
75
95
|
|
|
76
96
|
def self.field_remappings
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Iam
|
|
7
|
+
# An API key.
|
|
8
|
+
class ApiKey < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.iam.api_key"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.iam.api_key"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class ManagedBy < ::Stripe::StripeObject
|
|
15
|
+
class Application < ::Stripe::StripeObject
|
|
16
|
+
# Identifier of the application.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# The type of entity.
|
|
28
|
+
attr_reader :type
|
|
29
|
+
# An application.
|
|
30
|
+
attr_reader :application
|
|
31
|
+
|
|
32
|
+
def self.inner_class_types
|
|
33
|
+
@inner_class_types = { application: Application }
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.field_remappings
|
|
37
|
+
@field_remappings = {}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class PublishableKey < ::Stripe::StripeObject
|
|
42
|
+
# The plaintext token for the API key.
|
|
43
|
+
attr_reader :token
|
|
44
|
+
|
|
45
|
+
def self.inner_class_types
|
|
46
|
+
@inner_class_types = {}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def self.field_remappings
|
|
50
|
+
@field_remappings = {}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class SecretKey < ::Stripe::StripeObject
|
|
55
|
+
class EncryptedSecret < ::Stripe::StripeObject
|
|
56
|
+
# The encrypted secret data in base64 format.
|
|
57
|
+
attr_reader :ciphertext
|
|
58
|
+
# The format of the encrypted secret (e.g., jwe_compact).
|
|
59
|
+
attr_reader :format
|
|
60
|
+
# The caller's identifier of the public key provided.
|
|
61
|
+
attr_reader :recipient_key_id
|
|
62
|
+
|
|
63
|
+
def self.inner_class_types
|
|
64
|
+
@inner_class_types = {}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def self.field_remappings
|
|
68
|
+
@field_remappings = {}
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
# The encrypted secret for the API key. Only included when a key is first created.
|
|
72
|
+
attr_reader :encrypted_secret
|
|
73
|
+
# Redacted version of the secret token for display purposes.
|
|
74
|
+
attr_reader :secret_token_redacted
|
|
75
|
+
# The plaintext token for the API key. Only included for testmode keys.
|
|
76
|
+
attr_reader :token
|
|
77
|
+
|
|
78
|
+
def self.inner_class_types
|
|
79
|
+
@inner_class_types = { encrypted_secret: EncryptedSecret }
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def self.field_remappings
|
|
83
|
+
@field_remappings = {}
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
# Timestamp when the API key was created.
|
|
87
|
+
attr_reader :created
|
|
88
|
+
# Timestamp when the API key expires.
|
|
89
|
+
attr_reader :expires_at
|
|
90
|
+
# Unique identifier of the API key.
|
|
91
|
+
attr_reader :id
|
|
92
|
+
# List of IP addresses allowed to use this API key. Addresses use IPv4 protocol, and may be a CIDR range (e.g., [100.10.38.255, 100.10.38.0/24]).
|
|
93
|
+
attr_reader :ip_allowlist
|
|
94
|
+
# Timestamp when the API key was last used.
|
|
95
|
+
attr_reader :last_used
|
|
96
|
+
# Account that manages this API key (for keys managed by platforms).
|
|
97
|
+
attr_reader :managed_by
|
|
98
|
+
# Name of the API key.
|
|
99
|
+
attr_reader :name
|
|
100
|
+
# Note or description for the API key.
|
|
101
|
+
attr_reader :note
|
|
102
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
103
|
+
attr_reader :object
|
|
104
|
+
# Current status of the API key (e.g., active, expired).
|
|
105
|
+
attr_reader :status
|
|
106
|
+
# Type of the API key.
|
|
107
|
+
attr_reader :type
|
|
108
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
109
|
+
attr_reader :livemode
|
|
110
|
+
# Token set for a publishable key.
|
|
111
|
+
attr_reader :publishable_key
|
|
112
|
+
# Token set for a secret key.
|
|
113
|
+
attr_reader :secret_key
|
|
114
|
+
|
|
115
|
+
def self.inner_class_types
|
|
116
|
+
@inner_class_types = {
|
|
117
|
+
managed_by: ManagedBy,
|
|
118
|
+
publishable_key: PublishableKey,
|
|
119
|
+
secret_key: SecretKey,
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def self.field_remappings
|
|
124
|
+
@field_remappings = {}
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
# The CurrencyConversion object. Contains details such as the amount debited and credited and the FinancialAccount the CurrencyConversion was performed on.
|
|
8
|
+
class CurrencyConversion < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.money_management.currency_conversion"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.money_management.currency_conversion"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class From < ::Stripe::StripeObject
|
|
15
|
+
class Amount < ::Stripe::StripeObject
|
|
16
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
17
|
+
attr_reader :value
|
|
18
|
+
# 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).
|
|
19
|
+
attr_reader :currency
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Amount object.
|
|
30
|
+
attr_reader :amount
|
|
31
|
+
|
|
32
|
+
def self.inner_class_types
|
|
33
|
+
@inner_class_types = { amount: Amount }
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.field_remappings
|
|
37
|
+
@field_remappings = {}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class To < ::Stripe::StripeObject
|
|
42
|
+
class Amount < ::Stripe::StripeObject
|
|
43
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
44
|
+
attr_reader :value
|
|
45
|
+
# 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).
|
|
46
|
+
attr_reader :currency
|
|
47
|
+
|
|
48
|
+
def self.inner_class_types
|
|
49
|
+
@inner_class_types = {}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def self.field_remappings
|
|
53
|
+
@field_remappings = {}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
# Amount object.
|
|
57
|
+
attr_reader :amount
|
|
58
|
+
|
|
59
|
+
def self.inner_class_types
|
|
60
|
+
@inner_class_types = { amount: Amount }
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def self.field_remappings
|
|
64
|
+
@field_remappings = {}
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
# The time the CurrencyConversion was created at.
|
|
68
|
+
attr_reader :created
|
|
69
|
+
# The exchange rate used when processing the CurrencyConversion.
|
|
70
|
+
attr_reader :exchange_rate
|
|
71
|
+
# The FinancialAccount the CurrencyConversion was performed on.
|
|
72
|
+
attr_reader :financial_account
|
|
73
|
+
# The from block containing what was debited.
|
|
74
|
+
attr_reader :from
|
|
75
|
+
# The id of the CurrencyConversion.
|
|
76
|
+
attr_reader :id
|
|
77
|
+
# If the CurrencyConversion was performed in livemode or not.
|
|
78
|
+
attr_reader :livemode
|
|
79
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
80
|
+
attr_reader :object
|
|
81
|
+
# The to block containing what was credited.
|
|
82
|
+
attr_reader :to
|
|
83
|
+
|
|
84
|
+
def self.inner_class_types
|
|
85
|
+
@inner_class_types = { from: From, to: To }
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def self.field_remappings
|
|
89
|
+
@field_remappings = {}
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -76,6 +76,19 @@ module Stripe
|
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
class ManagedBy < ::Stripe::StripeObject
|
|
80
|
+
# Enum describing the Stripe product that is managing this FinancialAccount.
|
|
81
|
+
attr_reader :type
|
|
82
|
+
|
|
83
|
+
def self.inner_class_types
|
|
84
|
+
@inner_class_types = {}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def self.field_remappings
|
|
88
|
+
@field_remappings = {}
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
79
92
|
class Other < ::Stripe::StripeObject
|
|
80
93
|
# The type of the FinancialAccount, represented as a string. Upgrade your API version to see the type reflected in `financial_account.type`.
|
|
81
94
|
attr_reader :type
|
|
@@ -89,6 +102,21 @@ module Stripe
|
|
|
89
102
|
end
|
|
90
103
|
end
|
|
91
104
|
|
|
105
|
+
class Payments < ::Stripe::StripeObject
|
|
106
|
+
# The currency that non-settlement currency payments will be converted to.
|
|
107
|
+
attr_reader :default_currency
|
|
108
|
+
# Settlement currencies enabled for this FinancialAccount. Payments in other currencies will be automatically converted to `default_currency`.
|
|
109
|
+
attr_reader :settlement_currencies
|
|
110
|
+
|
|
111
|
+
def self.inner_class_types
|
|
112
|
+
@inner_class_types = {}
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def self.field_remappings
|
|
116
|
+
@field_remappings = {}
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
92
120
|
class StatusDetails < ::Stripe::StripeObject
|
|
93
121
|
class Closed < ::Stripe::StripeObject
|
|
94
122
|
class ForwardingSettings < ::Stripe::StripeObject
|
|
@@ -152,12 +180,17 @@ module Stripe
|
|
|
152
180
|
attr_reader :display_name
|
|
153
181
|
# Unique identifier for the object.
|
|
154
182
|
attr_reader :id
|
|
183
|
+
# If this is a managed FinancialAccount, `managed_by` indicates the product that created and manages this FinancialAccount. For managed FinancialAccounts,
|
|
184
|
+
# creation of money management resources can only be orchestrated by the managing product.
|
|
185
|
+
attr_reader :managed_by
|
|
155
186
|
# Metadata associated with the FinancialAccount.
|
|
156
187
|
attr_reader :metadata
|
|
157
188
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
158
189
|
attr_reader :object
|
|
159
190
|
# If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`.
|
|
160
191
|
attr_reader :other
|
|
192
|
+
# If this is a `payments` FinancialAccount, this hash include details specific to `payments` FinancialAccount.
|
|
193
|
+
attr_reader :payments
|
|
161
194
|
# Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.
|
|
162
195
|
attr_reader :status
|
|
163
196
|
# Attribute for field status_details
|
|
@@ -173,7 +206,9 @@ module Stripe
|
|
|
173
206
|
def self.inner_class_types
|
|
174
207
|
@inner_class_types = {
|
|
175
208
|
balance: Balance,
|
|
209
|
+
managed_by: ManagedBy,
|
|
176
210
|
other: Other,
|
|
211
|
+
payments: Payments,
|
|
177
212
|
status_details: StatusDetails,
|
|
178
213
|
storage: Storage,
|
|
179
214
|
}
|
|
@@ -27,11 +27,31 @@ module Stripe
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
class DeliveryOptions < ::Stripe::StripeObject
|
|
30
|
+
class PaperCheck < ::Stripe::StripeObject
|
|
31
|
+
# Memo printed on the memo field of the check.
|
|
32
|
+
attr_reader :memo
|
|
33
|
+
# Open Enum. Shipping speed of the paper check.
|
|
34
|
+
attr_reader :shipping_speed
|
|
35
|
+
# Signature for the paper check.
|
|
36
|
+
attr_reader :signature
|
|
37
|
+
|
|
38
|
+
def self.inner_class_types
|
|
39
|
+
@inner_class_types = {}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.field_remappings
|
|
43
|
+
@field_remappings = {}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
# Open Enum. Speed of the payout.
|
|
47
|
+
attr_reader :speed
|
|
30
48
|
# Open Enum. Method for bank account.
|
|
31
49
|
attr_reader :bank_account
|
|
50
|
+
# Delivery options for paper check.
|
|
51
|
+
attr_reader :paper_check
|
|
32
52
|
|
|
33
53
|
def self.inner_class_types
|
|
34
|
-
@inner_class_types = {}
|
|
54
|
+
@inner_class_types = { paper_check: PaperCheck }
|
|
35
55
|
end
|
|
36
56
|
|
|
37
57
|
def self.field_remappings
|
|
@@ -193,6 +213,67 @@ module Stripe
|
|
|
193
213
|
@field_remappings = {}
|
|
194
214
|
end
|
|
195
215
|
end
|
|
216
|
+
|
|
217
|
+
class TrackingDetails < ::Stripe::StripeObject
|
|
218
|
+
class PaperCheck < ::Stripe::StripeObject
|
|
219
|
+
class MailingAddress < ::Stripe::StripeObject
|
|
220
|
+
# City, district, suburb, town, or village.
|
|
221
|
+
attr_reader :city
|
|
222
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
223
|
+
attr_reader :country
|
|
224
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
225
|
+
attr_reader :line1
|
|
226
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
227
|
+
attr_reader :line2
|
|
228
|
+
# ZIP or postal code.
|
|
229
|
+
attr_reader :postal_code
|
|
230
|
+
# State, county, province, or region.
|
|
231
|
+
attr_reader :state
|
|
232
|
+
# Town or district.
|
|
233
|
+
attr_reader :town
|
|
234
|
+
|
|
235
|
+
def self.inner_class_types
|
|
236
|
+
@inner_class_types = {}
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
def self.field_remappings
|
|
240
|
+
@field_remappings = {}
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
# Open Enum. Carrier of the paper check.
|
|
244
|
+
attr_reader :carrier
|
|
245
|
+
# Check number.
|
|
246
|
+
attr_reader :check_number
|
|
247
|
+
# Postal code of the latest tracking update.
|
|
248
|
+
attr_reader :current_postal_code
|
|
249
|
+
# Mailing address of the paper check.
|
|
250
|
+
attr_reader :mailing_address
|
|
251
|
+
# Tracking number for the check.
|
|
252
|
+
attr_reader :tracking_number
|
|
253
|
+
# Open Enum. Tracking status of the paper check.
|
|
254
|
+
attr_reader :tracking_status
|
|
255
|
+
# When the tracking details were last updated.
|
|
256
|
+
attr_reader :updated_at
|
|
257
|
+
|
|
258
|
+
def self.inner_class_types
|
|
259
|
+
@inner_class_types = { mailing_address: MailingAddress }
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
def self.field_remappings
|
|
263
|
+
@field_remappings = {}
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
# Paper check tracking details.
|
|
267
|
+
attr_reader :paper_check
|
|
268
|
+
|
|
269
|
+
def self.inner_class_types
|
|
270
|
+
@inner_class_types = { paper_check: PaperCheck }
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
def self.field_remappings
|
|
274
|
+
@field_remappings = {}
|
|
275
|
+
end
|
|
276
|
+
end
|
|
196
277
|
# The "presentment amount" for the OutboundPayment.
|
|
197
278
|
attr_reader :amount
|
|
198
279
|
# Returns true if the OutboundPayment can be canceled, and false otherwise.
|
|
@@ -221,6 +302,8 @@ module Stripe
|
|
|
221
302
|
attr_reader :receipt_url
|
|
222
303
|
# Details about the OutboundPayment notification settings for recipient.
|
|
223
304
|
attr_reader :recipient_notification
|
|
305
|
+
# The recipient verification id for this OutboundPayment. Only required for countries with regulatory mandates to verify recipient names before OutboundPayment creation.
|
|
306
|
+
attr_reader :recipient_verification
|
|
224
307
|
# The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
|
225
308
|
attr_reader :statement_descriptor
|
|
226
309
|
# Closed Enum. Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`.
|
|
@@ -236,6 +319,8 @@ module Stripe
|
|
|
236
319
|
attr_reader :to
|
|
237
320
|
# A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
|
|
238
321
|
attr_reader :trace_id
|
|
322
|
+
# Information to track this OutboundPayment with the recipient bank.
|
|
323
|
+
attr_reader :tracking_details
|
|
239
324
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
240
325
|
attr_reader :livemode
|
|
241
326
|
|
|
@@ -249,6 +334,7 @@ module Stripe
|
|
|
249
334
|
status_transitions: StatusTransitions,
|
|
250
335
|
to: To,
|
|
251
336
|
trace_id: TraceId,
|
|
337
|
+
tracking_details: TrackingDetails,
|
|
252
338
|
}
|
|
253
339
|
end
|
|
254
340
|
|