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
|
@@ -2209,6 +2209,95 @@ module Stripe
|
|
|
2209
2209
|
@field_remappings = {}
|
|
2210
2210
|
end
|
|
2211
2211
|
end
|
|
2212
|
+
|
|
2213
|
+
class CheckoutItem < ::Stripe::StripeObject
|
|
2214
|
+
class PricingPlanSubscriptionItem < ::Stripe::StripeObject
|
|
2215
|
+
class ComponentConfigurations < ::Stripe::StripeObject
|
|
2216
|
+
class LicenseFeeComponent < ::Stripe::StripeObject
|
|
2217
|
+
# Attribute for field quantity
|
|
2218
|
+
attr_reader :quantity
|
|
2219
|
+
|
|
2220
|
+
def self.inner_class_types
|
|
2221
|
+
@inner_class_types = {}
|
|
2222
|
+
end
|
|
2223
|
+
|
|
2224
|
+
def self.field_remappings
|
|
2225
|
+
@field_remappings = {}
|
|
2226
|
+
end
|
|
2227
|
+
end
|
|
2228
|
+
# Attribute for field type
|
|
2229
|
+
attr_reader :type
|
|
2230
|
+
# Attribute for field license_fee_component
|
|
2231
|
+
attr_reader :license_fee_component
|
|
2232
|
+
|
|
2233
|
+
def self.inner_class_types
|
|
2234
|
+
@inner_class_types = { license_fee_component: LicenseFeeComponent }
|
|
2235
|
+
end
|
|
2236
|
+
|
|
2237
|
+
def self.field_remappings
|
|
2238
|
+
@field_remappings = {}
|
|
2239
|
+
end
|
|
2240
|
+
end
|
|
2241
|
+
# Attribute for field pricing_plan
|
|
2242
|
+
attr_reader :pricing_plan
|
|
2243
|
+
# Attribute for field pricing_plan_version
|
|
2244
|
+
attr_reader :pricing_plan_version
|
|
2245
|
+
# Attribute for field metadata
|
|
2246
|
+
attr_reader :metadata
|
|
2247
|
+
# Attribute for field component_configurations
|
|
2248
|
+
attr_reader :component_configurations
|
|
2249
|
+
# Attribute for field pricing_plan_subscription
|
|
2250
|
+
attr_reader :pricing_plan_subscription
|
|
2251
|
+
# Attribute for field billing_cadence
|
|
2252
|
+
attr_reader :billing_cadence
|
|
2253
|
+
|
|
2254
|
+
def self.inner_class_types
|
|
2255
|
+
@inner_class_types = { component_configurations: ComponentConfigurations }
|
|
2256
|
+
end
|
|
2257
|
+
|
|
2258
|
+
def self.field_remappings
|
|
2259
|
+
@field_remappings = {}
|
|
2260
|
+
end
|
|
2261
|
+
end
|
|
2262
|
+
|
|
2263
|
+
class RateCardSubscriptionItem < ::Stripe::StripeObject
|
|
2264
|
+
# Attribute for field rate_card
|
|
2265
|
+
attr_reader :rate_card
|
|
2266
|
+
# Attribute for field metadata
|
|
2267
|
+
attr_reader :metadata
|
|
2268
|
+
# Attribute for field rate_card_version
|
|
2269
|
+
attr_reader :rate_card_version
|
|
2270
|
+
# Attribute for field billing_cadence
|
|
2271
|
+
attr_reader :billing_cadence
|
|
2272
|
+
# Attribute for field rate_card_subscription
|
|
2273
|
+
attr_reader :rate_card_subscription
|
|
2274
|
+
|
|
2275
|
+
def self.inner_class_types
|
|
2276
|
+
@inner_class_types = {}
|
|
2277
|
+
end
|
|
2278
|
+
|
|
2279
|
+
def self.field_remappings
|
|
2280
|
+
@field_remappings = {}
|
|
2281
|
+
end
|
|
2282
|
+
end
|
|
2283
|
+
# Attribute for field type
|
|
2284
|
+
attr_reader :type
|
|
2285
|
+
# Attribute for field rate_card_subscription_item
|
|
2286
|
+
attr_reader :rate_card_subscription_item
|
|
2287
|
+
# Attribute for field pricing_plan_subscription_item
|
|
2288
|
+
attr_reader :pricing_plan_subscription_item
|
|
2289
|
+
|
|
2290
|
+
def self.inner_class_types
|
|
2291
|
+
@inner_class_types = {
|
|
2292
|
+
rate_card_subscription_item: RateCardSubscriptionItem,
|
|
2293
|
+
pricing_plan_subscription_item: PricingPlanSubscriptionItem,
|
|
2294
|
+
}
|
|
2295
|
+
end
|
|
2296
|
+
|
|
2297
|
+
def self.field_remappings
|
|
2298
|
+
@field_remappings = {}
|
|
2299
|
+
end
|
|
2300
|
+
end
|
|
2212
2301
|
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
|
2213
2302
|
attr_reader :adaptive_pricing
|
|
2214
2303
|
# When set, provides configuration for actions to take if this Checkout Session expires.
|
|
@@ -2360,6 +2449,8 @@ module Stripe
|
|
|
2360
2449
|
attr_reader :url
|
|
2361
2450
|
# Wallet-specific configuration for this Checkout Session.
|
|
2362
2451
|
attr_reader :wallet_options
|
|
2452
|
+
# Attribute for field checkout_items
|
|
2453
|
+
attr_reader :checkout_items
|
|
2363
2454
|
|
|
2364
2455
|
# Creates a Checkout Session object.
|
|
2365
2456
|
def self.create(params = {}, opts = {})
|
|
@@ -2466,6 +2557,7 @@ module Stripe
|
|
|
2466
2557
|
tax_id_collection: TaxIdCollection,
|
|
2467
2558
|
total_details: TotalDetails,
|
|
2468
2559
|
wallet_options: WalletOptions,
|
|
2560
|
+
checkout_items: CheckoutItem,
|
|
2469
2561
|
}
|
|
2470
2562
|
end
|
|
2471
2563
|
|
|
@@ -307,6 +307,21 @@ module Stripe
|
|
|
307
307
|
end
|
|
308
308
|
|
|
309
309
|
class Card < ::Stripe::StripeObject
|
|
310
|
+
class Benefits < ::Stripe::StripeObject
|
|
311
|
+
# Issuer of this benefit card
|
|
312
|
+
attr_reader :issuer
|
|
313
|
+
# Available benefit programs for this card
|
|
314
|
+
attr_reader :programs
|
|
315
|
+
|
|
316
|
+
def self.inner_class_types
|
|
317
|
+
@inner_class_types = {}
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
def self.field_remappings
|
|
321
|
+
@field_remappings = {}
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
310
325
|
class Checks < ::Stripe::StripeObject
|
|
311
326
|
# If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
312
327
|
attr_reader :address_line1_check
|
|
@@ -720,6 +735,8 @@ module Stripe
|
|
|
720
735
|
@field_remappings = {}
|
|
721
736
|
end
|
|
722
737
|
end
|
|
738
|
+
# Attribute for field benefits
|
|
739
|
+
attr_reader :benefits
|
|
723
740
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
724
741
|
attr_reader :brand
|
|
725
742
|
# Checks on Card address and CVC if provided.
|
|
@@ -759,6 +776,7 @@ module Stripe
|
|
|
759
776
|
|
|
760
777
|
def self.inner_class_types
|
|
761
778
|
@inner_class_types = {
|
|
779
|
+
benefits: Benefits,
|
|
762
780
|
checks: Checks,
|
|
763
781
|
generated_from: GeneratedFrom,
|
|
764
782
|
networks: Networks,
|
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
# A requested session is a session that has been requested by a customer.
|
|
7
|
+
class RequestedSession < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
include Stripe::APIOperations::Save
|
|
10
|
+
|
|
11
|
+
OBJECT_NAME = "delegated_checkout.requested_session"
|
|
12
|
+
def self.object_name
|
|
13
|
+
"delegated_checkout.requested_session"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class FulfillmentDetails < ::Stripe::StripeObject
|
|
17
|
+
class Address < ::Stripe::StripeObject
|
|
18
|
+
# City, district, suburb, town, or village.
|
|
19
|
+
attr_reader :city
|
|
20
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
21
|
+
attr_reader :country
|
|
22
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
23
|
+
attr_reader :line1
|
|
24
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
25
|
+
attr_reader :line2
|
|
26
|
+
# ZIP or postal code.
|
|
27
|
+
attr_reader :postal_code
|
|
28
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
29
|
+
attr_reader :state
|
|
30
|
+
|
|
31
|
+
def self.inner_class_types
|
|
32
|
+
@inner_class_types = {}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.field_remappings
|
|
36
|
+
@field_remappings = {}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
class FulfillmentOption < ::Stripe::StripeObject
|
|
41
|
+
class Shipping < ::Stripe::StripeObject
|
|
42
|
+
class ShippingOption < ::Stripe::StripeObject
|
|
43
|
+
# The description of the shipping option.
|
|
44
|
+
attr_reader :description
|
|
45
|
+
# The display name of the shipping option.
|
|
46
|
+
attr_reader :display_name
|
|
47
|
+
# The earliest delivery time of the shipping option.
|
|
48
|
+
attr_reader :earliest_delivery_time
|
|
49
|
+
# The key of the shipping option.
|
|
50
|
+
attr_reader :key
|
|
51
|
+
# The latest delivery time of the shipping option.
|
|
52
|
+
attr_reader :latest_delivery_time
|
|
53
|
+
# The shipping amount of the shipping option.
|
|
54
|
+
attr_reader :shipping_amount
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = {}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
# The shipping options.
|
|
65
|
+
attr_reader :shipping_options
|
|
66
|
+
|
|
67
|
+
def self.inner_class_types
|
|
68
|
+
@inner_class_types = { shipping_options: ShippingOption }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def self.field_remappings
|
|
72
|
+
@field_remappings = {}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
# The shipping option.
|
|
76
|
+
attr_reader :shipping
|
|
77
|
+
# The type of the fulfillment option.
|
|
78
|
+
attr_reader :type
|
|
79
|
+
|
|
80
|
+
def self.inner_class_types
|
|
81
|
+
@inner_class_types = { shipping: Shipping }
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def self.field_remappings
|
|
85
|
+
@field_remappings = {}
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class SelectedFulfillmentOption < ::Stripe::StripeObject
|
|
90
|
+
class Shipping < ::Stripe::StripeObject
|
|
91
|
+
# The shipping option.
|
|
92
|
+
attr_reader :shipping_option
|
|
93
|
+
|
|
94
|
+
def self.inner_class_types
|
|
95
|
+
@inner_class_types = {}
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def self.field_remappings
|
|
99
|
+
@field_remappings = {}
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
# The shipping option.
|
|
103
|
+
attr_reader :shipping
|
|
104
|
+
# The type of the selected fulfillment option.
|
|
105
|
+
attr_reader :type
|
|
106
|
+
|
|
107
|
+
def self.inner_class_types
|
|
108
|
+
@inner_class_types = { shipping: Shipping }
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def self.field_remappings
|
|
112
|
+
@field_remappings = {}
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
# The fulfillment address.
|
|
116
|
+
attr_reader :address
|
|
117
|
+
# The email address for the fulfillment details.
|
|
118
|
+
attr_reader :email
|
|
119
|
+
# The fulfillment options.
|
|
120
|
+
attr_reader :fulfillment_options
|
|
121
|
+
# The name for the fulfillment details.
|
|
122
|
+
attr_reader :name
|
|
123
|
+
# The phone number for the fulfillment details.
|
|
124
|
+
attr_reader :phone
|
|
125
|
+
# The fulfillment option.
|
|
126
|
+
attr_reader :selected_fulfillment_option
|
|
127
|
+
|
|
128
|
+
def self.inner_class_types
|
|
129
|
+
@inner_class_types = {
|
|
130
|
+
address: Address,
|
|
131
|
+
fulfillment_options: FulfillmentOption,
|
|
132
|
+
selected_fulfillment_option: SelectedFulfillmentOption,
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def self.field_remappings
|
|
137
|
+
@field_remappings = {}
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
class LineItemDetail < ::Stripe::StripeObject
|
|
142
|
+
class ProductDetails < ::Stripe::StripeObject
|
|
143
|
+
class CustomAttribute < ::Stripe::StripeObject
|
|
144
|
+
# The display name of the custom attribute.
|
|
145
|
+
attr_reader :display_name
|
|
146
|
+
# The value of the custom attribute.
|
|
147
|
+
attr_reader :value
|
|
148
|
+
|
|
149
|
+
def self.inner_class_types
|
|
150
|
+
@inner_class_types = {}
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
def self.field_remappings
|
|
154
|
+
@field_remappings = {}
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
class Disclosure < ::Stripe::StripeObject
|
|
159
|
+
# The content of the disclosure.
|
|
160
|
+
attr_reader :content
|
|
161
|
+
# The content type of the disclosure.
|
|
162
|
+
attr_reader :content_type
|
|
163
|
+
# The type of disclosure.
|
|
164
|
+
attr_reader :type
|
|
165
|
+
|
|
166
|
+
def self.inner_class_types
|
|
167
|
+
@inner_class_types = {}
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def self.field_remappings
|
|
171
|
+
@field_remappings = {}
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
# Custom attributes for the product.
|
|
175
|
+
attr_reader :custom_attributes
|
|
176
|
+
# The description of the product.
|
|
177
|
+
attr_reader :description
|
|
178
|
+
# Disclosures for the product.
|
|
179
|
+
attr_reader :disclosures
|
|
180
|
+
# The images of the product.
|
|
181
|
+
attr_reader :images
|
|
182
|
+
# The title of the product.
|
|
183
|
+
attr_reader :title
|
|
184
|
+
|
|
185
|
+
def self.inner_class_types
|
|
186
|
+
@inner_class_types = { custom_attributes: CustomAttribute, disclosures: Disclosure }
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
def self.field_remappings
|
|
190
|
+
@field_remappings = {}
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
# The total discount for this line item. If no discount were applied, defaults to 0.
|
|
194
|
+
attr_reader :amount_discount
|
|
195
|
+
# The total before any discounts or taxes are applied.
|
|
196
|
+
attr_reader :amount_subtotal
|
|
197
|
+
# The key of the line item.
|
|
198
|
+
attr_reader :key
|
|
199
|
+
# Attribute for field product_details
|
|
200
|
+
attr_reader :product_details
|
|
201
|
+
# The quantity of the line item.
|
|
202
|
+
attr_reader :quantity
|
|
203
|
+
# The SKU ID of the line item.
|
|
204
|
+
attr_reader :sku_id
|
|
205
|
+
# The per-unit amount of the item before any discounts or taxes are applied.
|
|
206
|
+
attr_reader :unit_amount
|
|
207
|
+
|
|
208
|
+
def self.inner_class_types
|
|
209
|
+
@inner_class_types = { product_details: ProductDetails }
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
def self.field_remappings
|
|
213
|
+
@field_remappings = {}
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
class OrderDetails < ::Stripe::StripeObject
|
|
218
|
+
# The seller's order identifier.
|
|
219
|
+
attr_reader :order_id
|
|
220
|
+
# The URL to the order status.
|
|
221
|
+
attr_reader :order_status_url
|
|
222
|
+
|
|
223
|
+
def self.inner_class_types
|
|
224
|
+
@inner_class_types = {}
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
def self.field_remappings
|
|
228
|
+
@field_remappings = {}
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
class PaymentMethodPreview < ::Stripe::StripeObject
|
|
233
|
+
class BillingDetails < ::Stripe::StripeObject
|
|
234
|
+
class Address < ::Stripe::StripeObject
|
|
235
|
+
# City, district, suburb, town, or village.
|
|
236
|
+
attr_reader :city
|
|
237
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
238
|
+
attr_reader :country
|
|
239
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
240
|
+
attr_reader :line1
|
|
241
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
242
|
+
attr_reader :line2
|
|
243
|
+
# ZIP or postal code.
|
|
244
|
+
attr_reader :postal_code
|
|
245
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
246
|
+
attr_reader :state
|
|
247
|
+
|
|
248
|
+
def self.inner_class_types
|
|
249
|
+
@inner_class_types = {}
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
def self.field_remappings
|
|
253
|
+
@field_remappings = {}
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
# The billing address.
|
|
257
|
+
attr_reader :address
|
|
258
|
+
# The email address for the billing details.
|
|
259
|
+
attr_reader :email
|
|
260
|
+
# The name for the billing details.
|
|
261
|
+
attr_reader :name
|
|
262
|
+
# The phone number for the billing details.
|
|
263
|
+
attr_reader :phone
|
|
264
|
+
|
|
265
|
+
def self.inner_class_types
|
|
266
|
+
@inner_class_types = { address: Address }
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
def self.field_remappings
|
|
270
|
+
@field_remappings = {}
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
class Card < ::Stripe::StripeObject
|
|
275
|
+
# The expiry month of the card.
|
|
276
|
+
attr_reader :exp_month
|
|
277
|
+
# The expiry year of the card.
|
|
278
|
+
attr_reader :exp_year
|
|
279
|
+
# The last 4 digits of the card number.
|
|
280
|
+
attr_reader :last4
|
|
281
|
+
|
|
282
|
+
def self.inner_class_types
|
|
283
|
+
@inner_class_types = {}
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
def self.field_remappings
|
|
287
|
+
@field_remappings = {}
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
# The billing details of the payment method.
|
|
291
|
+
attr_reader :billing_details
|
|
292
|
+
# The card details of the payment method.
|
|
293
|
+
attr_reader :card
|
|
294
|
+
# The type of the payment method.
|
|
295
|
+
attr_reader :type
|
|
296
|
+
|
|
297
|
+
def self.inner_class_types
|
|
298
|
+
@inner_class_types = { billing_details: BillingDetails, card: Card }
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
def self.field_remappings
|
|
302
|
+
@field_remappings = {}
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
class SellerDetails < ::Stripe::StripeObject
|
|
307
|
+
def self.inner_class_types
|
|
308
|
+
@inner_class_types = {}
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
def self.field_remappings
|
|
312
|
+
@field_remappings = {}
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
class TotalDetails < ::Stripe::StripeObject
|
|
317
|
+
class ApplicableFee < ::Stripe::StripeObject
|
|
318
|
+
# The amount of the applicable fee.
|
|
319
|
+
attr_reader :amount
|
|
320
|
+
# The description of the applicable fee.
|
|
321
|
+
attr_reader :description
|
|
322
|
+
# The display name of the applicable fee.
|
|
323
|
+
attr_reader :display_name
|
|
324
|
+
|
|
325
|
+
def self.inner_class_types
|
|
326
|
+
@inner_class_types = {}
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
def self.field_remappings
|
|
330
|
+
@field_remappings = {}
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
# The amount of order-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
334
|
+
attr_reader :amount_cart_discount
|
|
335
|
+
# The amount fulfillment of the total details.
|
|
336
|
+
attr_reader :amount_fulfillment
|
|
337
|
+
# The amount of item-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
338
|
+
attr_reader :amount_items_discount
|
|
339
|
+
# The amount tax of the total details.
|
|
340
|
+
attr_reader :amount_tax
|
|
341
|
+
# The applicable fees of the total details.
|
|
342
|
+
attr_reader :applicable_fees
|
|
343
|
+
|
|
344
|
+
def self.inner_class_types
|
|
345
|
+
@inner_class_types = { applicable_fees: ApplicableFee }
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
def self.field_remappings
|
|
349
|
+
@field_remappings = {}
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
class RiskDetails < ::Stripe::StripeObject
|
|
354
|
+
class ClientDeviceMetadataDetails < ::Stripe::StripeObject
|
|
355
|
+
# The radar session for the client device.
|
|
356
|
+
attr_reader :radar_session
|
|
357
|
+
# The referrer of the client device.
|
|
358
|
+
attr_reader :referrer
|
|
359
|
+
# The remote IP address of the client device.
|
|
360
|
+
attr_reader :remote_ip
|
|
361
|
+
# The time spent on the page by the client device.
|
|
362
|
+
attr_reader :time_on_page_ms
|
|
363
|
+
# The user agent of the client device.
|
|
364
|
+
attr_reader :user_agent
|
|
365
|
+
|
|
366
|
+
def self.inner_class_types
|
|
367
|
+
@inner_class_types = {}
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
def self.field_remappings
|
|
371
|
+
@field_remappings = {}
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
# The risk metadata for the client device.
|
|
375
|
+
attr_reader :client_device_metadata_details
|
|
376
|
+
|
|
377
|
+
def self.inner_class_types
|
|
378
|
+
@inner_class_types = { client_device_metadata_details: ClientDeviceMetadataDetails }
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
def self.field_remappings
|
|
382
|
+
@field_remappings = {}
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
# The subtotal amount of the requested session.
|
|
386
|
+
attr_reader :amount_subtotal
|
|
387
|
+
# The total amount of the requested session.
|
|
388
|
+
attr_reader :amount_total
|
|
389
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
390
|
+
attr_reader :created_at
|
|
391
|
+
# 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).
|
|
392
|
+
attr_reader :currency
|
|
393
|
+
# The customer for this requested session.
|
|
394
|
+
attr_reader :customer
|
|
395
|
+
# Time at which the requested session expires. Measured in seconds since the Unix epoch.
|
|
396
|
+
attr_reader :expires_at
|
|
397
|
+
# The details of the fulfillment.
|
|
398
|
+
attr_reader :fulfillment_details
|
|
399
|
+
# Unique identifier for the object.
|
|
400
|
+
attr_reader :id
|
|
401
|
+
# The line items to be purchased.
|
|
402
|
+
attr_reader :line_item_details
|
|
403
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
404
|
+
attr_reader :livemode
|
|
405
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
406
|
+
attr_reader :metadata
|
|
407
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
408
|
+
attr_reader :object
|
|
409
|
+
# The details of the order.
|
|
410
|
+
attr_reader :order_details
|
|
411
|
+
# The payment method used for the requested session.
|
|
412
|
+
attr_reader :payment_method
|
|
413
|
+
# The preview of the payment method to be created when the requested session is confirmed.
|
|
414
|
+
attr_reader :payment_method_preview
|
|
415
|
+
# Attribute for field seller_details
|
|
416
|
+
attr_reader :seller_details
|
|
417
|
+
# Whether or not the payment method should be saved for future use.
|
|
418
|
+
attr_reader :setup_future_usage
|
|
419
|
+
# The metadata shared with the seller.
|
|
420
|
+
attr_reader :shared_metadata
|
|
421
|
+
# The SPT used for payment.
|
|
422
|
+
attr_reader :shared_payment_issued_token
|
|
423
|
+
# The status of the requested session.
|
|
424
|
+
attr_reader :status
|
|
425
|
+
# Attribute for field total_details
|
|
426
|
+
attr_reader :total_details
|
|
427
|
+
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
428
|
+
attr_reader :updated_at
|
|
429
|
+
# The risk details of the requested session.
|
|
430
|
+
attr_reader :risk_details
|
|
431
|
+
|
|
432
|
+
# Confirms a requested session
|
|
433
|
+
def confirm(params = {}, opts = {})
|
|
434
|
+
request_stripe_object(
|
|
435
|
+
method: :post,
|
|
436
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(self["id"]) }),
|
|
437
|
+
params: params,
|
|
438
|
+
opts: opts
|
|
439
|
+
)
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# Confirms a requested session
|
|
443
|
+
def self.confirm(requested_session, params = {}, opts = {})
|
|
444
|
+
request_stripe_object(
|
|
445
|
+
method: :post,
|
|
446
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(requested_session) }),
|
|
447
|
+
params: params,
|
|
448
|
+
opts: opts
|
|
449
|
+
)
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Creates a requested session
|
|
453
|
+
def self.create(params = {}, opts = {})
|
|
454
|
+
request_stripe_object(
|
|
455
|
+
method: :post,
|
|
456
|
+
path: "/v1/delegated_checkout/requested_sessions",
|
|
457
|
+
params: params,
|
|
458
|
+
opts: opts
|
|
459
|
+
)
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Expires a requested session
|
|
463
|
+
def expire(params = {}, opts = {})
|
|
464
|
+
request_stripe_object(
|
|
465
|
+
method: :post,
|
|
466
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(self["id"]) }),
|
|
467
|
+
params: params,
|
|
468
|
+
opts: opts
|
|
469
|
+
)
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Expires a requested session
|
|
473
|
+
def self.expire(requested_session, params = {}, opts = {})
|
|
474
|
+
request_stripe_object(
|
|
475
|
+
method: :post,
|
|
476
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(requested_session) }),
|
|
477
|
+
params: params,
|
|
478
|
+
opts: opts
|
|
479
|
+
)
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# Updates a requested session
|
|
483
|
+
def self.update(requested_session, params = {}, opts = {})
|
|
484
|
+
request_stripe_object(
|
|
485
|
+
method: :post,
|
|
486
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
|
|
487
|
+
params: params,
|
|
488
|
+
opts: opts
|
|
489
|
+
)
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
def self.inner_class_types
|
|
493
|
+
@inner_class_types = {
|
|
494
|
+
fulfillment_details: FulfillmentDetails,
|
|
495
|
+
line_item_details: LineItemDetail,
|
|
496
|
+
order_details: OrderDetails,
|
|
497
|
+
payment_method_preview: PaymentMethodPreview,
|
|
498
|
+
seller_details: SellerDetails,
|
|
499
|
+
total_details: TotalDetails,
|
|
500
|
+
risk_details: RiskDetails,
|
|
501
|
+
}
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
def self.field_remappings
|
|
505
|
+
@field_remappings = {}
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
end
|
|
@@ -44,6 +44,8 @@ module Stripe
|
|
|
44
44
|
attr_reader :object
|
|
45
45
|
# The promotion code applied to create this discount.
|
|
46
46
|
attr_reader :promotion_code
|
|
47
|
+
# The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.
|
|
48
|
+
attr_reader :schedule
|
|
47
49
|
# Attribute for field source
|
|
48
50
|
attr_reader :source
|
|
49
51
|
# Date that the coupon was applied.
|