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,3059 @@
|
|
|
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 List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from solvimon_python_sdk.models.coupon import Coupon
|
|
23
|
+
from solvimon_python_sdk.models.coupon_create_request import CouponCreateRequest
|
|
24
|
+
from solvimon_python_sdk.models.coupon_redemption_response_wrapper import CouponRedemptionResponseWrapper
|
|
25
|
+
from solvimon_python_sdk.models.coupon_response_wrapper import CouponResponseWrapper
|
|
26
|
+
from solvimon_python_sdk.models.coupon_update_request import CouponUpdateRequest
|
|
27
|
+
|
|
28
|
+
from solvimon_python_sdk.api_client import ApiClient, RequestSerialized
|
|
29
|
+
from solvimon_python_sdk.api_response import ApiResponse
|
|
30
|
+
from solvimon_python_sdk.rest import RESTResponseType
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class CouponsApi:
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None) -> None:
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient.get_default()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@validate_call
|
|
47
|
+
def get_coupons(
|
|
48
|
+
self,
|
|
49
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
50
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
51
|
+
statuses: Annotated[Optional[List[StrictStr]], Field(description="Filter by coupon status.")] = None,
|
|
52
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
53
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list.")] = None,
|
|
54
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown.")] = None,
|
|
55
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
56
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
57
|
+
_request_timeout: Union[
|
|
58
|
+
None,
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Tuple[
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
62
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
63
|
+
]
|
|
64
|
+
] = None,
|
|
65
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_content_type: Optional[StrictStr] = None,
|
|
67
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
68
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
69
|
+
) -> CouponResponseWrapper:
|
|
70
|
+
"""Get a list of coupons
|
|
71
|
+
|
|
72
|
+
Requires the COUPON.VIEW permission.
|
|
73
|
+
|
|
74
|
+
:param version: version (required)
|
|
75
|
+
:type version: str
|
|
76
|
+
:param x_platform_id: Platform ID.
|
|
77
|
+
:type x_platform_id: str
|
|
78
|
+
:param statuses: Filter by coupon status.
|
|
79
|
+
:type statuses: List[str]
|
|
80
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
81
|
+
:type expand: List[str]
|
|
82
|
+
:param limit: The amount of records shown in the list.
|
|
83
|
+
:type limit: int
|
|
84
|
+
:param page: The page which is going to be shown.
|
|
85
|
+
:type page: int
|
|
86
|
+
:param order_by: The parameter by which the response is ordered.
|
|
87
|
+
:type order_by: str
|
|
88
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
89
|
+
:type order_direction: str
|
|
90
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
91
|
+
number provided, it will be total request
|
|
92
|
+
timeout. It can also be a pair (tuple) of
|
|
93
|
+
(connection, read) timeouts.
|
|
94
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
95
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
96
|
+
request; this effectively ignores the
|
|
97
|
+
authentication in the spec for a single request.
|
|
98
|
+
:type _request_auth: dict, optional
|
|
99
|
+
:param _content_type: force content-type for the request.
|
|
100
|
+
:type _content_type: str, Optional
|
|
101
|
+
:param _headers: set to override the headers for a single
|
|
102
|
+
request; this effectively ignores the headers
|
|
103
|
+
in the spec for a single request.
|
|
104
|
+
:type _headers: dict, optional
|
|
105
|
+
:param _host_index: set to override the host_index for a single
|
|
106
|
+
request; this effectively ignores the host_index
|
|
107
|
+
in the spec for a single request.
|
|
108
|
+
:type _host_index: int, optional
|
|
109
|
+
:return: Returns the result object.
|
|
110
|
+
""" # noqa: E501
|
|
111
|
+
|
|
112
|
+
_param = self._get_coupons_serialize(
|
|
113
|
+
version=version,
|
|
114
|
+
x_platform_id=x_platform_id,
|
|
115
|
+
statuses=statuses,
|
|
116
|
+
expand=expand,
|
|
117
|
+
limit=limit,
|
|
118
|
+
page=page,
|
|
119
|
+
order_by=order_by,
|
|
120
|
+
order_direction=order_direction,
|
|
121
|
+
_request_auth=_request_auth,
|
|
122
|
+
_content_type=_content_type,
|
|
123
|
+
_headers=_headers,
|
|
124
|
+
_host_index=_host_index
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
128
|
+
'200': "CouponResponseWrapper",
|
|
129
|
+
'400': "ApiError",
|
|
130
|
+
'401': "ApiError",
|
|
131
|
+
'403': "ApiError",
|
|
132
|
+
'500': "ApiError",
|
|
133
|
+
}
|
|
134
|
+
response_data = self.api_client.call_api(
|
|
135
|
+
*_param,
|
|
136
|
+
_request_timeout=_request_timeout
|
|
137
|
+
)
|
|
138
|
+
response_data.read()
|
|
139
|
+
return self.api_client.response_deserialize(
|
|
140
|
+
response_data=response_data,
|
|
141
|
+
response_types_map=_response_types_map,
|
|
142
|
+
).data
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
@validate_call
|
|
146
|
+
def get_coupons_with_http_info(
|
|
147
|
+
self,
|
|
148
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
149
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
150
|
+
statuses: Annotated[Optional[List[StrictStr]], Field(description="Filter by coupon status.")] = None,
|
|
151
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
152
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list.")] = None,
|
|
153
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown.")] = None,
|
|
154
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
155
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
156
|
+
_request_timeout: Union[
|
|
157
|
+
None,
|
|
158
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
159
|
+
Tuple[
|
|
160
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
161
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
162
|
+
]
|
|
163
|
+
] = None,
|
|
164
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
165
|
+
_content_type: Optional[StrictStr] = None,
|
|
166
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
167
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
168
|
+
) -> ApiResponse[CouponResponseWrapper]:
|
|
169
|
+
"""Get a list of coupons
|
|
170
|
+
|
|
171
|
+
Requires the COUPON.VIEW permission.
|
|
172
|
+
|
|
173
|
+
:param version: version (required)
|
|
174
|
+
:type version: str
|
|
175
|
+
:param x_platform_id: Platform ID.
|
|
176
|
+
:type x_platform_id: str
|
|
177
|
+
:param statuses: Filter by coupon status.
|
|
178
|
+
:type statuses: List[str]
|
|
179
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
180
|
+
:type expand: List[str]
|
|
181
|
+
:param limit: The amount of records shown in the list.
|
|
182
|
+
:type limit: int
|
|
183
|
+
:param page: The page which is going to be shown.
|
|
184
|
+
:type page: int
|
|
185
|
+
:param order_by: The parameter by which the response is ordered.
|
|
186
|
+
:type order_by: str
|
|
187
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
188
|
+
:type order_direction: str
|
|
189
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
190
|
+
number provided, it will be total request
|
|
191
|
+
timeout. It can also be a pair (tuple) of
|
|
192
|
+
(connection, read) timeouts.
|
|
193
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
194
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
195
|
+
request; this effectively ignores the
|
|
196
|
+
authentication in the spec for a single request.
|
|
197
|
+
:type _request_auth: dict, optional
|
|
198
|
+
:param _content_type: force content-type for the request.
|
|
199
|
+
:type _content_type: str, Optional
|
|
200
|
+
:param _headers: set to override the headers for a single
|
|
201
|
+
request; this effectively ignores the headers
|
|
202
|
+
in the spec for a single request.
|
|
203
|
+
:type _headers: dict, optional
|
|
204
|
+
:param _host_index: set to override the host_index for a single
|
|
205
|
+
request; this effectively ignores the host_index
|
|
206
|
+
in the spec for a single request.
|
|
207
|
+
:type _host_index: int, optional
|
|
208
|
+
:return: Returns the result object.
|
|
209
|
+
""" # noqa: E501
|
|
210
|
+
|
|
211
|
+
_param = self._get_coupons_serialize(
|
|
212
|
+
version=version,
|
|
213
|
+
x_platform_id=x_platform_id,
|
|
214
|
+
statuses=statuses,
|
|
215
|
+
expand=expand,
|
|
216
|
+
limit=limit,
|
|
217
|
+
page=page,
|
|
218
|
+
order_by=order_by,
|
|
219
|
+
order_direction=order_direction,
|
|
220
|
+
_request_auth=_request_auth,
|
|
221
|
+
_content_type=_content_type,
|
|
222
|
+
_headers=_headers,
|
|
223
|
+
_host_index=_host_index
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
227
|
+
'200': "CouponResponseWrapper",
|
|
228
|
+
'400': "ApiError",
|
|
229
|
+
'401': "ApiError",
|
|
230
|
+
'403': "ApiError",
|
|
231
|
+
'500': "ApiError",
|
|
232
|
+
}
|
|
233
|
+
response_data = self.api_client.call_api(
|
|
234
|
+
*_param,
|
|
235
|
+
_request_timeout=_request_timeout
|
|
236
|
+
)
|
|
237
|
+
response_data.read()
|
|
238
|
+
return self.api_client.response_deserialize(
|
|
239
|
+
response_data=response_data,
|
|
240
|
+
response_types_map=_response_types_map,
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
@validate_call
|
|
245
|
+
def get_coupons_without_preload_content(
|
|
246
|
+
self,
|
|
247
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
248
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
249
|
+
statuses: Annotated[Optional[List[StrictStr]], Field(description="Filter by coupon status.")] = None,
|
|
250
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
251
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list.")] = None,
|
|
252
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown.")] = None,
|
|
253
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
254
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
255
|
+
_request_timeout: Union[
|
|
256
|
+
None,
|
|
257
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
258
|
+
Tuple[
|
|
259
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
260
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
261
|
+
]
|
|
262
|
+
] = None,
|
|
263
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
264
|
+
_content_type: Optional[StrictStr] = None,
|
|
265
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
266
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
267
|
+
) -> RESTResponseType:
|
|
268
|
+
"""Get a list of coupons
|
|
269
|
+
|
|
270
|
+
Requires the COUPON.VIEW permission.
|
|
271
|
+
|
|
272
|
+
:param version: version (required)
|
|
273
|
+
:type version: str
|
|
274
|
+
:param x_platform_id: Platform ID.
|
|
275
|
+
:type x_platform_id: str
|
|
276
|
+
:param statuses: Filter by coupon status.
|
|
277
|
+
:type statuses: List[str]
|
|
278
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
279
|
+
:type expand: List[str]
|
|
280
|
+
:param limit: The amount of records shown in the list.
|
|
281
|
+
:type limit: int
|
|
282
|
+
:param page: The page which is going to be shown.
|
|
283
|
+
:type page: int
|
|
284
|
+
:param order_by: The parameter by which the response is ordered.
|
|
285
|
+
:type order_by: str
|
|
286
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
287
|
+
:type order_direction: str
|
|
288
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
289
|
+
number provided, it will be total request
|
|
290
|
+
timeout. It can also be a pair (tuple) of
|
|
291
|
+
(connection, read) timeouts.
|
|
292
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
293
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
294
|
+
request; this effectively ignores the
|
|
295
|
+
authentication in the spec for a single request.
|
|
296
|
+
:type _request_auth: dict, optional
|
|
297
|
+
:param _content_type: force content-type for the request.
|
|
298
|
+
:type _content_type: str, Optional
|
|
299
|
+
:param _headers: set to override the headers for a single
|
|
300
|
+
request; this effectively ignores the headers
|
|
301
|
+
in the spec for a single request.
|
|
302
|
+
:type _headers: dict, optional
|
|
303
|
+
:param _host_index: set to override the host_index for a single
|
|
304
|
+
request; this effectively ignores the host_index
|
|
305
|
+
in the spec for a single request.
|
|
306
|
+
:type _host_index: int, optional
|
|
307
|
+
:return: Returns the result object.
|
|
308
|
+
""" # noqa: E501
|
|
309
|
+
|
|
310
|
+
_param = self._get_coupons_serialize(
|
|
311
|
+
version=version,
|
|
312
|
+
x_platform_id=x_platform_id,
|
|
313
|
+
statuses=statuses,
|
|
314
|
+
expand=expand,
|
|
315
|
+
limit=limit,
|
|
316
|
+
page=page,
|
|
317
|
+
order_by=order_by,
|
|
318
|
+
order_direction=order_direction,
|
|
319
|
+
_request_auth=_request_auth,
|
|
320
|
+
_content_type=_content_type,
|
|
321
|
+
_headers=_headers,
|
|
322
|
+
_host_index=_host_index
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
326
|
+
'200': "CouponResponseWrapper",
|
|
327
|
+
'400': "ApiError",
|
|
328
|
+
'401': "ApiError",
|
|
329
|
+
'403': "ApiError",
|
|
330
|
+
'500': "ApiError",
|
|
331
|
+
}
|
|
332
|
+
response_data = self.api_client.call_api(
|
|
333
|
+
*_param,
|
|
334
|
+
_request_timeout=_request_timeout
|
|
335
|
+
)
|
|
336
|
+
return response_data.response
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
def _get_coupons_serialize(
|
|
340
|
+
self,
|
|
341
|
+
version,
|
|
342
|
+
x_platform_id,
|
|
343
|
+
statuses,
|
|
344
|
+
expand,
|
|
345
|
+
limit,
|
|
346
|
+
page,
|
|
347
|
+
order_by,
|
|
348
|
+
order_direction,
|
|
349
|
+
_request_auth,
|
|
350
|
+
_content_type,
|
|
351
|
+
_headers,
|
|
352
|
+
_host_index,
|
|
353
|
+
) -> RequestSerialized:
|
|
354
|
+
|
|
355
|
+
_host = None
|
|
356
|
+
|
|
357
|
+
_collection_formats: Dict[str, str] = {
|
|
358
|
+
'statuses[]': 'multi',
|
|
359
|
+
'expand[]': 'multi',
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
_path_params: Dict[str, str] = {}
|
|
363
|
+
_query_params: List[Tuple[str, str]] = []
|
|
364
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
365
|
+
_form_params: List[Tuple[str, str]] = []
|
|
366
|
+
_files: Dict[
|
|
367
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
368
|
+
] = {}
|
|
369
|
+
_body_params: Optional[bytes] = None
|
|
370
|
+
|
|
371
|
+
# process the path parameters
|
|
372
|
+
if version is not None:
|
|
373
|
+
_path_params['version'] = version
|
|
374
|
+
# process the query parameters
|
|
375
|
+
if statuses is not None:
|
|
376
|
+
|
|
377
|
+
_query_params.append(('statuses[]', statuses))
|
|
378
|
+
|
|
379
|
+
if expand is not None:
|
|
380
|
+
|
|
381
|
+
_query_params.append(('expand[]', expand))
|
|
382
|
+
|
|
383
|
+
if limit is not None:
|
|
384
|
+
|
|
385
|
+
_query_params.append(('limit', limit))
|
|
386
|
+
|
|
387
|
+
if page is not None:
|
|
388
|
+
|
|
389
|
+
_query_params.append(('page', page))
|
|
390
|
+
|
|
391
|
+
if order_by is not None:
|
|
392
|
+
|
|
393
|
+
_query_params.append(('order_by', order_by))
|
|
394
|
+
|
|
395
|
+
if order_direction is not None:
|
|
396
|
+
|
|
397
|
+
_query_params.append(('order_direction', order_direction))
|
|
398
|
+
|
|
399
|
+
# process the header parameters
|
|
400
|
+
if x_platform_id is not None:
|
|
401
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
402
|
+
# process the form parameters
|
|
403
|
+
# process the body parameter
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
# set the HTTP header `Accept`
|
|
407
|
+
if 'Accept' not in _header_params:
|
|
408
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
409
|
+
[
|
|
410
|
+
'application/json',
|
|
411
|
+
'*/*'
|
|
412
|
+
]
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
# authentication setting
|
|
417
|
+
_auth_settings: List[str] = [
|
|
418
|
+
'JWT-Authentication',
|
|
419
|
+
'API-Key'
|
|
420
|
+
]
|
|
421
|
+
|
|
422
|
+
return self.api_client.param_serialize(
|
|
423
|
+
method='GET',
|
|
424
|
+
resource_path='/v{version}/coupons',
|
|
425
|
+
path_params=_path_params,
|
|
426
|
+
query_params=_query_params,
|
|
427
|
+
header_params=_header_params,
|
|
428
|
+
body=_body_params,
|
|
429
|
+
post_params=_form_params,
|
|
430
|
+
files=_files,
|
|
431
|
+
auth_settings=_auth_settings,
|
|
432
|
+
collection_formats=_collection_formats,
|
|
433
|
+
_host=_host,
|
|
434
|
+
_request_auth=_request_auth
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
@validate_call
|
|
441
|
+
def get_coupons_by_resource_id_or_reference(
|
|
442
|
+
self,
|
|
443
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
444
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
445
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
446
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
447
|
+
_request_timeout: Union[
|
|
448
|
+
None,
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
450
|
+
Tuple[
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
453
|
+
]
|
|
454
|
+
] = None,
|
|
455
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
456
|
+
_content_type: Optional[StrictStr] = None,
|
|
457
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
458
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
459
|
+
) -> Coupon:
|
|
460
|
+
"""Get a coupon
|
|
461
|
+
|
|
462
|
+
Requires the COUPON.VIEW permission.
|
|
463
|
+
|
|
464
|
+
:param version: version (required)
|
|
465
|
+
:type version: str
|
|
466
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
467
|
+
:type resource_id_or_reference: str
|
|
468
|
+
:param x_platform_id: Platform ID.
|
|
469
|
+
:type x_platform_id: str
|
|
470
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
471
|
+
:type expand: List[str]
|
|
472
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
473
|
+
number provided, it will be total request
|
|
474
|
+
timeout. It can also be a pair (tuple) of
|
|
475
|
+
(connection, read) timeouts.
|
|
476
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
477
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
478
|
+
request; this effectively ignores the
|
|
479
|
+
authentication in the spec for a single request.
|
|
480
|
+
:type _request_auth: dict, optional
|
|
481
|
+
:param _content_type: force content-type for the request.
|
|
482
|
+
:type _content_type: str, Optional
|
|
483
|
+
:param _headers: set to override the headers for a single
|
|
484
|
+
request; this effectively ignores the headers
|
|
485
|
+
in the spec for a single request.
|
|
486
|
+
:type _headers: dict, optional
|
|
487
|
+
:param _host_index: set to override the host_index for a single
|
|
488
|
+
request; this effectively ignores the host_index
|
|
489
|
+
in the spec for a single request.
|
|
490
|
+
:type _host_index: int, optional
|
|
491
|
+
:return: Returns the result object.
|
|
492
|
+
""" # noqa: E501
|
|
493
|
+
|
|
494
|
+
_param = self._get_coupons_by_resource_id_or_reference_serialize(
|
|
495
|
+
version=version,
|
|
496
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
497
|
+
x_platform_id=x_platform_id,
|
|
498
|
+
expand=expand,
|
|
499
|
+
_request_auth=_request_auth,
|
|
500
|
+
_content_type=_content_type,
|
|
501
|
+
_headers=_headers,
|
|
502
|
+
_host_index=_host_index
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
+
'200': "Coupon",
|
|
507
|
+
'400': "ApiError",
|
|
508
|
+
'401': "ApiError",
|
|
509
|
+
'403': "ApiError",
|
|
510
|
+
'500': "ApiError",
|
|
511
|
+
}
|
|
512
|
+
response_data = self.api_client.call_api(
|
|
513
|
+
*_param,
|
|
514
|
+
_request_timeout=_request_timeout
|
|
515
|
+
)
|
|
516
|
+
response_data.read()
|
|
517
|
+
return self.api_client.response_deserialize(
|
|
518
|
+
response_data=response_data,
|
|
519
|
+
response_types_map=_response_types_map,
|
|
520
|
+
).data
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
@validate_call
|
|
524
|
+
def get_coupons_by_resource_id_or_reference_with_http_info(
|
|
525
|
+
self,
|
|
526
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
527
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
528
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
529
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
530
|
+
_request_timeout: Union[
|
|
531
|
+
None,
|
|
532
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
533
|
+
Tuple[
|
|
534
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
535
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
536
|
+
]
|
|
537
|
+
] = None,
|
|
538
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
539
|
+
_content_type: Optional[StrictStr] = None,
|
|
540
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
541
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
542
|
+
) -> ApiResponse[Coupon]:
|
|
543
|
+
"""Get a coupon
|
|
544
|
+
|
|
545
|
+
Requires the COUPON.VIEW permission.
|
|
546
|
+
|
|
547
|
+
:param version: version (required)
|
|
548
|
+
:type version: str
|
|
549
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
550
|
+
:type resource_id_or_reference: str
|
|
551
|
+
:param x_platform_id: Platform ID.
|
|
552
|
+
:type x_platform_id: str
|
|
553
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
554
|
+
:type expand: List[str]
|
|
555
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
556
|
+
number provided, it will be total request
|
|
557
|
+
timeout. It can also be a pair (tuple) of
|
|
558
|
+
(connection, read) timeouts.
|
|
559
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
560
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
561
|
+
request; this effectively ignores the
|
|
562
|
+
authentication in the spec for a single request.
|
|
563
|
+
:type _request_auth: dict, optional
|
|
564
|
+
:param _content_type: force content-type for the request.
|
|
565
|
+
:type _content_type: str, Optional
|
|
566
|
+
:param _headers: set to override the headers for a single
|
|
567
|
+
request; this effectively ignores the headers
|
|
568
|
+
in the spec for a single request.
|
|
569
|
+
:type _headers: dict, optional
|
|
570
|
+
:param _host_index: set to override the host_index for a single
|
|
571
|
+
request; this effectively ignores the host_index
|
|
572
|
+
in the spec for a single request.
|
|
573
|
+
:type _host_index: int, optional
|
|
574
|
+
:return: Returns the result object.
|
|
575
|
+
""" # noqa: E501
|
|
576
|
+
|
|
577
|
+
_param = self._get_coupons_by_resource_id_or_reference_serialize(
|
|
578
|
+
version=version,
|
|
579
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
580
|
+
x_platform_id=x_platform_id,
|
|
581
|
+
expand=expand,
|
|
582
|
+
_request_auth=_request_auth,
|
|
583
|
+
_content_type=_content_type,
|
|
584
|
+
_headers=_headers,
|
|
585
|
+
_host_index=_host_index
|
|
586
|
+
)
|
|
587
|
+
|
|
588
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
589
|
+
'200': "Coupon",
|
|
590
|
+
'400': "ApiError",
|
|
591
|
+
'401': "ApiError",
|
|
592
|
+
'403': "ApiError",
|
|
593
|
+
'500': "ApiError",
|
|
594
|
+
}
|
|
595
|
+
response_data = self.api_client.call_api(
|
|
596
|
+
*_param,
|
|
597
|
+
_request_timeout=_request_timeout
|
|
598
|
+
)
|
|
599
|
+
response_data.read()
|
|
600
|
+
return self.api_client.response_deserialize(
|
|
601
|
+
response_data=response_data,
|
|
602
|
+
response_types_map=_response_types_map,
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
@validate_call
|
|
607
|
+
def get_coupons_by_resource_id_or_reference_without_preload_content(
|
|
608
|
+
self,
|
|
609
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
610
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
611
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
612
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
613
|
+
_request_timeout: Union[
|
|
614
|
+
None,
|
|
615
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
616
|
+
Tuple[
|
|
617
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
618
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
619
|
+
]
|
|
620
|
+
] = None,
|
|
621
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
622
|
+
_content_type: Optional[StrictStr] = None,
|
|
623
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
624
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
625
|
+
) -> RESTResponseType:
|
|
626
|
+
"""Get a coupon
|
|
627
|
+
|
|
628
|
+
Requires the COUPON.VIEW permission.
|
|
629
|
+
|
|
630
|
+
:param version: version (required)
|
|
631
|
+
:type version: str
|
|
632
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
633
|
+
:type resource_id_or_reference: str
|
|
634
|
+
:param x_platform_id: Platform ID.
|
|
635
|
+
:type x_platform_id: str
|
|
636
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
637
|
+
:type expand: List[str]
|
|
638
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
639
|
+
number provided, it will be total request
|
|
640
|
+
timeout. It can also be a pair (tuple) of
|
|
641
|
+
(connection, read) timeouts.
|
|
642
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
643
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
644
|
+
request; this effectively ignores the
|
|
645
|
+
authentication in the spec for a single request.
|
|
646
|
+
:type _request_auth: dict, optional
|
|
647
|
+
:param _content_type: force content-type for the request.
|
|
648
|
+
:type _content_type: str, Optional
|
|
649
|
+
:param _headers: set to override the headers for a single
|
|
650
|
+
request; this effectively ignores the headers
|
|
651
|
+
in the spec for a single request.
|
|
652
|
+
:type _headers: dict, optional
|
|
653
|
+
:param _host_index: set to override the host_index for a single
|
|
654
|
+
request; this effectively ignores the host_index
|
|
655
|
+
in the spec for a single request.
|
|
656
|
+
:type _host_index: int, optional
|
|
657
|
+
:return: Returns the result object.
|
|
658
|
+
""" # noqa: E501
|
|
659
|
+
|
|
660
|
+
_param = self._get_coupons_by_resource_id_or_reference_serialize(
|
|
661
|
+
version=version,
|
|
662
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
663
|
+
x_platform_id=x_platform_id,
|
|
664
|
+
expand=expand,
|
|
665
|
+
_request_auth=_request_auth,
|
|
666
|
+
_content_type=_content_type,
|
|
667
|
+
_headers=_headers,
|
|
668
|
+
_host_index=_host_index
|
|
669
|
+
)
|
|
670
|
+
|
|
671
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
672
|
+
'200': "Coupon",
|
|
673
|
+
'400': "ApiError",
|
|
674
|
+
'401': "ApiError",
|
|
675
|
+
'403': "ApiError",
|
|
676
|
+
'500': "ApiError",
|
|
677
|
+
}
|
|
678
|
+
response_data = self.api_client.call_api(
|
|
679
|
+
*_param,
|
|
680
|
+
_request_timeout=_request_timeout
|
|
681
|
+
)
|
|
682
|
+
return response_data.response
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
def _get_coupons_by_resource_id_or_reference_serialize(
|
|
686
|
+
self,
|
|
687
|
+
version,
|
|
688
|
+
resource_id_or_reference,
|
|
689
|
+
x_platform_id,
|
|
690
|
+
expand,
|
|
691
|
+
_request_auth,
|
|
692
|
+
_content_type,
|
|
693
|
+
_headers,
|
|
694
|
+
_host_index,
|
|
695
|
+
) -> RequestSerialized:
|
|
696
|
+
|
|
697
|
+
_host = None
|
|
698
|
+
|
|
699
|
+
_collection_formats: Dict[str, str] = {
|
|
700
|
+
'expand[]': 'multi',
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
_path_params: Dict[str, str] = {}
|
|
704
|
+
_query_params: List[Tuple[str, str]] = []
|
|
705
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
706
|
+
_form_params: List[Tuple[str, str]] = []
|
|
707
|
+
_files: Dict[
|
|
708
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
709
|
+
] = {}
|
|
710
|
+
_body_params: Optional[bytes] = None
|
|
711
|
+
|
|
712
|
+
# process the path parameters
|
|
713
|
+
if version is not None:
|
|
714
|
+
_path_params['version'] = version
|
|
715
|
+
if resource_id_or_reference is not None:
|
|
716
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
717
|
+
# process the query parameters
|
|
718
|
+
if expand is not None:
|
|
719
|
+
|
|
720
|
+
_query_params.append(('expand[]', expand))
|
|
721
|
+
|
|
722
|
+
# process the header parameters
|
|
723
|
+
if x_platform_id is not None:
|
|
724
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
725
|
+
# process the form parameters
|
|
726
|
+
# process the body parameter
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
# set the HTTP header `Accept`
|
|
730
|
+
if 'Accept' not in _header_params:
|
|
731
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
732
|
+
[
|
|
733
|
+
'application/json',
|
|
734
|
+
'*/*'
|
|
735
|
+
]
|
|
736
|
+
)
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
# authentication setting
|
|
740
|
+
_auth_settings: List[str] = [
|
|
741
|
+
'JWT-Authentication',
|
|
742
|
+
'API-Key'
|
|
743
|
+
]
|
|
744
|
+
|
|
745
|
+
return self.api_client.param_serialize(
|
|
746
|
+
method='GET',
|
|
747
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}',
|
|
748
|
+
path_params=_path_params,
|
|
749
|
+
query_params=_query_params,
|
|
750
|
+
header_params=_header_params,
|
|
751
|
+
body=_body_params,
|
|
752
|
+
post_params=_form_params,
|
|
753
|
+
files=_files,
|
|
754
|
+
auth_settings=_auth_settings,
|
|
755
|
+
collection_formats=_collection_formats,
|
|
756
|
+
_host=_host,
|
|
757
|
+
_request_auth=_request_auth
|
|
758
|
+
)
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
@validate_call
|
|
764
|
+
def get_coupons_by_resource_id_or_reference_redemptions(
|
|
765
|
+
self,
|
|
766
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
767
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
768
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
769
|
+
customer_id: Annotated[Optional[StrictStr], Field(description="Filter by customer id.")] = None,
|
|
770
|
+
pricing_plan_subscription_id: Annotated[Optional[StrictStr], Field(description="Filter by pricing plan subscription id.")] = None,
|
|
771
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list.")] = None,
|
|
772
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown.")] = None,
|
|
773
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
774
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
775
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
776
|
+
_request_timeout: Union[
|
|
777
|
+
None,
|
|
778
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
779
|
+
Tuple[
|
|
780
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
781
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
782
|
+
]
|
|
783
|
+
] = None,
|
|
784
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
785
|
+
_content_type: Optional[StrictStr] = None,
|
|
786
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
787
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
788
|
+
) -> CouponRedemptionResponseWrapper:
|
|
789
|
+
"""Get a list of coupon redemptions
|
|
790
|
+
|
|
791
|
+
Requires the COUPON.VIEW permission.
|
|
792
|
+
|
|
793
|
+
:param version: version (required)
|
|
794
|
+
:type version: str
|
|
795
|
+
:param resource_id_or_reference: The ID of the resource to be requested. (required)
|
|
796
|
+
:type resource_id_or_reference: str
|
|
797
|
+
:param x_platform_id: Platform ID.
|
|
798
|
+
:type x_platform_id: str
|
|
799
|
+
:param customer_id: Filter by customer id.
|
|
800
|
+
:type customer_id: str
|
|
801
|
+
:param pricing_plan_subscription_id: Filter by pricing plan subscription id.
|
|
802
|
+
:type pricing_plan_subscription_id: str
|
|
803
|
+
:param limit: The amount of records shown in the list.
|
|
804
|
+
:type limit: int
|
|
805
|
+
:param page: The page which is going to be shown.
|
|
806
|
+
:type page: int
|
|
807
|
+
:param order_by: The parameter by which the response is ordered.
|
|
808
|
+
:type order_by: str
|
|
809
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
810
|
+
:type order_direction: str
|
|
811
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
812
|
+
:type expand: List[str]
|
|
813
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
814
|
+
number provided, it will be total request
|
|
815
|
+
timeout. It can also be a pair (tuple) of
|
|
816
|
+
(connection, read) timeouts.
|
|
817
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
818
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
819
|
+
request; this effectively ignores the
|
|
820
|
+
authentication in the spec for a single request.
|
|
821
|
+
:type _request_auth: dict, optional
|
|
822
|
+
:param _content_type: force content-type for the request.
|
|
823
|
+
:type _content_type: str, Optional
|
|
824
|
+
:param _headers: set to override the headers for a single
|
|
825
|
+
request; this effectively ignores the headers
|
|
826
|
+
in the spec for a single request.
|
|
827
|
+
:type _headers: dict, optional
|
|
828
|
+
:param _host_index: set to override the host_index for a single
|
|
829
|
+
request; this effectively ignores the host_index
|
|
830
|
+
in the spec for a single request.
|
|
831
|
+
:type _host_index: int, optional
|
|
832
|
+
:return: Returns the result object.
|
|
833
|
+
""" # noqa: E501
|
|
834
|
+
|
|
835
|
+
_param = self._get_coupons_by_resource_id_or_reference_redemptions_serialize(
|
|
836
|
+
version=version,
|
|
837
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
838
|
+
x_platform_id=x_platform_id,
|
|
839
|
+
customer_id=customer_id,
|
|
840
|
+
pricing_plan_subscription_id=pricing_plan_subscription_id,
|
|
841
|
+
limit=limit,
|
|
842
|
+
page=page,
|
|
843
|
+
order_by=order_by,
|
|
844
|
+
order_direction=order_direction,
|
|
845
|
+
expand=expand,
|
|
846
|
+
_request_auth=_request_auth,
|
|
847
|
+
_content_type=_content_type,
|
|
848
|
+
_headers=_headers,
|
|
849
|
+
_host_index=_host_index
|
|
850
|
+
)
|
|
851
|
+
|
|
852
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
853
|
+
'200': "CouponRedemptionResponseWrapper",
|
|
854
|
+
'400': "ApiError",
|
|
855
|
+
'401': "ApiError",
|
|
856
|
+
'403': "ApiError",
|
|
857
|
+
'500': "ApiError",
|
|
858
|
+
}
|
|
859
|
+
response_data = self.api_client.call_api(
|
|
860
|
+
*_param,
|
|
861
|
+
_request_timeout=_request_timeout
|
|
862
|
+
)
|
|
863
|
+
response_data.read()
|
|
864
|
+
return self.api_client.response_deserialize(
|
|
865
|
+
response_data=response_data,
|
|
866
|
+
response_types_map=_response_types_map,
|
|
867
|
+
).data
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
@validate_call
|
|
871
|
+
def get_coupons_by_resource_id_or_reference_redemptions_with_http_info(
|
|
872
|
+
self,
|
|
873
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
874
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
875
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
876
|
+
customer_id: Annotated[Optional[StrictStr], Field(description="Filter by customer id.")] = None,
|
|
877
|
+
pricing_plan_subscription_id: Annotated[Optional[StrictStr], Field(description="Filter by pricing plan subscription id.")] = None,
|
|
878
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list.")] = None,
|
|
879
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown.")] = None,
|
|
880
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
881
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
882
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
883
|
+
_request_timeout: Union[
|
|
884
|
+
None,
|
|
885
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
886
|
+
Tuple[
|
|
887
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
888
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
889
|
+
]
|
|
890
|
+
] = None,
|
|
891
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
892
|
+
_content_type: Optional[StrictStr] = None,
|
|
893
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
894
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
895
|
+
) -> ApiResponse[CouponRedemptionResponseWrapper]:
|
|
896
|
+
"""Get a list of coupon redemptions
|
|
897
|
+
|
|
898
|
+
Requires the COUPON.VIEW permission.
|
|
899
|
+
|
|
900
|
+
:param version: version (required)
|
|
901
|
+
:type version: str
|
|
902
|
+
:param resource_id_or_reference: The ID of the resource to be requested. (required)
|
|
903
|
+
:type resource_id_or_reference: str
|
|
904
|
+
:param x_platform_id: Platform ID.
|
|
905
|
+
:type x_platform_id: str
|
|
906
|
+
:param customer_id: Filter by customer id.
|
|
907
|
+
:type customer_id: str
|
|
908
|
+
:param pricing_plan_subscription_id: Filter by pricing plan subscription id.
|
|
909
|
+
:type pricing_plan_subscription_id: str
|
|
910
|
+
:param limit: The amount of records shown in the list.
|
|
911
|
+
:type limit: int
|
|
912
|
+
:param page: The page which is going to be shown.
|
|
913
|
+
:type page: int
|
|
914
|
+
:param order_by: The parameter by which the response is ordered.
|
|
915
|
+
:type order_by: str
|
|
916
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
917
|
+
:type order_direction: str
|
|
918
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
919
|
+
:type expand: List[str]
|
|
920
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
921
|
+
number provided, it will be total request
|
|
922
|
+
timeout. It can also be a pair (tuple) of
|
|
923
|
+
(connection, read) timeouts.
|
|
924
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
925
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
926
|
+
request; this effectively ignores the
|
|
927
|
+
authentication in the spec for a single request.
|
|
928
|
+
:type _request_auth: dict, optional
|
|
929
|
+
:param _content_type: force content-type for the request.
|
|
930
|
+
:type _content_type: str, Optional
|
|
931
|
+
:param _headers: set to override the headers for a single
|
|
932
|
+
request; this effectively ignores the headers
|
|
933
|
+
in the spec for a single request.
|
|
934
|
+
:type _headers: dict, optional
|
|
935
|
+
:param _host_index: set to override the host_index for a single
|
|
936
|
+
request; this effectively ignores the host_index
|
|
937
|
+
in the spec for a single request.
|
|
938
|
+
:type _host_index: int, optional
|
|
939
|
+
:return: Returns the result object.
|
|
940
|
+
""" # noqa: E501
|
|
941
|
+
|
|
942
|
+
_param = self._get_coupons_by_resource_id_or_reference_redemptions_serialize(
|
|
943
|
+
version=version,
|
|
944
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
945
|
+
x_platform_id=x_platform_id,
|
|
946
|
+
customer_id=customer_id,
|
|
947
|
+
pricing_plan_subscription_id=pricing_plan_subscription_id,
|
|
948
|
+
limit=limit,
|
|
949
|
+
page=page,
|
|
950
|
+
order_by=order_by,
|
|
951
|
+
order_direction=order_direction,
|
|
952
|
+
expand=expand,
|
|
953
|
+
_request_auth=_request_auth,
|
|
954
|
+
_content_type=_content_type,
|
|
955
|
+
_headers=_headers,
|
|
956
|
+
_host_index=_host_index
|
|
957
|
+
)
|
|
958
|
+
|
|
959
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
960
|
+
'200': "CouponRedemptionResponseWrapper",
|
|
961
|
+
'400': "ApiError",
|
|
962
|
+
'401': "ApiError",
|
|
963
|
+
'403': "ApiError",
|
|
964
|
+
'500': "ApiError",
|
|
965
|
+
}
|
|
966
|
+
response_data = self.api_client.call_api(
|
|
967
|
+
*_param,
|
|
968
|
+
_request_timeout=_request_timeout
|
|
969
|
+
)
|
|
970
|
+
response_data.read()
|
|
971
|
+
return self.api_client.response_deserialize(
|
|
972
|
+
response_data=response_data,
|
|
973
|
+
response_types_map=_response_types_map,
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
@validate_call
|
|
978
|
+
def get_coupons_by_resource_id_or_reference_redemptions_without_preload_content(
|
|
979
|
+
self,
|
|
980
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
981
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID of the resource to be requested.")],
|
|
982
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
983
|
+
customer_id: Annotated[Optional[StrictStr], Field(description="Filter by customer id.")] = None,
|
|
984
|
+
pricing_plan_subscription_id: Annotated[Optional[StrictStr], Field(description="Filter by pricing plan subscription id.")] = None,
|
|
985
|
+
limit: Annotated[Optional[StrictInt], Field(description="The amount of records shown in the list.")] = None,
|
|
986
|
+
page: Annotated[Optional[StrictInt], Field(description="The page which is going to be shown.")] = None,
|
|
987
|
+
order_by: Annotated[Optional[StrictStr], Field(description="The parameter by which the response is ordered.")] = None,
|
|
988
|
+
order_direction: Annotated[Optional[StrictStr], Field(description="The order direction by which the response is ordered.")] = None,
|
|
989
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The id fields of the resources that are going to be expanded.")] = None,
|
|
990
|
+
_request_timeout: Union[
|
|
991
|
+
None,
|
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
993
|
+
Tuple[
|
|
994
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
995
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
996
|
+
]
|
|
997
|
+
] = None,
|
|
998
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
999
|
+
_content_type: Optional[StrictStr] = None,
|
|
1000
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1001
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1002
|
+
) -> RESTResponseType:
|
|
1003
|
+
"""Get a list of coupon redemptions
|
|
1004
|
+
|
|
1005
|
+
Requires the COUPON.VIEW permission.
|
|
1006
|
+
|
|
1007
|
+
:param version: version (required)
|
|
1008
|
+
:type version: str
|
|
1009
|
+
:param resource_id_or_reference: The ID of the resource to be requested. (required)
|
|
1010
|
+
:type resource_id_or_reference: str
|
|
1011
|
+
:param x_platform_id: Platform ID.
|
|
1012
|
+
:type x_platform_id: str
|
|
1013
|
+
:param customer_id: Filter by customer id.
|
|
1014
|
+
:type customer_id: str
|
|
1015
|
+
:param pricing_plan_subscription_id: Filter by pricing plan subscription id.
|
|
1016
|
+
:type pricing_plan_subscription_id: str
|
|
1017
|
+
:param limit: The amount of records shown in the list.
|
|
1018
|
+
:type limit: int
|
|
1019
|
+
:param page: The page which is going to be shown.
|
|
1020
|
+
:type page: int
|
|
1021
|
+
:param order_by: The parameter by which the response is ordered.
|
|
1022
|
+
:type order_by: str
|
|
1023
|
+
:param order_direction: The order direction by which the response is ordered.
|
|
1024
|
+
:type order_direction: str
|
|
1025
|
+
:param expand: The id fields of the resources that are going to be expanded.
|
|
1026
|
+
:type expand: List[str]
|
|
1027
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1028
|
+
number provided, it will be total request
|
|
1029
|
+
timeout. It can also be a pair (tuple) of
|
|
1030
|
+
(connection, read) timeouts.
|
|
1031
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1032
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1033
|
+
request; this effectively ignores the
|
|
1034
|
+
authentication in the spec for a single request.
|
|
1035
|
+
:type _request_auth: dict, optional
|
|
1036
|
+
:param _content_type: force content-type for the request.
|
|
1037
|
+
:type _content_type: str, Optional
|
|
1038
|
+
:param _headers: set to override the headers for a single
|
|
1039
|
+
request; this effectively ignores the headers
|
|
1040
|
+
in the spec for a single request.
|
|
1041
|
+
:type _headers: dict, optional
|
|
1042
|
+
:param _host_index: set to override the host_index for a single
|
|
1043
|
+
request; this effectively ignores the host_index
|
|
1044
|
+
in the spec for a single request.
|
|
1045
|
+
:type _host_index: int, optional
|
|
1046
|
+
:return: Returns the result object.
|
|
1047
|
+
""" # noqa: E501
|
|
1048
|
+
|
|
1049
|
+
_param = self._get_coupons_by_resource_id_or_reference_redemptions_serialize(
|
|
1050
|
+
version=version,
|
|
1051
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1052
|
+
x_platform_id=x_platform_id,
|
|
1053
|
+
customer_id=customer_id,
|
|
1054
|
+
pricing_plan_subscription_id=pricing_plan_subscription_id,
|
|
1055
|
+
limit=limit,
|
|
1056
|
+
page=page,
|
|
1057
|
+
order_by=order_by,
|
|
1058
|
+
order_direction=order_direction,
|
|
1059
|
+
expand=expand,
|
|
1060
|
+
_request_auth=_request_auth,
|
|
1061
|
+
_content_type=_content_type,
|
|
1062
|
+
_headers=_headers,
|
|
1063
|
+
_host_index=_host_index
|
|
1064
|
+
)
|
|
1065
|
+
|
|
1066
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1067
|
+
'200': "CouponRedemptionResponseWrapper",
|
|
1068
|
+
'400': "ApiError",
|
|
1069
|
+
'401': "ApiError",
|
|
1070
|
+
'403': "ApiError",
|
|
1071
|
+
'500': "ApiError",
|
|
1072
|
+
}
|
|
1073
|
+
response_data = self.api_client.call_api(
|
|
1074
|
+
*_param,
|
|
1075
|
+
_request_timeout=_request_timeout
|
|
1076
|
+
)
|
|
1077
|
+
return response_data.response
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
def _get_coupons_by_resource_id_or_reference_redemptions_serialize(
|
|
1081
|
+
self,
|
|
1082
|
+
version,
|
|
1083
|
+
resource_id_or_reference,
|
|
1084
|
+
x_platform_id,
|
|
1085
|
+
customer_id,
|
|
1086
|
+
pricing_plan_subscription_id,
|
|
1087
|
+
limit,
|
|
1088
|
+
page,
|
|
1089
|
+
order_by,
|
|
1090
|
+
order_direction,
|
|
1091
|
+
expand,
|
|
1092
|
+
_request_auth,
|
|
1093
|
+
_content_type,
|
|
1094
|
+
_headers,
|
|
1095
|
+
_host_index,
|
|
1096
|
+
) -> RequestSerialized:
|
|
1097
|
+
|
|
1098
|
+
_host = None
|
|
1099
|
+
|
|
1100
|
+
_collection_formats: Dict[str, str] = {
|
|
1101
|
+
'expand[]': 'multi',
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
_path_params: Dict[str, str] = {}
|
|
1105
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1106
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1107
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1108
|
+
_files: Dict[
|
|
1109
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1110
|
+
] = {}
|
|
1111
|
+
_body_params: Optional[bytes] = None
|
|
1112
|
+
|
|
1113
|
+
# process the path parameters
|
|
1114
|
+
if version is not None:
|
|
1115
|
+
_path_params['version'] = version
|
|
1116
|
+
if resource_id_or_reference is not None:
|
|
1117
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
1118
|
+
# process the query parameters
|
|
1119
|
+
if customer_id is not None:
|
|
1120
|
+
|
|
1121
|
+
_query_params.append(('customer_id', customer_id))
|
|
1122
|
+
|
|
1123
|
+
if pricing_plan_subscription_id is not None:
|
|
1124
|
+
|
|
1125
|
+
_query_params.append(('pricing_plan_subscription_id', pricing_plan_subscription_id))
|
|
1126
|
+
|
|
1127
|
+
if limit is not None:
|
|
1128
|
+
|
|
1129
|
+
_query_params.append(('limit', limit))
|
|
1130
|
+
|
|
1131
|
+
if page is not None:
|
|
1132
|
+
|
|
1133
|
+
_query_params.append(('page', page))
|
|
1134
|
+
|
|
1135
|
+
if order_by is not None:
|
|
1136
|
+
|
|
1137
|
+
_query_params.append(('order_by', order_by))
|
|
1138
|
+
|
|
1139
|
+
if order_direction is not None:
|
|
1140
|
+
|
|
1141
|
+
_query_params.append(('order_direction', order_direction))
|
|
1142
|
+
|
|
1143
|
+
if expand is not None:
|
|
1144
|
+
|
|
1145
|
+
_query_params.append(('expand[]', expand))
|
|
1146
|
+
|
|
1147
|
+
# process the header parameters
|
|
1148
|
+
if x_platform_id is not None:
|
|
1149
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1150
|
+
# process the form parameters
|
|
1151
|
+
# process the body parameter
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
# set the HTTP header `Accept`
|
|
1155
|
+
if 'Accept' not in _header_params:
|
|
1156
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1157
|
+
[
|
|
1158
|
+
'application/json',
|
|
1159
|
+
'*/*'
|
|
1160
|
+
]
|
|
1161
|
+
)
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
# authentication setting
|
|
1165
|
+
_auth_settings: List[str] = [
|
|
1166
|
+
'JWT-Authentication',
|
|
1167
|
+
'API-Key'
|
|
1168
|
+
]
|
|
1169
|
+
|
|
1170
|
+
return self.api_client.param_serialize(
|
|
1171
|
+
method='GET',
|
|
1172
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}/redemptions',
|
|
1173
|
+
path_params=_path_params,
|
|
1174
|
+
query_params=_query_params,
|
|
1175
|
+
header_params=_header_params,
|
|
1176
|
+
body=_body_params,
|
|
1177
|
+
post_params=_form_params,
|
|
1178
|
+
files=_files,
|
|
1179
|
+
auth_settings=_auth_settings,
|
|
1180
|
+
collection_formats=_collection_formats,
|
|
1181
|
+
_host=_host,
|
|
1182
|
+
_request_auth=_request_auth
|
|
1183
|
+
)
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
@validate_call
|
|
1189
|
+
def post_coupons(
|
|
1190
|
+
self,
|
|
1191
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1192
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1193
|
+
coupon_create_request: Optional[CouponCreateRequest] = None,
|
|
1194
|
+
_request_timeout: Union[
|
|
1195
|
+
None,
|
|
1196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1197
|
+
Tuple[
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1200
|
+
]
|
|
1201
|
+
] = None,
|
|
1202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1203
|
+
_content_type: Optional[StrictStr] = None,
|
|
1204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1206
|
+
) -> Coupon:
|
|
1207
|
+
"""Create a coupon
|
|
1208
|
+
|
|
1209
|
+
Requires the COUPON.CREATE permission.
|
|
1210
|
+
|
|
1211
|
+
:param version: version (required)
|
|
1212
|
+
:type version: str
|
|
1213
|
+
:param x_platform_id: Platform ID.
|
|
1214
|
+
:type x_platform_id: str
|
|
1215
|
+
:param coupon_create_request:
|
|
1216
|
+
:type coupon_create_request: CouponCreateRequest
|
|
1217
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1218
|
+
number provided, it will be total request
|
|
1219
|
+
timeout. It can also be a pair (tuple) of
|
|
1220
|
+
(connection, read) timeouts.
|
|
1221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1223
|
+
request; this effectively ignores the
|
|
1224
|
+
authentication in the spec for a single request.
|
|
1225
|
+
:type _request_auth: dict, optional
|
|
1226
|
+
:param _content_type: force content-type for the request.
|
|
1227
|
+
:type _content_type: str, Optional
|
|
1228
|
+
:param _headers: set to override the headers for a single
|
|
1229
|
+
request; this effectively ignores the headers
|
|
1230
|
+
in the spec for a single request.
|
|
1231
|
+
:type _headers: dict, optional
|
|
1232
|
+
:param _host_index: set to override the host_index for a single
|
|
1233
|
+
request; this effectively ignores the host_index
|
|
1234
|
+
in the spec for a single request.
|
|
1235
|
+
:type _host_index: int, optional
|
|
1236
|
+
:return: Returns the result object.
|
|
1237
|
+
""" # noqa: E501
|
|
1238
|
+
|
|
1239
|
+
_param = self._post_coupons_serialize(
|
|
1240
|
+
version=version,
|
|
1241
|
+
x_platform_id=x_platform_id,
|
|
1242
|
+
coupon_create_request=coupon_create_request,
|
|
1243
|
+
_request_auth=_request_auth,
|
|
1244
|
+
_content_type=_content_type,
|
|
1245
|
+
_headers=_headers,
|
|
1246
|
+
_host_index=_host_index
|
|
1247
|
+
)
|
|
1248
|
+
|
|
1249
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1250
|
+
'201': "Coupon",
|
|
1251
|
+
'400': "ApiError",
|
|
1252
|
+
'401': "ApiError",
|
|
1253
|
+
'403': "ApiError",
|
|
1254
|
+
'409': "ApiError",
|
|
1255
|
+
'500': "ApiError",
|
|
1256
|
+
}
|
|
1257
|
+
response_data = self.api_client.call_api(
|
|
1258
|
+
*_param,
|
|
1259
|
+
_request_timeout=_request_timeout
|
|
1260
|
+
)
|
|
1261
|
+
response_data.read()
|
|
1262
|
+
return self.api_client.response_deserialize(
|
|
1263
|
+
response_data=response_data,
|
|
1264
|
+
response_types_map=_response_types_map,
|
|
1265
|
+
).data
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
@validate_call
|
|
1269
|
+
def post_coupons_with_http_info(
|
|
1270
|
+
self,
|
|
1271
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1272
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1273
|
+
coupon_create_request: Optional[CouponCreateRequest] = None,
|
|
1274
|
+
_request_timeout: Union[
|
|
1275
|
+
None,
|
|
1276
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1277
|
+
Tuple[
|
|
1278
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1279
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1280
|
+
]
|
|
1281
|
+
] = None,
|
|
1282
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1283
|
+
_content_type: Optional[StrictStr] = None,
|
|
1284
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1285
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1286
|
+
) -> ApiResponse[Coupon]:
|
|
1287
|
+
"""Create a coupon
|
|
1288
|
+
|
|
1289
|
+
Requires the COUPON.CREATE permission.
|
|
1290
|
+
|
|
1291
|
+
:param version: version (required)
|
|
1292
|
+
:type version: str
|
|
1293
|
+
:param x_platform_id: Platform ID.
|
|
1294
|
+
:type x_platform_id: str
|
|
1295
|
+
:param coupon_create_request:
|
|
1296
|
+
:type coupon_create_request: CouponCreateRequest
|
|
1297
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1298
|
+
number provided, it will be total request
|
|
1299
|
+
timeout. It can also be a pair (tuple) of
|
|
1300
|
+
(connection, read) timeouts.
|
|
1301
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1302
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1303
|
+
request; this effectively ignores the
|
|
1304
|
+
authentication in the spec for a single request.
|
|
1305
|
+
:type _request_auth: dict, optional
|
|
1306
|
+
:param _content_type: force content-type for the request.
|
|
1307
|
+
:type _content_type: str, Optional
|
|
1308
|
+
:param _headers: set to override the headers for a single
|
|
1309
|
+
request; this effectively ignores the headers
|
|
1310
|
+
in the spec for a single request.
|
|
1311
|
+
:type _headers: dict, optional
|
|
1312
|
+
:param _host_index: set to override the host_index for a single
|
|
1313
|
+
request; this effectively ignores the host_index
|
|
1314
|
+
in the spec for a single request.
|
|
1315
|
+
:type _host_index: int, optional
|
|
1316
|
+
:return: Returns the result object.
|
|
1317
|
+
""" # noqa: E501
|
|
1318
|
+
|
|
1319
|
+
_param = self._post_coupons_serialize(
|
|
1320
|
+
version=version,
|
|
1321
|
+
x_platform_id=x_platform_id,
|
|
1322
|
+
coupon_create_request=coupon_create_request,
|
|
1323
|
+
_request_auth=_request_auth,
|
|
1324
|
+
_content_type=_content_type,
|
|
1325
|
+
_headers=_headers,
|
|
1326
|
+
_host_index=_host_index
|
|
1327
|
+
)
|
|
1328
|
+
|
|
1329
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1330
|
+
'201': "Coupon",
|
|
1331
|
+
'400': "ApiError",
|
|
1332
|
+
'401': "ApiError",
|
|
1333
|
+
'403': "ApiError",
|
|
1334
|
+
'409': "ApiError",
|
|
1335
|
+
'500': "ApiError",
|
|
1336
|
+
}
|
|
1337
|
+
response_data = self.api_client.call_api(
|
|
1338
|
+
*_param,
|
|
1339
|
+
_request_timeout=_request_timeout
|
|
1340
|
+
)
|
|
1341
|
+
response_data.read()
|
|
1342
|
+
return self.api_client.response_deserialize(
|
|
1343
|
+
response_data=response_data,
|
|
1344
|
+
response_types_map=_response_types_map,
|
|
1345
|
+
)
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
@validate_call
|
|
1349
|
+
def post_coupons_without_preload_content(
|
|
1350
|
+
self,
|
|
1351
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1352
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1353
|
+
coupon_create_request: Optional[CouponCreateRequest] = None,
|
|
1354
|
+
_request_timeout: Union[
|
|
1355
|
+
None,
|
|
1356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1357
|
+
Tuple[
|
|
1358
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1359
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1360
|
+
]
|
|
1361
|
+
] = None,
|
|
1362
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1363
|
+
_content_type: Optional[StrictStr] = None,
|
|
1364
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1365
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1366
|
+
) -> RESTResponseType:
|
|
1367
|
+
"""Create a coupon
|
|
1368
|
+
|
|
1369
|
+
Requires the COUPON.CREATE permission.
|
|
1370
|
+
|
|
1371
|
+
:param version: version (required)
|
|
1372
|
+
:type version: str
|
|
1373
|
+
:param x_platform_id: Platform ID.
|
|
1374
|
+
:type x_platform_id: str
|
|
1375
|
+
:param coupon_create_request:
|
|
1376
|
+
:type coupon_create_request: CouponCreateRequest
|
|
1377
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1378
|
+
number provided, it will be total request
|
|
1379
|
+
timeout. It can also be a pair (tuple) of
|
|
1380
|
+
(connection, read) timeouts.
|
|
1381
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1382
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1383
|
+
request; this effectively ignores the
|
|
1384
|
+
authentication in the spec for a single request.
|
|
1385
|
+
:type _request_auth: dict, optional
|
|
1386
|
+
:param _content_type: force content-type for the request.
|
|
1387
|
+
:type _content_type: str, Optional
|
|
1388
|
+
:param _headers: set to override the headers for a single
|
|
1389
|
+
request; this effectively ignores the headers
|
|
1390
|
+
in the spec for a single request.
|
|
1391
|
+
:type _headers: dict, optional
|
|
1392
|
+
:param _host_index: set to override the host_index for a single
|
|
1393
|
+
request; this effectively ignores the host_index
|
|
1394
|
+
in the spec for a single request.
|
|
1395
|
+
:type _host_index: int, optional
|
|
1396
|
+
:return: Returns the result object.
|
|
1397
|
+
""" # noqa: E501
|
|
1398
|
+
|
|
1399
|
+
_param = self._post_coupons_serialize(
|
|
1400
|
+
version=version,
|
|
1401
|
+
x_platform_id=x_platform_id,
|
|
1402
|
+
coupon_create_request=coupon_create_request,
|
|
1403
|
+
_request_auth=_request_auth,
|
|
1404
|
+
_content_type=_content_type,
|
|
1405
|
+
_headers=_headers,
|
|
1406
|
+
_host_index=_host_index
|
|
1407
|
+
)
|
|
1408
|
+
|
|
1409
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1410
|
+
'201': "Coupon",
|
|
1411
|
+
'400': "ApiError",
|
|
1412
|
+
'401': "ApiError",
|
|
1413
|
+
'403': "ApiError",
|
|
1414
|
+
'409': "ApiError",
|
|
1415
|
+
'500': "ApiError",
|
|
1416
|
+
}
|
|
1417
|
+
response_data = self.api_client.call_api(
|
|
1418
|
+
*_param,
|
|
1419
|
+
_request_timeout=_request_timeout
|
|
1420
|
+
)
|
|
1421
|
+
return response_data.response
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
def _post_coupons_serialize(
|
|
1425
|
+
self,
|
|
1426
|
+
version,
|
|
1427
|
+
x_platform_id,
|
|
1428
|
+
coupon_create_request,
|
|
1429
|
+
_request_auth,
|
|
1430
|
+
_content_type,
|
|
1431
|
+
_headers,
|
|
1432
|
+
_host_index,
|
|
1433
|
+
) -> RequestSerialized:
|
|
1434
|
+
|
|
1435
|
+
_host = None
|
|
1436
|
+
|
|
1437
|
+
_collection_formats: Dict[str, str] = {
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
_path_params: Dict[str, str] = {}
|
|
1441
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1442
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1443
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1444
|
+
_files: Dict[
|
|
1445
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1446
|
+
] = {}
|
|
1447
|
+
_body_params: Optional[bytes] = None
|
|
1448
|
+
|
|
1449
|
+
# process the path parameters
|
|
1450
|
+
if version is not None:
|
|
1451
|
+
_path_params['version'] = version
|
|
1452
|
+
# process the query parameters
|
|
1453
|
+
# process the header parameters
|
|
1454
|
+
if x_platform_id is not None:
|
|
1455
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1456
|
+
# process the form parameters
|
|
1457
|
+
# process the body parameter
|
|
1458
|
+
if coupon_create_request is not None:
|
|
1459
|
+
_body_params = coupon_create_request
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
# set the HTTP header `Accept`
|
|
1463
|
+
if 'Accept' not in _header_params:
|
|
1464
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1465
|
+
[
|
|
1466
|
+
'application/json',
|
|
1467
|
+
'*/*'
|
|
1468
|
+
]
|
|
1469
|
+
)
|
|
1470
|
+
|
|
1471
|
+
# set the HTTP header `Content-Type`
|
|
1472
|
+
if _content_type:
|
|
1473
|
+
_header_params['Content-Type'] = _content_type
|
|
1474
|
+
else:
|
|
1475
|
+
_default_content_type = (
|
|
1476
|
+
self.api_client.select_header_content_type(
|
|
1477
|
+
[
|
|
1478
|
+
'application/json'
|
|
1479
|
+
]
|
|
1480
|
+
)
|
|
1481
|
+
)
|
|
1482
|
+
if _default_content_type is not None:
|
|
1483
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1484
|
+
|
|
1485
|
+
# authentication setting
|
|
1486
|
+
_auth_settings: List[str] = [
|
|
1487
|
+
'JWT-Authentication',
|
|
1488
|
+
'API-Key'
|
|
1489
|
+
]
|
|
1490
|
+
|
|
1491
|
+
return self.api_client.param_serialize(
|
|
1492
|
+
method='POST',
|
|
1493
|
+
resource_path='/v{version}/coupons',
|
|
1494
|
+
path_params=_path_params,
|
|
1495
|
+
query_params=_query_params,
|
|
1496
|
+
header_params=_header_params,
|
|
1497
|
+
body=_body_params,
|
|
1498
|
+
post_params=_form_params,
|
|
1499
|
+
files=_files,
|
|
1500
|
+
auth_settings=_auth_settings,
|
|
1501
|
+
collection_formats=_collection_formats,
|
|
1502
|
+
_host=_host,
|
|
1503
|
+
_request_auth=_request_auth
|
|
1504
|
+
)
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
@validate_call
|
|
1510
|
+
def post_coupons_by_resource_id_or_reference_activate(
|
|
1511
|
+
self,
|
|
1512
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1513
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1514
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1515
|
+
_request_timeout: Union[
|
|
1516
|
+
None,
|
|
1517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1518
|
+
Tuple[
|
|
1519
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1520
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1521
|
+
]
|
|
1522
|
+
] = None,
|
|
1523
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1524
|
+
_content_type: Optional[StrictStr] = None,
|
|
1525
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1527
|
+
) -> Coupon:
|
|
1528
|
+
"""Activate a coupon
|
|
1529
|
+
|
|
1530
|
+
Requires the COUPON.UPDATE permission.
|
|
1531
|
+
|
|
1532
|
+
:param version: version (required)
|
|
1533
|
+
:type version: str
|
|
1534
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1535
|
+
:type resource_id_or_reference: str
|
|
1536
|
+
:param x_platform_id: Platform ID.
|
|
1537
|
+
:type x_platform_id: str
|
|
1538
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1539
|
+
number provided, it will be total request
|
|
1540
|
+
timeout. It can also be a pair (tuple) of
|
|
1541
|
+
(connection, read) timeouts.
|
|
1542
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1543
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1544
|
+
request; this effectively ignores the
|
|
1545
|
+
authentication in the spec for a single request.
|
|
1546
|
+
:type _request_auth: dict, optional
|
|
1547
|
+
:param _content_type: force content-type for the request.
|
|
1548
|
+
:type _content_type: str, Optional
|
|
1549
|
+
:param _headers: set to override the headers for a single
|
|
1550
|
+
request; this effectively ignores the headers
|
|
1551
|
+
in the spec for a single request.
|
|
1552
|
+
:type _headers: dict, optional
|
|
1553
|
+
:param _host_index: set to override the host_index for a single
|
|
1554
|
+
request; this effectively ignores the host_index
|
|
1555
|
+
in the spec for a single request.
|
|
1556
|
+
:type _host_index: int, optional
|
|
1557
|
+
:return: Returns the result object.
|
|
1558
|
+
""" # noqa: E501
|
|
1559
|
+
|
|
1560
|
+
_param = self._post_coupons_by_resource_id_or_reference_activate_serialize(
|
|
1561
|
+
version=version,
|
|
1562
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1563
|
+
x_platform_id=x_platform_id,
|
|
1564
|
+
_request_auth=_request_auth,
|
|
1565
|
+
_content_type=_content_type,
|
|
1566
|
+
_headers=_headers,
|
|
1567
|
+
_host_index=_host_index
|
|
1568
|
+
)
|
|
1569
|
+
|
|
1570
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1571
|
+
'200': "Coupon",
|
|
1572
|
+
'400': "ApiError",
|
|
1573
|
+
'401': "ApiError",
|
|
1574
|
+
'403': "ApiError",
|
|
1575
|
+
'500': "ApiError",
|
|
1576
|
+
}
|
|
1577
|
+
response_data = self.api_client.call_api(
|
|
1578
|
+
*_param,
|
|
1579
|
+
_request_timeout=_request_timeout
|
|
1580
|
+
)
|
|
1581
|
+
response_data.read()
|
|
1582
|
+
return self.api_client.response_deserialize(
|
|
1583
|
+
response_data=response_data,
|
|
1584
|
+
response_types_map=_response_types_map,
|
|
1585
|
+
).data
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
@validate_call
|
|
1589
|
+
def post_coupons_by_resource_id_or_reference_activate_with_http_info(
|
|
1590
|
+
self,
|
|
1591
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1592
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1593
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1594
|
+
_request_timeout: Union[
|
|
1595
|
+
None,
|
|
1596
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1597
|
+
Tuple[
|
|
1598
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1599
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1600
|
+
]
|
|
1601
|
+
] = None,
|
|
1602
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1603
|
+
_content_type: Optional[StrictStr] = None,
|
|
1604
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1605
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1606
|
+
) -> ApiResponse[Coupon]:
|
|
1607
|
+
"""Activate a coupon
|
|
1608
|
+
|
|
1609
|
+
Requires the COUPON.UPDATE permission.
|
|
1610
|
+
|
|
1611
|
+
:param version: version (required)
|
|
1612
|
+
:type version: str
|
|
1613
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1614
|
+
:type resource_id_or_reference: str
|
|
1615
|
+
:param x_platform_id: Platform ID.
|
|
1616
|
+
:type x_platform_id: str
|
|
1617
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1618
|
+
number provided, it will be total request
|
|
1619
|
+
timeout. It can also be a pair (tuple) of
|
|
1620
|
+
(connection, read) timeouts.
|
|
1621
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1622
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1623
|
+
request; this effectively ignores the
|
|
1624
|
+
authentication in the spec for a single request.
|
|
1625
|
+
:type _request_auth: dict, optional
|
|
1626
|
+
:param _content_type: force content-type for the request.
|
|
1627
|
+
:type _content_type: str, Optional
|
|
1628
|
+
:param _headers: set to override the headers for a single
|
|
1629
|
+
request; this effectively ignores the headers
|
|
1630
|
+
in the spec for a single request.
|
|
1631
|
+
:type _headers: dict, optional
|
|
1632
|
+
:param _host_index: set to override the host_index for a single
|
|
1633
|
+
request; this effectively ignores the host_index
|
|
1634
|
+
in the spec for a single request.
|
|
1635
|
+
:type _host_index: int, optional
|
|
1636
|
+
:return: Returns the result object.
|
|
1637
|
+
""" # noqa: E501
|
|
1638
|
+
|
|
1639
|
+
_param = self._post_coupons_by_resource_id_or_reference_activate_serialize(
|
|
1640
|
+
version=version,
|
|
1641
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1642
|
+
x_platform_id=x_platform_id,
|
|
1643
|
+
_request_auth=_request_auth,
|
|
1644
|
+
_content_type=_content_type,
|
|
1645
|
+
_headers=_headers,
|
|
1646
|
+
_host_index=_host_index
|
|
1647
|
+
)
|
|
1648
|
+
|
|
1649
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1650
|
+
'200': "Coupon",
|
|
1651
|
+
'400': "ApiError",
|
|
1652
|
+
'401': "ApiError",
|
|
1653
|
+
'403': "ApiError",
|
|
1654
|
+
'500': "ApiError",
|
|
1655
|
+
}
|
|
1656
|
+
response_data = self.api_client.call_api(
|
|
1657
|
+
*_param,
|
|
1658
|
+
_request_timeout=_request_timeout
|
|
1659
|
+
)
|
|
1660
|
+
response_data.read()
|
|
1661
|
+
return self.api_client.response_deserialize(
|
|
1662
|
+
response_data=response_data,
|
|
1663
|
+
response_types_map=_response_types_map,
|
|
1664
|
+
)
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
@validate_call
|
|
1668
|
+
def post_coupons_by_resource_id_or_reference_activate_without_preload_content(
|
|
1669
|
+
self,
|
|
1670
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1671
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1672
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1673
|
+
_request_timeout: Union[
|
|
1674
|
+
None,
|
|
1675
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1676
|
+
Tuple[
|
|
1677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1678
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1679
|
+
]
|
|
1680
|
+
] = None,
|
|
1681
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1682
|
+
_content_type: Optional[StrictStr] = None,
|
|
1683
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1684
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1685
|
+
) -> RESTResponseType:
|
|
1686
|
+
"""Activate a coupon
|
|
1687
|
+
|
|
1688
|
+
Requires the COUPON.UPDATE permission.
|
|
1689
|
+
|
|
1690
|
+
:param version: version (required)
|
|
1691
|
+
:type version: str
|
|
1692
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1693
|
+
:type resource_id_or_reference: str
|
|
1694
|
+
:param x_platform_id: Platform ID.
|
|
1695
|
+
:type x_platform_id: str
|
|
1696
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1697
|
+
number provided, it will be total request
|
|
1698
|
+
timeout. It can also be a pair (tuple) of
|
|
1699
|
+
(connection, read) timeouts.
|
|
1700
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1701
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1702
|
+
request; this effectively ignores the
|
|
1703
|
+
authentication in the spec for a single request.
|
|
1704
|
+
:type _request_auth: dict, optional
|
|
1705
|
+
:param _content_type: force content-type for the request.
|
|
1706
|
+
:type _content_type: str, Optional
|
|
1707
|
+
:param _headers: set to override the headers for a single
|
|
1708
|
+
request; this effectively ignores the headers
|
|
1709
|
+
in the spec for a single request.
|
|
1710
|
+
:type _headers: dict, optional
|
|
1711
|
+
:param _host_index: set to override the host_index for a single
|
|
1712
|
+
request; this effectively ignores the host_index
|
|
1713
|
+
in the spec for a single request.
|
|
1714
|
+
:type _host_index: int, optional
|
|
1715
|
+
:return: Returns the result object.
|
|
1716
|
+
""" # noqa: E501
|
|
1717
|
+
|
|
1718
|
+
_param = self._post_coupons_by_resource_id_or_reference_activate_serialize(
|
|
1719
|
+
version=version,
|
|
1720
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1721
|
+
x_platform_id=x_platform_id,
|
|
1722
|
+
_request_auth=_request_auth,
|
|
1723
|
+
_content_type=_content_type,
|
|
1724
|
+
_headers=_headers,
|
|
1725
|
+
_host_index=_host_index
|
|
1726
|
+
)
|
|
1727
|
+
|
|
1728
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1729
|
+
'200': "Coupon",
|
|
1730
|
+
'400': "ApiError",
|
|
1731
|
+
'401': "ApiError",
|
|
1732
|
+
'403': "ApiError",
|
|
1733
|
+
'500': "ApiError",
|
|
1734
|
+
}
|
|
1735
|
+
response_data = self.api_client.call_api(
|
|
1736
|
+
*_param,
|
|
1737
|
+
_request_timeout=_request_timeout
|
|
1738
|
+
)
|
|
1739
|
+
return response_data.response
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
def _post_coupons_by_resource_id_or_reference_activate_serialize(
|
|
1743
|
+
self,
|
|
1744
|
+
version,
|
|
1745
|
+
resource_id_or_reference,
|
|
1746
|
+
x_platform_id,
|
|
1747
|
+
_request_auth,
|
|
1748
|
+
_content_type,
|
|
1749
|
+
_headers,
|
|
1750
|
+
_host_index,
|
|
1751
|
+
) -> RequestSerialized:
|
|
1752
|
+
|
|
1753
|
+
_host = None
|
|
1754
|
+
|
|
1755
|
+
_collection_formats: Dict[str, str] = {
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
_path_params: Dict[str, str] = {}
|
|
1759
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1760
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1761
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1762
|
+
_files: Dict[
|
|
1763
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1764
|
+
] = {}
|
|
1765
|
+
_body_params: Optional[bytes] = None
|
|
1766
|
+
|
|
1767
|
+
# process the path parameters
|
|
1768
|
+
if version is not None:
|
|
1769
|
+
_path_params['version'] = version
|
|
1770
|
+
if resource_id_or_reference is not None:
|
|
1771
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
1772
|
+
# process the query parameters
|
|
1773
|
+
# process the header parameters
|
|
1774
|
+
if x_platform_id is not None:
|
|
1775
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
1776
|
+
# process the form parameters
|
|
1777
|
+
# process the body parameter
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
# set the HTTP header `Accept`
|
|
1781
|
+
if 'Accept' not in _header_params:
|
|
1782
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1783
|
+
[
|
|
1784
|
+
'application/json',
|
|
1785
|
+
'*/*'
|
|
1786
|
+
]
|
|
1787
|
+
)
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
# authentication setting
|
|
1791
|
+
_auth_settings: List[str] = [
|
|
1792
|
+
'JWT-Authentication',
|
|
1793
|
+
'API-Key'
|
|
1794
|
+
]
|
|
1795
|
+
|
|
1796
|
+
return self.api_client.param_serialize(
|
|
1797
|
+
method='POST',
|
|
1798
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}/activate',
|
|
1799
|
+
path_params=_path_params,
|
|
1800
|
+
query_params=_query_params,
|
|
1801
|
+
header_params=_header_params,
|
|
1802
|
+
body=_body_params,
|
|
1803
|
+
post_params=_form_params,
|
|
1804
|
+
files=_files,
|
|
1805
|
+
auth_settings=_auth_settings,
|
|
1806
|
+
collection_formats=_collection_formats,
|
|
1807
|
+
_host=_host,
|
|
1808
|
+
_request_auth=_request_auth
|
|
1809
|
+
)
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
@validate_call
|
|
1815
|
+
def post_coupons_by_resource_id_or_reference_archive(
|
|
1816
|
+
self,
|
|
1817
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1818
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1819
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1820
|
+
_request_timeout: Union[
|
|
1821
|
+
None,
|
|
1822
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1823
|
+
Tuple[
|
|
1824
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1825
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1826
|
+
]
|
|
1827
|
+
] = None,
|
|
1828
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1829
|
+
_content_type: Optional[StrictStr] = None,
|
|
1830
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1831
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1832
|
+
) -> Coupon:
|
|
1833
|
+
"""Archive a coupon
|
|
1834
|
+
|
|
1835
|
+
Requires the COUPON.UPDATE permission.
|
|
1836
|
+
|
|
1837
|
+
:param version: version (required)
|
|
1838
|
+
:type version: str
|
|
1839
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1840
|
+
:type resource_id_or_reference: str
|
|
1841
|
+
:param x_platform_id: Platform ID.
|
|
1842
|
+
:type x_platform_id: str
|
|
1843
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1844
|
+
number provided, it will be total request
|
|
1845
|
+
timeout. It can also be a pair (tuple) of
|
|
1846
|
+
(connection, read) timeouts.
|
|
1847
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1848
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1849
|
+
request; this effectively ignores the
|
|
1850
|
+
authentication in the spec for a single request.
|
|
1851
|
+
:type _request_auth: dict, optional
|
|
1852
|
+
:param _content_type: force content-type for the request.
|
|
1853
|
+
:type _content_type: str, Optional
|
|
1854
|
+
:param _headers: set to override the headers for a single
|
|
1855
|
+
request; this effectively ignores the headers
|
|
1856
|
+
in the spec for a single request.
|
|
1857
|
+
:type _headers: dict, optional
|
|
1858
|
+
:param _host_index: set to override the host_index for a single
|
|
1859
|
+
request; this effectively ignores the host_index
|
|
1860
|
+
in the spec for a single request.
|
|
1861
|
+
:type _host_index: int, optional
|
|
1862
|
+
:return: Returns the result object.
|
|
1863
|
+
""" # noqa: E501
|
|
1864
|
+
|
|
1865
|
+
_param = self._post_coupons_by_resource_id_or_reference_archive_serialize(
|
|
1866
|
+
version=version,
|
|
1867
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1868
|
+
x_platform_id=x_platform_id,
|
|
1869
|
+
_request_auth=_request_auth,
|
|
1870
|
+
_content_type=_content_type,
|
|
1871
|
+
_headers=_headers,
|
|
1872
|
+
_host_index=_host_index
|
|
1873
|
+
)
|
|
1874
|
+
|
|
1875
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1876
|
+
'200': "Coupon",
|
|
1877
|
+
'400': "ApiError",
|
|
1878
|
+
'401': "ApiError",
|
|
1879
|
+
'403': "ApiError",
|
|
1880
|
+
'500': "ApiError",
|
|
1881
|
+
}
|
|
1882
|
+
response_data = self.api_client.call_api(
|
|
1883
|
+
*_param,
|
|
1884
|
+
_request_timeout=_request_timeout
|
|
1885
|
+
)
|
|
1886
|
+
response_data.read()
|
|
1887
|
+
return self.api_client.response_deserialize(
|
|
1888
|
+
response_data=response_data,
|
|
1889
|
+
response_types_map=_response_types_map,
|
|
1890
|
+
).data
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
@validate_call
|
|
1894
|
+
def post_coupons_by_resource_id_or_reference_archive_with_http_info(
|
|
1895
|
+
self,
|
|
1896
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1897
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1898
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1899
|
+
_request_timeout: Union[
|
|
1900
|
+
None,
|
|
1901
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1902
|
+
Tuple[
|
|
1903
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1904
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1905
|
+
]
|
|
1906
|
+
] = None,
|
|
1907
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1908
|
+
_content_type: Optional[StrictStr] = None,
|
|
1909
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1910
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1911
|
+
) -> ApiResponse[Coupon]:
|
|
1912
|
+
"""Archive a coupon
|
|
1913
|
+
|
|
1914
|
+
Requires the COUPON.UPDATE permission.
|
|
1915
|
+
|
|
1916
|
+
:param version: version (required)
|
|
1917
|
+
:type version: str
|
|
1918
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1919
|
+
:type resource_id_or_reference: str
|
|
1920
|
+
:param x_platform_id: Platform ID.
|
|
1921
|
+
:type x_platform_id: str
|
|
1922
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1923
|
+
number provided, it will be total request
|
|
1924
|
+
timeout. It can also be a pair (tuple) of
|
|
1925
|
+
(connection, read) timeouts.
|
|
1926
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1927
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1928
|
+
request; this effectively ignores the
|
|
1929
|
+
authentication in the spec for a single request.
|
|
1930
|
+
:type _request_auth: dict, optional
|
|
1931
|
+
:param _content_type: force content-type for the request.
|
|
1932
|
+
:type _content_type: str, Optional
|
|
1933
|
+
:param _headers: set to override the headers for a single
|
|
1934
|
+
request; this effectively ignores the headers
|
|
1935
|
+
in the spec for a single request.
|
|
1936
|
+
:type _headers: dict, optional
|
|
1937
|
+
:param _host_index: set to override the host_index for a single
|
|
1938
|
+
request; this effectively ignores the host_index
|
|
1939
|
+
in the spec for a single request.
|
|
1940
|
+
:type _host_index: int, optional
|
|
1941
|
+
:return: Returns the result object.
|
|
1942
|
+
""" # noqa: E501
|
|
1943
|
+
|
|
1944
|
+
_param = self._post_coupons_by_resource_id_or_reference_archive_serialize(
|
|
1945
|
+
version=version,
|
|
1946
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
1947
|
+
x_platform_id=x_platform_id,
|
|
1948
|
+
_request_auth=_request_auth,
|
|
1949
|
+
_content_type=_content_type,
|
|
1950
|
+
_headers=_headers,
|
|
1951
|
+
_host_index=_host_index
|
|
1952
|
+
)
|
|
1953
|
+
|
|
1954
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1955
|
+
'200': "Coupon",
|
|
1956
|
+
'400': "ApiError",
|
|
1957
|
+
'401': "ApiError",
|
|
1958
|
+
'403': "ApiError",
|
|
1959
|
+
'500': "ApiError",
|
|
1960
|
+
}
|
|
1961
|
+
response_data = self.api_client.call_api(
|
|
1962
|
+
*_param,
|
|
1963
|
+
_request_timeout=_request_timeout
|
|
1964
|
+
)
|
|
1965
|
+
response_data.read()
|
|
1966
|
+
return self.api_client.response_deserialize(
|
|
1967
|
+
response_data=response_data,
|
|
1968
|
+
response_types_map=_response_types_map,
|
|
1969
|
+
)
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
@validate_call
|
|
1973
|
+
def post_coupons_by_resource_id_or_reference_archive_without_preload_content(
|
|
1974
|
+
self,
|
|
1975
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
1976
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
1977
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
1978
|
+
_request_timeout: Union[
|
|
1979
|
+
None,
|
|
1980
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1981
|
+
Tuple[
|
|
1982
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1983
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1984
|
+
]
|
|
1985
|
+
] = None,
|
|
1986
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1987
|
+
_content_type: Optional[StrictStr] = None,
|
|
1988
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1989
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1990
|
+
) -> RESTResponseType:
|
|
1991
|
+
"""Archive a coupon
|
|
1992
|
+
|
|
1993
|
+
Requires the COUPON.UPDATE permission.
|
|
1994
|
+
|
|
1995
|
+
:param version: version (required)
|
|
1996
|
+
:type version: str
|
|
1997
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
1998
|
+
:type resource_id_or_reference: str
|
|
1999
|
+
:param x_platform_id: Platform ID.
|
|
2000
|
+
:type x_platform_id: str
|
|
2001
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2002
|
+
number provided, it will be total request
|
|
2003
|
+
timeout. It can also be a pair (tuple) of
|
|
2004
|
+
(connection, read) timeouts.
|
|
2005
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2006
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2007
|
+
request; this effectively ignores the
|
|
2008
|
+
authentication in the spec for a single request.
|
|
2009
|
+
:type _request_auth: dict, optional
|
|
2010
|
+
:param _content_type: force content-type for the request.
|
|
2011
|
+
:type _content_type: str, Optional
|
|
2012
|
+
:param _headers: set to override the headers for a single
|
|
2013
|
+
request; this effectively ignores the headers
|
|
2014
|
+
in the spec for a single request.
|
|
2015
|
+
:type _headers: dict, optional
|
|
2016
|
+
:param _host_index: set to override the host_index for a single
|
|
2017
|
+
request; this effectively ignores the host_index
|
|
2018
|
+
in the spec for a single request.
|
|
2019
|
+
:type _host_index: int, optional
|
|
2020
|
+
:return: Returns the result object.
|
|
2021
|
+
""" # noqa: E501
|
|
2022
|
+
|
|
2023
|
+
_param = self._post_coupons_by_resource_id_or_reference_archive_serialize(
|
|
2024
|
+
version=version,
|
|
2025
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2026
|
+
x_platform_id=x_platform_id,
|
|
2027
|
+
_request_auth=_request_auth,
|
|
2028
|
+
_content_type=_content_type,
|
|
2029
|
+
_headers=_headers,
|
|
2030
|
+
_host_index=_host_index
|
|
2031
|
+
)
|
|
2032
|
+
|
|
2033
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2034
|
+
'200': "Coupon",
|
|
2035
|
+
'400': "ApiError",
|
|
2036
|
+
'401': "ApiError",
|
|
2037
|
+
'403': "ApiError",
|
|
2038
|
+
'500': "ApiError",
|
|
2039
|
+
}
|
|
2040
|
+
response_data = self.api_client.call_api(
|
|
2041
|
+
*_param,
|
|
2042
|
+
_request_timeout=_request_timeout
|
|
2043
|
+
)
|
|
2044
|
+
return response_data.response
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
def _post_coupons_by_resource_id_or_reference_archive_serialize(
|
|
2048
|
+
self,
|
|
2049
|
+
version,
|
|
2050
|
+
resource_id_or_reference,
|
|
2051
|
+
x_platform_id,
|
|
2052
|
+
_request_auth,
|
|
2053
|
+
_content_type,
|
|
2054
|
+
_headers,
|
|
2055
|
+
_host_index,
|
|
2056
|
+
) -> RequestSerialized:
|
|
2057
|
+
|
|
2058
|
+
_host = None
|
|
2059
|
+
|
|
2060
|
+
_collection_formats: Dict[str, str] = {
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
_path_params: Dict[str, str] = {}
|
|
2064
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2065
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2066
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2067
|
+
_files: Dict[
|
|
2068
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2069
|
+
] = {}
|
|
2070
|
+
_body_params: Optional[bytes] = None
|
|
2071
|
+
|
|
2072
|
+
# process the path parameters
|
|
2073
|
+
if version is not None:
|
|
2074
|
+
_path_params['version'] = version
|
|
2075
|
+
if resource_id_or_reference is not None:
|
|
2076
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
2077
|
+
# process the query parameters
|
|
2078
|
+
# process the header parameters
|
|
2079
|
+
if x_platform_id is not None:
|
|
2080
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2081
|
+
# process the form parameters
|
|
2082
|
+
# process the body parameter
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
# set the HTTP header `Accept`
|
|
2086
|
+
if 'Accept' not in _header_params:
|
|
2087
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2088
|
+
[
|
|
2089
|
+
'application/json',
|
|
2090
|
+
'*/*'
|
|
2091
|
+
]
|
|
2092
|
+
)
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
# authentication setting
|
|
2096
|
+
_auth_settings: List[str] = [
|
|
2097
|
+
'JWT-Authentication',
|
|
2098
|
+
'API-Key'
|
|
2099
|
+
]
|
|
2100
|
+
|
|
2101
|
+
return self.api_client.param_serialize(
|
|
2102
|
+
method='POST',
|
|
2103
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}/archive',
|
|
2104
|
+
path_params=_path_params,
|
|
2105
|
+
query_params=_query_params,
|
|
2106
|
+
header_params=_header_params,
|
|
2107
|
+
body=_body_params,
|
|
2108
|
+
post_params=_form_params,
|
|
2109
|
+
files=_files,
|
|
2110
|
+
auth_settings=_auth_settings,
|
|
2111
|
+
collection_formats=_collection_formats,
|
|
2112
|
+
_host=_host,
|
|
2113
|
+
_request_auth=_request_auth
|
|
2114
|
+
)
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
@validate_call
|
|
2120
|
+
def post_coupons_by_resource_id_or_reference_deactivate(
|
|
2121
|
+
self,
|
|
2122
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2123
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2124
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2125
|
+
_request_timeout: Union[
|
|
2126
|
+
None,
|
|
2127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2128
|
+
Tuple[
|
|
2129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2130
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2131
|
+
]
|
|
2132
|
+
] = None,
|
|
2133
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2134
|
+
_content_type: Optional[StrictStr] = None,
|
|
2135
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2136
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2137
|
+
) -> Coupon:
|
|
2138
|
+
"""Deactivate a coupon
|
|
2139
|
+
|
|
2140
|
+
Requires the COUPON.UPDATE permission.
|
|
2141
|
+
|
|
2142
|
+
:param version: version (required)
|
|
2143
|
+
:type version: str
|
|
2144
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2145
|
+
:type resource_id_or_reference: str
|
|
2146
|
+
:param x_platform_id: Platform ID.
|
|
2147
|
+
:type x_platform_id: str
|
|
2148
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2149
|
+
number provided, it will be total request
|
|
2150
|
+
timeout. It can also be a pair (tuple) of
|
|
2151
|
+
(connection, read) timeouts.
|
|
2152
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2153
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2154
|
+
request; this effectively ignores the
|
|
2155
|
+
authentication in the spec for a single request.
|
|
2156
|
+
:type _request_auth: dict, optional
|
|
2157
|
+
:param _content_type: force content-type for the request.
|
|
2158
|
+
:type _content_type: str, Optional
|
|
2159
|
+
:param _headers: set to override the headers for a single
|
|
2160
|
+
request; this effectively ignores the headers
|
|
2161
|
+
in the spec for a single request.
|
|
2162
|
+
:type _headers: dict, optional
|
|
2163
|
+
:param _host_index: set to override the host_index for a single
|
|
2164
|
+
request; this effectively ignores the host_index
|
|
2165
|
+
in the spec for a single request.
|
|
2166
|
+
:type _host_index: int, optional
|
|
2167
|
+
:return: Returns the result object.
|
|
2168
|
+
""" # noqa: E501
|
|
2169
|
+
|
|
2170
|
+
_param = self._post_coupons_by_resource_id_or_reference_deactivate_serialize(
|
|
2171
|
+
version=version,
|
|
2172
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2173
|
+
x_platform_id=x_platform_id,
|
|
2174
|
+
_request_auth=_request_auth,
|
|
2175
|
+
_content_type=_content_type,
|
|
2176
|
+
_headers=_headers,
|
|
2177
|
+
_host_index=_host_index
|
|
2178
|
+
)
|
|
2179
|
+
|
|
2180
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2181
|
+
'200': "Coupon",
|
|
2182
|
+
'400': "ApiError",
|
|
2183
|
+
'401': "ApiError",
|
|
2184
|
+
'403': "ApiError",
|
|
2185
|
+
'500': "ApiError",
|
|
2186
|
+
}
|
|
2187
|
+
response_data = self.api_client.call_api(
|
|
2188
|
+
*_param,
|
|
2189
|
+
_request_timeout=_request_timeout
|
|
2190
|
+
)
|
|
2191
|
+
response_data.read()
|
|
2192
|
+
return self.api_client.response_deserialize(
|
|
2193
|
+
response_data=response_data,
|
|
2194
|
+
response_types_map=_response_types_map,
|
|
2195
|
+
).data
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
@validate_call
|
|
2199
|
+
def post_coupons_by_resource_id_or_reference_deactivate_with_http_info(
|
|
2200
|
+
self,
|
|
2201
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2202
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2203
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2204
|
+
_request_timeout: Union[
|
|
2205
|
+
None,
|
|
2206
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2207
|
+
Tuple[
|
|
2208
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2209
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2210
|
+
]
|
|
2211
|
+
] = None,
|
|
2212
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2213
|
+
_content_type: Optional[StrictStr] = None,
|
|
2214
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2215
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2216
|
+
) -> ApiResponse[Coupon]:
|
|
2217
|
+
"""Deactivate a coupon
|
|
2218
|
+
|
|
2219
|
+
Requires the COUPON.UPDATE permission.
|
|
2220
|
+
|
|
2221
|
+
:param version: version (required)
|
|
2222
|
+
:type version: str
|
|
2223
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2224
|
+
:type resource_id_or_reference: str
|
|
2225
|
+
:param x_platform_id: Platform ID.
|
|
2226
|
+
:type x_platform_id: str
|
|
2227
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2228
|
+
number provided, it will be total request
|
|
2229
|
+
timeout. It can also be a pair (tuple) of
|
|
2230
|
+
(connection, read) timeouts.
|
|
2231
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2232
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2233
|
+
request; this effectively ignores the
|
|
2234
|
+
authentication in the spec for a single request.
|
|
2235
|
+
:type _request_auth: dict, optional
|
|
2236
|
+
:param _content_type: force content-type for the request.
|
|
2237
|
+
:type _content_type: str, Optional
|
|
2238
|
+
:param _headers: set to override the headers for a single
|
|
2239
|
+
request; this effectively ignores the headers
|
|
2240
|
+
in the spec for a single request.
|
|
2241
|
+
:type _headers: dict, optional
|
|
2242
|
+
:param _host_index: set to override the host_index for a single
|
|
2243
|
+
request; this effectively ignores the host_index
|
|
2244
|
+
in the spec for a single request.
|
|
2245
|
+
:type _host_index: int, optional
|
|
2246
|
+
:return: Returns the result object.
|
|
2247
|
+
""" # noqa: E501
|
|
2248
|
+
|
|
2249
|
+
_param = self._post_coupons_by_resource_id_or_reference_deactivate_serialize(
|
|
2250
|
+
version=version,
|
|
2251
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2252
|
+
x_platform_id=x_platform_id,
|
|
2253
|
+
_request_auth=_request_auth,
|
|
2254
|
+
_content_type=_content_type,
|
|
2255
|
+
_headers=_headers,
|
|
2256
|
+
_host_index=_host_index
|
|
2257
|
+
)
|
|
2258
|
+
|
|
2259
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2260
|
+
'200': "Coupon",
|
|
2261
|
+
'400': "ApiError",
|
|
2262
|
+
'401': "ApiError",
|
|
2263
|
+
'403': "ApiError",
|
|
2264
|
+
'500': "ApiError",
|
|
2265
|
+
}
|
|
2266
|
+
response_data = self.api_client.call_api(
|
|
2267
|
+
*_param,
|
|
2268
|
+
_request_timeout=_request_timeout
|
|
2269
|
+
)
|
|
2270
|
+
response_data.read()
|
|
2271
|
+
return self.api_client.response_deserialize(
|
|
2272
|
+
response_data=response_data,
|
|
2273
|
+
response_types_map=_response_types_map,
|
|
2274
|
+
)
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
@validate_call
|
|
2278
|
+
def post_coupons_by_resource_id_or_reference_deactivate_without_preload_content(
|
|
2279
|
+
self,
|
|
2280
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2281
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2282
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2283
|
+
_request_timeout: Union[
|
|
2284
|
+
None,
|
|
2285
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2286
|
+
Tuple[
|
|
2287
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2288
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2289
|
+
]
|
|
2290
|
+
] = None,
|
|
2291
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2292
|
+
_content_type: Optional[StrictStr] = None,
|
|
2293
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2294
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2295
|
+
) -> RESTResponseType:
|
|
2296
|
+
"""Deactivate a coupon
|
|
2297
|
+
|
|
2298
|
+
Requires the COUPON.UPDATE permission.
|
|
2299
|
+
|
|
2300
|
+
:param version: version (required)
|
|
2301
|
+
:type version: str
|
|
2302
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2303
|
+
:type resource_id_or_reference: str
|
|
2304
|
+
:param x_platform_id: Platform ID.
|
|
2305
|
+
:type x_platform_id: str
|
|
2306
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2307
|
+
number provided, it will be total request
|
|
2308
|
+
timeout. It can also be a pair (tuple) of
|
|
2309
|
+
(connection, read) timeouts.
|
|
2310
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2311
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2312
|
+
request; this effectively ignores the
|
|
2313
|
+
authentication in the spec for a single request.
|
|
2314
|
+
:type _request_auth: dict, optional
|
|
2315
|
+
:param _content_type: force content-type for the request.
|
|
2316
|
+
:type _content_type: str, Optional
|
|
2317
|
+
:param _headers: set to override the headers for a single
|
|
2318
|
+
request; this effectively ignores the headers
|
|
2319
|
+
in the spec for a single request.
|
|
2320
|
+
:type _headers: dict, optional
|
|
2321
|
+
:param _host_index: set to override the host_index for a single
|
|
2322
|
+
request; this effectively ignores the host_index
|
|
2323
|
+
in the spec for a single request.
|
|
2324
|
+
:type _host_index: int, optional
|
|
2325
|
+
:return: Returns the result object.
|
|
2326
|
+
""" # noqa: E501
|
|
2327
|
+
|
|
2328
|
+
_param = self._post_coupons_by_resource_id_or_reference_deactivate_serialize(
|
|
2329
|
+
version=version,
|
|
2330
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2331
|
+
x_platform_id=x_platform_id,
|
|
2332
|
+
_request_auth=_request_auth,
|
|
2333
|
+
_content_type=_content_type,
|
|
2334
|
+
_headers=_headers,
|
|
2335
|
+
_host_index=_host_index
|
|
2336
|
+
)
|
|
2337
|
+
|
|
2338
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2339
|
+
'200': "Coupon",
|
|
2340
|
+
'400': "ApiError",
|
|
2341
|
+
'401': "ApiError",
|
|
2342
|
+
'403': "ApiError",
|
|
2343
|
+
'500': "ApiError",
|
|
2344
|
+
}
|
|
2345
|
+
response_data = self.api_client.call_api(
|
|
2346
|
+
*_param,
|
|
2347
|
+
_request_timeout=_request_timeout
|
|
2348
|
+
)
|
|
2349
|
+
return response_data.response
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
def _post_coupons_by_resource_id_or_reference_deactivate_serialize(
|
|
2353
|
+
self,
|
|
2354
|
+
version,
|
|
2355
|
+
resource_id_or_reference,
|
|
2356
|
+
x_platform_id,
|
|
2357
|
+
_request_auth,
|
|
2358
|
+
_content_type,
|
|
2359
|
+
_headers,
|
|
2360
|
+
_host_index,
|
|
2361
|
+
) -> RequestSerialized:
|
|
2362
|
+
|
|
2363
|
+
_host = None
|
|
2364
|
+
|
|
2365
|
+
_collection_formats: Dict[str, str] = {
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
_path_params: Dict[str, str] = {}
|
|
2369
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2370
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2371
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2372
|
+
_files: Dict[
|
|
2373
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2374
|
+
] = {}
|
|
2375
|
+
_body_params: Optional[bytes] = None
|
|
2376
|
+
|
|
2377
|
+
# process the path parameters
|
|
2378
|
+
if version is not None:
|
|
2379
|
+
_path_params['version'] = version
|
|
2380
|
+
if resource_id_or_reference is not None:
|
|
2381
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
2382
|
+
# process the query parameters
|
|
2383
|
+
# process the header parameters
|
|
2384
|
+
if x_platform_id is not None:
|
|
2385
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2386
|
+
# process the form parameters
|
|
2387
|
+
# process the body parameter
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
# set the HTTP header `Accept`
|
|
2391
|
+
if 'Accept' not in _header_params:
|
|
2392
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2393
|
+
[
|
|
2394
|
+
'application/json',
|
|
2395
|
+
'*/*'
|
|
2396
|
+
]
|
|
2397
|
+
)
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
# authentication setting
|
|
2401
|
+
_auth_settings: List[str] = [
|
|
2402
|
+
'JWT-Authentication',
|
|
2403
|
+
'API-Key'
|
|
2404
|
+
]
|
|
2405
|
+
|
|
2406
|
+
return self.api_client.param_serialize(
|
|
2407
|
+
method='POST',
|
|
2408
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}/deactivate',
|
|
2409
|
+
path_params=_path_params,
|
|
2410
|
+
query_params=_query_params,
|
|
2411
|
+
header_params=_header_params,
|
|
2412
|
+
body=_body_params,
|
|
2413
|
+
post_params=_form_params,
|
|
2414
|
+
files=_files,
|
|
2415
|
+
auth_settings=_auth_settings,
|
|
2416
|
+
collection_formats=_collection_formats,
|
|
2417
|
+
_host=_host,
|
|
2418
|
+
_request_auth=_request_auth
|
|
2419
|
+
)
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
@validate_call
|
|
2425
|
+
def post_coupons_by_resource_id_or_reference_deprecate(
|
|
2426
|
+
self,
|
|
2427
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2428
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2429
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2430
|
+
_request_timeout: Union[
|
|
2431
|
+
None,
|
|
2432
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2433
|
+
Tuple[
|
|
2434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2435
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2436
|
+
]
|
|
2437
|
+
] = None,
|
|
2438
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2439
|
+
_content_type: Optional[StrictStr] = None,
|
|
2440
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2441
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2442
|
+
) -> Coupon:
|
|
2443
|
+
"""Deprecate a coupon
|
|
2444
|
+
|
|
2445
|
+
Requires the COUPON.UPDATE permission.
|
|
2446
|
+
|
|
2447
|
+
:param version: version (required)
|
|
2448
|
+
:type version: str
|
|
2449
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2450
|
+
:type resource_id_or_reference: str
|
|
2451
|
+
:param x_platform_id: Platform ID.
|
|
2452
|
+
:type x_platform_id: str
|
|
2453
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2454
|
+
number provided, it will be total request
|
|
2455
|
+
timeout. It can also be a pair (tuple) of
|
|
2456
|
+
(connection, read) timeouts.
|
|
2457
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2458
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2459
|
+
request; this effectively ignores the
|
|
2460
|
+
authentication in the spec for a single request.
|
|
2461
|
+
:type _request_auth: dict, optional
|
|
2462
|
+
:param _content_type: force content-type for the request.
|
|
2463
|
+
:type _content_type: str, Optional
|
|
2464
|
+
:param _headers: set to override the headers for a single
|
|
2465
|
+
request; this effectively ignores the headers
|
|
2466
|
+
in the spec for a single request.
|
|
2467
|
+
:type _headers: dict, optional
|
|
2468
|
+
:param _host_index: set to override the host_index for a single
|
|
2469
|
+
request; this effectively ignores the host_index
|
|
2470
|
+
in the spec for a single request.
|
|
2471
|
+
:type _host_index: int, optional
|
|
2472
|
+
:return: Returns the result object.
|
|
2473
|
+
""" # noqa: E501
|
|
2474
|
+
|
|
2475
|
+
_param = self._post_coupons_by_resource_id_or_reference_deprecate_serialize(
|
|
2476
|
+
version=version,
|
|
2477
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2478
|
+
x_platform_id=x_platform_id,
|
|
2479
|
+
_request_auth=_request_auth,
|
|
2480
|
+
_content_type=_content_type,
|
|
2481
|
+
_headers=_headers,
|
|
2482
|
+
_host_index=_host_index
|
|
2483
|
+
)
|
|
2484
|
+
|
|
2485
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2486
|
+
'200': "Coupon",
|
|
2487
|
+
'400': "ApiError",
|
|
2488
|
+
'401': "ApiError",
|
|
2489
|
+
'403': "ApiError",
|
|
2490
|
+
'500': "ApiError",
|
|
2491
|
+
}
|
|
2492
|
+
response_data = self.api_client.call_api(
|
|
2493
|
+
*_param,
|
|
2494
|
+
_request_timeout=_request_timeout
|
|
2495
|
+
)
|
|
2496
|
+
response_data.read()
|
|
2497
|
+
return self.api_client.response_deserialize(
|
|
2498
|
+
response_data=response_data,
|
|
2499
|
+
response_types_map=_response_types_map,
|
|
2500
|
+
).data
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
@validate_call
|
|
2504
|
+
def post_coupons_by_resource_id_or_reference_deprecate_with_http_info(
|
|
2505
|
+
self,
|
|
2506
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2507
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2508
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2509
|
+
_request_timeout: Union[
|
|
2510
|
+
None,
|
|
2511
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2512
|
+
Tuple[
|
|
2513
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2514
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2515
|
+
]
|
|
2516
|
+
] = None,
|
|
2517
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2518
|
+
_content_type: Optional[StrictStr] = None,
|
|
2519
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2520
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2521
|
+
) -> ApiResponse[Coupon]:
|
|
2522
|
+
"""Deprecate a coupon
|
|
2523
|
+
|
|
2524
|
+
Requires the COUPON.UPDATE permission.
|
|
2525
|
+
|
|
2526
|
+
:param version: version (required)
|
|
2527
|
+
:type version: str
|
|
2528
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2529
|
+
:type resource_id_or_reference: str
|
|
2530
|
+
:param x_platform_id: Platform ID.
|
|
2531
|
+
:type x_platform_id: str
|
|
2532
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2533
|
+
number provided, it will be total request
|
|
2534
|
+
timeout. It can also be a pair (tuple) of
|
|
2535
|
+
(connection, read) timeouts.
|
|
2536
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2537
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2538
|
+
request; this effectively ignores the
|
|
2539
|
+
authentication in the spec for a single request.
|
|
2540
|
+
:type _request_auth: dict, optional
|
|
2541
|
+
:param _content_type: force content-type for the request.
|
|
2542
|
+
:type _content_type: str, Optional
|
|
2543
|
+
:param _headers: set to override the headers for a single
|
|
2544
|
+
request; this effectively ignores the headers
|
|
2545
|
+
in the spec for a single request.
|
|
2546
|
+
:type _headers: dict, optional
|
|
2547
|
+
:param _host_index: set to override the host_index for a single
|
|
2548
|
+
request; this effectively ignores the host_index
|
|
2549
|
+
in the spec for a single request.
|
|
2550
|
+
:type _host_index: int, optional
|
|
2551
|
+
:return: Returns the result object.
|
|
2552
|
+
""" # noqa: E501
|
|
2553
|
+
|
|
2554
|
+
_param = self._post_coupons_by_resource_id_or_reference_deprecate_serialize(
|
|
2555
|
+
version=version,
|
|
2556
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2557
|
+
x_platform_id=x_platform_id,
|
|
2558
|
+
_request_auth=_request_auth,
|
|
2559
|
+
_content_type=_content_type,
|
|
2560
|
+
_headers=_headers,
|
|
2561
|
+
_host_index=_host_index
|
|
2562
|
+
)
|
|
2563
|
+
|
|
2564
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2565
|
+
'200': "Coupon",
|
|
2566
|
+
'400': "ApiError",
|
|
2567
|
+
'401': "ApiError",
|
|
2568
|
+
'403': "ApiError",
|
|
2569
|
+
'500': "ApiError",
|
|
2570
|
+
}
|
|
2571
|
+
response_data = self.api_client.call_api(
|
|
2572
|
+
*_param,
|
|
2573
|
+
_request_timeout=_request_timeout
|
|
2574
|
+
)
|
|
2575
|
+
response_data.read()
|
|
2576
|
+
return self.api_client.response_deserialize(
|
|
2577
|
+
response_data=response_data,
|
|
2578
|
+
response_types_map=_response_types_map,
|
|
2579
|
+
)
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
@validate_call
|
|
2583
|
+
def post_coupons_by_resource_id_or_reference_deprecate_without_preload_content(
|
|
2584
|
+
self,
|
|
2585
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2586
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2587
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2588
|
+
_request_timeout: Union[
|
|
2589
|
+
None,
|
|
2590
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2591
|
+
Tuple[
|
|
2592
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2593
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2594
|
+
]
|
|
2595
|
+
] = None,
|
|
2596
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2597
|
+
_content_type: Optional[StrictStr] = None,
|
|
2598
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2599
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2600
|
+
) -> RESTResponseType:
|
|
2601
|
+
"""Deprecate a coupon
|
|
2602
|
+
|
|
2603
|
+
Requires the COUPON.UPDATE permission.
|
|
2604
|
+
|
|
2605
|
+
:param version: version (required)
|
|
2606
|
+
:type version: str
|
|
2607
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2608
|
+
:type resource_id_or_reference: str
|
|
2609
|
+
:param x_platform_id: Platform ID.
|
|
2610
|
+
:type x_platform_id: str
|
|
2611
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2612
|
+
number provided, it will be total request
|
|
2613
|
+
timeout. It can also be a pair (tuple) of
|
|
2614
|
+
(connection, read) timeouts.
|
|
2615
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2616
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2617
|
+
request; this effectively ignores the
|
|
2618
|
+
authentication in the spec for a single request.
|
|
2619
|
+
:type _request_auth: dict, optional
|
|
2620
|
+
:param _content_type: force content-type for the request.
|
|
2621
|
+
:type _content_type: str, Optional
|
|
2622
|
+
:param _headers: set to override the headers for a single
|
|
2623
|
+
request; this effectively ignores the headers
|
|
2624
|
+
in the spec for a single request.
|
|
2625
|
+
:type _headers: dict, optional
|
|
2626
|
+
:param _host_index: set to override the host_index for a single
|
|
2627
|
+
request; this effectively ignores the host_index
|
|
2628
|
+
in the spec for a single request.
|
|
2629
|
+
:type _host_index: int, optional
|
|
2630
|
+
:return: Returns the result object.
|
|
2631
|
+
""" # noqa: E501
|
|
2632
|
+
|
|
2633
|
+
_param = self._post_coupons_by_resource_id_or_reference_deprecate_serialize(
|
|
2634
|
+
version=version,
|
|
2635
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2636
|
+
x_platform_id=x_platform_id,
|
|
2637
|
+
_request_auth=_request_auth,
|
|
2638
|
+
_content_type=_content_type,
|
|
2639
|
+
_headers=_headers,
|
|
2640
|
+
_host_index=_host_index
|
|
2641
|
+
)
|
|
2642
|
+
|
|
2643
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2644
|
+
'200': "Coupon",
|
|
2645
|
+
'400': "ApiError",
|
|
2646
|
+
'401': "ApiError",
|
|
2647
|
+
'403': "ApiError",
|
|
2648
|
+
'500': "ApiError",
|
|
2649
|
+
}
|
|
2650
|
+
response_data = self.api_client.call_api(
|
|
2651
|
+
*_param,
|
|
2652
|
+
_request_timeout=_request_timeout
|
|
2653
|
+
)
|
|
2654
|
+
return response_data.response
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
def _post_coupons_by_resource_id_or_reference_deprecate_serialize(
|
|
2658
|
+
self,
|
|
2659
|
+
version,
|
|
2660
|
+
resource_id_or_reference,
|
|
2661
|
+
x_platform_id,
|
|
2662
|
+
_request_auth,
|
|
2663
|
+
_content_type,
|
|
2664
|
+
_headers,
|
|
2665
|
+
_host_index,
|
|
2666
|
+
) -> RequestSerialized:
|
|
2667
|
+
|
|
2668
|
+
_host = None
|
|
2669
|
+
|
|
2670
|
+
_collection_formats: Dict[str, str] = {
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
_path_params: Dict[str, str] = {}
|
|
2674
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2675
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2676
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2677
|
+
_files: Dict[
|
|
2678
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2679
|
+
] = {}
|
|
2680
|
+
_body_params: Optional[bytes] = None
|
|
2681
|
+
|
|
2682
|
+
# process the path parameters
|
|
2683
|
+
if version is not None:
|
|
2684
|
+
_path_params['version'] = version
|
|
2685
|
+
if resource_id_or_reference is not None:
|
|
2686
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
2687
|
+
# process the query parameters
|
|
2688
|
+
# process the header parameters
|
|
2689
|
+
if x_platform_id is not None:
|
|
2690
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
2691
|
+
# process the form parameters
|
|
2692
|
+
# process the body parameter
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
# set the HTTP header `Accept`
|
|
2696
|
+
if 'Accept' not in _header_params:
|
|
2697
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2698
|
+
[
|
|
2699
|
+
'application/json',
|
|
2700
|
+
'*/*'
|
|
2701
|
+
]
|
|
2702
|
+
)
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
# authentication setting
|
|
2706
|
+
_auth_settings: List[str] = [
|
|
2707
|
+
'JWT-Authentication',
|
|
2708
|
+
'API-Key'
|
|
2709
|
+
]
|
|
2710
|
+
|
|
2711
|
+
return self.api_client.param_serialize(
|
|
2712
|
+
method='POST',
|
|
2713
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}/deprecate',
|
|
2714
|
+
path_params=_path_params,
|
|
2715
|
+
query_params=_query_params,
|
|
2716
|
+
header_params=_header_params,
|
|
2717
|
+
body=_body_params,
|
|
2718
|
+
post_params=_form_params,
|
|
2719
|
+
files=_files,
|
|
2720
|
+
auth_settings=_auth_settings,
|
|
2721
|
+
collection_formats=_collection_formats,
|
|
2722
|
+
_host=_host,
|
|
2723
|
+
_request_auth=_request_auth
|
|
2724
|
+
)
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
@validate_call
|
|
2730
|
+
def update_coupons_by_resource_id_or_reference(
|
|
2731
|
+
self,
|
|
2732
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2733
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2734
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2735
|
+
coupon_update_request: Optional[CouponUpdateRequest] = None,
|
|
2736
|
+
_request_timeout: Union[
|
|
2737
|
+
None,
|
|
2738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2739
|
+
Tuple[
|
|
2740
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2741
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2742
|
+
]
|
|
2743
|
+
] = None,
|
|
2744
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2745
|
+
_content_type: Optional[StrictStr] = None,
|
|
2746
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2747
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2748
|
+
) -> Coupon:
|
|
2749
|
+
"""Update a coupon
|
|
2750
|
+
|
|
2751
|
+
Requires the COUPON.UPDATE permission.
|
|
2752
|
+
|
|
2753
|
+
:param version: version (required)
|
|
2754
|
+
:type version: str
|
|
2755
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2756
|
+
:type resource_id_or_reference: str
|
|
2757
|
+
:param x_platform_id: Platform ID.
|
|
2758
|
+
:type x_platform_id: str
|
|
2759
|
+
:param coupon_update_request:
|
|
2760
|
+
:type coupon_update_request: CouponUpdateRequest
|
|
2761
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2762
|
+
number provided, it will be total request
|
|
2763
|
+
timeout. It can also be a pair (tuple) of
|
|
2764
|
+
(connection, read) timeouts.
|
|
2765
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2766
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2767
|
+
request; this effectively ignores the
|
|
2768
|
+
authentication in the spec for a single request.
|
|
2769
|
+
:type _request_auth: dict, optional
|
|
2770
|
+
:param _content_type: force content-type for the request.
|
|
2771
|
+
:type _content_type: str, Optional
|
|
2772
|
+
:param _headers: set to override the headers for a single
|
|
2773
|
+
request; this effectively ignores the headers
|
|
2774
|
+
in the spec for a single request.
|
|
2775
|
+
:type _headers: dict, optional
|
|
2776
|
+
:param _host_index: set to override the host_index for a single
|
|
2777
|
+
request; this effectively ignores the host_index
|
|
2778
|
+
in the spec for a single request.
|
|
2779
|
+
:type _host_index: int, optional
|
|
2780
|
+
:return: Returns the result object.
|
|
2781
|
+
""" # noqa: E501
|
|
2782
|
+
|
|
2783
|
+
_param = self._update_coupons_by_resource_id_or_reference_serialize(
|
|
2784
|
+
version=version,
|
|
2785
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2786
|
+
x_platform_id=x_platform_id,
|
|
2787
|
+
coupon_update_request=coupon_update_request,
|
|
2788
|
+
_request_auth=_request_auth,
|
|
2789
|
+
_content_type=_content_type,
|
|
2790
|
+
_headers=_headers,
|
|
2791
|
+
_host_index=_host_index
|
|
2792
|
+
)
|
|
2793
|
+
|
|
2794
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2795
|
+
'200': "Coupon",
|
|
2796
|
+
'400': "ApiError",
|
|
2797
|
+
'401': "ApiError",
|
|
2798
|
+
'403': "ApiError",
|
|
2799
|
+
'500': "ApiError",
|
|
2800
|
+
}
|
|
2801
|
+
response_data = self.api_client.call_api(
|
|
2802
|
+
*_param,
|
|
2803
|
+
_request_timeout=_request_timeout
|
|
2804
|
+
)
|
|
2805
|
+
response_data.read()
|
|
2806
|
+
return self.api_client.response_deserialize(
|
|
2807
|
+
response_data=response_data,
|
|
2808
|
+
response_types_map=_response_types_map,
|
|
2809
|
+
).data
|
|
2810
|
+
|
|
2811
|
+
|
|
2812
|
+
@validate_call
|
|
2813
|
+
def update_coupons_by_resource_id_or_reference_with_http_info(
|
|
2814
|
+
self,
|
|
2815
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2816
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2817
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2818
|
+
coupon_update_request: Optional[CouponUpdateRequest] = None,
|
|
2819
|
+
_request_timeout: Union[
|
|
2820
|
+
None,
|
|
2821
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2822
|
+
Tuple[
|
|
2823
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2824
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2825
|
+
]
|
|
2826
|
+
] = None,
|
|
2827
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2828
|
+
_content_type: Optional[StrictStr] = None,
|
|
2829
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2830
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2831
|
+
) -> ApiResponse[Coupon]:
|
|
2832
|
+
"""Update a coupon
|
|
2833
|
+
|
|
2834
|
+
Requires the COUPON.UPDATE permission.
|
|
2835
|
+
|
|
2836
|
+
:param version: version (required)
|
|
2837
|
+
:type version: str
|
|
2838
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2839
|
+
:type resource_id_or_reference: str
|
|
2840
|
+
:param x_platform_id: Platform ID.
|
|
2841
|
+
:type x_platform_id: str
|
|
2842
|
+
:param coupon_update_request:
|
|
2843
|
+
:type coupon_update_request: CouponUpdateRequest
|
|
2844
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2845
|
+
number provided, it will be total request
|
|
2846
|
+
timeout. It can also be a pair (tuple) of
|
|
2847
|
+
(connection, read) timeouts.
|
|
2848
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2849
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2850
|
+
request; this effectively ignores the
|
|
2851
|
+
authentication in the spec for a single request.
|
|
2852
|
+
:type _request_auth: dict, optional
|
|
2853
|
+
:param _content_type: force content-type for the request.
|
|
2854
|
+
:type _content_type: str, Optional
|
|
2855
|
+
:param _headers: set to override the headers for a single
|
|
2856
|
+
request; this effectively ignores the headers
|
|
2857
|
+
in the spec for a single request.
|
|
2858
|
+
:type _headers: dict, optional
|
|
2859
|
+
:param _host_index: set to override the host_index for a single
|
|
2860
|
+
request; this effectively ignores the host_index
|
|
2861
|
+
in the spec for a single request.
|
|
2862
|
+
:type _host_index: int, optional
|
|
2863
|
+
:return: Returns the result object.
|
|
2864
|
+
""" # noqa: E501
|
|
2865
|
+
|
|
2866
|
+
_param = self._update_coupons_by_resource_id_or_reference_serialize(
|
|
2867
|
+
version=version,
|
|
2868
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2869
|
+
x_platform_id=x_platform_id,
|
|
2870
|
+
coupon_update_request=coupon_update_request,
|
|
2871
|
+
_request_auth=_request_auth,
|
|
2872
|
+
_content_type=_content_type,
|
|
2873
|
+
_headers=_headers,
|
|
2874
|
+
_host_index=_host_index
|
|
2875
|
+
)
|
|
2876
|
+
|
|
2877
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2878
|
+
'200': "Coupon",
|
|
2879
|
+
'400': "ApiError",
|
|
2880
|
+
'401': "ApiError",
|
|
2881
|
+
'403': "ApiError",
|
|
2882
|
+
'500': "ApiError",
|
|
2883
|
+
}
|
|
2884
|
+
response_data = self.api_client.call_api(
|
|
2885
|
+
*_param,
|
|
2886
|
+
_request_timeout=_request_timeout
|
|
2887
|
+
)
|
|
2888
|
+
response_data.read()
|
|
2889
|
+
return self.api_client.response_deserialize(
|
|
2890
|
+
response_data=response_data,
|
|
2891
|
+
response_types_map=_response_types_map,
|
|
2892
|
+
)
|
|
2893
|
+
|
|
2894
|
+
|
|
2895
|
+
@validate_call
|
|
2896
|
+
def update_coupons_by_resource_id_or_reference_without_preload_content(
|
|
2897
|
+
self,
|
|
2898
|
+
version: Annotated[StrictStr, Field(description="version")],
|
|
2899
|
+
resource_id_or_reference: Annotated[StrictStr, Field(description="The ID or reference of the resource.")],
|
|
2900
|
+
x_platform_id: Annotated[Optional[StrictStr], Field(description="Platform ID.")] = None,
|
|
2901
|
+
coupon_update_request: Optional[CouponUpdateRequest] = None,
|
|
2902
|
+
_request_timeout: Union[
|
|
2903
|
+
None,
|
|
2904
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2905
|
+
Tuple[
|
|
2906
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2907
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2908
|
+
]
|
|
2909
|
+
] = None,
|
|
2910
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2911
|
+
_content_type: Optional[StrictStr] = None,
|
|
2912
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2913
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2914
|
+
) -> RESTResponseType:
|
|
2915
|
+
"""Update a coupon
|
|
2916
|
+
|
|
2917
|
+
Requires the COUPON.UPDATE permission.
|
|
2918
|
+
|
|
2919
|
+
:param version: version (required)
|
|
2920
|
+
:type version: str
|
|
2921
|
+
:param resource_id_or_reference: The ID or reference of the resource. (required)
|
|
2922
|
+
:type resource_id_or_reference: str
|
|
2923
|
+
:param x_platform_id: Platform ID.
|
|
2924
|
+
:type x_platform_id: str
|
|
2925
|
+
:param coupon_update_request:
|
|
2926
|
+
:type coupon_update_request: CouponUpdateRequest
|
|
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._update_coupons_by_resource_id_or_reference_serialize(
|
|
2950
|
+
version=version,
|
|
2951
|
+
resource_id_or_reference=resource_id_or_reference,
|
|
2952
|
+
x_platform_id=x_platform_id,
|
|
2953
|
+
coupon_update_request=coupon_update_request,
|
|
2954
|
+
_request_auth=_request_auth,
|
|
2955
|
+
_content_type=_content_type,
|
|
2956
|
+
_headers=_headers,
|
|
2957
|
+
_host_index=_host_index
|
|
2958
|
+
)
|
|
2959
|
+
|
|
2960
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2961
|
+
'200': "Coupon",
|
|
2962
|
+
'400': "ApiError",
|
|
2963
|
+
'401': "ApiError",
|
|
2964
|
+
'403': "ApiError",
|
|
2965
|
+
'500': "ApiError",
|
|
2966
|
+
}
|
|
2967
|
+
response_data = self.api_client.call_api(
|
|
2968
|
+
*_param,
|
|
2969
|
+
_request_timeout=_request_timeout
|
|
2970
|
+
)
|
|
2971
|
+
return response_data.response
|
|
2972
|
+
|
|
2973
|
+
|
|
2974
|
+
def _update_coupons_by_resource_id_or_reference_serialize(
|
|
2975
|
+
self,
|
|
2976
|
+
version,
|
|
2977
|
+
resource_id_or_reference,
|
|
2978
|
+
x_platform_id,
|
|
2979
|
+
coupon_update_request,
|
|
2980
|
+
_request_auth,
|
|
2981
|
+
_content_type,
|
|
2982
|
+
_headers,
|
|
2983
|
+
_host_index,
|
|
2984
|
+
) -> RequestSerialized:
|
|
2985
|
+
|
|
2986
|
+
_host = None
|
|
2987
|
+
|
|
2988
|
+
_collection_formats: Dict[str, str] = {
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
_path_params: Dict[str, str] = {}
|
|
2992
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2993
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2994
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2995
|
+
_files: Dict[
|
|
2996
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2997
|
+
] = {}
|
|
2998
|
+
_body_params: Optional[bytes] = None
|
|
2999
|
+
|
|
3000
|
+
# process the path parameters
|
|
3001
|
+
if version is not None:
|
|
3002
|
+
_path_params['version'] = version
|
|
3003
|
+
if resource_id_or_reference is not None:
|
|
3004
|
+
_path_params['resourceIdOrReference'] = resource_id_or_reference
|
|
3005
|
+
# process the query parameters
|
|
3006
|
+
# process the header parameters
|
|
3007
|
+
if x_platform_id is not None:
|
|
3008
|
+
_header_params['x-platform-id'] = x_platform_id
|
|
3009
|
+
# process the form parameters
|
|
3010
|
+
# process the body parameter
|
|
3011
|
+
if coupon_update_request is not None:
|
|
3012
|
+
_body_params = coupon_update_request
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
# set the HTTP header `Accept`
|
|
3016
|
+
if 'Accept' not in _header_params:
|
|
3017
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3018
|
+
[
|
|
3019
|
+
'application/json',
|
|
3020
|
+
'*/*'
|
|
3021
|
+
]
|
|
3022
|
+
)
|
|
3023
|
+
|
|
3024
|
+
# set the HTTP header `Content-Type`
|
|
3025
|
+
if _content_type:
|
|
3026
|
+
_header_params['Content-Type'] = _content_type
|
|
3027
|
+
else:
|
|
3028
|
+
_default_content_type = (
|
|
3029
|
+
self.api_client.select_header_content_type(
|
|
3030
|
+
[
|
|
3031
|
+
'application/json'
|
|
3032
|
+
]
|
|
3033
|
+
)
|
|
3034
|
+
)
|
|
3035
|
+
if _default_content_type is not None:
|
|
3036
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3037
|
+
|
|
3038
|
+
# authentication setting
|
|
3039
|
+
_auth_settings: List[str] = [
|
|
3040
|
+
'JWT-Authentication',
|
|
3041
|
+
'API-Key'
|
|
3042
|
+
]
|
|
3043
|
+
|
|
3044
|
+
return self.api_client.param_serialize(
|
|
3045
|
+
method='PATCH',
|
|
3046
|
+
resource_path='/v{version}/coupons/{resourceIdOrReference}',
|
|
3047
|
+
path_params=_path_params,
|
|
3048
|
+
query_params=_query_params,
|
|
3049
|
+
header_params=_header_params,
|
|
3050
|
+
body=_body_params,
|
|
3051
|
+
post_params=_form_params,
|
|
3052
|
+
files=_files,
|
|
3053
|
+
auth_settings=_auth_settings,
|
|
3054
|
+
collection_formats=_collection_formats,
|
|
3055
|
+
_host=_host,
|
|
3056
|
+
_request_auth=_request_auth
|
|
3057
|
+
)
|
|
3058
|
+
|
|
3059
|
+
|