solvimon-python-sdk 0.0.4b0__py3-none-any.whl
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.
- solvimon_python_sdk/__init__.py +2413 -0
- solvimon_python_sdk/api/__init__.py +74 -0
- solvimon_python_sdk/api/alert_rules_api.py +1700 -0
- solvimon_python_sdk/api/alerts_api.py +1038 -0
- solvimon_python_sdk/api/api_keys_api.py +1973 -0
- solvimon_python_sdk/api/approval_policy_api.py +2573 -0
- solvimon_python_sdk/api/approval_request_api.py +2673 -0
- solvimon_python_sdk/api/attachments_api.py +1329 -0
- solvimon_python_sdk/api/audit_records_api.py +786 -0
- solvimon_python_sdk/api/authentication_api.py +2714 -0
- solvimon_python_sdk/api/authentication_providers_api.py +1638 -0
- solvimon_python_sdk/api/billing_entities_api.py +1698 -0
- solvimon_python_sdk/api/bulk_actions_api.py +2150 -0
- solvimon_python_sdk/api/contacts_api.py +2036 -0
- solvimon_python_sdk/api/coupons_api.py +3059 -0
- solvimon_python_sdk/api/credit_types_api.py +2597 -0
- solvimon_python_sdk/api/custom_fields_api.py +1724 -0
- solvimon_python_sdk/api/customers_api.py +4667 -0
- solvimon_python_sdk/api/documents_api.py +1274 -0
- solvimon_python_sdk/api/features_api.py +2003 -0
- solvimon_python_sdk/api/file_processing_settings_api.py +991 -0
- solvimon_python_sdk/api/files_api.py +1716 -0
- solvimon_python_sdk/api/ingest_api.py +5989 -0
- solvimon_python_sdk/api/integrations_api.py +3297 -0
- solvimon_python_sdk/api/invoices_api.py +9743 -0
- solvimon_python_sdk/api/meter_properties_api.py +1648 -0
- solvimon_python_sdk/api/meter_property_variables_api.py +2473 -0
- solvimon_python_sdk/api/meter_value_calculations_api.py +1688 -0
- solvimon_python_sdk/api/meter_values_api.py +1648 -0
- solvimon_python_sdk/api/meters_api.py +1990 -0
- solvimon_python_sdk/api/payment_acceptors_api.py +1971 -0
- solvimon_python_sdk/api/payment_methods_api.py +2370 -0
- solvimon_python_sdk/api/payment_schedules_api.py +2641 -0
- solvimon_python_sdk/api/payments_api.py +3133 -0
- solvimon_python_sdk/api/platforms_api.py +1584 -0
- solvimon_python_sdk/api/portal_urls_api.py +1703 -0
- solvimon_python_sdk/api/pricing_groups_api.py +1290 -0
- solvimon_python_sdk/api/pricing_plan_groups_api.py +2579 -0
- solvimon_python_sdk/api/pricing_plan_schedules_api.py +3507 -0
- solvimon_python_sdk/api/pricing_plan_subscription_groups_api.py +1736 -0
- solvimon_python_sdk/api/pricing_plan_subscriptions_api.py +4918 -0
- solvimon_python_sdk/api/pricing_plan_versions_api.py +1629 -0
- solvimon_python_sdk/api/pricing_plans_api.py +2475 -0
- solvimon_python_sdk/api/pricings_api.py +1008 -0
- solvimon_python_sdk/api/product_categories_api.py +2339 -0
- solvimon_python_sdk/api/product_items_api.py +3443 -0
- solvimon_python_sdk/api/products_api.py +3478 -0
- solvimon_python_sdk/api/promotion_codes_api.py +2727 -0
- solvimon_python_sdk/api/quote_templates_api.py +1987 -0
- solvimon_python_sdk/api/quote_versions_api.py +3908 -0
- solvimon_python_sdk/api/quotes_api.py +2743 -0
- solvimon_python_sdk/api/report_configurations_api.py +1356 -0
- solvimon_python_sdk/api/report_definitions_api.py +391 -0
- solvimon_python_sdk/api/report_subscriptions_api.py +1996 -0
- solvimon_python_sdk/api/reports_api.py +4754 -0
- solvimon_python_sdk/api/reprocess_api.py +1092 -0
- solvimon_python_sdk/api/roles_api.py +1701 -0
- solvimon_python_sdk/api/seat_assignments_api.py +1732 -0
- solvimon_python_sdk/api/signature_requests_api.py +992 -0
- solvimon_python_sdk/api/tax_id_types_api.py +343 -0
- solvimon_python_sdk/api/teams_api.py +1322 -0
- solvimon_python_sdk/api/usage_limits_api.py +2306 -0
- solvimon_python_sdk/api/users_api.py +3961 -0
- solvimon_python_sdk/api/wallet_grants_api.py +1076 -0
- solvimon_python_sdk/api/wallet_types_api.py +2576 -0
- solvimon_python_sdk/api/wallets_api.py +4168 -0
- solvimon_python_sdk/api/webhook_events_api.py +1042 -0
- solvimon_python_sdk/api/webhooks_api.py +3557 -0
- solvimon_python_sdk/api/workflow_action_executions_api.py +1409 -0
- solvimon_python_sdk/api/workflow_actions_api.py +1630 -0
- solvimon_python_sdk/api/workflow_triggers_api.py +1451 -0
- solvimon_python_sdk/api/workflows_api.py +3259 -0
- solvimon_python_sdk/api_client.py +843 -0
- solvimon_python_sdk/api_response.py +21 -0
- solvimon_python_sdk/configuration.py +688 -0
- solvimon_python_sdk/exceptions.py +219 -0
- solvimon_python_sdk/models/__init__.py +1130 -0
- solvimon_python_sdk/models/account_membership_representation.py +132 -0
- solvimon_python_sdk/models/account_membership_representation_create_request.py +132 -0
- solvimon_python_sdk/models/account_membership_representation_update_request.py +132 -0
- solvimon_python_sdk/models/account_number_and_bic.py +124 -0
- solvimon_python_sdk/models/account_representation.py +101 -0
- solvimon_python_sdk/models/address.py +109 -0
- solvimon_python_sdk/models/address_create_request.py +109 -0
- solvimon_python_sdk/models/address_update_request.py +109 -0
- solvimon_python_sdk/models/adyen_auto_rescue.py +95 -0
- solvimon_python_sdk/models/adyen_direct_payment_context.py +95 -0
- solvimon_python_sdk/models/adyen_integration_details.py +89 -0
- solvimon_python_sdk/models/adyen_issuer.py +91 -0
- solvimon_python_sdk/models/adyen_payment_action.py +91 -0
- solvimon_python_sdk/models/adyen_payment_gateway_integration.py +152 -0
- solvimon_python_sdk/models/adyen_payment_method_option.py +110 -0
- solvimon_python_sdk/models/adyen_required_action.py +97 -0
- solvimon_python_sdk/models/adyen_tokenization_request.py +97 -0
- solvimon_python_sdk/models/adyen_tokenization_request_create_request.py +97 -0
- solvimon_python_sdk/models/adyen_verify_details.py +95 -0
- solvimon_python_sdk/models/adyen_verify_details_create_request.py +95 -0
- solvimon_python_sdk/models/agent_context.py +100 -0
- solvimon_python_sdk/models/agent_context_create_request.py +100 -0
- solvimon_python_sdk/models/agent_context_update_request.py +100 -0
- solvimon_python_sdk/models/alert.py +141 -0
- solvimon_python_sdk/models/alert_create_request.py +138 -0
- solvimon_python_sdk/models/alert_data.py +99 -0
- solvimon_python_sdk/models/alert_data_create_request.py +99 -0
- solvimon_python_sdk/models/alert_data_entitlement.py +105 -0
- solvimon_python_sdk/models/alert_data_invoice.py +95 -0
- solvimon_python_sdk/models/alert_data_invoice_overdue.py +96 -0
- solvimon_python_sdk/models/alert_data_value.py +95 -0
- solvimon_python_sdk/models/alert_response_wrapper.py +108 -0
- solvimon_python_sdk/models/alert_rule.py +193 -0
- solvimon_python_sdk/models/alert_rule_create_request.py +187 -0
- solvimon_python_sdk/models/alert_rule_create_request_event.py +193 -0
- solvimon_python_sdk/models/alert_rule_entitlement.py +115 -0
- solvimon_python_sdk/models/alert_rule_entitlement_create_request.py +115 -0
- solvimon_python_sdk/models/alert_rule_entitlement_update_request.py +115 -0
- solvimon_python_sdk/models/alert_rule_invoice.py +105 -0
- solvimon_python_sdk/models/alert_rule_invoice_create_request.py +105 -0
- solvimon_python_sdk/models/alert_rule_invoice_overdue.py +105 -0
- solvimon_python_sdk/models/alert_rule_invoice_update_request.py +105 -0
- solvimon_python_sdk/models/alert_rule_response_wrapper.py +108 -0
- solvimon_python_sdk/models/alert_rule_update_request.py +193 -0
- solvimon_python_sdk/models/amount.py +112 -0
- solvimon_python_sdk/models/amount_create_request.py +112 -0
- solvimon_python_sdk/models/amount_update_request.py +112 -0
- solvimon_python_sdk/models/api_error.py +123 -0
- solvimon_python_sdk/models/api_key.py +157 -0
- solvimon_python_sdk/models/api_key_create_request.py +157 -0
- solvimon_python_sdk/models/api_key_paginated_response_wrapper.py +108 -0
- solvimon_python_sdk/models/api_key_update_request.py +157 -0
- solvimon_python_sdk/models/applied_coupon.py +109 -0
- solvimon_python_sdk/models/applied_coupon_update_request.py +109 -0
- solvimon_python_sdk/models/approval_group.py +98 -0
- solvimon_python_sdk/models/approval_policy.py +169 -0
- solvimon_python_sdk/models/approval_policy_approver.py +105 -0
- solvimon_python_sdk/models/approval_policy_billing_entity.py +89 -0
- solvimon_python_sdk/models/approval_policy_billing_period.py +89 -0
- solvimon_python_sdk/models/approval_policy_commitment.py +93 -0
- solvimon_python_sdk/models/approval_policy_create_request.py +160 -0
- solvimon_python_sdk/models/approval_policy_custom_field.py +91 -0
- solvimon_python_sdk/models/approval_policy_discount.py +95 -0
- solvimon_python_sdk/models/approval_policy_due_date.py +89 -0
- solvimon_python_sdk/models/approval_policy_payment_acceptor.py +89 -0
- solvimon_python_sdk/models/approval_policy_pricing.py +89 -0
- solvimon_python_sdk/models/approval_policy_rule.py +159 -0
- solvimon_python_sdk/models/approval_policy_rule_group.py +96 -0
- solvimon_python_sdk/models/approval_policy_rule_group_create_request.py +96 -0
- solvimon_python_sdk/models/approval_policy_rule_group_update_request.py +96 -0
- solvimon_python_sdk/models/approval_policy_update_request.py +169 -0
- solvimon_python_sdk/models/approval_policy_user.py +89 -0
- solvimon_python_sdk/models/approval_request.py +183 -0
- solvimon_python_sdk/models/approval_request_action_result.py +121 -0
- solvimon_python_sdk/models/approval_request_response_wrapper.py +108 -0
- solvimon_python_sdk/models/approvers.py +109 -0
- solvimon_python_sdk/models/approvers_create_request.py +109 -0
- solvimon_python_sdk/models/approvers_update_request.py +109 -0
- solvimon_python_sdk/models/ar_local.py +124 -0
- solvimon_python_sdk/models/attachment.py +115 -0
- solvimon_python_sdk/models/attachment_create_request.py +115 -0
- solvimon_python_sdk/models/attachment_response_wrapper.py +96 -0
- solvimon_python_sdk/models/audit_record.py +154 -0
- solvimon_python_sdk/models/audit_record_diff_entry.py +103 -0
- solvimon_python_sdk/models/audit_record_response_wrapper.py +108 -0
- solvimon_python_sdk/models/authentication_provider.py +138 -0
- solvimon_python_sdk/models/authentication_provider_create_request.py +135 -0
- solvimon_python_sdk/models/authentication_provider_request.py +91 -0
- solvimon_python_sdk/models/authentication_provider_request_create_request.py +91 -0
- solvimon_python_sdk/models/authentication_provider_response_wrapper.py +108 -0
- solvimon_python_sdk/models/authentication_provider_update_request.py +138 -0
- solvimon_python_sdk/models/authentication_settings.py +105 -0
- solvimon_python_sdk/models/authentication_settings_api_key.py +91 -0
- solvimon_python_sdk/models/authentication_settings_api_key_create_request.py +91 -0
- solvimon_python_sdk/models/authentication_settings_create_request.py +105 -0
- solvimon_python_sdk/models/authentication_settings_update_request.py +105 -0
- solvimon_python_sdk/models/authorize_payment_request.py +133 -0
- solvimon_python_sdk/models/authorize_payment_request_create_request.py +133 -0
- solvimon_python_sdk/models/auto_topup_config.py +135 -0
- solvimon_python_sdk/models/auto_topup_config_create_request.py +135 -0
- solvimon_python_sdk/models/auto_topup_config_response_wrapper.py +108 -0
- solvimon_python_sdk/models/auto_topup_threshold.py +99 -0
- solvimon_python_sdk/models/ava_tax_calculation_integration.py +89 -0
- solvimon_python_sdk/models/available_custom_field_column.py +95 -0
- solvimon_python_sdk/models/available_custom_field_column_create_request.py +95 -0
- solvimon_python_sdk/models/available_custom_field_column_update_request.py +95 -0
- solvimon_python_sdk/models/balance_platform_details.py +95 -0
- solvimon_python_sdk/models/bank_account.py +228 -0
- solvimon_python_sdk/models/bank_account_create_request.py +228 -0
- solvimon_python_sdk/models/big_query.py +99 -0
- solvimon_python_sdk/models/billing_entity.py +218 -0
- solvimon_python_sdk/models/billing_entity_create_request.py +215 -0
- solvimon_python_sdk/models/billing_entity_create_request_transaction.py +218 -0
- solvimon_python_sdk/models/billing_entity_response_wrapper.py +96 -0
- solvimon_python_sdk/models/billing_entity_update_request.py +218 -0
- solvimon_python_sdk/models/billing_period_option.py +95 -0
- solvimon_python_sdk/models/billing_period_settings.py +96 -0
- solvimon_python_sdk/models/billing_period_settings_create_request.py +96 -0
- solvimon_python_sdk/models/billing_period_settings_update_request.py +96 -0
- solvimon_python_sdk/models/br_local.py +124 -0
- solvimon_python_sdk/models/branding.py +108 -0
- solvimon_python_sdk/models/branding_update_request.py +108 -0
- solvimon_python_sdk/models/bulk_action_check.py +110 -0
- solvimon_python_sdk/models/bulk_action_item.py +109 -0
- solvimon_python_sdk/models/bulk_action_item_generated_resource.py +101 -0
- solvimon_python_sdk/models/bulk_action_item_resource.py +101 -0
- solvimon_python_sdk/models/bulk_action_item_response_wrapper.py +108 -0
- solvimon_python_sdk/models/bulk_action_request.py +111 -0
- solvimon_python_sdk/models/bulk_action_request_create_request.py +108 -0
- solvimon_python_sdk/models/bulk_action_response.py +115 -0
- solvimon_python_sdk/models/bulk_action_response_wrapper.py +108 -0
- solvimon_python_sdk/models/bulk_approval_request_action.py +89 -0
- solvimon_python_sdk/models/bulk_approval_request_action_create_request.py +89 -0
- solvimon_python_sdk/models/bulk_approval_request_action_response_wrapper.py +96 -0
- solvimon_python_sdk/models/captcha_request.py +91 -0
- solvimon_python_sdk/models/captcha_request_create_request.py +91 -0
- solvimon_python_sdk/models/charge.py +96 -0
- solvimon_python_sdk/models/charge_data_period.py +94 -0
- solvimon_python_sdk/models/charge_data_period_create_request.py +94 -0
- solvimon_python_sdk/models/charge_on_demand_payment_context.py +101 -0
- solvimon_python_sdk/models/charge_on_demand_payment_context_pricing_item.py +101 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_item.py +103 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items.py +107 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items_create_request.py +107 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items_pricing_item_config.py +101 -0
- solvimon_python_sdk/models/charge_on_demand_pricing_items_pricing_item_config_create_request.py +101 -0
- solvimon_python_sdk/models/client_credentials.py +91 -0
- solvimon_python_sdk/models/client_credentials_create_request.py +91 -0
- solvimon_python_sdk/models/colors.py +112 -0
- solvimon_python_sdk/models/column_mapping.py +91 -0
- solvimon_python_sdk/models/commitment.py +123 -0
- solvimon_python_sdk/models/commitment_update_request.py +123 -0
- solvimon_python_sdk/models/configured_meter_value.py +104 -0
- solvimon_python_sdk/models/configured_meter_value_included_volume.py +104 -0
- solvimon_python_sdk/models/configured_meter_value_included_volume_update_request.py +104 -0
- solvimon_python_sdk/models/configured_meter_value_update_request.py +104 -0
- solvimon_python_sdk/models/contact.py +155 -0
- solvimon_python_sdk/models/contact_create_request.py +152 -0
- solvimon_python_sdk/models/contact_response_wrapper.py +108 -0
- solvimon_python_sdk/models/contact_update_request.py +155 -0
- solvimon_python_sdk/models/cost_prediction.py +129 -0
- solvimon_python_sdk/models/cost_prediction_create_request.py +129 -0
- solvimon_python_sdk/models/cost_prediction_details.py +128 -0
- solvimon_python_sdk/models/coupon.py +180 -0
- solvimon_python_sdk/models/coupon_create_request.py +174 -0
- solvimon_python_sdk/models/coupon_discount.py +119 -0
- solvimon_python_sdk/models/coupon_discount_create_request.py +119 -0
- solvimon_python_sdk/models/coupon_discount_update_request.py +119 -0
- solvimon_python_sdk/models/coupon_discount_usage.py +97 -0
- solvimon_python_sdk/models/coupon_duration.py +105 -0
- solvimon_python_sdk/models/coupon_duration_create_request.py +105 -0
- solvimon_python_sdk/models/coupon_duration_update_request.py +105 -0
- solvimon_python_sdk/models/coupon_limited_to.py +126 -0
- solvimon_python_sdk/models/coupon_limited_to_create_request.py +126 -0
- solvimon_python_sdk/models/coupon_limited_to_update_request.py +126 -0
- solvimon_python_sdk/models/coupon_redemption.py +127 -0
- solvimon_python_sdk/models/coupon_redemption_response_wrapper.py +108 -0
- solvimon_python_sdk/models/coupon_response_wrapper.py +108 -0
- solvimon_python_sdk/models/coupon_update_request.py +180 -0
- solvimon_python_sdk/models/create_payment_method_payment_context.py +89 -0
- solvimon_python_sdk/models/create_pricing_plan_schedule_payment_context.py +96 -0
- solvimon_python_sdk/models/credit_and_copy_invoice_request.py +103 -0
- solvimon_python_sdk/models/credit_and_copy_invoice_request_create_request.py +103 -0
- solvimon_python_sdk/models/credit_and_copy_invoice_response.py +93 -0
- solvimon_python_sdk/models/credit_invoice_group.py +104 -0
- solvimon_python_sdk/models/credit_invoice_group_create_request.py +104 -0
- solvimon_python_sdk/models/credit_invoice_line.py +95 -0
- solvimon_python_sdk/models/credit_invoice_period.py +104 -0
- solvimon_python_sdk/models/credit_invoice_period_create_request.py +104 -0
- solvimon_python_sdk/models/credit_type.py +158 -0
- solvimon_python_sdk/models/credit_type_create_request.py +158 -0
- solvimon_python_sdk/models/credit_type_response_wrapper.py +108 -0
- solvimon_python_sdk/models/credit_type_update_request.py +158 -0
- solvimon_python_sdk/models/credits.py +110 -0
- solvimon_python_sdk/models/credits_create_request.py +110 -0
- solvimon_python_sdk/models/crm_integrations.py +93 -0
- solvimon_python_sdk/models/crm_integrations_update_request.py +93 -0
- solvimon_python_sdk/models/currency.py +107 -0
- solvimon_python_sdk/models/custom_field.py +154 -0
- solvimon_python_sdk/models/custom_field_create_request.py +148 -0
- solvimon_python_sdk/models/custom_field_response_wrapper.py +108 -0
- solvimon_python_sdk/models/custom_field_update_request.py +154 -0
- solvimon_python_sdk/models/custom_field_value.py +116 -0
- solvimon_python_sdk/models/custom_field_value_create_request.py +116 -0
- solvimon_python_sdk/models/custom_field_value_update_request.py +116 -0
- solvimon_python_sdk/models/custom_tax_code.py +101 -0
- solvimon_python_sdk/models/customer.py +222 -0
- solvimon_python_sdk/models/customer_action_options.py +95 -0
- solvimon_python_sdk/models/customer_create_request.py +219 -0
- solvimon_python_sdk/models/customer_create_request_event.py +222 -0
- solvimon_python_sdk/models/customer_create_request_transaction.py +222 -0
- solvimon_python_sdk/models/customer_portal_url.py +99 -0
- solvimon_python_sdk/models/customer_portal_url_create_request.py +99 -0
- solvimon_python_sdk/models/customer_portal_url_update_request.py +99 -0
- solvimon_python_sdk/models/customer_references.py +93 -0
- solvimon_python_sdk/models/customer_references_create_request.py +93 -0
- solvimon_python_sdk/models/customer_references_update_request.py +93 -0
- solvimon_python_sdk/models/customer_response_wrapper.py +108 -0
- solvimon_python_sdk/models/customer_seller_details.py +89 -0
- solvimon_python_sdk/models/customer_seller_details_create_request.py +89 -0
- solvimon_python_sdk/models/customer_seller_details_update_request.py +89 -0
- solvimon_python_sdk/models/customer_update_request.py +222 -0
- solvimon_python_sdk/models/customer_update_request_transaction.py +222 -0
- solvimon_python_sdk/models/customer_wallet_balance_status.py +118 -0
- solvimon_python_sdk/models/customer_wallet_balances_status.py +102 -0
- solvimon_python_sdk/models/data_export_integration.py +125 -0
- solvimon_python_sdk/models/data_export_integration_create_request.py +125 -0
- solvimon_python_sdk/models/data_export_integration_update_request.py +125 -0
- solvimon_python_sdk/models/default_portal_url_settings.py +93 -0
- solvimon_python_sdk/models/default_portal_url_settings_update_request.py +93 -0
- solvimon_python_sdk/models/default_value.py +91 -0
- solvimon_python_sdk/models/delete_invoice_group.py +98 -0
- solvimon_python_sdk/models/delete_invoice_line.py +89 -0
- solvimon_python_sdk/models/delete_invoice_period.py +98 -0
- solvimon_python_sdk/models/delete_invoice_period_create_request.py +98 -0
- solvimon_python_sdk/models/direct_auto_rescue.py +95 -0
- solvimon_python_sdk/models/direct_payment_context.py +93 -0
- solvimon_python_sdk/models/discount.py +159 -0
- solvimon_python_sdk/models/discount_condition.py +105 -0
- solvimon_python_sdk/models/discount_condition_value.py +93 -0
- solvimon_python_sdk/models/discount_update_request.py +159 -0
- solvimon_python_sdk/models/display_config.py +95 -0
- solvimon_python_sdk/models/document.py +126 -0
- solvimon_python_sdk/models/document_action_settings.py +99 -0
- solvimon_python_sdk/models/document_create_request.py +126 -0
- solvimon_python_sdk/models/document_number_configuration.py +106 -0
- solvimon_python_sdk/models/document_number_configuration_reset_period.py +101 -0
- solvimon_python_sdk/models/download_settings.py +93 -0
- solvimon_python_sdk/models/download_settings_create_request.py +93 -0
- solvimon_python_sdk/models/download_settings_update_request.py +93 -0
- solvimon_python_sdk/models/download_url.py +103 -0
- solvimon_python_sdk/models/due_date.py +105 -0
- solvimon_python_sdk/models/due_date_update_request.py +105 -0
- solvimon_python_sdk/models/duplicate.py +91 -0
- solvimon_python_sdk/models/e_invoice.py +116 -0
- solvimon_python_sdk/models/e_invoice_create_request.py +116 -0
- solvimon_python_sdk/models/e_invoice_file_format.py +95 -0
- solvimon_python_sdk/models/e_invoice_status.py +99 -0
- solvimon_python_sdk/models/e_invoice_update_request.py +116 -0
- solvimon_python_sdk/models/e_invoicing_condition.py +103 -0
- solvimon_python_sdk/models/e_invoicing_condition_group.py +96 -0
- solvimon_python_sdk/models/e_invoicing_integration.py +108 -0
- solvimon_python_sdk/models/e_invoicing_integration_create_request.py +108 -0
- solvimon_python_sdk/models/e_invoicing_integration_update_request.py +108 -0
- solvimon_python_sdk/models/e_invoicing_mandate.py +124 -0
- solvimon_python_sdk/models/e_invoicing_mapping.py +93 -0
- solvimon_python_sdk/models/email_identifier.py +91 -0
- solvimon_python_sdk/models/email_provider_integration.py +111 -0
- solvimon_python_sdk/models/email_provider_integration_create_request.py +111 -0
- solvimon_python_sdk/models/email_provider_integration_update_request.py +111 -0
- solvimon_python_sdk/models/enabled_pricing.py +94 -0
- solvimon_python_sdk/models/enabled_pricing_create_request.py +94 -0
- solvimon_python_sdk/models/enabled_pricing_update_request.py +94 -0
- solvimon_python_sdk/models/entitlement.py +128 -0
- solvimon_python_sdk/models/entitlement_create_request.py +128 -0
- solvimon_python_sdk/models/entitlement_summary.py +98 -0
- solvimon_python_sdk/models/entitlement_summary_item.py +109 -0
- solvimon_python_sdk/models/entitlement_update_request.py +128 -0
- solvimon_python_sdk/models/entitlements.py +105 -0
- solvimon_python_sdk/models/entitlements_create_request.py +105 -0
- solvimon_python_sdk/models/erp_integration.py +99 -0
- solvimon_python_sdk/models/erp_integration_create_request.py +99 -0
- solvimon_python_sdk/models/erp_integration_update_request.py +99 -0
- solvimon_python_sdk/models/event_trace.py +130 -0
- solvimon_python_sdk/models/event_trace_link.py +143 -0
- solvimon_python_sdk/models/expiry_date.py +92 -0
- solvimon_python_sdk/models/export_report_location.py +121 -0
- solvimon_python_sdk/models/export_report_location_big_query_details.py +89 -0
- solvimon_python_sdk/models/export_report_location_create_request.py +121 -0
- solvimon_python_sdk/models/export_report_location_gcs_details.py +103 -0
- solvimon_python_sdk/models/export_report_location_s3_details.py +103 -0
- solvimon_python_sdk/models/export_report_location_update_request.py +121 -0
- solvimon_python_sdk/models/export_to_erp_action.py +101 -0
- solvimon_python_sdk/models/export_to_erp_action_update_request.py +101 -0
- solvimon_python_sdk/models/feature.py +156 -0
- solvimon_python_sdk/models/feature_create_request.py +150 -0
- solvimon_python_sdk/models/feature_resource_reference.py +102 -0
- solvimon_python_sdk/models/feature_response_wrapper.py +96 -0
- solvimon_python_sdk/models/feature_update_request.py +156 -0
- solvimon_python_sdk/models/file.py +214 -0
- solvimon_python_sdk/models/file_create_request.py +202 -0
- solvimon_python_sdk/models/file_download_settings.py +89 -0
- solvimon_python_sdk/models/file_download_settings_create_request.py +89 -0
- solvimon_python_sdk/models/file_download_settings_update_request.py +89 -0
- solvimon_python_sdk/models/file_line.py +107 -0
- solvimon_python_sdk/models/file_line_response_wrapper.py +108 -0
- solvimon_python_sdk/models/file_meter_data.py +92 -0
- solvimon_python_sdk/models/file_meter_data_create_request.py +92 -0
- solvimon_python_sdk/models/file_meter_data_update_request.py +92 -0
- solvimon_python_sdk/models/file_processing_settings.py +151 -0
- solvimon_python_sdk/models/file_processing_settings_create_request.py +145 -0
- solvimon_python_sdk/models/file_processing_settings_update_request.py +151 -0
- solvimon_python_sdk/models/file_response_wrapper.py +108 -0
- solvimon_python_sdk/models/file_update_request.py +214 -0
- solvimon_python_sdk/models/filter_field.py +95 -0
- solvimon_python_sdk/models/filter_field_create_request.py +95 -0
- solvimon_python_sdk/models/finalize_invoices_parameters.py +100 -0
- solvimon_python_sdk/models/finalize_invoices_parameters_create_request.py +100 -0
- solvimon_python_sdk/models/fixed_installment.py +96 -0
- solvimon_python_sdk/models/gcs.py +95 -0
- solvimon_python_sdk/models/get_all_approval_policies_response.py +96 -0
- solvimon_python_sdk/models/get_quotes_list.py +96 -0
- solvimon_python_sdk/models/hubspot_integration.py +89 -0
- solvimon_python_sdk/models/image.py +108 -0
- solvimon_python_sdk/models/inactive_period.py +106 -0
- solvimon_python_sdk/models/inactive_period_update_request.py +106 -0
- solvimon_python_sdk/models/indexing_settings.py +103 -0
- solvimon_python_sdk/models/indexing_settings_create_request.py +103 -0
- solvimon_python_sdk/models/indexing_target.py +95 -0
- solvimon_python_sdk/models/indexing_target_create_request.py +95 -0
- solvimon_python_sdk/models/individual.py +99 -0
- solvimon_python_sdk/models/individual_create_request.py +99 -0
- solvimon_python_sdk/models/individual_update_request.py +99 -0
- solvimon_python_sdk/models/ingest_data_response_wrapper.py +108 -0
- solvimon_python_sdk/models/ingest_data_summary.py +104 -0
- solvimon_python_sdk/models/ingest_reference_mapping.py +95 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_payment_context.py +119 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_portal_url.py +91 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_portal_url_create_request.py +91 -0
- solvimon_python_sdk/models/init_pricing_plan_subscription_portal_url_update_request.py +91 -0
- solvimon_python_sdk/models/integration.py +229 -0
- solvimon_python_sdk/models/integration_create_request.py +223 -0
- solvimon_python_sdk/models/integration_details.py +119 -0
- solvimon_python_sdk/models/integration_details_update_request.py +119 -0
- solvimon_python_sdk/models/integration_link_detail.py +91 -0
- solvimon_python_sdk/models/integration_linked_resource_configuration.py +98 -0
- solvimon_python_sdk/models/integration_linked_resource_configuration_create_request.py +98 -0
- solvimon_python_sdk/models/integration_linked_resource_configuration_update_request.py +98 -0
- solvimon_python_sdk/models/integration_response_wrapper.py +108 -0
- solvimon_python_sdk/models/integration_update_request.py +229 -0
- solvimon_python_sdk/models/interval_installment.py +105 -0
- solvimon_python_sdk/models/invoice.py +566 -0
- solvimon_python_sdk/models/invoice_action_credit.py +124 -0
- solvimon_python_sdk/models/invoice_action_credit_create_request.py +124 -0
- solvimon_python_sdk/models/invoice_action_delete_line.py +96 -0
- solvimon_python_sdk/models/invoice_action_delete_line_create_request.py +96 -0
- solvimon_python_sdk/models/invoice_action_options.py +91 -0
- solvimon_python_sdk/models/invoice_commitment.py +98 -0
- solvimon_python_sdk/models/invoice_coupon.py +95 -0
- solvimon_python_sdk/models/invoice_coupon_create_request.py +95 -0
- solvimon_python_sdk/models/invoice_coupon_update_request.py +95 -0
- solvimon_python_sdk/models/invoice_create_request.py +566 -0
- solvimon_python_sdk/models/invoice_create_request_transaction.py +563 -0
- solvimon_python_sdk/models/invoice_credit_detail.py +111 -0
- solvimon_python_sdk/models/invoice_credit_detail_create_request.py +111 -0
- solvimon_python_sdk/models/invoice_credit_detail_update_request.py +111 -0
- solvimon_python_sdk/models/invoice_dunning_action.py +107 -0
- solvimon_python_sdk/models/invoice_dunning_action_create_request.py +107 -0
- solvimon_python_sdk/models/invoice_dunning_action_update_request.py +107 -0
- solvimon_python_sdk/models/invoice_extra_open_period.py +91 -0
- solvimon_python_sdk/models/invoice_grace_period.py +95 -0
- solvimon_python_sdk/models/invoice_grace_period_configuration.py +91 -0
- solvimon_python_sdk/models/invoice_group.py +187 -0
- solvimon_python_sdk/models/invoice_line.py +207 -0
- solvimon_python_sdk/models/invoice_line_coupon_data.py +91 -0
- solvimon_python_sdk/models/invoice_line_meter_value.py +99 -0
- solvimon_python_sdk/models/invoice_meter_property_variable.py +113 -0
- solvimon_python_sdk/models/invoice_meter_property_variable_create_request.py +113 -0
- solvimon_python_sdk/models/invoice_meter_property_variable_update_request.py +113 -0
- solvimon_python_sdk/models/invoice_overdue.py +96 -0
- solvimon_python_sdk/models/invoice_payment_action.py +117 -0
- solvimon_python_sdk/models/invoice_payment_action_bank_account_details.py +123 -0
- solvimon_python_sdk/models/invoice_payment_action_create_request.py +117 -0
- solvimon_python_sdk/models/invoice_payment_action_custom_redirect_details.py +89 -0
- solvimon_python_sdk/models/invoice_payment_action_payment_gateway_details.py +103 -0
- solvimon_python_sdk/models/invoice_payment_action_update_request.py +117 -0
- solvimon_python_sdk/models/invoice_period.py +128 -0
- solvimon_python_sdk/models/invoice_period_create_request.py +128 -0
- solvimon_python_sdk/models/invoice_period_update_request.py +128 -0
- solvimon_python_sdk/models/invoice_portal_url.py +95 -0
- solvimon_python_sdk/models/invoice_portal_url_create_request.py +95 -0
- solvimon_python_sdk/models/invoice_portal_url_update_request.py +95 -0
- solvimon_python_sdk/models/invoice_preview_action.py +120 -0
- solvimon_python_sdk/models/invoice_preview_action_create_request.py +120 -0
- solvimon_python_sdk/models/invoice_preview_action_response.py +107 -0
- solvimon_python_sdk/models/invoice_preview_invoices_info.py +98 -0
- solvimon_python_sdk/models/invoice_pricing.py +91 -0
- solvimon_python_sdk/models/invoice_promotion_code.py +99 -0
- solvimon_python_sdk/models/invoice_promotion_code_create_request.py +99 -0
- solvimon_python_sdk/models/invoice_promotion_code_update_request.py +99 -0
- solvimon_python_sdk/models/invoice_reprocess.py +95 -0
- solvimon_python_sdk/models/invoice_reprocess_create_request.py +95 -0
- solvimon_python_sdk/models/invoice_reprocess_update_request.py +95 -0
- solvimon_python_sdk/models/invoice_response_wrapper.py +108 -0
- solvimon_python_sdk/models/invoice_settings.py +151 -0
- solvimon_python_sdk/models/invoice_settings_update_request.py +151 -0
- solvimon_python_sdk/models/invoice_sub_line.py +119 -0
- solvimon_python_sdk/models/invoice_sub_line_usage_based_conversion.py +93 -0
- solvimon_python_sdk/models/invoice_tax_amounts.py +111 -0
- solvimon_python_sdk/models/invoice_tax_category_summary.py +126 -0
- solvimon_python_sdk/models/invoice_tax_category_summary_create_request.py +126 -0
- solvimon_python_sdk/models/invoice_tax_category_summary_rate.py +97 -0
- solvimon_python_sdk/models/invoice_tax_category_summary_update_request.py +126 -0
- solvimon_python_sdk/models/invoice_tax_total_summary.py +113 -0
- solvimon_python_sdk/models/invoice_tax_total_summary_create_request.py +113 -0
- solvimon_python_sdk/models/invoice_tax_total_summary_update_request.py +113 -0
- solvimon_python_sdk/models/invoice_trigger.py +103 -0
- solvimon_python_sdk/models/invoice_trigger_create_request.py +103 -0
- solvimon_python_sdk/models/invoice_trigger_event.py +107 -0
- solvimon_python_sdk/models/invoice_trigger_manual.py +109 -0
- solvimon_python_sdk/models/invoice_trigger_overdue.py +93 -0
- solvimon_python_sdk/models/invoice_upcoming_payment.py +96 -0
- solvimon_python_sdk/models/invoice_update_request.py +566 -0
- solvimon_python_sdk/models/invoice_validation_result.py +91 -0
- solvimon_python_sdk/models/invoice_validation_result_create_request.py +91 -0
- solvimon_python_sdk/models/invoice_validation_result_update_request.py +91 -0
- solvimon_python_sdk/models/invoice_workflow.py +111 -0
- solvimon_python_sdk/models/invoice_workflow_create_request.py +111 -0
- solvimon_python_sdk/models/invoice_workflow_update_request.py +111 -0
- solvimon_python_sdk/models/jwt_token.py +116 -0
- solvimon_python_sdk/models/legal_entity_manager_details.py +93 -0
- solvimon_python_sdk/models/link_detail.py +91 -0
- solvimon_python_sdk/models/linked_integration.py +98 -0
- solvimon_python_sdk/models/linked_integration_create_request.py +98 -0
- solvimon_python_sdk/models/linked_integration_update_request.py +98 -0
- solvimon_python_sdk/models/linked_invoice_detail.py +103 -0
- solvimon_python_sdk/models/linked_invoice_detail_create_request.py +103 -0
- solvimon_python_sdk/models/linked_invoice_detail_update_request.py +103 -0
- solvimon_python_sdk/models/mailgun_email_provider.py +114 -0
- solvimon_python_sdk/models/markup.py +96 -0
- solvimon_python_sdk/models/markup_update_request.py +96 -0
- solvimon_python_sdk/models/meter.py +162 -0
- solvimon_python_sdk/models/meter_condition_expression.py +108 -0
- solvimon_python_sdk/models/meter_condition_operand.py +95 -0
- solvimon_python_sdk/models/meter_conditions.py +104 -0
- solvimon_python_sdk/models/meter_create_request.py +159 -0
- solvimon_python_sdk/models/meter_data.py +193 -0
- solvimon_python_sdk/models/meter_data_create_request.py +190 -0
- solvimon_python_sdk/models/meter_data_file_processing_settings.py +104 -0
- solvimon_python_sdk/models/meter_data_file_processing_settings_create_request.py +104 -0
- solvimon_python_sdk/models/meter_data_file_processing_settings_update_request.py +104 -0
- solvimon_python_sdk/models/meter_data_mapping_settings.py +119 -0
- solvimon_python_sdk/models/meter_data_meter_property.py +99 -0
- solvimon_python_sdk/models/meter_data_meter_property_create_request.py +99 -0
- solvimon_python_sdk/models/meter_data_meter_value.py +107 -0
- solvimon_python_sdk/models/meter_data_meter_value_create_request.py +107 -0
- solvimon_python_sdk/models/meter_data_processed_details.py +121 -0
- solvimon_python_sdk/models/meter_data_processed_details_create_request.py +121 -0
- solvimon_python_sdk/models/meter_datas.py +97 -0
- solvimon_python_sdk/models/meter_datas_create_request.py +97 -0
- solvimon_python_sdk/models/meter_meter_property.py +112 -0
- solvimon_python_sdk/models/meter_meter_property_create_request.py +112 -0
- solvimon_python_sdk/models/meter_meter_property_update_request.py +112 -0
- solvimon_python_sdk/models/meter_meter_value.py +112 -0
- solvimon_python_sdk/models/meter_meter_value_create_request.py +112 -0
- solvimon_python_sdk/models/meter_meter_value_update_request.py +112 -0
- solvimon_python_sdk/models/meter_property.py +158 -0
- solvimon_python_sdk/models/meter_property_condition.py +125 -0
- solvimon_python_sdk/models/meter_property_create_request.py +149 -0
- solvimon_python_sdk/models/meter_property_dynamic_validation_settings.py +101 -0
- solvimon_python_sdk/models/meter_property_mapping.py +99 -0
- solvimon_python_sdk/models/meter_property_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_property_split_pricing.py +101 -0
- solvimon_python_sdk/models/meter_property_update_request.py +158 -0
- solvimon_python_sdk/models/meter_property_variable.py +174 -0
- solvimon_python_sdk/models/meter_property_variable_create_request.py +168 -0
- solvimon_python_sdk/models/meter_property_variable_response_wrapper.py +108 -0
- solvimon_python_sdk/models/meter_property_variable_update_request.py +174 -0
- solvimon_python_sdk/models/meter_property_variable_value.py +95 -0
- solvimon_python_sdk/models/meter_property_variable_value_response_wrapper.py +108 -0
- solvimon_python_sdk/models/meter_property_variable_values_update.py +91 -0
- solvimon_python_sdk/models/meter_property_variable_values_update_result.py +103 -0
- solvimon_python_sdk/models/meter_property_variable_values_update_update_request.py +91 -0
- solvimon_python_sdk/models/meter_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_update_request.py +162 -0
- solvimon_python_sdk/models/meter_value.py +156 -0
- solvimon_python_sdk/models/meter_value_calculation.py +176 -0
- solvimon_python_sdk/models/meter_value_calculation_commitment.py +95 -0
- solvimon_python_sdk/models/meter_value_calculation_create_request.py +170 -0
- solvimon_python_sdk/models/meter_value_calculation_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_value_calculation_update_request.py +176 -0
- solvimon_python_sdk/models/meter_value_create_request.py +147 -0
- solvimon_python_sdk/models/meter_value_create_request_transaction.py +156 -0
- solvimon_python_sdk/models/meter_value_dynamic_validation_settings.py +101 -0
- solvimon_python_sdk/models/meter_value_mapping.py +103 -0
- solvimon_python_sdk/models/meter_value_mapping_amount_default_value.py +98 -0
- solvimon_python_sdk/models/meter_value_mapping_column.py +95 -0
- solvimon_python_sdk/models/meter_value_mapping_column_amount.py +91 -0
- solvimon_python_sdk/models/meter_value_mapping_default_value.py +99 -0
- solvimon_python_sdk/models/meter_value_response_wrapper.py +96 -0
- solvimon_python_sdk/models/meter_value_update_request.py +156 -0
- solvimon_python_sdk/models/mx_local.py +124 -0
- solvimon_python_sdk/models/name.py +93 -0
- solvimon_python_sdk/models/name_create_request.py +93 -0
- solvimon_python_sdk/models/name_update_request.py +93 -0
- solvimon_python_sdk/models/next_action.py +95 -0
- solvimon_python_sdk/models/next_action_redirect_to_url.py +91 -0
- solvimon_python_sdk/models/next_invoice.py +96 -0
- solvimon_python_sdk/models/next_invoice_update_request.py +96 -0
- solvimon_python_sdk/models/not_matched.py +91 -0
- solvimon_python_sdk/models/notification_channel.py +101 -0
- solvimon_python_sdk/models/notification_preference.py +108 -0
- solvimon_python_sdk/models/notification_preference_create_request.py +108 -0
- solvimon_python_sdk/models/notification_preference_update_request.py +108 -0
- solvimon_python_sdk/models/o_auth_callback.py +124 -0
- solvimon_python_sdk/models/o_auth_callback_create_request.py +115 -0
- solvimon_python_sdk/models/o_auth_credential_request.py +93 -0
- solvimon_python_sdk/models/o_auth_credential_request_create_request.py +93 -0
- solvimon_python_sdk/models/on_demand_pricing_items_response.py +110 -0
- solvimon_python_sdk/models/one_off_invoice_line.py +149 -0
- solvimon_python_sdk/models/one_off_invoice_line_create_request.py +146 -0
- solvimon_python_sdk/models/organization.py +132 -0
- solvimon_python_sdk/models/organization_create_request.py +132 -0
- solvimon_python_sdk/models/organization_update_request.py +132 -0
- solvimon_python_sdk/models/original_invoice_info.py +91 -0
- solvimon_python_sdk/models/other_custom_field_value.py +103 -0
- solvimon_python_sdk/models/other_custom_field_value_create_request.py +103 -0
- solvimon_python_sdk/models/other_custom_field_value_update_request.py +103 -0
- solvimon_python_sdk/models/pagination_links.py +95 -0
- solvimon_python_sdk/models/paragon_settings.py +89 -0
- solvimon_python_sdk/models/paragon_settings_create_request.py +89 -0
- solvimon_python_sdk/models/paragon_settings_update_request.py +89 -0
- solvimon_python_sdk/models/password_reset_request.py +89 -0
- solvimon_python_sdk/models/password_reset_request_create_request.py +89 -0
- solvimon_python_sdk/models/patch_e_invoice.py +93 -0
- solvimon_python_sdk/models/patch_e_invoice_update_request.py +93 -0
- solvimon_python_sdk/models/pay_invoice_payment_context.py +89 -0
- solvimon_python_sdk/models/payment.py +172 -0
- solvimon_python_sdk/models/payment_acceptor.py +178 -0
- solvimon_python_sdk/models/payment_acceptor_create_request.py +172 -0
- solvimon_python_sdk/models/payment_acceptor_custom_redirect.py +100 -0
- solvimon_python_sdk/models/payment_acceptor_custom_redirect_create_request.py +100 -0
- solvimon_python_sdk/models/payment_acceptor_payment_method_options.py +108 -0
- solvimon_python_sdk/models/payment_acceptor_payment_method_options_request.py +123 -0
- solvimon_python_sdk/models/payment_acceptor_payment_method_options_request_create_request.py +123 -0
- solvimon_python_sdk/models/payment_acceptor_response_wrapper.py +96 -0
- solvimon_python_sdk/models/payment_acceptor_update_request.py +178 -0
- solvimon_python_sdk/models/payment_context.py +152 -0
- solvimon_python_sdk/models/payment_context_create_request.py +152 -0
- solvimon_python_sdk/models/payment_create_request.py +172 -0
- solvimon_python_sdk/models/payment_create_request_transaction.py +169 -0
- solvimon_python_sdk/models/payment_dunning_action_details.py +93 -0
- solvimon_python_sdk/models/payment_dunning_action_details_create_request.py +93 -0
- solvimon_python_sdk/models/payment_gateway_integration.py +111 -0
- solvimon_python_sdk/models/payment_gateway_integration_create_request.py +111 -0
- solvimon_python_sdk/models/payment_gateway_integration_update_request.py +111 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor.py +125 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor_adyen.py +97 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor_create_request.py +125 -0
- solvimon_python_sdk/models/payment_gateway_payment_acceptor_link.py +93 -0
- solvimon_python_sdk/models/payment_method.py +192 -0
- solvimon_python_sdk/models/payment_method_action_refresh.py +95 -0
- solvimon_python_sdk/models/payment_method_action_refresh_create_request.py +95 -0
- solvimon_python_sdk/models/payment_method_buy_now_pay_later.py +89 -0
- solvimon_python_sdk/models/payment_method_buy_now_pay_later_update_request.py +89 -0
- solvimon_python_sdk/models/payment_method_card.py +111 -0
- solvimon_python_sdk/models/payment_method_card_update_request.py +111 -0
- solvimon_python_sdk/models/payment_method_create_request.py +192 -0
- solvimon_python_sdk/models/payment_method_details.py +135 -0
- solvimon_python_sdk/models/payment_method_details_buy_now_pay_later.py +89 -0
- solvimon_python_sdk/models/payment_method_details_card.py +101 -0
- solvimon_python_sdk/models/payment_method_details_create_request.py +135 -0
- solvimon_python_sdk/models/payment_method_details_digital_wallet.py +89 -0
- solvimon_python_sdk/models/payment_method_details_direct_debit.py +107 -0
- solvimon_python_sdk/models/payment_method_details_online_banking.py +107 -0
- solvimon_python_sdk/models/payment_method_details_unknown.py +89 -0
- solvimon_python_sdk/models/payment_method_digital_wallet.py +89 -0
- solvimon_python_sdk/models/payment_method_digital_wallet_update_request.py +89 -0
- solvimon_python_sdk/models/payment_method_direct_debit.py +107 -0
- solvimon_python_sdk/models/payment_method_direct_debit_update_request.py +107 -0
- solvimon_python_sdk/models/payment_method_fallback.py +91 -0
- solvimon_python_sdk/models/payment_method_fallback_create_request.py +91 -0
- solvimon_python_sdk/models/payment_method_fallback_update_request.py +91 -0
- solvimon_python_sdk/models/payment_method_online_banking.py +107 -0
- solvimon_python_sdk/models/payment_method_online_banking_update_request.py +107 -0
- solvimon_python_sdk/models/payment_method_option.py +105 -0
- solvimon_python_sdk/models/payment_method_payment_response.py +117 -0
- solvimon_python_sdk/models/payment_method_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_method_tokenization_request.py +137 -0
- solvimon_python_sdk/models/payment_method_tokenization_request_create_request.py +134 -0
- solvimon_python_sdk/models/payment_method_update_request.py +192 -0
- solvimon_python_sdk/models/payment_method_update_request_transaction.py +192 -0
- solvimon_python_sdk/models/payment_modification_response.py +105 -0
- solvimon_python_sdk/models/payment_request.py +145 -0
- solvimon_python_sdk/models/payment_request_create_request.py +145 -0
- solvimon_python_sdk/models/payment_request_payment_context.py +89 -0
- solvimon_python_sdk/models/payment_request_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_result_details.py +95 -0
- solvimon_python_sdk/models/payment_result_details_create_request.py +95 -0
- solvimon_python_sdk/models/payment_schedule.py +204 -0
- solvimon_python_sdk/models/payment_schedule_create_request.py +198 -0
- solvimon_python_sdk/models/payment_schedule_dunning.py +89 -0
- solvimon_python_sdk/models/payment_schedule_dunning_create_request.py +89 -0
- solvimon_python_sdk/models/payment_schedule_dunning_update_request.py +89 -0
- solvimon_python_sdk/models/payment_schedule_init.py +116 -0
- solvimon_python_sdk/models/payment_schedule_init_create_request.py +116 -0
- solvimon_python_sdk/models/payment_schedule_installments.py +120 -0
- solvimon_python_sdk/models/payment_schedule_installments_create_request.py +120 -0
- solvimon_python_sdk/models/payment_schedule_installments_update_request.py +120 -0
- solvimon_python_sdk/models/payment_schedule_one_off.py +93 -0
- solvimon_python_sdk/models/payment_schedule_one_off_create_request.py +93 -0
- solvimon_python_sdk/models/payment_schedule_one_off_update_request.py +93 -0
- solvimon_python_sdk/models/payment_schedule_recurring.py +104 -0
- solvimon_python_sdk/models/payment_schedule_recurring_create_request.py +104 -0
- solvimon_python_sdk/models/payment_schedule_recurring_update_request.py +104 -0
- solvimon_python_sdk/models/payment_schedule_response_wrapper.py +108 -0
- solvimon_python_sdk/models/payment_schedule_update_request.py +204 -0
- solvimon_python_sdk/models/payment_trigger.py +111 -0
- solvimon_python_sdk/models/payment_trigger_create_request.py +111 -0
- solvimon_python_sdk/models/payment_trigger_event.py +99 -0
- solvimon_python_sdk/models/payment_trigger_manual.py +103 -0
- solvimon_python_sdk/models/payment_verify_detail.py +97 -0
- solvimon_python_sdk/models/payment_verify_detail_create_request.py +97 -0
- solvimon_python_sdk/models/payment_verify_detail_response.py +89 -0
- solvimon_python_sdk/models/payment_workflow.py +99 -0
- solvimon_python_sdk/models/payment_workflow_create_request.py +99 -0
- solvimon_python_sdk/models/payment_workflow_update_request.py +99 -0
- solvimon_python_sdk/models/penalty_box_data.py +95 -0
- solvimon_python_sdk/models/penalty_box_data_create_request.py +95 -0
- solvimon_python_sdk/models/penalty_box_data_update_request.py +95 -0
- solvimon_python_sdk/models/period.py +101 -0
- solvimon_python_sdk/models/period_create_request.py +101 -0
- solvimon_python_sdk/models/period_update_request.py +101 -0
- solvimon_python_sdk/models/persist_data.py +157 -0
- solvimon_python_sdk/models/persist_data_create_request.py +157 -0
- solvimon_python_sdk/models/platform.py +227 -0
- solvimon_python_sdk/models/platform_pricing_plan_subscription_settings.py +149 -0
- solvimon_python_sdk/models/platform_pricing_plan_subscription_settings_update_request.py +149 -0
- solvimon_python_sdk/models/platform_up_to_date.py +111 -0
- solvimon_python_sdk/models/platform_up_to_date_reprocess.py +99 -0
- solvimon_python_sdk/models/platform_update_request.py +227 -0
- solvimon_python_sdk/models/portal_url.py +183 -0
- solvimon_python_sdk/models/portal_url_create_request.py +180 -0
- solvimon_python_sdk/models/portal_url_link.py +101 -0
- solvimon_python_sdk/models/portal_url_link_create_request.py +101 -0
- solvimon_python_sdk/models/portal_url_link_update_request.py +101 -0
- solvimon_python_sdk/models/portal_url_response_wrapper.py +108 -0
- solvimon_python_sdk/models/portal_url_settings.py +93 -0
- solvimon_python_sdk/models/portal_url_update_request.py +183 -0
- solvimon_python_sdk/models/portal_url_widgets.py +93 -0
- solvimon_python_sdk/models/portal_url_widgets_create_request.py +93 -0
- solvimon_python_sdk/models/portal_url_widgets_update_request.py +93 -0
- solvimon_python_sdk/models/pricing.py +167 -0
- solvimon_python_sdk/models/pricing_category.py +126 -0
- solvimon_python_sdk/models/pricing_category_create_request.py +126 -0
- solvimon_python_sdk/models/pricing_category_update_request.py +126 -0
- solvimon_python_sdk/models/pricing_commitment.py +100 -0
- solvimon_python_sdk/models/pricing_create_request.py +167 -0
- solvimon_python_sdk/models/pricing_currency_settings.py +91 -0
- solvimon_python_sdk/models/pricing_currency_settings_create_request.py +91 -0
- solvimon_python_sdk/models/pricing_currency_settings_update_request.py +91 -0
- solvimon_python_sdk/models/pricing_discount.py +108 -0
- solvimon_python_sdk/models/pricing_group.py +137 -0
- solvimon_python_sdk/models/pricing_group_create_request.py +137 -0
- solvimon_python_sdk/models/pricing_group_update_request.py +137 -0
- solvimon_python_sdk/models/pricing_item.py +156 -0
- solvimon_python_sdk/models/pricing_item_billing_period_config.py +102 -0
- solvimon_python_sdk/models/pricing_item_commitment.py +100 -0
- solvimon_python_sdk/models/pricing_item_config.py +209 -0
- solvimon_python_sdk/models/pricing_item_config_band.py +131 -0
- solvimon_python_sdk/models/pricing_item_config_band_create_request.py +131 -0
- solvimon_python_sdk/models/pricing_item_config_commitment.py +107 -0
- solvimon_python_sdk/models/pricing_item_config_conditions.py +100 -0
- solvimon_python_sdk/models/pricing_item_config_details.py +119 -0
- solvimon_python_sdk/models/pricing_item_config_discount.py +108 -0
- solvimon_python_sdk/models/pricing_item_config_markup.py +102 -0
- solvimon_python_sdk/models/pricing_item_config_meter_value.py +97 -0
- solvimon_python_sdk/models/pricing_item_config_meter_value_included_volume.py +99 -0
- solvimon_python_sdk/models/pricing_item_config_split_pricing.py +96 -0
- solvimon_python_sdk/models/pricing_item_config_top_up.py +89 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant.py +127 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_amount_grant.py +95 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_credits_grant.py +99 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_credits_grant_conversion.py +91 -0
- solvimon_python_sdk/models/pricing_item_config_wallet_grant_expiry_policy.py +93 -0
- solvimon_python_sdk/models/pricing_item_create_request.py +156 -0
- solvimon_python_sdk/models/pricing_item_discount.py +108 -0
- solvimon_python_sdk/models/pricing_item_pricing_currency_config.py +129 -0
- solvimon_python_sdk/models/pricing_item_summary_included_volume_details.py +103 -0
- solvimon_python_sdk/models/pricing_item_summary_meter_value.py +115 -0
- solvimon_python_sdk/models/pricing_item_summary_price_details.py +204 -0
- solvimon_python_sdk/models/pricing_item_summary_price_details_band.py +138 -0
- solvimon_python_sdk/models/pricing_item_summary_price_details_conversion.py +95 -0
- solvimon_python_sdk/models/pricing_item_summary_wallet_balance.py +113 -0
- solvimon_python_sdk/models/pricing_item_summary_wallet_balance_details.py +103 -0
- solvimon_python_sdk/models/pricing_item_update_request.py +156 -0
- solvimon_python_sdk/models/pricing_plan.py +220 -0
- solvimon_python_sdk/models/pricing_plan_create_request.py +217 -0
- solvimon_python_sdk/models/pricing_plan_group.py +175 -0
- solvimon_python_sdk/models/pricing_plan_group_create_request.py +163 -0
- solvimon_python_sdk/models/pricing_plan_group_member.py +91 -0
- solvimon_python_sdk/models/pricing_plan_group_member_create_request.py +91 -0
- solvimon_python_sdk/models/pricing_plan_group_member_update_request.py +91 -0
- solvimon_python_sdk/models/pricing_plan_group_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_group_update_request.py +175 -0
- solvimon_python_sdk/models/pricing_plan_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_schedule.py +290 -0
- solvimon_python_sdk/models/pricing_plan_schedule_copy.py +149 -0
- solvimon_python_sdk/models/pricing_plan_schedule_copy_create_request.py +149 -0
- solvimon_python_sdk/models/pricing_plan_schedule_create_request.py +290 -0
- solvimon_python_sdk/models/pricing_plan_schedule_customization.py +135 -0
- solvimon_python_sdk/models/pricing_plan_schedule_customization_create_request.py +135 -0
- solvimon_python_sdk/models/pricing_plan_schedule_info.py +139 -0
- solvimon_python_sdk/models/pricing_plan_schedule_info_update_request.py +139 -0
- solvimon_python_sdk/models/pricing_plan_schedule_migrate.py +126 -0
- solvimon_python_sdk/models/pricing_plan_schedule_migrate_create_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_schedule_response_wrapper.py +96 -0
- solvimon_python_sdk/models/pricing_plan_schedule_template.py +89 -0
- solvimon_python_sdk/models/pricing_plan_schedule_template_create_request.py +89 -0
- solvimon_python_sdk/models/pricing_plan_schedule_template_update_request.py +89 -0
- solvimon_python_sdk/models/pricing_plan_schedule_update_request.py +290 -0
- solvimon_python_sdk/models/pricing_plan_subscription.py +396 -0
- solvimon_python_sdk/models/pricing_plan_subscription_cancel.py +117 -0
- solvimon_python_sdk/models/pricing_plan_subscription_cancel_create_request.py +114 -0
- solvimon_python_sdk/models/pricing_plan_subscription_change_plan.py +98 -0
- solvimon_python_sdk/models/pricing_plan_subscription_change_plan_create_request.py +98 -0
- solvimon_python_sdk/models/pricing_plan_subscription_copy.py +100 -0
- solvimon_python_sdk/models/pricing_plan_subscription_copy_create_request.py +100 -0
- solvimon_python_sdk/models/pricing_plan_subscription_create_request.py +396 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group_create_request.py +123 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_group_update_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_info.py +95 -0
- solvimon_python_sdk/models/pricing_plan_subscription_info_create_request.py +95 -0
- solvimon_python_sdk/models/pricing_plan_subscription_info_update_request.py +95 -0
- solvimon_python_sdk/models/pricing_plan_subscription_init.py +148 -0
- solvimon_python_sdk/models/pricing_plan_subscription_init_create_request.py +148 -0
- solvimon_python_sdk/models/pricing_plan_subscription_payment_method_update.py +91 -0
- solvimon_python_sdk/models/pricing_plan_subscription_payment_method_update_create_request.py +91 -0
- solvimon_python_sdk/models/pricing_plan_subscription_response_wrapper.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_create_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_data.py +101 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_filter.py +113 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_rule.py +111 -0
- solvimon_python_sdk/models/pricing_plan_subscription_selector_update_request.py +126 -0
- solvimon_python_sdk/models/pricing_plan_subscription_template.py +112 -0
- solvimon_python_sdk/models/pricing_plan_subscription_template_create_request.py +112 -0
- solvimon_python_sdk/models/pricing_plan_subscription_template_update_request.py +112 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger.py +124 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger_create_request.py +124 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger_event.py +99 -0
- solvimon_python_sdk/models/pricing_plan_subscription_trigger_manual.py +103 -0
- solvimon_python_sdk/models/pricing_plan_subscription_update_request.py +396 -0
- solvimon_python_sdk/models/pricing_plan_subscription_workflow.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_workflow_create_request.py +108 -0
- solvimon_python_sdk/models/pricing_plan_subscription_workflow_update_request.py +108 -0
- solvimon_python_sdk/models/pricing_plan_update_request.py +220 -0
- solvimon_python_sdk/models/pricing_plan_version.py +159 -0
- solvimon_python_sdk/models/pricing_plan_version_create_request.py +159 -0
- solvimon_python_sdk/models/pricing_plan_version_info.py +99 -0
- solvimon_python_sdk/models/pricing_plan_version_info_create_request.py +99 -0
- solvimon_python_sdk/models/pricing_plan_version_info_update_request.py +99 -0
- solvimon_python_sdk/models/pricing_plan_version_selector.py +105 -0
- solvimon_python_sdk/models/pricing_plan_version_selector_create_request.py +105 -0
- solvimon_python_sdk/models/pricing_plan_version_selector_update_request.py +105 -0
- solvimon_python_sdk/models/pricing_plan_version_update_request.py +159 -0
- solvimon_python_sdk/models/pricing_update_request.py +167 -0
- solvimon_python_sdk/models/processing_settings.py +89 -0
- solvimon_python_sdk/models/processing_settings_update_request.py +89 -0
- solvimon_python_sdk/models/product.py +221 -0
- solvimon_python_sdk/models/product_category.py +148 -0
- solvimon_python_sdk/models/product_category_create_request.py +142 -0
- solvimon_python_sdk/models/product_category_discount.py +119 -0
- solvimon_python_sdk/models/product_category_response_wrapper.py +108 -0
- solvimon_python_sdk/models/product_category_update_request.py +148 -0
- solvimon_python_sdk/models/product_create_request.py +221 -0
- solvimon_python_sdk/models/product_discount.py +119 -0
- solvimon_python_sdk/models/product_item.py +243 -0
- solvimon_python_sdk/models/product_item_create_request.py +234 -0
- solvimon_python_sdk/models/product_item_credits.py +97 -0
- solvimon_python_sdk/models/product_item_credits_create_request.py +97 -0
- solvimon_python_sdk/models/product_item_credits_update_request.py +97 -0
- solvimon_python_sdk/models/product_item_discount.py +119 -0
- solvimon_python_sdk/models/product_item_meter_property_condition_discount.py +126 -0
- solvimon_python_sdk/models/product_item_response_wrapper.py +108 -0
- solvimon_python_sdk/models/product_item_update_request.py +243 -0
- solvimon_python_sdk/models/product_item_usage_based.py +114 -0
- solvimon_python_sdk/models/product_item_usage_based_create_request.py +114 -0
- solvimon_python_sdk/models/product_item_usage_based_update_request.py +114 -0
- solvimon_python_sdk/models/product_response_wrapper.py +108 -0
- solvimon_python_sdk/models/product_update_request.py +221 -0
- solvimon_python_sdk/models/promotion_code.py +137 -0
- solvimon_python_sdk/models/promotion_code_create_request.py +137 -0
- solvimon_python_sdk/models/promotion_code_details.py +95 -0
- solvimon_python_sdk/models/promotion_code_limited_to.py +100 -0
- solvimon_python_sdk/models/promotion_code_limited_to_create_request.py +100 -0
- solvimon_python_sdk/models/promotion_code_response_wrapper.py +108 -0
- solvimon_python_sdk/models/quote.py +166 -0
- solvimon_python_sdk/models/quote_create_request.py +166 -0
- solvimon_python_sdk/models/quote_init_action.py +113 -0
- solvimon_python_sdk/models/quote_init_action_create_request.py +113 -0
- solvimon_python_sdk/models/quote_init_action_pricing_plan_subscription.py +138 -0
- solvimon_python_sdk/models/quote_init_action_pricing_plan_subscription_create_request.py +138 -0
- solvimon_python_sdk/models/quote_init_action_quote.py +117 -0
- solvimon_python_sdk/models/quote_init_action_quote_create_request.py +117 -0
- solvimon_python_sdk/models/quote_init_action_quote_pricing_plan_schedule.py +125 -0
- solvimon_python_sdk/models/quote_init_action_quote_pricing_plan_schedule_create_request.py +125 -0
- solvimon_python_sdk/models/quote_init_action_quote_version.py +91 -0
- solvimon_python_sdk/models/quote_init_action_quote_version_create_request.py +91 -0
- solvimon_python_sdk/models/quote_pdf_configuration.py +91 -0
- solvimon_python_sdk/models/quote_settings.py +93 -0
- solvimon_python_sdk/models/quote_settings_update_request.py +93 -0
- solvimon_python_sdk/models/quote_template.py +176 -0
- solvimon_python_sdk/models/quote_template_create_request.py +170 -0
- solvimon_python_sdk/models/quote_template_response_wrapper.py +108 -0
- solvimon_python_sdk/models/quote_template_update_request.py +176 -0
- solvimon_python_sdk/models/quote_update_request.py +166 -0
- solvimon_python_sdk/models/quote_upgrade_action_request.py +105 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_create_request.py +105 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_schedule.py +94 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_schedule_create_request.py +94 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_subscription.py +124 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_pricing_plan_subscription_create_request.py +124 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_quote.py +114 -0
- solvimon_python_sdk/models/quote_upgrade_action_request_quote_create_request.py +114 -0
- solvimon_python_sdk/models/quote_upgrade_action_response.py +111 -0
- solvimon_python_sdk/models/quote_version.py +180 -0
- solvimon_python_sdk/models/quote_version_action.py +147 -0
- solvimon_python_sdk/models/quote_version_action_accept.py +95 -0
- solvimon_python_sdk/models/quote_version_action_accept_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_action_create_request.py +147 -0
- solvimon_python_sdk/models/quote_version_action_create_subscription.py +91 -0
- solvimon_python_sdk/models/quote_version_action_create_subscription_create_request.py +91 -0
- solvimon_python_sdk/models/quote_version_action_reject.py +97 -0
- solvimon_python_sdk/models/quote_version_action_reject_create_request.py +97 -0
- solvimon_python_sdk/models/quote_version_action_request_signature.py +99 -0
- solvimon_python_sdk/models/quote_version_action_send.py +95 -0
- solvimon_python_sdk/models/quote_version_action_send_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_action_sign.py +91 -0
- solvimon_python_sdk/models/quote_version_action_update_request.py +147 -0
- solvimon_python_sdk/models/quote_version_content.py +107 -0
- solvimon_python_sdk/models/quote_version_content_create_request.py +107 -0
- solvimon_python_sdk/models/quote_version_content_update_request.py +107 -0
- solvimon_python_sdk/models/quote_version_create_request.py +180 -0
- solvimon_python_sdk/models/quote_version_default_content.py +91 -0
- solvimon_python_sdk/models/quote_version_info.py +103 -0
- solvimon_python_sdk/models/quote_version_info_create_request.py +103 -0
- solvimon_python_sdk/models/quote_version_info_update_request.py +103 -0
- solvimon_python_sdk/models/quote_version_invoices_info.py +95 -0
- solvimon_python_sdk/models/quote_version_invoices_info_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_invoices_info_update_request.py +95 -0
- solvimon_python_sdk/models/quote_version_portal_url.py +89 -0
- solvimon_python_sdk/models/quote_version_portal_url_create_request.py +89 -0
- solvimon_python_sdk/models/quote_version_portal_url_update_request.py +89 -0
- solvimon_python_sdk/models/quote_version_recipient_data.py +125 -0
- solvimon_python_sdk/models/quote_version_recipient_data_create_request.py +125 -0
- solvimon_python_sdk/models/quote_version_recipient_data_update_request.py +125 -0
- solvimon_python_sdk/models/quote_version_response_wrapper.py +108 -0
- solvimon_python_sdk/models/quote_version_template.py +95 -0
- solvimon_python_sdk/models/quote_version_template_create_request.py +95 -0
- solvimon_python_sdk/models/quote_version_template_update_request.py +95 -0
- solvimon_python_sdk/models/quote_version_update_request.py +180 -0
- solvimon_python_sdk/models/quotes_response_wrapper.py +108 -0
- solvimon_python_sdk/models/rate_card.py +90 -0
- solvimon_python_sdk/models/rate_card_create_request.py +90 -0
- solvimon_python_sdk/models/rate_card_update_request.py +90 -0
- solvimon_python_sdk/models/recipient_contact_data.py +97 -0
- solvimon_python_sdk/models/recipient_details_data.py +95 -0
- solvimon_python_sdk/models/reference_mapping_interface.py +95 -0
- solvimon_python_sdk/models/refresh_invoice.py +112 -0
- solvimon_python_sdk/models/refresh_invoice_create_request.py +112 -0
- solvimon_python_sdk/models/refund_payment_request.py +93 -0
- solvimon_python_sdk/models/refund_payment_request_create_request.py +93 -0
- solvimon_python_sdk/models/report.py +164 -0
- solvimon_python_sdk/models/report_column.py +103 -0
- solvimon_python_sdk/models/report_configuration.py +128 -0
- solvimon_python_sdk/models/report_configuration_create_request.py +125 -0
- solvimon_python_sdk/models/report_configuration_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_configuration_update_request.py +128 -0
- solvimon_python_sdk/models/report_definition.py +179 -0
- solvimon_python_sdk/models/report_definition_create_request.py +179 -0
- solvimon_python_sdk/models/report_definition_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_definition_update_request.py +179 -0
- solvimon_python_sdk/models/report_generate_request.py +141 -0
- solvimon_python_sdk/models/report_generate_request_create_request.py +141 -0
- solvimon_python_sdk/models/report_generate_request_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_ingest_data_summary.py +106 -0
- solvimon_python_sdk/models/report_parameter.py +113 -0
- solvimon_python_sdk/models/report_parameter_value.py +101 -0
- solvimon_python_sdk/models/report_parameter_value_create_request.py +101 -0
- solvimon_python_sdk/models/report_parameter_value_update_request.py +101 -0
- solvimon_python_sdk/models/report_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_subscription.py +148 -0
- solvimon_python_sdk/models/report_subscription_create_request.py +148 -0
- solvimon_python_sdk/models/report_subscription_response_wrapper.py +108 -0
- solvimon_python_sdk/models/report_subscription_schedule.py +104 -0
- solvimon_python_sdk/models/report_subscription_schedule_create_request.py +104 -0
- solvimon_python_sdk/models/report_subscription_schedule_update_request.py +104 -0
- solvimon_python_sdk/models/report_subscription_update_request.py +148 -0
- solvimon_python_sdk/models/reprocess.py +137 -0
- solvimon_python_sdk/models/reprocess_create_request.py +134 -0
- solvimon_python_sdk/models/reprocess_customer.py +104 -0
- solvimon_python_sdk/models/reprocess_customer_create_request.py +104 -0
- solvimon_python_sdk/models/reprocess_invoice.py +91 -0
- solvimon_python_sdk/models/reprocess_invoice_create_request.py +91 -0
- solvimon_python_sdk/models/reprocess_not_matched.py +94 -0
- solvimon_python_sdk/models/reprocess_not_matched_create_request.py +94 -0
- solvimon_python_sdk/models/reprocess_response_wrapper.py +108 -0
- solvimon_python_sdk/models/reprocessing_delay.py +102 -0
- solvimon_python_sdk/models/reprocessing_settings.py +93 -0
- solvimon_python_sdk/models/reprocessing_settings_update_request.py +93 -0
- solvimon_python_sdk/models/request_usage_reports_parameters.py +100 -0
- solvimon_python_sdk/models/request_usage_reports_parameters_create_request.py +100 -0
- solvimon_python_sdk/models/required_action.py +107 -0
- solvimon_python_sdk/models/reset_password.py +91 -0
- solvimon_python_sdk/models/reset_password_create_request.py +91 -0
- solvimon_python_sdk/models/resource_identifier.py +101 -0
- solvimon_python_sdk/models/resource_identifier_create_request.py +101 -0
- solvimon_python_sdk/models/resubmit_e_invoice.py +91 -0
- solvimon_python_sdk/models/resubmit_e_invoice_create_request.py +91 -0
- solvimon_python_sdk/models/reviewer.py +101 -0
- solvimon_python_sdk/models/role.py +109 -0
- solvimon_python_sdk/models/role_create_request.py +109 -0
- solvimon_python_sdk/models/role_paginated_response_wrapper.py +108 -0
- solvimon_python_sdk/models/role_update_request.py +109 -0
- solvimon_python_sdk/models/rounding_setting.py +111 -0
- solvimon_python_sdk/models/rounding_setting_update_request.py +111 -0
- solvimon_python_sdk/models/s3.py +109 -0
- solvimon_python_sdk/models/search.py +114 -0
- solvimon_python_sdk/models/search_create_request.py +114 -0
- solvimon_python_sdk/models/search_field.py +97 -0
- solvimon_python_sdk/models/search_field_create_request.py +97 -0
- solvimon_python_sdk/models/seat_assignment.py +128 -0
- solvimon_python_sdk/models/seat_assignment_create_request.py +128 -0
- solvimon_python_sdk/models/seat_assignment_response_wrapper.py +108 -0
- solvimon_python_sdk/models/seat_assignment_update_request.py +128 -0
- solvimon_python_sdk/models/selection_rule.py +105 -0
- solvimon_python_sdk/models/selection_rule_create_request.py +105 -0
- solvimon_python_sdk/models/selection_rule_field.py +91 -0
- solvimon_python_sdk/models/selection_rule_field_create_request.py +91 -0
- solvimon_python_sdk/models/selection_rule_resource.py +127 -0
- solvimon_python_sdk/models/selection_rule_update_request.py +105 -0
- solvimon_python_sdk/models/seller_details.py +89 -0
- solvimon_python_sdk/models/seller_details_create_request.py +89 -0
- solvimon_python_sdk/models/seller_details_update_request.py +89 -0
- solvimon_python_sdk/models/send_email_invoice_configuration.py +105 -0
- solvimon_python_sdk/models/send_email_payment_configuration.py +89 -0
- solvimon_python_sdk/models/send_email_pricing_plan_subscription_configuration.py +89 -0
- solvimon_python_sdk/models/send_email_to_customer.py +175 -0
- solvimon_python_sdk/models/send_email_to_customer_update_request.py +175 -0
- solvimon_python_sdk/models/send_email_wallet_configuration.py +89 -0
- solvimon_python_sdk/models/send_webhook_action.py +89 -0
- solvimon_python_sdk/models/send_webhook_action_update_request.py +89 -0
- solvimon_python_sdk/models/signature_request.py +148 -0
- solvimon_python_sdk/models/signature_request_quote_version.py +91 -0
- solvimon_python_sdk/models/signature_request_recipient_action.py +101 -0
- solvimon_python_sdk/models/signature_request_recipient_action_create_request.py +98 -0
- solvimon_python_sdk/models/signature_request_recipient_data.py +135 -0
- solvimon_python_sdk/models/snowflake.py +97 -0
- solvimon_python_sdk/models/sso_authentication_provider_variant_settings.py +89 -0
- solvimon_python_sdk/models/sso_variant.py +113 -0
- solvimon_python_sdk/models/sso_variant_create_request.py +113 -0
- solvimon_python_sdk/models/sso_variant_update_request.py +113 -0
- solvimon_python_sdk/models/stripe_integration_details.py +89 -0
- solvimon_python_sdk/models/stripe_payment_action.py +91 -0
- solvimon_python_sdk/models/stripe_payment_gateway_integration.py +91 -0
- solvimon_python_sdk/models/stripe_payment_method_option.py +89 -0
- solvimon_python_sdk/models/stripe_required_action.py +95 -0
- solvimon_python_sdk/models/stripe_tokenization_request.py +89 -0
- solvimon_python_sdk/models/stripe_tokenization_request_create_request.py +89 -0
- solvimon_python_sdk/models/system_ownership_details.py +95 -0
- solvimon_python_sdk/models/tax_calculation_integration.py +118 -0
- solvimon_python_sdk/models/tax_calculation_integration_create_request.py +118 -0
- solvimon_python_sdk/models/tax_calculation_integration_update_request.py +118 -0
- solvimon_python_sdk/models/tax_id.py +111 -0
- solvimon_python_sdk/models/tax_id_create_request.py +111 -0
- solvimon_python_sdk/models/tax_id_type_response.py +97 -0
- solvimon_python_sdk/models/tax_id_validation.py +107 -0
- solvimon_python_sdk/models/tax_id_validation_wrapper.py +96 -0
- solvimon_python_sdk/models/tax_registration.py +112 -0
- solvimon_python_sdk/models/tax_registration_create_request.py +112 -0
- solvimon_python_sdk/models/tax_registration_update_request.py +112 -0
- solvimon_python_sdk/models/tax_settings.py +89 -0
- solvimon_python_sdk/models/tax_settings_create_request.py +89 -0
- solvimon_python_sdk/models/team_member_paginated_response_wrapper.py +96 -0
- solvimon_python_sdk/models/team_member_representation.py +109 -0
- solvimon_python_sdk/models/team_member_representation_create_request.py +109 -0
- solvimon_python_sdk/models/team_member_representation_update_request.py +109 -0
- solvimon_python_sdk/models/team_representation.py +106 -0
- solvimon_python_sdk/models/team_representation_create_request.py +106 -0
- solvimon_python_sdk/models/template_pricing_plan_subscription.py +101 -0
- solvimon_python_sdk/models/template_pricing_plan_subscription_update_request.py +101 -0
- solvimon_python_sdk/models/test_connection_response.py +109 -0
- solvimon_python_sdk/models/threshold.py +97 -0
- solvimon_python_sdk/models/total_discount.py +117 -0
- solvimon_python_sdk/models/trigger_report_request.py +96 -0
- solvimon_python_sdk/models/trigger_report_request_create_request.py +96 -0
- solvimon_python_sdk/models/uk_local.py +112 -0
- solvimon_python_sdk/models/unit_name.py +112 -0
- solvimon_python_sdk/models/unit_name_create_request.py +112 -0
- solvimon_python_sdk/models/unit_name_update_request.py +112 -0
- solvimon_python_sdk/models/us_local.py +136 -0
- solvimon_python_sdk/models/usage_limit.py +139 -0
- solvimon_python_sdk/models/usage_limit_create_request.py +136 -0
- solvimon_python_sdk/models/usage_limit_response_wrapper.py +108 -0
- solvimon_python_sdk/models/usage_limit_status.py +118 -0
- solvimon_python_sdk/models/usage_limit_status_response.py +106 -0
- solvimon_python_sdk/models/usage_limit_status_update.py +99 -0
- solvimon_python_sdk/models/usage_limit_status_update_create_request.py +96 -0
- solvimon_python_sdk/models/usage_limit_update_request.py +139 -0
- solvimon_python_sdk/models/usage_limit_value.py +112 -0
- solvimon_python_sdk/models/usage_limit_value_create_request.py +112 -0
- solvimon_python_sdk/models/usage_limit_value_update_request.py +112 -0
- solvimon_python_sdk/models/usage_threshold.py +124 -0
- solvimon_python_sdk/models/usage_trigger.py +97 -0
- solvimon_python_sdk/models/usage_trigger_create_request.py +97 -0
- solvimon_python_sdk/models/usage_trigger_event.py +131 -0
- solvimon_python_sdk/models/usage_workflow.py +110 -0
- solvimon_python_sdk/models/usage_workflow_create_request.py +110 -0
- solvimon_python_sdk/models/usage_workflow_update_request.py +110 -0
- solvimon_python_sdk/models/used_exchange_rate.py +97 -0
- solvimon_python_sdk/models/used_exchange_rate_create_request.py +97 -0
- solvimon_python_sdk/models/used_exchange_rate_update_request.py +97 -0
- solvimon_python_sdk/models/used_wallet_grant_detail.py +111 -0
- solvimon_python_sdk/models/user.py +158 -0
- solvimon_python_sdk/models/user_create_request.py +158 -0
- solvimon_python_sdk/models/user_create_request_identity.py +158 -0
- solvimon_python_sdk/models/user_invite.py +109 -0
- solvimon_python_sdk/models/user_invite_create_request.py +109 -0
- solvimon_python_sdk/models/user_paginated_response_wrapper.py +108 -0
- solvimon_python_sdk/models/user_search_filter.py +95 -0
- solvimon_python_sdk/models/user_search_filter_create_request.py +95 -0
- solvimon_python_sdk/models/user_update_request.py +158 -0
- solvimon_python_sdk/models/user_update_request_identity.py +158 -0
- solvimon_python_sdk/models/username_password.py +91 -0
- solvimon_python_sdk/models/username_password_create_request.py +91 -0
- solvimon_python_sdk/models/volume.py +95 -0
- solvimon_python_sdk/models/volume_create_request.py +95 -0
- solvimon_python_sdk/models/wallet.py +151 -0
- solvimon_python_sdk/models/wallet_balance_status.py +131 -0
- solvimon_python_sdk/models/wallet_balance_status_request.py +92 -0
- solvimon_python_sdk/models/wallet_balance_status_request_create_request.py +92 -0
- solvimon_python_sdk/models/wallet_balance_value.py +103 -0
- solvimon_python_sdk/models/wallet_balance_value_create_request.py +103 -0
- solvimon_python_sdk/models/wallet_create_request.py +148 -0
- solvimon_python_sdk/models/wallet_customer_balance_detail.py +113 -0
- solvimon_python_sdk/models/wallet_grant.py +200 -0
- solvimon_python_sdk/models/wallet_grant_create_request.py +200 -0
- solvimon_python_sdk/models/wallet_grant_response_wrapper.py +108 -0
- solvimon_python_sdk/models/wallet_grant_seat.py +95 -0
- solvimon_python_sdk/models/wallet_grant_seat_create_request.py +95 -0
- solvimon_python_sdk/models/wallet_response_wrapper.py +108 -0
- solvimon_python_sdk/models/wallet_threshold.py +112 -0
- solvimon_python_sdk/models/wallet_trigger.py +127 -0
- solvimon_python_sdk/models/wallet_trigger_create_request.py +127 -0
- solvimon_python_sdk/models/wallet_trigger_event.py +99 -0
- solvimon_python_sdk/models/wallet_trigger_wallet_balance.py +102 -0
- solvimon_python_sdk/models/wallet_type.py +164 -0
- solvimon_python_sdk/models/wallet_type_balance.py +89 -0
- solvimon_python_sdk/models/wallet_type_balance_update_request.py +89 -0
- solvimon_python_sdk/models/wallet_type_create_request.py +164 -0
- solvimon_python_sdk/models/wallet_type_credit.py +111 -0
- solvimon_python_sdk/models/wallet_type_credit_amount_grant.py +111 -0
- solvimon_python_sdk/models/wallet_type_credit_credits_grant.py +89 -0
- solvimon_python_sdk/models/wallet_type_credit_update_request.py +111 -0
- solvimon_python_sdk/models/wallet_type_response_wrapper.py +108 -0
- solvimon_python_sdk/models/wallet_type_update_request.py +164 -0
- solvimon_python_sdk/models/wallet_wallet_balance.py +107 -0
- solvimon_python_sdk/models/wallet_workflow.py +105 -0
- solvimon_python_sdk/models/wallet_workflow_create_request.py +105 -0
- solvimon_python_sdk/models/wallet_workflow_update_request.py +105 -0
- solvimon_python_sdk/models/webhook.py +200 -0
- solvimon_python_sdk/models/webhook_action.py +91 -0
- solvimon_python_sdk/models/webhook_action_response_wrapper.py +98 -0
- solvimon_python_sdk/models/webhook_connection_response.py +95 -0
- solvimon_python_sdk/models/webhook_create_request.py +200 -0
- solvimon_python_sdk/models/webhook_event.py +131 -0
- solvimon_python_sdk/models/webhook_event_failure_data.py +95 -0
- solvimon_python_sdk/models/webhook_event_response_wrapper.py +108 -0
- solvimon_python_sdk/models/webhook_response_wrapper.py +108 -0
- solvimon_python_sdk/models/webhook_update_request.py +200 -0
- solvimon_python_sdk/models/workflow.py +202 -0
- solvimon_python_sdk/models/workflow_action.py +160 -0
- solvimon_python_sdk/models/workflow_action_create_request.py +160 -0
- solvimon_python_sdk/models/workflow_action_execution.py +149 -0
- solvimon_python_sdk/models/workflow_action_execution_create_request.py +146 -0
- solvimon_python_sdk/models/workflow_action_execution_update_request.py +149 -0
- solvimon_python_sdk/models/workflow_action_executions_paginated_response.py +108 -0
- solvimon_python_sdk/models/workflow_action_update_request.py +160 -0
- solvimon_python_sdk/models/workflow_action_update_request_transaction.py +160 -0
- solvimon_python_sdk/models/workflow_conditions.py +111 -0
- solvimon_python_sdk/models/workflow_conditions_comparison.py +103 -0
- solvimon_python_sdk/models/workflow_conditions_create_request.py +111 -0
- solvimon_python_sdk/models/workflow_conditions_group.py +101 -0
- solvimon_python_sdk/models/workflow_conditions_result_comparison.py +105 -0
- solvimon_python_sdk/models/workflow_conditions_result_group.py +101 -0
- solvimon_python_sdk/models/workflow_conditions_result_tree.py +123 -0
- solvimon_python_sdk/models/workflow_conditions_result_tree_create_request.py +123 -0
- solvimon_python_sdk/models/workflow_conditions_result_tree_update_request.py +123 -0
- solvimon_python_sdk/models/workflow_conditions_update_request.py +111 -0
- solvimon_python_sdk/models/workflow_create_request.py +190 -0
- solvimon_python_sdk/models/workflow_create_request_transaction.py +202 -0
- solvimon_python_sdk/models/workflow_init.py +102 -0
- solvimon_python_sdk/models/workflow_init_create_request.py +102 -0
- solvimon_python_sdk/models/workflow_paginated_response.py +108 -0
- solvimon_python_sdk/models/workflow_trigger.py +157 -0
- solvimon_python_sdk/models/workflow_trigger_create_request.py +154 -0
- solvimon_python_sdk/models/workflow_trigger_paginated_response.py +108 -0
- solvimon_python_sdk/models/workflow_trigger_update_request.py +157 -0
- solvimon_python_sdk/models/workflow_update_request.py +202 -0
- solvimon_python_sdk/py.typed +0 -0
- solvimon_python_sdk/rest.py +335 -0
- solvimon_python_sdk-0.0.4b0.dist-info/METADATA +1725 -0
- solvimon_python_sdk-0.0.4b0.dist-info/RECORD +1196 -0
- solvimon_python_sdk-0.0.4b0.dist-info/WHEEL +5 -0
- solvimon_python_sdk-0.0.4b0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,4667 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Solvimon API
|
|
3
|
+
|
|
4
|
+
Unified Solvimon API covering Configuration, Event, Identity, and Transaction domains.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.4-beta
|
|
7
|
+
Contact: contact@solvimon.com
|
|
8
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
|
|
10
|
+
Do not edit the class manually.
|
|
11
|
+
""" # noqa: E501
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
20
|
+
from typing import Dict, List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from solvimon_python_sdk.models.customer import Customer
|
|
23
|
+
from solvimon_python_sdk.models.customer_create_request import CustomerCreateRequest
|
|
24
|
+
from solvimon_python_sdk.models.customer_response_wrapper import CustomerResponseWrapper
|
|
25
|
+
from solvimon_python_sdk.models.customer_update_request import CustomerUpdateRequest
|
|
26
|
+
from solvimon_python_sdk.models.customer_wallet_balances_status import CustomerWalletBalancesStatus
|
|
27
|
+
from solvimon_python_sdk.models.entitlements import Entitlements
|
|
28
|
+
from solvimon_python_sdk.models.search_create_request import SearchCreateRequest
|
|
29
|
+
from solvimon_python_sdk.models.tax_id_validation_wrapper import TaxIdValidationWrapper
|
|
30
|
+
from solvimon_python_sdk.models.wallet_balance_status_request_create_request import WalletBalanceStatusRequestCreateRequest
|
|
31
|
+
|
|
32
|
+
from solvimon_python_sdk.api_client import ApiClient, RequestSerialized
|
|
33
|
+
from solvimon_python_sdk.api_response import ApiResponse
|
|
34
|
+
from solvimon_python_sdk.rest import RESTResponseType
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class CustomersApi:
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def __init__(self, api_client=None) -> None:
|
|
45
|
+
if api_client is None:
|
|
46
|
+
api_client = ApiClient.get_default()
|
|
47
|
+
self.api_client = api_client
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@validate_call
|
|
51
|
+
def delete_customers_by_resource_id_or_reference(
|
|
52
|
+
self,
|
|
53
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
54
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
55
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
56
|
+
_request_timeout: Union[
|
|
57
|
+
None,
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Tuple[
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
+
]
|
|
63
|
+
] = None,
|
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
+
) -> Customer:
|
|
69
|
+
"""Delete a DRAFT customer by ID or reference
|
|
70
|
+
|
|
71
|
+
Requires the CUSTOMER.DELETE permission.
|
|
72
|
+
|
|
73
|
+
:param version: version (required)
|
|
74
|
+
:type version: str
|
|
75
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
76
|
+
:type resource_id_or_reference: str
|
|
77
|
+
:param x_platform_id: Platform ID.
|
|
78
|
+
:type x_platform_id: str
|
|
79
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
80
|
+
number provided, it will be total request
|
|
81
|
+
timeout. It can also be a pair (tuple) of
|
|
82
|
+
(connection, read) timeouts.
|
|
83
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
84
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
85
|
+
request; this effectively ignores the
|
|
86
|
+
authentication in the spec for a single request.
|
|
87
|
+
:type _request_auth: dict, optional
|
|
88
|
+
:param _content_type: force content-type for the request.
|
|
89
|
+
:type _content_type: str, Optional
|
|
90
|
+
:param _headers: set to override the headers for a single
|
|
91
|
+
request; this effectively ignores the headers
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _headers: dict, optional
|
|
94
|
+
:param _host_index: set to override the host_index for a single
|
|
95
|
+
request; this effectively ignores the host_index
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _host_index: int, optional
|
|
98
|
+
:return: Returns the result object.
|
|
99
|
+
""" # noqa: E501
|
|
100
|
+
|
|
101
|
+
_param = self._delete_customers_by_resource_id_or_reference_serialize(
|
|
102
|
+
version=version,
|
|
103
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
104
|
+
x_platform_id=x_platform_id,
|
|
105
|
+
_request_auth=_request_auth,
|
|
106
|
+
_content_type=_content_type,
|
|
107
|
+
_headers=_headers,
|
|
108
|
+
_host_index=_host_index
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
112
|
+
'200': "Customer",
|
|
113
|
+
'400': "ApiError",
|
|
114
|
+
'401': "ApiError",
|
|
115
|
+
'403': "ApiError",
|
|
116
|
+
'500': "ApiError",
|
|
117
|
+
}
|
|
118
|
+
response_data = self.api_client.call_api(
|
|
119
|
+
*_param,
|
|
120
|
+
_request_timeout=_request_timeout
|
|
121
|
+
)
|
|
122
|
+
response_data.read()
|
|
123
|
+
return self.api_client.response_deserialize(
|
|
124
|
+
response_data=response_data,
|
|
125
|
+
response_types_map=_response_types_map,
|
|
126
|
+
).data
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
@validate_call
|
|
130
|
+
def delete_customers_by_resource_id_or_reference_with_http_info(
|
|
131
|
+
self,
|
|
132
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
133
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
134
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
135
|
+
_request_timeout: Union[
|
|
136
|
+
None,
|
|
137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
138
|
+
Tuple[
|
|
139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
140
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
141
|
+
]
|
|
142
|
+
] = None,
|
|
143
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
144
|
+
_content_type: Optional[StrictStr] = None,
|
|
145
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
146
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
147
|
+
) -> ApiResponse[Customer]:
|
|
148
|
+
"""Delete a DRAFT customer by ID or reference
|
|
149
|
+
|
|
150
|
+
Requires the CUSTOMER.DELETE permission.
|
|
151
|
+
|
|
152
|
+
:param version: version (required)
|
|
153
|
+
:type version: str
|
|
154
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
155
|
+
:type resource_id_or_reference: str
|
|
156
|
+
:param x_platform_id: Platform ID.
|
|
157
|
+
:type x_platform_id: str
|
|
158
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
159
|
+
number provided, it will be total request
|
|
160
|
+
timeout. It can also be a pair (tuple) of
|
|
161
|
+
(connection, read) timeouts.
|
|
162
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
163
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
164
|
+
request; this effectively ignores the
|
|
165
|
+
authentication in the spec for a single request.
|
|
166
|
+
:type _request_auth: dict, optional
|
|
167
|
+
:param _content_type: force content-type for the request.
|
|
168
|
+
:type _content_type: str, Optional
|
|
169
|
+
:param _headers: set to override the headers for a single
|
|
170
|
+
request; this effectively ignores the headers
|
|
171
|
+
in the spec for a single request.
|
|
172
|
+
:type _headers: dict, optional
|
|
173
|
+
:param _host_index: set to override the host_index for a single
|
|
174
|
+
request; this effectively ignores the host_index
|
|
175
|
+
in the spec for a single request.
|
|
176
|
+
:type _host_index: int, optional
|
|
177
|
+
:return: Returns the result object.
|
|
178
|
+
""" # noqa: E501
|
|
179
|
+
|
|
180
|
+
_param = self._delete_customers_by_resource_id_or_reference_serialize(
|
|
181
|
+
version=version,
|
|
182
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
183
|
+
x_platform_id=x_platform_id,
|
|
184
|
+
_request_auth=_request_auth,
|
|
185
|
+
_content_type=_content_type,
|
|
186
|
+
_headers=_headers,
|
|
187
|
+
_host_index=_host_index
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
191
|
+
'200': "Customer",
|
|
192
|
+
'400': "ApiError",
|
|
193
|
+
'401': "ApiError",
|
|
194
|
+
'403': "ApiError",
|
|
195
|
+
'500': "ApiError",
|
|
196
|
+
}
|
|
197
|
+
response_data = self.api_client.call_api(
|
|
198
|
+
*_param,
|
|
199
|
+
_request_timeout=_request_timeout
|
|
200
|
+
)
|
|
201
|
+
response_data.read()
|
|
202
|
+
return self.api_client.response_deserialize(
|
|
203
|
+
response_data=response_data,
|
|
204
|
+
response_types_map=_response_types_map,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
@validate_call
|
|
209
|
+
def delete_customers_by_resource_id_or_reference_without_preload_content(
|
|
210
|
+
self,
|
|
211
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
212
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
213
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
214
|
+
_request_timeout: Union[
|
|
215
|
+
None,
|
|
216
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
217
|
+
Tuple[
|
|
218
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
219
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
220
|
+
]
|
|
221
|
+
] = None,
|
|
222
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
223
|
+
_content_type: Optional[StrictStr] = None,
|
|
224
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
225
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
226
|
+
) -> RESTResponseType:
|
|
227
|
+
"""Delete a DRAFT customer by ID or reference
|
|
228
|
+
|
|
229
|
+
Requires the CUSTOMER.DELETE permission.
|
|
230
|
+
|
|
231
|
+
:param version: version (required)
|
|
232
|
+
:type version: str
|
|
233
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
234
|
+
:type resource_id_or_reference: str
|
|
235
|
+
:param x_platform_id: Platform ID.
|
|
236
|
+
:type x_platform_id: str
|
|
237
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
238
|
+
number provided, it will be total request
|
|
239
|
+
timeout. It can also be a pair (tuple) of
|
|
240
|
+
(connection, read) timeouts.
|
|
241
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
242
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
243
|
+
request; this effectively ignores the
|
|
244
|
+
authentication in the spec for a single request.
|
|
245
|
+
:type _request_auth: dict, optional
|
|
246
|
+
:param _content_type: force content-type for the request.
|
|
247
|
+
:type _content_type: str, Optional
|
|
248
|
+
:param _headers: set to override the headers for a single
|
|
249
|
+
request; this effectively ignores the headers
|
|
250
|
+
in the spec for a single request.
|
|
251
|
+
:type _headers: dict, optional
|
|
252
|
+
:param _host_index: set to override the host_index for a single
|
|
253
|
+
request; this effectively ignores the host_index
|
|
254
|
+
in the spec for a single request.
|
|
255
|
+
:type _host_index: int, optional
|
|
256
|
+
:return: Returns the result object.
|
|
257
|
+
""" # noqa: E501
|
|
258
|
+
|
|
259
|
+
_param = self._delete_customers_by_resource_id_or_reference_serialize(
|
|
260
|
+
version=version,
|
|
261
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
262
|
+
x_platform_id=x_platform_id,
|
|
263
|
+
_request_auth=_request_auth,
|
|
264
|
+
_content_type=_content_type,
|
|
265
|
+
_headers=_headers,
|
|
266
|
+
_host_index=_host_index
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
270
|
+
'200': "Customer",
|
|
271
|
+
'400': "ApiError",
|
|
272
|
+
'401': "ApiError",
|
|
273
|
+
'403': "ApiError",
|
|
274
|
+
'500': "ApiError",
|
|
275
|
+
}
|
|
276
|
+
response_data = self.api_client.call_api(
|
|
277
|
+
*_param,
|
|
278
|
+
_request_timeout=_request_timeout
|
|
279
|
+
)
|
|
280
|
+
return response_data.response
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
def _delete_customers_by_resource_id_or_reference_serialize(
|
|
284
|
+
self,
|
|
285
|
+
version,
|
|
286
|
+
resource_id_or_reference,
|
|
287
|
+
x_platform_id,
|
|
288
|
+
_request_auth,
|
|
289
|
+
_content_type,
|
|
290
|
+
_headers,
|
|
291
|
+
_host_index,
|
|
292
|
+
) -> RequestSerialized:
|
|
293
|
+
|
|
294
|
+
_host = None
|
|
295
|
+
|
|
296
|
+
_collection_formats: Dict[str, str] = {
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
_path_params: Dict[str, str] = {}
|
|
300
|
+
_query_params: List[Tuple[str, str]] = []
|
|
301
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
302
|
+
_form_params: List[Tuple[str, str]] = []
|
|
303
|
+
_files: Dict[
|
|
304
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
305
|
+
] = {}
|
|
306
|
+
_body_params: Optional[bytes] = None
|
|
307
|
+
|
|
308
|
+
# process the path parameters
|
|
309
|
+
if version is not None:
|
|
310
|
+
_path_params['version'] = version
|
|
311
|
+
if resource_id_or_reference is not None:
|
|
312
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
313
|
+
# process the query parameters
|
|
314
|
+
# process the header parameters
|
|
315
|
+
if x_platform_id is not None:
|
|
316
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
317
|
+
# process the form parameters
|
|
318
|
+
# process the body parameter
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
# set the HTTP header `Accept`
|
|
322
|
+
if 'Accept' not in _header_params:
|
|
323
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
324
|
+
[
|
|
325
|
+
'application/json',
|
|
326
|
+
'*/*'
|
|
327
|
+
]
|
|
328
|
+
)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
# authentication setting
|
|
332
|
+
_auth_settings: List[str] = [
|
|
333
|
+
'JWT-Authentication',
|
|
334
|
+
'API-Key'
|
|
335
|
+
]
|
|
336
|
+
|
|
337
|
+
return self.api_client.param_serialize(
|
|
338
|
+
method='DELETE',
|
|
339
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}',
|
|
340
|
+
path_params=_path_params,
|
|
341
|
+
query_params=_query_params,
|
|
342
|
+
header_params=_header_params,
|
|
343
|
+
body=_body_params,
|
|
344
|
+
post_params=_form_params,
|
|
345
|
+
files=_files,
|
|
346
|
+
auth_settings=_auth_settings,
|
|
347
|
+
collection_formats=_collection_formats,
|
|
348
|
+
_host=_host,
|
|
349
|
+
_request_auth=_request_auth
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
@validate_call
|
|
356
|
+
def get_customers(
|
|
357
|
+
self,
|
|
358
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
359
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
360
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
361
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
362
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
363
|
+
custom_field: Annotated[Optional[StrictStr], Field(description="Filter the response by a custom field value.")] = None,
|
|
364
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
365
|
+
reference: Annotated[Optional[StrictStr], Field(description="The reference by which the resource will be filtered.")] = None,
|
|
366
|
+
_request_timeout: Union[
|
|
367
|
+
None,
|
|
368
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
369
|
+
Tuple[
|
|
370
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
371
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
372
|
+
]
|
|
373
|
+
] = None,
|
|
374
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
375
|
+
_content_type: Optional[StrictStr] = None,
|
|
376
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
377
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
378
|
+
) -> CustomerResponseWrapper:
|
|
379
|
+
"""Get a list of all customers
|
|
380
|
+
|
|
381
|
+
Requires the CUSTOMER.VIEW permission.
|
|
382
|
+
|
|
383
|
+
:param version: version (required)
|
|
384
|
+
:type version: str
|
|
385
|
+
:param x_platform_id: Platform ID.
|
|
386
|
+
:type x_platform_id: str
|
|
387
|
+
:param limit: The amount of records shown in the list
|
|
388
|
+
:type limit: int
|
|
389
|
+
:param page: The page which is going to be shown
|
|
390
|
+
:type page: int
|
|
391
|
+
:param order_by: The parameter by which the response is ordered.
|
|
392
|
+
:type order_by: str
|
|
393
|
+
:param custom_field: Filter the response by a custom field value.
|
|
394
|
+
:type custom_field: str
|
|
395
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
396
|
+
:type order_direction: str
|
|
397
|
+
:param reference: The reference by which the resource will be filtered.
|
|
398
|
+
:type reference: str
|
|
399
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
400
|
+
number provided, it will be total request
|
|
401
|
+
timeout. It can also be a pair (tuple) of
|
|
402
|
+
(connection, read) timeouts.
|
|
403
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
404
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
405
|
+
request; this effectively ignores the
|
|
406
|
+
authentication in the spec for a single request.
|
|
407
|
+
:type _request_auth: dict, optional
|
|
408
|
+
:param _content_type: force content-type for the request.
|
|
409
|
+
:type _content_type: str, Optional
|
|
410
|
+
:param _headers: set to override the headers for a single
|
|
411
|
+
request; this effectively ignores the headers
|
|
412
|
+
in the spec for a single request.
|
|
413
|
+
:type _headers: dict, optional
|
|
414
|
+
:param _host_index: set to override the host_index for a single
|
|
415
|
+
request; this effectively ignores the host_index
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _host_index: int, optional
|
|
418
|
+
:return: Returns the result object.
|
|
419
|
+
""" # noqa: E501
|
|
420
|
+
|
|
421
|
+
_param = self._get_customers_serialize(
|
|
422
|
+
version=version,
|
|
423
|
+
x_platform_id=x_platform_id,
|
|
424
|
+
limit=limit,
|
|
425
|
+
page=page,
|
|
426
|
+
order_by=order_by,
|
|
427
|
+
custom_field=custom_field,
|
|
428
|
+
order_direction=order_direction,
|
|
429
|
+
reference=reference,
|
|
430
|
+
_request_auth=_request_auth,
|
|
431
|
+
_content_type=_content_type,
|
|
432
|
+
_headers=_headers,
|
|
433
|
+
_host_index=_host_index
|
|
434
|
+
)
|
|
435
|
+
|
|
436
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
437
|
+
'200': "CustomerResponseWrapper",
|
|
438
|
+
'401': "ApiError",
|
|
439
|
+
'403': "ApiError",
|
|
440
|
+
'500': "ApiError",
|
|
441
|
+
}
|
|
442
|
+
response_data = self.api_client.call_api(
|
|
443
|
+
*_param,
|
|
444
|
+
_request_timeout=_request_timeout
|
|
445
|
+
)
|
|
446
|
+
response_data.read()
|
|
447
|
+
return self.api_client.response_deserialize(
|
|
448
|
+
response_data=response_data,
|
|
449
|
+
response_types_map=_response_types_map,
|
|
450
|
+
).data
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
@validate_call
|
|
454
|
+
def get_customers_with_http_info(
|
|
455
|
+
self,
|
|
456
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
457
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
458
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
459
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
460
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
461
|
+
custom_field: Annotated[Optional[StrictStr], Field(description="Filter the response by a custom field value.")] = None,
|
|
462
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
463
|
+
reference: Annotated[Optional[StrictStr], Field(description="The reference by which the resource will be filtered.")] = None,
|
|
464
|
+
_request_timeout: Union[
|
|
465
|
+
None,
|
|
466
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
467
|
+
Tuple[
|
|
468
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
469
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
470
|
+
]
|
|
471
|
+
] = None,
|
|
472
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
473
|
+
_content_type: Optional[StrictStr] = None,
|
|
474
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
475
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
476
|
+
) -> ApiResponse[CustomerResponseWrapper]:
|
|
477
|
+
"""Get a list of all customers
|
|
478
|
+
|
|
479
|
+
Requires the CUSTOMER.VIEW permission.
|
|
480
|
+
|
|
481
|
+
:param version: version (required)
|
|
482
|
+
:type version: str
|
|
483
|
+
:param x_platform_id: Platform ID.
|
|
484
|
+
:type x_platform_id: str
|
|
485
|
+
:param limit: The amount of records shown in the list
|
|
486
|
+
:type limit: int
|
|
487
|
+
:param page: The page which is going to be shown
|
|
488
|
+
:type page: int
|
|
489
|
+
:param order_by: The parameter by which the response is ordered.
|
|
490
|
+
:type order_by: str
|
|
491
|
+
:param custom_field: Filter the response by a custom field value.
|
|
492
|
+
:type custom_field: str
|
|
493
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
494
|
+
:type order_direction: str
|
|
495
|
+
:param reference: The reference by which the resource will be filtered.
|
|
496
|
+
:type reference: str
|
|
497
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
498
|
+
number provided, it will be total request
|
|
499
|
+
timeout. It can also be a pair (tuple) of
|
|
500
|
+
(connection, read) timeouts.
|
|
501
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
502
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
503
|
+
request; this effectively ignores the
|
|
504
|
+
authentication in the spec for a single request.
|
|
505
|
+
:type _request_auth: dict, optional
|
|
506
|
+
:param _content_type: force content-type for the request.
|
|
507
|
+
:type _content_type: str, Optional
|
|
508
|
+
:param _headers: set to override the headers for a single
|
|
509
|
+
request; this effectively ignores the headers
|
|
510
|
+
in the spec for a single request.
|
|
511
|
+
:type _headers: dict, optional
|
|
512
|
+
:param _host_index: set to override the host_index for a single
|
|
513
|
+
request; this effectively ignores the host_index
|
|
514
|
+
in the spec for a single request.
|
|
515
|
+
:type _host_index: int, optional
|
|
516
|
+
:return: Returns the result object.
|
|
517
|
+
""" # noqa: E501
|
|
518
|
+
|
|
519
|
+
_param = self._get_customers_serialize(
|
|
520
|
+
version=version,
|
|
521
|
+
x_platform_id=x_platform_id,
|
|
522
|
+
limit=limit,
|
|
523
|
+
page=page,
|
|
524
|
+
order_by=order_by,
|
|
525
|
+
custom_field=custom_field,
|
|
526
|
+
order_direction=order_direction,
|
|
527
|
+
reference=reference,
|
|
528
|
+
_request_auth=_request_auth,
|
|
529
|
+
_content_type=_content_type,
|
|
530
|
+
_headers=_headers,
|
|
531
|
+
_host_index=_host_index
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
535
|
+
'200': "CustomerResponseWrapper",
|
|
536
|
+
'401': "ApiError",
|
|
537
|
+
'403': "ApiError",
|
|
538
|
+
'500': "ApiError",
|
|
539
|
+
}
|
|
540
|
+
response_data = self.api_client.call_api(
|
|
541
|
+
*_param,
|
|
542
|
+
_request_timeout=_request_timeout
|
|
543
|
+
)
|
|
544
|
+
response_data.read()
|
|
545
|
+
return self.api_client.response_deserialize(
|
|
546
|
+
response_data=response_data,
|
|
547
|
+
response_types_map=_response_types_map,
|
|
548
|
+
)
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
@validate_call
|
|
552
|
+
def get_customers_without_preload_content(
|
|
553
|
+
self,
|
|
554
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
555
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
556
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
557
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
558
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
559
|
+
custom_field: Annotated[Optional[StrictStr], Field(description="Filter the response by a custom field value.")] = None,
|
|
560
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
561
|
+
reference: Annotated[Optional[StrictStr], Field(description="The reference by which the resource will be filtered.")] = None,
|
|
562
|
+
_request_timeout: Union[
|
|
563
|
+
None,
|
|
564
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
565
|
+
Tuple[
|
|
566
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
567
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
568
|
+
]
|
|
569
|
+
] = None,
|
|
570
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
571
|
+
_content_type: Optional[StrictStr] = None,
|
|
572
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
573
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
574
|
+
) -> RESTResponseType:
|
|
575
|
+
"""Get a list of all customers
|
|
576
|
+
|
|
577
|
+
Requires the CUSTOMER.VIEW permission.
|
|
578
|
+
|
|
579
|
+
:param version: version (required)
|
|
580
|
+
:type version: str
|
|
581
|
+
:param x_platform_id: Platform ID.
|
|
582
|
+
:type x_platform_id: str
|
|
583
|
+
:param limit: The amount of records shown in the list
|
|
584
|
+
:type limit: int
|
|
585
|
+
:param page: The page which is going to be shown
|
|
586
|
+
:type page: int
|
|
587
|
+
:param order_by: The parameter by which the response is ordered.
|
|
588
|
+
:type order_by: str
|
|
589
|
+
:param custom_field: Filter the response by a custom field value.
|
|
590
|
+
:type custom_field: str
|
|
591
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
592
|
+
:type order_direction: str
|
|
593
|
+
:param reference: The reference by which the resource will be filtered.
|
|
594
|
+
:type reference: str
|
|
595
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
596
|
+
number provided, it will be total request
|
|
597
|
+
timeout. It can also be a pair (tuple) of
|
|
598
|
+
(connection, read) timeouts.
|
|
599
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
600
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
601
|
+
request; this effectively ignores the
|
|
602
|
+
authentication in the spec for a single request.
|
|
603
|
+
:type _request_auth: dict, optional
|
|
604
|
+
:param _content_type: force content-type for the request.
|
|
605
|
+
:type _content_type: str, Optional
|
|
606
|
+
:param _headers: set to override the headers for a single
|
|
607
|
+
request; this effectively ignores the headers
|
|
608
|
+
in the spec for a single request.
|
|
609
|
+
:type _headers: dict, optional
|
|
610
|
+
:param _host_index: set to override the host_index for a single
|
|
611
|
+
request; this effectively ignores the host_index
|
|
612
|
+
in the spec for a single request.
|
|
613
|
+
:type _host_index: int, optional
|
|
614
|
+
:return: Returns the result object.
|
|
615
|
+
""" # noqa: E501
|
|
616
|
+
|
|
617
|
+
_param = self._get_customers_serialize(
|
|
618
|
+
version=version,
|
|
619
|
+
x_platform_id=x_platform_id,
|
|
620
|
+
limit=limit,
|
|
621
|
+
page=page,
|
|
622
|
+
order_by=order_by,
|
|
623
|
+
custom_field=custom_field,
|
|
624
|
+
order_direction=order_direction,
|
|
625
|
+
reference=reference,
|
|
626
|
+
_request_auth=_request_auth,
|
|
627
|
+
_content_type=_content_type,
|
|
628
|
+
_headers=_headers,
|
|
629
|
+
_host_index=_host_index
|
|
630
|
+
)
|
|
631
|
+
|
|
632
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
633
|
+
'200': "CustomerResponseWrapper",
|
|
634
|
+
'401': "ApiError",
|
|
635
|
+
'403': "ApiError",
|
|
636
|
+
'500': "ApiError",
|
|
637
|
+
}
|
|
638
|
+
response_data = self.api_client.call_api(
|
|
639
|
+
*_param,
|
|
640
|
+
_request_timeout=_request_timeout
|
|
641
|
+
)
|
|
642
|
+
return response_data.response
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
def _get_customers_serialize(
|
|
646
|
+
self,
|
|
647
|
+
version,
|
|
648
|
+
x_platform_id,
|
|
649
|
+
limit,
|
|
650
|
+
page,
|
|
651
|
+
order_by,
|
|
652
|
+
custom_field,
|
|
653
|
+
order_direction,
|
|
654
|
+
reference,
|
|
655
|
+
_request_auth,
|
|
656
|
+
_content_type,
|
|
657
|
+
_headers,
|
|
658
|
+
_host_index,
|
|
659
|
+
) -> RequestSerialized:
|
|
660
|
+
|
|
661
|
+
_host = None
|
|
662
|
+
|
|
663
|
+
_collection_formats: Dict[str, str] = {
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
_path_params: Dict[str, str] = {}
|
|
667
|
+
_query_params: List[Tuple[str, str]] = []
|
|
668
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
669
|
+
_form_params: List[Tuple[str, str]] = []
|
|
670
|
+
_files: Dict[
|
|
671
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
672
|
+
] = {}
|
|
673
|
+
_body_params: Optional[bytes] = None
|
|
674
|
+
|
|
675
|
+
# process the path parameters
|
|
676
|
+
if version is not None:
|
|
677
|
+
_path_params['version'] = version
|
|
678
|
+
# process the query parameters
|
|
679
|
+
if limit is not None:
|
|
680
|
+
|
|
681
|
+
_query_params.append(('limit', limit))
|
|
682
|
+
|
|
683
|
+
if page is not None:
|
|
684
|
+
|
|
685
|
+
_query_params.append(('page', page))
|
|
686
|
+
|
|
687
|
+
if order_by is not None:
|
|
688
|
+
|
|
689
|
+
_query_params.append(('order_by', order_by))
|
|
690
|
+
|
|
691
|
+
if custom_field is not None:
|
|
692
|
+
|
|
693
|
+
_query_params.append(('custom_field', custom_field))
|
|
694
|
+
|
|
695
|
+
if order_direction is not None:
|
|
696
|
+
|
|
697
|
+
_query_params.append(('order_direction', order_direction))
|
|
698
|
+
|
|
699
|
+
if reference is not None:
|
|
700
|
+
|
|
701
|
+
_query_params.append(('reference', reference))
|
|
702
|
+
|
|
703
|
+
# process the header parameters
|
|
704
|
+
if x_platform_id is not None:
|
|
705
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
706
|
+
# process the form parameters
|
|
707
|
+
# process the body parameter
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
# set the HTTP header `Accept`
|
|
711
|
+
if 'Accept' not in _header_params:
|
|
712
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
713
|
+
[
|
|
714
|
+
'application/json',
|
|
715
|
+
'*/*'
|
|
716
|
+
]
|
|
717
|
+
)
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
# authentication setting
|
|
721
|
+
_auth_settings: List[str] = [
|
|
722
|
+
'JWT-Authentication',
|
|
723
|
+
'API-Key'
|
|
724
|
+
]
|
|
725
|
+
|
|
726
|
+
return self.api_client.param_serialize(
|
|
727
|
+
method='GET',
|
|
728
|
+
resource_path='/v{version}/customers',
|
|
729
|
+
path_params=_path_params,
|
|
730
|
+
query_params=_query_params,
|
|
731
|
+
header_params=_header_params,
|
|
732
|
+
body=_body_params,
|
|
733
|
+
post_params=_form_params,
|
|
734
|
+
files=_files,
|
|
735
|
+
auth_settings=_auth_settings,
|
|
736
|
+
collection_formats=_collection_formats,
|
|
737
|
+
_host=_host,
|
|
738
|
+
_request_auth=_request_auth
|
|
739
|
+
)
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
@validate_call
|
|
745
|
+
def get_customers_by_resource_id_or_reference(
|
|
746
|
+
self,
|
|
747
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
748
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
749
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
750
|
+
_request_timeout: Union[
|
|
751
|
+
None,
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
753
|
+
Tuple[
|
|
754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
755
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
756
|
+
]
|
|
757
|
+
] = None,
|
|
758
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
759
|
+
_content_type: Optional[StrictStr] = None,
|
|
760
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
761
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
762
|
+
) -> Customer:
|
|
763
|
+
"""Get a customer by ID or reference
|
|
764
|
+
|
|
765
|
+
Requires the CUSTOMER.VIEW permission.
|
|
766
|
+
|
|
767
|
+
:param version: version (required)
|
|
768
|
+
:type version: str
|
|
769
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
770
|
+
:type resource_id_or_reference: str
|
|
771
|
+
:param x_platform_id: Platform ID.
|
|
772
|
+
:type x_platform_id: str
|
|
773
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
774
|
+
number provided, it will be total request
|
|
775
|
+
timeout. It can also be a pair (tuple) of
|
|
776
|
+
(connection, read) timeouts.
|
|
777
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
778
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
779
|
+
request; this effectively ignores the
|
|
780
|
+
authentication in the spec for a single request.
|
|
781
|
+
:type _request_auth: dict, optional
|
|
782
|
+
:param _content_type: force content-type for the request.
|
|
783
|
+
:type _content_type: str, Optional
|
|
784
|
+
:param _headers: set to override the headers for a single
|
|
785
|
+
request; this effectively ignores the headers
|
|
786
|
+
in the spec for a single request.
|
|
787
|
+
:type _headers: dict, optional
|
|
788
|
+
:param _host_index: set to override the host_index for a single
|
|
789
|
+
request; this effectively ignores the host_index
|
|
790
|
+
in the spec for a single request.
|
|
791
|
+
:type _host_index: int, optional
|
|
792
|
+
:return: Returns the result object.
|
|
793
|
+
""" # noqa: E501
|
|
794
|
+
|
|
795
|
+
_param = self._get_customers_by_resource_id_or_reference_serialize(
|
|
796
|
+
version=version,
|
|
797
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
798
|
+
x_platform_id=x_platform_id,
|
|
799
|
+
_request_auth=_request_auth,
|
|
800
|
+
_content_type=_content_type,
|
|
801
|
+
_headers=_headers,
|
|
802
|
+
_host_index=_host_index
|
|
803
|
+
)
|
|
804
|
+
|
|
805
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
806
|
+
'200': "Customer",
|
|
807
|
+
'400': "ApiError",
|
|
808
|
+
'401': "ApiError",
|
|
809
|
+
'403': "ApiError",
|
|
810
|
+
'500': "ApiError",
|
|
811
|
+
}
|
|
812
|
+
response_data = self.api_client.call_api(
|
|
813
|
+
*_param,
|
|
814
|
+
_request_timeout=_request_timeout
|
|
815
|
+
)
|
|
816
|
+
response_data.read()
|
|
817
|
+
return self.api_client.response_deserialize(
|
|
818
|
+
response_data=response_data,
|
|
819
|
+
response_types_map=_response_types_map,
|
|
820
|
+
).data
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
@validate_call
|
|
824
|
+
def get_customers_by_resource_id_or_reference_with_http_info(
|
|
825
|
+
self,
|
|
826
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
827
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
828
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
829
|
+
_request_timeout: Union[
|
|
830
|
+
None,
|
|
831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
832
|
+
Tuple[
|
|
833
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
834
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
835
|
+
]
|
|
836
|
+
] = None,
|
|
837
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
838
|
+
_content_type: Optional[StrictStr] = None,
|
|
839
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
840
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
841
|
+
) -> ApiResponse[Customer]:
|
|
842
|
+
"""Get a customer by ID or reference
|
|
843
|
+
|
|
844
|
+
Requires the CUSTOMER.VIEW permission.
|
|
845
|
+
|
|
846
|
+
:param version: version (required)
|
|
847
|
+
:type version: str
|
|
848
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
849
|
+
:type resource_id_or_reference: str
|
|
850
|
+
:param x_platform_id: Platform ID.
|
|
851
|
+
:type x_platform_id: str
|
|
852
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
853
|
+
number provided, it will be total request
|
|
854
|
+
timeout. It can also be a pair (tuple) of
|
|
855
|
+
(connection, read) timeouts.
|
|
856
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
857
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
858
|
+
request; this effectively ignores the
|
|
859
|
+
authentication in the spec for a single request.
|
|
860
|
+
:type _request_auth: dict, optional
|
|
861
|
+
:param _content_type: force content-type for the request.
|
|
862
|
+
:type _content_type: str, Optional
|
|
863
|
+
:param _headers: set to override the headers for a single
|
|
864
|
+
request; this effectively ignores the headers
|
|
865
|
+
in the spec for a single request.
|
|
866
|
+
:type _headers: dict, optional
|
|
867
|
+
:param _host_index: set to override the host_index for a single
|
|
868
|
+
request; this effectively ignores the host_index
|
|
869
|
+
in the spec for a single request.
|
|
870
|
+
:type _host_index: int, optional
|
|
871
|
+
:return: Returns the result object.
|
|
872
|
+
""" # noqa: E501
|
|
873
|
+
|
|
874
|
+
_param = self._get_customers_by_resource_id_or_reference_serialize(
|
|
875
|
+
version=version,
|
|
876
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
877
|
+
x_platform_id=x_platform_id,
|
|
878
|
+
_request_auth=_request_auth,
|
|
879
|
+
_content_type=_content_type,
|
|
880
|
+
_headers=_headers,
|
|
881
|
+
_host_index=_host_index
|
|
882
|
+
)
|
|
883
|
+
|
|
884
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
885
|
+
'200': "Customer",
|
|
886
|
+
'400': "ApiError",
|
|
887
|
+
'401': "ApiError",
|
|
888
|
+
'403': "ApiError",
|
|
889
|
+
'500': "ApiError",
|
|
890
|
+
}
|
|
891
|
+
response_data = self.api_client.call_api(
|
|
892
|
+
*_param,
|
|
893
|
+
_request_timeout=_request_timeout
|
|
894
|
+
)
|
|
895
|
+
response_data.read()
|
|
896
|
+
return self.api_client.response_deserialize(
|
|
897
|
+
response_data=response_data,
|
|
898
|
+
response_types_map=_response_types_map,
|
|
899
|
+
)
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
@validate_call
|
|
903
|
+
def get_customers_by_resource_id_or_reference_without_preload_content(
|
|
904
|
+
self,
|
|
905
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
906
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
907
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
908
|
+
_request_timeout: Union[
|
|
909
|
+
None,
|
|
910
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
911
|
+
Tuple[
|
|
912
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
913
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
914
|
+
]
|
|
915
|
+
] = None,
|
|
916
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
917
|
+
_content_type: Optional[StrictStr] = None,
|
|
918
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
919
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
920
|
+
) -> RESTResponseType:
|
|
921
|
+
"""Get a customer by ID or reference
|
|
922
|
+
|
|
923
|
+
Requires the CUSTOMER.VIEW permission.
|
|
924
|
+
|
|
925
|
+
:param version: version (required)
|
|
926
|
+
:type version: str
|
|
927
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
928
|
+
:type resource_id_or_reference: str
|
|
929
|
+
:param x_platform_id: Platform ID.
|
|
930
|
+
:type x_platform_id: str
|
|
931
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
932
|
+
number provided, it will be total request
|
|
933
|
+
timeout. It can also be a pair (tuple) of
|
|
934
|
+
(connection, read) timeouts.
|
|
935
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
936
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
937
|
+
request; this effectively ignores the
|
|
938
|
+
authentication in the spec for a single request.
|
|
939
|
+
:type _request_auth: dict, optional
|
|
940
|
+
:param _content_type: force content-type for the request.
|
|
941
|
+
:type _content_type: str, Optional
|
|
942
|
+
:param _headers: set to override the headers for a single
|
|
943
|
+
request; this effectively ignores the headers
|
|
944
|
+
in the spec for a single request.
|
|
945
|
+
:type _headers: dict, optional
|
|
946
|
+
:param _host_index: set to override the host_index for a single
|
|
947
|
+
request; this effectively ignores the host_index
|
|
948
|
+
in the spec for a single request.
|
|
949
|
+
:type _host_index: int, optional
|
|
950
|
+
:return: Returns the result object.
|
|
951
|
+
""" # noqa: E501
|
|
952
|
+
|
|
953
|
+
_param = self._get_customers_by_resource_id_or_reference_serialize(
|
|
954
|
+
version=version,
|
|
955
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
956
|
+
x_platform_id=x_platform_id,
|
|
957
|
+
_request_auth=_request_auth,
|
|
958
|
+
_content_type=_content_type,
|
|
959
|
+
_headers=_headers,
|
|
960
|
+
_host_index=_host_index
|
|
961
|
+
)
|
|
962
|
+
|
|
963
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
964
|
+
'200': "Customer",
|
|
965
|
+
'400': "ApiError",
|
|
966
|
+
'401': "ApiError",
|
|
967
|
+
'403': "ApiError",
|
|
968
|
+
'500': "ApiError",
|
|
969
|
+
}
|
|
970
|
+
response_data = self.api_client.call_api(
|
|
971
|
+
*_param,
|
|
972
|
+
_request_timeout=_request_timeout
|
|
973
|
+
)
|
|
974
|
+
return response_data.response
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
def _get_customers_by_resource_id_or_reference_serialize(
|
|
978
|
+
self,
|
|
979
|
+
version,
|
|
980
|
+
resource_id_or_reference,
|
|
981
|
+
x_platform_id,
|
|
982
|
+
_request_auth,
|
|
983
|
+
_content_type,
|
|
984
|
+
_headers,
|
|
985
|
+
_host_index,
|
|
986
|
+
) -> RequestSerialized:
|
|
987
|
+
|
|
988
|
+
_host = None
|
|
989
|
+
|
|
990
|
+
_collection_formats: Dict[str, str] = {
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
_path_params: Dict[str, str] = {}
|
|
994
|
+
_query_params: List[Tuple[str, str]] = []
|
|
995
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
996
|
+
_form_params: List[Tuple[str, str]] = []
|
|
997
|
+
_files: Dict[
|
|
998
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
999
|
+
] = {}
|
|
1000
|
+
_body_params: Optional[bytes] = None
|
|
1001
|
+
|
|
1002
|
+
# process the path parameters
|
|
1003
|
+
if version is not None:
|
|
1004
|
+
_path_params['version'] = version
|
|
1005
|
+
if resource_id_or_reference is not None:
|
|
1006
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
1007
|
+
# process the query parameters
|
|
1008
|
+
# process the header parameters
|
|
1009
|
+
if x_platform_id is not None:
|
|
1010
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1011
|
+
# process the form parameters
|
|
1012
|
+
# process the body parameter
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
# set the HTTP header `Accept`
|
|
1016
|
+
if 'Accept' not in _header_params:
|
|
1017
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1018
|
+
[
|
|
1019
|
+
'application/json',
|
|
1020
|
+
'*/*'
|
|
1021
|
+
]
|
|
1022
|
+
)
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
# authentication setting
|
|
1026
|
+
_auth_settings: List[str] = [
|
|
1027
|
+
'JWT-Authentication',
|
|
1028
|
+
'API-Key'
|
|
1029
|
+
]
|
|
1030
|
+
|
|
1031
|
+
return self.api_client.param_serialize(
|
|
1032
|
+
method='GET',
|
|
1033
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}',
|
|
1034
|
+
path_params=_path_params,
|
|
1035
|
+
query_params=_query_params,
|
|
1036
|
+
header_params=_header_params,
|
|
1037
|
+
body=_body_params,
|
|
1038
|
+
post_params=_form_params,
|
|
1039
|
+
files=_files,
|
|
1040
|
+
auth_settings=_auth_settings,
|
|
1041
|
+
collection_formats=_collection_formats,
|
|
1042
|
+
_host=_host,
|
|
1043
|
+
_request_auth=_request_auth
|
|
1044
|
+
)
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
@validate_call
|
|
1050
|
+
def get_customers_by_resource_id_or_reference_entitlements(
|
|
1051
|
+
self,
|
|
1052
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1053
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1054
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1055
|
+
_request_timeout: Union[
|
|
1056
|
+
None,
|
|
1057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1058
|
+
Tuple[
|
|
1059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1061
|
+
]
|
|
1062
|
+
] = None,
|
|
1063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1064
|
+
_content_type: Optional[StrictStr] = None,
|
|
1065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1067
|
+
) -> Entitlements:
|
|
1068
|
+
"""Get a customer its entitlements
|
|
1069
|
+
|
|
1070
|
+
Requires the CUSTOMER.VIEW permission.
|
|
1071
|
+
|
|
1072
|
+
:param version: version (required)
|
|
1073
|
+
:type version: str
|
|
1074
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1075
|
+
:type resource_id_or_reference: str
|
|
1076
|
+
:param x_platform_id: Platform ID.
|
|
1077
|
+
:type x_platform_id: str
|
|
1078
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1079
|
+
number provided, it will be total request
|
|
1080
|
+
timeout. It can also be a pair (tuple) of
|
|
1081
|
+
(connection, read) timeouts.
|
|
1082
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1083
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1084
|
+
request; this effectively ignores the
|
|
1085
|
+
authentication in the spec for a single request.
|
|
1086
|
+
:type _request_auth: dict, optional
|
|
1087
|
+
:param _content_type: force content-type for the request.
|
|
1088
|
+
:type _content_type: str, Optional
|
|
1089
|
+
:param _headers: set to override the headers for a single
|
|
1090
|
+
request; this effectively ignores the headers
|
|
1091
|
+
in the spec for a single request.
|
|
1092
|
+
:type _headers: dict, optional
|
|
1093
|
+
:param _host_index: set to override the host_index for a single
|
|
1094
|
+
request; this effectively ignores the host_index
|
|
1095
|
+
in the spec for a single request.
|
|
1096
|
+
:type _host_index: int, optional
|
|
1097
|
+
:return: Returns the result object.
|
|
1098
|
+
""" # noqa: E501
|
|
1099
|
+
|
|
1100
|
+
_param = self._get_customers_by_resource_id_or_reference_entitlements_serialize(
|
|
1101
|
+
version=version,
|
|
1102
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1103
|
+
x_platform_id=x_platform_id,
|
|
1104
|
+
_request_auth=_request_auth,
|
|
1105
|
+
_content_type=_content_type,
|
|
1106
|
+
_headers=_headers,
|
|
1107
|
+
_host_index=_host_index
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1111
|
+
'200': "Entitlements",
|
|
1112
|
+
'400': "ApiError",
|
|
1113
|
+
'401': "ApiError",
|
|
1114
|
+
'403': "ApiError",
|
|
1115
|
+
'500': "ApiError",
|
|
1116
|
+
}
|
|
1117
|
+
response_data = self.api_client.call_api(
|
|
1118
|
+
*_param,
|
|
1119
|
+
_request_timeout=_request_timeout
|
|
1120
|
+
)
|
|
1121
|
+
response_data.read()
|
|
1122
|
+
return self.api_client.response_deserialize(
|
|
1123
|
+
response_data=response_data,
|
|
1124
|
+
response_types_map=_response_types_map,
|
|
1125
|
+
).data
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
@validate_call
|
|
1129
|
+
def get_customers_by_resource_id_or_reference_entitlements_with_http_info(
|
|
1130
|
+
self,
|
|
1131
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1132
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1133
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1134
|
+
_request_timeout: Union[
|
|
1135
|
+
None,
|
|
1136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1137
|
+
Tuple[
|
|
1138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1139
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1140
|
+
]
|
|
1141
|
+
] = None,
|
|
1142
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1143
|
+
_content_type: Optional[StrictStr] = None,
|
|
1144
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1146
|
+
) -> ApiResponse[Entitlements]:
|
|
1147
|
+
"""Get a customer its entitlements
|
|
1148
|
+
|
|
1149
|
+
Requires the CUSTOMER.VIEW permission.
|
|
1150
|
+
|
|
1151
|
+
:param version: version (required)
|
|
1152
|
+
:type version: str
|
|
1153
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1154
|
+
:type resource_id_or_reference: str
|
|
1155
|
+
:param x_platform_id: Platform ID.
|
|
1156
|
+
:type x_platform_id: str
|
|
1157
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1158
|
+
number provided, it will be total request
|
|
1159
|
+
timeout. It can also be a pair (tuple) of
|
|
1160
|
+
(connection, read) timeouts.
|
|
1161
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1162
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1163
|
+
request; this effectively ignores the
|
|
1164
|
+
authentication in the spec for a single request.
|
|
1165
|
+
:type _request_auth: dict, optional
|
|
1166
|
+
:param _content_type: force content-type for the request.
|
|
1167
|
+
:type _content_type: str, Optional
|
|
1168
|
+
:param _headers: set to override the headers for a single
|
|
1169
|
+
request; this effectively ignores the headers
|
|
1170
|
+
in the spec for a single request.
|
|
1171
|
+
:type _headers: dict, optional
|
|
1172
|
+
:param _host_index: set to override the host_index for a single
|
|
1173
|
+
request; this effectively ignores the host_index
|
|
1174
|
+
in the spec for a single request.
|
|
1175
|
+
:type _host_index: int, optional
|
|
1176
|
+
:return: Returns the result object.
|
|
1177
|
+
""" # noqa: E501
|
|
1178
|
+
|
|
1179
|
+
_param = self._get_customers_by_resource_id_or_reference_entitlements_serialize(
|
|
1180
|
+
version=version,
|
|
1181
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1182
|
+
x_platform_id=x_platform_id,
|
|
1183
|
+
_request_auth=_request_auth,
|
|
1184
|
+
_content_type=_content_type,
|
|
1185
|
+
_headers=_headers,
|
|
1186
|
+
_host_index=_host_index
|
|
1187
|
+
)
|
|
1188
|
+
|
|
1189
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1190
|
+
'200': "Entitlements",
|
|
1191
|
+
'400': "ApiError",
|
|
1192
|
+
'401': "ApiError",
|
|
1193
|
+
'403': "ApiError",
|
|
1194
|
+
'500': "ApiError",
|
|
1195
|
+
}
|
|
1196
|
+
response_data = self.api_client.call_api(
|
|
1197
|
+
*_param,
|
|
1198
|
+
_request_timeout=_request_timeout
|
|
1199
|
+
)
|
|
1200
|
+
response_data.read()
|
|
1201
|
+
return self.api_client.response_deserialize(
|
|
1202
|
+
response_data=response_data,
|
|
1203
|
+
response_types_map=_response_types_map,
|
|
1204
|
+
)
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
@validate_call
|
|
1208
|
+
def get_customers_by_resource_id_or_reference_entitlements_without_preload_content(
|
|
1209
|
+
self,
|
|
1210
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1211
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1212
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1213
|
+
_request_timeout: Union[
|
|
1214
|
+
None,
|
|
1215
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1216
|
+
Tuple[
|
|
1217
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1218
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1219
|
+
]
|
|
1220
|
+
] = None,
|
|
1221
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1222
|
+
_content_type: Optional[StrictStr] = None,
|
|
1223
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1224
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1225
|
+
) -> RESTResponseType:
|
|
1226
|
+
"""Get a customer its entitlements
|
|
1227
|
+
|
|
1228
|
+
Requires the CUSTOMER.VIEW permission.
|
|
1229
|
+
|
|
1230
|
+
:param version: version (required)
|
|
1231
|
+
:type version: str
|
|
1232
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1233
|
+
:type resource_id_or_reference: str
|
|
1234
|
+
:param x_platform_id: Platform ID.
|
|
1235
|
+
:type x_platform_id: str
|
|
1236
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1237
|
+
number provided, it will be total request
|
|
1238
|
+
timeout. It can also be a pair (tuple) of
|
|
1239
|
+
(connection, read) timeouts.
|
|
1240
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1241
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1242
|
+
request; this effectively ignores the
|
|
1243
|
+
authentication in the spec for a single request.
|
|
1244
|
+
:type _request_auth: dict, optional
|
|
1245
|
+
:param _content_type: force content-type for the request.
|
|
1246
|
+
:type _content_type: str, Optional
|
|
1247
|
+
:param _headers: set to override the headers for a single
|
|
1248
|
+
request; this effectively ignores the headers
|
|
1249
|
+
in the spec for a single request.
|
|
1250
|
+
:type _headers: dict, optional
|
|
1251
|
+
:param _host_index: set to override the host_index for a single
|
|
1252
|
+
request; this effectively ignores the host_index
|
|
1253
|
+
in the spec for a single request.
|
|
1254
|
+
:type _host_index: int, optional
|
|
1255
|
+
:return: Returns the result object.
|
|
1256
|
+
""" # noqa: E501
|
|
1257
|
+
|
|
1258
|
+
_param = self._get_customers_by_resource_id_or_reference_entitlements_serialize(
|
|
1259
|
+
version=version,
|
|
1260
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1261
|
+
x_platform_id=x_platform_id,
|
|
1262
|
+
_request_auth=_request_auth,
|
|
1263
|
+
_content_type=_content_type,
|
|
1264
|
+
_headers=_headers,
|
|
1265
|
+
_host_index=_host_index
|
|
1266
|
+
)
|
|
1267
|
+
|
|
1268
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1269
|
+
'200': "Entitlements",
|
|
1270
|
+
'400': "ApiError",
|
|
1271
|
+
'401': "ApiError",
|
|
1272
|
+
'403': "ApiError",
|
|
1273
|
+
'500': "ApiError",
|
|
1274
|
+
}
|
|
1275
|
+
response_data = self.api_client.call_api(
|
|
1276
|
+
*_param,
|
|
1277
|
+
_request_timeout=_request_timeout
|
|
1278
|
+
)
|
|
1279
|
+
return response_data.response
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
def _get_customers_by_resource_id_or_reference_entitlements_serialize(
|
|
1283
|
+
self,
|
|
1284
|
+
version,
|
|
1285
|
+
resource_id_or_reference,
|
|
1286
|
+
x_platform_id,
|
|
1287
|
+
_request_auth,
|
|
1288
|
+
_content_type,
|
|
1289
|
+
_headers,
|
|
1290
|
+
_host_index,
|
|
1291
|
+
) -> RequestSerialized:
|
|
1292
|
+
|
|
1293
|
+
_host = None
|
|
1294
|
+
|
|
1295
|
+
_collection_formats: Dict[str, str] = {
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
_path_params: Dict[str, str] = {}
|
|
1299
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1300
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1301
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1302
|
+
_files: Dict[
|
|
1303
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1304
|
+
] = {}
|
|
1305
|
+
_body_params: Optional[bytes] = None
|
|
1306
|
+
|
|
1307
|
+
# process the path parameters
|
|
1308
|
+
if version is not None:
|
|
1309
|
+
_path_params['version'] = version
|
|
1310
|
+
if resource_id_or_reference is not None:
|
|
1311
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
1312
|
+
# process the query parameters
|
|
1313
|
+
# process the header parameters
|
|
1314
|
+
if x_platform_id is not None:
|
|
1315
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1316
|
+
# process the form parameters
|
|
1317
|
+
# process the body parameter
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
# set the HTTP header `Accept`
|
|
1321
|
+
if 'Accept' not in _header_params:
|
|
1322
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1323
|
+
[
|
|
1324
|
+
'application/json',
|
|
1325
|
+
'*/*'
|
|
1326
|
+
]
|
|
1327
|
+
)
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
# authentication setting
|
|
1331
|
+
_auth_settings: List[str] = [
|
|
1332
|
+
'JWT-Authentication',
|
|
1333
|
+
'API-Key'
|
|
1334
|
+
]
|
|
1335
|
+
|
|
1336
|
+
return self.api_client.param_serialize(
|
|
1337
|
+
method='GET',
|
|
1338
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}/entitlements',
|
|
1339
|
+
path_params=_path_params,
|
|
1340
|
+
query_params=_query_params,
|
|
1341
|
+
header_params=_header_params,
|
|
1342
|
+
body=_body_params,
|
|
1343
|
+
post_params=_form_params,
|
|
1344
|
+
files=_files,
|
|
1345
|
+
auth_settings=_auth_settings,
|
|
1346
|
+
collection_formats=_collection_formats,
|
|
1347
|
+
_host=_host,
|
|
1348
|
+
_request_auth=_request_auth
|
|
1349
|
+
)
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
@validate_call
|
|
1355
|
+
def post_customers(
|
|
1356
|
+
self,
|
|
1357
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1358
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1359
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
1360
|
+
_request_timeout: Union[
|
|
1361
|
+
None,
|
|
1362
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1363
|
+
Tuple[
|
|
1364
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1365
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1366
|
+
]
|
|
1367
|
+
] = None,
|
|
1368
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1369
|
+
_content_type: Optional[StrictStr] = None,
|
|
1370
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1371
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1372
|
+
) -> Customer:
|
|
1373
|
+
"""Create a customer
|
|
1374
|
+
|
|
1375
|
+
Requires the CUSTOMER.CREATE permission.
|
|
1376
|
+
|
|
1377
|
+
:param version: version (required)
|
|
1378
|
+
:type version: str
|
|
1379
|
+
:param x_platform_id: Platform ID.
|
|
1380
|
+
:type x_platform_id: str
|
|
1381
|
+
:param customer_create_request:
|
|
1382
|
+
:type customer_create_request: CustomerCreateRequest
|
|
1383
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1384
|
+
number provided, it will be total request
|
|
1385
|
+
timeout. It can also be a pair (tuple) of
|
|
1386
|
+
(connection, read) timeouts.
|
|
1387
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1388
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1389
|
+
request; this effectively ignores the
|
|
1390
|
+
authentication in the spec for a single request.
|
|
1391
|
+
:type _request_auth: dict, optional
|
|
1392
|
+
:param _content_type: force content-type for the request.
|
|
1393
|
+
:type _content_type: str, Optional
|
|
1394
|
+
:param _headers: set to override the headers for a single
|
|
1395
|
+
request; this effectively ignores the headers
|
|
1396
|
+
in the spec for a single request.
|
|
1397
|
+
:type _headers: dict, optional
|
|
1398
|
+
:param _host_index: set to override the host_index for a single
|
|
1399
|
+
request; this effectively ignores the host_index
|
|
1400
|
+
in the spec for a single request.
|
|
1401
|
+
:type _host_index: int, optional
|
|
1402
|
+
:return: Returns the result object.
|
|
1403
|
+
""" # noqa: E501
|
|
1404
|
+
|
|
1405
|
+
_param = self._post_customers_serialize(
|
|
1406
|
+
version=version,
|
|
1407
|
+
x_platform_id=x_platform_id,
|
|
1408
|
+
customer_create_request=customer_create_request,
|
|
1409
|
+
_request_auth=_request_auth,
|
|
1410
|
+
_content_type=_content_type,
|
|
1411
|
+
_headers=_headers,
|
|
1412
|
+
_host_index=_host_index
|
|
1413
|
+
)
|
|
1414
|
+
|
|
1415
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1416
|
+
'201': "Customer",
|
|
1417
|
+
'400': "ApiError",
|
|
1418
|
+
'401': "ApiError",
|
|
1419
|
+
'403': "ApiError",
|
|
1420
|
+
'500': "ApiError",
|
|
1421
|
+
}
|
|
1422
|
+
response_data = self.api_client.call_api(
|
|
1423
|
+
*_param,
|
|
1424
|
+
_request_timeout=_request_timeout
|
|
1425
|
+
)
|
|
1426
|
+
response_data.read()
|
|
1427
|
+
return self.api_client.response_deserialize(
|
|
1428
|
+
response_data=response_data,
|
|
1429
|
+
response_types_map=_response_types_map,
|
|
1430
|
+
).data
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
@validate_call
|
|
1434
|
+
def post_customers_with_http_info(
|
|
1435
|
+
self,
|
|
1436
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1437
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1438
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
1439
|
+
_request_timeout: Union[
|
|
1440
|
+
None,
|
|
1441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1442
|
+
Tuple[
|
|
1443
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1444
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1445
|
+
]
|
|
1446
|
+
] = None,
|
|
1447
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1448
|
+
_content_type: Optional[StrictStr] = None,
|
|
1449
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1450
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1451
|
+
) -> ApiResponse[Customer]:
|
|
1452
|
+
"""Create a customer
|
|
1453
|
+
|
|
1454
|
+
Requires the CUSTOMER.CREATE permission.
|
|
1455
|
+
|
|
1456
|
+
:param version: version (required)
|
|
1457
|
+
:type version: str
|
|
1458
|
+
:param x_platform_id: Platform ID.
|
|
1459
|
+
:type x_platform_id: str
|
|
1460
|
+
:param customer_create_request:
|
|
1461
|
+
:type customer_create_request: CustomerCreateRequest
|
|
1462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1463
|
+
number provided, it will be total request
|
|
1464
|
+
timeout. It can also be a pair (tuple) of
|
|
1465
|
+
(connection, read) timeouts.
|
|
1466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1468
|
+
request; this effectively ignores the
|
|
1469
|
+
authentication in the spec for a single request.
|
|
1470
|
+
:type _request_auth: dict, optional
|
|
1471
|
+
:param _content_type: force content-type for the request.
|
|
1472
|
+
:type _content_type: str, Optional
|
|
1473
|
+
:param _headers: set to override the headers for a single
|
|
1474
|
+
request; this effectively ignores the headers
|
|
1475
|
+
in the spec for a single request.
|
|
1476
|
+
:type _headers: dict, optional
|
|
1477
|
+
:param _host_index: set to override the host_index for a single
|
|
1478
|
+
request; this effectively ignores the host_index
|
|
1479
|
+
in the spec for a single request.
|
|
1480
|
+
:type _host_index: int, optional
|
|
1481
|
+
:return: Returns the result object.
|
|
1482
|
+
""" # noqa: E501
|
|
1483
|
+
|
|
1484
|
+
_param = self._post_customers_serialize(
|
|
1485
|
+
version=version,
|
|
1486
|
+
x_platform_id=x_platform_id,
|
|
1487
|
+
customer_create_request=customer_create_request,
|
|
1488
|
+
_request_auth=_request_auth,
|
|
1489
|
+
_content_type=_content_type,
|
|
1490
|
+
_headers=_headers,
|
|
1491
|
+
_host_index=_host_index
|
|
1492
|
+
)
|
|
1493
|
+
|
|
1494
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1495
|
+
'201': "Customer",
|
|
1496
|
+
'400': "ApiError",
|
|
1497
|
+
'401': "ApiError",
|
|
1498
|
+
'403': "ApiError",
|
|
1499
|
+
'500': "ApiError",
|
|
1500
|
+
}
|
|
1501
|
+
response_data = self.api_client.call_api(
|
|
1502
|
+
*_param,
|
|
1503
|
+
_request_timeout=_request_timeout
|
|
1504
|
+
)
|
|
1505
|
+
response_data.read()
|
|
1506
|
+
return self.api_client.response_deserialize(
|
|
1507
|
+
response_data=response_data,
|
|
1508
|
+
response_types_map=_response_types_map,
|
|
1509
|
+
)
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
@validate_call
|
|
1513
|
+
def post_customers_without_preload_content(
|
|
1514
|
+
self,
|
|
1515
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1516
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1517
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
1518
|
+
_request_timeout: Union[
|
|
1519
|
+
None,
|
|
1520
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1521
|
+
Tuple[
|
|
1522
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1523
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1524
|
+
]
|
|
1525
|
+
] = None,
|
|
1526
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1527
|
+
_content_type: Optional[StrictStr] = None,
|
|
1528
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1529
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1530
|
+
) -> RESTResponseType:
|
|
1531
|
+
"""Create a customer
|
|
1532
|
+
|
|
1533
|
+
Requires the CUSTOMER.CREATE permission.
|
|
1534
|
+
|
|
1535
|
+
:param version: version (required)
|
|
1536
|
+
:type version: str
|
|
1537
|
+
:param x_platform_id: Platform ID.
|
|
1538
|
+
:type x_platform_id: str
|
|
1539
|
+
:param customer_create_request:
|
|
1540
|
+
:type customer_create_request: CustomerCreateRequest
|
|
1541
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1542
|
+
number provided, it will be total request
|
|
1543
|
+
timeout. It can also be a pair (tuple) of
|
|
1544
|
+
(connection, read) timeouts.
|
|
1545
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1546
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1547
|
+
request; this effectively ignores the
|
|
1548
|
+
authentication in the spec for a single request.
|
|
1549
|
+
:type _request_auth: dict, optional
|
|
1550
|
+
:param _content_type: force content-type for the request.
|
|
1551
|
+
:type _content_type: str, Optional
|
|
1552
|
+
:param _headers: set to override the headers for a single
|
|
1553
|
+
request; this effectively ignores the headers
|
|
1554
|
+
in the spec for a single request.
|
|
1555
|
+
:type _headers: dict, optional
|
|
1556
|
+
:param _host_index: set to override the host_index for a single
|
|
1557
|
+
request; this effectively ignores the host_index
|
|
1558
|
+
in the spec for a single request.
|
|
1559
|
+
:type _host_index: int, optional
|
|
1560
|
+
:return: Returns the result object.
|
|
1561
|
+
""" # noqa: E501
|
|
1562
|
+
|
|
1563
|
+
_param = self._post_customers_serialize(
|
|
1564
|
+
version=version,
|
|
1565
|
+
x_platform_id=x_platform_id,
|
|
1566
|
+
customer_create_request=customer_create_request,
|
|
1567
|
+
_request_auth=_request_auth,
|
|
1568
|
+
_content_type=_content_type,
|
|
1569
|
+
_headers=_headers,
|
|
1570
|
+
_host_index=_host_index
|
|
1571
|
+
)
|
|
1572
|
+
|
|
1573
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1574
|
+
'201': "Customer",
|
|
1575
|
+
'400': "ApiError",
|
|
1576
|
+
'401': "ApiError",
|
|
1577
|
+
'403': "ApiError",
|
|
1578
|
+
'500': "ApiError",
|
|
1579
|
+
}
|
|
1580
|
+
response_data = self.api_client.call_api(
|
|
1581
|
+
*_param,
|
|
1582
|
+
_request_timeout=_request_timeout
|
|
1583
|
+
)
|
|
1584
|
+
return response_data.response
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
def _post_customers_serialize(
|
|
1588
|
+
self,
|
|
1589
|
+
version,
|
|
1590
|
+
x_platform_id,
|
|
1591
|
+
customer_create_request,
|
|
1592
|
+
_request_auth,
|
|
1593
|
+
_content_type,
|
|
1594
|
+
_headers,
|
|
1595
|
+
_host_index,
|
|
1596
|
+
) -> RequestSerialized:
|
|
1597
|
+
|
|
1598
|
+
_host = None
|
|
1599
|
+
|
|
1600
|
+
_collection_formats: Dict[str, str] = {
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
_path_params: Dict[str, str] = {}
|
|
1604
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1605
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1606
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1607
|
+
_files: Dict[
|
|
1608
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1609
|
+
] = {}
|
|
1610
|
+
_body_params: Optional[bytes] = None
|
|
1611
|
+
|
|
1612
|
+
# process the path parameters
|
|
1613
|
+
if version is not None:
|
|
1614
|
+
_path_params['version'] = version
|
|
1615
|
+
# process the query parameters
|
|
1616
|
+
# process the header parameters
|
|
1617
|
+
if x_platform_id is not None:
|
|
1618
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1619
|
+
# process the form parameters
|
|
1620
|
+
# process the body parameter
|
|
1621
|
+
if customer_create_request is not None:
|
|
1622
|
+
_body_params = customer_create_request
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
# set the HTTP header `Accept`
|
|
1626
|
+
if 'Accept' not in _header_params:
|
|
1627
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1628
|
+
[
|
|
1629
|
+
'application/json',
|
|
1630
|
+
'*/*'
|
|
1631
|
+
]
|
|
1632
|
+
)
|
|
1633
|
+
|
|
1634
|
+
# set the HTTP header `Content-Type`
|
|
1635
|
+
if _content_type:
|
|
1636
|
+
_header_params['Content-Type'] = _content_type
|
|
1637
|
+
else:
|
|
1638
|
+
_default_content_type = (
|
|
1639
|
+
self.api_client.select_header_content_type(
|
|
1640
|
+
[
|
|
1641
|
+
'application/json'
|
|
1642
|
+
]
|
|
1643
|
+
)
|
|
1644
|
+
)
|
|
1645
|
+
if _default_content_type is not None:
|
|
1646
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1647
|
+
|
|
1648
|
+
# authentication setting
|
|
1649
|
+
_auth_settings: List[str] = [
|
|
1650
|
+
'JWT-Authentication',
|
|
1651
|
+
'API-Key'
|
|
1652
|
+
]
|
|
1653
|
+
|
|
1654
|
+
return self.api_client.param_serialize(
|
|
1655
|
+
method='POST',
|
|
1656
|
+
resource_path='/v{version}/customers',
|
|
1657
|
+
path_params=_path_params,
|
|
1658
|
+
query_params=_query_params,
|
|
1659
|
+
header_params=_header_params,
|
|
1660
|
+
body=_body_params,
|
|
1661
|
+
post_params=_form_params,
|
|
1662
|
+
files=_files,
|
|
1663
|
+
auth_settings=_auth_settings,
|
|
1664
|
+
collection_formats=_collection_formats,
|
|
1665
|
+
_host=_host,
|
|
1666
|
+
_request_auth=_request_auth
|
|
1667
|
+
)
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
@validate_call
|
|
1673
|
+
def post_customers_by_resource_id_or_reference_activate(
|
|
1674
|
+
self,
|
|
1675
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1676
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1677
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1678
|
+
_request_timeout: Union[
|
|
1679
|
+
None,
|
|
1680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1681
|
+
Tuple[
|
|
1682
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1683
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1684
|
+
]
|
|
1685
|
+
] = None,
|
|
1686
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1687
|
+
_content_type: Optional[StrictStr] = None,
|
|
1688
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1689
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1690
|
+
) -> Customer:
|
|
1691
|
+
"""Activate a customer
|
|
1692
|
+
|
|
1693
|
+
Requires the CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
1694
|
+
|
|
1695
|
+
:param version: version (required)
|
|
1696
|
+
:type version: str
|
|
1697
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1698
|
+
:type resource_id_or_reference: str
|
|
1699
|
+
:param x_platform_id: Platform ID.
|
|
1700
|
+
:type x_platform_id: str
|
|
1701
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1702
|
+
number provided, it will be total request
|
|
1703
|
+
timeout. It can also be a pair (tuple) of
|
|
1704
|
+
(connection, read) timeouts.
|
|
1705
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1706
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1707
|
+
request; this effectively ignores the
|
|
1708
|
+
authentication in the spec for a single request.
|
|
1709
|
+
:type _request_auth: dict, optional
|
|
1710
|
+
:param _content_type: force content-type for the request.
|
|
1711
|
+
:type _content_type: str, Optional
|
|
1712
|
+
:param _headers: set to override the headers for a single
|
|
1713
|
+
request; this effectively ignores the headers
|
|
1714
|
+
in the spec for a single request.
|
|
1715
|
+
:type _headers: dict, optional
|
|
1716
|
+
:param _host_index: set to override the host_index for a single
|
|
1717
|
+
request; this effectively ignores the host_index
|
|
1718
|
+
in the spec for a single request.
|
|
1719
|
+
:type _host_index: int, optional
|
|
1720
|
+
:return: Returns the result object.
|
|
1721
|
+
""" # noqa: E501
|
|
1722
|
+
|
|
1723
|
+
_param = self._post_customers_by_resource_id_or_reference_activate_serialize(
|
|
1724
|
+
version=version,
|
|
1725
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1726
|
+
x_platform_id=x_platform_id,
|
|
1727
|
+
_request_auth=_request_auth,
|
|
1728
|
+
_content_type=_content_type,
|
|
1729
|
+
_headers=_headers,
|
|
1730
|
+
_host_index=_host_index
|
|
1731
|
+
)
|
|
1732
|
+
|
|
1733
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1734
|
+
'200': "Customer",
|
|
1735
|
+
'400': "ApiError",
|
|
1736
|
+
'401': "ApiError",
|
|
1737
|
+
'403': "ApiError",
|
|
1738
|
+
'500': "ApiError",
|
|
1739
|
+
}
|
|
1740
|
+
response_data = self.api_client.call_api(
|
|
1741
|
+
*_param,
|
|
1742
|
+
_request_timeout=_request_timeout
|
|
1743
|
+
)
|
|
1744
|
+
response_data.read()
|
|
1745
|
+
return self.api_client.response_deserialize(
|
|
1746
|
+
response_data=response_data,
|
|
1747
|
+
response_types_map=_response_types_map,
|
|
1748
|
+
).data
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
@validate_call
|
|
1752
|
+
def post_customers_by_resource_id_or_reference_activate_with_http_info(
|
|
1753
|
+
self,
|
|
1754
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1755
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1756
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1757
|
+
_request_timeout: Union[
|
|
1758
|
+
None,
|
|
1759
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1760
|
+
Tuple[
|
|
1761
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1762
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1763
|
+
]
|
|
1764
|
+
] = None,
|
|
1765
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1766
|
+
_content_type: Optional[StrictStr] = None,
|
|
1767
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1768
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1769
|
+
) -> ApiResponse[Customer]:
|
|
1770
|
+
"""Activate a customer
|
|
1771
|
+
|
|
1772
|
+
Requires the CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
1773
|
+
|
|
1774
|
+
:param version: version (required)
|
|
1775
|
+
:type version: str
|
|
1776
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1777
|
+
:type resource_id_or_reference: str
|
|
1778
|
+
:param x_platform_id: Platform ID.
|
|
1779
|
+
:type x_platform_id: str
|
|
1780
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1781
|
+
number provided, it will be total request
|
|
1782
|
+
timeout. It can also be a pair (tuple) of
|
|
1783
|
+
(connection, read) timeouts.
|
|
1784
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1785
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1786
|
+
request; this effectively ignores the
|
|
1787
|
+
authentication in the spec for a single request.
|
|
1788
|
+
:type _request_auth: dict, optional
|
|
1789
|
+
:param _content_type: force content-type for the request.
|
|
1790
|
+
:type _content_type: str, Optional
|
|
1791
|
+
:param _headers: set to override the headers for a single
|
|
1792
|
+
request; this effectively ignores the headers
|
|
1793
|
+
in the spec for a single request.
|
|
1794
|
+
:type _headers: dict, optional
|
|
1795
|
+
:param _host_index: set to override the host_index for a single
|
|
1796
|
+
request; this effectively ignores the host_index
|
|
1797
|
+
in the spec for a single request.
|
|
1798
|
+
:type _host_index: int, optional
|
|
1799
|
+
:return: Returns the result object.
|
|
1800
|
+
""" # noqa: E501
|
|
1801
|
+
|
|
1802
|
+
_param = self._post_customers_by_resource_id_or_reference_activate_serialize(
|
|
1803
|
+
version=version,
|
|
1804
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1805
|
+
x_platform_id=x_platform_id,
|
|
1806
|
+
_request_auth=_request_auth,
|
|
1807
|
+
_content_type=_content_type,
|
|
1808
|
+
_headers=_headers,
|
|
1809
|
+
_host_index=_host_index
|
|
1810
|
+
)
|
|
1811
|
+
|
|
1812
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1813
|
+
'200': "Customer",
|
|
1814
|
+
'400': "ApiError",
|
|
1815
|
+
'401': "ApiError",
|
|
1816
|
+
'403': "ApiError",
|
|
1817
|
+
'500': "ApiError",
|
|
1818
|
+
}
|
|
1819
|
+
response_data = self.api_client.call_api(
|
|
1820
|
+
*_param,
|
|
1821
|
+
_request_timeout=_request_timeout
|
|
1822
|
+
)
|
|
1823
|
+
response_data.read()
|
|
1824
|
+
return self.api_client.response_deserialize(
|
|
1825
|
+
response_data=response_data,
|
|
1826
|
+
response_types_map=_response_types_map,
|
|
1827
|
+
)
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
@validate_call
|
|
1831
|
+
def post_customers_by_resource_id_or_reference_activate_without_preload_content(
|
|
1832
|
+
self,
|
|
1833
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1834
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1835
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1836
|
+
_request_timeout: Union[
|
|
1837
|
+
None,
|
|
1838
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1839
|
+
Tuple[
|
|
1840
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1841
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1842
|
+
]
|
|
1843
|
+
] = None,
|
|
1844
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1845
|
+
_content_type: Optional[StrictStr] = None,
|
|
1846
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1847
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1848
|
+
) -> RESTResponseType:
|
|
1849
|
+
"""Activate a customer
|
|
1850
|
+
|
|
1851
|
+
Requires the CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
1852
|
+
|
|
1853
|
+
:param version: version (required)
|
|
1854
|
+
:type version: str
|
|
1855
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1856
|
+
:type resource_id_or_reference: str
|
|
1857
|
+
:param x_platform_id: Platform ID.
|
|
1858
|
+
:type x_platform_id: str
|
|
1859
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1860
|
+
number provided, it will be total request
|
|
1861
|
+
timeout. It can also be a pair (tuple) of
|
|
1862
|
+
(connection, read) timeouts.
|
|
1863
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1864
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1865
|
+
request; this effectively ignores the
|
|
1866
|
+
authentication in the spec for a single request.
|
|
1867
|
+
:type _request_auth: dict, optional
|
|
1868
|
+
:param _content_type: force content-type for the request.
|
|
1869
|
+
:type _content_type: str, Optional
|
|
1870
|
+
:param _headers: set to override the headers for a single
|
|
1871
|
+
request; this effectively ignores the headers
|
|
1872
|
+
in the spec for a single request.
|
|
1873
|
+
:type _headers: dict, optional
|
|
1874
|
+
:param _host_index: set to override the host_index for a single
|
|
1875
|
+
request; this effectively ignores the host_index
|
|
1876
|
+
in the spec for a single request.
|
|
1877
|
+
:type _host_index: int, optional
|
|
1878
|
+
:return: Returns the result object.
|
|
1879
|
+
""" # noqa: E501
|
|
1880
|
+
|
|
1881
|
+
_param = self._post_customers_by_resource_id_or_reference_activate_serialize(
|
|
1882
|
+
version=version,
|
|
1883
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1884
|
+
x_platform_id=x_platform_id,
|
|
1885
|
+
_request_auth=_request_auth,
|
|
1886
|
+
_content_type=_content_type,
|
|
1887
|
+
_headers=_headers,
|
|
1888
|
+
_host_index=_host_index
|
|
1889
|
+
)
|
|
1890
|
+
|
|
1891
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1892
|
+
'200': "Customer",
|
|
1893
|
+
'400': "ApiError",
|
|
1894
|
+
'401': "ApiError",
|
|
1895
|
+
'403': "ApiError",
|
|
1896
|
+
'500': "ApiError",
|
|
1897
|
+
}
|
|
1898
|
+
response_data = self.api_client.call_api(
|
|
1899
|
+
*_param,
|
|
1900
|
+
_request_timeout=_request_timeout
|
|
1901
|
+
)
|
|
1902
|
+
return response_data.response
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
def _post_customers_by_resource_id_or_reference_activate_serialize(
|
|
1906
|
+
self,
|
|
1907
|
+
version,
|
|
1908
|
+
resource_id_or_reference,
|
|
1909
|
+
x_platform_id,
|
|
1910
|
+
_request_auth,
|
|
1911
|
+
_content_type,
|
|
1912
|
+
_headers,
|
|
1913
|
+
_host_index,
|
|
1914
|
+
) -> RequestSerialized:
|
|
1915
|
+
|
|
1916
|
+
_host = None
|
|
1917
|
+
|
|
1918
|
+
_collection_formats: Dict[str, str] = {
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
_path_params: Dict[str, str] = {}
|
|
1922
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1923
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1924
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1925
|
+
_files: Dict[
|
|
1926
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1927
|
+
] = {}
|
|
1928
|
+
_body_params: Optional[bytes] = None
|
|
1929
|
+
|
|
1930
|
+
# process the path parameters
|
|
1931
|
+
if version is not None:
|
|
1932
|
+
_path_params['version'] = version
|
|
1933
|
+
if resource_id_or_reference is not None:
|
|
1934
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
1935
|
+
# process the query parameters
|
|
1936
|
+
# process the header parameters
|
|
1937
|
+
if x_platform_id is not None:
|
|
1938
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1939
|
+
# process the form parameters
|
|
1940
|
+
# process the body parameter
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
# set the HTTP header `Accept`
|
|
1944
|
+
if 'Accept' not in _header_params:
|
|
1945
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1946
|
+
[
|
|
1947
|
+
'application/json',
|
|
1948
|
+
'*/*'
|
|
1949
|
+
]
|
|
1950
|
+
)
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
# authentication setting
|
|
1954
|
+
_auth_settings: List[str] = [
|
|
1955
|
+
'JWT-Authentication',
|
|
1956
|
+
'API-Key'
|
|
1957
|
+
]
|
|
1958
|
+
|
|
1959
|
+
return self.api_client.param_serialize(
|
|
1960
|
+
method='POST',
|
|
1961
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}/activate',
|
|
1962
|
+
path_params=_path_params,
|
|
1963
|
+
query_params=_query_params,
|
|
1964
|
+
header_params=_header_params,
|
|
1965
|
+
body=_body_params,
|
|
1966
|
+
post_params=_form_params,
|
|
1967
|
+
files=_files,
|
|
1968
|
+
auth_settings=_auth_settings,
|
|
1969
|
+
collection_formats=_collection_formats,
|
|
1970
|
+
_host=_host,
|
|
1971
|
+
_request_auth=_request_auth
|
|
1972
|
+
)
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
@validate_call
|
|
1978
|
+
def post_customers_by_resource_id_or_reference_archive(
|
|
1979
|
+
self,
|
|
1980
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1981
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1982
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1983
|
+
_request_timeout: Union[
|
|
1984
|
+
None,
|
|
1985
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1986
|
+
Tuple[
|
|
1987
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1988
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1989
|
+
]
|
|
1990
|
+
] = None,
|
|
1991
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1992
|
+
_content_type: Optional[StrictStr] = None,
|
|
1993
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1994
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1995
|
+
) -> Customer:
|
|
1996
|
+
"""Archive a customer
|
|
1997
|
+
|
|
1998
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
1999
|
+
|
|
2000
|
+
:param version: version (required)
|
|
2001
|
+
:type version: str
|
|
2002
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2003
|
+
:type resource_id_or_reference: str
|
|
2004
|
+
:param x_platform_id: Platform ID.
|
|
2005
|
+
:type x_platform_id: str
|
|
2006
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2007
|
+
number provided, it will be total request
|
|
2008
|
+
timeout. It can also be a pair (tuple) of
|
|
2009
|
+
(connection, read) timeouts.
|
|
2010
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2011
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2012
|
+
request; this effectively ignores the
|
|
2013
|
+
authentication in the spec for a single request.
|
|
2014
|
+
:type _request_auth: dict, optional
|
|
2015
|
+
:param _content_type: force content-type for the request.
|
|
2016
|
+
:type _content_type: str, Optional
|
|
2017
|
+
:param _headers: set to override the headers for a single
|
|
2018
|
+
request; this effectively ignores the headers
|
|
2019
|
+
in the spec for a single request.
|
|
2020
|
+
:type _headers: dict, optional
|
|
2021
|
+
:param _host_index: set to override the host_index for a single
|
|
2022
|
+
request; this effectively ignores the host_index
|
|
2023
|
+
in the spec for a single request.
|
|
2024
|
+
:type _host_index: int, optional
|
|
2025
|
+
:return: Returns the result object.
|
|
2026
|
+
""" # noqa: E501
|
|
2027
|
+
|
|
2028
|
+
_param = self._post_customers_by_resource_id_or_reference_archive_serialize(
|
|
2029
|
+
version=version,
|
|
2030
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2031
|
+
x_platform_id=x_platform_id,
|
|
2032
|
+
_request_auth=_request_auth,
|
|
2033
|
+
_content_type=_content_type,
|
|
2034
|
+
_headers=_headers,
|
|
2035
|
+
_host_index=_host_index
|
|
2036
|
+
)
|
|
2037
|
+
|
|
2038
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2039
|
+
'200': "Customer",
|
|
2040
|
+
'400': "ApiError",
|
|
2041
|
+
'401': "ApiError",
|
|
2042
|
+
'403': "ApiError",
|
|
2043
|
+
'500': "ApiError",
|
|
2044
|
+
}
|
|
2045
|
+
response_data = self.api_client.call_api(
|
|
2046
|
+
*_param,
|
|
2047
|
+
_request_timeout=_request_timeout
|
|
2048
|
+
)
|
|
2049
|
+
response_data.read()
|
|
2050
|
+
return self.api_client.response_deserialize(
|
|
2051
|
+
response_data=response_data,
|
|
2052
|
+
response_types_map=_response_types_map,
|
|
2053
|
+
).data
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
@validate_call
|
|
2057
|
+
def post_customers_by_resource_id_or_reference_archive_with_http_info(
|
|
2058
|
+
self,
|
|
2059
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2060
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2061
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2062
|
+
_request_timeout: Union[
|
|
2063
|
+
None,
|
|
2064
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2065
|
+
Tuple[
|
|
2066
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2067
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2068
|
+
]
|
|
2069
|
+
] = None,
|
|
2070
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2071
|
+
_content_type: Optional[StrictStr] = None,
|
|
2072
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2073
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2074
|
+
) -> ApiResponse[Customer]:
|
|
2075
|
+
"""Archive a customer
|
|
2076
|
+
|
|
2077
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2078
|
+
|
|
2079
|
+
:param version: version (required)
|
|
2080
|
+
:type version: str
|
|
2081
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2082
|
+
:type resource_id_or_reference: str
|
|
2083
|
+
:param x_platform_id: Platform ID.
|
|
2084
|
+
:type x_platform_id: str
|
|
2085
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2086
|
+
number provided, it will be total request
|
|
2087
|
+
timeout. It can also be a pair (tuple) of
|
|
2088
|
+
(connection, read) timeouts.
|
|
2089
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2090
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2091
|
+
request; this effectively ignores the
|
|
2092
|
+
authentication in the spec for a single request.
|
|
2093
|
+
:type _request_auth: dict, optional
|
|
2094
|
+
:param _content_type: force content-type for the request.
|
|
2095
|
+
:type _content_type: str, Optional
|
|
2096
|
+
:param _headers: set to override the headers for a single
|
|
2097
|
+
request; this effectively ignores the headers
|
|
2098
|
+
in the spec for a single request.
|
|
2099
|
+
:type _headers: dict, optional
|
|
2100
|
+
:param _host_index: set to override the host_index for a single
|
|
2101
|
+
request; this effectively ignores the host_index
|
|
2102
|
+
in the spec for a single request.
|
|
2103
|
+
:type _host_index: int, optional
|
|
2104
|
+
:return: Returns the result object.
|
|
2105
|
+
""" # noqa: E501
|
|
2106
|
+
|
|
2107
|
+
_param = self._post_customers_by_resource_id_or_reference_archive_serialize(
|
|
2108
|
+
version=version,
|
|
2109
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2110
|
+
x_platform_id=x_platform_id,
|
|
2111
|
+
_request_auth=_request_auth,
|
|
2112
|
+
_content_type=_content_type,
|
|
2113
|
+
_headers=_headers,
|
|
2114
|
+
_host_index=_host_index
|
|
2115
|
+
)
|
|
2116
|
+
|
|
2117
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2118
|
+
'200': "Customer",
|
|
2119
|
+
'400': "ApiError",
|
|
2120
|
+
'401': "ApiError",
|
|
2121
|
+
'403': "ApiError",
|
|
2122
|
+
'500': "ApiError",
|
|
2123
|
+
}
|
|
2124
|
+
response_data = self.api_client.call_api(
|
|
2125
|
+
*_param,
|
|
2126
|
+
_request_timeout=_request_timeout
|
|
2127
|
+
)
|
|
2128
|
+
response_data.read()
|
|
2129
|
+
return self.api_client.response_deserialize(
|
|
2130
|
+
response_data=response_data,
|
|
2131
|
+
response_types_map=_response_types_map,
|
|
2132
|
+
)
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
@validate_call
|
|
2136
|
+
def post_customers_by_resource_id_or_reference_archive_without_preload_content(
|
|
2137
|
+
self,
|
|
2138
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2139
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2140
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2141
|
+
_request_timeout: Union[
|
|
2142
|
+
None,
|
|
2143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2144
|
+
Tuple[
|
|
2145
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2146
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2147
|
+
]
|
|
2148
|
+
] = None,
|
|
2149
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2150
|
+
_content_type: Optional[StrictStr] = None,
|
|
2151
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2152
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2153
|
+
) -> RESTResponseType:
|
|
2154
|
+
"""Archive a customer
|
|
2155
|
+
|
|
2156
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2157
|
+
|
|
2158
|
+
:param version: version (required)
|
|
2159
|
+
:type version: str
|
|
2160
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2161
|
+
:type resource_id_or_reference: str
|
|
2162
|
+
:param x_platform_id: Platform ID.
|
|
2163
|
+
:type x_platform_id: str
|
|
2164
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2165
|
+
number provided, it will be total request
|
|
2166
|
+
timeout. It can also be a pair (tuple) of
|
|
2167
|
+
(connection, read) timeouts.
|
|
2168
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2169
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2170
|
+
request; this effectively ignores the
|
|
2171
|
+
authentication in the spec for a single request.
|
|
2172
|
+
:type _request_auth: dict, optional
|
|
2173
|
+
:param _content_type: force content-type for the request.
|
|
2174
|
+
:type _content_type: str, Optional
|
|
2175
|
+
:param _headers: set to override the headers for a single
|
|
2176
|
+
request; this effectively ignores the headers
|
|
2177
|
+
in the spec for a single request.
|
|
2178
|
+
:type _headers: dict, optional
|
|
2179
|
+
:param _host_index: set to override the host_index for a single
|
|
2180
|
+
request; this effectively ignores the host_index
|
|
2181
|
+
in the spec for a single request.
|
|
2182
|
+
:type _host_index: int, optional
|
|
2183
|
+
:return: Returns the result object.
|
|
2184
|
+
""" # noqa: E501
|
|
2185
|
+
|
|
2186
|
+
_param = self._post_customers_by_resource_id_or_reference_archive_serialize(
|
|
2187
|
+
version=version,
|
|
2188
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2189
|
+
x_platform_id=x_platform_id,
|
|
2190
|
+
_request_auth=_request_auth,
|
|
2191
|
+
_content_type=_content_type,
|
|
2192
|
+
_headers=_headers,
|
|
2193
|
+
_host_index=_host_index
|
|
2194
|
+
)
|
|
2195
|
+
|
|
2196
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2197
|
+
'200': "Customer",
|
|
2198
|
+
'400': "ApiError",
|
|
2199
|
+
'401': "ApiError",
|
|
2200
|
+
'403': "ApiError",
|
|
2201
|
+
'500': "ApiError",
|
|
2202
|
+
}
|
|
2203
|
+
response_data = self.api_client.call_api(
|
|
2204
|
+
*_param,
|
|
2205
|
+
_request_timeout=_request_timeout
|
|
2206
|
+
)
|
|
2207
|
+
return response_data.response
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
def _post_customers_by_resource_id_or_reference_archive_serialize(
|
|
2211
|
+
self,
|
|
2212
|
+
version,
|
|
2213
|
+
resource_id_or_reference,
|
|
2214
|
+
x_platform_id,
|
|
2215
|
+
_request_auth,
|
|
2216
|
+
_content_type,
|
|
2217
|
+
_headers,
|
|
2218
|
+
_host_index,
|
|
2219
|
+
) -> RequestSerialized:
|
|
2220
|
+
|
|
2221
|
+
_host = None
|
|
2222
|
+
|
|
2223
|
+
_collection_formats: Dict[str, str] = {
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
_path_params: Dict[str, str] = {}
|
|
2227
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2228
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2229
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2230
|
+
_files: Dict[
|
|
2231
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2232
|
+
] = {}
|
|
2233
|
+
_body_params: Optional[bytes] = None
|
|
2234
|
+
|
|
2235
|
+
# process the path parameters
|
|
2236
|
+
if version is not None:
|
|
2237
|
+
_path_params['version'] = version
|
|
2238
|
+
if resource_id_or_reference is not None:
|
|
2239
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
2240
|
+
# process the query parameters
|
|
2241
|
+
# process the header parameters
|
|
2242
|
+
if x_platform_id is not None:
|
|
2243
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2244
|
+
# process the form parameters
|
|
2245
|
+
# process the body parameter
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
# set the HTTP header `Accept`
|
|
2249
|
+
if 'Accept' not in _header_params:
|
|
2250
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2251
|
+
[
|
|
2252
|
+
'application/json',
|
|
2253
|
+
'*/*'
|
|
2254
|
+
]
|
|
2255
|
+
)
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
# authentication setting
|
|
2259
|
+
_auth_settings: List[str] = [
|
|
2260
|
+
'JWT-Authentication',
|
|
2261
|
+
'API-Key'
|
|
2262
|
+
]
|
|
2263
|
+
|
|
2264
|
+
return self.api_client.param_serialize(
|
|
2265
|
+
method='POST',
|
|
2266
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}/archive',
|
|
2267
|
+
path_params=_path_params,
|
|
2268
|
+
query_params=_query_params,
|
|
2269
|
+
header_params=_header_params,
|
|
2270
|
+
body=_body_params,
|
|
2271
|
+
post_params=_form_params,
|
|
2272
|
+
files=_files,
|
|
2273
|
+
auth_settings=_auth_settings,
|
|
2274
|
+
collection_formats=_collection_formats,
|
|
2275
|
+
_host=_host,
|
|
2276
|
+
_request_auth=_request_auth
|
|
2277
|
+
)
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
@validate_call
|
|
2283
|
+
def post_customers_by_resource_id_or_reference_deprecate(
|
|
2284
|
+
self,
|
|
2285
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2286
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2287
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2288
|
+
_request_timeout: Union[
|
|
2289
|
+
None,
|
|
2290
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2291
|
+
Tuple[
|
|
2292
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2293
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2294
|
+
]
|
|
2295
|
+
] = None,
|
|
2296
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2297
|
+
_content_type: Optional[StrictStr] = None,
|
|
2298
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2299
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2300
|
+
) -> Customer:
|
|
2301
|
+
"""Deprecate a customer
|
|
2302
|
+
|
|
2303
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2304
|
+
|
|
2305
|
+
:param version: version (required)
|
|
2306
|
+
:type version: str
|
|
2307
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2308
|
+
:type resource_id_or_reference: str
|
|
2309
|
+
:param x_platform_id: Platform ID.
|
|
2310
|
+
:type x_platform_id: str
|
|
2311
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2312
|
+
number provided, it will be total request
|
|
2313
|
+
timeout. It can also be a pair (tuple) of
|
|
2314
|
+
(connection, read) timeouts.
|
|
2315
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2316
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2317
|
+
request; this effectively ignores the
|
|
2318
|
+
authentication in the spec for a single request.
|
|
2319
|
+
:type _request_auth: dict, optional
|
|
2320
|
+
:param _content_type: force content-type for the request.
|
|
2321
|
+
:type _content_type: str, Optional
|
|
2322
|
+
:param _headers: set to override the headers for a single
|
|
2323
|
+
request; this effectively ignores the headers
|
|
2324
|
+
in the spec for a single request.
|
|
2325
|
+
:type _headers: dict, optional
|
|
2326
|
+
:param _host_index: set to override the host_index for a single
|
|
2327
|
+
request; this effectively ignores the host_index
|
|
2328
|
+
in the spec for a single request.
|
|
2329
|
+
:type _host_index: int, optional
|
|
2330
|
+
:return: Returns the result object.
|
|
2331
|
+
""" # noqa: E501
|
|
2332
|
+
|
|
2333
|
+
_param = self._post_customers_by_resource_id_or_reference_deprecate_serialize(
|
|
2334
|
+
version=version,
|
|
2335
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2336
|
+
x_platform_id=x_platform_id,
|
|
2337
|
+
_request_auth=_request_auth,
|
|
2338
|
+
_content_type=_content_type,
|
|
2339
|
+
_headers=_headers,
|
|
2340
|
+
_host_index=_host_index
|
|
2341
|
+
)
|
|
2342
|
+
|
|
2343
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2344
|
+
'200': "Customer",
|
|
2345
|
+
'400': "ApiError",
|
|
2346
|
+
'401': "ApiError",
|
|
2347
|
+
'403': "ApiError",
|
|
2348
|
+
'500': "ApiError",
|
|
2349
|
+
}
|
|
2350
|
+
response_data = self.api_client.call_api(
|
|
2351
|
+
*_param,
|
|
2352
|
+
_request_timeout=_request_timeout
|
|
2353
|
+
)
|
|
2354
|
+
response_data.read()
|
|
2355
|
+
return self.api_client.response_deserialize(
|
|
2356
|
+
response_data=response_data,
|
|
2357
|
+
response_types_map=_response_types_map,
|
|
2358
|
+
).data
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
@validate_call
|
|
2362
|
+
def post_customers_by_resource_id_or_reference_deprecate_with_http_info(
|
|
2363
|
+
self,
|
|
2364
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2365
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2366
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2367
|
+
_request_timeout: Union[
|
|
2368
|
+
None,
|
|
2369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2370
|
+
Tuple[
|
|
2371
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2372
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2373
|
+
]
|
|
2374
|
+
] = None,
|
|
2375
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2376
|
+
_content_type: Optional[StrictStr] = None,
|
|
2377
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2378
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2379
|
+
) -> ApiResponse[Customer]:
|
|
2380
|
+
"""Deprecate a customer
|
|
2381
|
+
|
|
2382
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2383
|
+
|
|
2384
|
+
:param version: version (required)
|
|
2385
|
+
:type version: str
|
|
2386
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2387
|
+
:type resource_id_or_reference: str
|
|
2388
|
+
:param x_platform_id: Platform ID.
|
|
2389
|
+
:type x_platform_id: str
|
|
2390
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2391
|
+
number provided, it will be total request
|
|
2392
|
+
timeout. It can also be a pair (tuple) of
|
|
2393
|
+
(connection, read) timeouts.
|
|
2394
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2395
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2396
|
+
request; this effectively ignores the
|
|
2397
|
+
authentication in the spec for a single request.
|
|
2398
|
+
:type _request_auth: dict, optional
|
|
2399
|
+
:param _content_type: force content-type for the request.
|
|
2400
|
+
:type _content_type: str, Optional
|
|
2401
|
+
:param _headers: set to override the headers for a single
|
|
2402
|
+
request; this effectively ignores the headers
|
|
2403
|
+
in the spec for a single request.
|
|
2404
|
+
:type _headers: dict, optional
|
|
2405
|
+
:param _host_index: set to override the host_index for a single
|
|
2406
|
+
request; this effectively ignores the host_index
|
|
2407
|
+
in the spec for a single request.
|
|
2408
|
+
:type _host_index: int, optional
|
|
2409
|
+
:return: Returns the result object.
|
|
2410
|
+
""" # noqa: E501
|
|
2411
|
+
|
|
2412
|
+
_param = self._post_customers_by_resource_id_or_reference_deprecate_serialize(
|
|
2413
|
+
version=version,
|
|
2414
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2415
|
+
x_platform_id=x_platform_id,
|
|
2416
|
+
_request_auth=_request_auth,
|
|
2417
|
+
_content_type=_content_type,
|
|
2418
|
+
_headers=_headers,
|
|
2419
|
+
_host_index=_host_index
|
|
2420
|
+
)
|
|
2421
|
+
|
|
2422
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2423
|
+
'200': "Customer",
|
|
2424
|
+
'400': "ApiError",
|
|
2425
|
+
'401': "ApiError",
|
|
2426
|
+
'403': "ApiError",
|
|
2427
|
+
'500': "ApiError",
|
|
2428
|
+
}
|
|
2429
|
+
response_data = self.api_client.call_api(
|
|
2430
|
+
*_param,
|
|
2431
|
+
_request_timeout=_request_timeout
|
|
2432
|
+
)
|
|
2433
|
+
response_data.read()
|
|
2434
|
+
return self.api_client.response_deserialize(
|
|
2435
|
+
response_data=response_data,
|
|
2436
|
+
response_types_map=_response_types_map,
|
|
2437
|
+
)
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
@validate_call
|
|
2441
|
+
def post_customers_by_resource_id_or_reference_deprecate_without_preload_content(
|
|
2442
|
+
self,
|
|
2443
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2444
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2445
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2446
|
+
_request_timeout: Union[
|
|
2447
|
+
None,
|
|
2448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2449
|
+
Tuple[
|
|
2450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2451
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2452
|
+
]
|
|
2453
|
+
] = None,
|
|
2454
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2455
|
+
_content_type: Optional[StrictStr] = None,
|
|
2456
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2457
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2458
|
+
) -> RESTResponseType:
|
|
2459
|
+
"""Deprecate a customer
|
|
2460
|
+
|
|
2461
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2462
|
+
|
|
2463
|
+
:param version: version (required)
|
|
2464
|
+
:type version: str
|
|
2465
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2466
|
+
:type resource_id_or_reference: str
|
|
2467
|
+
:param x_platform_id: Platform ID.
|
|
2468
|
+
:type x_platform_id: str
|
|
2469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2470
|
+
number provided, it will be total request
|
|
2471
|
+
timeout. It can also be a pair (tuple) of
|
|
2472
|
+
(connection, read) timeouts.
|
|
2473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2475
|
+
request; this effectively ignores the
|
|
2476
|
+
authentication in the spec for a single request.
|
|
2477
|
+
:type _request_auth: dict, optional
|
|
2478
|
+
:param _content_type: force content-type for the request.
|
|
2479
|
+
:type _content_type: str, Optional
|
|
2480
|
+
:param _headers: set to override the headers for a single
|
|
2481
|
+
request; this effectively ignores the headers
|
|
2482
|
+
in the spec for a single request.
|
|
2483
|
+
:type _headers: dict, optional
|
|
2484
|
+
:param _host_index: set to override the host_index for a single
|
|
2485
|
+
request; this effectively ignores the host_index
|
|
2486
|
+
in the spec for a single request.
|
|
2487
|
+
:type _host_index: int, optional
|
|
2488
|
+
:return: Returns the result object.
|
|
2489
|
+
""" # noqa: E501
|
|
2490
|
+
|
|
2491
|
+
_param = self._post_customers_by_resource_id_or_reference_deprecate_serialize(
|
|
2492
|
+
version=version,
|
|
2493
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2494
|
+
x_platform_id=x_platform_id,
|
|
2495
|
+
_request_auth=_request_auth,
|
|
2496
|
+
_content_type=_content_type,
|
|
2497
|
+
_headers=_headers,
|
|
2498
|
+
_host_index=_host_index
|
|
2499
|
+
)
|
|
2500
|
+
|
|
2501
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2502
|
+
'200': "Customer",
|
|
2503
|
+
'400': "ApiError",
|
|
2504
|
+
'401': "ApiError",
|
|
2505
|
+
'403': "ApiError",
|
|
2506
|
+
'500': "ApiError",
|
|
2507
|
+
}
|
|
2508
|
+
response_data = self.api_client.call_api(
|
|
2509
|
+
*_param,
|
|
2510
|
+
_request_timeout=_request_timeout
|
|
2511
|
+
)
|
|
2512
|
+
return response_data.response
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
def _post_customers_by_resource_id_or_reference_deprecate_serialize(
|
|
2516
|
+
self,
|
|
2517
|
+
version,
|
|
2518
|
+
resource_id_or_reference,
|
|
2519
|
+
x_platform_id,
|
|
2520
|
+
_request_auth,
|
|
2521
|
+
_content_type,
|
|
2522
|
+
_headers,
|
|
2523
|
+
_host_index,
|
|
2524
|
+
) -> RequestSerialized:
|
|
2525
|
+
|
|
2526
|
+
_host = None
|
|
2527
|
+
|
|
2528
|
+
_collection_formats: Dict[str, str] = {
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
_path_params: Dict[str, str] = {}
|
|
2532
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2533
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2534
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2535
|
+
_files: Dict[
|
|
2536
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2537
|
+
] = {}
|
|
2538
|
+
_body_params: Optional[bytes] = None
|
|
2539
|
+
|
|
2540
|
+
# process the path parameters
|
|
2541
|
+
if version is not None:
|
|
2542
|
+
_path_params['version'] = version
|
|
2543
|
+
if resource_id_or_reference is not None:
|
|
2544
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
2545
|
+
# process the query parameters
|
|
2546
|
+
# process the header parameters
|
|
2547
|
+
if x_platform_id is not None:
|
|
2548
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2549
|
+
# process the form parameters
|
|
2550
|
+
# process the body parameter
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
# set the HTTP header `Accept`
|
|
2554
|
+
if 'Accept' not in _header_params:
|
|
2555
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2556
|
+
[
|
|
2557
|
+
'application/json',
|
|
2558
|
+
'*/*'
|
|
2559
|
+
]
|
|
2560
|
+
)
|
|
2561
|
+
|
|
2562
|
+
|
|
2563
|
+
# authentication setting
|
|
2564
|
+
_auth_settings: List[str] = [
|
|
2565
|
+
'JWT-Authentication',
|
|
2566
|
+
'API-Key'
|
|
2567
|
+
]
|
|
2568
|
+
|
|
2569
|
+
return self.api_client.param_serialize(
|
|
2570
|
+
method='POST',
|
|
2571
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}/deprecate',
|
|
2572
|
+
path_params=_path_params,
|
|
2573
|
+
query_params=_query_params,
|
|
2574
|
+
header_params=_header_params,
|
|
2575
|
+
body=_body_params,
|
|
2576
|
+
post_params=_form_params,
|
|
2577
|
+
files=_files,
|
|
2578
|
+
auth_settings=_auth_settings,
|
|
2579
|
+
collection_formats=_collection_formats,
|
|
2580
|
+
_host=_host,
|
|
2581
|
+
_request_auth=_request_auth
|
|
2582
|
+
)
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
@validate_call
|
|
2588
|
+
def post_customers_by_resource_id_or_reference_forget(
|
|
2589
|
+
self,
|
|
2590
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2591
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2592
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2593
|
+
_request_timeout: Union[
|
|
2594
|
+
None,
|
|
2595
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2596
|
+
Tuple[
|
|
2597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2598
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2599
|
+
]
|
|
2600
|
+
] = None,
|
|
2601
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2602
|
+
_content_type: Optional[StrictStr] = None,
|
|
2603
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2604
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2605
|
+
) -> Customer:
|
|
2606
|
+
"""Forget a customer
|
|
2607
|
+
|
|
2608
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2609
|
+
|
|
2610
|
+
:param version: version (required)
|
|
2611
|
+
:type version: str
|
|
2612
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2613
|
+
:type resource_id_or_reference: str
|
|
2614
|
+
:param x_platform_id: Platform ID.
|
|
2615
|
+
:type x_platform_id: str
|
|
2616
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2617
|
+
number provided, it will be total request
|
|
2618
|
+
timeout. It can also be a pair (tuple) of
|
|
2619
|
+
(connection, read) timeouts.
|
|
2620
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2621
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2622
|
+
request; this effectively ignores the
|
|
2623
|
+
authentication in the spec for a single request.
|
|
2624
|
+
:type _request_auth: dict, optional
|
|
2625
|
+
:param _content_type: force content-type for the request.
|
|
2626
|
+
:type _content_type: str, Optional
|
|
2627
|
+
:param _headers: set to override the headers for a single
|
|
2628
|
+
request; this effectively ignores the headers
|
|
2629
|
+
in the spec for a single request.
|
|
2630
|
+
:type _headers: dict, optional
|
|
2631
|
+
:param _host_index: set to override the host_index for a single
|
|
2632
|
+
request; this effectively ignores the host_index
|
|
2633
|
+
in the spec for a single request.
|
|
2634
|
+
:type _host_index: int, optional
|
|
2635
|
+
:return: Returns the result object.
|
|
2636
|
+
""" # noqa: E501
|
|
2637
|
+
|
|
2638
|
+
_param = self._post_customers_by_resource_id_or_reference_forget_serialize(
|
|
2639
|
+
version=version,
|
|
2640
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2641
|
+
x_platform_id=x_platform_id,
|
|
2642
|
+
_request_auth=_request_auth,
|
|
2643
|
+
_content_type=_content_type,
|
|
2644
|
+
_headers=_headers,
|
|
2645
|
+
_host_index=_host_index
|
|
2646
|
+
)
|
|
2647
|
+
|
|
2648
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2649
|
+
'200': "Customer",
|
|
2650
|
+
'400': "ApiError",
|
|
2651
|
+
'401': "ApiError",
|
|
2652
|
+
'403': "ApiError",
|
|
2653
|
+
'500': "ApiError",
|
|
2654
|
+
}
|
|
2655
|
+
response_data = self.api_client.call_api(
|
|
2656
|
+
*_param,
|
|
2657
|
+
_request_timeout=_request_timeout
|
|
2658
|
+
)
|
|
2659
|
+
response_data.read()
|
|
2660
|
+
return self.api_client.response_deserialize(
|
|
2661
|
+
response_data=response_data,
|
|
2662
|
+
response_types_map=_response_types_map,
|
|
2663
|
+
).data
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
@validate_call
|
|
2667
|
+
def post_customers_by_resource_id_or_reference_forget_with_http_info(
|
|
2668
|
+
self,
|
|
2669
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2670
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2671
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2672
|
+
_request_timeout: Union[
|
|
2673
|
+
None,
|
|
2674
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2675
|
+
Tuple[
|
|
2676
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2677
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2678
|
+
]
|
|
2679
|
+
] = None,
|
|
2680
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2681
|
+
_content_type: Optional[StrictStr] = None,
|
|
2682
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2683
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2684
|
+
) -> ApiResponse[Customer]:
|
|
2685
|
+
"""Forget a customer
|
|
2686
|
+
|
|
2687
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2688
|
+
|
|
2689
|
+
:param version: version (required)
|
|
2690
|
+
:type version: str
|
|
2691
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2692
|
+
:type resource_id_or_reference: str
|
|
2693
|
+
:param x_platform_id: Platform ID.
|
|
2694
|
+
:type x_platform_id: str
|
|
2695
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2696
|
+
number provided, it will be total request
|
|
2697
|
+
timeout. It can also be a pair (tuple) of
|
|
2698
|
+
(connection, read) timeouts.
|
|
2699
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2700
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2701
|
+
request; this effectively ignores the
|
|
2702
|
+
authentication in the spec for a single request.
|
|
2703
|
+
:type _request_auth: dict, optional
|
|
2704
|
+
:param _content_type: force content-type for the request.
|
|
2705
|
+
:type _content_type: str, Optional
|
|
2706
|
+
:param _headers: set to override the headers for a single
|
|
2707
|
+
request; this effectively ignores the headers
|
|
2708
|
+
in the spec for a single request.
|
|
2709
|
+
:type _headers: dict, optional
|
|
2710
|
+
:param _host_index: set to override the host_index for a single
|
|
2711
|
+
request; this effectively ignores the host_index
|
|
2712
|
+
in the spec for a single request.
|
|
2713
|
+
:type _host_index: int, optional
|
|
2714
|
+
:return: Returns the result object.
|
|
2715
|
+
""" # noqa: E501
|
|
2716
|
+
|
|
2717
|
+
_param = self._post_customers_by_resource_id_or_reference_forget_serialize(
|
|
2718
|
+
version=version,
|
|
2719
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2720
|
+
x_platform_id=x_platform_id,
|
|
2721
|
+
_request_auth=_request_auth,
|
|
2722
|
+
_content_type=_content_type,
|
|
2723
|
+
_headers=_headers,
|
|
2724
|
+
_host_index=_host_index
|
|
2725
|
+
)
|
|
2726
|
+
|
|
2727
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2728
|
+
'200': "Customer",
|
|
2729
|
+
'400': "ApiError",
|
|
2730
|
+
'401': "ApiError",
|
|
2731
|
+
'403': "ApiError",
|
|
2732
|
+
'500': "ApiError",
|
|
2733
|
+
}
|
|
2734
|
+
response_data = self.api_client.call_api(
|
|
2735
|
+
*_param,
|
|
2736
|
+
_request_timeout=_request_timeout
|
|
2737
|
+
)
|
|
2738
|
+
response_data.read()
|
|
2739
|
+
return self.api_client.response_deserialize(
|
|
2740
|
+
response_data=response_data,
|
|
2741
|
+
response_types_map=_response_types_map,
|
|
2742
|
+
)
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
@validate_call
|
|
2746
|
+
def post_customers_by_resource_id_or_reference_forget_without_preload_content(
|
|
2747
|
+
self,
|
|
2748
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2749
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2750
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2751
|
+
_request_timeout: Union[
|
|
2752
|
+
None,
|
|
2753
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2754
|
+
Tuple[
|
|
2755
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2756
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2757
|
+
]
|
|
2758
|
+
] = None,
|
|
2759
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2760
|
+
_content_type: Optional[StrictStr] = None,
|
|
2761
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2762
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2763
|
+
) -> RESTResponseType:
|
|
2764
|
+
"""Forget a customer
|
|
2765
|
+
|
|
2766
|
+
Requires the CUSTOMER.UPDATE permission.
|
|
2767
|
+
|
|
2768
|
+
:param version: version (required)
|
|
2769
|
+
:type version: str
|
|
2770
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2771
|
+
:type resource_id_or_reference: str
|
|
2772
|
+
:param x_platform_id: Platform ID.
|
|
2773
|
+
:type x_platform_id: str
|
|
2774
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2775
|
+
number provided, it will be total request
|
|
2776
|
+
timeout. It can also be a pair (tuple) of
|
|
2777
|
+
(connection, read) timeouts.
|
|
2778
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2779
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2780
|
+
request; this effectively ignores the
|
|
2781
|
+
authentication in the spec for a single request.
|
|
2782
|
+
:type _request_auth: dict, optional
|
|
2783
|
+
:param _content_type: force content-type for the request.
|
|
2784
|
+
:type _content_type: str, Optional
|
|
2785
|
+
:param _headers: set to override the headers for a single
|
|
2786
|
+
request; this effectively ignores the headers
|
|
2787
|
+
in the spec for a single request.
|
|
2788
|
+
:type _headers: dict, optional
|
|
2789
|
+
:param _host_index: set to override the host_index for a single
|
|
2790
|
+
request; this effectively ignores the host_index
|
|
2791
|
+
in the spec for a single request.
|
|
2792
|
+
:type _host_index: int, optional
|
|
2793
|
+
:return: Returns the result object.
|
|
2794
|
+
""" # noqa: E501
|
|
2795
|
+
|
|
2796
|
+
_param = self._post_customers_by_resource_id_or_reference_forget_serialize(
|
|
2797
|
+
version=version,
|
|
2798
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2799
|
+
x_platform_id=x_platform_id,
|
|
2800
|
+
_request_auth=_request_auth,
|
|
2801
|
+
_content_type=_content_type,
|
|
2802
|
+
_headers=_headers,
|
|
2803
|
+
_host_index=_host_index
|
|
2804
|
+
)
|
|
2805
|
+
|
|
2806
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2807
|
+
'200': "Customer",
|
|
2808
|
+
'400': "ApiError",
|
|
2809
|
+
'401': "ApiError",
|
|
2810
|
+
'403': "ApiError",
|
|
2811
|
+
'500': "ApiError",
|
|
2812
|
+
}
|
|
2813
|
+
response_data = self.api_client.call_api(
|
|
2814
|
+
*_param,
|
|
2815
|
+
_request_timeout=_request_timeout
|
|
2816
|
+
)
|
|
2817
|
+
return response_data.response
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
def _post_customers_by_resource_id_or_reference_forget_serialize(
|
|
2821
|
+
self,
|
|
2822
|
+
version,
|
|
2823
|
+
resource_id_or_reference,
|
|
2824
|
+
x_platform_id,
|
|
2825
|
+
_request_auth,
|
|
2826
|
+
_content_type,
|
|
2827
|
+
_headers,
|
|
2828
|
+
_host_index,
|
|
2829
|
+
) -> RequestSerialized:
|
|
2830
|
+
|
|
2831
|
+
_host = None
|
|
2832
|
+
|
|
2833
|
+
_collection_formats: Dict[str, str] = {
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
_path_params: Dict[str, str] = {}
|
|
2837
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2838
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2839
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2840
|
+
_files: Dict[
|
|
2841
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2842
|
+
] = {}
|
|
2843
|
+
_body_params: Optional[bytes] = None
|
|
2844
|
+
|
|
2845
|
+
# process the path parameters
|
|
2846
|
+
if version is not None:
|
|
2847
|
+
_path_params['version'] = version
|
|
2848
|
+
if resource_id_or_reference is not None:
|
|
2849
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
2850
|
+
# process the query parameters
|
|
2851
|
+
# process the header parameters
|
|
2852
|
+
if x_platform_id is not None:
|
|
2853
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2854
|
+
# process the form parameters
|
|
2855
|
+
# process the body parameter
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
# set the HTTP header `Accept`
|
|
2859
|
+
if 'Accept' not in _header_params:
|
|
2860
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2861
|
+
[
|
|
2862
|
+
'application/json',
|
|
2863
|
+
'*/*'
|
|
2864
|
+
]
|
|
2865
|
+
)
|
|
2866
|
+
|
|
2867
|
+
|
|
2868
|
+
# authentication setting
|
|
2869
|
+
_auth_settings: List[str] = [
|
|
2870
|
+
'JWT-Authentication',
|
|
2871
|
+
'API-Key'
|
|
2872
|
+
]
|
|
2873
|
+
|
|
2874
|
+
return self.api_client.param_serialize(
|
|
2875
|
+
method='POST',
|
|
2876
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}/forget',
|
|
2877
|
+
path_params=_path_params,
|
|
2878
|
+
query_params=_query_params,
|
|
2879
|
+
header_params=_header_params,
|
|
2880
|
+
body=_body_params,
|
|
2881
|
+
post_params=_form_params,
|
|
2882
|
+
files=_files,
|
|
2883
|
+
auth_settings=_auth_settings,
|
|
2884
|
+
collection_formats=_collection_formats,
|
|
2885
|
+
_host=_host,
|
|
2886
|
+
_request_auth=_request_auth
|
|
2887
|
+
)
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
@validate_call
|
|
2893
|
+
def post_customers_by_resource_id_or_reference_wallets_balance(
|
|
2894
|
+
self,
|
|
2895
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2896
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2897
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2898
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
2899
|
+
wallet_balance_status_request_create_request: Optional[WalletBalanceStatusRequestCreateRequest] = None,
|
|
2900
|
+
_request_timeout: Union[
|
|
2901
|
+
None,
|
|
2902
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2903
|
+
Tuple[
|
|
2904
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2905
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2906
|
+
]
|
|
2907
|
+
] = None,
|
|
2908
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2909
|
+
_content_type: Optional[StrictStr] = None,
|
|
2910
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2911
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2912
|
+
) -> CustomerWalletBalancesStatus:
|
|
2913
|
+
"""Get the balance of all wallets of a customer
|
|
2914
|
+
|
|
2915
|
+
Requires the CUSTOMER.VIEW or WALLET.VIEW permission.
|
|
2916
|
+
|
|
2917
|
+
:param version: version (required)
|
|
2918
|
+
:type version: str
|
|
2919
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2920
|
+
:type resource_id_or_reference: str
|
|
2921
|
+
:param x_platform_id: Platform ID.
|
|
2922
|
+
:type x_platform_id: str
|
|
2923
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
2924
|
+
:type expand: List[str]
|
|
2925
|
+
:param wallet_balance_status_request_create_request:
|
|
2926
|
+
:type wallet_balance_status_request_create_request: WalletBalanceStatusRequestCreateRequest
|
|
2927
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2928
|
+
number provided, it will be total request
|
|
2929
|
+
timeout. It can also be a pair (tuple) of
|
|
2930
|
+
(connection, read) timeouts.
|
|
2931
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2932
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2933
|
+
request; this effectively ignores the
|
|
2934
|
+
authentication in the spec for a single request.
|
|
2935
|
+
:type _request_auth: dict, optional
|
|
2936
|
+
:param _content_type: force content-type for the request.
|
|
2937
|
+
:type _content_type: str, Optional
|
|
2938
|
+
:param _headers: set to override the headers for a single
|
|
2939
|
+
request; this effectively ignores the headers
|
|
2940
|
+
in the spec for a single request.
|
|
2941
|
+
:type _headers: dict, optional
|
|
2942
|
+
:param _host_index: set to override the host_index for a single
|
|
2943
|
+
request; this effectively ignores the host_index
|
|
2944
|
+
in the spec for a single request.
|
|
2945
|
+
:type _host_index: int, optional
|
|
2946
|
+
:return: Returns the result object.
|
|
2947
|
+
""" # noqa: E501
|
|
2948
|
+
|
|
2949
|
+
_param = self._post_customers_by_resource_id_or_reference_wallets_balance_serialize(
|
|
2950
|
+
version=version,
|
|
2951
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2952
|
+
x_platform_id=x_platform_id,
|
|
2953
|
+
expand=expand,
|
|
2954
|
+
wallet_balance_status_request_create_request=wallet_balance_status_request_create_request,
|
|
2955
|
+
_request_auth=_request_auth,
|
|
2956
|
+
_content_type=_content_type,
|
|
2957
|
+
_headers=_headers,
|
|
2958
|
+
_host_index=_host_index
|
|
2959
|
+
)
|
|
2960
|
+
|
|
2961
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2962
|
+
'200': "CustomerWalletBalancesStatus",
|
|
2963
|
+
'400': "ApiError",
|
|
2964
|
+
'401': "ApiError",
|
|
2965
|
+
'403': "ApiError",
|
|
2966
|
+
'500': "ApiError",
|
|
2967
|
+
}
|
|
2968
|
+
response_data = self.api_client.call_api(
|
|
2969
|
+
*_param,
|
|
2970
|
+
_request_timeout=_request_timeout
|
|
2971
|
+
)
|
|
2972
|
+
response_data.read()
|
|
2973
|
+
return self.api_client.response_deserialize(
|
|
2974
|
+
response_data=response_data,
|
|
2975
|
+
response_types_map=_response_types_map,
|
|
2976
|
+
).data
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
@validate_call
|
|
2980
|
+
def post_customers_by_resource_id_or_reference_wallets_balance_with_http_info(
|
|
2981
|
+
self,
|
|
2982
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2983
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2984
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2985
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
2986
|
+
wallet_balance_status_request_create_request: Optional[WalletBalanceStatusRequestCreateRequest] = None,
|
|
2987
|
+
_request_timeout: Union[
|
|
2988
|
+
None,
|
|
2989
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2990
|
+
Tuple[
|
|
2991
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2992
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2993
|
+
]
|
|
2994
|
+
] = None,
|
|
2995
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2996
|
+
_content_type: Optional[StrictStr] = None,
|
|
2997
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2998
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2999
|
+
) -> ApiResponse[CustomerWalletBalancesStatus]:
|
|
3000
|
+
"""Get the balance of all wallets of a customer
|
|
3001
|
+
|
|
3002
|
+
Requires the CUSTOMER.VIEW or WALLET.VIEW permission.
|
|
3003
|
+
|
|
3004
|
+
:param version: version (required)
|
|
3005
|
+
:type version: str
|
|
3006
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
3007
|
+
:type resource_id_or_reference: str
|
|
3008
|
+
:param x_platform_id: Platform ID.
|
|
3009
|
+
:type x_platform_id: str
|
|
3010
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
3011
|
+
:type expand: List[str]
|
|
3012
|
+
:param wallet_balance_status_request_create_request:
|
|
3013
|
+
:type wallet_balance_status_request_create_request: WalletBalanceStatusRequestCreateRequest
|
|
3014
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3015
|
+
number provided, it will be total request
|
|
3016
|
+
timeout. It can also be a pair (tuple) of
|
|
3017
|
+
(connection, read) timeouts.
|
|
3018
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3019
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3020
|
+
request; this effectively ignores the
|
|
3021
|
+
authentication in the spec for a single request.
|
|
3022
|
+
:type _request_auth: dict, optional
|
|
3023
|
+
:param _content_type: force content-type for the request.
|
|
3024
|
+
:type _content_type: str, Optional
|
|
3025
|
+
:param _headers: set to override the headers for a single
|
|
3026
|
+
request; this effectively ignores the headers
|
|
3027
|
+
in the spec for a single request.
|
|
3028
|
+
:type _headers: dict, optional
|
|
3029
|
+
:param _host_index: set to override the host_index for a single
|
|
3030
|
+
request; this effectively ignores the host_index
|
|
3031
|
+
in the spec for a single request.
|
|
3032
|
+
:type _host_index: int, optional
|
|
3033
|
+
:return: Returns the result object.
|
|
3034
|
+
""" # noqa: E501
|
|
3035
|
+
|
|
3036
|
+
_param = self._post_customers_by_resource_id_or_reference_wallets_balance_serialize(
|
|
3037
|
+
version=version,
|
|
3038
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
3039
|
+
x_platform_id=x_platform_id,
|
|
3040
|
+
expand=expand,
|
|
3041
|
+
wallet_balance_status_request_create_request=wallet_balance_status_request_create_request,
|
|
3042
|
+
_request_auth=_request_auth,
|
|
3043
|
+
_content_type=_content_type,
|
|
3044
|
+
_headers=_headers,
|
|
3045
|
+
_host_index=_host_index
|
|
3046
|
+
)
|
|
3047
|
+
|
|
3048
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3049
|
+
'200': "CustomerWalletBalancesStatus",
|
|
3050
|
+
'400': "ApiError",
|
|
3051
|
+
'401': "ApiError",
|
|
3052
|
+
'403': "ApiError",
|
|
3053
|
+
'500': "ApiError",
|
|
3054
|
+
}
|
|
3055
|
+
response_data = self.api_client.call_api(
|
|
3056
|
+
*_param,
|
|
3057
|
+
_request_timeout=_request_timeout
|
|
3058
|
+
)
|
|
3059
|
+
response_data.read()
|
|
3060
|
+
return self.api_client.response_deserialize(
|
|
3061
|
+
response_data=response_data,
|
|
3062
|
+
response_types_map=_response_types_map,
|
|
3063
|
+
)
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
@validate_call
|
|
3067
|
+
def post_customers_by_resource_id_or_reference_wallets_balance_without_preload_content(
|
|
3068
|
+
self,
|
|
3069
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3070
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
3071
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3072
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
3073
|
+
wallet_balance_status_request_create_request: Optional[WalletBalanceStatusRequestCreateRequest] = None,
|
|
3074
|
+
_request_timeout: Union[
|
|
3075
|
+
None,
|
|
3076
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3077
|
+
Tuple[
|
|
3078
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3079
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3080
|
+
]
|
|
3081
|
+
] = None,
|
|
3082
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3083
|
+
_content_type: Optional[StrictStr] = None,
|
|
3084
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3085
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3086
|
+
) -> RESTResponseType:
|
|
3087
|
+
"""Get the balance of all wallets of a customer
|
|
3088
|
+
|
|
3089
|
+
Requires the CUSTOMER.VIEW or WALLET.VIEW permission.
|
|
3090
|
+
|
|
3091
|
+
:param version: version (required)
|
|
3092
|
+
:type version: str
|
|
3093
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
3094
|
+
:type resource_id_or_reference: str
|
|
3095
|
+
:param x_platform_id: Platform ID.
|
|
3096
|
+
:type x_platform_id: str
|
|
3097
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
3098
|
+
:type expand: List[str]
|
|
3099
|
+
:param wallet_balance_status_request_create_request:
|
|
3100
|
+
:type wallet_balance_status_request_create_request: WalletBalanceStatusRequestCreateRequest
|
|
3101
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3102
|
+
number provided, it will be total request
|
|
3103
|
+
timeout. It can also be a pair (tuple) of
|
|
3104
|
+
(connection, read) timeouts.
|
|
3105
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3106
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3107
|
+
request; this effectively ignores the
|
|
3108
|
+
authentication in the spec for a single request.
|
|
3109
|
+
:type _request_auth: dict, optional
|
|
3110
|
+
:param _content_type: force content-type for the request.
|
|
3111
|
+
:type _content_type: str, Optional
|
|
3112
|
+
:param _headers: set to override the headers for a single
|
|
3113
|
+
request; this effectively ignores the headers
|
|
3114
|
+
in the spec for a single request.
|
|
3115
|
+
:type _headers: dict, optional
|
|
3116
|
+
:param _host_index: set to override the host_index for a single
|
|
3117
|
+
request; this effectively ignores the host_index
|
|
3118
|
+
in the spec for a single request.
|
|
3119
|
+
:type _host_index: int, optional
|
|
3120
|
+
:return: Returns the result object.
|
|
3121
|
+
""" # noqa: E501
|
|
3122
|
+
|
|
3123
|
+
_param = self._post_customers_by_resource_id_or_reference_wallets_balance_serialize(
|
|
3124
|
+
version=version,
|
|
3125
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
3126
|
+
x_platform_id=x_platform_id,
|
|
3127
|
+
expand=expand,
|
|
3128
|
+
wallet_balance_status_request_create_request=wallet_balance_status_request_create_request,
|
|
3129
|
+
_request_auth=_request_auth,
|
|
3130
|
+
_content_type=_content_type,
|
|
3131
|
+
_headers=_headers,
|
|
3132
|
+
_host_index=_host_index
|
|
3133
|
+
)
|
|
3134
|
+
|
|
3135
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3136
|
+
'200': "CustomerWalletBalancesStatus",
|
|
3137
|
+
'400': "ApiError",
|
|
3138
|
+
'401': "ApiError",
|
|
3139
|
+
'403': "ApiError",
|
|
3140
|
+
'500': "ApiError",
|
|
3141
|
+
}
|
|
3142
|
+
response_data = self.api_client.call_api(
|
|
3143
|
+
*_param,
|
|
3144
|
+
_request_timeout=_request_timeout
|
|
3145
|
+
)
|
|
3146
|
+
return response_data.response
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
def _post_customers_by_resource_id_or_reference_wallets_balance_serialize(
|
|
3150
|
+
self,
|
|
3151
|
+
version,
|
|
3152
|
+
resource_id_or_reference,
|
|
3153
|
+
x_platform_id,
|
|
3154
|
+
expand,
|
|
3155
|
+
wallet_balance_status_request_create_request,
|
|
3156
|
+
_request_auth,
|
|
3157
|
+
_content_type,
|
|
3158
|
+
_headers,
|
|
3159
|
+
_host_index,
|
|
3160
|
+
) -> RequestSerialized:
|
|
3161
|
+
|
|
3162
|
+
_host = None
|
|
3163
|
+
|
|
3164
|
+
_collection_formats: Dict[str, str] = {
|
|
3165
|
+
'expand[]': 'multi',
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
_path_params: Dict[str, str] = {}
|
|
3169
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3170
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3171
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3172
|
+
_files: Dict[
|
|
3173
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3174
|
+
] = {}
|
|
3175
|
+
_body_params: Optional[bytes] = None
|
|
3176
|
+
|
|
3177
|
+
# process the path parameters
|
|
3178
|
+
if version is not None:
|
|
3179
|
+
_path_params['version'] = version
|
|
3180
|
+
if resource_id_or_reference is not None:
|
|
3181
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
3182
|
+
# process the query parameters
|
|
3183
|
+
if expand is not None:
|
|
3184
|
+
|
|
3185
|
+
_query_params.append(('expand[]', expand))
|
|
3186
|
+
|
|
3187
|
+
# process the header parameters
|
|
3188
|
+
if x_platform_id is not None:
|
|
3189
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3190
|
+
# process the form parameters
|
|
3191
|
+
# process the body parameter
|
|
3192
|
+
if wallet_balance_status_request_create_request is not None:
|
|
3193
|
+
_body_params = wallet_balance_status_request_create_request
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
# set the HTTP header `Accept`
|
|
3197
|
+
if 'Accept' not in _header_params:
|
|
3198
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3199
|
+
[
|
|
3200
|
+
'application/json',
|
|
3201
|
+
'*/*'
|
|
3202
|
+
]
|
|
3203
|
+
)
|
|
3204
|
+
|
|
3205
|
+
# set the HTTP header `Content-Type`
|
|
3206
|
+
if _content_type:
|
|
3207
|
+
_header_params['Content-Type'] = _content_type
|
|
3208
|
+
else:
|
|
3209
|
+
_default_content_type = (
|
|
3210
|
+
self.api_client.select_header_content_type(
|
|
3211
|
+
[
|
|
3212
|
+
'application/json'
|
|
3213
|
+
]
|
|
3214
|
+
)
|
|
3215
|
+
)
|
|
3216
|
+
if _default_content_type is not None:
|
|
3217
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3218
|
+
|
|
3219
|
+
# authentication setting
|
|
3220
|
+
_auth_settings: List[str] = [
|
|
3221
|
+
'JWT-Authentication',
|
|
3222
|
+
'API-Key'
|
|
3223
|
+
]
|
|
3224
|
+
|
|
3225
|
+
return self.api_client.param_serialize(
|
|
3226
|
+
method='POST',
|
|
3227
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}/wallets/balance',
|
|
3228
|
+
path_params=_path_params,
|
|
3229
|
+
query_params=_query_params,
|
|
3230
|
+
header_params=_header_params,
|
|
3231
|
+
body=_body_params,
|
|
3232
|
+
post_params=_form_params,
|
|
3233
|
+
files=_files,
|
|
3234
|
+
auth_settings=_auth_settings,
|
|
3235
|
+
collection_formats=_collection_formats,
|
|
3236
|
+
_host=_host,
|
|
3237
|
+
_request_auth=_request_auth
|
|
3238
|
+
)
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
@validate_call
|
|
3244
|
+
def post_customers_search(
|
|
3245
|
+
self,
|
|
3246
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3247
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3248
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
3249
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
3250
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
3251
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered. default = name")] = None,
|
|
3252
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The parameter for the response ordering direction (asc, desc) default asc")] = None,
|
|
3253
|
+
search_create_request: Optional[SearchCreateRequest] = None,
|
|
3254
|
+
_request_timeout: Union[
|
|
3255
|
+
None,
|
|
3256
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3257
|
+
Tuple[
|
|
3258
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3259
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3260
|
+
]
|
|
3261
|
+
] = None,
|
|
3262
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3263
|
+
_content_type: Optional[StrictStr] = None,
|
|
3264
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3265
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3266
|
+
) -> CustomerResponseWrapper:
|
|
3267
|
+
"""Search customers
|
|
3268
|
+
|
|
3269
|
+
Requires the CUSTOMER.VIEW permission.
|
|
3270
|
+
|
|
3271
|
+
:param version: version (required)
|
|
3272
|
+
:type version: str
|
|
3273
|
+
:param x_platform_id: Platform ID.
|
|
3274
|
+
:type x_platform_id: str
|
|
3275
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
3276
|
+
:type expand: List[str]
|
|
3277
|
+
:param limit: The amount of records shown in the list
|
|
3278
|
+
:type limit: int
|
|
3279
|
+
:param page: The page which is going to be shown
|
|
3280
|
+
:type page: int
|
|
3281
|
+
:param order_by: The parameter by which the response is ordered. default = name
|
|
3282
|
+
:type order_by: str
|
|
3283
|
+
:param order_direction: The parameter for the response ordering direction (asc, desc) default asc
|
|
3284
|
+
:type order_direction: str
|
|
3285
|
+
:param search_create_request:
|
|
3286
|
+
:type search_create_request: SearchCreateRequest
|
|
3287
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3288
|
+
number provided, it will be total request
|
|
3289
|
+
timeout. It can also be a pair (tuple) of
|
|
3290
|
+
(connection, read) timeouts.
|
|
3291
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3292
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3293
|
+
request; this effectively ignores the
|
|
3294
|
+
authentication in the spec for a single request.
|
|
3295
|
+
:type _request_auth: dict, optional
|
|
3296
|
+
:param _content_type: force content-type for the request.
|
|
3297
|
+
:type _content_type: str, Optional
|
|
3298
|
+
:param _headers: set to override the headers for a single
|
|
3299
|
+
request; this effectively ignores the headers
|
|
3300
|
+
in the spec for a single request.
|
|
3301
|
+
:type _headers: dict, optional
|
|
3302
|
+
:param _host_index: set to override the host_index for a single
|
|
3303
|
+
request; this effectively ignores the host_index
|
|
3304
|
+
in the spec for a single request.
|
|
3305
|
+
:type _host_index: int, optional
|
|
3306
|
+
:return: Returns the result object.
|
|
3307
|
+
""" # noqa: E501
|
|
3308
|
+
|
|
3309
|
+
_param = self._post_customers_search_serialize(
|
|
3310
|
+
version=version,
|
|
3311
|
+
x_platform_id=x_platform_id,
|
|
3312
|
+
expand=expand,
|
|
3313
|
+
limit=limit,
|
|
3314
|
+
page=page,
|
|
3315
|
+
order_by=order_by,
|
|
3316
|
+
order_direction=order_direction,
|
|
3317
|
+
search_create_request=search_create_request,
|
|
3318
|
+
_request_auth=_request_auth,
|
|
3319
|
+
_content_type=_content_type,
|
|
3320
|
+
_headers=_headers,
|
|
3321
|
+
_host_index=_host_index
|
|
3322
|
+
)
|
|
3323
|
+
|
|
3324
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3325
|
+
'200': "CustomerResponseWrapper",
|
|
3326
|
+
'400': "ApiError",
|
|
3327
|
+
'401': "ApiError",
|
|
3328
|
+
'403': "ApiError",
|
|
3329
|
+
'500': "ApiError",
|
|
3330
|
+
}
|
|
3331
|
+
response_data = self.api_client.call_api(
|
|
3332
|
+
*_param,
|
|
3333
|
+
_request_timeout=_request_timeout
|
|
3334
|
+
)
|
|
3335
|
+
response_data.read()
|
|
3336
|
+
return self.api_client.response_deserialize(
|
|
3337
|
+
response_data=response_data,
|
|
3338
|
+
response_types_map=_response_types_map,
|
|
3339
|
+
).data
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
@validate_call
|
|
3343
|
+
def post_customers_search_with_http_info(
|
|
3344
|
+
self,
|
|
3345
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3346
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3347
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
3348
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
3349
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
3350
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered. default = name")] = None,
|
|
3351
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The parameter for the response ordering direction (asc, desc) default asc")] = None,
|
|
3352
|
+
search_create_request: Optional[SearchCreateRequest] = None,
|
|
3353
|
+
_request_timeout: Union[
|
|
3354
|
+
None,
|
|
3355
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3356
|
+
Tuple[
|
|
3357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3358
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3359
|
+
]
|
|
3360
|
+
] = None,
|
|
3361
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3362
|
+
_content_type: Optional[StrictStr] = None,
|
|
3363
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3364
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3365
|
+
) -> ApiResponse[CustomerResponseWrapper]:
|
|
3366
|
+
"""Search customers
|
|
3367
|
+
|
|
3368
|
+
Requires the CUSTOMER.VIEW permission.
|
|
3369
|
+
|
|
3370
|
+
:param version: version (required)
|
|
3371
|
+
:type version: str
|
|
3372
|
+
:param x_platform_id: Platform ID.
|
|
3373
|
+
:type x_platform_id: str
|
|
3374
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
3375
|
+
:type expand: List[str]
|
|
3376
|
+
:param limit: The amount of records shown in the list
|
|
3377
|
+
:type limit: int
|
|
3378
|
+
:param page: The page which is going to be shown
|
|
3379
|
+
:type page: int
|
|
3380
|
+
:param order_by: The parameter by which the response is ordered. default = name
|
|
3381
|
+
:type order_by: str
|
|
3382
|
+
:param order_direction: The parameter for the response ordering direction (asc, desc) default asc
|
|
3383
|
+
:type order_direction: str
|
|
3384
|
+
:param search_create_request:
|
|
3385
|
+
:type search_create_request: SearchCreateRequest
|
|
3386
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3387
|
+
number provided, it will be total request
|
|
3388
|
+
timeout. It can also be a pair (tuple) of
|
|
3389
|
+
(connection, read) timeouts.
|
|
3390
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3391
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3392
|
+
request; this effectively ignores the
|
|
3393
|
+
authentication in the spec for a single request.
|
|
3394
|
+
:type _request_auth: dict, optional
|
|
3395
|
+
:param _content_type: force content-type for the request.
|
|
3396
|
+
:type _content_type: str, Optional
|
|
3397
|
+
:param _headers: set to override the headers for a single
|
|
3398
|
+
request; this effectively ignores the headers
|
|
3399
|
+
in the spec for a single request.
|
|
3400
|
+
:type _headers: dict, optional
|
|
3401
|
+
:param _host_index: set to override the host_index for a single
|
|
3402
|
+
request; this effectively ignores the host_index
|
|
3403
|
+
in the spec for a single request.
|
|
3404
|
+
:type _host_index: int, optional
|
|
3405
|
+
:return: Returns the result object.
|
|
3406
|
+
""" # noqa: E501
|
|
3407
|
+
|
|
3408
|
+
_param = self._post_customers_search_serialize(
|
|
3409
|
+
version=version,
|
|
3410
|
+
x_platform_id=x_platform_id,
|
|
3411
|
+
expand=expand,
|
|
3412
|
+
limit=limit,
|
|
3413
|
+
page=page,
|
|
3414
|
+
order_by=order_by,
|
|
3415
|
+
order_direction=order_direction,
|
|
3416
|
+
search_create_request=search_create_request,
|
|
3417
|
+
_request_auth=_request_auth,
|
|
3418
|
+
_content_type=_content_type,
|
|
3419
|
+
_headers=_headers,
|
|
3420
|
+
_host_index=_host_index
|
|
3421
|
+
)
|
|
3422
|
+
|
|
3423
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3424
|
+
'200': "CustomerResponseWrapper",
|
|
3425
|
+
'400': "ApiError",
|
|
3426
|
+
'401': "ApiError",
|
|
3427
|
+
'403': "ApiError",
|
|
3428
|
+
'500': "ApiError",
|
|
3429
|
+
}
|
|
3430
|
+
response_data = self.api_client.call_api(
|
|
3431
|
+
*_param,
|
|
3432
|
+
_request_timeout=_request_timeout
|
|
3433
|
+
)
|
|
3434
|
+
response_data.read()
|
|
3435
|
+
return self.api_client.response_deserialize(
|
|
3436
|
+
response_data=response_data,
|
|
3437
|
+
response_types_map=_response_types_map,
|
|
3438
|
+
)
|
|
3439
|
+
|
|
3440
|
+
|
|
3441
|
+
@validate_call
|
|
3442
|
+
def post_customers_search_without_preload_content(
|
|
3443
|
+
self,
|
|
3444
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3445
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3446
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
3447
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list")] = None,
|
|
3448
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown")] = None,
|
|
3449
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered. default = name")] = None,
|
|
3450
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The parameter for the response ordering direction (asc, desc) default asc")] = None,
|
|
3451
|
+
search_create_request: Optional[SearchCreateRequest] = None,
|
|
3452
|
+
_request_timeout: Union[
|
|
3453
|
+
None,
|
|
3454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3455
|
+
Tuple[
|
|
3456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3457
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3458
|
+
]
|
|
3459
|
+
] = None,
|
|
3460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3461
|
+
_content_type: Optional[StrictStr] = None,
|
|
3462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3464
|
+
) -> RESTResponseType:
|
|
3465
|
+
"""Search customers
|
|
3466
|
+
|
|
3467
|
+
Requires the CUSTOMER.VIEW permission.
|
|
3468
|
+
|
|
3469
|
+
:param version: version (required)
|
|
3470
|
+
:type version: str
|
|
3471
|
+
:param x_platform_id: Platform ID.
|
|
3472
|
+
:type x_platform_id: str
|
|
3473
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
3474
|
+
:type expand: List[str]
|
|
3475
|
+
:param limit: The amount of records shown in the list
|
|
3476
|
+
:type limit: int
|
|
3477
|
+
:param page: The page which is going to be shown
|
|
3478
|
+
:type page: int
|
|
3479
|
+
:param order_by: The parameter by which the response is ordered. default = name
|
|
3480
|
+
:type order_by: str
|
|
3481
|
+
:param order_direction: The parameter for the response ordering direction (asc, desc) default asc
|
|
3482
|
+
:type order_direction: str
|
|
3483
|
+
:param search_create_request:
|
|
3484
|
+
:type search_create_request: SearchCreateRequest
|
|
3485
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3486
|
+
number provided, it will be total request
|
|
3487
|
+
timeout. It can also be a pair (tuple) of
|
|
3488
|
+
(connection, read) timeouts.
|
|
3489
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3490
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3491
|
+
request; this effectively ignores the
|
|
3492
|
+
authentication in the spec for a single request.
|
|
3493
|
+
:type _request_auth: dict, optional
|
|
3494
|
+
:param _content_type: force content-type for the request.
|
|
3495
|
+
:type _content_type: str, Optional
|
|
3496
|
+
:param _headers: set to override the headers for a single
|
|
3497
|
+
request; this effectively ignores the headers
|
|
3498
|
+
in the spec for a single request.
|
|
3499
|
+
:type _headers: dict, optional
|
|
3500
|
+
:param _host_index: set to override the host_index for a single
|
|
3501
|
+
request; this effectively ignores the host_index
|
|
3502
|
+
in the spec for a single request.
|
|
3503
|
+
:type _host_index: int, optional
|
|
3504
|
+
:return: Returns the result object.
|
|
3505
|
+
""" # noqa: E501
|
|
3506
|
+
|
|
3507
|
+
_param = self._post_customers_search_serialize(
|
|
3508
|
+
version=version,
|
|
3509
|
+
x_platform_id=x_platform_id,
|
|
3510
|
+
expand=expand,
|
|
3511
|
+
limit=limit,
|
|
3512
|
+
page=page,
|
|
3513
|
+
order_by=order_by,
|
|
3514
|
+
order_direction=order_direction,
|
|
3515
|
+
search_create_request=search_create_request,
|
|
3516
|
+
_request_auth=_request_auth,
|
|
3517
|
+
_content_type=_content_type,
|
|
3518
|
+
_headers=_headers,
|
|
3519
|
+
_host_index=_host_index
|
|
3520
|
+
)
|
|
3521
|
+
|
|
3522
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3523
|
+
'200': "CustomerResponseWrapper",
|
|
3524
|
+
'400': "ApiError",
|
|
3525
|
+
'401': "ApiError",
|
|
3526
|
+
'403': "ApiError",
|
|
3527
|
+
'500': "ApiError",
|
|
3528
|
+
}
|
|
3529
|
+
response_data = self.api_client.call_api(
|
|
3530
|
+
*_param,
|
|
3531
|
+
_request_timeout=_request_timeout
|
|
3532
|
+
)
|
|
3533
|
+
return response_data.response
|
|
3534
|
+
|
|
3535
|
+
|
|
3536
|
+
def _post_customers_search_serialize(
|
|
3537
|
+
self,
|
|
3538
|
+
version,
|
|
3539
|
+
x_platform_id,
|
|
3540
|
+
expand,
|
|
3541
|
+
limit,
|
|
3542
|
+
page,
|
|
3543
|
+
order_by,
|
|
3544
|
+
order_direction,
|
|
3545
|
+
search_create_request,
|
|
3546
|
+
_request_auth,
|
|
3547
|
+
_content_type,
|
|
3548
|
+
_headers,
|
|
3549
|
+
_host_index,
|
|
3550
|
+
) -> RequestSerialized:
|
|
3551
|
+
|
|
3552
|
+
_host = None
|
|
3553
|
+
|
|
3554
|
+
_collection_formats: Dict[str, str] = {
|
|
3555
|
+
'expand[]': 'multi',
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
_path_params: Dict[str, str] = {}
|
|
3559
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3560
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3561
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3562
|
+
_files: Dict[
|
|
3563
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3564
|
+
] = {}
|
|
3565
|
+
_body_params: Optional[bytes] = None
|
|
3566
|
+
|
|
3567
|
+
# process the path parameters
|
|
3568
|
+
if version is not None:
|
|
3569
|
+
_path_params['version'] = version
|
|
3570
|
+
# process the query parameters
|
|
3571
|
+
if expand is not None:
|
|
3572
|
+
|
|
3573
|
+
_query_params.append(('expand[]', expand))
|
|
3574
|
+
|
|
3575
|
+
if limit is not None:
|
|
3576
|
+
|
|
3577
|
+
_query_params.append(('limit', limit))
|
|
3578
|
+
|
|
3579
|
+
if page is not None:
|
|
3580
|
+
|
|
3581
|
+
_query_params.append(('page', page))
|
|
3582
|
+
|
|
3583
|
+
if order_by is not None:
|
|
3584
|
+
|
|
3585
|
+
_query_params.append(('order_by', order_by))
|
|
3586
|
+
|
|
3587
|
+
if order_direction is not None:
|
|
3588
|
+
|
|
3589
|
+
_query_params.append(('order_direction', order_direction))
|
|
3590
|
+
|
|
3591
|
+
# process the header parameters
|
|
3592
|
+
if x_platform_id is not None:
|
|
3593
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3594
|
+
# process the form parameters
|
|
3595
|
+
# process the body parameter
|
|
3596
|
+
if search_create_request is not None:
|
|
3597
|
+
_body_params = search_create_request
|
|
3598
|
+
|
|
3599
|
+
|
|
3600
|
+
# set the HTTP header `Accept`
|
|
3601
|
+
if 'Accept' not in _header_params:
|
|
3602
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3603
|
+
[
|
|
3604
|
+
'application/json',
|
|
3605
|
+
'*/*'
|
|
3606
|
+
]
|
|
3607
|
+
)
|
|
3608
|
+
|
|
3609
|
+
# set the HTTP header `Content-Type`
|
|
3610
|
+
if _content_type:
|
|
3611
|
+
_header_params['Content-Type'] = _content_type
|
|
3612
|
+
else:
|
|
3613
|
+
_default_content_type = (
|
|
3614
|
+
self.api_client.select_header_content_type(
|
|
3615
|
+
[
|
|
3616
|
+
'application/json'
|
|
3617
|
+
]
|
|
3618
|
+
)
|
|
3619
|
+
)
|
|
3620
|
+
if _default_content_type is not None:
|
|
3621
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3622
|
+
|
|
3623
|
+
# authentication setting
|
|
3624
|
+
_auth_settings: List[str] = [
|
|
3625
|
+
'JWT-Authentication',
|
|
3626
|
+
'API-Key'
|
|
3627
|
+
]
|
|
3628
|
+
|
|
3629
|
+
return self.api_client.param_serialize(
|
|
3630
|
+
method='POST',
|
|
3631
|
+
resource_path='/v{version}/customers/search',
|
|
3632
|
+
path_params=_path_params,
|
|
3633
|
+
query_params=_query_params,
|
|
3634
|
+
header_params=_header_params,
|
|
3635
|
+
body=_body_params,
|
|
3636
|
+
post_params=_form_params,
|
|
3637
|
+
files=_files,
|
|
3638
|
+
auth_settings=_auth_settings,
|
|
3639
|
+
collection_formats=_collection_formats,
|
|
3640
|
+
_host=_host,
|
|
3641
|
+
_request_auth=_request_auth
|
|
3642
|
+
)
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
|
|
3646
|
+
|
|
3647
|
+
@validate_call
|
|
3648
|
+
def post_customers_validate_tax_id(
|
|
3649
|
+
self,
|
|
3650
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3651
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3652
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
3653
|
+
_request_timeout: Union[
|
|
3654
|
+
None,
|
|
3655
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3656
|
+
Tuple[
|
|
3657
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3658
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3659
|
+
]
|
|
3660
|
+
] = None,
|
|
3661
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3662
|
+
_content_type: Optional[StrictStr] = None,
|
|
3663
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3664
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3665
|
+
) -> TaxIdValidationWrapper:
|
|
3666
|
+
"""Validate tax id values
|
|
3667
|
+
|
|
3668
|
+
Requires the CUSTOMER.CREATE permission.
|
|
3669
|
+
|
|
3670
|
+
:param version: version (required)
|
|
3671
|
+
:type version: str
|
|
3672
|
+
:param x_platform_id: Platform ID.
|
|
3673
|
+
:type x_platform_id: str
|
|
3674
|
+
:param customer_create_request:
|
|
3675
|
+
:type customer_create_request: CustomerCreateRequest
|
|
3676
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3677
|
+
number provided, it will be total request
|
|
3678
|
+
timeout. It can also be a pair (tuple) of
|
|
3679
|
+
(connection, read) timeouts.
|
|
3680
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3681
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3682
|
+
request; this effectively ignores the
|
|
3683
|
+
authentication in the spec for a single request.
|
|
3684
|
+
:type _request_auth: dict, optional
|
|
3685
|
+
:param _content_type: force content-type for the request.
|
|
3686
|
+
:type _content_type: str, Optional
|
|
3687
|
+
:param _headers: set to override the headers for a single
|
|
3688
|
+
request; this effectively ignores the headers
|
|
3689
|
+
in the spec for a single request.
|
|
3690
|
+
:type _headers: dict, optional
|
|
3691
|
+
:param _host_index: set to override the host_index for a single
|
|
3692
|
+
request; this effectively ignores the host_index
|
|
3693
|
+
in the spec for a single request.
|
|
3694
|
+
:type _host_index: int, optional
|
|
3695
|
+
:return: Returns the result object.
|
|
3696
|
+
""" # noqa: E501
|
|
3697
|
+
|
|
3698
|
+
_param = self._post_customers_validate_tax_id_serialize(
|
|
3699
|
+
version=version,
|
|
3700
|
+
x_platform_id=x_platform_id,
|
|
3701
|
+
customer_create_request=customer_create_request,
|
|
3702
|
+
_request_auth=_request_auth,
|
|
3703
|
+
_content_type=_content_type,
|
|
3704
|
+
_headers=_headers,
|
|
3705
|
+
_host_index=_host_index
|
|
3706
|
+
)
|
|
3707
|
+
|
|
3708
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3709
|
+
'200': "TaxIdValidationWrapper",
|
|
3710
|
+
'400': "ApiError",
|
|
3711
|
+
'401': "ApiError",
|
|
3712
|
+
'403': "ApiError",
|
|
3713
|
+
'500': "ApiError",
|
|
3714
|
+
}
|
|
3715
|
+
response_data = self.api_client.call_api(
|
|
3716
|
+
*_param,
|
|
3717
|
+
_request_timeout=_request_timeout
|
|
3718
|
+
)
|
|
3719
|
+
response_data.read()
|
|
3720
|
+
return self.api_client.response_deserialize(
|
|
3721
|
+
response_data=response_data,
|
|
3722
|
+
response_types_map=_response_types_map,
|
|
3723
|
+
).data
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
@validate_call
|
|
3727
|
+
def post_customers_validate_tax_id_with_http_info(
|
|
3728
|
+
self,
|
|
3729
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3730
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3731
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
3732
|
+
_request_timeout: Union[
|
|
3733
|
+
None,
|
|
3734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3735
|
+
Tuple[
|
|
3736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3738
|
+
]
|
|
3739
|
+
] = None,
|
|
3740
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3741
|
+
_content_type: Optional[StrictStr] = None,
|
|
3742
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3743
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3744
|
+
) -> ApiResponse[TaxIdValidationWrapper]:
|
|
3745
|
+
"""Validate tax id values
|
|
3746
|
+
|
|
3747
|
+
Requires the CUSTOMER.CREATE permission.
|
|
3748
|
+
|
|
3749
|
+
:param version: version (required)
|
|
3750
|
+
:type version: str
|
|
3751
|
+
:param x_platform_id: Platform ID.
|
|
3752
|
+
:type x_platform_id: str
|
|
3753
|
+
:param customer_create_request:
|
|
3754
|
+
:type customer_create_request: CustomerCreateRequest
|
|
3755
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3756
|
+
number provided, it will be total request
|
|
3757
|
+
timeout. It can also be a pair (tuple) of
|
|
3758
|
+
(connection, read) timeouts.
|
|
3759
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3760
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3761
|
+
request; this effectively ignores the
|
|
3762
|
+
authentication in the spec for a single request.
|
|
3763
|
+
:type _request_auth: dict, optional
|
|
3764
|
+
:param _content_type: force content-type for the request.
|
|
3765
|
+
:type _content_type: str, Optional
|
|
3766
|
+
:param _headers: set to override the headers for a single
|
|
3767
|
+
request; this effectively ignores the headers
|
|
3768
|
+
in the spec for a single request.
|
|
3769
|
+
:type _headers: dict, optional
|
|
3770
|
+
:param _host_index: set to override the host_index for a single
|
|
3771
|
+
request; this effectively ignores the host_index
|
|
3772
|
+
in the spec for a single request.
|
|
3773
|
+
:type _host_index: int, optional
|
|
3774
|
+
:return: Returns the result object.
|
|
3775
|
+
""" # noqa: E501
|
|
3776
|
+
|
|
3777
|
+
_param = self._post_customers_validate_tax_id_serialize(
|
|
3778
|
+
version=version,
|
|
3779
|
+
x_platform_id=x_platform_id,
|
|
3780
|
+
customer_create_request=customer_create_request,
|
|
3781
|
+
_request_auth=_request_auth,
|
|
3782
|
+
_content_type=_content_type,
|
|
3783
|
+
_headers=_headers,
|
|
3784
|
+
_host_index=_host_index
|
|
3785
|
+
)
|
|
3786
|
+
|
|
3787
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3788
|
+
'200': "TaxIdValidationWrapper",
|
|
3789
|
+
'400': "ApiError",
|
|
3790
|
+
'401': "ApiError",
|
|
3791
|
+
'403': "ApiError",
|
|
3792
|
+
'500': "ApiError",
|
|
3793
|
+
}
|
|
3794
|
+
response_data = self.api_client.call_api(
|
|
3795
|
+
*_param,
|
|
3796
|
+
_request_timeout=_request_timeout
|
|
3797
|
+
)
|
|
3798
|
+
response_data.read()
|
|
3799
|
+
return self.api_client.response_deserialize(
|
|
3800
|
+
response_data=response_data,
|
|
3801
|
+
response_types_map=_response_types_map,
|
|
3802
|
+
)
|
|
3803
|
+
|
|
3804
|
+
|
|
3805
|
+
@validate_call
|
|
3806
|
+
def post_customers_validate_tax_id_without_preload_content(
|
|
3807
|
+
self,
|
|
3808
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3809
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3810
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
3811
|
+
_request_timeout: Union[
|
|
3812
|
+
None,
|
|
3813
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3814
|
+
Tuple[
|
|
3815
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3816
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3817
|
+
]
|
|
3818
|
+
] = None,
|
|
3819
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3820
|
+
_content_type: Optional[StrictStr] = None,
|
|
3821
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3822
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3823
|
+
) -> RESTResponseType:
|
|
3824
|
+
"""Validate tax id values
|
|
3825
|
+
|
|
3826
|
+
Requires the CUSTOMER.CREATE permission.
|
|
3827
|
+
|
|
3828
|
+
:param version: version (required)
|
|
3829
|
+
:type version: str
|
|
3830
|
+
:param x_platform_id: Platform ID.
|
|
3831
|
+
:type x_platform_id: str
|
|
3832
|
+
:param customer_create_request:
|
|
3833
|
+
:type customer_create_request: CustomerCreateRequest
|
|
3834
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3835
|
+
number provided, it will be total request
|
|
3836
|
+
timeout. It can also be a pair (tuple) of
|
|
3837
|
+
(connection, read) timeouts.
|
|
3838
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3839
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3840
|
+
request; this effectively ignores the
|
|
3841
|
+
authentication in the spec for a single request.
|
|
3842
|
+
:type _request_auth: dict, optional
|
|
3843
|
+
:param _content_type: force content-type for the request.
|
|
3844
|
+
:type _content_type: str, Optional
|
|
3845
|
+
:param _headers: set to override the headers for a single
|
|
3846
|
+
request; this effectively ignores the headers
|
|
3847
|
+
in the spec for a single request.
|
|
3848
|
+
:type _headers: dict, optional
|
|
3849
|
+
:param _host_index: set to override the host_index for a single
|
|
3850
|
+
request; this effectively ignores the host_index
|
|
3851
|
+
in the spec for a single request.
|
|
3852
|
+
:type _host_index: int, optional
|
|
3853
|
+
:return: Returns the result object.
|
|
3854
|
+
""" # noqa: E501
|
|
3855
|
+
|
|
3856
|
+
_param = self._post_customers_validate_tax_id_serialize(
|
|
3857
|
+
version=version,
|
|
3858
|
+
x_platform_id=x_platform_id,
|
|
3859
|
+
customer_create_request=customer_create_request,
|
|
3860
|
+
_request_auth=_request_auth,
|
|
3861
|
+
_content_type=_content_type,
|
|
3862
|
+
_headers=_headers,
|
|
3863
|
+
_host_index=_host_index
|
|
3864
|
+
)
|
|
3865
|
+
|
|
3866
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3867
|
+
'200': "TaxIdValidationWrapper",
|
|
3868
|
+
'400': "ApiError",
|
|
3869
|
+
'401': "ApiError",
|
|
3870
|
+
'403': "ApiError",
|
|
3871
|
+
'500': "ApiError",
|
|
3872
|
+
}
|
|
3873
|
+
response_data = self.api_client.call_api(
|
|
3874
|
+
*_param,
|
|
3875
|
+
_request_timeout=_request_timeout
|
|
3876
|
+
)
|
|
3877
|
+
return response_data.response
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
def _post_customers_validate_tax_id_serialize(
|
|
3881
|
+
self,
|
|
3882
|
+
version,
|
|
3883
|
+
x_platform_id,
|
|
3884
|
+
customer_create_request,
|
|
3885
|
+
_request_auth,
|
|
3886
|
+
_content_type,
|
|
3887
|
+
_headers,
|
|
3888
|
+
_host_index,
|
|
3889
|
+
) -> RequestSerialized:
|
|
3890
|
+
|
|
3891
|
+
_host = None
|
|
3892
|
+
|
|
3893
|
+
_collection_formats: Dict[str, str] = {
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
_path_params: Dict[str, str] = {}
|
|
3897
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3898
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3899
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3900
|
+
_files: Dict[
|
|
3901
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3902
|
+
] = {}
|
|
3903
|
+
_body_params: Optional[bytes] = None
|
|
3904
|
+
|
|
3905
|
+
# process the path parameters
|
|
3906
|
+
if version is not None:
|
|
3907
|
+
_path_params['version'] = version
|
|
3908
|
+
# process the query parameters
|
|
3909
|
+
# process the header parameters
|
|
3910
|
+
if x_platform_id is not None:
|
|
3911
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3912
|
+
# process the form parameters
|
|
3913
|
+
# process the body parameter
|
|
3914
|
+
if customer_create_request is not None:
|
|
3915
|
+
_body_params = customer_create_request
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
# set the HTTP header `Accept`
|
|
3919
|
+
if 'Accept' not in _header_params:
|
|
3920
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3921
|
+
[
|
|
3922
|
+
'application/json',
|
|
3923
|
+
'*/*'
|
|
3924
|
+
]
|
|
3925
|
+
)
|
|
3926
|
+
|
|
3927
|
+
# set the HTTP header `Content-Type`
|
|
3928
|
+
if _content_type:
|
|
3929
|
+
_header_params['Content-Type'] = _content_type
|
|
3930
|
+
else:
|
|
3931
|
+
_default_content_type = (
|
|
3932
|
+
self.api_client.select_header_content_type(
|
|
3933
|
+
[
|
|
3934
|
+
'application/json'
|
|
3935
|
+
]
|
|
3936
|
+
)
|
|
3937
|
+
)
|
|
3938
|
+
if _default_content_type is not None:
|
|
3939
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3940
|
+
|
|
3941
|
+
# authentication setting
|
|
3942
|
+
_auth_settings: List[str] = [
|
|
3943
|
+
'JWT-Authentication',
|
|
3944
|
+
'API-Key'
|
|
3945
|
+
]
|
|
3946
|
+
|
|
3947
|
+
return self.api_client.param_serialize(
|
|
3948
|
+
method='POST',
|
|
3949
|
+
resource_path='/v{version}/customers/validate-tax-id',
|
|
3950
|
+
path_params=_path_params,
|
|
3951
|
+
query_params=_query_params,
|
|
3952
|
+
header_params=_header_params,
|
|
3953
|
+
body=_body_params,
|
|
3954
|
+
post_params=_form_params,
|
|
3955
|
+
files=_files,
|
|
3956
|
+
auth_settings=_auth_settings,
|
|
3957
|
+
collection_formats=_collection_formats,
|
|
3958
|
+
_host=_host,
|
|
3959
|
+
_request_auth=_request_auth
|
|
3960
|
+
)
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
@validate_call
|
|
3966
|
+
def update_customers(
|
|
3967
|
+
self,
|
|
3968
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
3969
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
3970
|
+
identifier_field: Annotated[Optional[StrictStr], Field(description="Which field to use to identify whether the resource exists or not")] = None,
|
|
3971
|
+
custom_field_reference: Annotated[Optional[StrictStr], Field(description="Which custom field to use to identify whether the resource exists or not")] = None,
|
|
3972
|
+
field_actions: Annotated[Optional[Dict[str, Dict[str, StrictStr]]], Field(description="The list of actions for specific fields.")] = None,
|
|
3973
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
3974
|
+
_request_timeout: Union[
|
|
3975
|
+
None,
|
|
3976
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3977
|
+
Tuple[
|
|
3978
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3979
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3980
|
+
]
|
|
3981
|
+
] = None,
|
|
3982
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3983
|
+
_content_type: Optional[StrictStr] = None,
|
|
3984
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3985
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3986
|
+
) -> Customer:
|
|
3987
|
+
"""Update or create a customer (upsert)
|
|
3988
|
+
|
|
3989
|
+
Requires the CUSTOMER.CREATE, CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
3990
|
+
|
|
3991
|
+
:param version: version (required)
|
|
3992
|
+
:type version: str
|
|
3993
|
+
:param x_platform_id: Platform ID.
|
|
3994
|
+
:type x_platform_id: str
|
|
3995
|
+
:param identifier_field: Which field to use to identify whether the resource exists or not
|
|
3996
|
+
:type identifier_field: str
|
|
3997
|
+
:param custom_field_reference: Which custom field to use to identify whether the resource exists or not
|
|
3998
|
+
:type custom_field_reference: str
|
|
3999
|
+
:param field_actions: The list of actions for specific fields.
|
|
4000
|
+
:type field_actions: Dict[str, str]
|
|
4001
|
+
:param customer_create_request:
|
|
4002
|
+
:type customer_create_request: CustomerCreateRequest
|
|
4003
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4004
|
+
number provided, it will be total request
|
|
4005
|
+
timeout. It can also be a pair (tuple) of
|
|
4006
|
+
(connection, read) timeouts.
|
|
4007
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4008
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4009
|
+
request; this effectively ignores the
|
|
4010
|
+
authentication in the spec for a single request.
|
|
4011
|
+
:type _request_auth: dict, optional
|
|
4012
|
+
:param _content_type: force content-type for the request.
|
|
4013
|
+
:type _content_type: str, Optional
|
|
4014
|
+
:param _headers: set to override the headers for a single
|
|
4015
|
+
request; this effectively ignores the headers
|
|
4016
|
+
in the spec for a single request.
|
|
4017
|
+
:type _headers: dict, optional
|
|
4018
|
+
:param _host_index: set to override the host_index for a single
|
|
4019
|
+
request; this effectively ignores the host_index
|
|
4020
|
+
in the spec for a single request.
|
|
4021
|
+
:type _host_index: int, optional
|
|
4022
|
+
:return: Returns the result object.
|
|
4023
|
+
""" # noqa: E501
|
|
4024
|
+
|
|
4025
|
+
_param = self._update_customers_serialize(
|
|
4026
|
+
version=version,
|
|
4027
|
+
x_platform_id=x_platform_id,
|
|
4028
|
+
identifier_field=identifier_field,
|
|
4029
|
+
custom_field_reference=custom_field_reference,
|
|
4030
|
+
field_actions=field_actions,
|
|
4031
|
+
customer_create_request=customer_create_request,
|
|
4032
|
+
_request_auth=_request_auth,
|
|
4033
|
+
_content_type=_content_type,
|
|
4034
|
+
_headers=_headers,
|
|
4035
|
+
_host_index=_host_index
|
|
4036
|
+
)
|
|
4037
|
+
|
|
4038
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4039
|
+
'201': "Customer",
|
|
4040
|
+
'400': "ApiError",
|
|
4041
|
+
'401': "ApiError",
|
|
4042
|
+
'403': "ApiError",
|
|
4043
|
+
'404': "ApiError",
|
|
4044
|
+
'500': "ApiError",
|
|
4045
|
+
}
|
|
4046
|
+
response_data = self.api_client.call_api(
|
|
4047
|
+
*_param,
|
|
4048
|
+
_request_timeout=_request_timeout
|
|
4049
|
+
)
|
|
4050
|
+
response_data.read()
|
|
4051
|
+
return self.api_client.response_deserialize(
|
|
4052
|
+
response_data=response_data,
|
|
4053
|
+
response_types_map=_response_types_map,
|
|
4054
|
+
).data
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
@validate_call
|
|
4058
|
+
def update_customers_with_http_info(
|
|
4059
|
+
self,
|
|
4060
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
4061
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
4062
|
+
identifier_field: Annotated[Optional[StrictStr], Field(description="Which field to use to identify whether the resource exists or not")] = None,
|
|
4063
|
+
custom_field_reference: Annotated[Optional[StrictStr], Field(description="Which custom field to use to identify whether the resource exists or not")] = None,
|
|
4064
|
+
field_actions: Annotated[Optional[Dict[str, Dict[str, StrictStr]]], Field(description="The list of actions for specific fields.")] = None,
|
|
4065
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
4066
|
+
_request_timeout: Union[
|
|
4067
|
+
None,
|
|
4068
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4069
|
+
Tuple[
|
|
4070
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4071
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4072
|
+
]
|
|
4073
|
+
] = None,
|
|
4074
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4075
|
+
_content_type: Optional[StrictStr] = None,
|
|
4076
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4077
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4078
|
+
) -> ApiResponse[Customer]:
|
|
4079
|
+
"""Update or create a customer (upsert)
|
|
4080
|
+
|
|
4081
|
+
Requires the CUSTOMER.CREATE, CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
4082
|
+
|
|
4083
|
+
:param version: version (required)
|
|
4084
|
+
:type version: str
|
|
4085
|
+
:param x_platform_id: Platform ID.
|
|
4086
|
+
:type x_platform_id: str
|
|
4087
|
+
:param identifier_field: Which field to use to identify whether the resource exists or not
|
|
4088
|
+
:type identifier_field: str
|
|
4089
|
+
:param custom_field_reference: Which custom field to use to identify whether the resource exists or not
|
|
4090
|
+
:type custom_field_reference: str
|
|
4091
|
+
:param field_actions: The list of actions for specific fields.
|
|
4092
|
+
:type field_actions: Dict[str, str]
|
|
4093
|
+
:param customer_create_request:
|
|
4094
|
+
:type customer_create_request: CustomerCreateRequest
|
|
4095
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4096
|
+
number provided, it will be total request
|
|
4097
|
+
timeout. It can also be a pair (tuple) of
|
|
4098
|
+
(connection, read) timeouts.
|
|
4099
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4100
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4101
|
+
request; this effectively ignores the
|
|
4102
|
+
authentication in the spec for a single request.
|
|
4103
|
+
:type _request_auth: dict, optional
|
|
4104
|
+
:param _content_type: force content-type for the request.
|
|
4105
|
+
:type _content_type: str, Optional
|
|
4106
|
+
:param _headers: set to override the headers for a single
|
|
4107
|
+
request; this effectively ignores the headers
|
|
4108
|
+
in the spec for a single request.
|
|
4109
|
+
:type _headers: dict, optional
|
|
4110
|
+
:param _host_index: set to override the host_index for a single
|
|
4111
|
+
request; this effectively ignores the host_index
|
|
4112
|
+
in the spec for a single request.
|
|
4113
|
+
:type _host_index: int, optional
|
|
4114
|
+
:return: Returns the result object.
|
|
4115
|
+
""" # noqa: E501
|
|
4116
|
+
|
|
4117
|
+
_param = self._update_customers_serialize(
|
|
4118
|
+
version=version,
|
|
4119
|
+
x_platform_id=x_platform_id,
|
|
4120
|
+
identifier_field=identifier_field,
|
|
4121
|
+
custom_field_reference=custom_field_reference,
|
|
4122
|
+
field_actions=field_actions,
|
|
4123
|
+
customer_create_request=customer_create_request,
|
|
4124
|
+
_request_auth=_request_auth,
|
|
4125
|
+
_content_type=_content_type,
|
|
4126
|
+
_headers=_headers,
|
|
4127
|
+
_host_index=_host_index
|
|
4128
|
+
)
|
|
4129
|
+
|
|
4130
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4131
|
+
'201': "Customer",
|
|
4132
|
+
'400': "ApiError",
|
|
4133
|
+
'401': "ApiError",
|
|
4134
|
+
'403': "ApiError",
|
|
4135
|
+
'404': "ApiError",
|
|
4136
|
+
'500': "ApiError",
|
|
4137
|
+
}
|
|
4138
|
+
response_data = self.api_client.call_api(
|
|
4139
|
+
*_param,
|
|
4140
|
+
_request_timeout=_request_timeout
|
|
4141
|
+
)
|
|
4142
|
+
response_data.read()
|
|
4143
|
+
return self.api_client.response_deserialize(
|
|
4144
|
+
response_data=response_data,
|
|
4145
|
+
response_types_map=_response_types_map,
|
|
4146
|
+
)
|
|
4147
|
+
|
|
4148
|
+
|
|
4149
|
+
@validate_call
|
|
4150
|
+
def update_customers_without_preload_content(
|
|
4151
|
+
self,
|
|
4152
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
4153
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
4154
|
+
identifier_field: Annotated[Optional[StrictStr], Field(description="Which field to use to identify whether the resource exists or not")] = None,
|
|
4155
|
+
custom_field_reference: Annotated[Optional[StrictStr], Field(description="Which custom field to use to identify whether the resource exists or not")] = None,
|
|
4156
|
+
field_actions: Annotated[Optional[Dict[str, Dict[str, StrictStr]]], Field(description="The list of actions for specific fields.")] = None,
|
|
4157
|
+
customer_create_request: Optional[CustomerCreateRequest] = None,
|
|
4158
|
+
_request_timeout: Union[
|
|
4159
|
+
None,
|
|
4160
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4161
|
+
Tuple[
|
|
4162
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4163
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4164
|
+
]
|
|
4165
|
+
] = None,
|
|
4166
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4167
|
+
_content_type: Optional[StrictStr] = None,
|
|
4168
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4169
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4170
|
+
) -> RESTResponseType:
|
|
4171
|
+
"""Update or create a customer (upsert)
|
|
4172
|
+
|
|
4173
|
+
Requires the CUSTOMER.CREATE, CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
4174
|
+
|
|
4175
|
+
:param version: version (required)
|
|
4176
|
+
:type version: str
|
|
4177
|
+
:param x_platform_id: Platform ID.
|
|
4178
|
+
:type x_platform_id: str
|
|
4179
|
+
:param identifier_field: Which field to use to identify whether the resource exists or not
|
|
4180
|
+
:type identifier_field: str
|
|
4181
|
+
:param custom_field_reference: Which custom field to use to identify whether the resource exists or not
|
|
4182
|
+
:type custom_field_reference: str
|
|
4183
|
+
:param field_actions: The list of actions for specific fields.
|
|
4184
|
+
:type field_actions: Dict[str, str]
|
|
4185
|
+
:param customer_create_request:
|
|
4186
|
+
:type customer_create_request: CustomerCreateRequest
|
|
4187
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4188
|
+
number provided, it will be total request
|
|
4189
|
+
timeout. It can also be a pair (tuple) of
|
|
4190
|
+
(connection, read) timeouts.
|
|
4191
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4192
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4193
|
+
request; this effectively ignores the
|
|
4194
|
+
authentication in the spec for a single request.
|
|
4195
|
+
:type _request_auth: dict, optional
|
|
4196
|
+
:param _content_type: force content-type for the request.
|
|
4197
|
+
:type _content_type: str, Optional
|
|
4198
|
+
:param _headers: set to override the headers for a single
|
|
4199
|
+
request; this effectively ignores the headers
|
|
4200
|
+
in the spec for a single request.
|
|
4201
|
+
:type _headers: dict, optional
|
|
4202
|
+
:param _host_index: set to override the host_index for a single
|
|
4203
|
+
request; this effectively ignores the host_index
|
|
4204
|
+
in the spec for a single request.
|
|
4205
|
+
:type _host_index: int, optional
|
|
4206
|
+
:return: Returns the result object.
|
|
4207
|
+
""" # noqa: E501
|
|
4208
|
+
|
|
4209
|
+
_param = self._update_customers_serialize(
|
|
4210
|
+
version=version,
|
|
4211
|
+
x_platform_id=x_platform_id,
|
|
4212
|
+
identifier_field=identifier_field,
|
|
4213
|
+
custom_field_reference=custom_field_reference,
|
|
4214
|
+
field_actions=field_actions,
|
|
4215
|
+
customer_create_request=customer_create_request,
|
|
4216
|
+
_request_auth=_request_auth,
|
|
4217
|
+
_content_type=_content_type,
|
|
4218
|
+
_headers=_headers,
|
|
4219
|
+
_host_index=_host_index
|
|
4220
|
+
)
|
|
4221
|
+
|
|
4222
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4223
|
+
'201': "Customer",
|
|
4224
|
+
'400': "ApiError",
|
|
4225
|
+
'401': "ApiError",
|
|
4226
|
+
'403': "ApiError",
|
|
4227
|
+
'404': "ApiError",
|
|
4228
|
+
'500': "ApiError",
|
|
4229
|
+
}
|
|
4230
|
+
response_data = self.api_client.call_api(
|
|
4231
|
+
*_param,
|
|
4232
|
+
_request_timeout=_request_timeout
|
|
4233
|
+
)
|
|
4234
|
+
return response_data.response
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
def _update_customers_serialize(
|
|
4238
|
+
self,
|
|
4239
|
+
version,
|
|
4240
|
+
x_platform_id,
|
|
4241
|
+
identifier_field,
|
|
4242
|
+
custom_field_reference,
|
|
4243
|
+
field_actions,
|
|
4244
|
+
customer_create_request,
|
|
4245
|
+
_request_auth,
|
|
4246
|
+
_content_type,
|
|
4247
|
+
_headers,
|
|
4248
|
+
_host_index,
|
|
4249
|
+
) -> RequestSerialized:
|
|
4250
|
+
|
|
4251
|
+
_host = None
|
|
4252
|
+
|
|
4253
|
+
_collection_formats: Dict[str, str] = {
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4256
|
+
_path_params: Dict[str, str] = {}
|
|
4257
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4258
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4259
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4260
|
+
_files: Dict[
|
|
4261
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4262
|
+
] = {}
|
|
4263
|
+
_body_params: Optional[bytes] = None
|
|
4264
|
+
|
|
4265
|
+
# process the path parameters
|
|
4266
|
+
if version is not None:
|
|
4267
|
+
_path_params['version'] = version
|
|
4268
|
+
# process the query parameters
|
|
4269
|
+
if identifier_field is not None:
|
|
4270
|
+
|
|
4271
|
+
_query_params.append(('identifier_field', identifier_field))
|
|
4272
|
+
|
|
4273
|
+
if custom_field_reference is not None:
|
|
4274
|
+
|
|
4275
|
+
_query_params.append(('custom_field_reference', custom_field_reference))
|
|
4276
|
+
|
|
4277
|
+
if field_actions is not None:
|
|
4278
|
+
|
|
4279
|
+
_query_params.append(('field_actions', field_actions))
|
|
4280
|
+
|
|
4281
|
+
# process the header parameters
|
|
4282
|
+
if x_platform_id is not None:
|
|
4283
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
4284
|
+
# process the form parameters
|
|
4285
|
+
# process the body parameter
|
|
4286
|
+
if customer_create_request is not None:
|
|
4287
|
+
_body_params = customer_create_request
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
# set the HTTP header `Accept`
|
|
4291
|
+
if 'Accept' not in _header_params:
|
|
4292
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4293
|
+
[
|
|
4294
|
+
'application/json',
|
|
4295
|
+
'*/*'
|
|
4296
|
+
]
|
|
4297
|
+
)
|
|
4298
|
+
|
|
4299
|
+
# set the HTTP header `Content-Type`
|
|
4300
|
+
if _content_type:
|
|
4301
|
+
_header_params['Content-Type'] = _content_type
|
|
4302
|
+
else:
|
|
4303
|
+
_default_content_type = (
|
|
4304
|
+
self.api_client.select_header_content_type(
|
|
4305
|
+
[
|
|
4306
|
+
'application/json'
|
|
4307
|
+
]
|
|
4308
|
+
)
|
|
4309
|
+
)
|
|
4310
|
+
if _default_content_type is not None:
|
|
4311
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4312
|
+
|
|
4313
|
+
# authentication setting
|
|
4314
|
+
_auth_settings: List[str] = [
|
|
4315
|
+
'JWT-Authentication',
|
|
4316
|
+
'API-Key'
|
|
4317
|
+
]
|
|
4318
|
+
|
|
4319
|
+
return self.api_client.param_serialize(
|
|
4320
|
+
method='PUT',
|
|
4321
|
+
resource_path='/v{version}/customers',
|
|
4322
|
+
path_params=_path_params,
|
|
4323
|
+
query_params=_query_params,
|
|
4324
|
+
header_params=_header_params,
|
|
4325
|
+
body=_body_params,
|
|
4326
|
+
post_params=_form_params,
|
|
4327
|
+
files=_files,
|
|
4328
|
+
auth_settings=_auth_settings,
|
|
4329
|
+
collection_formats=_collection_formats,
|
|
4330
|
+
_host=_host,
|
|
4331
|
+
_request_auth=_request_auth
|
|
4332
|
+
)
|
|
4333
|
+
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
|
|
4337
|
+
@validate_call
|
|
4338
|
+
def update_customers_by_resource_id_or_reference(
|
|
4339
|
+
self,
|
|
4340
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
4341
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
4342
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
4343
|
+
customer_update_request: Optional[CustomerUpdateRequest] = None,
|
|
4344
|
+
_request_timeout: Union[
|
|
4345
|
+
None,
|
|
4346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4347
|
+
Tuple[
|
|
4348
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4349
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4350
|
+
]
|
|
4351
|
+
] = None,
|
|
4352
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4353
|
+
_content_type: Optional[StrictStr] = None,
|
|
4354
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4355
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4356
|
+
) -> Customer:
|
|
4357
|
+
"""Update a customer by ID or reference
|
|
4358
|
+
|
|
4359
|
+
Requires the CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
4360
|
+
|
|
4361
|
+
:param version: version (required)
|
|
4362
|
+
:type version: str
|
|
4363
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
4364
|
+
:type resource_id_or_reference: str
|
|
4365
|
+
:param x_platform_id: Platform ID.
|
|
4366
|
+
:type x_platform_id: str
|
|
4367
|
+
:param customer_update_request:
|
|
4368
|
+
:type customer_update_request: CustomerUpdateRequest
|
|
4369
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4370
|
+
number provided, it will be total request
|
|
4371
|
+
timeout. It can also be a pair (tuple) of
|
|
4372
|
+
(connection, read) timeouts.
|
|
4373
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4374
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4375
|
+
request; this effectively ignores the
|
|
4376
|
+
authentication in the spec for a single request.
|
|
4377
|
+
:type _request_auth: dict, optional
|
|
4378
|
+
:param _content_type: force content-type for the request.
|
|
4379
|
+
:type _content_type: str, Optional
|
|
4380
|
+
:param _headers: set to override the headers for a single
|
|
4381
|
+
request; this effectively ignores the headers
|
|
4382
|
+
in the spec for a single request.
|
|
4383
|
+
:type _headers: dict, optional
|
|
4384
|
+
:param _host_index: set to override the host_index for a single
|
|
4385
|
+
request; this effectively ignores the host_index
|
|
4386
|
+
in the spec for a single request.
|
|
4387
|
+
:type _host_index: int, optional
|
|
4388
|
+
:return: Returns the result object.
|
|
4389
|
+
""" # noqa: E501
|
|
4390
|
+
|
|
4391
|
+
_param = self._update_customers_by_resource_id_or_reference_serialize(
|
|
4392
|
+
version=version,
|
|
4393
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
4394
|
+
x_platform_id=x_platform_id,
|
|
4395
|
+
customer_update_request=customer_update_request,
|
|
4396
|
+
_request_auth=_request_auth,
|
|
4397
|
+
_content_type=_content_type,
|
|
4398
|
+
_headers=_headers,
|
|
4399
|
+
_host_index=_host_index
|
|
4400
|
+
)
|
|
4401
|
+
|
|
4402
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4403
|
+
'200': "Customer",
|
|
4404
|
+
'400': "ApiError",
|
|
4405
|
+
'401': "ApiError",
|
|
4406
|
+
'403': "ApiError",
|
|
4407
|
+
'500': "ApiError",
|
|
4408
|
+
}
|
|
4409
|
+
response_data = self.api_client.call_api(
|
|
4410
|
+
*_param,
|
|
4411
|
+
_request_timeout=_request_timeout
|
|
4412
|
+
)
|
|
4413
|
+
response_data.read()
|
|
4414
|
+
return self.api_client.response_deserialize(
|
|
4415
|
+
response_data=response_data,
|
|
4416
|
+
response_types_map=_response_types_map,
|
|
4417
|
+
).data
|
|
4418
|
+
|
|
4419
|
+
|
|
4420
|
+
@validate_call
|
|
4421
|
+
def update_customers_by_resource_id_or_reference_with_http_info(
|
|
4422
|
+
self,
|
|
4423
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
4424
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
4425
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
4426
|
+
customer_update_request: Optional[CustomerUpdateRequest] = None,
|
|
4427
|
+
_request_timeout: Union[
|
|
4428
|
+
None,
|
|
4429
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4430
|
+
Tuple[
|
|
4431
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4432
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4433
|
+
]
|
|
4434
|
+
] = None,
|
|
4435
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4436
|
+
_content_type: Optional[StrictStr] = None,
|
|
4437
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4438
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4439
|
+
) -> ApiResponse[Customer]:
|
|
4440
|
+
"""Update a customer by ID or reference
|
|
4441
|
+
|
|
4442
|
+
Requires the CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
4443
|
+
|
|
4444
|
+
:param version: version (required)
|
|
4445
|
+
:type version: str
|
|
4446
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
4447
|
+
:type resource_id_or_reference: str
|
|
4448
|
+
:param x_platform_id: Platform ID.
|
|
4449
|
+
:type x_platform_id: str
|
|
4450
|
+
:param customer_update_request:
|
|
4451
|
+
:type customer_update_request: CustomerUpdateRequest
|
|
4452
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4453
|
+
number provided, it will be total request
|
|
4454
|
+
timeout. It can also be a pair (tuple) of
|
|
4455
|
+
(connection, read) timeouts.
|
|
4456
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4457
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4458
|
+
request; this effectively ignores the
|
|
4459
|
+
authentication in the spec for a single request.
|
|
4460
|
+
:type _request_auth: dict, optional
|
|
4461
|
+
:param _content_type: force content-type for the request.
|
|
4462
|
+
:type _content_type: str, Optional
|
|
4463
|
+
:param _headers: set to override the headers for a single
|
|
4464
|
+
request; this effectively ignores the headers
|
|
4465
|
+
in the spec for a single request.
|
|
4466
|
+
:type _headers: dict, optional
|
|
4467
|
+
:param _host_index: set to override the host_index for a single
|
|
4468
|
+
request; this effectively ignores the host_index
|
|
4469
|
+
in the spec for a single request.
|
|
4470
|
+
:type _host_index: int, optional
|
|
4471
|
+
:return: Returns the result object.
|
|
4472
|
+
""" # noqa: E501
|
|
4473
|
+
|
|
4474
|
+
_param = self._update_customers_by_resource_id_or_reference_serialize(
|
|
4475
|
+
version=version,
|
|
4476
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
4477
|
+
x_platform_id=x_platform_id,
|
|
4478
|
+
customer_update_request=customer_update_request,
|
|
4479
|
+
_request_auth=_request_auth,
|
|
4480
|
+
_content_type=_content_type,
|
|
4481
|
+
_headers=_headers,
|
|
4482
|
+
_host_index=_host_index
|
|
4483
|
+
)
|
|
4484
|
+
|
|
4485
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4486
|
+
'200': "Customer",
|
|
4487
|
+
'400': "ApiError",
|
|
4488
|
+
'401': "ApiError",
|
|
4489
|
+
'403': "ApiError",
|
|
4490
|
+
'500': "ApiError",
|
|
4491
|
+
}
|
|
4492
|
+
response_data = self.api_client.call_api(
|
|
4493
|
+
*_param,
|
|
4494
|
+
_request_timeout=_request_timeout
|
|
4495
|
+
)
|
|
4496
|
+
response_data.read()
|
|
4497
|
+
return self.api_client.response_deserialize(
|
|
4498
|
+
response_data=response_data,
|
|
4499
|
+
response_types_map=_response_types_map,
|
|
4500
|
+
)
|
|
4501
|
+
|
|
4502
|
+
|
|
4503
|
+
@validate_call
|
|
4504
|
+
def update_customers_by_resource_id_or_reference_without_preload_content(
|
|
4505
|
+
self,
|
|
4506
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
4507
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
4508
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
4509
|
+
customer_update_request: Optional[CustomerUpdateRequest] = None,
|
|
4510
|
+
_request_timeout: Union[
|
|
4511
|
+
None,
|
|
4512
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4513
|
+
Tuple[
|
|
4514
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4515
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4516
|
+
]
|
|
4517
|
+
] = None,
|
|
4518
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4519
|
+
_content_type: Optional[StrictStr] = None,
|
|
4520
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4521
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4522
|
+
) -> RESTResponseType:
|
|
4523
|
+
"""Update a customer by ID or reference
|
|
4524
|
+
|
|
4525
|
+
Requires the CUSTOMER.UPDATE or CUSTOMER.STATUS.DRAFT.UPDATE permission.
|
|
4526
|
+
|
|
4527
|
+
:param version: version (required)
|
|
4528
|
+
:type version: str
|
|
4529
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
4530
|
+
:type resource_id_or_reference: str
|
|
4531
|
+
:param x_platform_id: Platform ID.
|
|
4532
|
+
:type x_platform_id: str
|
|
4533
|
+
:param customer_update_request:
|
|
4534
|
+
:type customer_update_request: CustomerUpdateRequest
|
|
4535
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4536
|
+
number provided, it will be total request
|
|
4537
|
+
timeout. It can also be a pair (tuple) of
|
|
4538
|
+
(connection, read) timeouts.
|
|
4539
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4540
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4541
|
+
request; this effectively ignores the
|
|
4542
|
+
authentication in the spec for a single request.
|
|
4543
|
+
:type _request_auth: dict, optional
|
|
4544
|
+
:param _content_type: force content-type for the request.
|
|
4545
|
+
:type _content_type: str, Optional
|
|
4546
|
+
:param _headers: set to override the headers for a single
|
|
4547
|
+
request; this effectively ignores the headers
|
|
4548
|
+
in the spec for a single request.
|
|
4549
|
+
:type _headers: dict, optional
|
|
4550
|
+
:param _host_index: set to override the host_index for a single
|
|
4551
|
+
request; this effectively ignores the host_index
|
|
4552
|
+
in the spec for a single request.
|
|
4553
|
+
:type _host_index: int, optional
|
|
4554
|
+
:return: Returns the result object.
|
|
4555
|
+
""" # noqa: E501
|
|
4556
|
+
|
|
4557
|
+
_param = self._update_customers_by_resource_id_or_reference_serialize(
|
|
4558
|
+
version=version,
|
|
4559
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
4560
|
+
x_platform_id=x_platform_id,
|
|
4561
|
+
customer_update_request=customer_update_request,
|
|
4562
|
+
_request_auth=_request_auth,
|
|
4563
|
+
_content_type=_content_type,
|
|
4564
|
+
_headers=_headers,
|
|
4565
|
+
_host_index=_host_index
|
|
4566
|
+
)
|
|
4567
|
+
|
|
4568
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4569
|
+
'200': "Customer",
|
|
4570
|
+
'400': "ApiError",
|
|
4571
|
+
'401': "ApiError",
|
|
4572
|
+
'403': "ApiError",
|
|
4573
|
+
'500': "ApiError",
|
|
4574
|
+
}
|
|
4575
|
+
response_data = self.api_client.call_api(
|
|
4576
|
+
*_param,
|
|
4577
|
+
_request_timeout=_request_timeout
|
|
4578
|
+
)
|
|
4579
|
+
return response_data.response
|
|
4580
|
+
|
|
4581
|
+
|
|
4582
|
+
def _update_customers_by_resource_id_or_reference_serialize(
|
|
4583
|
+
self,
|
|
4584
|
+
version,
|
|
4585
|
+
resource_id_or_reference,
|
|
4586
|
+
x_platform_id,
|
|
4587
|
+
customer_update_request,
|
|
4588
|
+
_request_auth,
|
|
4589
|
+
_content_type,
|
|
4590
|
+
_headers,
|
|
4591
|
+
_host_index,
|
|
4592
|
+
) -> RequestSerialized:
|
|
4593
|
+
|
|
4594
|
+
_host = None
|
|
4595
|
+
|
|
4596
|
+
_collection_formats: Dict[str, str] = {
|
|
4597
|
+
}
|
|
4598
|
+
|
|
4599
|
+
_path_params: Dict[str, str] = {}
|
|
4600
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4601
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4602
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4603
|
+
_files: Dict[
|
|
4604
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4605
|
+
] = {}
|
|
4606
|
+
_body_params: Optional[bytes] = None
|
|
4607
|
+
|
|
4608
|
+
# process the path parameters
|
|
4609
|
+
if version is not None:
|
|
4610
|
+
_path_params['version'] = version
|
|
4611
|
+
if resource_id_or_reference is not None:
|
|
4612
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
4613
|
+
# process the query parameters
|
|
4614
|
+
# process the header parameters
|
|
4615
|
+
if x_platform_id is not None:
|
|
4616
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
4617
|
+
# process the form parameters
|
|
4618
|
+
# process the body parameter
|
|
4619
|
+
if customer_update_request is not None:
|
|
4620
|
+
_body_params = customer_update_request
|
|
4621
|
+
|
|
4622
|
+
|
|
4623
|
+
# set the HTTP header `Accept`
|
|
4624
|
+
if 'Accept' not in _header_params:
|
|
4625
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4626
|
+
[
|
|
4627
|
+
'application/json',
|
|
4628
|
+
'*/*'
|
|
4629
|
+
]
|
|
4630
|
+
)
|
|
4631
|
+
|
|
4632
|
+
# set the HTTP header `Content-Type`
|
|
4633
|
+
if _content_type:
|
|
4634
|
+
_header_params['Content-Type'] = _content_type
|
|
4635
|
+
else:
|
|
4636
|
+
_default_content_type = (
|
|
4637
|
+
self.api_client.select_header_content_type(
|
|
4638
|
+
[
|
|
4639
|
+
'application/json'
|
|
4640
|
+
]
|
|
4641
|
+
)
|
|
4642
|
+
)
|
|
4643
|
+
if _default_content_type is not None:
|
|
4644
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4645
|
+
|
|
4646
|
+
# authentication setting
|
|
4647
|
+
_auth_settings: List[str] = [
|
|
4648
|
+
'JWT-Authentication',
|
|
4649
|
+
'API-Key'
|
|
4650
|
+
]
|
|
4651
|
+
|
|
4652
|
+
return self.api_client.param_serialize(
|
|
4653
|
+
method='PATCH',
|
|
4654
|
+
resource_path='/v{version}/customers/{resourceIdOrReference}',
|
|
4655
|
+
path_params=_path_params,
|
|
4656
|
+
query_params=_query_params,
|
|
4657
|
+
header_params=_header_params,
|
|
4658
|
+
body=_body_params,
|
|
4659
|
+
post_params=_form_params,
|
|
4660
|
+
files=_files,
|
|
4661
|
+
auth_settings=_auth_settings,
|
|
4662
|
+
collection_formats=_collection_formats,
|
|
4663
|
+
_host=_host,
|
|
4664
|
+
_request_auth=_request_auth
|
|
4665
|
+
)
|
|
4666
|
+
|
|
4667
|
+
|