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