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
|
@@ -89,6 +89,8 @@ module Stripe
|
|
|
89
89
|
attr_accessor :tax_behavior
|
|
90
90
|
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID to use for this line item. If not provided, we will use the tax code from the provided `product` param. If neither `tax_code` nor `product` is provided, we will use the default tax code from your Tax Settings.
|
|
91
91
|
attr_accessor :tax_code
|
|
92
|
+
# A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
93
|
+
attr_accessor :performance_location
|
|
92
94
|
|
|
93
95
|
def initialize(
|
|
94
96
|
amount: nil,
|
|
@@ -97,7 +99,8 @@ module Stripe
|
|
|
97
99
|
quantity: nil,
|
|
98
100
|
reference: nil,
|
|
99
101
|
tax_behavior: nil,
|
|
100
|
-
tax_code: nil
|
|
102
|
+
tax_code: nil,
|
|
103
|
+
performance_location: nil
|
|
101
104
|
)
|
|
102
105
|
@amount = amount
|
|
103
106
|
@metadata = metadata
|
|
@@ -106,6 +109,7 @@ module Stripe
|
|
|
106
109
|
@reference = reference
|
|
107
110
|
@tax_behavior = tax_behavior
|
|
108
111
|
@tax_code = tax_code
|
|
112
|
+
@performance_location = performance_location
|
|
109
113
|
end
|
|
110
114
|
end
|
|
111
115
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class LocationCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class Address < ::Stripe::RequestParams
|
|
8
|
+
# City, district, suburb, town, or village.
|
|
9
|
+
attr_accessor :city
|
|
10
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
11
|
+
attr_accessor :country
|
|
12
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
13
|
+
attr_accessor :line1
|
|
14
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
15
|
+
attr_accessor :line2
|
|
16
|
+
# ZIP or postal code.
|
|
17
|
+
attr_accessor :postal_code
|
|
18
|
+
# State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
|
|
19
|
+
attr_accessor :state
|
|
20
|
+
|
|
21
|
+
def initialize(
|
|
22
|
+
city: nil,
|
|
23
|
+
country: nil,
|
|
24
|
+
line1: nil,
|
|
25
|
+
line2: nil,
|
|
26
|
+
postal_code: nil,
|
|
27
|
+
state: nil
|
|
28
|
+
)
|
|
29
|
+
@city = city
|
|
30
|
+
@country = country
|
|
31
|
+
@line1 = line1
|
|
32
|
+
@line2 = line2
|
|
33
|
+
@postal_code = postal_code
|
|
34
|
+
@state = state
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
# The physical address of the tax location.
|
|
38
|
+
attr_accessor :address
|
|
39
|
+
# Details to identify the tax location by its venue, types of events held, or available services, such as "A spacious auditorium suitable for large concerts and events.".
|
|
40
|
+
attr_accessor :description
|
|
41
|
+
# Specifies which fields in the response should be expanded.
|
|
42
|
+
attr_accessor :expand
|
|
43
|
+
# The type of tax location. The only supported value is "performance".
|
|
44
|
+
attr_accessor :type
|
|
45
|
+
|
|
46
|
+
def initialize(address: nil, description: nil, expand: nil, type: nil)
|
|
47
|
+
@address = address
|
|
48
|
+
@description = description
|
|
49
|
+
@expand = expand
|
|
50
|
+
@type = type
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class LocationListParams < ::Stripe::RequestParams
|
|
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.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
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.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
# Type of the tax location. Currently the only option is `performance`.
|
|
16
|
+
attr_accessor :type
|
|
17
|
+
|
|
18
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil, type: nil)
|
|
19
|
+
@ending_before = ending_before
|
|
20
|
+
@expand = expand
|
|
21
|
+
@limit = limit
|
|
22
|
+
@starting_after = starting_after
|
|
23
|
+
@type = type
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
module
|
|
6
|
-
class
|
|
5
|
+
module Tax
|
|
6
|
+
class LocationRetrieveParams < ::Stripe::RequestParams
|
|
7
7
|
# Specifies which fields in the response should be expanded.
|
|
8
8
|
attr_accessor :expand
|
|
9
9
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module Capital
|
|
7
|
+
class FinancingOfferCreateParams < ::Stripe::RequestParams
|
|
8
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
9
|
+
attr_accessor :advance_amount
|
|
10
|
+
# Specifies which fields in the response should be expanded.
|
|
11
|
+
attr_accessor :expand
|
|
12
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
13
|
+
attr_accessor :fee_amount
|
|
14
|
+
# The type of financing offer.
|
|
15
|
+
attr_accessor :financing_type
|
|
16
|
+
# The status of the financing offer.
|
|
17
|
+
attr_accessor :status
|
|
18
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
19
|
+
attr_accessor :withhold_rate
|
|
20
|
+
|
|
21
|
+
def initialize(
|
|
22
|
+
advance_amount: nil,
|
|
23
|
+
expand: nil,
|
|
24
|
+
fee_amount: nil,
|
|
25
|
+
financing_type: nil,
|
|
26
|
+
status: nil,
|
|
27
|
+
withhold_rate: nil
|
|
28
|
+
)
|
|
29
|
+
@advance_amount = advance_amount
|
|
30
|
+
@expand = expand
|
|
31
|
+
@fee_amount = fee_amount
|
|
32
|
+
@financing_type = financing_type
|
|
33
|
+
@status = status
|
|
34
|
+
@withhold_rate = withhold_rate
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module Capital
|
|
7
|
+
class FinancingOfferRefillParams < ::Stripe::RequestParams
|
|
8
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
9
|
+
attr_accessor :advance_amount
|
|
10
|
+
# Specifies which fields in the response should be expanded.
|
|
11
|
+
attr_accessor :expand
|
|
12
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
13
|
+
attr_accessor :fee_amount
|
|
14
|
+
# The type of financing offer
|
|
15
|
+
attr_accessor :financing_type
|
|
16
|
+
# The status of the financing offer
|
|
17
|
+
attr_accessor :status
|
|
18
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
19
|
+
attr_accessor :withhold_rate
|
|
20
|
+
|
|
21
|
+
def initialize(
|
|
22
|
+
advance_amount: nil,
|
|
23
|
+
expand: nil,
|
|
24
|
+
fee_amount: nil,
|
|
25
|
+
financing_type: nil,
|
|
26
|
+
status: nil,
|
|
27
|
+
withhold_rate: nil
|
|
28
|
+
)
|
|
29
|
+
@advance_amount = advance_amount
|
|
30
|
+
@expand = expand
|
|
31
|
+
@fee_amount = fee_amount
|
|
32
|
+
@financing_type = financing_type
|
|
33
|
+
@status = status
|
|
34
|
+
@withhold_rate = withhold_rate
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module SharedPayment
|
|
7
|
+
class GrantedTokenCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class UsageLimits < ::Stripe::RequestParams
|
|
9
|
+
# 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).
|
|
10
|
+
attr_accessor :currency
|
|
11
|
+
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
12
|
+
attr_accessor :expires_at
|
|
13
|
+
# Max amount that can be captured using this SharedPaymentToken
|
|
14
|
+
attr_accessor :max_amount
|
|
15
|
+
|
|
16
|
+
def initialize(currency: nil, expires_at: nil, max_amount: nil)
|
|
17
|
+
@currency = currency
|
|
18
|
+
@expires_at = expires_at
|
|
19
|
+
@max_amount = max_amount
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any.
|
|
23
|
+
attr_accessor :customer
|
|
24
|
+
# Specifies which fields in the response should be expanded.
|
|
25
|
+
attr_accessor :expand
|
|
26
|
+
# The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken.
|
|
27
|
+
attr_accessor :payment_method
|
|
28
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken.
|
|
29
|
+
attr_accessor :shared_metadata
|
|
30
|
+
# Limits on how this SharedPaymentGrantedToken can be used.
|
|
31
|
+
attr_accessor :usage_limits
|
|
32
|
+
|
|
33
|
+
def initialize(
|
|
34
|
+
customer: nil,
|
|
35
|
+
expand: nil,
|
|
36
|
+
payment_method: nil,
|
|
37
|
+
shared_metadata: nil,
|
|
38
|
+
usage_limits: nil
|
|
39
|
+
)
|
|
40
|
+
@customer = customer
|
|
41
|
+
@expand = expand
|
|
42
|
+
@payment_method = payment_method
|
|
43
|
+
@shared_metadata = shared_metadata
|
|
44
|
+
@usage_limits = usage_limits
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module SharedPayment
|
|
7
|
+
class GrantedTokenRevokeParams < ::Stripe::RequestParams
|
|
8
|
+
# Specifies which fields in the response should be expanded.
|
|
9
|
+
attr_accessor :expand
|
|
10
|
+
|
|
11
|
+
def initialize(expand: nil)
|
|
12
|
+
@expand = expand
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -462,6 +462,30 @@ module Stripe
|
|
|
462
462
|
end
|
|
463
463
|
end
|
|
464
464
|
|
|
465
|
+
class SelfReportedIncome < ::Stripe::RequestParams
|
|
466
|
+
# The amount in the minor currency unit (for example, cents for USD).
|
|
467
|
+
attr_accessor :amount
|
|
468
|
+
# 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).
|
|
469
|
+
attr_accessor :currency
|
|
470
|
+
|
|
471
|
+
def initialize(amount: nil, currency: nil)
|
|
472
|
+
@amount = amount
|
|
473
|
+
@currency = currency
|
|
474
|
+
end
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
|
|
478
|
+
# The amount in the minor currency unit (for example, cents for USD).
|
|
479
|
+
attr_accessor :amount
|
|
480
|
+
# 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).
|
|
481
|
+
attr_accessor :currency
|
|
482
|
+
|
|
483
|
+
def initialize(amount: nil, currency: nil)
|
|
484
|
+
@amount = amount
|
|
485
|
+
@currency = currency
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
465
489
|
class Verification < ::Stripe::RequestParams
|
|
466
490
|
class AdditionalDocument < ::Stripe::RequestParams
|
|
467
491
|
# The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
@@ -538,6 +562,10 @@ module Stripe
|
|
|
538
562
|
attr_accessor :registered_address
|
|
539
563
|
# Describes the person’s relationship to the account.
|
|
540
564
|
attr_accessor :relationship
|
|
565
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
566
|
+
attr_accessor :self_reported_income
|
|
567
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
568
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
541
569
|
# The last four digits of the individual's Social Security Number (U.S. only).
|
|
542
570
|
attr_accessor :ssn_last_4
|
|
543
571
|
# The individual's verification document information.
|
|
@@ -565,6 +593,8 @@ module Stripe
|
|
|
565
593
|
political_exposure: nil,
|
|
566
594
|
registered_address: nil,
|
|
567
595
|
relationship: nil,
|
|
596
|
+
self_reported_income: nil,
|
|
597
|
+
self_reported_monthly_housing_payment: nil,
|
|
568
598
|
ssn_last_4: nil,
|
|
569
599
|
verification: nil
|
|
570
600
|
)
|
|
@@ -589,6 +619,8 @@ module Stripe
|
|
|
589
619
|
@political_exposure = political_exposure
|
|
590
620
|
@registered_address = registered_address
|
|
591
621
|
@relationship = relationship
|
|
622
|
+
@self_reported_income = self_reported_income
|
|
623
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
592
624
|
@ssn_last_4 = ssn_last_4
|
|
593
625
|
@verification = verification
|
|
594
626
|
end
|
|
@@ -976,6 +1008,30 @@ module Stripe
|
|
|
976
1008
|
end
|
|
977
1009
|
end
|
|
978
1010
|
|
|
1011
|
+
class SelfReportedIncome < ::Stripe::RequestParams
|
|
1012
|
+
# The amount in the minor currency unit (for example, cents for USD).
|
|
1013
|
+
attr_accessor :amount
|
|
1014
|
+
# 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).
|
|
1015
|
+
attr_accessor :currency
|
|
1016
|
+
|
|
1017
|
+
def initialize(amount: nil, currency: nil)
|
|
1018
|
+
@amount = amount
|
|
1019
|
+
@currency = currency
|
|
1020
|
+
end
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
|
|
1024
|
+
# The amount in the minor currency unit (for example, cents for USD).
|
|
1025
|
+
attr_accessor :amount
|
|
1026
|
+
# 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).
|
|
1027
|
+
attr_accessor :currency
|
|
1028
|
+
|
|
1029
|
+
def initialize(amount: nil, currency: nil)
|
|
1030
|
+
@amount = amount
|
|
1031
|
+
@currency = currency
|
|
1032
|
+
end
|
|
1033
|
+
end
|
|
1034
|
+
|
|
979
1035
|
class UsCfpbData < ::Stripe::RequestParams
|
|
980
1036
|
class EthnicityDetails < ::Stripe::RequestParams
|
|
981
1037
|
# The persons ethnicity
|
|
@@ -1096,6 +1152,10 @@ module Stripe
|
|
|
1096
1152
|
attr_accessor :registered_address
|
|
1097
1153
|
# The relationship that this person has with the account's legal entity.
|
|
1098
1154
|
attr_accessor :relationship
|
|
1155
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
1156
|
+
attr_accessor :self_reported_income
|
|
1157
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
1158
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
1099
1159
|
# The last four digits of the person's Social Security number (U.S. only).
|
|
1100
1160
|
attr_accessor :ssn_last_4
|
|
1101
1161
|
# Demographic data related to the person.
|
|
@@ -1128,6 +1188,8 @@ module Stripe
|
|
|
1128
1188
|
political_exposure: nil,
|
|
1129
1189
|
registered_address: nil,
|
|
1130
1190
|
relationship: nil,
|
|
1191
|
+
self_reported_income: nil,
|
|
1192
|
+
self_reported_monthly_housing_payment: nil,
|
|
1131
1193
|
ssn_last_4: nil,
|
|
1132
1194
|
us_cfpb_data: nil,
|
|
1133
1195
|
verification: nil
|
|
@@ -1156,6 +1218,8 @@ module Stripe
|
|
|
1156
1218
|
@political_exposure = political_exposure
|
|
1157
1219
|
@registered_address = registered_address
|
|
1158
1220
|
@relationship = relationship
|
|
1221
|
+
@self_reported_income = self_reported_income
|
|
1222
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
1159
1223
|
@ssn_last_4 = ssn_last_4
|
|
1160
1224
|
@us_cfpb_data = us_cfpb_data
|
|
1161
1225
|
@verification = verification
|
|
@@ -5,6 +5,8 @@ module Stripe
|
|
|
5
5
|
class TransferCreateParams < ::Stripe::RequestParams
|
|
6
6
|
# A positive integer in cents (or local equivalent) representing how much to transfer.
|
|
7
7
|
attr_accessor :amount
|
|
8
|
+
# Attribute for param field application_fee_amount
|
|
9
|
+
attr_accessor :application_fee_amount
|
|
8
10
|
# Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies).
|
|
9
11
|
attr_accessor :currency
|
|
10
12
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
@@ -26,6 +28,7 @@ module Stripe
|
|
|
26
28
|
|
|
27
29
|
def initialize(
|
|
28
30
|
amount: nil,
|
|
31
|
+
application_fee_amount: nil,
|
|
29
32
|
currency: nil,
|
|
30
33
|
description: nil,
|
|
31
34
|
destination: nil,
|
|
@@ -37,6 +40,7 @@ module Stripe
|
|
|
37
40
|
transfer_group: nil
|
|
38
41
|
)
|
|
39
42
|
@amount = amount
|
|
43
|
+
@application_fee_amount = application_fee_amount
|
|
40
44
|
@currency = currency
|
|
41
45
|
@description = description
|
|
42
46
|
@destination = destination
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Billing
|
|
7
|
-
class CadenceCancelParams < ::Stripe::RequestParams
|
|
7
|
+
class CadenceCancelParams < ::Stripe::RequestParams
|
|
8
|
+
# Additional resource to include in the response.
|
|
9
|
+
attr_accessor :include
|
|
10
|
+
|
|
11
|
+
def initialize(include: nil)
|
|
12
|
+
@include = include
|
|
13
|
+
end
|
|
14
|
+
end
|
|
8
15
|
end
|
|
9
16
|
end
|
|
10
17
|
end
|
|
@@ -225,6 +225,8 @@ module Stripe
|
|
|
225
225
|
end
|
|
226
226
|
# The billing cycle is the object that defines future billing cycle dates.
|
|
227
227
|
attr_accessor :billing_cycle
|
|
228
|
+
# Additional resource to include in the response.
|
|
229
|
+
attr_accessor :include
|
|
228
230
|
# A lookup key used to retrieve cadences dynamically from a static string. Maximum length of 200 characters.
|
|
229
231
|
attr_accessor :lookup_key
|
|
230
232
|
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
@@ -236,12 +238,14 @@ module Stripe
|
|
|
236
238
|
|
|
237
239
|
def initialize(
|
|
238
240
|
billing_cycle: nil,
|
|
241
|
+
include: nil,
|
|
239
242
|
lookup_key: nil,
|
|
240
243
|
metadata: nil,
|
|
241
244
|
payer: nil,
|
|
242
245
|
settings: nil
|
|
243
246
|
)
|
|
244
247
|
@billing_cycle = billing_cycle
|
|
248
|
+
@include = include
|
|
245
249
|
@lookup_key = lookup_key
|
|
246
250
|
@metadata = metadata
|
|
247
251
|
@payer = payer
|
|
@@ -54,6 +54,8 @@ module Stripe
|
|
|
54
54
|
@collection = collection
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
|
+
# Additional resource to include in the response.
|
|
58
|
+
attr_accessor :include
|
|
57
59
|
# A lookup key used to retrieve cadences dynamically from a static string. Maximum length of 200 characters.
|
|
58
60
|
attr_accessor :lookup_key
|
|
59
61
|
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
@@ -63,7 +65,8 @@ module Stripe
|
|
|
63
65
|
# The settings associated with the cadence.
|
|
64
66
|
attr_accessor :settings
|
|
65
67
|
|
|
66
|
-
def initialize(lookup_key: nil, metadata: nil, payer: nil, settings: nil)
|
|
68
|
+
def initialize(include: nil, lookup_key: nil, metadata: nil, payer: nil, settings: nil)
|
|
69
|
+
@include = include
|
|
67
70
|
@lookup_key = lookup_key
|
|
68
71
|
@metadata = metadata
|
|
69
72
|
@payer = payer
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class CustomPricingUnitCreateParams < ::Stripe::RequestParams
|
|
8
|
+
# Description that customers will see in the invoice line item.
|
|
9
|
+
# Maximum length of 10 characters.
|
|
10
|
+
attr_accessor :display_name
|
|
11
|
+
# An internal key you can use to search for a particular custom pricing unit item.
|
|
12
|
+
# Must be unique among items.
|
|
13
|
+
# Maximum length of 200 characters.
|
|
14
|
+
attr_accessor :lookup_key
|
|
15
|
+
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
16
|
+
attr_accessor :metadata
|
|
17
|
+
|
|
18
|
+
def initialize(display_name: nil, lookup_key: nil, metadata: nil)
|
|
19
|
+
@display_name = display_name
|
|
20
|
+
@lookup_key = lookup_key
|
|
21
|
+
@metadata = metadata
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class CustomPricingUnitListParams < ::Stripe::RequestParams
|
|
8
|
+
# Filter for active/inactive custom pricing units. Mutually exclusive with `lookup_keys`.
|
|
9
|
+
attr_accessor :active
|
|
10
|
+
# Optionally set the maximum number of results per page. Defaults to 20.
|
|
11
|
+
attr_accessor :limit
|
|
12
|
+
# Filter by lookup keys. Mutually exclusive with `active`.
|
|
13
|
+
# You can specify up to 10 lookup keys.
|
|
14
|
+
attr_accessor :lookup_keys
|
|
15
|
+
|
|
16
|
+
def initialize(active: nil, limit: nil, lookup_keys: nil)
|
|
17
|
+
@active = active
|
|
18
|
+
@limit = limit
|
|
19
|
+
@lookup_keys = lookup_keys
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class CustomPricingUnitUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
# Whether the Custom Pricing Unit is active.
|
|
9
|
+
attr_accessor :active
|
|
10
|
+
# Description that customers will see in the invoice line item.
|
|
11
|
+
attr_accessor :display_name
|
|
12
|
+
# An internal key you can use to search for a particular CustomPricingUnit item.
|
|
13
|
+
attr_accessor :lookup_key
|
|
14
|
+
# Set of key-value pairs that you can attach to an object.
|
|
15
|
+
attr_accessor :metadata
|
|
16
|
+
|
|
17
|
+
def initialize(active: nil, display_name: nil, lookup_key: nil, metadata: nil)
|
|
18
|
+
@active = active
|
|
19
|
+
@display_name = display_name
|
|
20
|
+
@lookup_key = lookup_key
|
|
21
|
+
@metadata = metadata
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class IntentCommitParams < ::Stripe::RequestParams
|
|
8
|
+
# ID of the PaymentIntent associated with this commit.
|
|
9
|
+
attr_accessor :payment_intent
|
|
10
|
+
|
|
11
|
+
def initialize(payment_intent: nil)
|
|
12
|
+
@payment_intent = payment_intent
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|