From 2b11e6e81a95dc6bf8a267e0d1b44f88ef13ea13 Mon Sep 17 00:00:00 2001 From: Thomas De Meyer Date: Thu, 21 Mar 2024 11:03:25 +0100 Subject: [PATCH] fix: fixed 404 response codes not being returned --- .../unreleased/Fixed-20240321-105612.yaml | 3 + Taskfile.yaml | 4 +- ...ore_key_by_store_key_me_active_cart_get.go | 3 +- ...re_key_by_store_key_me_active_cart_head.go | 3 +- ..._cart_by_project_key_me_active_cart_get.go | 3 +- ...cart_by_project_key_me_active_cart_head.go | 3 +- ...by_project_key_api_clients_by_id_delete.go | 3 +- ...ts_by_project_key_api_clients_by_id_get.go | 3 +- ...s_by_project_key_api_clients_by_id_head.go | 3 +- ..._clients_by_project_key_api_clients_get.go | 3 +- ...clients_by_project_key_api_clients_head.go | 3 +- ...clients_by_project_key_api_clients_post.go | 3 +- ...oject_key_orders_edits_by_id_apply_post.go | 3 +- ...iness_unit_key_approval_flows_by_id_get.go | 3 +- ...ness_unit_key_approval_flows_by_id_post.go | 3 +- ...by_business_unit_key_approval_flows_get.go | 3 +- ...iness_unit_key_approval_rules_by_id_get.go | 3 +- ...ness_unit_key_approval_rules_by_id_post.go | 3 +- ...by_business_unit_key_approval_rules_get.go | 3 +- ..._unit_key_approval_rules_key_by_key_get.go | 3 +- ...unit_key_approval_rules_key_by_key_post.go | 3 +- ...y_business_unit_key_approval_rules_post.go | 3 +- ...roject_key_associate_roles_by_id_delete.go | 3 +- ...y_project_key_associate_roles_by_id_get.go | 3 +- ..._project_key_associate_roles_by_id_head.go | 3 +- ..._project_key_associate_roles_by_id_post.go | 3 +- ...oles_by_project_key_associate_roles_get.go | 3 +- ...les_by_project_key_associate_roles_head.go | 3 +- ...t_key_associate_roles_key_by_key_delete.go | 3 +- ...ject_key_associate_roles_key_by_key_get.go | 3 +- ...ect_key_associate_roles_key_by_key_head.go | 3 +- ...ect_key_associate_roles_key_by_key_post.go | 3 +- ...les_by_project_key_associate_roles_post.go | 3 +- ...oject_key_attribute_groups_by_id_delete.go | 3 +- ..._project_key_attribute_groups_by_id_get.go | 3 +- ...project_key_attribute_groups_by_id_head.go | 3 +- ...project_key_attribute_groups_by_id_post.go | 3 +- ...ups_by_project_key_attribute_groups_get.go | 3 +- ...ps_by_project_key_attribute_groups_head.go | 3 +- ..._key_attribute_groups_key_by_key_delete.go | 3 +- ...ect_key_attribute_groups_key_by_key_get.go | 3 +- ...ct_key_attribute_groups_key_by_key_head.go | 3 +- ...ct_key_attribute_groups_key_by_key_post.go | 3 +- ...ps_by_project_key_attribute_groups_post.go | 3 +- ...y_associate_id_business_units_by_id_get.go | 3 +- ..._associate_id_business_units_by_id_head.go | 3 +- ..._associate_id_business_units_by_id_post.go | 3 +- ...iate_by_associate_id_business_units_get.go | 3 +- ...ate_by_associate_id_business_units_head.go | 3 +- ...ociate_id_business_units_key_by_key_get.go | 3 +- ...ciate_id_business_units_key_by_key_head.go | 3 +- ...ciate_id_business_units_key_by_key_post.go | 3 +- ...ate_by_associate_id_business_units_post.go | 3 +- ...project_key_business_units_by_id_delete.go | 3 +- ...by_project_key_business_units_by_id_get.go | 3 +- ...y_project_key_business_units_by_id_head.go | 3 +- ...y_project_key_business_units_by_id_post.go | 3 +- ...units_by_project_key_business_units_get.go | 3 +- ...nits_by_project_key_business_units_head.go | 3 +- ...ct_key_business_units_key_by_key_delete.go | 3 +- ...oject_key_business_units_key_by_key_get.go | 3 +- ...ject_key_business_units_key_by_key_head.go | 3 +- ...ject_key_business_units_key_by_key_post.go | 3 +- ...nits_by_project_key_business_units_post.go | 3 +- ...ject_key_me_business_units_by_id_delete.go | 3 +- ...project_key_me_business_units_by_id_get.go | 3 +- ...roject_key_me_business_units_by_id_head.go | 3 +- ...roject_key_me_business_units_by_id_post.go | 3 +- ...ts_by_project_key_me_business_units_get.go | 3 +- ...s_by_project_key_me_business_units_head.go | 3 +- ...key_me_business_units_key_by_key_delete.go | 3 +- ...ct_key_me_business_units_key_by_key_get.go | 3 +- ...t_key_me_business_units_key_by_key_head.go | 3 +- ...t_key_me_business_units_key_by_key_post.go | 3 +- ...s_by_project_key_me_business_units_post.go | 3 +- platform/client_by_project_key.go | 10 + platform/client_by_project_key_get.go | 3 +- ...project_key_cart_discounts_by_id_delete.go | 3 +- ...by_project_key_cart_discounts_by_id_get.go | 3 +- ...y_project_key_cart_discounts_by_id_head.go | 3 +- ...y_project_key_cart_discounts_by_id_post.go | 3 +- ...ounts_by_project_key_cart_discounts_get.go | 3 +- ...unts_by_project_key_cart_discounts_head.go | 3 +- ...ct_key_cart_discounts_key_by_key_delete.go | 3 +- ...oject_key_cart_discounts_key_by_key_get.go | 3 +- ...ject_key_cart_discounts_key_by_key_head.go | 3 +- ...ject_key_cart_discounts_key_by_key_post.go | 3 +- ...unts_by_project_key_cart_discounts_post.go | 3 +- ...y_store_key_cart_discounts_by_id_delete.go | 3 +- ...y_by_store_key_cart_discounts_by_id_get.go | 3 +- ..._by_store_key_cart_discounts_by_id_head.go | 3 +- ..._by_store_key_cart_discounts_by_id_post.go | 3 +- ...ore_key_by_store_key_cart_discounts_get.go | 3 +- ...re_key_by_store_key_cart_discounts_head.go | 3 +- ...re_key_cart_discounts_key_by_key_delete.go | 3 +- ...store_key_cart_discounts_key_by_key_get.go | 3 +- ...tore_key_cart_discounts_key_by_key_head.go | 3 +- ...tore_key_cart_discounts_key_by_key_post.go | 3 +- ...re_key_by_store_key_cart_discounts_post.go | 3 +- ...by_business_unit_key_carts_by_id_delete.go | 3 +- ...ey_by_business_unit_key_carts_by_id_get.go | 3 +- ...y_by_business_unit_key_carts_by_id_head.go | 3 +- ...y_by_business_unit_key_carts_by_id_post.go | 3 +- ...unit_key_by_business_unit_key_carts_get.go | 3 +- ...nit_key_by_business_unit_key_carts_head.go | 3 +- ...siness_unit_key_carts_key_by_key_delete.go | 3 +- ..._business_unit_key_carts_key_by_key_get.go | 3 +- ...business_unit_key_carts_key_by_key_head.go | 3 +- ...business_unit_key_carts_key_by_key_post.go | 3 +- ...nit_key_by_business_unit_key_carts_post.go | 3 +- ...carts_by_project_key_carts_by_id_delete.go | 3 +- ...nt_carts_by_project_key_carts_by_id_get.go | 3 +- ...t_carts_by_project_key_carts_by_id_head.go | 3 +- ...t_carts_by_project_key_carts_by_id_post.go | 3 +- ...ey_carts_customer_id_by_customer_id_get.go | 3 +- ...y_carts_customer_id_by_customer_id_head.go | 3 +- .../client_carts_by_project_key_carts_get.go | 3 +- .../client_carts_by_project_key_carts_head.go | 3 +- ..._by_project_key_carts_key_by_key_delete.go | 3 +- ...rts_by_project_key_carts_key_by_key_get.go | 3 +- ...ts_by_project_key_carts_key_by_key_head.go | 3 +- ...ts_by_project_key_carts_key_by_key_post.go | 3 +- .../client_carts_by_project_key_carts_post.go | 3 +- ...ore_key_by_store_key_carts_by_id_delete.go | 3 +- ..._store_key_by_store_key_carts_by_id_get.go | 3 +- ...store_key_by_store_key_carts_by_id_head.go | 3 +- ...store_key_by_store_key_carts_by_id_post.go | 3 +- ...ey_carts_customer_id_by_customer_id_get.go | 3 +- ...y_carts_customer_id_by_customer_id_head.go | 3 +- ...key_in_store_key_by_store_key_carts_get.go | 3 +- ...ey_in_store_key_by_store_key_carts_head.go | 3 +- ...ey_by_store_key_carts_key_by_key_delete.go | 3 +- ...e_key_by_store_key_carts_key_by_key_get.go | 3 +- ..._key_by_store_key_carts_key_by_key_head.go | 3 +- ..._key_by_store_key_carts_key_by_key_post.go | 3 +- ...ey_in_store_key_by_store_key_carts_post.go | 3 +- ..._key_by_store_key_me_carts_by_id_delete.go | 3 +- ...ore_key_by_store_key_me_carts_by_id_get.go | 3 +- ...re_key_by_store_key_me_carts_by_id_head.go | 3 +- ...re_key_by_store_key_me_carts_by_id_post.go | 3 +- ..._in_store_key_by_store_key_me_carts_get.go | 3 +- ...in_store_key_by_store_key_me_carts_head.go | 3 +- ...in_store_key_by_store_key_me_carts_post.go | 3 +- ...ts_by_project_key_me_carts_by_id_delete.go | 3 +- ...carts_by_project_key_me_carts_by_id_get.go | 3 +- ...arts_by_project_key_me_carts_by_id_head.go | 3 +- ...arts_by_project_key_me_carts_by_id_post.go | 3 +- ...lient_carts_by_project_key_me_carts_get.go | 3 +- ...ient_carts_by_project_key_me_carts_head.go | 3 +- ..._project_key_me_carts_key_by_key_delete.go | 3 +- ..._by_project_key_me_carts_key_by_key_get.go | 3 +- ...by_project_key_me_carts_key_by_key_head.go | 3 +- ...by_project_key_me_carts_key_by_key_post.go | 3 +- ...ient_carts_by_project_key_me_carts_post.go | 3 +- ..._by_project_key_categories_by_id_delete.go | 3 +- ...ies_by_project_key_categories_by_id_get.go | 3 +- ...es_by_project_key_categories_by_id_head.go | 3 +- ...es_by_project_key_categories_by_id_post.go | 3 +- ...ategories_by_project_key_categories_get.go | 3 +- ...tegories_by_project_key_categories_head.go | 3 +- ...roject_key_categories_key_by_key_delete.go | 3 +- ...y_project_key_categories_key_by_key_get.go | 3 +- ..._project_key_categories_key_by_key_head.go | 3 +- ..._project_key_categories_key_by_key_post.go | 3 +- ...tegories_by_project_key_categories_post.go | 3 +- ...ls_by_project_key_channels_by_id_delete.go | 3 +- ...nnels_by_project_key_channels_by_id_get.go | 3 +- ...nels_by_project_key_channels_by_id_head.go | 3 +- ...nels_by_project_key_channels_by_id_post.go | 3 +- ...nt_channels_by_project_key_channels_get.go | 3 +- ...t_channels_by_project_key_channels_head.go | 3 +- ...t_channels_by_project_key_channels_post.go | 3 +- ...roject_key_customers_email_confirm_post.go | 3 +- ..._store_key_customers_email_confirm_post.go | 3 +- ..._key_by_store_key_me_email_confirm_post.go | 3 +- ...rm_by_project_key_me_email_confirm_post.go | 3 +- ...stom_objects_by_container_by_key_delete.go | 3 +- ..._custom_objects_by_container_by_key_get.go | 3 +- ...ect_key_custom_objects_by_container_get.go | 3 +- ...jects_by_project_key_custom_objects_get.go | 3 +- ...ects_by_project_key_custom_objects_head.go | 3 +- ...ects_by_project_key_custom_objects_post.go | 3 +- ...roject_key_customer_groups_by_id_delete.go | 3 +- ...y_project_key_customer_groups_by_id_get.go | 3 +- ..._project_key_customer_groups_by_id_head.go | 3 +- ..._project_key_customer_groups_by_id_post.go | 3 +- ...oups_by_project_key_customer_groups_get.go | 3 +- ...ups_by_project_key_customer_groups_head.go | 3 +- ...t_key_customer_groups_key_by_key_delete.go | 3 +- ...ject_key_customer_groups_key_by_key_get.go | 3 +- ...ect_key_customer_groups_key_by_key_head.go | 3 +- ...ect_key_customer_groups_key_by_key_post.go | 3 +- ...ups_by_project_key_customer_groups_post.go | 3 +- ...s_by_project_key_customers_by_id_delete.go | 3 +- ...mers_by_project_key_customers_by_id_get.go | 3 +- ...ers_by_project_key_customers_by_id_head.go | 3 +- ...ers_by_project_key_customers_by_id_post.go | 3 +- ...ustomers_email_token_by_email_token_get.go | 3 +- ..._customers_by_project_key_customers_get.go | 3 +- ...customers_by_project_key_customers_head.go | 3 +- ...project_key_customers_key_by_key_delete.go | 3 +- ...by_project_key_customers_key_by_key_get.go | 3 +- ...y_project_key_customers_key_by_key_head.go | 3 +- ...y_project_key_customers_key_by_key_post.go | 3 +- ...rs_password_token_by_password_token_get.go | 3 +- ...customers_by_project_key_customers_post.go | 3 +- ...key_by_store_key_customers_by_id_delete.go | 3 +- ...re_key_by_store_key_customers_by_id_get.go | 3 +- ...e_key_by_store_key_customers_by_id_head.go | 3 +- ...e_key_by_store_key_customers_by_id_post.go | 3 +- ...ustomers_email_token_by_email_token_get.go | 3 +- ...in_store_key_by_store_key_customers_get.go | 3 +- ...n_store_key_by_store_key_customers_head.go | 3 +- ...y_store_key_customers_key_by_key_delete.go | 3 +- ...y_by_store_key_customers_key_by_key_get.go | 3 +- ..._by_store_key_customers_key_by_key_head.go | 3 +- ..._by_store_key_customers_key_by_key_post.go | 3 +- ...rs_password_token_by_password_token_get.go | 3 +- ...n_store_key_by_store_key_customers_post.go | 3 +- ...project_key_discount_codes_by_id_delete.go | 3 +- ...by_project_key_discount_codes_by_id_get.go | 3 +- ...y_project_key_discount_codes_by_id_head.go | 3 +- ...y_project_key_discount_codes_by_id_post.go | 3 +- ...codes_by_project_key_discount_codes_get.go | 3 +- ...odes_by_project_key_discount_codes_head.go | 3 +- ...ct_key_discount_codes_key_by_key_delete.go | 3 +- ...oject_key_discount_codes_key_by_key_get.go | 3 +- ...ject_key_discount_codes_key_by_key_head.go | 3 +- ...ject_key_discount_codes_key_by_key_post.go | 3 +- ...odes_by_project_key_discount_codes_post.go | 3 +- ...y_project_key_orders_edits_by_id_delete.go | 3 +- ...s_by_project_key_orders_edits_by_id_get.go | 3 +- ..._by_project_key_orders_edits_by_id_head.go | 3 +- ..._by_project_key_orders_edits_by_id_post.go | 3 +- ...t_edits_by_project_key_orders_edits_get.go | 3 +- ..._edits_by_project_key_orders_edits_head.go | 3 +- ...ject_key_orders_edits_key_by_key_delete.go | 3 +- ...project_key_orders_edits_key_by_key_get.go | 3 +- ...roject_key_orders_edits_key_by_key_head.go | 3 +- ...roject_key_orders_edits_key_by_key_post.go | 3 +- ..._edits_by_project_key_orders_edits_post.go | 3 +- ..._project_key_customers_email_token_post.go | 3 +- ...by_store_key_customers_email_token_post.go | 3 +- ..._by_project_key_extensions_by_id_delete.go | 3 +- ...ons_by_project_key_extensions_by_id_get.go | 3 +- ...ns_by_project_key_extensions_by_id_head.go | 3 +- ...ns_by_project_key_extensions_by_id_post.go | 3 +- ...xtensions_by_project_key_extensions_get.go | 3 +- ...tensions_by_project_key_extensions_head.go | 3 +- ...roject_key_extensions_key_by_key_delete.go | 3 +- ...y_project_key_extensions_key_by_key_get.go | 3 +- ..._project_key_extensions_key_by_key_head.go | 3 +- ..._project_key_extensions_key_by_key_post.go | 3 +- ...tensions_by_project_key_extensions_post.go | 3 +- ...ent_graphql_by_project_key_graphql_post.go | 3 +- ...mport_by_project_key_orders_import_post.go | 3 +- ...y_project_key_in_store_key_by_store_key.go | 18 + ...y_by_project_key_inventory_by_id_delete.go | 3 +- ...tory_by_project_key_inventory_by_id_get.go | 3 +- ...ory_by_project_key_inventory_by_id_head.go | 3 +- ...ory_by_project_key_inventory_by_id_post.go | 3 +- ..._inventory_by_project_key_inventory_get.go | 3 +- ...inventory_by_project_key_inventory_head.go | 3 +- ...project_key_inventory_key_by_key_delete.go | 3 +- ...by_project_key_inventory_key_by_key_get.go | 3 +- ...y_project_key_inventory_key_by_key_head.go | 3 +- ...y_project_key_inventory_key_by_key_post.go | 3 +- ...inventory_by_project_key_inventory_post.go | 3 +- ...ect_key_in_store_key_by_store_key_login.go | 2 + ...ey_in_store_key_by_store_key_login_post.go | 5 +- ...in_store_key_by_store_key_me_login_post.go | 3 +- platform/client_login_by_project_key_login.go | 2 + .../client_login_by_project_key_login_post.go | 5 +- ...ient_login_by_project_key_me_login_post.go | 3 +- ..._key_shipping_methods_matching_cart_get.go | 3 +- ...key_shipping_methods_matching_cart_head.go | 3 +- ..._key_shipping_methods_matching_cart_get.go | 3 +- ...key_shipping_methods_matching_cart_head.go | 3 +- ...ping_methods_matching_cart_location_get.go | 3 +- ...ing_methods_matching_cart_location_head.go | 3 +- ..._shipping_methods_matching_location_get.go | 3 +- ...shipping_methods_matching_location_head.go | 3 +- ...shipping_methods_matching_orderedit_get.go | 3 +- ...hipping_methods_matching_orderedit_head.go | 3 +- .../client_me_by_project_key_me_delete.go | 3 +- platform/client_me_by_project_key_me_get.go | 3 +- platform/client_me_by_project_key_me_post.go | 3 +- ...sages_by_project_key_messages_by_id_get.go | 3 +- ...ages_by_project_key_messages_by_id_head.go | 3 +- ...nt_messages_by_project_key_messages_get.go | 3 +- ...t_messages_by_project_key_messages_head.go | 3 +- ...y_by_business_unit_key_orders_by_id_get.go | 3 +- ..._by_business_unit_key_orders_by_id_head.go | 3 +- ..._by_business_unit_key_orders_by_id_post.go | 3 +- ...nit_key_by_business_unit_key_orders_get.go | 3 +- ...it_key_by_business_unit_key_orders_head.go | 3 +- ...orders_order_number_by_order_number_get.go | 3 +- ...rders_order_number_by_order_number_head.go | 3 +- ...rders_order_number_by_order_number_post.go | 3 +- ...it_key_by_business_unit_key_orders_post.go | 3 +- ...re_key_by_store_key_me_orders_by_id_get.go | 3 +- ...e_key_by_store_key_me_orders_by_id_head.go | 3 +- ...in_store_key_by_store_key_me_orders_get.go | 3 +- ...n_store_key_by_store_key_me_orders_head.go | 3 +- ...n_store_key_by_store_key_me_orders_post.go | 3 +- ...re_key_by_store_key_orders_by_id_delete.go | 3 +- ...store_key_by_store_key_orders_by_id_get.go | 3 +- ...tore_key_by_store_key_orders_by_id_head.go | 3 +- ...tore_key_by_store_key_orders_by_id_post.go | 3 +- ...ey_in_store_key_by_store_key_orders_get.go | 3 +- ...y_in_store_key_by_store_key_orders_head.go | 3 +- ...ers_order_number_by_order_number_delete.go | 3 +- ...orders_order_number_by_order_number_get.go | 3 +- ...rders_order_number_by_order_number_head.go | 3 +- ...rders_order_number_by_order_number_post.go | 3 +- ...y_in_store_key_by_store_key_orders_post.go | 3 +- ...ders_by_project_key_me_orders_by_id_get.go | 3 +- ...ers_by_project_key_me_orders_by_id_head.go | 3 +- ...ent_orders_by_project_key_me_orders_get.go | 3 +- ...nt_orders_by_project_key_me_orders_head.go | 3 +- ...nt_orders_by_project_key_me_orders_post.go | 3 +- ...ders_by_project_key_orders_by_id_delete.go | 3 +- ..._orders_by_project_key_orders_by_id_get.go | 3 +- ...orders_by_project_key_orders_by_id_head.go | 3 +- ...orders_by_project_key_orders_by_id_post.go | 3 +- ...client_orders_by_project_key_orders_get.go | 3 +- ...lient_orders_by_project_key_orders_head.go | 3 +- ...ers_order_number_by_order_number_delete.go | 3 +- ...orders_order_number_by_order_number_get.go | 3 +- ...rders_order_number_by_order_number_head.go | 3 +- ...rders_order_number_by_order_number_post.go | 3 +- ...lient_orders_by_project_key_orders_post.go | 3 +- ..._by_project_key_customers_password_post.go | 3 +- ...ey_by_store_key_customers_password_post.go | 3 +- ...store_key_by_store_key_me_password_post.go | 3 +- ...assword_by_project_key_me_password_post.go | 3 +- ...oject_key_customers_password_token_post.go | 3 +- ...store_key_customers_password_token_post.go | 3 +- ...by_project_key_me_payments_by_id_delete.go | 3 +- ...ts_by_project_key_me_payments_by_id_get.go | 3 +- ...s_by_project_key_me_payments_by_id_head.go | 3 +- ...s_by_project_key_me_payments_by_id_post.go | 3 +- ...payments_by_project_key_me_payments_get.go | 3 +- ...ayments_by_project_key_me_payments_head.go | 3 +- ...ayments_by_project_key_me_payments_post.go | 3 +- ...ts_by_project_key_payments_by_id_delete.go | 3 +- ...ments_by_project_key_payments_by_id_get.go | 3 +- ...ents_by_project_key_payments_by_id_head.go | 3 +- ...ents_by_project_key_payments_by_id_post.go | 3 +- ...nt_payments_by_project_key_payments_get.go | 3 +- ...t_payments_by_project_key_payments_head.go | 3 +- ..._project_key_payments_key_by_key_delete.go | 3 +- ..._by_project_key_payments_key_by_key_get.go | 3 +- ...by_project_key_payments_key_by_key_head.go | 3 +- ...by_project_key_payments_key_by_key_post.go | 3 +- ...t_payments_by_project_key_payments_post.go | 3 +- ...ject_key_product_discounts_by_id_delete.go | 3 +- ...project_key_product_discounts_by_id_get.go | 3 +- ...roject_key_product_discounts_by_id_head.go | 3 +- ...roject_key_product_discounts_by_id_post.go | 3 +- ...ts_by_project_key_product_discounts_get.go | 3 +- ...s_by_project_key_product_discounts_head.go | 3 +- ...key_product_discounts_key_by_key_delete.go | 3 +- ...ct_key_product_discounts_key_by_key_get.go | 3 +- ...t_key_product_discounts_key_by_key_head.go | 3 +- ...t_key_product_discounts_key_by_key_post.go | 3 +- ...s_by_project_key_product_discounts_post.go | 3 +- ..._by_store_key_product_projections_by_id.go | 2 +- ...store_key_product_projections_by_id_get.go | 5 +- ...tore_key_product_projections_by_id_head.go | 3 +- ...tore_key_product_projections_key_by_key.go | 2 +- ..._key_product_projections_key_by_key_get.go | 5 +- ...key_product_projections_key_by_key_head.go | 3 +- ...oject_key_product_projections_by_id_get.go | 3 +- ...ject_key_product_projections_by_id_head.go | 3 +- ..._by_project_key_product_projections_get.go | 3 +- ...by_project_key_product_projections_head.go | 3 +- ..._key_product_projections_key_by_key_get.go | 3 +- ...key_product_projections_key_by_key_head.go | 3 +- ...e_key_product_selection_assignments_get.go | 3 +- ...ect_key_product_selections_by_id_delete.go | 3 +- ...roject_key_product_selections_by_id_get.go | 3 +- ...oject_key_product_selections_by_id_head.go | 3 +- ...oject_key_product_selections_by_id_post.go | 3 +- ...s_by_project_key_product_selections_get.go | 3 +- ..._by_project_key_product_selections_head.go | 3 +- ...ey_product_selections_key_by_key_delete.go | 3 +- ...t_key_product_selections_key_by_key_get.go | 3 +- ..._key_product_selections_key_by_key_head.go | 3 +- ..._key_product_selections_key_by_key_post.go | 3 +- ..._by_project_key_product_selections_post.go | 3 +- ...y_products_by_id_product_selections_get.go | 3 +- ...ducts_key_by_key_product_selections_get.go | 3 +- ...tore_key_by_store_key_product_tailoring.go | 39 + ..._key_by_store_key_product_tailoring_get.go | 222 ++++ ...key_by_store_key_product_tailoring_post.go | 152 +++ ...roducts_by_product_id_product_tailoring.go | 48 + ..._by_product_id_product_tailoring_delete.go | 162 +++ ...cts_by_product_id_product_tailoring_get.go | 143 +++ ...ts_by_product_id_product_tailoring_post.go | 156 +++ ...ts_key_by_product_key_product_tailoring.go | 48 + ...by_product_key_product_tailoring_delete.go | 162 +++ ...ey_by_product_key_product_tailoring_get.go | 143 +++ ...y_by_product_key_product_tailoring_post.go | 156 +++ ...loring_by_project_key_product_tailoring.go | 45 + ..._by_project_key_product_tailoring_by_id.go | 39 + ...ject_key_product_tailoring_by_id_delete.go | 162 +++ ...project_key_product_tailoring_by_id_get.go | 138 +++ ...roject_key_product_tailoring_by_id_post.go | 151 +++ ...ng_by_project_key_product_tailoring_get.go | 217 ++++ ...roject_key_product_tailoring_key_by_key.go | 39 + ...key_product_tailoring_key_by_key_delete.go | 162 +++ ...ct_key_product_tailoring_key_by_key_get.go | 138 +++ ...t_key_product_tailoring_key_by_key_post.go | 151 +++ ...g_by_project_key_product_tailoring_post.go | 149 +++ ..._project_key_product_types_by_id_delete.go | 3 +- ..._by_project_key_product_types_by_id_get.go | 3 +- ...by_project_key_product_types_by_id_head.go | 3 +- ...by_project_key_product_types_by_id_post.go | 3 +- ..._types_by_project_key_product_types_get.go | 3 +- ...types_by_project_key_product_types_head.go | 3 +- ...ect_key_product_types_key_by_key_delete.go | 3 +- ...roject_key_product_types_key_by_key_get.go | 3 +- ...oject_key_product_types_key_by_key_head.go | 3 +- ...oject_key_product_types_key_by_key_post.go | 3 +- ...types_by_project_key_product_types_post.go | 3 +- ..._key_in_store_key_by_store_key_products.go | 26 + ...key_by_store_key_products_by_product_id.go | 19 + ...y_store_key_products_key_by_product_key.go | 19 + ...y_product_selections_by_id_products_get.go | 3 +- ...duct_selections_key_by_key_products_get.go | 3 +- ...ts_by_project_key_products_by_id_delete.go | 3 +- ...ducts_by_project_key_products_by_id_get.go | 3 +- ...ucts_by_project_key_products_by_id_head.go | 3 +- ...ucts_by_project_key_products_by_id_post.go | 3 +- ...nt_products_by_project_key_products_get.go | 3 +- ...t_products_by_project_key_products_head.go | 3 +- ..._project_key_products_key_by_key_delete.go | 3 +- ..._by_project_key_products_key_by_key_get.go | 3 +- ...by_project_key_products_key_by_key_head.go | 3 +- ...by_project_key_products_key_by_key_post.go | 3 +- ...t_products_by_project_key_products_post.go | 3 +- ...iness_unit_key_quote_requests_by_id_get.go | 3 +- ...ness_unit_key_quote_requests_by_id_head.go | 3 +- ...ness_unit_key_quote_requests_by_id_post.go | 3 +- ...by_business_unit_key_quote_requests_get.go | 3 +- ...y_business_unit_key_quote_requests_head.go | 3 +- ..._unit_key_quote_requests_key_by_key_get.go | 3 +- ...unit_key_quote_requests_key_by_key_head.go | 3 +- ...unit_key_quote_requests_key_by_key_post.go | 3 +- ...y_business_unit_key_quote_requests_post.go | 3 +- ...ject_key_me_quote_requests_by_id_delete.go | 3 +- ...project_key_me_quote_requests_by_id_get.go | 3 +- ...roject_key_me_quote_requests_by_id_head.go | 3 +- ...roject_key_me_quote_requests_by_id_post.go | 3 +- ...ts_by_project_key_me_quote_requests_get.go | 3 +- ...s_by_project_key_me_quote_requests_head.go | 3 +- ...key_me_quote_requests_key_by_key_delete.go | 3 +- ...ct_key_me_quote_requests_key_by_key_get.go | 3 +- ...t_key_me_quote_requests_key_by_key_head.go | 3 +- ...t_key_me_quote_requests_key_by_key_post.go | 3 +- ...s_by_project_key_me_quote_requests_post.go | 3 +- ...project_key_quote_requests_by_id_delete.go | 3 +- ...by_project_key_quote_requests_by_id_get.go | 3 +- ...y_project_key_quote_requests_by_id_head.go | 3 +- ...y_project_key_quote_requests_by_id_post.go | 3 +- ...uests_by_project_key_quote_requests_get.go | 3 +- ...ests_by_project_key_quote_requests_head.go | 3 +- ...ct_key_quote_requests_key_by_key_delete.go | 3 +- ...oject_key_quote_requests_key_by_key_get.go | 3 +- ...ject_key_quote_requests_key_by_key_head.go | 3 +- ...ject_key_quote_requests_key_by_key_post.go | 3 +- ...ests_by_project_key_quote_requests_post.go | 3 +- ...by_business_unit_key_orders_quotes_post.go | 3 +- ...y_by_business_unit_key_quotes_by_id_get.go | 3 +- ..._by_business_unit_key_quotes_by_id_head.go | 3 +- ..._by_business_unit_key_quotes_by_id_post.go | 3 +- ...nit_key_by_business_unit_key_quotes_get.go | 3 +- ...it_key_by_business_unit_key_quotes_head.go | 3 +- ...business_unit_key_quotes_key_by_key_get.go | 3 +- ...usiness_unit_key_quotes_key_by_key_head.go | 3 +- ...usiness_unit_key_quotes_key_by_key_post.go | 3 +- ...es_by_project_key_me_orders_quotes_post.go | 3 +- ...otes_by_project_key_me_quotes_by_id_get.go | 3 +- ...tes_by_project_key_me_quotes_by_id_head.go | 3 +- ...tes_by_project_key_me_quotes_by_id_post.go | 3 +- ...ent_quotes_by_project_key_me_quotes_get.go | 3 +- ...nt_quotes_by_project_key_me_quotes_head.go | 3 +- ...by_project_key_me_quotes_key_by_key_get.go | 3 +- ...y_project_key_me_quotes_key_by_key_head.go | 3 +- ...y_project_key_me_quotes_key_by_key_post.go | 3 +- ...uotes_by_project_key_orders_quotes_post.go | 3 +- ...otes_by_project_key_quotes_by_id_delete.go | 3 +- ..._quotes_by_project_key_quotes_by_id_get.go | 3 +- ...quotes_by_project_key_quotes_by_id_head.go | 3 +- ...quotes_by_project_key_quotes_by_id_post.go | 3 +- ...client_quotes_by_project_key_quotes_get.go | 3 +- ...lient_quotes_by_project_key_quotes_head.go | 3 +- ...by_project_key_quotes_key_by_key_delete.go | 3 +- ...es_by_project_key_quotes_key_by_key_get.go | 3 +- ...s_by_project_key_quotes_key_by_key_head.go | 3 +- ...s_by_project_key_quotes_key_by_key_post.go | 3 +- ...lient_quotes_by_project_key_quotes_post.go | 3 +- ..._business_unit_key_carts_replicate_post.go | 3 +- ...ate_by_project_key_carts_replicate_post.go | 3 +- ...e_key_by_store_key_carts_replicate_post.go | 3 +- ..._by_project_key_me_carts_replicate_post.go | 3 +- ...oject_key_customers_password_reset_post.go | 3 +- ...store_key_customers_password_reset_post.go | 3 +- ...key_by_store_key_me_password_reset_post.go | 3 +- ...t_by_project_key_me_password_reset_post.go | 3 +- ...ews_by_project_key_reviews_by_id_delete.go | 3 +- ...eviews_by_project_key_reviews_by_id_get.go | 3 +- ...views_by_project_key_reviews_by_id_head.go | 3 +- ...views_by_project_key_reviews_by_id_post.go | 3 +- ...ient_reviews_by_project_key_reviews_get.go | 3 +- ...ent_reviews_by_project_key_reviews_head.go | 3 +- ...y_project_key_reviews_key_by_key_delete.go | 3 +- ...s_by_project_key_reviews_key_by_key_get.go | 3 +- ..._by_project_key_reviews_key_by_key_head.go | 3 +- ..._by_project_key_reviews_key_by_key_post.go | 3 +- ...ent_reviews_by_project_key_reviews_post.go | 3 +- ...earch_by_project_key_orders_search_head.go | 3 +- ...earch_by_project_key_orders_search_post.go | 3 +- ...ject_key_product_projections_search_get.go | 3 +- ...ect_key_product_projections_search_post.go | 3 +- ...oject_key_shipping_methods_by_id_delete.go | 3 +- ..._project_key_shipping_methods_by_id_get.go | 3 +- ...project_key_shipping_methods_by_id_head.go | 3 +- ...project_key_shipping_methods_by_id_post.go | 3 +- ...ods_by_project_key_shipping_methods_get.go | 3 +- ...ds_by_project_key_shipping_methods_head.go | 3 +- ..._key_shipping_methods_key_by_key_delete.go | 3 +- ...ect_key_shipping_methods_key_by_key_get.go | 3 +- ...ct_key_shipping_methods_key_by_key_head.go | 3 +- ...ct_key_shipping_methods_key_by_key_post.go | 3 +- ...ds_by_project_key_shipping_methods_post.go | 3 +- ...tore_key_me_shopping_lists_by_id_delete.go | 3 +- ...y_store_key_me_shopping_lists_by_id_get.go | 3 +- ..._store_key_me_shopping_lists_by_id_head.go | 3 +- ..._store_key_me_shopping_lists_by_id_post.go | 3 +- ..._key_by_store_key_me_shopping_lists_get.go | 3 +- ...key_by_store_key_me_shopping_lists_head.go | 3 +- ...key_me_shopping_lists_key_by_key_delete.go | 3 +- ...re_key_me_shopping_lists_key_by_key_get.go | 3 +- ...e_key_me_shopping_lists_key_by_key_head.go | 3 +- ...e_key_me_shopping_lists_key_by_key_post.go | 3 +- ...key_by_store_key_me_shopping_lists_post.go | 3 +- ...y_store_key_shopping_lists_by_id_delete.go | 3 +- ...y_by_store_key_shopping_lists_by_id_get.go | 3 +- ..._by_store_key_shopping_lists_by_id_head.go | 3 +- ..._by_store_key_shopping_lists_by_id_post.go | 3 +- ...ore_key_by_store_key_shopping_lists_get.go | 3 +- ...re_key_by_store_key_shopping_lists_head.go | 3 +- ...re_key_shopping_lists_key_by_key_delete.go | 3 +- ...store_key_shopping_lists_key_by_key_get.go | 3 +- ...tore_key_shopping_lists_key_by_key_head.go | 3 +- ...tore_key_shopping_lists_key_by_key_post.go | 3 +- ...re_key_by_store_key_shopping_lists_post.go | 3 +- ...ject_key_me_shopping_lists_by_id_delete.go | 3 +- ...project_key_me_shopping_lists_by_id_get.go | 3 +- ...roject_key_me_shopping_lists_by_id_head.go | 3 +- ...roject_key_me_shopping_lists_by_id_post.go | 3 +- ...ts_by_project_key_me_shopping_lists_get.go | 3 +- ...s_by_project_key_me_shopping_lists_head.go | 3 +- ...key_me_shopping_lists_key_by_key_delete.go | 3 +- ...ct_key_me_shopping_lists_key_by_key_get.go | 3 +- ...t_key_me_shopping_lists_key_by_key_head.go | 3 +- ...t_key_me_shopping_lists_key_by_key_post.go | 3 +- ...s_by_project_key_me_shopping_lists_post.go | 3 +- ...project_key_shopping_lists_by_id_delete.go | 3 +- ...by_project_key_shopping_lists_by_id_get.go | 3 +- ...y_project_key_shopping_lists_by_id_head.go | 3 +- ...y_project_key_shopping_lists_by_id_post.go | 3 +- ...lists_by_project_key_shopping_lists_get.go | 3 +- ...ists_by_project_key_shopping_lists_head.go | 3 +- ...ct_key_shopping_lists_key_by_key_delete.go | 3 +- ...oject_key_shopping_lists_key_by_key_get.go | 3 +- ...ject_key_shopping_lists_key_by_key_head.go | 3 +- ...ject_key_shopping_lists_key_by_key_post.go | 3 +- ...ists_by_project_key_shopping_lists_post.go | 3 +- ...n_store_key_by_store_key_me_signup_post.go | 3 +- ...nt_signup_by_project_key_me_signup_post.go | 3 +- ..._project_key_staged_quotes_by_id_delete.go | 3 +- ..._by_project_key_staged_quotes_by_id_get.go | 3 +- ...by_project_key_staged_quotes_by_id_head.go | 3 +- ...by_project_key_staged_quotes_by_id_post.go | 3 +- ...quotes_by_project_key_staged_quotes_get.go | 3 +- ...uotes_by_project_key_staged_quotes_head.go | 3 +- ...ect_key_staged_quotes_key_by_key_delete.go | 3 +- ...roject_key_staged_quotes_key_by_key_get.go | 3 +- ...oject_key_staged_quotes_key_by_key_head.go | 3 +- ...oject_key_staged_quotes_key_by_key_post.go | 3 +- ...uotes_by_project_key_staged_quotes_post.go | 3 +- ...ject_key_standalone_prices_by_id_delete.go | 3 +- ...project_key_standalone_prices_by_id_get.go | 3 +- ...roject_key_standalone_prices_by_id_head.go | 3 +- ...roject_key_standalone_prices_by_id_post.go | 3 +- ...es_by_project_key_standalone_prices_get.go | 3 +- ...s_by_project_key_standalone_prices_head.go | 3 +- ...key_standalone_prices_key_by_key_delete.go | 3 +- ...ct_key_standalone_prices_key_by_key_get.go | 3 +- ...t_key_standalone_prices_key_by_key_head.go | 3 +- ...t_key_standalone_prices_key_by_key_post.go | 3 +- ...s_by_project_key_standalone_prices_post.go | 3 +- ...ates_by_project_key_states_by_id_delete.go | 3 +- ..._states_by_project_key_states_by_id_get.go | 3 +- ...states_by_project_key_states_by_id_head.go | 3 +- ...states_by_project_key_states_by_id_post.go | 3 +- ...client_states_by_project_key_states_get.go | 3 +- ...lient_states_by_project_key_states_head.go | 3 +- ...by_project_key_states_key_by_key_delete.go | 3 +- ...es_by_project_key_states_key_by_key_get.go | 3 +- ...s_by_project_key_states_key_by_key_head.go | 3 +- ...s_by_project_key_states_key_by_key_post.go | 3 +- ...lient_states_by_project_key_states_post.go | 3 +- ...ores_by_project_key_stores_by_id_delete.go | 3 +- ..._stores_by_project_key_stores_by_id_get.go | 3 +- ...stores_by_project_key_stores_by_id_head.go | 3 +- ...stores_by_project_key_stores_by_id_post.go | 3 +- ...client_stores_by_project_key_stores_get.go | 3 +- ...lient_stores_by_project_key_stores_head.go | 3 +- ...by_project_key_stores_key_by_key_delete.go | 3 +- ...es_by_project_key_stores_key_by_key_get.go | 3 +- ...s_by_project_key_stores_key_by_key_head.go | 3 +- ...s_by_project_key_stores_key_by_key_post.go | 3 +- ...lient_stores_by_project_key_stores_post.go | 3 +- ..._project_key_subscriptions_by_id_delete.go | 3 +- ..._by_project_key_subscriptions_by_id_get.go | 3 +- ...by_project_key_subscriptions_by_id_head.go | 3 +- ...by_project_key_subscriptions_by_id_post.go | 3 +- ...ptions_by_project_key_subscriptions_get.go | 3 +- ...tions_by_project_key_subscriptions_head.go | 3 +- ...ect_key_subscriptions_key_by_key_delete.go | 3 +- ...roject_key_subscriptions_key_by_key_get.go | 3 +- ...oject_key_subscriptions_key_by_key_head.go | 3 +- ...oject_key_subscriptions_key_by_key_post.go | 3 +- ...tions_by_project_key_subscriptions_post.go | 3 +- ...ect_key_product_projections_suggest_get.go | 3 +- ...project_key_tax_categories_by_id_delete.go | 3 +- ...by_project_key_tax_categories_by_id_get.go | 3 +- ...y_project_key_tax_categories_by_id_head.go | 3 +- ...y_project_key_tax_categories_by_id_post.go | 3 +- ...ories_by_project_key_tax_categories_get.go | 3 +- ...ries_by_project_key_tax_categories_head.go | 3 +- ...ct_key_tax_categories_key_by_key_delete.go | 3 +- ...oject_key_tax_categories_key_by_key_get.go | 3 +- ...ject_key_tax_categories_key_by_key_head.go | 3 +- ...ject_key_tax_categories_key_by_key_post.go | 3 +- ...ries_by_project_key_tax_categories_post.go | 3 +- ...types_by_project_key_types_by_id_delete.go | 3 +- ...nt_types_by_project_key_types_by_id_get.go | 3 +- ...t_types_by_project_key_types_by_id_head.go | 3 +- ...t_types_by_project_key_types_by_id_post.go | 3 +- .../client_types_by_project_key_types_get.go | 3 +- .../client_types_by_project_key_types_head.go | 3 +- ..._by_project_key_types_key_by_key_delete.go | 3 +- ...pes_by_project_key_types_key_by_key_get.go | 3 +- ...es_by_project_key_types_key_by_key_head.go | 3 +- ...es_by_project_key_types_key_by_key_post.go | 3 +- .../client_types_by_project_key_types_post.go | 3 +- ...zones_by_project_key_zones_by_id_delete.go | 3 +- ...nt_zones_by_project_key_zones_by_id_get.go | 3 +- ...t_zones_by_project_key_zones_by_id_head.go | 3 +- ...t_zones_by_project_key_zones_by_id_post.go | 3 +- .../client_zones_by_project_key_zones_get.go | 3 +- .../client_zones_by_project_key_zones_head.go | 3 +- ..._by_project_key_zones_key_by_key_delete.go | 3 +- ...nes_by_project_key_zones_key_by_key_get.go | 3 +- ...es_by_project_key_zones_key_by_key_head.go | 3 +- ...es_by_project_key_zones_key_by_key_post.go | 3 +- .../client_zones_by_project_key_zones_post.go | 3 +- platform/types_cart.go | 54 +- platform/types_cart_discount.go | 4 + platform/types_category.go | 6 +- platform/types_common.go | 13 + platform/types_customer.go | 4 +- platform/types_message.go | 1002 +++++++++++++++-- platform/types_payment.go | 4 +- platform/types_product.go | 6 +- platform/types_product_tailoring.go | 425 +++++++ platform/types_tax_category.go | 2 +- 682 files changed, 5605 insertions(+), 769 deletions(-) create mode 100644 .changes/unreleased/Fixed-20240321-105612.yaml create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_get.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_post.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_delete.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_get.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_post.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_delete.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_get.go create mode 100644 platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_post.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_by_id.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_by_id_delete.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_by_id_get.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_by_id_post.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_get.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_delete.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_get.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_post.go create mode 100644 platform/client_product_tailoring_by_project_key_product_tailoring_post.go create mode 100644 platform/client_products_by_project_key_in_store_key_by_store_key_products.go create mode 100644 platform/client_products_by_project_key_in_store_key_by_store_key_products_by_product_id.go create mode 100644 platform/client_products_by_project_key_in_store_key_by_store_key_products_key_by_product_key.go create mode 100644 platform/types_product_tailoring.go diff --git a/.changes/unreleased/Fixed-20240321-105612.yaml b/.changes/unreleased/Fixed-20240321-105612.yaml new file mode 100644 index 00000000..c42f6071 --- /dev/null +++ b/.changes/unreleased/Fixed-20240321-105612.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: Regenerated sdk with 404 response codes +time: 2024-03-21T10:56:12.148641307+01:00 diff --git a/Taskfile.yaml b/Taskfile.yaml index 83ba37a0..2829cf26 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -25,10 +25,10 @@ tasks: generate: cmds: - - task: generate-checkout +# - task: generate-checkout - task: generate-connect - task: generate-importapi - - task: generate-frontend +# - task: generate-frontend # - task: generate-ml - task: generate-platform - task: generate-history diff --git a/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_get.go b/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_get.go index c75e4cd1..f324112b 100644 --- a/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_get.go +++ b/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_get.go @@ -112,7 +112,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestMethodGet) Execute( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_head.go b/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_head.go index 0d4e4461..739928ae 100644 --- a/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_head.go +++ b/platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestMethodHead) Execute return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_active_cart_by_project_key_me_active_cart_get.go b/platform/client_active_cart_by_project_key_me_active_cart_get.go index e2e8dc9e..c36ad7dd 100644 --- a/platform/client_active_cart_by_project_key_me_active_cart_get.go +++ b/platform/client_active_cart_by_project_key_me_active_cart_get.go @@ -111,7 +111,8 @@ func (rb *ByProjectKeyMeActiveCartRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_active_cart_by_project_key_me_active_cart_head.go b/platform/client_active_cart_by_project_key_me_active_cart_head.go index d089522f..d6a02967 100644 --- a/platform/client_active_cart_by_project_key_me_active_cart_head.go +++ b/platform/client_active_cart_by_project_key_me_active_cart_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeyMeActiveCartRequestMethodHead) Execute(ctx context.Context return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_api_clients_by_project_key_api_clients_by_id_delete.go b/platform/client_api_clients_by_project_key_api_clients_by_id_delete.go index 2389b576..6fd412fd 100644 --- a/platform/client_api_clients_by_project_key_api_clients_by_id_delete.go +++ b/platform/client_api_clients_by_project_key_api_clients_by_id_delete.go @@ -72,7 +72,8 @@ func (rb *ByProjectKeyApiClientsByIDRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_api_clients_by_project_key_api_clients_by_id_get.go b/platform/client_api_clients_by_project_key_api_clients_by_id_get.go index 207424a6..960f5067 100644 --- a/platform/client_api_clients_by_project_key_api_clients_by_id_get.go +++ b/platform/client_api_clients_by_project_key_api_clients_by_id_get.go @@ -71,7 +71,8 @@ func (rb *ByProjectKeyApiClientsByIDRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_api_clients_by_project_key_api_clients_by_id_head.go b/platform/client_api_clients_by_project_key_api_clients_by_id_head.go index d977bf37..155e945c 100644 --- a/platform/client_api_clients_by_project_key_api_clients_by_id_head.go +++ b/platform/client_api_clients_by_project_key_api_clients_by_id_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeyApiClientsByIDRequestMethodHead) Execute(ctx context.Conte return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_api_clients_by_project_key_api_clients_get.go b/platform/client_api_clients_by_project_key_api_clients_get.go index e0a4746a..0296b170 100644 --- a/platform/client_api_clients_by_project_key_api_clients_get.go +++ b/platform/client_api_clients_by_project_key_api_clients_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyApiClientsRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_api_clients_by_project_key_api_clients_head.go b/platform/client_api_clients_by_project_key_api_clients_head.go index 05f506f7..a2f10b54 100644 --- a/platform/client_api_clients_by_project_key_api_clients_head.go +++ b/platform/client_api_clients_by_project_key_api_clients_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyApiClientsRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_api_clients_by_project_key_api_clients_post.go b/platform/client_api_clients_by_project_key_api_clients_post.go index 44e78190..66fc3a20 100644 --- a/platform/client_api_clients_by_project_key_api_clients_post.go +++ b/platform/client_api_clients_by_project_key_api_clients_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyApiClientsRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_apply_by_project_key_orders_edits_by_id_apply_post.go b/platform/client_apply_by_project_key_orders_edits_by_id_apply_post.go index 11af5cf1..afb90b91 100644 --- a/platform/client_apply_by_project_key_orders_edits_by_id_apply_post.go +++ b/platform/client_apply_by_project_key_orders_edits_by_id_apply_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyOrdersEditsByIDApplyRequestMethodPost) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_get.go b/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_get.go index efbd155e..764c6b5b 100644 --- a/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_get.go +++ b/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_post.go b/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_post.go index ae8fed74..02d76d77 100644 --- a/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_post.go +++ b/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_get.go b/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_get.go index 906fa79c..318abe5b 100644 --- a/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_get.go +++ b/platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_get.go b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_get.go index 579e922d..9b1dfa3b 100644 --- a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_get.go +++ b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_post.go b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_post.go index 44886fcd..1e5bb8af 100644 --- a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_post.go +++ b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_get.go b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_get.go index 24092698..98632eb3 100644 --- a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_get.go +++ b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_get.go b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_get.go index 7b9acad0..61ba69bd 100644 --- a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_get.go +++ b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_post.go b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_post.go index 61b40636..2322a7f7 100644 --- a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_post.go +++ b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_post.go b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_post.go index 98ca147d..3d52bfb6 100644 --- a/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_post.go +++ b/platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_by_id_delete.go b/platform/client_associate_roles_by_project_key_associate_roles_by_id_delete.go index 9732db31..c7118530 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_by_id_delete.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodDelete) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_by_id_get.go b/platform/client_associate_roles_by_project_key_associate_roles_by_id_get.go index 220bcc9b..226cfd42 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_by_id_get.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodGet) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_by_id_head.go b/platform/client_associate_roles_by_project_key_associate_roles_by_id_head.go index b4577963..9b5a141e 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_by_id_head.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodHead) Execute(ctx context.C switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_by_id_post.go b/platform/client_associate_roles_by_project_key_associate_roles_by_id_post.go index a33da254..03b7e7c0 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_by_id_post.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodPost) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_get.go b/platform/client_associate_roles_by_project_key_associate_roles_get.go index e7c59abd..dacea78d 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_get.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAssociateRolesRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_head.go b/platform/client_associate_roles_by_project_key_associate_roles_head.go index e74cf687..f43c3014 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_head.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAssociateRolesRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_delete.go b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_delete.go index 26b2325c..a1c6c3a7 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_delete.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_delete.go @@ -127,7 +127,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodDelete) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_get.go b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_get.go index 7768f028..18ac370f 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_get.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodGet) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_head.go b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_head.go index eb7e9187..f3801a81 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_head.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodHead) Execute(ctx conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_post.go b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_post.go index d24dea54..cee7dea7 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_post.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodPost) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_associate_roles_by_project_key_associate_roles_post.go b/platform/client_associate_roles_by_project_key_associate_roles_post.go index 600a2d75..cdb04737 100644 --- a/platform/client_associate_roles_by_project_key_associate_roles_post.go +++ b/platform/client_associate_roles_by_project_key_associate_roles_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyAssociateRolesRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_delete.go b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_delete.go index dea8ca0d..6e28cf17 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_delete.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodDelete) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_get.go b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_get.go index 09843be9..d084313a 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_get.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodGet) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_head.go b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_head.go index 6f8a81d7..deec74de 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_head.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodHead) Execute(ctx context. switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_post.go b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_post.go index f7099279..d812d3b0 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_post.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_get.go b/platform/client_attribute_groups_by_project_key_attribute_groups_get.go index 8f66cc9f..053b412b 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_get.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAttributeGroupsRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_head.go b/platform/client_attribute_groups_by_project_key_attribute_groups_head.go index a02d52fe..b8b1c579 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_head.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAttributeGroupsRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_delete.go b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_delete.go index 3641a81c..e50a1969 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_delete.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyAttributeGroupsKeyByKeyRequestMethodDelete) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_get.go b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_get.go index d72fb437..4bea7e33 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_get.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAttributeGroupsKeyByKeyRequestMethodGet) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_head.go b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_head.go index c3031643..321420ba 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_head.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAttributeGroupsKeyByKeyRequestMethodHead) Execute(ctx cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_post.go b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_post.go index 699e69f3..e82c6b17 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_post.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAttributeGroupsKeyByKeyRequestMethodPost) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_attribute_groups_by_project_key_attribute_groups_post.go b/platform/client_attribute_groups_by_project_key_attribute_groups_post.go index 429367c4..814f2c76 100644 --- a/platform/client_attribute_groups_by_project_key_attribute_groups_post.go +++ b/platform/client_attribute_groups_by_project_key_attribute_groups_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyAttributeGroupsRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_get.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_get.go index b85802c0..54756547 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_get.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestMethodGet) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_head.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_head.go index 3969e733..77c7f674 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_head.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestMethodHead switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_post.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_post.go index 2fbbfa88..eb43794f 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_post.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDRequestMethodPost return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_get.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_get.go index 97337542..f3336322 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_get.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestMethodGet) Exe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_head.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_head.go index e971a954..48c74be3 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_head.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestMethodHead) Ex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_get.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_get.go index bb143f95..7d96c3ca 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_get.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestMethod return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_head.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_head.go index 4846fb55..97b4ec2f 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_head.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestMethod switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_post.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_post.go index 2f775c2c..0ad4c687 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_post.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyRequestMethod return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_post.go b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_post.go index b83cda62..05326ae8 100644 --- a/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_post.go +++ b/platform/client_business_units_by_project_key_as_associate_by_associate_id_business_units_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdBusinessUnitsRequestMethodPost) Ex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_by_id_delete.go b/platform/client_business_units_by_project_key_business_units_by_id_delete.go index 97caf3e5..8a6d9d8c 100644 --- a/platform/client_business_units_by_project_key_business_units_by_id_delete.go +++ b/platform/client_business_units_by_project_key_business_units_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyBusinessUnitsByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_by_id_get.go b/platform/client_business_units_by_project_key_business_units_by_id_get.go index d28d2f69..10e919df 100644 --- a/platform/client_business_units_by_project_key_business_units_by_id_get.go +++ b/platform/client_business_units_by_project_key_business_units_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyBusinessUnitsByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_by_id_head.go b/platform/client_business_units_by_project_key_business_units_by_id_head.go index 5e7734ce..bf92c616 100644 --- a/platform/client_business_units_by_project_key_business_units_by_id_head.go +++ b/platform/client_business_units_by_project_key_business_units_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyBusinessUnitsByIDRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_by_id_post.go b/platform/client_business_units_by_project_key_business_units_by_id_post.go index a5fdf3bc..6b3d03f0 100644 --- a/platform/client_business_units_by_project_key_business_units_by_id_post.go +++ b/platform/client_business_units_by_project_key_business_units_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyBusinessUnitsByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_get.go b/platform/client_business_units_by_project_key_business_units_get.go index b0681755..65a34f21 100644 --- a/platform/client_business_units_by_project_key_business_units_get.go +++ b/platform/client_business_units_by_project_key_business_units_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyBusinessUnitsRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_head.go b/platform/client_business_units_by_project_key_business_units_head.go index 56946435..c1d9c601 100644 --- a/platform/client_business_units_by_project_key_business_units_head.go +++ b/platform/client_business_units_by_project_key_business_units_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyBusinessUnitsRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_key_by_key_delete.go b/platform/client_business_units_by_project_key_business_units_key_by_key_delete.go index e65c4fe4..df735d84 100644 --- a/platform/client_business_units_by_project_key_business_units_key_by_key_delete.go +++ b/platform/client_business_units_by_project_key_business_units_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyBusinessUnitsKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_key_by_key_get.go b/platform/client_business_units_by_project_key_business_units_key_by_key_get.go index 9aaa9b21..d830aa1a 100644 --- a/platform/client_business_units_by_project_key_business_units_key_by_key_get.go +++ b/platform/client_business_units_by_project_key_business_units_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyBusinessUnitsKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_key_by_key_head.go b/platform/client_business_units_by_project_key_business_units_key_by_key_head.go index afcac332..cf6f2450 100644 --- a/platform/client_business_units_by_project_key_business_units_key_by_key_head.go +++ b/platform/client_business_units_by_project_key_business_units_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyBusinessUnitsKeyByKeyRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_key_by_key_post.go b/platform/client_business_units_by_project_key_business_units_key_by_key_post.go index 8df2810e..1fc013ef 100644 --- a/platform/client_business_units_by_project_key_business_units_key_by_key_post.go +++ b/platform/client_business_units_by_project_key_business_units_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyBusinessUnitsKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_business_units_post.go b/platform/client_business_units_by_project_key_business_units_post.go index 84b810a3..58fa54b9 100644 --- a/platform/client_business_units_by_project_key_business_units_post.go +++ b/platform/client_business_units_by_project_key_business_units_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyBusinessUnitsRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_by_id_delete.go b/platform/client_business_units_by_project_key_me_business_units_by_id_delete.go index 3cacaebe..c715f390 100644 --- a/platform/client_business_units_by_project_key_me_business_units_by_id_delete.go +++ b/platform/client_business_units_by_project_key_me_business_units_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeBusinessUnitsByIDRequestMethodDelete) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_by_id_get.go b/platform/client_business_units_by_project_key_me_business_units_by_id_get.go index 26992b97..6c0ca039 100644 --- a/platform/client_business_units_by_project_key_me_business_units_by_id_get.go +++ b/platform/client_business_units_by_project_key_me_business_units_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeBusinessUnitsByIDRequestMethodGet) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_by_id_head.go b/platform/client_business_units_by_project_key_me_business_units_by_id_head.go index 816c1860..69a56ed5 100644 --- a/platform/client_business_units_by_project_key_me_business_units_by_id_head.go +++ b/platform/client_business_units_by_project_key_me_business_units_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeBusinessUnitsByIDRequestMethodHead) Execute(ctx context. switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_by_id_post.go b/platform/client_business_units_by_project_key_me_business_units_by_id_post.go index 2d95a9ba..f6f9c42b 100644 --- a/platform/client_business_units_by_project_key_me_business_units_by_id_post.go +++ b/platform/client_business_units_by_project_key_me_business_units_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeBusinessUnitsByIDRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_get.go b/platform/client_business_units_by_project_key_me_business_units_get.go index 6e0f46ff..c0bad072 100644 --- a/platform/client_business_units_by_project_key_me_business_units_get.go +++ b/platform/client_business_units_by_project_key_me_business_units_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeBusinessUnitsRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_head.go b/platform/client_business_units_by_project_key_me_business_units_head.go index cb4341e8..5c026708 100644 --- a/platform/client_business_units_by_project_key_me_business_units_head.go +++ b/platform/client_business_units_by_project_key_me_business_units_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeBusinessUnitsRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_key_by_key_delete.go b/platform/client_business_units_by_project_key_me_business_units_key_by_key_delete.go index 515479bc..c640ec92 100644 --- a/platform/client_business_units_by_project_key_me_business_units_key_by_key_delete.go +++ b/platform/client_business_units_by_project_key_me_business_units_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeBusinessUnitsKeyByKeyRequestMethodDelete) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_key_by_key_get.go b/platform/client_business_units_by_project_key_me_business_units_key_by_key_get.go index b6a9385c..a030cc76 100644 --- a/platform/client_business_units_by_project_key_me_business_units_key_by_key_get.go +++ b/platform/client_business_units_by_project_key_me_business_units_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeBusinessUnitsKeyByKeyRequestMethodGet) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_key_by_key_head.go b/platform/client_business_units_by_project_key_me_business_units_key_by_key_head.go index e5230d9f..4f18ff78 100644 --- a/platform/client_business_units_by_project_key_me_business_units_key_by_key_head.go +++ b/platform/client_business_units_by_project_key_me_business_units_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeBusinessUnitsKeyByKeyRequestMethodHead) Execute(ctx cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_key_by_key_post.go b/platform/client_business_units_by_project_key_me_business_units_key_by_key_post.go index 20573177..39afc36e 100644 --- a/platform/client_business_units_by_project_key_me_business_units_key_by_key_post.go +++ b/platform/client_business_units_by_project_key_me_business_units_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeBusinessUnitsKeyByKeyRequestMethodPost) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_business_units_by_project_key_me_business_units_post.go b/platform/client_business_units_by_project_key_me_business_units_post.go index c5a5ace3..dabc1fde 100644 --- a/platform/client_business_units_by_project_key_me_business_units_post.go +++ b/platform/client_business_units_by_project_key_me_business_units_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyMeBusinessUnitsRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_by_project_key.go b/platform/client_by_project_key.go index 922e7840..09f7495f 100644 --- a/platform/client_by_project_key.go +++ b/platform/client_by_project_key.go @@ -230,6 +230,16 @@ func (rb *ByProjectKeyRequestBuilder) ProductSelections() *ByProjectKeyProductSe } } +/** +* Product tailoring are used to contextualize product data for specific stores. + */ +func (rb *ByProjectKeyRequestBuilder) ProductTailoring() *ByProjectKeyProductTailoringRequestBuilder { + return &ByProjectKeyProductTailoringRequestBuilder{ + projectKey: rb.projectKey, + client: rb.client, + } +} + /** * Product Types are used to describe common characteristics, most importantly common custom attributes, * of many concrete products. diff --git a/platform/client_by_project_key_get.go b/platform/client_by_project_key_get.go index 0896386a..5d4eb07f 100644 --- a/platform/client_by_project_key_get.go +++ b/platform/client_by_project_key_get.go @@ -71,7 +71,8 @@ func (rb *ByProjectKeyRequestMethodGet) Execute(ctx context.Context) (result *Pr return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_delete.go b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_delete.go index 7ede6cc6..c01774ba 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_delete.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_delete.go @@ -126,7 +126,8 @@ func (rb *ByProjectKeyCartDiscountsByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_get.go b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_get.go index fc4a64d5..f0435be9 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_get.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCartDiscountsByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_head.go b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_head.go index 290352ad..62792e55 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_head.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCartDiscountsByIDRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_post.go b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_post.go index 2a6502dc..93d26237 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_post.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCartDiscountsByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_get.go b/platform/client_cart_discounts_by_project_key_cart_discounts_get.go index 0bd4087e..296a0f42 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_get.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyCartDiscountsRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_head.go b/platform/client_cart_discounts_by_project_key_cart_discounts_head.go index aac26f77..f982dcc7 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_head.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCartDiscountsRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_delete.go b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_delete.go index f116e4d6..9c6906ce 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_delete.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_delete.go @@ -126,7 +126,8 @@ func (rb *ByProjectKeyCartDiscountsKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_get.go b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_get.go index c5335b8e..0e2c704e 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_get.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCartDiscountsKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_head.go b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_head.go index 1751f932..897de554 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_head.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCartDiscountsKeyByKeyRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_post.go b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_post.go index dbdd96bb..226c3bc3 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_post.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCartDiscountsKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_cart_discounts_post.go b/platform/client_cart_discounts_by_project_key_cart_discounts_post.go index 3a6f5d35..196994c3 100644 --- a/platform/client_cart_discounts_by_project_key_cart_discounts_post.go +++ b/platform/client_cart_discounts_by_project_key_cart_discounts_post.go @@ -113,7 +113,8 @@ func (rb *ByProjectKeyCartDiscountsRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_delete.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_delete.go index 392bd955..9ed7fa53 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_delete.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_delete.go @@ -129,7 +129,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestMethodDelete) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_get.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_get.go index 62996862..02f54435 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_get.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestMethodGet) Exe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_head.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_head.go index 57faafc4..f9bf143d 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_head.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestMethodHead) Ex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_post.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_post.go index 88162543..65dbbdb8 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_post.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestMethodPost) Ex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_get.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_get.go index 23980911..1c47b792 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_get.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestMethodGet) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_head.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_head.go index 21d216df..bf0693fb 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_head.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestMethodHead) Execut switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_delete.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_delete.go index 49c9c796..869b0706 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_delete.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_delete.go @@ -129,7 +129,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestMethodDele return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_get.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_get.go index 8f1de0d4..48dffdee 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_get.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestMethodGet) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_head.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_head.go index 1d92a747..7e61e3a8 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_head.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestMethodHead switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_post.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_post.go index 73f7cfde..928d9f5e 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_post.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestMethodPost return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_post.go b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_post.go index 6c62568b..7fce548a 100644 --- a/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_post.go +++ b/platform/client_cart_discounts_by_project_key_in_store_key_by_store_key_cart_discounts_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestMethodPost) Execut return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_delete.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_delete.go index b6b0a853..c93a29ad 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_delete.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_delete.go @@ -142,7 +142,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_get.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_get.go index 5769c1a5..7f043441 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_get.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_head.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_head.go index 8588fb45..f22e48e2 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_head.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_post.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_post.go index 7144a2bb..f7191947 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_post.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_get.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_get.go index 43dde15d..a81ca492 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_get.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_head.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_head.go index d9188964..7d8fecfd 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_head.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_delete.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_delete.go index 4f4ca8e7..50e35b23 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_delete.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_delete.go @@ -142,7 +142,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_get.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_get.go index 12820e11..0eae71d3 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_get.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_head.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_head.go index 87dbe755..e8e06730 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_head.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_post.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_post.go index 8a5fc12a..f9b6130c 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_post.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_post.go b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_post.go index 6a51f5dd..0ffe0403 100644 --- a/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_post.go +++ b/platform/client_carts_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_post.go @@ -115,7 +115,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_by_id_delete.go b/platform/client_carts_by_project_key_carts_by_id_delete.go index a882a304..019d33b8 100644 --- a/platform/client_carts_by_project_key_carts_by_id_delete.go +++ b/platform/client_carts_by_project_key_carts_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyCartsByIDRequestMethodDelete) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_by_id_get.go b/platform/client_carts_by_project_key_carts_by_id_get.go index fbb9b009..37bf5782 100644 --- a/platform/client_carts_by_project_key_carts_by_id_get.go +++ b/platform/client_carts_by_project_key_carts_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyCartsByIDRequestMethodGet) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_by_id_head.go b/platform/client_carts_by_project_key_carts_by_id_head.go index 9e07f703..e04f9bea 100644 --- a/platform/client_carts_by_project_key_carts_by_id_head.go +++ b/platform/client_carts_by_project_key_carts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCartsByIDRequestMethodHead) Execute(ctx context.Context) e switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_by_id_post.go b/platform/client_carts_by_project_key_carts_by_id_post.go index 8b06239c..94974a4d 100644 --- a/platform/client_carts_by_project_key_carts_by_id_post.go +++ b/platform/client_carts_by_project_key_carts_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCartsByIDRequestMethodPost) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_get.go b/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_get.go index 9e6fef97..4c9ca9dd 100644 --- a/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_get.go +++ b/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_get.go @@ -110,7 +110,8 @@ func (rb *ByProjectKeyCartsCustomerIdByCustomerIdRequestMethodGet) Execute(ctx c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_head.go b/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_head.go index 3737fe9d..1b2223ad 100644 --- a/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_head.go +++ b/platform/client_carts_by_project_key_carts_customer_id_by_customer_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCartsCustomerIdByCustomerIdRequestMethodHead) Execute(ctx switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_get.go b/platform/client_carts_by_project_key_carts_get.go index d0d5b006..67ca5010 100644 --- a/platform/client_carts_by_project_key_carts_get.go +++ b/platform/client_carts_by_project_key_carts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyCartsRequestMethodGet) Execute(ctx context.Context) (resul return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_head.go b/platform/client_carts_by_project_key_carts_head.go index 77498164..31a5086b 100644 --- a/platform/client_carts_by_project_key_carts_head.go +++ b/platform/client_carts_by_project_key_carts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCartsRequestMethodHead) Execute(ctx context.Context) error switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_key_by_key_delete.go b/platform/client_carts_by_project_key_carts_key_by_key_delete.go index 7604295f..04427797 100644 --- a/platform/client_carts_by_project_key_carts_key_by_key_delete.go +++ b/platform/client_carts_by_project_key_carts_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyCartsKeyByKeyRequestMethodDelete) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_key_by_key_get.go b/platform/client_carts_by_project_key_carts_key_by_key_get.go index fb4ea15c..545b0526 100644 --- a/platform/client_carts_by_project_key_carts_key_by_key_get.go +++ b/platform/client_carts_by_project_key_carts_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyCartsKeyByKeyRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_key_by_key_head.go b/platform/client_carts_by_project_key_carts_key_by_key_head.go index 66626a6f..d9caa6b1 100644 --- a/platform/client_carts_by_project_key_carts_key_by_key_head.go +++ b/platform/client_carts_by_project_key_carts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCartsKeyByKeyRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_key_by_key_post.go b/platform/client_carts_by_project_key_carts_key_by_key_post.go index f0224996..c54bde3d 100644 --- a/platform/client_carts_by_project_key_carts_key_by_key_post.go +++ b/platform/client_carts_by_project_key_carts_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCartsKeyByKeyRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_carts_post.go b/platform/client_carts_by_project_key_carts_post.go index 393d61e6..bdc248cf 100644 --- a/platform/client_carts_by_project_key_carts_post.go +++ b/platform/client_carts_by_project_key_carts_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCartsRequestMethodPost) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_delete.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_delete.go index 8f9e6fdd..8ffed8c1 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_delete.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_delete.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestMethodDelete) Execute( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_get.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_get.go index b2fc8bd8..cbb2af79 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_get.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_get.go @@ -110,7 +110,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestMethodGet) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_head.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_head.go index 8ff3d30a..a57064ec 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_head.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestMethodHead) Execute(ct switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_post.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_post.go index 9bb052fc..9b52142e 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_post.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_by_id_post.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsByIDRequestMethodPost) Execute(ct return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_get.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_get.go index a0881735..a703ab5f 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_get.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_get.go @@ -112,7 +112,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdRequestMeth return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_head.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_head.go index 18dc603c..24e29143 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_head.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_customer_id_by_customer_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdRequestMeth switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_get.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_get.go index 21fc1dd1..3bf87c17 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_get.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_get.go @@ -186,7 +186,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsRequestMethodGet) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_head.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_head.go index c6e0b381..be220b49 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_head.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsRequestMethodHead) Execute(ctx co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_delete.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_delete.go index c038e49a..3ea89488 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_delete.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_delete.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestMethodDelete) Exec return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_get.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_get.go index 2dc3d1f0..40b8f94d 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_get.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_get.go @@ -110,7 +110,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestMethodGet) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_head.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_head.go index b85a4c95..f8c98570 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_head.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestMethodHead) Execut switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_post.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_post.go index 02f32ce5..8dd30abd 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_post.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyRequestMethodPost) Execut return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_post.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_post.go index 8f0cb487..59d1e343 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_post.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_carts_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsRequestMethodPost) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_delete.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_delete.go index 10cb76bb..42d737dd 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_delete.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestMethodDelete) Execut return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_get.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_get.go index 4b466347..94b5a22b 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_get.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestMethodGet) Execute(c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_head.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_head.go index 22d90f20..9f25dc05 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_head.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestMethodHead) Execute( switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_post.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_post.go index d6d44f6e..2a07c87d 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_post.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsByIDRequestMethodPost) Execute( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_get.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_get.go index d201bd78..c8ce5f15 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_get.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestMethodGet) Execute(ctx c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_head.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_head.go index 6f10d1bd..c894f256 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_head.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestMethodHead) Execute(ctx switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_post.go b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_post.go index ec01ef53..19ce166f 100644 --- a/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_post.go +++ b/platform/client_carts_by_project_key_in_store_key_by_store_key_me_carts_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeCartsRequestMethodPost) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_by_id_delete.go b/platform/client_carts_by_project_key_me_carts_by_id_delete.go index 77453c40..282bdb4b 100644 --- a/platform/client_carts_by_project_key_me_carts_by_id_delete.go +++ b/platform/client_carts_by_project_key_me_carts_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeCartsByIDRequestMethodDelete) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_by_id_get.go b/platform/client_carts_by_project_key_me_carts_by_id_get.go index 78d47604..8df7fd8f 100644 --- a/platform/client_carts_by_project_key_me_carts_by_id_get.go +++ b/platform/client_carts_by_project_key_me_carts_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeCartsByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_by_id_head.go b/platform/client_carts_by_project_key_me_carts_by_id_head.go index 15c7363c..09cee9f8 100644 --- a/platform/client_carts_by_project_key_me_carts_by_id_head.go +++ b/platform/client_carts_by_project_key_me_carts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeCartsByIDRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_by_id_post.go b/platform/client_carts_by_project_key_me_carts_by_id_post.go index febe5ed2..12a6dd1c 100644 --- a/platform/client_carts_by_project_key_me_carts_by_id_post.go +++ b/platform/client_carts_by_project_key_me_carts_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeCartsByIDRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_get.go b/platform/client_carts_by_project_key_me_carts_get.go index be2754c8..19cdf8ce 100644 --- a/platform/client_carts_by_project_key_me_carts_get.go +++ b/platform/client_carts_by_project_key_me_carts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeCartsRequestMethodGet) Execute(ctx context.Context) (res return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_head.go b/platform/client_carts_by_project_key_me_carts_head.go index fd3945d2..8d7fa05b 100644 --- a/platform/client_carts_by_project_key_me_carts_head.go +++ b/platform/client_carts_by_project_key_me_carts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeCartsRequestMethodHead) Execute(ctx context.Context) err switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_key_by_key_delete.go b/platform/client_carts_by_project_key_me_carts_key_by_key_delete.go index 01bd91ee..05704b75 100644 --- a/platform/client_carts_by_project_key_me_carts_key_by_key_delete.go +++ b/platform/client_carts_by_project_key_me_carts_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeCartsKeyByKeyRequestMethodDelete) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_key_by_key_get.go b/platform/client_carts_by_project_key_me_carts_key_by_key_get.go index 137bcdae..5eae8434 100644 --- a/platform/client_carts_by_project_key_me_carts_key_by_key_get.go +++ b/platform/client_carts_by_project_key_me_carts_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeCartsKeyByKeyRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_key_by_key_head.go b/platform/client_carts_by_project_key_me_carts_key_by_key_head.go index 5e0895e0..a06a7493 100644 --- a/platform/client_carts_by_project_key_me_carts_key_by_key_head.go +++ b/platform/client_carts_by_project_key_me_carts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeCartsKeyByKeyRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_key_by_key_post.go b/platform/client_carts_by_project_key_me_carts_key_by_key_post.go index 08a34032..5957c2d1 100644 --- a/platform/client_carts_by_project_key_me_carts_key_by_key_post.go +++ b/platform/client_carts_by_project_key_me_carts_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeCartsKeyByKeyRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_carts_by_project_key_me_carts_post.go b/platform/client_carts_by_project_key_me_carts_post.go index 08aaad45..ebe5776c 100644 --- a/platform/client_carts_by_project_key_me_carts_post.go +++ b/platform/client_carts_by_project_key_me_carts_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyMeCartsRequestMethodPost) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_by_id_delete.go b/platform/client_categories_by_project_key_categories_by_id_delete.go index 1ff6ec80..03297105 100644 --- a/platform/client_categories_by_project_key_categories_by_id_delete.go +++ b/platform/client_categories_by_project_key_categories_by_id_delete.go @@ -127,7 +127,8 @@ func (rb *ByProjectKeyCategoriesByIDRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_by_id_get.go b/platform/client_categories_by_project_key_categories_by_id_get.go index d8b071ed..13279cfe 100644 --- a/platform/client_categories_by_project_key_categories_by_id_get.go +++ b/platform/client_categories_by_project_key_categories_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyCategoriesByIDRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_by_id_head.go b/platform/client_categories_by_project_key_categories_by_id_head.go index 161cc364..0af03ab4 100644 --- a/platform/client_categories_by_project_key_categories_by_id_head.go +++ b/platform/client_categories_by_project_key_categories_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCategoriesByIDRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_by_id_post.go b/platform/client_categories_by_project_key_categories_by_id_post.go index 1faa497a..cb2b2670 100644 --- a/platform/client_categories_by_project_key_categories_by_id_post.go +++ b/platform/client_categories_by_project_key_categories_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyCategoriesByIDRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_get.go b/platform/client_categories_by_project_key_categories_get.go index b6fce347..9327d806 100644 --- a/platform/client_categories_by_project_key_categories_get.go +++ b/platform/client_categories_by_project_key_categories_get.go @@ -187,7 +187,8 @@ func (rb *ByProjectKeyCategoriesRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_head.go b/platform/client_categories_by_project_key_categories_head.go index 043445e6..c8b49360 100644 --- a/platform/client_categories_by_project_key_categories_head.go +++ b/platform/client_categories_by_project_key_categories_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCategoriesRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_key_by_key_delete.go b/platform/client_categories_by_project_key_categories_key_by_key_delete.go index 2b5d5ee3..877f71df 100644 --- a/platform/client_categories_by_project_key_categories_key_by_key_delete.go +++ b/platform/client_categories_by_project_key_categories_key_by_key_delete.go @@ -127,7 +127,8 @@ func (rb *ByProjectKeyCategoriesKeyByKeyRequestMethodDelete) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_key_by_key_get.go b/platform/client_categories_by_project_key_categories_key_by_key_get.go index 757bde51..183a78d6 100644 --- a/platform/client_categories_by_project_key_categories_key_by_key_get.go +++ b/platform/client_categories_by_project_key_categories_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyCategoriesKeyByKeyRequestMethodGet) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_key_by_key_head.go b/platform/client_categories_by_project_key_categories_key_by_key_head.go index 1453b68e..2384a8ec 100644 --- a/platform/client_categories_by_project_key_categories_key_by_key_head.go +++ b/platform/client_categories_by_project_key_categories_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCategoriesKeyByKeyRequestMethodHead) Execute(ctx context.C switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_key_by_key_post.go b/platform/client_categories_by_project_key_categories_key_by_key_post.go index df29be76..bd91b7e6 100644 --- a/platform/client_categories_by_project_key_categories_key_by_key_post.go +++ b/platform/client_categories_by_project_key_categories_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyCategoriesKeyByKeyRequestMethodPost) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_categories_by_project_key_categories_post.go b/platform/client_categories_by_project_key_categories_post.go index e065bb75..1be3c75f 100644 --- a/platform/client_categories_by_project_key_categories_post.go +++ b/platform/client_categories_by_project_key_categories_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCategoriesRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_by_id_delete.go b/platform/client_channels_by_project_key_channels_by_id_delete.go index 8392b4d1..0a24ec41 100644 --- a/platform/client_channels_by_project_key_channels_by_id_delete.go +++ b/platform/client_channels_by_project_key_channels_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyChannelsByIDRequestMethodDelete) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_by_id_get.go b/platform/client_channels_by_project_key_channels_by_id_get.go index e87b8974..2a4086f5 100644 --- a/platform/client_channels_by_project_key_channels_by_id_get.go +++ b/platform/client_channels_by_project_key_channels_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyChannelsByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_by_id_head.go b/platform/client_channels_by_project_key_channels_by_id_head.go index 5eec73c7..6d904657 100644 --- a/platform/client_channels_by_project_key_channels_by_id_head.go +++ b/platform/client_channels_by_project_key_channels_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyChannelsByIDRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_by_id_post.go b/platform/client_channels_by_project_key_channels_by_id_post.go index 6fb1a5a7..96a13bfd 100644 --- a/platform/client_channels_by_project_key_channels_by_id_post.go +++ b/platform/client_channels_by_project_key_channels_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyChannelsByIDRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_get.go b/platform/client_channels_by_project_key_channels_get.go index 4c41600a..b5eab6d4 100644 --- a/platform/client_channels_by_project_key_channels_get.go +++ b/platform/client_channels_by_project_key_channels_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyChannelsRequestMethodGet) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_head.go b/platform/client_channels_by_project_key_channels_head.go index 53b29e89..88ebccec 100644 --- a/platform/client_channels_by_project_key_channels_head.go +++ b/platform/client_channels_by_project_key_channels_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyChannelsRequestMethodHead) Execute(ctx context.Context) er switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_channels_by_project_key_channels_post.go b/platform/client_channels_by_project_key_channels_post.go index 484e937a..f80f6029 100644 --- a/platform/client_channels_by_project_key_channels_post.go +++ b/platform/client_channels_by_project_key_channels_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyChannelsRequestMethodPost) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_confirm_by_project_key_customers_email_confirm_post.go b/platform/client_confirm_by_project_key_customers_email_confirm_post.go index 8d42aa4d..96e89819 100644 --- a/platform/client_confirm_by_project_key_customers_email_confirm_post.go +++ b/platform/client_confirm_by_project_key_customers_email_confirm_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCustomersEmailConfirmRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_confirm_by_project_key_in_store_key_by_store_key_customers_email_confirm_post.go b/platform/client_confirm_by_project_key_in_store_key_by_store_key_customers_email_confirm_post.go index c8734b15..750b5848 100644 --- a/platform/client_confirm_by_project_key_in_store_key_by_store_key_customers_email_confirm_post.go +++ b/platform/client_confirm_by_project_key_in_store_key_by_store_key_customers_email_confirm_post.go @@ -85,7 +85,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmRequestMethodPost return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_confirm_by_project_key_in_store_key_by_store_key_me_email_confirm_post.go b/platform/client_confirm_by_project_key_in_store_key_by_store_key_me_email_confirm_post.go index c607ab72..66020802 100644 --- a/platform/client_confirm_by_project_key_in_store_key_by_store_key_me_email_confirm_post.go +++ b/platform/client_confirm_by_project_key_in_store_key_by_store_key_me_email_confirm_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestMethodPost) Execu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_confirm_by_project_key_me_email_confirm_post.go b/platform/client_confirm_by_project_key_me_email_confirm_post.go index d49761a6..33089810 100644 --- a/platform/client_confirm_by_project_key_me_email_confirm_post.go +++ b/platform/client_confirm_by_project_key_me_email_confirm_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeEmailConfirmRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_delete.go b/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_delete.go index 9a52718d..ee5055cd 100644 --- a/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_delete.go +++ b/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_delete.go @@ -140,7 +140,8 @@ func (rb *ByProjectKeyCustomObjectsByContainerByKeyRequestMethodDelete) Execute( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_get.go b/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_get.go index 1c5816e6..ffd5dd21 100644 --- a/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_get.go +++ b/platform/client_custom_objects_by_project_key_custom_objects_by_container_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomObjectsByContainerByKeyRequestMethodGet) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_custom_objects_by_project_key_custom_objects_by_container_get.go b/platform/client_custom_objects_by_project_key_custom_objects_by_container_get.go index e8738e59..617edf19 100644 --- a/platform/client_custom_objects_by_project_key_custom_objects_by_container_get.go +++ b/platform/client_custom_objects_by_project_key_custom_objects_by_container_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyCustomObjectsByContainerRequestMethodGet) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_custom_objects_by_project_key_custom_objects_get.go b/platform/client_custom_objects_by_project_key_custom_objects_get.go index 54b88566..48a8e1af 100644 --- a/platform/client_custom_objects_by_project_key_custom_objects_get.go +++ b/platform/client_custom_objects_by_project_key_custom_objects_get.go @@ -187,7 +187,8 @@ func (rb *ByProjectKeyCustomObjectsRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_custom_objects_by_project_key_custom_objects_head.go b/platform/client_custom_objects_by_project_key_custom_objects_head.go index 5c26706f..ace0bd8e 100644 --- a/platform/client_custom_objects_by_project_key_custom_objects_head.go +++ b/platform/client_custom_objects_by_project_key_custom_objects_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCustomObjectsRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_custom_objects_by_project_key_custom_objects_post.go b/platform/client_custom_objects_by_project_key_custom_objects_post.go index 9efe7919..276d5230 100644 --- a/platform/client_custom_objects_by_project_key_custom_objects_post.go +++ b/platform/client_custom_objects_by_project_key_custom_objects_post.go @@ -123,7 +123,8 @@ func (rb *ByProjectKeyCustomObjectsRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_by_id_delete.go b/platform/client_customer_groups_by_project_key_customer_groups_by_id_delete.go index 54015eec..85cefd0c 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_by_id_delete.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyCustomerGroupsByIDRequestMethodDelete) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_by_id_get.go b/platform/client_customer_groups_by_project_key_customer_groups_by_id_get.go index 06e0df3b..c8833a13 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_by_id_get.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomerGroupsByIDRequestMethodGet) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_by_id_head.go b/platform/client_customer_groups_by_project_key_customer_groups_by_id_head.go index eacc14de..7ecef99c 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_by_id_head.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCustomerGroupsByIDRequestMethodHead) Execute(ctx context.C switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_by_id_post.go b/platform/client_customer_groups_by_project_key_customer_groups_by_id_post.go index dcd22cff..9a49e0ef 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_by_id_post.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCustomerGroupsByIDRequestMethodPost) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_get.go b/platform/client_customer_groups_by_project_key_customer_groups_get.go index 8a685073..0e0111d4 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_get.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyCustomerGroupsRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_head.go b/platform/client_customer_groups_by_project_key_customer_groups_head.go index d49aa782..ce0b746a 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_head.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCustomerGroupsRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_delete.go b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_delete.go index fed908ec..0e8ee9a9 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_delete.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyCustomerGroupsKeyByKeyRequestMethodDelete) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_get.go b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_get.go index 3eca3d38..8784a298 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_get.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomerGroupsKeyByKeyRequestMethodGet) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_head.go b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_head.go index 43f79e4f..040f983c 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_head.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCustomerGroupsKeyByKeyRequestMethodHead) Execute(ctx conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_post.go b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_post.go index dc44b988..064b9b23 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_post.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCustomerGroupsKeyByKeyRequestMethodPost) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customer_groups_by_project_key_customer_groups_post.go b/platform/client_customer_groups_by_project_key_customer_groups_post.go index 65addbc8..bafe2f58 100644 --- a/platform/client_customer_groups_by_project_key_customer_groups_post.go +++ b/platform/client_customer_groups_by_project_key_customer_groups_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyCustomerGroupsRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_by_id_delete.go b/platform/client_customers_by_project_key_customers_by_id_delete.go index 72bec0ba..a7685148 100644 --- a/platform/client_customers_by_project_key_customers_by_id_delete.go +++ b/platform/client_customers_by_project_key_customers_by_id_delete.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyCustomersByIDRequestMethodDelete) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_by_id_get.go b/platform/client_customers_by_project_key_customers_by_id_get.go index c51334aa..b8286ac1 100644 --- a/platform/client_customers_by_project_key_customers_by_id_get.go +++ b/platform/client_customers_by_project_key_customers_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomersByIDRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_by_id_head.go b/platform/client_customers_by_project_key_customers_by_id_head.go index 70fa5e11..35e40a58 100644 --- a/platform/client_customers_by_project_key_customers_by_id_head.go +++ b/platform/client_customers_by_project_key_customers_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCustomersByIDRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_by_id_post.go b/platform/client_customers_by_project_key_customers_by_id_post.go index 015c2170..3394a55f 100644 --- a/platform/client_customers_by_project_key_customers_by_id_post.go +++ b/platform/client_customers_by_project_key_customers_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCustomersByIDRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_email_token_by_email_token_get.go b/platform/client_customers_by_project_key_customers_email_token_by_email_token_get.go index 37b9b236..3278772b 100644 --- a/platform/client_customers_by_project_key_customers_email_token_by_email_token_get.go +++ b/platform/client_customers_by_project_key_customers_email_token_by_email_token_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomersEmailTokenByEmailTokenRequestMethodGet) Execute(c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_get.go b/platform/client_customers_by_project_key_customers_get.go index 8cdff6a1..16d54da0 100644 --- a/platform/client_customers_by_project_key_customers_get.go +++ b/platform/client_customers_by_project_key_customers_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyCustomersRequestMethodGet) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_head.go b/platform/client_customers_by_project_key_customers_head.go index 86428712..afedd3ac 100644 --- a/platform/client_customers_by_project_key_customers_head.go +++ b/platform/client_customers_by_project_key_customers_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCustomersRequestMethodHead) Execute(ctx context.Context) e switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_key_by_key_delete.go b/platform/client_customers_by_project_key_customers_key_by_key_delete.go index fcd0ca21..545aa307 100644 --- a/platform/client_customers_by_project_key_customers_key_by_key_delete.go +++ b/platform/client_customers_by_project_key_customers_key_by_key_delete.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyCustomersKeyByKeyRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_key_by_key_get.go b/platform/client_customers_by_project_key_customers_key_by_key_get.go index 6eb132e6..539a8195 100644 --- a/platform/client_customers_by_project_key_customers_key_by_key_get.go +++ b/platform/client_customers_by_project_key_customers_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomersKeyByKeyRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_key_by_key_head.go b/platform/client_customers_by_project_key_customers_key_by_key_head.go index f60edbc9..090cdc16 100644 --- a/platform/client_customers_by_project_key_customers_key_by_key_head.go +++ b/platform/client_customers_by_project_key_customers_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyCustomersKeyByKeyRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_key_by_key_post.go b/platform/client_customers_by_project_key_customers_key_by_key_post.go index 1b8cde58..386b0be7 100644 --- a/platform/client_customers_by_project_key_customers_key_by_key_post.go +++ b/platform/client_customers_by_project_key_customers_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCustomersKeyByKeyRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_password_token_by_password_token_get.go b/platform/client_customers_by_project_key_customers_password_token_by_password_token_get.go index 84d214ce..88517995 100644 --- a/platform/client_customers_by_project_key_customers_password_token_by_password_token_get.go +++ b/platform/client_customers_by_project_key_customers_password_token_by_password_token_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyCustomersPasswordTokenByPasswordTokenRequestMethodGet) Exe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_customers_post.go b/platform/client_customers_by_project_key_customers_post.go index 28b63651..cb24b1e9 100644 --- a/platform/client_customers_by_project_key_customers_post.go +++ b/platform/client_customers_by_project_key_customers_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyCustomersRequestMethodPost) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_delete.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_delete.go index 246ca1d1..903d5176 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_delete.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_delete.go @@ -145,7 +145,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestMethodDelete) Exec return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_get.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_get.go index b60ba256..89245a8e 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_get.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestMethodGet) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_head.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_head.go index 2d15dd7d..5ce76501 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_head.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestMethodHead) Execut switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_post.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_post.go index 6b43696f..7e833832 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_post.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersByIDRequestMethodPost) Execut return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_email_token_by_email_token_get.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_email_token_by_email_token_get.go index 80293164..d2bf6dd7 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_email_token_by_email_token_get.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_email_token_by_email_token_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenByEmailTokenRequest return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_get.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_get.go index 35eebd36..224c58e7 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_get.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersRequestMethodGet) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_head.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_head.go index 5bc99aef..d8655bd5 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_head.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersRequestMethodHead) Execute(ct switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_delete.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_delete.go index 91aec68d..2181fbe6 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_delete.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_delete.go @@ -145,7 +145,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestMethodDelete) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_get.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_get.go index 7bf7bfa4..27fc97bd 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_get.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestMethodGet) Exe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_head.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_head.go index d420051e..147e0d32 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_head.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestMethodHead) Ex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_post.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_post.go index dd8b3660..8ca03f18 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_post.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyRequestMethodPost) Ex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_password_token_by_password_token_get.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_password_token_by_password_token_get.go index 5aa98698..49e79202 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_password_token_by_password_token_get.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_password_token_by_password_token_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenByPasswordTokenR return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_post.go b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_post.go index 367269c8..b1e00fdd 100644 --- a/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_post.go +++ b/platform/client_customers_by_project_key_in_store_key_by_store_key_customers_post.go @@ -119,7 +119,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersRequestMethodPost) Execute(ct return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_by_id_delete.go b/platform/client_discount_codes_by_project_key_discount_codes_by_id_delete.go index 3eafad3b..ddfc0f37 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_by_id_delete.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_by_id_delete.go @@ -145,7 +145,8 @@ func (rb *ByProjectKeyDiscountCodesByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_by_id_get.go b/platform/client_discount_codes_by_project_key_discount_codes_by_id_get.go index 4d532c9d..15240b9a 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_by_id_get.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_by_id_get.go @@ -107,7 +107,8 @@ func (rb *ByProjectKeyDiscountCodesByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_by_id_head.go b/platform/client_discount_codes_by_project_key_discount_codes_by_id_head.go index 563d5522..686894d1 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_by_id_head.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyDiscountCodesByIDRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_by_id_post.go b/platform/client_discount_codes_by_project_key_discount_codes_by_id_post.go index b2af8761..2ce2e0bc 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_by_id_post.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_by_id_post.go @@ -120,7 +120,8 @@ func (rb *ByProjectKeyDiscountCodesByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_get.go b/platform/client_discount_codes_by_project_key_discount_codes_get.go index ce4bd588..f1b39c3a 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_get.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_get.go @@ -186,7 +186,8 @@ func (rb *ByProjectKeyDiscountCodesRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_head.go b/platform/client_discount_codes_by_project_key_discount_codes_head.go index de25bab8..12da084c 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_head.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyDiscountCodesRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_delete.go b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_delete.go index 62f8b14f..26f9fc52 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_delete.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_delete.go @@ -145,7 +145,8 @@ func (rb *ByProjectKeyDiscountCodesKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_get.go b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_get.go index 08b0360a..224a2a82 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_get.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_get.go @@ -107,7 +107,8 @@ func (rb *ByProjectKeyDiscountCodesKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_head.go b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_head.go index d4ba803c..9b041783 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_head.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyDiscountCodesKeyByKeyRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_post.go b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_post.go index 4e13d9b1..9e07d2bf 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_post.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_key_by_key_post.go @@ -120,7 +120,8 @@ func (rb *ByProjectKeyDiscountCodesKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_discount_codes_by_project_key_discount_codes_post.go b/platform/client_discount_codes_by_project_key_discount_codes_post.go index fb2548d4..1cf3b464 100644 --- a/platform/client_discount_codes_by_project_key_discount_codes_post.go +++ b/platform/client_discount_codes_by_project_key_discount_codes_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyDiscountCodesRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_by_id_delete.go b/platform/client_edits_by_project_key_orders_edits_by_id_delete.go index 24875096..6d3098da 100644 --- a/platform/client_edits_by_project_key_orders_edits_by_id_delete.go +++ b/platform/client_edits_by_project_key_orders_edits_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyOrdersEditsByIDRequestMethodDelete) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_by_id_get.go b/platform/client_edits_by_project_key_orders_edits_by_id_get.go index 73458087..196ddd76 100644 --- a/platform/client_edits_by_project_key_orders_edits_by_id_get.go +++ b/platform/client_edits_by_project_key_orders_edits_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyOrdersEditsByIDRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_by_id_head.go b/platform/client_edits_by_project_key_orders_edits_by_id_head.go index 875d3026..3c96b88b 100644 --- a/platform/client_edits_by_project_key_orders_edits_by_id_head.go +++ b/platform/client_edits_by_project_key_orders_edits_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyOrdersEditsByIDRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_by_id_post.go b/platform/client_edits_by_project_key_orders_edits_by_id_post.go index 19ad1eff..19fc2a9d 100644 --- a/platform/client_edits_by_project_key_orders_edits_by_id_post.go +++ b/platform/client_edits_by_project_key_orders_edits_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyOrdersEditsByIDRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_get.go b/platform/client_edits_by_project_key_orders_edits_get.go index 12b214c8..910f8bd6 100644 --- a/platform/client_edits_by_project_key_orders_edits_get.go +++ b/platform/client_edits_by_project_key_orders_edits_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyOrdersEditsRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_head.go b/platform/client_edits_by_project_key_orders_edits_head.go index e0545479..b6969798 100644 --- a/platform/client_edits_by_project_key_orders_edits_head.go +++ b/platform/client_edits_by_project_key_orders_edits_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyOrdersEditsRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_key_by_key_delete.go b/platform/client_edits_by_project_key_orders_edits_key_by_key_delete.go index 16b8715b..ca799a82 100644 --- a/platform/client_edits_by_project_key_orders_edits_key_by_key_delete.go +++ b/platform/client_edits_by_project_key_orders_edits_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyOrdersEditsKeyByKeyRequestMethodDelete) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_key_by_key_get.go b/platform/client_edits_by_project_key_orders_edits_key_by_key_get.go index c1f9f279..f192c373 100644 --- a/platform/client_edits_by_project_key_orders_edits_key_by_key_get.go +++ b/platform/client_edits_by_project_key_orders_edits_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyOrdersEditsKeyByKeyRequestMethodGet) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_key_by_key_head.go b/platform/client_edits_by_project_key_orders_edits_key_by_key_head.go index 97e22f34..3c8f9864 100644 --- a/platform/client_edits_by_project_key_orders_edits_key_by_key_head.go +++ b/platform/client_edits_by_project_key_orders_edits_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyOrdersEditsKeyByKeyRequestMethodHead) Execute(ctx context. switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_key_by_key_post.go b/platform/client_edits_by_project_key_orders_edits_key_by_key_post.go index 21e77a45..ecda2cad 100644 --- a/platform/client_edits_by_project_key_orders_edits_key_by_key_post.go +++ b/platform/client_edits_by_project_key_orders_edits_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyOrdersEditsKeyByKeyRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_edits_by_project_key_orders_edits_post.go b/platform/client_edits_by_project_key_orders_edits_post.go index 6c03081f..0094e2b3 100644 --- a/platform/client_edits_by_project_key_orders_edits_post.go +++ b/platform/client_edits_by_project_key_orders_edits_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyOrdersEditsRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_email_token_by_project_key_customers_email_token_post.go b/platform/client_email_token_by_project_key_customers_email_token_post.go index 1c15592d..003cb935 100644 --- a/platform/client_email_token_by_project_key_customers_email_token_post.go +++ b/platform/client_email_token_by_project_key_customers_email_token_post.go @@ -81,7 +81,8 @@ func (rb *ByProjectKeyCustomersEmailTokenRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_email_token_by_project_key_in_store_key_by_store_key_customers_email_token_post.go b/platform/client_email_token_by_project_key_in_store_key_by_store_key_customers_email_token_post.go index 8e66815b..bc257c1f 100644 --- a/platform/client_email_token_by_project_key_in_store_key_by_store_key_customers_email_token_post.go +++ b/platform/client_email_token_by_project_key_in_store_key_by_store_key_customers_email_token_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenRequestMethodPost) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_by_id_delete.go b/platform/client_extensions_by_project_key_extensions_by_id_delete.go index ce92eb40..db030367 100644 --- a/platform/client_extensions_by_project_key_extensions_by_id_delete.go +++ b/platform/client_extensions_by_project_key_extensions_by_id_delete.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyExtensionsByIDRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_by_id_get.go b/platform/client_extensions_by_project_key_extensions_by_id_get.go index ae1e3c90..84a73d7f 100644 --- a/platform/client_extensions_by_project_key_extensions_by_id_get.go +++ b/platform/client_extensions_by_project_key_extensions_by_id_get.go @@ -71,7 +71,8 @@ func (rb *ByProjectKeyExtensionsByIDRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_by_id_head.go b/platform/client_extensions_by_project_key_extensions_by_id_head.go index c119157b..ff0017e9 100644 --- a/platform/client_extensions_by_project_key_extensions_by_id_head.go +++ b/platform/client_extensions_by_project_key_extensions_by_id_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeyExtensionsByIDRequestMethodHead) Execute(ctx context.Conte return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_by_id_post.go b/platform/client_extensions_by_project_key_extensions_by_id_post.go index 26650aba..beba4683 100644 --- a/platform/client_extensions_by_project_key_extensions_by_id_post.go +++ b/platform/client_extensions_by_project_key_extensions_by_id_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyExtensionsByIDRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_get.go b/platform/client_extensions_by_project_key_extensions_get.go index 9e323674..6bffa435 100644 --- a/platform/client_extensions_by_project_key_extensions_get.go +++ b/platform/client_extensions_by_project_key_extensions_get.go @@ -170,7 +170,8 @@ func (rb *ByProjectKeyExtensionsRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_head.go b/platform/client_extensions_by_project_key_extensions_head.go index 6233e3de..316f83c5 100644 --- a/platform/client_extensions_by_project_key_extensions_head.go +++ b/platform/client_extensions_by_project_key_extensions_head.go @@ -101,7 +101,8 @@ func (rb *ByProjectKeyExtensionsRequestMethodHead) Execute(ctx context.Context) return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_key_by_key_delete.go b/platform/client_extensions_by_project_key_extensions_key_by_key_delete.go index 27896c62..0c068e22 100644 --- a/platform/client_extensions_by_project_key_extensions_key_by_key_delete.go +++ b/platform/client_extensions_by_project_key_extensions_key_by_key_delete.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyExtensionsKeyByKeyRequestMethodDelete) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_key_by_key_get.go b/platform/client_extensions_by_project_key_extensions_key_by_key_get.go index fd998b38..183ccb6d 100644 --- a/platform/client_extensions_by_project_key_extensions_key_by_key_get.go +++ b/platform/client_extensions_by_project_key_extensions_key_by_key_get.go @@ -71,7 +71,8 @@ func (rb *ByProjectKeyExtensionsKeyByKeyRequestMethodGet) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_key_by_key_head.go b/platform/client_extensions_by_project_key_extensions_key_by_key_head.go index 4ff15d0f..c5ed7b0c 100644 --- a/platform/client_extensions_by_project_key_extensions_key_by_key_head.go +++ b/platform/client_extensions_by_project_key_extensions_key_by_key_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeyExtensionsKeyByKeyRequestMethodHead) Execute(ctx context.C return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_key_by_key_post.go b/platform/client_extensions_by_project_key_extensions_key_by_key_post.go index 4d7584ac..9b2b9d2f 100644 --- a/platform/client_extensions_by_project_key_extensions_key_by_key_post.go +++ b/platform/client_extensions_by_project_key_extensions_key_by_key_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyExtensionsKeyByKeyRequestMethodPost) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_extensions_by_project_key_extensions_post.go b/platform/client_extensions_by_project_key_extensions_post.go index 88b2b6f5..1c339696 100644 --- a/platform/client_extensions_by_project_key_extensions_post.go +++ b/platform/client_extensions_by_project_key_extensions_post.go @@ -77,7 +77,8 @@ func (rb *ByProjectKeyExtensionsRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_graphql_by_project_key_graphql_post.go b/platform/client_graphql_by_project_key_graphql_post.go index e96f92db..bcf8d11b 100644 --- a/platform/client_graphql_by_project_key_graphql_post.go +++ b/platform/client_graphql_by_project_key_graphql_post.go @@ -81,7 +81,8 @@ func (rb *ByProjectKeyGraphqlRequestMethodPost) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_import_by_project_key_orders_import_post.go b/platform/client_import_by_project_key_orders_import_post.go index 29f09929..d4e30c2a 100644 --- a/platform/client_import_by_project_key_orders_import_post.go +++ b/platform/client_import_by_project_key_orders_import_post.go @@ -87,7 +87,8 @@ func (rb *ByProjectKeyOrdersImportRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_in_store_by_project_key_in_store_key_by_store_key.go b/platform/client_in_store_by_project_key_in_store_key_by_store_key.go index fc1afffe..6abed3c8 100644 --- a/platform/client_in_store_by_project_key_in_store_key_by_store_key.go +++ b/platform/client_in_store_by_project_key_in_store_key_by_store_key.go @@ -100,3 +100,21 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyRequestBuilder) CartDiscounts() *ByPro client: rb.client, } } + +/** +* A Product Tailoring holds tailored data of Product in the Store. + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyRequestBuilder) ProductTailoring() *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder { + return &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder{ + projectKey: rb.projectKey, + storeKey: rb.storeKey, + client: rb.client, + } +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyRequestBuilder) Products() *ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder { + return &ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder{ + projectKey: rb.projectKey, + storeKey: rb.storeKey, + client: rb.client, + } +} diff --git a/platform/client_inventory_by_project_key_inventory_by_id_delete.go b/platform/client_inventory_by_project_key_inventory_by_id_delete.go index 455c656c..18210082 100644 --- a/platform/client_inventory_by_project_key_inventory_by_id_delete.go +++ b/platform/client_inventory_by_project_key_inventory_by_id_delete.go @@ -126,7 +126,8 @@ func (rb *ByProjectKeyInventoryByIDRequestMethodDelete) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_by_id_get.go b/platform/client_inventory_by_project_key_inventory_by_id_get.go index 864028f3..ef46c8a5 100644 --- a/platform/client_inventory_by_project_key_inventory_by_id_get.go +++ b/platform/client_inventory_by_project_key_inventory_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyInventoryByIDRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_by_id_head.go b/platform/client_inventory_by_project_key_inventory_by_id_head.go index 3cb7dfbf..b89289a9 100644 --- a/platform/client_inventory_by_project_key_inventory_by_id_head.go +++ b/platform/client_inventory_by_project_key_inventory_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInventoryByIDRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_by_id_post.go b/platform/client_inventory_by_project_key_inventory_by_id_post.go index 25e32562..843a7867 100644 --- a/platform/client_inventory_by_project_key_inventory_by_id_post.go +++ b/platform/client_inventory_by_project_key_inventory_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyInventoryByIDRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_get.go b/platform/client_inventory_by_project_key_inventory_get.go index 71553281..ff55e146 100644 --- a/platform/client_inventory_by_project_key_inventory_get.go +++ b/platform/client_inventory_by_project_key_inventory_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInventoryRequestMethodGet) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_head.go b/platform/client_inventory_by_project_key_inventory_head.go index 60717092..c1075cbd 100644 --- a/platform/client_inventory_by_project_key_inventory_head.go +++ b/platform/client_inventory_by_project_key_inventory_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInventoryRequestMethodHead) Execute(ctx context.Context) e switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_key_by_key_delete.go b/platform/client_inventory_by_project_key_inventory_key_by_key_delete.go index a18d4008..02a05d65 100644 --- a/platform/client_inventory_by_project_key_inventory_key_by_key_delete.go +++ b/platform/client_inventory_by_project_key_inventory_key_by_key_delete.go @@ -126,7 +126,8 @@ func (rb *ByProjectKeyInventoryKeyByKeyRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_key_by_key_get.go b/platform/client_inventory_by_project_key_inventory_key_by_key_get.go index 8485f930..2fc3d286 100644 --- a/platform/client_inventory_by_project_key_inventory_key_by_key_get.go +++ b/platform/client_inventory_by_project_key_inventory_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyInventoryKeyByKeyRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_key_by_key_head.go b/platform/client_inventory_by_project_key_inventory_key_by_key_head.go index 33005434..2be6a1c4 100644 --- a/platform/client_inventory_by_project_key_inventory_key_by_key_head.go +++ b/platform/client_inventory_by_project_key_inventory_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInventoryKeyByKeyRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_key_by_key_post.go b/platform/client_inventory_by_project_key_inventory_key_by_key_post.go index 8b36df4a..524c1f3c 100644 --- a/platform/client_inventory_by_project_key_inventory_key_by_key_post.go +++ b/platform/client_inventory_by_project_key_inventory_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyInventoryKeyByKeyRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_inventory_by_project_key_inventory_post.go b/platform/client_inventory_by_project_key_inventory_post.go index 8774fef7..a7799d9d 100644 --- a/platform/client_inventory_by_project_key_inventory_post.go +++ b/platform/client_inventory_by_project_key_inventory_post.go @@ -113,7 +113,8 @@ func (rb *ByProjectKeyInventoryRequestMethodPost) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_login_by_project_key_in_store_key_by_store_key_login.go b/platform/client_login_by_project_key_in_store_key_by_store_key_login.go index 05e018a7..fcffbd1a 100644 --- a/platform/client_login_by_project_key_in_store_key_by_store_key_login.go +++ b/platform/client_login_by_project_key_in_store_key_by_store_key_login.go @@ -15,6 +15,8 @@ type ByProjectKeyInStoreKeyByStoreKeyLoginRequestBuilder struct { /** * Authenticates a Customer associated with a [Store](ctp:api:type:Store). For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers). * +* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in). +* * If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error. * */ diff --git a/platform/client_login_by_project_key_in_store_key_by_store_key_login_post.go b/platform/client_login_by_project_key_in_store_key_by_store_key_login_post.go index 3f2b5e11..0986dc45 100644 --- a/platform/client_login_by_project_key_in_store_key_by_store_key_login_post.go +++ b/platform/client_login_by_project_key_in_store_key_by_store_key_login_post.go @@ -31,6 +31,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyLoginRequestMethodPost) WithHeaders(he /** * Authenticates a Customer associated with a [Store](ctp:api:type:Store). For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers). * +* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in). +* * If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error. * */ @@ -84,7 +86,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyLoginRequestMethodPost) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_login_by_project_key_in_store_key_by_store_key_me_login_post.go b/platform/client_login_by_project_key_in_store_key_by_store_key_me_login_post.go index 472ca3a8..754c3204 100644 --- a/platform/client_login_by_project_key_in_store_key_by_store_key_me_login_post.go +++ b/platform/client_login_by_project_key_in_store_key_by_store_key_me_login_post.go @@ -89,7 +89,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeLoginRequestMethodPost) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_login_by_project_key_login.go b/platform/client_login_by_project_key_login.go index eb1a538e..a47e51ed 100644 --- a/platform/client_login_by_project_key_login.go +++ b/platform/client_login_by_project_key_login.go @@ -16,6 +16,8 @@ type ByProjectKeyLoginRequestBuilder struct { * For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers). * If the Customer is registered in a Store, use the [Authenticate (sign in) Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/login:POST) method. * +* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in). +* * If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned. * */ diff --git a/platform/client_login_by_project_key_login_post.go b/platform/client_login_by_project_key_login_post.go index b9aa2781..829051af 100644 --- a/platform/client_login_by_project_key_login_post.go +++ b/platform/client_login_by_project_key_login_post.go @@ -33,6 +33,8 @@ func (rb *ByProjectKeyLoginRequestMethodPost) WithHeaders(headers http.Header) * * For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers). * If the Customer is registered in a Store, use the [Authenticate (sign in) Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/login:POST) method. * +* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in). +* * If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned. * */ @@ -86,7 +88,8 @@ func (rb *ByProjectKeyLoginRequestMethodPost) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_login_by_project_key_me_login_post.go b/platform/client_login_by_project_key_me_login_post.go index 62cac2db..01a73061 100644 --- a/platform/client_login_by_project_key_me_login_post.go +++ b/platform/client_login_by_project_key_me_login_post.go @@ -91,7 +91,8 @@ func (rb *ByProjectKeyMeLoginRequestMethodPost) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_get.go b/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_get.go index 0f2217a4..c3003939 100644 --- a/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_get.go +++ b/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_get.go @@ -120,7 +120,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestMeth return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_head.go b/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_head.go index b3cfb96f..f4e3afae 100644 --- a/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_head.go +++ b/platform/client_matching_cart_by_project_key_in_store_key_by_store_key_shipping_methods_matching_cart_head.go @@ -99,7 +99,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestMeth return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_get.go b/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_get.go index f6966ee9..8aecc507 100644 --- a/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_get.go +++ b/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_get.go @@ -120,7 +120,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingCartRequestMethodGet) Execute(ctx c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_head.go b/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_head.go index e4efb3a2..f5ec04cb 100644 --- a/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_head.go +++ b/platform/client_matching_cart_by_project_key_shipping_methods_matching_cart_head.go @@ -99,7 +99,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingCartRequestMethodHead) Execute(ctx return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_get.go b/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_get.go index 96e63d97..85767581 100644 --- a/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_get.go +++ b/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_get.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingCartLocationRequestMethodGet) Execu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_head.go b/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_head.go index 855b8fbe..562b9408 100644 --- a/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_head.go +++ b/platform/client_matching_cart_location_by_project_key_shipping_methods_matching_cart_location_head.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingCartLocationRequestMethodHead) Exec return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_location_by_project_key_shipping_methods_matching_location_get.go b/platform/client_matching_location_by_project_key_shipping_methods_matching_location_get.go index 66eaa052..3ef7b653 100644 --- a/platform/client_matching_location_by_project_key_shipping_methods_matching_location_get.go +++ b/platform/client_matching_location_by_project_key_shipping_methods_matching_location_get.go @@ -158,7 +158,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingLocationRequestMethodGet) Execute(c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_location_by_project_key_shipping_methods_matching_location_head.go b/platform/client_matching_location_by_project_key_shipping_methods_matching_location_head.go index 73374694..cd221505 100644 --- a/platform/client_matching_location_by_project_key_shipping_methods_matching_location_head.go +++ b/platform/client_matching_location_by_project_key_shipping_methods_matching_location_head.go @@ -123,7 +123,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingLocationRequestMethodHead) Execute( return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_get.go b/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_get.go index e693739b..49929866 100644 --- a/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_get.go +++ b/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_get.go @@ -130,7 +130,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingOrdereditRequestMethodGet) Execute( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_head.go b/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_head.go index 0ce81cab..ec14b179 100644 --- a/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_head.go +++ b/platform/client_matching_orderedit_by_project_key_shipping_methods_matching_orderedit_head.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyShippingMethodsMatchingOrdereditRequestMethodHead) Execute return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_me_by_project_key_me_delete.go b/platform/client_me_by_project_key_me_delete.go index ced50b21..5618243d 100644 --- a/platform/client_me_by_project_key_me_delete.go +++ b/platform/client_me_by_project_key_me_delete.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyMeRequestMethodDelete) Execute(ctx context.Context) (resul return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_me_by_project_key_me_get.go b/platform/client_me_by_project_key_me_get.go index 3b42529d..b6d47371 100644 --- a/platform/client_me_by_project_key_me_get.go +++ b/platform/client_me_by_project_key_me_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeRequestMethodGet) Execute(ctx context.Context) (result * return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_me_by_project_key_me_post.go b/platform/client_me_by_project_key_me_post.go index 7e890be2..0b1ea99a 100644 --- a/platform/client_me_by_project_key_me_post.go +++ b/platform/client_me_by_project_key_me_post.go @@ -77,7 +77,8 @@ func (rb *ByProjectKeyMeRequestMethodPost) Execute(ctx context.Context) (result return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_messages_by_project_key_messages_by_id_get.go b/platform/client_messages_by_project_key_messages_by_id_get.go index 44cfd37f..3b5f616f 100644 --- a/platform/client_messages_by_project_key_messages_by_id_get.go +++ b/platform/client_messages_by_project_key_messages_by_id_get.go @@ -107,7 +107,8 @@ func (rb *ByProjectKeyMessagesByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_messages_by_project_key_messages_by_id_head.go b/platform/client_messages_by_project_key_messages_by_id_head.go index 6aabe90e..cee1f2ef 100644 --- a/platform/client_messages_by_project_key_messages_by_id_head.go +++ b/platform/client_messages_by_project_key_messages_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMessagesByIDRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_messages_by_project_key_messages_get.go b/platform/client_messages_by_project_key_messages_get.go index 2402eff7..ffab35dd 100644 --- a/platform/client_messages_by_project_key_messages_get.go +++ b/platform/client_messages_by_project_key_messages_get.go @@ -186,7 +186,8 @@ func (rb *ByProjectKeyMessagesRequestMethodGet) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_messages_by_project_key_messages_head.go b/platform/client_messages_by_project_key_messages_head.go index 1fd8259e..8efa2121 100644 --- a/platform/client_messages_by_project_key_messages_head.go +++ b/platform/client_messages_by_project_key_messages_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMessagesRequestMethodHead) Execute(ctx context.Context) er switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_get.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_get.go index 8671adf3..8e9361b9 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_get.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_head.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_head.go index 61c6a365..c80ec0b9 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_head.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_post.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_post.go index 2ce39648..4c656d56 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_post.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_get.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_get.go index fb52786a..4afaef8a 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_get.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_head.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_head.go index fa2b7deb..9bf75e52 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_head.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_get.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_get.go index a49fe83e..ade2b59c 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_get.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_head.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_head.go index 61ab2b4e..66ab7def 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_head.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_post.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_post.go index 9e03945a..44287cea 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_post.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_order_number_by_order_number_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_post.go b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_post.go index 44c7e3b6..3e9f6d97 100644 --- a/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_post.go +++ b/platform/client_orders_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_get.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_get.go index fe0cc79f..a5252646 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_get.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequestMethodGet) Execute( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_head.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_head.go index 2a97dac1..d82c1bc1 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_head.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDRequestMethodHead) Execute switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_get.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_get.go index fd056261..1e6f4955 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_get.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestMethodGet) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_head.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_head.go index 0245538c..092559ed 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_head.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestMethodHead) Execute(ctx switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_post.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_post.go index 1a38571f..a2637681 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_post.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_me_orders_post.go @@ -131,7 +131,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestMethodPost) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_delete.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_delete.go index d378821a..ddd7dff0 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_delete.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_delete.go @@ -145,7 +145,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestMethodDelete) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_get.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_get.go index d3011ff9..741c5020 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_get.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestMethodGet) Execute(ct return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_head.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_head.go index 1514b091..b2f07800 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_head.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestMethodHead) Execute(c switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_post.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_post.go index 15e0a591..356b1f65 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_post.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersByIDRequestMethodPost) Execute(c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_get.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_get.go index dd53f11d..fc9e49b8 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_get.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersRequestMethodGet) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_head.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_head.go index 7009e0d5..87b0f5bf 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_head.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersRequestMethodHead) Execute(ctx c switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_delete.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_delete.go index 34ad7320..01192507 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_delete.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_delete.go @@ -145,7 +145,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestM return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_get.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_get.go index e74a3d4d..3383fc44 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_get.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestM return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_head.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_head.go index 5ddf2a6a..a6e58bb9 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_head.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestM switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_post.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_post.go index ecc429bb..f35e2741 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_post.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_order_number_by_order_number_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberRequestM return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_post.go b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_post.go index 0e45b54c..71a9d792 100644 --- a/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_post.go +++ b/platform/client_orders_by_project_key_in_store_key_by_store_key_orders_post.go @@ -128,7 +128,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyOrdersRequestMethodPost) Execute(ctx c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_me_orders_by_id_get.go b/platform/client_orders_by_project_key_me_orders_by_id_get.go index 94f92025..adfa0818 100644 --- a/platform/client_orders_by_project_key_me_orders_by_id_get.go +++ b/platform/client_orders_by_project_key_me_orders_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeOrdersByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_me_orders_by_id_head.go b/platform/client_orders_by_project_key_me_orders_by_id_head.go index e432a08f..e54e5fa0 100644 --- a/platform/client_orders_by_project_key_me_orders_by_id_head.go +++ b/platform/client_orders_by_project_key_me_orders_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeOrdersByIDRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_me_orders_get.go b/platform/client_orders_by_project_key_me_orders_get.go index 1bcc628d..c7858398 100644 --- a/platform/client_orders_by_project_key_me_orders_get.go +++ b/platform/client_orders_by_project_key_me_orders_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeOrdersRequestMethodGet) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_me_orders_head.go b/platform/client_orders_by_project_key_me_orders_head.go index 925d413f..10f68ed6 100644 --- a/platform/client_orders_by_project_key_me_orders_head.go +++ b/platform/client_orders_by_project_key_me_orders_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeOrdersRequestMethodHead) Execute(ctx context.Context) er switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_me_orders_post.go b/platform/client_orders_by_project_key_me_orders_post.go index cfce1afe..59ff6183 100644 --- a/platform/client_orders_by_project_key_me_orders_post.go +++ b/platform/client_orders_by_project_key_me_orders_post.go @@ -130,7 +130,8 @@ func (rb *ByProjectKeyMeOrdersRequestMethodPost) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_by_id_delete.go b/platform/client_orders_by_project_key_orders_by_id_delete.go index 88bab21c..d1878f6c 100644 --- a/platform/client_orders_by_project_key_orders_by_id_delete.go +++ b/platform/client_orders_by_project_key_orders_by_id_delete.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyOrdersByIDRequestMethodDelete) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_by_id_get.go b/platform/client_orders_by_project_key_orders_by_id_get.go index 4e7ed044..5e92d056 100644 --- a/platform/client_orders_by_project_key_orders_by_id_get.go +++ b/platform/client_orders_by_project_key_orders_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyOrdersByIDRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_by_id_head.go b/platform/client_orders_by_project_key_orders_by_id_head.go index d30e0fcf..6e5bd157 100644 --- a/platform/client_orders_by_project_key_orders_by_id_head.go +++ b/platform/client_orders_by_project_key_orders_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyOrdersByIDRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_by_id_post.go b/platform/client_orders_by_project_key_orders_by_id_post.go index 01afc39b..7981791e 100644 --- a/platform/client_orders_by_project_key_orders_by_id_post.go +++ b/platform/client_orders_by_project_key_orders_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyOrdersByIDRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_get.go b/platform/client_orders_by_project_key_orders_get.go index 73391ed5..3814ed9a 100644 --- a/platform/client_orders_by_project_key_orders_get.go +++ b/platform/client_orders_by_project_key_orders_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyOrdersRequestMethodGet) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_head.go b/platform/client_orders_by_project_key_orders_head.go index 7e124488..198fa131 100644 --- a/platform/client_orders_by_project_key_orders_head.go +++ b/platform/client_orders_by_project_key_orders_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyOrdersRequestMethodHead) Execute(ctx context.Context) erro switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_order_number_by_order_number_delete.go b/platform/client_orders_by_project_key_orders_order_number_by_order_number_delete.go index ee44bddf..8e85a602 100644 --- a/platform/client_orders_by_project_key_orders_order_number_by_order_number_delete.go +++ b/platform/client_orders_by_project_key_orders_order_number_by_order_number_delete.go @@ -143,7 +143,8 @@ func (rb *ByProjectKeyOrdersOrderNumberByOrderNumberRequestMethodDelete) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_order_number_by_order_number_get.go b/platform/client_orders_by_project_key_orders_order_number_by_order_number_get.go index 08d3e5cc..b463e622 100644 --- a/platform/client_orders_by_project_key_orders_order_number_by_order_number_get.go +++ b/platform/client_orders_by_project_key_orders_order_number_by_order_number_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyOrdersOrderNumberByOrderNumberRequestMethodGet) Execute(ct return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_order_number_by_order_number_head.go b/platform/client_orders_by_project_key_orders_order_number_by_order_number_head.go index 137955fc..f28d160a 100644 --- a/platform/client_orders_by_project_key_orders_order_number_by_order_number_head.go +++ b/platform/client_orders_by_project_key_orders_order_number_by_order_number_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyOrdersOrderNumberByOrderNumberRequestMethodHead) Execute(c switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_order_number_by_order_number_post.go b/platform/client_orders_by_project_key_orders_order_number_by_order_number_post.go index f90c8de5..0f2133d5 100644 --- a/platform/client_orders_by_project_key_orders_order_number_by_order_number_post.go +++ b/platform/client_orders_by_project_key_orders_order_number_by_order_number_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyOrdersOrderNumberByOrderNumberRequestMethodPost) Execute(c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_orders_by_project_key_orders_post.go b/platform/client_orders_by_project_key_orders_post.go index b547142b..aaa6d2a4 100644 --- a/platform/client_orders_by_project_key_orders_post.go +++ b/platform/client_orders_by_project_key_orders_post.go @@ -134,7 +134,8 @@ func (rb *ByProjectKeyOrdersRequestMethodPost) Execute(ctx context.Context) (res return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_password_by_project_key_customers_password_post.go b/platform/client_password_by_project_key_customers_password_post.go index 4647d71a..8ac31064 100644 --- a/platform/client_password_by_project_key_customers_password_post.go +++ b/platform/client_password_by_project_key_customers_password_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCustomersPasswordRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_password_by_project_key_in_store_key_by_store_key_customers_password_post.go b/platform/client_password_by_project_key_in_store_key_by_store_key_customers_password_post.go index efaef50a..a582a9c8 100644 --- a/platform/client_password_by_project_key_in_store_key_by_store_key_customers_password_post.go +++ b/platform/client_password_by_project_key_in_store_key_by_store_key_customers_password_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordRequestMethodPost) Ex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_password_by_project_key_in_store_key_by_store_key_me_password_post.go b/platform/client_password_by_project_key_in_store_key_by_store_key_me_password_post.go index f588d71b..27ec1c53 100644 --- a/platform/client_password_by_project_key_in_store_key_by_store_key_me_password_post.go +++ b/platform/client_password_by_project_key_in_store_key_by_store_key_me_password_post.go @@ -89,7 +89,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMePasswordRequestMethodPost) Execute(c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_password_by_project_key_me_password_post.go b/platform/client_password_by_project_key_me_password_post.go index 13600118..4d2fc63c 100644 --- a/platform/client_password_by_project_key_me_password_post.go +++ b/platform/client_password_by_project_key_me_password_post.go @@ -91,7 +91,8 @@ func (rb *ByProjectKeyMePasswordRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_password_token_by_project_key_customers_password_token_post.go b/platform/client_password_token_by_project_key_customers_password_token_post.go index bedb93b6..efdef502 100644 --- a/platform/client_password_token_by_project_key_customers_password_token_post.go +++ b/platform/client_password_token_by_project_key_customers_password_token_post.go @@ -77,7 +77,8 @@ func (rb *ByProjectKeyCustomersPasswordTokenRequestMethodPost) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_password_token_by_project_key_in_store_key_by_store_key_customers_password_token_post.go b/platform/client_password_token_by_project_key_in_store_key_by_store_key_customers_password_token_post.go index 38922ed8..4fda7be4 100644 --- a/platform/client_password_token_by_project_key_in_store_key_by_store_key_customers_password_token_post.go +++ b/platform/client_password_token_by_project_key_in_store_key_by_store_key_customers_password_token_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenRequestMethodPos return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_by_id_delete.go b/platform/client_payments_by_project_key_me_payments_by_id_delete.go index e5226b84..929a4e09 100644 --- a/platform/client_payments_by_project_key_me_payments_by_id_delete.go +++ b/platform/client_payments_by_project_key_me_payments_by_id_delete.go @@ -127,7 +127,8 @@ func (rb *ByProjectKeyMePaymentsByIDRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_by_id_get.go b/platform/client_payments_by_project_key_me_payments_by_id_get.go index b7fe7895..29959955 100644 --- a/platform/client_payments_by_project_key_me_payments_by_id_get.go +++ b/platform/client_payments_by_project_key_me_payments_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMePaymentsByIDRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_by_id_head.go b/platform/client_payments_by_project_key_me_payments_by_id_head.go index 372ec788..f6e6ac5a 100644 --- a/platform/client_payments_by_project_key_me_payments_by_id_head.go +++ b/platform/client_payments_by_project_key_me_payments_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMePaymentsByIDRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_by_id_post.go b/platform/client_payments_by_project_key_me_payments_by_id_post.go index 4b84af4d..8b255009 100644 --- a/platform/client_payments_by_project_key_me_payments_by_id_post.go +++ b/platform/client_payments_by_project_key_me_payments_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyMePaymentsByIDRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_get.go b/platform/client_payments_by_project_key_me_payments_get.go index d8762588..92e10a13 100644 --- a/platform/client_payments_by_project_key_me_payments_get.go +++ b/platform/client_payments_by_project_key_me_payments_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMePaymentsRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_head.go b/platform/client_payments_by_project_key_me_payments_head.go index 3c10e40d..dedbcb78 100644 --- a/platform/client_payments_by_project_key_me_payments_head.go +++ b/platform/client_payments_by_project_key_me_payments_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMePaymentsRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_me_payments_post.go b/platform/client_payments_by_project_key_me_payments_post.go index 9af0f8c8..6f0a462d 100644 --- a/platform/client_payments_by_project_key_me_payments_post.go +++ b/platform/client_payments_by_project_key_me_payments_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyMePaymentsRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_by_id_delete.go b/platform/client_payments_by_project_key_payments_by_id_delete.go index 20513913..d0b5712b 100644 --- a/platform/client_payments_by_project_key_payments_by_id_delete.go +++ b/platform/client_payments_by_project_key_payments_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyPaymentsByIDRequestMethodDelete) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_by_id_get.go b/platform/client_payments_by_project_key_payments_by_id_get.go index f553ebab..c17dbcef 100644 --- a/platform/client_payments_by_project_key_payments_by_id_get.go +++ b/platform/client_payments_by_project_key_payments_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyPaymentsByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_by_id_head.go b/platform/client_payments_by_project_key_payments_by_id_head.go index 4627a06b..4ba7b8fa 100644 --- a/platform/client_payments_by_project_key_payments_by_id_head.go +++ b/platform/client_payments_by_project_key_payments_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyPaymentsByIDRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_by_id_post.go b/platform/client_payments_by_project_key_payments_by_id_post.go index e36ba46a..240261f6 100644 --- a/platform/client_payments_by_project_key_payments_by_id_post.go +++ b/platform/client_payments_by_project_key_payments_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyPaymentsByIDRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_get.go b/platform/client_payments_by_project_key_payments_get.go index b3371336..69c114d0 100644 --- a/platform/client_payments_by_project_key_payments_get.go +++ b/platform/client_payments_by_project_key_payments_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyPaymentsRequestMethodGet) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_head.go b/platform/client_payments_by_project_key_payments_head.go index d1470764..0c89a37d 100644 --- a/platform/client_payments_by_project_key_payments_head.go +++ b/platform/client_payments_by_project_key_payments_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyPaymentsRequestMethodHead) Execute(ctx context.Context) er switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_key_by_key_delete.go b/platform/client_payments_by_project_key_payments_key_by_key_delete.go index 911d4f0b..81893f6c 100644 --- a/platform/client_payments_by_project_key_payments_key_by_key_delete.go +++ b/platform/client_payments_by_project_key_payments_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyPaymentsKeyByKeyRequestMethodDelete) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_key_by_key_get.go b/platform/client_payments_by_project_key_payments_key_by_key_get.go index e6ff549a..9c5e7c0e 100644 --- a/platform/client_payments_by_project_key_payments_key_by_key_get.go +++ b/platform/client_payments_by_project_key_payments_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyPaymentsKeyByKeyRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_key_by_key_head.go b/platform/client_payments_by_project_key_payments_key_by_key_head.go index 2049837d..bf9252d1 100644 --- a/platform/client_payments_by_project_key_payments_key_by_key_head.go +++ b/platform/client_payments_by_project_key_payments_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyPaymentsKeyByKeyRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_key_by_key_post.go b/platform/client_payments_by_project_key_payments_key_by_key_post.go index 7b649581..25400125 100644 --- a/platform/client_payments_by_project_key_payments_key_by_key_post.go +++ b/platform/client_payments_by_project_key_payments_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyPaymentsKeyByKeyRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_payments_by_project_key_payments_post.go b/platform/client_payments_by_project_key_payments_post.go index 0c1a2cc6..779a9dda 100644 --- a/platform/client_payments_by_project_key_payments_post.go +++ b/platform/client_payments_by_project_key_payments_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyPaymentsRequestMethodPost) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_by_id_delete.go b/platform/client_product_discounts_by_project_key_product_discounts_by_id_delete.go index 4cbed858..6a67c9d0 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_by_id_delete.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyProductDiscountsByIDRequestMethodDelete) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_by_id_get.go b/platform/client_product_discounts_by_project_key_product_discounts_by_id_get.go index 4bb60e65..ea2ffc73 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_by_id_get.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyProductDiscountsByIDRequestMethodGet) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_by_id_head.go b/platform/client_product_discounts_by_project_key_product_discounts_by_id_head.go index 5adbc68b..1c2cd2fc 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_by_id_head.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductDiscountsByIDRequestMethodHead) Execute(ctx context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_by_id_post.go b/platform/client_product_discounts_by_project_key_product_discounts_by_id_post.go index 8af8891b..f310c925 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_by_id_post.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyProductDiscountsByIDRequestMethodPost) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_get.go b/platform/client_product_discounts_by_project_key_product_discounts_get.go index ebdda714..02324119 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_get.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyProductDiscountsRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_head.go b/platform/client_product_discounts_by_project_key_product_discounts_head.go index 5ae98d74..09ab63f7 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_head.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyProductDiscountsRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_delete.go b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_delete.go index b08d2e76..743d96da 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_delete.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyProductDiscountsKeyByKeyRequestMethodDelete) Execute(ctx c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_get.go b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_get.go index dda8920f..18a5638a 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_get.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyProductDiscountsKeyByKeyRequestMethodGet) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_head.go b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_head.go index 8f7a6087..6c6d5e0a 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_head.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductDiscountsKeyByKeyRequestMethodHead) Execute(ctx con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_post.go b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_post.go index 47440049..739a4561 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_post.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyProductDiscountsKeyByKeyRequestMethodPost) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_discounts_by_project_key_product_discounts_post.go b/platform/client_product_discounts_by_project_key_product_discounts_post.go index c058cfea..5757d3cf 100644 --- a/platform/client_product_discounts_by_project_key_product_discounts_post.go +++ b/platform/client_product_discounts_by_project_key_product_discounts_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyProductDiscountsRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id.go b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id.go index cf2da720..df95694b 100644 --- a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id.go +++ b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id.go @@ -14,7 +14,7 @@ type ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilder struct } /** -* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID from the specified [Store](ctp:api:type:Store). +* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID in the specified [Store](ctp:api:type:Store). * If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, * they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices) * and [inventory](ctp:api:type:ProductProjectionInventoryEntries). diff --git a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_get.go b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_get.go index 33c236b5..20c4ba69 100644 --- a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_get.go +++ b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_get.go @@ -131,7 +131,7 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGet } /** -* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID from the specified [Store](ctp:api:type:Store). +* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID in the specified [Store](ctp:api:type:Store). * If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, * they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices) * and [inventory](ctp:api:type:ProductProjectionInventoryEntries). @@ -191,7 +191,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGet return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_head.go b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_head.go index 6c2b3b0d..84e736fc 100644 --- a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_head.go +++ b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodHea switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key.go b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key.go index 997b98ab..3f563625 100644 --- a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key.go +++ b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key.go @@ -14,7 +14,7 @@ type ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBuilder st } /** -* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key from the specified [Store](ctp:api:type:Store). +* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key in the specified [Store](ctp:api:type:Store). * If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, * they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices) * and [inventory](ctp:api:type:ProductProjectionInventoryEntries). diff --git a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_get.go b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_get.go index eb2b94c5..de867da8 100644 --- a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_get.go +++ b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_get.go @@ -131,7 +131,7 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestMetho } /** -* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key from the specified [Store](ctp:api:type:Store). +* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key in the specified [Store](ctp:api:type:Store). * If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, * they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices) * and [inventory](ctp:api:type:ProductProjectionInventoryEntries). @@ -191,7 +191,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestMetho return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_head.go b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_head.go index 6a35cc22..810a4be0 100644 --- a/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_head.go +++ b/platform/client_product_projections_by_project_key_in_store_key_by_store_key_product_projections_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestMetho switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_product_projections_by_id_get.go b/platform/client_product_projections_by_project_key_product_projections_by_id_get.go index c539d956..585096d9 100644 --- a/platform/client_product_projections_by_project_key_product_projections_by_id_get.go +++ b/platform/client_product_projections_by_project_key_product_projections_by_id_get.go @@ -196,7 +196,8 @@ func (rb *ByProjectKeyProductProjectionsByIDRequestMethodGet) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_product_projections_by_id_head.go b/platform/client_product_projections_by_project_key_product_projections_by_id_head.go index 4a8d0f0f..e2bce29a 100644 --- a/platform/client_product_projections_by_project_key_product_projections_by_id_head.go +++ b/platform/client_product_projections_by_project_key_product_projections_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductProjectionsByIDRequestMethodHead) Execute(ctx conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_product_projections_get.go b/platform/client_product_projections_by_project_key_product_projections_get.go index 30390f91..808c5fb8 100644 --- a/platform/client_product_projections_by_project_key_product_projections_get.go +++ b/platform/client_product_projections_by_project_key_product_projections_get.go @@ -277,7 +277,8 @@ func (rb *ByProjectKeyProductProjectionsRequestMethodGet) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_product_projections_head.go b/platform/client_product_projections_by_project_key_product_projections_head.go index dd1abc94..c03ba5ab 100644 --- a/platform/client_product_projections_by_project_key_product_projections_head.go +++ b/platform/client_product_projections_by_project_key_product_projections_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyProductProjectionsRequestMethodHead) Execute(ctx context.C switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_product_projections_key_by_key_get.go b/platform/client_product_projections_by_project_key_product_projections_key_by_key_get.go index 9563cdf6..fb99e207 100644 --- a/platform/client_product_projections_by_project_key_product_projections_key_by_key_get.go +++ b/platform/client_product_projections_by_project_key_product_projections_key_by_key_get.go @@ -198,7 +198,8 @@ func (rb *ByProjectKeyProductProjectionsKeyByKeyRequestMethodGet) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_projections_by_project_key_product_projections_key_by_key_head.go b/platform/client_product_projections_by_project_key_product_projections_key_by_key_head.go index 0c75343d..a6b61dfc 100644 --- a/platform/client_product_projections_by_project_key_product_projections_key_by_key_head.go +++ b/platform/client_product_projections_by_project_key_product_projections_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductProjectionsKeyByKeyRequestMethodHead) Execute(ctx c switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selection_assignments_by_project_key_in_store_key_by_store_key_product_selection_assignments_get.go b/platform/client_product_selection_assignments_by_project_key_in_store_key_by_store_key_product_selection_assignments_get.go index eafca1dc..0117d89a 100644 --- a/platform/client_product_selection_assignments_by_project_key_in_store_key_by_store_key_product_selection_assignments_get.go +++ b/platform/client_product_selection_assignments_by_project_key_in_store_key_by_store_key_product_selection_assignments_get.go @@ -180,7 +180,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyProductSelectionAssignmentsRequestMeth return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_by_id_delete.go b/platform/client_product_selections_by_project_key_product_selections_by_id_delete.go index 604282bc..f6b26868 100644 --- a/platform/client_product_selections_by_project_key_product_selections_by_id_delete.go +++ b/platform/client_product_selections_by_project_key_product_selections_by_id_delete.go @@ -126,7 +126,8 @@ func (rb *ByProjectKeyProductSelectionsByIDRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_by_id_get.go b/platform/client_product_selections_by_project_key_product_selections_by_id_get.go index 2bf0addd..825b7754 100644 --- a/platform/client_product_selections_by_project_key_product_selections_by_id_get.go +++ b/platform/client_product_selections_by_project_key_product_selections_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyProductSelectionsByIDRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_by_id_head.go b/platform/client_product_selections_by_project_key_product_selections_by_id_head.go index 1f3fe27e..d1fb9a7b 100644 --- a/platform/client_product_selections_by_project_key_product_selections_by_id_head.go +++ b/platform/client_product_selections_by_project_key_product_selections_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductSelectionsByIDRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_by_id_post.go b/platform/client_product_selections_by_project_key_product_selections_by_id_post.go index d054fd6c..40c9ff79 100644 --- a/platform/client_product_selections_by_project_key_product_selections_by_id_post.go +++ b/platform/client_product_selections_by_project_key_product_selections_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyProductSelectionsByIDRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_get.go b/platform/client_product_selections_by_project_key_product_selections_get.go index 0aa0fe86..487f6995 100644 --- a/platform/client_product_selections_by_project_key_product_selections_get.go +++ b/platform/client_product_selections_by_project_key_product_selections_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyProductSelectionsRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_head.go b/platform/client_product_selections_by_project_key_product_selections_head.go index 1ed7336b..d0a1ffd2 100644 --- a/platform/client_product_selections_by_project_key_product_selections_head.go +++ b/platform/client_product_selections_by_project_key_product_selections_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyProductSelectionsRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_key_by_key_delete.go b/platform/client_product_selections_by_project_key_product_selections_key_by_key_delete.go index 6dbe3ae8..ae4ca4f7 100644 --- a/platform/client_product_selections_by_project_key_product_selections_key_by_key_delete.go +++ b/platform/client_product_selections_by_project_key_product_selections_key_by_key_delete.go @@ -126,7 +126,8 @@ func (rb *ByProjectKeyProductSelectionsKeyByKeyRequestMethodDelete) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_key_by_key_get.go b/platform/client_product_selections_by_project_key_product_selections_key_by_key_get.go index 20f75af0..e0a4f3ca 100644 --- a/platform/client_product_selections_by_project_key_product_selections_key_by_key_get.go +++ b/platform/client_product_selections_by_project_key_product_selections_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyProductSelectionsKeyByKeyRequestMethodGet) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_key_by_key_head.go b/platform/client_product_selections_by_project_key_product_selections_key_by_key_head.go index 73618b32..1a3ac15a 100644 --- a/platform/client_product_selections_by_project_key_product_selections_key_by_key_head.go +++ b/platform/client_product_selections_by_project_key_product_selections_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductSelectionsKeyByKeyRequestMethodHead) Execute(ctx co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_key_by_key_post.go b/platform/client_product_selections_by_project_key_product_selections_key_by_key_post.go index f5bf176c..22757d0b 100644 --- a/platform/client_product_selections_by_project_key_product_selections_key_by_key_post.go +++ b/platform/client_product_selections_by_project_key_product_selections_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyProductSelectionsKeyByKeyRequestMethodPost) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_product_selections_post.go b/platform/client_product_selections_by_project_key_product_selections_post.go index 579354a4..7d76fbd1 100644 --- a/platform/client_product_selections_by_project_key_product_selections_post.go +++ b/platform/client_product_selections_by_project_key_product_selections_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyProductSelectionsRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_products_by_id_product_selections_get.go b/platform/client_product_selections_by_project_key_products_by_id_product_selections_get.go index 17cc3316..f2d65854 100644 --- a/platform/client_product_selections_by_project_key_products_by_id_product_selections_get.go +++ b/platform/client_product_selections_by_project_key_products_by_id_product_selections_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyProductsByIDProductSelectionsRequestMethodGet) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_selections_by_project_key_products_key_by_key_product_selections_get.go b/platform/client_product_selections_by_project_key_products_key_by_key_product_selections_get.go index 079a4128..0d471ca1 100644 --- a/platform/client_product_selections_by_project_key_products_key_by_key_product_selections_get.go +++ b/platform/client_product_selections_by_project_key_products_key_by_key_product_selections_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyProductsKeyByKeyProductSelectionsRequestMethodGet) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring.go new file mode 100644 index 00000000..9bf40606 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring.go @@ -0,0 +1,39 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "fmt" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder struct { + projectKey string + storeKey string + client *Client +} + +/** +* Queries Product Tailoring in a specific [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder) Get() *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + return &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet{ + url: fmt.Sprintf("/%s/in-store/key=%s/product-tailoring", rb.projectKey, rb.storeKey), + client: rb.client, + } +} + +/** +* Creates a [ProductTailoring](ctp:api:type:ProductTailoring) in the [Store](ctp:api:type:Store) specified by `storeKey`. +* When using this endpoint the ProductTailoring's `store` field is always set to the [Store](ctp:api:type:Store) specified in the path parameter. +* +* Generates the [ProductTailoringCreated](ctp:api:type:ProductTailoringCreatedMessage) Message. +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestBuilder) Post(body ProductTailoringInStoreDraft) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost { + return &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost{ + body: body, + url: fmt.Sprintf("/%s/in-store/key=%s/product-tailoring", rb.projectKey, rb.storeKey), + client: rb.client, + } +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_get.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_get.go new file mode 100644 index 00000000..fe56358d --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_get.go @@ -0,0 +1,222 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "strconv" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet struct { + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput struct { + Limit *int + Offset *int + WithTotal *bool + Expand []string + Where []string + PredicateVar map[string][]string + Sort []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput) Values() url.Values { + values := url.Values{} + if input.Limit != nil { + values.Add("limit", strconv.Itoa(*input.Limit)) + } + if input.Offset != nil { + values.Add("offset", strconv.Itoa(*input.Offset)) + } + if input.WithTotal != nil { + if *input.WithTotal { + values.Add("withTotal", "true") + } else { + values.Add("withTotal", "false") + } + } + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + for _, v := range input.Where { + values.Add("where", fmt.Sprintf("%v", v)) + } + for k, v := range input.PredicateVar { + for _, x := range v { + values.Add(k, x) + } + } + for _, v := range input.Sort { + values.Add("sort", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Limit(v int) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Limit = &v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Offset(v int) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Offset = &v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) WithTotal(v bool) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.WithTotal = &v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Where(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Where = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) PredicateVar(v map[string][]string) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.PredicateVar = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Sort(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Sort = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGetInput) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet { + rb.headers = headers + return rb +} + +/** +* Queries Product Tailoring in a specific [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodGet) Execute(ctx context.Context) (result *ProductTailoringPagedQueryResponse, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.get( + ctx, + rb.url, + queryParams, + rb.headers, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_post.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_post.go new file mode 100644 index 00000000..ac61c535 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_product_tailoring_post.go @@ -0,0 +1,152 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost struct { + body ProductTailoringInStoreDraft + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPostInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPostInput struct { + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPostInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPostInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPostInput) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost { + rb.headers = headers + return rb +} + +/** +* Creates a [ProductTailoring](ctp:api:type:ProductTailoring) in the [Store](ctp:api:type:Store) specified by `storeKey`. +* When using this endpoint the ProductTailoring's `store` field is always set to the [Store](ctp:api:type:Store) specified in the path parameter. +* +* Generates the [ProductTailoringCreated](ctp:api:type:ProductTailoringCreatedMessage) Message. +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductTailoringRequestMethodPost) Execute(ctx context.Context) (result *ProductTailoring, err error) { + data, err := serializeInput(rb.body) + if err != nil { + return nil, err + } + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.post( + ctx, + rb.url, + queryParams, + rb.headers, + data, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 201: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring.go new file mode 100644 index 00000000..b1f678c8 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring.go @@ -0,0 +1,48 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "fmt" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder struct { + projectKey string + storeKey string + productId string + client *Client +} + +/** +* Gets the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product ID in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder) Get() *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet { + return &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet{ + url: fmt.Sprintf("/%s/in-store/key=%s/products/%s/product-tailoring", rb.projectKey, rb.storeKey, rb.productId), + client: rb.client, + } +} + +/** +* Updates the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product ID in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder) Post(body ProductTailoringUpdate) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost { + return &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost{ + body: body, + url: fmt.Sprintf("/%s/in-store/key=%s/products/%s/product-tailoring", rb.projectKey, rb.storeKey, rb.productId), + client: rb.client, + } +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder) Delete() *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete { + return &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete{ + url: fmt.Sprintf("/%s/in-store/key=%s/products/%s/product-tailoring", rb.projectKey, rb.storeKey, rb.productId), + client: rb.client, + } +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_delete.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_delete.go new file mode 100644 index 00000000..17ac85f7 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_delete.go @@ -0,0 +1,162 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "strconv" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete struct { + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDeleteInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDeleteInput struct { + Version int + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDeleteInput) Values() url.Values { + values := url.Values{} + values.Add("version", strconv.Itoa(input.Version)) + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete) Version(v int) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDeleteInput{} + } + rb.params.Version = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDeleteInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDeleteInput) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete { + rb.headers = headers + return rb +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodDelete) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.delete( + ctx, + rb.url, + queryParams, + rb.headers, + nil, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_get.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_get.go new file mode 100644 index 00000000..3b4a405c --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_get.go @@ -0,0 +1,143 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet struct { + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGetInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGetInput struct { + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGetInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGetInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGetInput) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet { + rb.headers = headers + return rb +} + +/** +* Gets the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product ID in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodGet) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.get( + ctx, + rb.url, + queryParams, + rb.headers, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_post.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_post.go new file mode 100644 index 00000000..f305e7d5 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_by_product_id_product_tailoring_post.go @@ -0,0 +1,156 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost struct { + body ProductTailoringUpdate + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPostInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPostInput struct { + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPostInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPostInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPostInput) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost { + rb.headers = headers + return rb +} + +/** +* Updates the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product ID in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestMethodPost) Execute(ctx context.Context) (result *ProductTailoring, err error) { + data, err := serializeInput(rb.body) + if err != nil { + return nil, err + } + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.post( + ctx, + rb.url, + queryParams, + rb.headers, + data, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring.go new file mode 100644 index 00000000..ced10400 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring.go @@ -0,0 +1,48 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "fmt" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder struct { + projectKey string + storeKey string + productKey string + client *Client +} + +/** +* Gets the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product key in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder) Get() *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet { + return &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet{ + url: fmt.Sprintf("/%s/in-store/key=%s/products/key=%s/product-tailoring", rb.projectKey, rb.storeKey, rb.productKey), + client: rb.client, + } +} + +/** +* Updates the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product key in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder) Post(body ProductTailoringUpdate) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost { + return &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost{ + body: body, + url: fmt.Sprintf("/%s/in-store/key=%s/products/key=%s/product-tailoring", rb.projectKey, rb.storeKey, rb.productKey), + client: rb.client, + } +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder) Delete() *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete { + return &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete{ + url: fmt.Sprintf("/%s/in-store/key=%s/products/key=%s/product-tailoring", rb.projectKey, rb.storeKey, rb.productKey), + client: rb.client, + } +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_delete.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_delete.go new file mode 100644 index 00000000..b6dbd36c --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_delete.go @@ -0,0 +1,162 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "strconv" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete struct { + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDeleteInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDeleteInput struct { + Version int + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDeleteInput) Values() url.Values { + values := url.Values{} + values.Add("version", strconv.Itoa(input.Version)) + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete) Version(v int) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDeleteInput{} + } + rb.params.Version = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDeleteInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDeleteInput) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete { + rb.headers = headers + return rb +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodDelete) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.delete( + ctx, + rb.url, + queryParams, + rb.headers, + nil, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_get.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_get.go new file mode 100644 index 00000000..962cc0a5 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_get.go @@ -0,0 +1,143 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet struct { + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGetInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGetInput struct { + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGetInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGetInput) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet { + rb.headers = headers + return rb +} + +/** +* Gets the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product key in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodGet) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.get( + ctx, + rb.url, + queryParams, + rb.headers, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_post.go b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_post.go new file mode 100644 index 00000000..15459f3b --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_in_store_key_by_store_key_products_key_by_product_key_product_tailoring_post.go @@ -0,0 +1,156 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost struct { + body ProductTailoringUpdate + url string + client *Client + headers http.Header + params *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPostInput +} + +func (r *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPostInput struct { + Expand []string +} + +func (input *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPostInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost) Expand(v []string) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost { + if rb.params == nil { + rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPostInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost) WithQueryParams(input ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPostInput) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost { + rb.params = &input + return rb +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost { + rb.headers = headers + return rb +} + +/** +* Updates the current or staged representation of a [Product Tailoring](ctp:api:type:ProductTailoring) by its Product key in the specified [Store](ctp:api:type:Store). +* + */ +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestMethodPost) Execute(ctx context.Context) (result *ProductTailoring, err error) { + data, err := serializeInput(rb.body) + if err != nil { + return nil, err + } + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.post( + ctx, + rb.url, + queryParams, + rb.headers, + data, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring.go b/platform/client_product_tailoring_by_project_key_product_tailoring.go new file mode 100644 index 00000000..48776e04 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring.go @@ -0,0 +1,45 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "fmt" +) + +type ByProjectKeyProductTailoringRequestBuilder struct { + projectKey string + client *Client +} + +func (rb *ByProjectKeyProductTailoringRequestBuilder) WithKey(key string) *ByProjectKeyProductTailoringKeyByKeyRequestBuilder { + return &ByProjectKeyProductTailoringKeyByKeyRequestBuilder{ + key: key, + projectKey: rb.projectKey, + client: rb.client, + } +} +func (rb *ByProjectKeyProductTailoringRequestBuilder) WithId(id string) *ByProjectKeyProductTailoringByIDRequestBuilder { + return &ByProjectKeyProductTailoringByIDRequestBuilder{ + id: id, + projectKey: rb.projectKey, + client: rb.client, + } +} +func (rb *ByProjectKeyProductTailoringRequestBuilder) Get() *ByProjectKeyProductTailoringRequestMethodGet { + return &ByProjectKeyProductTailoringRequestMethodGet{ + url: fmt.Sprintf("/%s/product-tailoring", rb.projectKey), + client: rb.client, + } +} + +/** +* Generates the [ProductTailoringCreated](ctp:api:type:ProductTailoringCreatedMessage) Message. +* + */ +func (rb *ByProjectKeyProductTailoringRequestBuilder) Post(body ProductTailoringDraft) *ByProjectKeyProductTailoringRequestMethodPost { + return &ByProjectKeyProductTailoringRequestMethodPost{ + body: body, + url: fmt.Sprintf("/%s/product-tailoring", rb.projectKey), + client: rb.client, + } +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_by_id.go b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id.go new file mode 100644 index 00000000..c539f3e6 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id.go @@ -0,0 +1,39 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "fmt" +) + +type ByProjectKeyProductTailoringByIDRequestBuilder struct { + projectKey string + id string + client *Client +} + +func (rb *ByProjectKeyProductTailoringByIDRequestBuilder) Get() *ByProjectKeyProductTailoringByIDRequestMethodGet { + return &ByProjectKeyProductTailoringByIDRequestMethodGet{ + url: fmt.Sprintf("/%s/product-tailoring/%s", rb.projectKey, rb.id), + client: rb.client, + } +} + +func (rb *ByProjectKeyProductTailoringByIDRequestBuilder) Post(body ProductTailoringUpdate) *ByProjectKeyProductTailoringByIDRequestMethodPost { + return &ByProjectKeyProductTailoringByIDRequestMethodPost{ + body: body, + url: fmt.Sprintf("/%s/product-tailoring/%s", rb.projectKey, rb.id), + client: rb.client, + } +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyProductTailoringByIDRequestBuilder) Delete() *ByProjectKeyProductTailoringByIDRequestMethodDelete { + return &ByProjectKeyProductTailoringByIDRequestMethodDelete{ + url: fmt.Sprintf("/%s/product-tailoring/%s", rb.projectKey, rb.id), + client: rb.client, + } +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_delete.go b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_delete.go new file mode 100644 index 00000000..7e2c6688 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_delete.go @@ -0,0 +1,162 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "strconv" +) + +type ByProjectKeyProductTailoringByIDRequestMethodDelete struct { + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringByIDRequestMethodDeleteInput +} + +func (r *ByProjectKeyProductTailoringByIDRequestMethodDelete) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringByIDRequestMethodDeleteInput struct { + Version int + Expand []string +} + +func (input *ByProjectKeyProductTailoringByIDRequestMethodDeleteInput) Values() url.Values { + values := url.Values{} + values.Add("version", strconv.Itoa(input.Version)) + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodDelete) Version(v int) *ByProjectKeyProductTailoringByIDRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringByIDRequestMethodDeleteInput{} + } + rb.params.Version = v + return rb +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodDelete) Expand(v []string) *ByProjectKeyProductTailoringByIDRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringByIDRequestMethodDeleteInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodDelete) WithQueryParams(input ByProjectKeyProductTailoringByIDRequestMethodDeleteInput) *ByProjectKeyProductTailoringByIDRequestMethodDelete { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringByIDRequestMethodDelete) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringByIDRequestMethodDelete { + rb.headers = headers + return rb +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyProductTailoringByIDRequestMethodDelete) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.delete( + ctx, + rb.url, + queryParams, + rb.headers, + nil, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_get.go b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_get.go new file mode 100644 index 00000000..abaa0c18 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_get.go @@ -0,0 +1,138 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyProductTailoringByIDRequestMethodGet struct { + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringByIDRequestMethodGetInput +} + +func (r *ByProjectKeyProductTailoringByIDRequestMethodGet) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringByIDRequestMethodGetInput struct { + Expand []string +} + +func (input *ByProjectKeyProductTailoringByIDRequestMethodGetInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodGet) Expand(v []string) *ByProjectKeyProductTailoringByIDRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringByIDRequestMethodGetInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodGet) WithQueryParams(input ByProjectKeyProductTailoringByIDRequestMethodGetInput) *ByProjectKeyProductTailoringByIDRequestMethodGet { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringByIDRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringByIDRequestMethodGet { + rb.headers = headers + return rb +} +func (rb *ByProjectKeyProductTailoringByIDRequestMethodGet) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.get( + ctx, + rb.url, + queryParams, + rb.headers, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_post.go b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_post.go new file mode 100644 index 00000000..d5e701b6 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_by_id_post.go @@ -0,0 +1,151 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyProductTailoringByIDRequestMethodPost struct { + body ProductTailoringUpdate + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringByIDRequestMethodPostInput +} + +func (r *ByProjectKeyProductTailoringByIDRequestMethodPost) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringByIDRequestMethodPostInput struct { + Expand []string +} + +func (input *ByProjectKeyProductTailoringByIDRequestMethodPostInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodPost) Expand(v []string) *ByProjectKeyProductTailoringByIDRequestMethodPost { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringByIDRequestMethodPostInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringByIDRequestMethodPost) WithQueryParams(input ByProjectKeyProductTailoringByIDRequestMethodPostInput) *ByProjectKeyProductTailoringByIDRequestMethodPost { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringByIDRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringByIDRequestMethodPost { + rb.headers = headers + return rb +} +func (rb *ByProjectKeyProductTailoringByIDRequestMethodPost) Execute(ctx context.Context) (result *ProductTailoring, err error) { + data, err := serializeInput(rb.body) + if err != nil { + return nil, err + } + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.post( + ctx, + rb.url, + queryParams, + rb.headers, + data, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_get.go b/platform/client_product_tailoring_by_project_key_product_tailoring_get.go new file mode 100644 index 00000000..025777e7 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_get.go @@ -0,0 +1,217 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "strconv" +) + +type ByProjectKeyProductTailoringRequestMethodGet struct { + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringRequestMethodGetInput +} + +func (r *ByProjectKeyProductTailoringRequestMethodGet) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringRequestMethodGetInput struct { + Expand []string + Sort []string + Limit *int + Offset *int + WithTotal *bool + Where []string + PredicateVar map[string][]string +} + +func (input *ByProjectKeyProductTailoringRequestMethodGetInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + for _, v := range input.Sort { + values.Add("sort", fmt.Sprintf("%v", v)) + } + if input.Limit != nil { + values.Add("limit", strconv.Itoa(*input.Limit)) + } + if input.Offset != nil { + values.Add("offset", strconv.Itoa(*input.Offset)) + } + if input.WithTotal != nil { + if *input.WithTotal { + values.Add("withTotal", "true") + } else { + values.Add("withTotal", "false") + } + } + for _, v := range input.Where { + values.Add("where", fmt.Sprintf("%v", v)) + } + for k, v := range input.PredicateVar { + for _, x := range v { + values.Add(k, x) + } + } + return values +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) Expand(v []string) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) Sort(v []string) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Sort = v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) Limit(v int) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Limit = &v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) Offset(v int) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Offset = &v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) WithTotal(v bool) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.WithTotal = &v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) Where(v []string) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.Where = v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) PredicateVar(v map[string][]string) *ByProjectKeyProductTailoringRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodGetInput{} + } + rb.params.PredicateVar = v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodGet) WithQueryParams(input ByProjectKeyProductTailoringRequestMethodGetInput) *ByProjectKeyProductTailoringRequestMethodGet { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringRequestMethodGet { + rb.headers = headers + return rb +} +func (rb *ByProjectKeyProductTailoringRequestMethodGet) Execute(ctx context.Context) (result *ProductTailoringPagedQueryResponse, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.get( + ctx, + rb.url, + queryParams, + rb.headers, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key.go b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key.go new file mode 100644 index 00000000..dacdd33c --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key.go @@ -0,0 +1,39 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "fmt" +) + +type ByProjectKeyProductTailoringKeyByKeyRequestBuilder struct { + projectKey string + key string + client *Client +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestBuilder) Get() *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet { + return &ByProjectKeyProductTailoringKeyByKeyRequestMethodGet{ + url: fmt.Sprintf("/%s/product-tailoring/key=%s", rb.projectKey, rb.key), + client: rb.client, + } +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestBuilder) Post(body ProductTailoringUpdate) *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost { + return &ByProjectKeyProductTailoringKeyByKeyRequestMethodPost{ + body: body, + url: fmt.Sprintf("/%s/product-tailoring/key=%s", rb.projectKey, rb.key), + client: rb.client, + } +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestBuilder) Delete() *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete { + return &ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete{ + url: fmt.Sprintf("/%s/product-tailoring/key=%s", rb.projectKey, rb.key), + client: rb.client, + } +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_delete.go b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_delete.go new file mode 100644 index 00000000..3b4569d6 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_delete.go @@ -0,0 +1,162 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "strconv" +) + +type ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete struct { + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringKeyByKeyRequestMethodDeleteInput +} + +func (r *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringKeyByKeyRequestMethodDeleteInput struct { + Version int + Expand []string +} + +func (input *ByProjectKeyProductTailoringKeyByKeyRequestMethodDeleteInput) Values() url.Values { + values := url.Values{} + values.Add("version", strconv.Itoa(input.Version)) + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete) Version(v int) *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringKeyByKeyRequestMethodDeleteInput{} + } + rb.params.Version = v + return rb +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete) Expand(v []string) *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringKeyByKeyRequestMethodDeleteInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete) WithQueryParams(input ByProjectKeyProductTailoringKeyByKeyRequestMethodDeleteInput) *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete { + rb.headers = headers + return rb +} + +/** +* Generates the [ProductTailoringDeleted](ctp:api:type:ProductTailoringDeletedMessage) Message. +* + */ +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodDelete) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.delete( + ctx, + rb.url, + queryParams, + rb.headers, + nil, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_get.go b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_get.go new file mode 100644 index 00000000..f7a409a3 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_get.go @@ -0,0 +1,138 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyProductTailoringKeyByKeyRequestMethodGet struct { + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringKeyByKeyRequestMethodGetInput +} + +func (r *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringKeyByKeyRequestMethodGetInput struct { + Expand []string +} + +func (input *ByProjectKeyProductTailoringKeyByKeyRequestMethodGetInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet) Expand(v []string) *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringKeyByKeyRequestMethodGetInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet) WithQueryParams(input ByProjectKeyProductTailoringKeyByKeyRequestMethodGetInput) *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet { + rb.headers = headers + return rb +} +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodGet) Execute(ctx context.Context) (result *ProductTailoring, err error) { + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.get( + ctx, + rb.url, + queryParams, + rb.headers, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_post.go b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_post.go new file mode 100644 index 00000000..938c6656 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_key_by_key_post.go @@ -0,0 +1,151 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyProductTailoringKeyByKeyRequestMethodPost struct { + body ProductTailoringUpdate + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringKeyByKeyRequestMethodPostInput +} + +func (r *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringKeyByKeyRequestMethodPostInput struct { + Expand []string +} + +func (input *ByProjectKeyProductTailoringKeyByKeyRequestMethodPostInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost) Expand(v []string) *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringKeyByKeyRequestMethodPostInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost) WithQueryParams(input ByProjectKeyProductTailoringKeyByKeyRequestMethodPostInput) *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost { + rb.headers = headers + return rb +} +func (rb *ByProjectKeyProductTailoringKeyByKeyRequestMethodPost) Execute(ctx context.Context) (result *ProductTailoring, err error) { + data, err := serializeInput(rb.body) + if err != nil { + return nil, err + } + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.post( + ctx, + rb.url, + queryParams, + rb.headers, + data, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 200: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 409: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_tailoring_by_project_key_product_tailoring_post.go b/platform/client_product_tailoring_by_project_key_product_tailoring_post.go new file mode 100644 index 00000000..b614d951 --- /dev/null +++ b/platform/client_product_tailoring_by_project_key_product_tailoring_post.go @@ -0,0 +1,149 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "net/url" +) + +type ByProjectKeyProductTailoringRequestMethodPost struct { + body ProductTailoringDraft + url string + client *Client + headers http.Header + params *ByProjectKeyProductTailoringRequestMethodPostInput +} + +func (r *ByProjectKeyProductTailoringRequestMethodPost) Dump() map[string]interface{} { + return map[string]interface{}{ + "url": r.url, + "params": r.params, + } +} + +type ByProjectKeyProductTailoringRequestMethodPostInput struct { + Expand []string +} + +func (input *ByProjectKeyProductTailoringRequestMethodPostInput) Values() url.Values { + values := url.Values{} + for _, v := range input.Expand { + values.Add("expand", fmt.Sprintf("%v", v)) + } + return values +} + +func (rb *ByProjectKeyProductTailoringRequestMethodPost) Expand(v []string) *ByProjectKeyProductTailoringRequestMethodPost { + if rb.params == nil { + rb.params = &ByProjectKeyProductTailoringRequestMethodPostInput{} + } + rb.params.Expand = v + return rb +} + +func (rb *ByProjectKeyProductTailoringRequestMethodPost) WithQueryParams(input ByProjectKeyProductTailoringRequestMethodPostInput) *ByProjectKeyProductTailoringRequestMethodPost { + rb.params = &input + return rb +} +func (rb *ByProjectKeyProductTailoringRequestMethodPost) WithHeaders(headers http.Header) *ByProjectKeyProductTailoringRequestMethodPost { + rb.headers = headers + return rb +} + +/** +* Generates the [ProductTailoringCreated](ctp:api:type:ProductTailoringCreatedMessage) Message. +* + */ +func (rb *ByProjectKeyProductTailoringRequestMethodPost) Execute(ctx context.Context) (result *ProductTailoring, err error) { + data, err := serializeInput(rb.body) + if err != nil { + return nil, err + } + var queryParams url.Values + if rb.params != nil { + queryParams = rb.params.Values() + } else { + queryParams = url.Values{} + } + resp, err := rb.client.post( + ctx, + rb.url, + queryParams, + rb.headers, + data, + ) + + if err != nil { + return nil, err + } + content, err := ioutil.ReadAll(resp.Body) + if err != nil { + return nil, err + } + defer resp.Body.Close() + switch resp.StatusCode { + case 201: + err = json.Unmarshal(content, &result) + if err != nil { + return nil, err + } + return result, nil + case 400: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 401: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 403: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 404: + return nil, ErrNotFound + case 500: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 502: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + case 503: + errorObj := ErrorResponse{} + err = json.Unmarshal(content, &errorObj) + if err != nil { + return nil, err + } + return nil, errorObj + default: + result := GenericRequestError{ + StatusCode: resp.StatusCode, + Content: content, + Response: resp, + } + return nil, result + } + +} diff --git a/platform/client_product_types_by_project_key_product_types_by_id_delete.go b/platform/client_product_types_by_project_key_product_types_by_id_delete.go index be40f2ae..dfc81001 100644 --- a/platform/client_product_types_by_project_key_product_types_by_id_delete.go +++ b/platform/client_product_types_by_project_key_product_types_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyProductTypesByIDRequestMethodDelete) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_by_id_get.go b/platform/client_product_types_by_project_key_product_types_by_id_get.go index ae22aab7..5d8d9796 100644 --- a/platform/client_product_types_by_project_key_product_types_by_id_get.go +++ b/platform/client_product_types_by_project_key_product_types_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyProductTypesByIDRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_by_id_head.go b/platform/client_product_types_by_project_key_product_types_by_id_head.go index 7f60c93b..57359849 100644 --- a/platform/client_product_types_by_project_key_product_types_by_id_head.go +++ b/platform/client_product_types_by_project_key_product_types_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductTypesByIDRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_by_id_post.go b/platform/client_product_types_by_project_key_product_types_by_id_post.go index 69b5cfd6..97c993c2 100644 --- a/platform/client_product_types_by_project_key_product_types_by_id_post.go +++ b/platform/client_product_types_by_project_key_product_types_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyProductTypesByIDRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_get.go b/platform/client_product_types_by_project_key_product_types_get.go index c8d9985a..7ea6bb5f 100644 --- a/platform/client_product_types_by_project_key_product_types_get.go +++ b/platform/client_product_types_by_project_key_product_types_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyProductTypesRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_head.go b/platform/client_product_types_by_project_key_product_types_head.go index c96e9429..f230c293 100644 --- a/platform/client_product_types_by_project_key_product_types_head.go +++ b/platform/client_product_types_by_project_key_product_types_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyProductTypesRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_key_by_key_delete.go b/platform/client_product_types_by_project_key_product_types_key_by_key_delete.go index 221726cb..79184a4e 100644 --- a/platform/client_product_types_by_project_key_product_types_key_by_key_delete.go +++ b/platform/client_product_types_by_project_key_product_types_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyProductTypesKeyByKeyRequestMethodDelete) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_key_by_key_get.go b/platform/client_product_types_by_project_key_product_types_key_by_key_get.go index dd719cc0..5ed6d08a 100644 --- a/platform/client_product_types_by_project_key_product_types_key_by_key_get.go +++ b/platform/client_product_types_by_project_key_product_types_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyProductTypesKeyByKeyRequestMethodGet) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_key_by_key_head.go b/platform/client_product_types_by_project_key_product_types_key_by_key_head.go index 6527c002..d7f3628c 100644 --- a/platform/client_product_types_by_project_key_product_types_key_by_key_head.go +++ b/platform/client_product_types_by_project_key_product_types_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductTypesKeyByKeyRequestMethodHead) Execute(ctx context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_key_by_key_post.go b/platform/client_product_types_by_project_key_product_types_key_by_key_post.go index 41f35932..8d24ccad 100644 --- a/platform/client_product_types_by_project_key_product_types_key_by_key_post.go +++ b/platform/client_product_types_by_project_key_product_types_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyProductTypesKeyByKeyRequestMethodPost) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_product_types_by_project_key_product_types_post.go b/platform/client_product_types_by_project_key_product_types_post.go index 91bba597..f6a6335e 100644 --- a/platform/client_product_types_by_project_key_product_types_post.go +++ b/platform/client_product_types_by_project_key_product_types_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyProductTypesRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_in_store_key_by_store_key_products.go b/platform/client_products_by_project_key_in_store_key_by_store_key_products.go new file mode 100644 index 00000000..83da0e25 --- /dev/null +++ b/platform/client_products_by_project_key_in_store_key_by_store_key_products.go @@ -0,0 +1,26 @@ +package platform + +// Generated file, please do not change!!! + +type ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder struct { + projectKey string + storeKey string + client *Client +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder) WithProductId(productId string) *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder { + return &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder{ + productId: productId, + projectKey: rb.projectKey, + storeKey: rb.storeKey, + client: rb.client, + } +} +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsRequestBuilder) WithProductKey(productKey string) *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder { + return &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder{ + productKey: productKey, + projectKey: rb.projectKey, + storeKey: rb.storeKey, + client: rb.client, + } +} diff --git a/platform/client_products_by_project_key_in_store_key_by_store_key_products_by_product_id.go b/platform/client_products_by_project_key_in_store_key_by_store_key_products_by_product_id.go new file mode 100644 index 00000000..4415a53c --- /dev/null +++ b/platform/client_products_by_project_key_in_store_key_by_store_key_products_by_product_id.go @@ -0,0 +1,19 @@ +package platform + +// Generated file, please do not change!!! + +type ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder struct { + projectKey string + storeKey string + productId string + client *Client +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDRequestBuilder) ProductTailoring() *ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder { + return &ByProjectKeyInStoreKeyByStoreKeyProductsByProductIDProductTailoringRequestBuilder{ + projectKey: rb.projectKey, + storeKey: rb.storeKey, + productId: rb.productId, + client: rb.client, + } +} diff --git a/platform/client_products_by_project_key_in_store_key_by_store_key_products_key_by_product_key.go b/platform/client_products_by_project_key_in_store_key_by_store_key_products_key_by_product_key.go new file mode 100644 index 00000000..1b190f00 --- /dev/null +++ b/platform/client_products_by_project_key_in_store_key_by_store_key_products_key_by_product_key.go @@ -0,0 +1,19 @@ +package platform + +// Generated file, please do not change!!! + +type ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder struct { + projectKey string + storeKey string + productKey string + client *Client +} + +func (rb *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyRequestBuilder) ProductTailoring() *ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder { + return &ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringRequestBuilder{ + projectKey: rb.projectKey, + storeKey: rb.storeKey, + productKey: rb.productKey, + client: rb.client, + } +} diff --git a/platform/client_products_by_project_key_product_selections_by_id_products_get.go b/platform/client_products_by_project_key_product_selections_by_id_products_get.go index f8a4e2e3..5d945809 100644 --- a/platform/client_products_by_project_key_product_selections_by_id_products_get.go +++ b/platform/client_products_by_project_key_product_selections_by_id_products_get.go @@ -156,7 +156,8 @@ func (rb *ByProjectKeyProductSelectionsByIDProductsRequestMethodGet) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_product_selections_key_by_key_products_get.go b/platform/client_products_by_project_key_product_selections_key_by_key_products_get.go index 273438ae..a033068c 100644 --- a/platform/client_products_by_project_key_product_selections_key_by_key_products_get.go +++ b/platform/client_products_by_project_key_product_selections_key_by_key_products_get.go @@ -156,7 +156,8 @@ func (rb *ByProjectKeyProductSelectionsKeyByKeyProductsRequestMethodGet) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_by_id_delete.go b/platform/client_products_by_project_key_products_by_id_delete.go index 1fd0b7f9..7cdb7d72 100644 --- a/platform/client_products_by_project_key_products_by_id_delete.go +++ b/platform/client_products_by_project_key_products_by_id_delete.go @@ -187,7 +187,8 @@ func (rb *ByProjectKeyProductsByIDRequestMethodDelete) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_by_id_get.go b/platform/client_products_by_project_key_products_by_id_get.go index 842d44d9..7321f1c9 100644 --- a/platform/client_products_by_project_key_products_by_id_get.go +++ b/platform/client_products_by_project_key_products_by_id_get.go @@ -167,7 +167,8 @@ func (rb *ByProjectKeyProductsByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_by_id_head.go b/platform/client_products_by_project_key_products_by_id_head.go index 56d5569f..fa7742bc 100644 --- a/platform/client_products_by_project_key_products_by_id_head.go +++ b/platform/client_products_by_project_key_products_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductsByIDRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_by_id_post.go b/platform/client_products_by_project_key_products_by_id_post.go index d79c5b71..e81f79b6 100644 --- a/platform/client_products_by_project_key_products_by_id_post.go +++ b/platform/client_products_by_project_key_products_by_id_post.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyProductsByIDRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_get.go b/platform/client_products_by_project_key_products_get.go index 0af109d2..69ab3b8a 100644 --- a/platform/client_products_by_project_key_products_get.go +++ b/platform/client_products_by_project_key_products_get.go @@ -246,7 +246,8 @@ func (rb *ByProjectKeyProductsRequestMethodGet) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_head.go b/platform/client_products_by_project_key_products_head.go index 2fd66bc1..fd226387 100644 --- a/platform/client_products_by_project_key_products_head.go +++ b/platform/client_products_by_project_key_products_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyProductsRequestMethodHead) Execute(ctx context.Context) er switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_key_by_key_delete.go b/platform/client_products_by_project_key_products_key_by_key_delete.go index 01ee93cd..4e0e2851 100644 --- a/platform/client_products_by_project_key_products_key_by_key_delete.go +++ b/platform/client_products_by_project_key_products_key_by_key_delete.go @@ -187,7 +187,8 @@ func (rb *ByProjectKeyProductsKeyByKeyRequestMethodDelete) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_key_by_key_get.go b/platform/client_products_by_project_key_products_key_by_key_get.go index eac698ef..f508ede7 100644 --- a/platform/client_products_by_project_key_products_key_by_key_get.go +++ b/platform/client_products_by_project_key_products_key_by_key_get.go @@ -167,7 +167,8 @@ func (rb *ByProjectKeyProductsKeyByKeyRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_key_by_key_head.go b/platform/client_products_by_project_key_products_key_by_key_head.go index 578de1f9..6fcccc74 100644 --- a/platform/client_products_by_project_key_products_key_by_key_head.go +++ b/platform/client_products_by_project_key_products_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyProductsKeyByKeyRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_key_by_key_post.go b/platform/client_products_by_project_key_products_key_by_key_post.go index fc91fa49..77696587 100644 --- a/platform/client_products_by_project_key_products_key_by_key_post.go +++ b/platform/client_products_by_project_key_products_key_by_key_post.go @@ -180,7 +180,8 @@ func (rb *ByProjectKeyProductsKeyByKeyRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_products_by_project_key_products_post.go b/platform/client_products_by_project_key_products_post.go index 86a940de..d7f11ecf 100644 --- a/platform/client_products_by_project_key_products_post.go +++ b/platform/client_products_by_project_key_products_post.go @@ -176,7 +176,8 @@ func (rb *ByProjectKeyProductsRequestMethodPost) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_get.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_get.go index fdba4503..059391d1 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_get.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_head.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_head.go index 0d53ba83..f12d2ce1 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_head.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_post.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_post.go index 595b6101..d76064e0 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_post.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_get.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_get.go index 28a17bef..022ec4c6 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_get.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_head.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_head.go index a17d6584..79118a4b 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_head.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_get.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_get.go index ff07c176..81b6772e 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_get.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_head.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_head.go index e90d722c..deaf24bd 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_head.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_post.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_post.go index e1f204b3..c2b9743c 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_post.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_post.go b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_post.go index 8ebd35c5..e66f88b0 100644 --- a/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_post.go +++ b/platform/client_quote_requests_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quote_requests_post.go @@ -113,7 +113,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_delete.go b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_delete.go index c2288b6d..828de275 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_delete.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeQuoteRequestsByIDRequestMethodDelete) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_get.go b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_get.go index deb97cb6..4e683dcf 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_get.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeQuoteRequestsByIDRequestMethodGet) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_head.go b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_head.go index 3a0af195..f49d3d13 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_head.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeQuoteRequestsByIDRequestMethodHead) Execute(ctx context. switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_post.go b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_post.go index daff131a..ed2c330a 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_post.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeQuoteRequestsByIDRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_get.go b/platform/client_quote_requests_by_project_key_me_quote_requests_get.go index 966fd796..b3eeeddc 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_get.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeQuoteRequestsRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_head.go b/platform/client_quote_requests_by_project_key_me_quote_requests_head.go index 11429acf..f1070173 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_head.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeQuoteRequestsRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_delete.go b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_delete.go index 9485cc4d..940176aa 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_delete.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeQuoteRequestsKeyByKeyRequestMethodDelete) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_get.go b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_get.go index 8329214f..362eda9e 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_get.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeQuoteRequestsKeyByKeyRequestMethodGet) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_head.go b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_head.go index e1b625fd..410ed875 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_head.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeQuoteRequestsKeyByKeyRequestMethodHead) Execute(ctx cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_post.go b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_post.go index d95cca57..bdff2ae0 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_post.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeQuoteRequestsKeyByKeyRequestMethodPost) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_me_quote_requests_post.go b/platform/client_quote_requests_by_project_key_me_quote_requests_post.go index 75862280..65724c53 100644 --- a/platform/client_quote_requests_by_project_key_me_quote_requests_post.go +++ b/platform/client_quote_requests_by_project_key_me_quote_requests_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyMeQuoteRequestsRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_by_id_delete.go b/platform/client_quote_requests_by_project_key_quote_requests_by_id_delete.go index 87888e41..8676b4ec 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_by_id_delete.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyQuoteRequestsByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_by_id_get.go b/platform/client_quote_requests_by_project_key_quote_requests_by_id_get.go index 5381036c..3ab3f449 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_by_id_get.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyQuoteRequestsByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_by_id_head.go b/platform/client_quote_requests_by_project_key_quote_requests_by_id_head.go index 457ded98..2c08948d 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_by_id_head.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyQuoteRequestsByIDRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_by_id_post.go b/platform/client_quote_requests_by_project_key_quote_requests_by_id_post.go index 0833a2a8..ffab4591 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_by_id_post.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyQuoteRequestsByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_get.go b/platform/client_quote_requests_by_project_key_quote_requests_get.go index d60bc08a..3eaf7926 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_get.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyQuoteRequestsRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_head.go b/platform/client_quote_requests_by_project_key_quote_requests_head.go index 7cbe247b..5d6c1251 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_head.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyQuoteRequestsRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_delete.go b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_delete.go index a4c279aa..f1223cc8 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_delete.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyQuoteRequestsKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_get.go b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_get.go index db67b63a..8d1f72f2 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_get.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyQuoteRequestsKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_head.go b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_head.go index 917d3229..512095b5 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_head.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyQuoteRequestsKeyByKeyRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_post.go b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_post.go index 6202ad10..3ccc726d 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_post.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyQuoteRequestsKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quote_requests_by_project_key_quote_requests_post.go b/platform/client_quote_requests_by_project_key_quote_requests_post.go index d8b4458f..292f092d 100644 --- a/platform/client_quote_requests_by_project_key_quote_requests_post.go +++ b/platform/client_quote_requests_by_project_key_quote_requests_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyQuoteRequestsRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_quotes_post.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_quotes_post.go index 34a71c3c..a46a69c5 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_quotes_post.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_orders_quotes_post.go @@ -83,7 +83,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_get.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_get.go index 6d6b1133..81baa315 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_get.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_head.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_head.go index 9f5d8a63..cff10c7d 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_head.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_post.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_post.go index a1c7e8c5..55eb9b36 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_post.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_by_id_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_get.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_get.go index d5224b9f..d2513287 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_get.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_head.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_head.go index 80e3ca96..7453f942 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_head.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_get.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_get.go index b8fd4b5a..9c8822bb 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_get.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_head.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_head.go index e7278faf..29fd7059 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_head.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_post.go b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_post.go index e854b8c9..994e8846 100644 --- a/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_post.go +++ b/platform/client_quotes_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_quotes_key_by_key_post.go @@ -121,7 +121,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_orders_quotes_post.go b/platform/client_quotes_by_project_key_me_orders_quotes_post.go index e11ac537..4a6e2543 100644 --- a/platform/client_quotes_by_project_key_me_orders_quotes_post.go +++ b/platform/client_quotes_by_project_key_me_orders_quotes_post.go @@ -92,7 +92,8 @@ func (rb *ByProjectKeyMeOrdersQuotesRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_by_id_get.go b/platform/client_quotes_by_project_key_me_quotes_by_id_get.go index f35078b5..3dd27ef4 100644 --- a/platform/client_quotes_by_project_key_me_quotes_by_id_get.go +++ b/platform/client_quotes_by_project_key_me_quotes_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeQuotesByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_by_id_head.go b/platform/client_quotes_by_project_key_me_quotes_by_id_head.go index 9928b254..361309d7 100644 --- a/platform/client_quotes_by_project_key_me_quotes_by_id_head.go +++ b/platform/client_quotes_by_project_key_me_quotes_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeQuotesByIDRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_by_id_post.go b/platform/client_quotes_by_project_key_me_quotes_by_id_post.go index 7e020daa..e79f35c9 100644 --- a/platform/client_quotes_by_project_key_me_quotes_by_id_post.go +++ b/platform/client_quotes_by_project_key_me_quotes_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeQuotesByIDRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_get.go b/platform/client_quotes_by_project_key_me_quotes_get.go index 4a65b20c..593e0f28 100644 --- a/platform/client_quotes_by_project_key_me_quotes_get.go +++ b/platform/client_quotes_by_project_key_me_quotes_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeQuotesRequestMethodGet) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_head.go b/platform/client_quotes_by_project_key_me_quotes_head.go index 4653fbd6..59ed0a63 100644 --- a/platform/client_quotes_by_project_key_me_quotes_head.go +++ b/platform/client_quotes_by_project_key_me_quotes_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeQuotesRequestMethodHead) Execute(ctx context.Context) er switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_key_by_key_get.go b/platform/client_quotes_by_project_key_me_quotes_key_by_key_get.go index fef91f28..19de1cbf 100644 --- a/platform/client_quotes_by_project_key_me_quotes_key_by_key_get.go +++ b/platform/client_quotes_by_project_key_me_quotes_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeQuotesKeyByKeyRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_key_by_key_head.go b/platform/client_quotes_by_project_key_me_quotes_key_by_key_head.go index 99a0c1c2..1561a3eb 100644 --- a/platform/client_quotes_by_project_key_me_quotes_key_by_key_head.go +++ b/platform/client_quotes_by_project_key_me_quotes_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeQuotesKeyByKeyRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_me_quotes_key_by_key_post.go b/platform/client_quotes_by_project_key_me_quotes_key_by_key_post.go index 2b79875f..a4ca0132 100644 --- a/platform/client_quotes_by_project_key_me_quotes_key_by_key_post.go +++ b/platform/client_quotes_by_project_key_me_quotes_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeQuotesKeyByKeyRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_orders_quotes_post.go b/platform/client_quotes_by_project_key_orders_quotes_post.go index f4704bca..d0d5a3d1 100644 --- a/platform/client_quotes_by_project_key_orders_quotes_post.go +++ b/platform/client_quotes_by_project_key_orders_quotes_post.go @@ -90,7 +90,8 @@ func (rb *ByProjectKeyOrdersQuotesRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_by_id_delete.go b/platform/client_quotes_by_project_key_quotes_by_id_delete.go index 6572891a..31bf672d 100644 --- a/platform/client_quotes_by_project_key_quotes_by_id_delete.go +++ b/platform/client_quotes_by_project_key_quotes_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyQuotesByIDRequestMethodDelete) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_by_id_get.go b/platform/client_quotes_by_project_key_quotes_by_id_get.go index 163dd3d6..8b50d586 100644 --- a/platform/client_quotes_by_project_key_quotes_by_id_get.go +++ b/platform/client_quotes_by_project_key_quotes_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyQuotesByIDRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_by_id_head.go b/platform/client_quotes_by_project_key_quotes_by_id_head.go index 21112d7f..5d0f4dbc 100644 --- a/platform/client_quotes_by_project_key_quotes_by_id_head.go +++ b/platform/client_quotes_by_project_key_quotes_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyQuotesByIDRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_by_id_post.go b/platform/client_quotes_by_project_key_quotes_by_id_post.go index 70449961..efba14d8 100644 --- a/platform/client_quotes_by_project_key_quotes_by_id_post.go +++ b/platform/client_quotes_by_project_key_quotes_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyQuotesByIDRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_get.go b/platform/client_quotes_by_project_key_quotes_get.go index ba846659..d2147832 100644 --- a/platform/client_quotes_by_project_key_quotes_get.go +++ b/platform/client_quotes_by_project_key_quotes_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyQuotesRequestMethodGet) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_head.go b/platform/client_quotes_by_project_key_quotes_head.go index cbb054c2..458ac9f7 100644 --- a/platform/client_quotes_by_project_key_quotes_head.go +++ b/platform/client_quotes_by_project_key_quotes_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyQuotesRequestMethodHead) Execute(ctx context.Context) erro switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_key_by_key_delete.go b/platform/client_quotes_by_project_key_quotes_key_by_key_delete.go index 43f08df5..376a6e27 100644 --- a/platform/client_quotes_by_project_key_quotes_key_by_key_delete.go +++ b/platform/client_quotes_by_project_key_quotes_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyQuotesKeyByKeyRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_key_by_key_get.go b/platform/client_quotes_by_project_key_quotes_key_by_key_get.go index def87362..44e60ba4 100644 --- a/platform/client_quotes_by_project_key_quotes_key_by_key_get.go +++ b/platform/client_quotes_by_project_key_quotes_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyQuotesKeyByKeyRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_key_by_key_head.go b/platform/client_quotes_by_project_key_quotes_key_by_key_head.go index 0d9245ce..91013f56 100644 --- a/platform/client_quotes_by_project_key_quotes_key_by_key_head.go +++ b/platform/client_quotes_by_project_key_quotes_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyQuotesKeyByKeyRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_key_by_key_post.go b/platform/client_quotes_by_project_key_quotes_key_by_key_post.go index 0e19c5f2..a30b8851 100644 --- a/platform/client_quotes_by_project_key_quotes_key_by_key_post.go +++ b/platform/client_quotes_by_project_key_quotes_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyQuotesKeyByKeyRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_quotes_by_project_key_quotes_post.go b/platform/client_quotes_by_project_key_quotes_post.go index 319e0fdc..5cadc519 100644 --- a/platform/client_quotes_by_project_key_quotes_post.go +++ b/platform/client_quotes_by_project_key_quotes_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyQuotesRequestMethodPost) Execute(ctx context.Context) (res return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_replicate_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_replicate_post.go b/platform/client_replicate_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_replicate_post.go index e8934c9d..052fcb3f 100644 --- a/platform/client_replicate_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_replicate_post.go +++ b/platform/client_replicate_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_carts_replicate_post.go @@ -88,7 +88,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_replicate_by_project_key_carts_replicate_post.go b/platform/client_replicate_by_project_key_carts_replicate_post.go index aff049e0..bdf1f2e0 100644 --- a/platform/client_replicate_by_project_key_carts_replicate_post.go +++ b/platform/client_replicate_by_project_key_carts_replicate_post.go @@ -86,7 +86,8 @@ func (rb *ByProjectKeyCartsReplicateRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_replicate_by_project_key_in_store_key_by_store_key_carts_replicate_post.go b/platform/client_replicate_by_project_key_in_store_key_by_store_key_carts_replicate_post.go index 3c97615c..f86690c6 100644 --- a/platform/client_replicate_by_project_key_in_store_key_by_store_key_carts_replicate_post.go +++ b/platform/client_replicate_by_project_key_in_store_key_by_store_key_carts_replicate_post.go @@ -86,7 +86,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCartsReplicateRequestMethodPost) Execu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_replicate_by_project_key_me_carts_replicate_post.go b/platform/client_replicate_by_project_key_me_carts_replicate_post.go index 9c10c848..bb3b3861 100644 --- a/platform/client_replicate_by_project_key_me_carts_replicate_post.go +++ b/platform/client_replicate_by_project_key_me_carts_replicate_post.go @@ -92,7 +92,8 @@ func (rb *ByProjectKeyMeCartsReplicateRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reset_by_project_key_customers_password_reset_post.go b/platform/client_reset_by_project_key_customers_password_reset_post.go index 33541b3f..0ad64710 100644 --- a/platform/client_reset_by_project_key_customers_password_reset_post.go +++ b/platform/client_reset_by_project_key_customers_password_reset_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyCustomersPasswordResetRequestMethodPost) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reset_by_project_key_in_store_key_by_store_key_customers_password_reset_post.go b/platform/client_reset_by_project_key_in_store_key_by_store_key_customers_password_reset_post.go index 1491cef9..632c678d 100644 --- a/platform/client_reset_by_project_key_in_store_key_by_store_key_customers_password_reset_post.go +++ b/platform/client_reset_by_project_key_in_store_key_by_store_key_customers_password_reset_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetRequestMethodPos return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reset_by_project_key_in_store_key_by_store_key_me_password_reset_post.go b/platform/client_reset_by_project_key_in_store_key_by_store_key_me_password_reset_post.go index 9cd9b353..985fca7c 100644 --- a/platform/client_reset_by_project_key_in_store_key_by_store_key_me_password_reset_post.go +++ b/platform/client_reset_by_project_key_in_store_key_by_store_key_me_password_reset_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMePasswordResetRequestMethodPost) Exec return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reset_by_project_key_me_password_reset_post.go b/platform/client_reset_by_project_key_me_password_reset_post.go index 0f142124..8753b791 100644 --- a/platform/client_reset_by_project_key_me_password_reset_post.go +++ b/platform/client_reset_by_project_key_me_password_reset_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyMePasswordResetRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_by_id_delete.go b/platform/client_reviews_by_project_key_reviews_by_id_delete.go index 8ffaf288..d9655d53 100644 --- a/platform/client_reviews_by_project_key_reviews_by_id_delete.go +++ b/platform/client_reviews_by_project_key_reviews_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyReviewsByIDRequestMethodDelete) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_by_id_get.go b/platform/client_reviews_by_project_key_reviews_by_id_get.go index 29449cd1..7c2c7d0b 100644 --- a/platform/client_reviews_by_project_key_reviews_by_id_get.go +++ b/platform/client_reviews_by_project_key_reviews_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyReviewsByIDRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_by_id_head.go b/platform/client_reviews_by_project_key_reviews_by_id_head.go index 7bfb4985..9e27ee5e 100644 --- a/platform/client_reviews_by_project_key_reviews_by_id_head.go +++ b/platform/client_reviews_by_project_key_reviews_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyReviewsByIDRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_by_id_post.go b/platform/client_reviews_by_project_key_reviews_by_id_post.go index b0fdee03..15ac015c 100644 --- a/platform/client_reviews_by_project_key_reviews_by_id_post.go +++ b/platform/client_reviews_by_project_key_reviews_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyReviewsByIDRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_get.go b/platform/client_reviews_by_project_key_reviews_get.go index 60c5ea7f..60814d24 100644 --- a/platform/client_reviews_by_project_key_reviews_get.go +++ b/platform/client_reviews_by_project_key_reviews_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyReviewsRequestMethodGet) Execute(ctx context.Context) (res return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_head.go b/platform/client_reviews_by_project_key_reviews_head.go index 47f10d7a..5575fda3 100644 --- a/platform/client_reviews_by_project_key_reviews_head.go +++ b/platform/client_reviews_by_project_key_reviews_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyReviewsRequestMethodHead) Execute(ctx context.Context) err switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_key_by_key_delete.go b/platform/client_reviews_by_project_key_reviews_key_by_key_delete.go index c3ba7559..183ee781 100644 --- a/platform/client_reviews_by_project_key_reviews_key_by_key_delete.go +++ b/platform/client_reviews_by_project_key_reviews_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyReviewsKeyByKeyRequestMethodDelete) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_key_by_key_get.go b/platform/client_reviews_by_project_key_reviews_key_by_key_get.go index 18ac6fdd..a8549d8d 100644 --- a/platform/client_reviews_by_project_key_reviews_key_by_key_get.go +++ b/platform/client_reviews_by_project_key_reviews_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyReviewsKeyByKeyRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_key_by_key_head.go b/platform/client_reviews_by_project_key_reviews_key_by_key_head.go index ff4149a8..49bc2c09 100644 --- a/platform/client_reviews_by_project_key_reviews_key_by_key_head.go +++ b/platform/client_reviews_by_project_key_reviews_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyReviewsKeyByKeyRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_key_by_key_post.go b/platform/client_reviews_by_project_key_reviews_key_by_key_post.go index 2fc7128d..3c0c162b 100644 --- a/platform/client_reviews_by_project_key_reviews_key_by_key_post.go +++ b/platform/client_reviews_by_project_key_reviews_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyReviewsKeyByKeyRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_reviews_by_project_key_reviews_post.go b/platform/client_reviews_by_project_key_reviews_post.go index 7603bb31..19914e13 100644 --- a/platform/client_reviews_by_project_key_reviews_post.go +++ b/platform/client_reviews_by_project_key_reviews_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyReviewsRequestMethodPost) Execute(ctx context.Context) (re return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_search_by_project_key_orders_search_head.go b/platform/client_search_by_project_key_orders_search_head.go index 725ee030..477bb85c 100644 --- a/platform/client_search_by_project_key_orders_search_head.go +++ b/platform/client_search_by_project_key_orders_search_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyOrdersSearchRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_search_by_project_key_orders_search_post.go b/platform/client_search_by_project_key_orders_search_post.go index 505aa825..cc781377 100644 --- a/platform/client_search_by_project_key_orders_search_post.go +++ b/platform/client_search_by_project_key_orders_search_post.go @@ -77,7 +77,8 @@ func (rb *ByProjectKeyOrdersSearchRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_search_by_project_key_product_projections_search_get.go b/platform/client_search_by_project_key_product_projections_search_get.go index 8bdd1279..e95ee4fe 100644 --- a/platform/client_search_by_project_key_product_projections_search_get.go +++ b/platform/client_search_by_project_key_product_projections_search_get.go @@ -354,7 +354,8 @@ func (rb *ByProjectKeyProductProjectionsSearchRequestMethodGet) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_search_by_project_key_product_projections_search_post.go b/platform/client_search_by_project_key_product_projections_search_post.go index 20eafae0..d37279bf 100644 --- a/platform/client_search_by_project_key_product_projections_search_post.go +++ b/platform/client_search_by_project_key_product_projections_search_post.go @@ -77,7 +77,8 @@ func (rb *ByProjectKeyProductProjectionsSearchRequestMethodPost) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_delete.go b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_delete.go index 9c028b8d..9acb86b5 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_delete.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyShippingMethodsByIDRequestMethodDelete) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_get.go b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_get.go index b10aa6ba..e9f9fa4a 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_get.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyShippingMethodsByIDRequestMethodGet) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_head.go b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_head.go index 388844be..5c9a6290 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_head.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyShippingMethodsByIDRequestMethodHead) Execute(ctx context. switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_post.go b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_post.go index 170c22fa..7cac3ce5 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_post.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyShippingMethodsByIDRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_get.go b/platform/client_shipping_methods_by_project_key_shipping_methods_get.go index 01102121..976c0255 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_get.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyShippingMethodsRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_head.go b/platform/client_shipping_methods_by_project_key_shipping_methods_head.go index 07d78947..5d164d4e 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_head.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyShippingMethodsRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_delete.go b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_delete.go index 26a9ffba..023d49e3 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_delete.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyShippingMethodsKeyByKeyRequestMethodDelete) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_get.go b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_get.go index 44295178..dc07a6a3 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_get.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyShippingMethodsKeyByKeyRequestMethodGet) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_head.go b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_head.go index a63d4db2..91c10a88 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_head.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyShippingMethodsKeyByKeyRequestMethodHead) Execute(ctx cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_post.go b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_post.go index db71f477..ea1610d4 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_post.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyShippingMethodsKeyByKeyRequestMethodPost) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shipping_methods_by_project_key_shipping_methods_post.go b/platform/client_shipping_methods_by_project_key_shipping_methods_post.go index 6d248e93..2f870d70 100644 --- a/platform/client_shipping_methods_by_project_key_shipping_methods_post.go +++ b/platform/client_shipping_methods_by_project_key_shipping_methods_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyShippingMethodsRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_delete.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_delete.go index 30e26756..3a643a41 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_delete.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_delete.go @@ -144,7 +144,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestMethodDelete return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_get.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_get.go index 14c3e378..5285a486 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_get.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_get.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestMethodGet) E return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_head.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_head.go index b5fb1cfc..6b92b69c 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_head.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestMethodHead) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_post.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_post.go index 5c3cef34..9fa19df9 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_post.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_by_id_post.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDRequestMethodPost) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_get.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_get.go index fc43f78c..03775ab7 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_get.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestMethodGet) Execu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_head.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_head.go index 749a7bd5..75825daa 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_head.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestMethodHead) Exec switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_delete.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_delete.go index 13928b9e..e25a9dac 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_delete.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_delete.go @@ -144,7 +144,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodDe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_get.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_get.go index a21b9ed0..86aa1816 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_get.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_get.go @@ -108,7 +108,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodGe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_head.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_head.go index 81315659..cdf3ee6a 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_head.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodHe switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_post.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_post.go index 09af7396..838f20d2 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_post.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key_post.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodPo return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_post.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_post.go index 23223515..f3b5f9a5 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_post.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsRequestMethodPost) Exec return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_delete.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_delete.go index 0bc040b2..dcd66cbf 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_delete.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_delete.go @@ -144,7 +144,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestMethodDelete) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_get.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_get.go index 50cabda6..df187aa8 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_get.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_get.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestMethodGet) Exe return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_head.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_head.go index 8a19014d..24cdb297 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_head.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestMethodHead) Ex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_post.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_post.go index 06ed8bb0..347bdce9 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_post.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_by_id_post.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDRequestMethodPost) Ex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_get.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_get.go index 8470c138..22ca9129 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_get.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestMethodGet) Execute return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_head.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_head.go index f2b1fcd9..c1c22000 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_head.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestMethodHead) Execut switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_delete.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_delete.go index 2d0bd9b0..b54e8e58 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_delete.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_delete.go @@ -144,7 +144,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestMethodDele return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_get.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_get.go index 13c992fe..58a275a0 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_get.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_get.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestMethodGet) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_head.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_head.go index b13a869f..29f1886b 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_head.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestMethodHead switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_post.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_post.go index 9a55a766..1e380ac4 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_post.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_key_by_key_post.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyRequestMethodPost return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_post.go b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_post.go index d84786a5..f744d0e6 100644 --- a/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_post.go +++ b/platform/client_shopping_lists_by_project_key_in_store_key_by_store_key_shopping_lists_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyShoppingListsRequestMethodPost) Execut return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_delete.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_delete.go index 059d6e1f..7a75dc1b 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_delete.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeShoppingListsByIDRequestMethodDelete) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_get.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_get.go index 7cbc2b45..3ccf98d0 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_get.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeShoppingListsByIDRequestMethodGet) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_head.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_head.go index 59bd57c7..28cb493f 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_head.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeShoppingListsByIDRequestMethodHead) Execute(ctx context. switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_post.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_post.go index c86eddd2..853f105e 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_post.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeShoppingListsByIDRequestMethodPost) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_get.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_get.go index 4328b47b..95b3e2d3 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_get.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyMeShoppingListsRequestMethodGet) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_head.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_head.go index f31e9715..24b64dc6 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_head.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyMeShoppingListsRequestMethodHead) Execute(ctx context.Cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_delete.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_delete.go index c6b46d4c..4ef1c72c 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_delete.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyMeShoppingListsKeyByKeyRequestMethodDelete) Execute(ctx co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_get.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_get.go index 6ff955c4..88b35186 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_get.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyMeShoppingListsKeyByKeyRequestMethodGet) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_head.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_head.go index e52a591a..b9b8c47a 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_head.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyMeShoppingListsKeyByKeyRequestMethodHead) Execute(ctx cont switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_post.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_post.go index 8bb95ebb..336c714d 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_post.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyMeShoppingListsKeyByKeyRequestMethodPost) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_me_shopping_lists_post.go b/platform/client_shopping_lists_by_project_key_me_shopping_lists_post.go index 94e6628e..9512d1f6 100644 --- a/platform/client_shopping_lists_by_project_key_me_shopping_lists_post.go +++ b/platform/client_shopping_lists_by_project_key_me_shopping_lists_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyMeShoppingListsRequestMethodPost) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_delete.go b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_delete.go index c5d027a7..f9477c52 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_delete.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyShoppingListsByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_get.go b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_get.go index 795c5273..47abdee4 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_get.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyShoppingListsByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_head.go b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_head.go index ab4e2bfa..e6ef9d37 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_head.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyShoppingListsByIDRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_post.go b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_post.go index bd008d01..7d6e4fee 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_post.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyShoppingListsByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_get.go b/platform/client_shopping_lists_by_project_key_shopping_lists_get.go index cc82dddc..aeeb34ff 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_get.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyShoppingListsRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_head.go b/platform/client_shopping_lists_by_project_key_shopping_lists_head.go index ba81ef3f..128bbcae 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_head.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyShoppingListsRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_delete.go b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_delete.go index ece73411..2915cb36 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_delete.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyShoppingListsKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_get.go b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_get.go index ee85199e..2ba6de2e 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_get.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyShoppingListsKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_head.go b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_head.go index 5d311e14..afe49b01 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_head.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyShoppingListsKeyByKeyRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_post.go b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_post.go index b24f6d8f..d214ce29 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_post.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyShoppingListsKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_shopping_lists_by_project_key_shopping_lists_post.go b/platform/client_shopping_lists_by_project_key_shopping_lists_post.go index 498d4a58..f0a05037 100644 --- a/platform/client_shopping_lists_by_project_key_shopping_lists_post.go +++ b/platform/client_shopping_lists_by_project_key_shopping_lists_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyShoppingListsRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_signup_by_project_key_in_store_key_by_store_key_me_signup_post.go b/platform/client_signup_by_project_key_in_store_key_by_store_key_me_signup_post.go index 87bdbf54..6cfd31df 100644 --- a/platform/client_signup_by_project_key_in_store_key_by_store_key_me_signup_post.go +++ b/platform/client_signup_by_project_key_in_store_key_by_store_key_me_signup_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeSignupRequestMethodPost) Execute(ctx return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_signup_by_project_key_me_signup_post.go b/platform/client_signup_by_project_key_me_signup_post.go index 4e4eb0e1..c8025727 100644 --- a/platform/client_signup_by_project_key_me_signup_post.go +++ b/platform/client_signup_by_project_key_me_signup_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeyMeSignupRequestMethodPost) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_delete.go b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_delete.go index 85bb2b41..c907ee24 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_delete.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyStagedQuotesByIDRequestMethodDelete) Execute(ctx context.C return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_get.go b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_get.go index 5edace83..59899cd2 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_get.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStagedQuotesByIDRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_head.go b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_head.go index 9d182c13..a502b676 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_head.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStagedQuotesByIDRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_post.go b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_post.go index ab03fd53..8e7b4df2 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_post.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStagedQuotesByIDRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_get.go b/platform/client_staged_quotes_by_project_key_staged_quotes_get.go index c5aa1ff2..fbde6d50 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_get.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyStagedQuotesRequestMethodGet) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_head.go b/platform/client_staged_quotes_by_project_key_staged_quotes_head.go index 2817560b..222d4d0f 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_head.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyStagedQuotesRequestMethodHead) Execute(ctx context.Context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_delete.go b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_delete.go index 109f57da..a48e474e 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_delete.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_delete.go @@ -138,7 +138,8 @@ func (rb *ByProjectKeyStagedQuotesKeyByKeyRequestMethodDelete) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_get.go b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_get.go index 56d55f6e..659bcbfa 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_get.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStagedQuotesKeyByKeyRequestMethodGet) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_head.go b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_head.go index 3754ce35..be72ae7f 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_head.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStagedQuotesKeyByKeyRequestMethodHead) Execute(ctx context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_post.go b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_post.go index 5bd1b8f7..e0f78a2f 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_post.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStagedQuotesKeyByKeyRequestMethodPost) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_staged_quotes_by_project_key_staged_quotes_post.go b/platform/client_staged_quotes_by_project_key_staged_quotes_post.go index 079d085e..9463e445 100644 --- a/platform/client_staged_quotes_by_project_key_staged_quotes_post.go +++ b/platform/client_staged_quotes_by_project_key_staged_quotes_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyStagedQuotesRequestMethodPost) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_delete.go b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_delete.go index c04be7e9..dae7e066 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_delete.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_delete.go @@ -127,7 +127,8 @@ func (rb *ByProjectKeyStandalonePricesByIDRequestMethodDelete) Execute(ctx conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_get.go b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_get.go index 0eafd75c..1b09fbe0 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_get.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStandalonePricesByIDRequestMethodGet) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_head.go b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_head.go index 7afe8f94..2ef3170e 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_head.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStandalonePricesByIDRequestMethodHead) Execute(ctx context switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_post.go b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_post.go index e3deaab7..fd0b23d0 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_post.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStandalonePricesByIDRequestMethodPost) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_get.go b/platform/client_standalone_prices_by_project_key_standalone_prices_get.go index acb694d5..7b0d3756 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_get.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyStandalonePricesRequestMethodGet) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_head.go b/platform/client_standalone_prices_by_project_key_standalone_prices_head.go index a66f5b21..faeedd92 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_head.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyStandalonePricesRequestMethodHead) Execute(ctx context.Con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_delete.go b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_delete.go index 62b84dd7..cdac106e 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_delete.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_delete.go @@ -127,7 +127,8 @@ func (rb *ByProjectKeyStandalonePricesKeyByKeyRequestMethodDelete) Execute(ctx c return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_get.go b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_get.go index f334b7bb..ee95bab4 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_get.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStandalonePricesKeyByKeyRequestMethodGet) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_head.go b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_head.go index 051ef209..7e79a684 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_head.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStandalonePricesKeyByKeyRequestMethodHead) Execute(ctx con switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_post.go b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_post.go index ad41c4bc..e56903a8 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_post.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStandalonePricesKeyByKeyRequestMethodPost) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_standalone_prices_by_project_key_standalone_prices_post.go b/platform/client_standalone_prices_by_project_key_standalone_prices_post.go index 522fb720..dd532c95 100644 --- a/platform/client_standalone_prices_by_project_key_standalone_prices_post.go +++ b/platform/client_standalone_prices_by_project_key_standalone_prices_post.go @@ -114,7 +114,8 @@ func (rb *ByProjectKeyStandalonePricesRequestMethodPost) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_by_id_delete.go b/platform/client_states_by_project_key_states_by_id_delete.go index e85e9d66..d97fe2ca 100644 --- a/platform/client_states_by_project_key_states_by_id_delete.go +++ b/platform/client_states_by_project_key_states_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyStatesByIDRequestMethodDelete) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_by_id_get.go b/platform/client_states_by_project_key_states_by_id_get.go index 139508cd..6dde491f 100644 --- a/platform/client_states_by_project_key_states_by_id_get.go +++ b/platform/client_states_by_project_key_states_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStatesByIDRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_by_id_head.go b/platform/client_states_by_project_key_states_by_id_head.go index 29b49cc5..e14cd52f 100644 --- a/platform/client_states_by_project_key_states_by_id_head.go +++ b/platform/client_states_by_project_key_states_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStatesByIDRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_by_id_post.go b/platform/client_states_by_project_key_states_by_id_post.go index 1406b18e..9c45d72d 100644 --- a/platform/client_states_by_project_key_states_by_id_post.go +++ b/platform/client_states_by_project_key_states_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStatesByIDRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_get.go b/platform/client_states_by_project_key_states_get.go index c0ddf7f2..9eb1a173 100644 --- a/platform/client_states_by_project_key_states_get.go +++ b/platform/client_states_by_project_key_states_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyStatesRequestMethodGet) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_head.go b/platform/client_states_by_project_key_states_head.go index d09e0a04..34367f3f 100644 --- a/platform/client_states_by_project_key_states_head.go +++ b/platform/client_states_by_project_key_states_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyStatesRequestMethodHead) Execute(ctx context.Context) erro switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_key_by_key_delete.go b/platform/client_states_by_project_key_states_key_by_key_delete.go index 07c1bd39..e04ec9f4 100644 --- a/platform/client_states_by_project_key_states_key_by_key_delete.go +++ b/platform/client_states_by_project_key_states_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyStatesKeyByKeyRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_key_by_key_get.go b/platform/client_states_by_project_key_states_key_by_key_get.go index 8954448e..876946d3 100644 --- a/platform/client_states_by_project_key_states_key_by_key_get.go +++ b/platform/client_states_by_project_key_states_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStatesKeyByKeyRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_key_by_key_head.go b/platform/client_states_by_project_key_states_key_by_key_head.go index ca233fd9..3f1b25a6 100644 --- a/platform/client_states_by_project_key_states_key_by_key_head.go +++ b/platform/client_states_by_project_key_states_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStatesKeyByKeyRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_key_by_key_post.go b/platform/client_states_by_project_key_states_key_by_key_post.go index 3ab1e9c0..fca1570a 100644 --- a/platform/client_states_by_project_key_states_key_by_key_post.go +++ b/platform/client_states_by_project_key_states_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStatesKeyByKeyRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_states_by_project_key_states_post.go b/platform/client_states_by_project_key_states_post.go index 85d18d6c..39505aed 100644 --- a/platform/client_states_by_project_key_states_post.go +++ b/platform/client_states_by_project_key_states_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyStatesRequestMethodPost) Execute(ctx context.Context) (res return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_by_id_delete.go b/platform/client_stores_by_project_key_stores_by_id_delete.go index c765d375..5781b48f 100644 --- a/platform/client_stores_by_project_key_stores_by_id_delete.go +++ b/platform/client_stores_by_project_key_stores_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyStoresByIDRequestMethodDelete) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_by_id_get.go b/platform/client_stores_by_project_key_stores_by_id_get.go index d35e48a8..95cfb033 100644 --- a/platform/client_stores_by_project_key_stores_by_id_get.go +++ b/platform/client_stores_by_project_key_stores_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStoresByIDRequestMethodGet) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_by_id_head.go b/platform/client_stores_by_project_key_stores_by_id_head.go index 47a424ae..24bbbdee 100644 --- a/platform/client_stores_by_project_key_stores_by_id_head.go +++ b/platform/client_stores_by_project_key_stores_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStoresByIDRequestMethodHead) Execute(ctx context.Context) switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_by_id_post.go b/platform/client_stores_by_project_key_stores_by_id_post.go index a5eb9589..77f67c50 100644 --- a/platform/client_stores_by_project_key_stores_by_id_post.go +++ b/platform/client_stores_by_project_key_stores_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStoresByIDRequestMethodPost) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_get.go b/platform/client_stores_by_project_key_stores_get.go index 85c08a96..b941b312 100644 --- a/platform/client_stores_by_project_key_stores_get.go +++ b/platform/client_stores_by_project_key_stores_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyStoresRequestMethodGet) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_head.go b/platform/client_stores_by_project_key_stores_head.go index df088d8a..da4e949b 100644 --- a/platform/client_stores_by_project_key_stores_head.go +++ b/platform/client_stores_by_project_key_stores_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyStoresRequestMethodHead) Execute(ctx context.Context) erro switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_key_by_key_delete.go b/platform/client_stores_by_project_key_stores_key_by_key_delete.go index 7bc3a4b0..c87598b9 100644 --- a/platform/client_stores_by_project_key_stores_key_by_key_delete.go +++ b/platform/client_stores_by_project_key_stores_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyStoresKeyByKeyRequestMethodDelete) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_key_by_key_get.go b/platform/client_stores_by_project_key_stores_key_by_key_get.go index 3ae6efbe..256b97f2 100644 --- a/platform/client_stores_by_project_key_stores_key_by_key_get.go +++ b/platform/client_stores_by_project_key_stores_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyStoresKeyByKeyRequestMethodGet) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_key_by_key_head.go b/platform/client_stores_by_project_key_stores_key_by_key_head.go index f4d3f398..0e68cd51 100644 --- a/platform/client_stores_by_project_key_stores_key_by_key_head.go +++ b/platform/client_stores_by_project_key_stores_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyStoresKeyByKeyRequestMethodHead) Execute(ctx context.Conte switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_key_by_key_post.go b/platform/client_stores_by_project_key_stores_key_by_key_post.go index 3f4996ac..6d201072 100644 --- a/platform/client_stores_by_project_key_stores_key_by_key_post.go +++ b/platform/client_stores_by_project_key_stores_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyStoresKeyByKeyRequestMethodPost) Execute(ctx context.Conte return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_stores_by_project_key_stores_post.go b/platform/client_stores_by_project_key_stores_post.go index 62b0b3e9..8c126a6a 100644 --- a/platform/client_stores_by_project_key_stores_post.go +++ b/platform/client_stores_by_project_key_stores_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyStoresRequestMethodPost) Execute(ctx context.Context) (res return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_by_id_delete.go b/platform/client_subscriptions_by_project_key_subscriptions_by_id_delete.go index 2e30e287..215a2b21 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_by_id_delete.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_by_id_delete.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeySubscriptionsByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_by_id_get.go b/platform/client_subscriptions_by_project_key_subscriptions_by_id_get.go index 087793d2..c04d5ea7 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_by_id_get.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_by_id_get.go @@ -71,7 +71,8 @@ func (rb *ByProjectKeySubscriptionsByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_by_id_head.go b/platform/client_subscriptions_by_project_key_subscriptions_by_id_head.go index 42d2e4e8..c5c87c48 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_by_id_head.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_by_id_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeySubscriptionsByIDRequestMethodHead) Execute(ctx context.Co return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_by_id_post.go b/platform/client_subscriptions_by_project_key_subscriptions_by_id_post.go index 7414856a..ad5eb350 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_by_id_post.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_by_id_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeySubscriptionsByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_get.go b/platform/client_subscriptions_by_project_key_subscriptions_get.go index 97492998..01e31ef3 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_get.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_get.go @@ -170,7 +170,8 @@ func (rb *ByProjectKeySubscriptionsRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_head.go b/platform/client_subscriptions_by_project_key_subscriptions_head.go index bcd3e5e4..e62062a3 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_head.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_head.go @@ -101,7 +101,8 @@ func (rb *ByProjectKeySubscriptionsRequestMethodHead) Execute(ctx context.Contex return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_delete.go b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_delete.go index 16570c2f..2f15e843 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_delete.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_delete.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeySubscriptionsKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_get.go b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_get.go index b52ce22f..65c150ec 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_get.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_get.go @@ -71,7 +71,8 @@ func (rb *ByProjectKeySubscriptionsKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_head.go b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_head.go index 3813cd17..96830750 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_head.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_head.go @@ -69,7 +69,8 @@ func (rb *ByProjectKeySubscriptionsKeyByKeyRequestMethodHead) Execute(ctx contex return err } return errorObj - + case 404: + return ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_post.go b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_post.go index 7ce0cc2f..67626833 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_post.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_key_by_key_post.go @@ -84,7 +84,8 @@ func (rb *ByProjectKeySubscriptionsKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_subscriptions_by_project_key_subscriptions_post.go b/platform/client_subscriptions_by_project_key_subscriptions_post.go index ff092d3b..f93eb78b 100644 --- a/platform/client_subscriptions_by_project_key_subscriptions_post.go +++ b/platform/client_subscriptions_by_project_key_subscriptions_post.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeySubscriptionsRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_suggest_by_project_key_product_projections_suggest_get.go b/platform/client_suggest_by_project_key_product_projections_suggest_get.go index 8a9026c6..4a0befa0 100644 --- a/platform/client_suggest_by_project_key_product_projections_suggest_get.go +++ b/platform/client_suggest_by_project_key_product_projections_suggest_get.go @@ -190,7 +190,8 @@ func (rb *ByProjectKeyProductProjectionsSuggestRequestMethodGet) Execute(ctx con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_by_id_delete.go b/platform/client_tax_categories_by_project_key_tax_categories_by_id_delete.go index 7821db0e..4b5bb7fa 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_by_id_delete.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyTaxCategoriesByIDRequestMethodDelete) Execute(ctx context. return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_by_id_get.go b/platform/client_tax_categories_by_project_key_tax_categories_by_id_get.go index 3d6df933..bab36826 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_by_id_get.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyTaxCategoriesByIDRequestMethodGet) Execute(ctx context.Con return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_by_id_head.go b/platform/client_tax_categories_by_project_key_tax_categories_by_id_head.go index e5032c70..32fd36f8 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_by_id_head.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyTaxCategoriesByIDRequestMethodHead) Execute(ctx context.Co switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_by_id_post.go b/platform/client_tax_categories_by_project_key_tax_categories_by_id_post.go index e9872ad1..f0f9771d 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_by_id_post.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyTaxCategoriesByIDRequestMethodPost) Execute(ctx context.Co return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_get.go b/platform/client_tax_categories_by_project_key_tax_categories_get.go index 77ee83b3..440cf292 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_get.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyTaxCategoriesRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_head.go b/platform/client_tax_categories_by_project_key_tax_categories_head.go index 08293d5c..f57a8ab3 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_head.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyTaxCategoriesRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_delete.go b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_delete.go index c96cbba9..09e9e2ef 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_delete.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyTaxCategoriesKeyByKeyRequestMethodDelete) Execute(ctx cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_get.go b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_get.go index f6300a8e..cec50a07 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_get.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyTaxCategoriesKeyByKeyRequestMethodGet) Execute(ctx context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_head.go b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_head.go index b875b97f..38d8dd38 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_head.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyTaxCategoriesKeyByKeyRequestMethodHead) Execute(ctx contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_post.go b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_post.go index 14fe925b..a3a407ff 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_post.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyTaxCategoriesKeyByKeyRequestMethodPost) Execute(ctx contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_tax_categories_by_project_key_tax_categories_post.go b/platform/client_tax_categories_by_project_key_tax_categories_post.go index f23a3ab0..ba64a2c7 100644 --- a/platform/client_tax_categories_by_project_key_tax_categories_post.go +++ b/platform/client_tax_categories_by_project_key_tax_categories_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyTaxCategoriesRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_by_id_delete.go b/platform/client_types_by_project_key_types_by_id_delete.go index a7cc924c..fb140e72 100644 --- a/platform/client_types_by_project_key_types_by_id_delete.go +++ b/platform/client_types_by_project_key_types_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyTypesByIDRequestMethodDelete) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_by_id_get.go b/platform/client_types_by_project_key_types_by_id_get.go index 532cb28b..38796da0 100644 --- a/platform/client_types_by_project_key_types_by_id_get.go +++ b/platform/client_types_by_project_key_types_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyTypesByIDRequestMethodGet) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_by_id_head.go b/platform/client_types_by_project_key_types_by_id_head.go index 03b49efd..4b4f8bb5 100644 --- a/platform/client_types_by_project_key_types_by_id_head.go +++ b/platform/client_types_by_project_key_types_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyTypesByIDRequestMethodHead) Execute(ctx context.Context) e switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_by_id_post.go b/platform/client_types_by_project_key_types_by_id_post.go index d4a3cb0c..41c9c10e 100644 --- a/platform/client_types_by_project_key_types_by_id_post.go +++ b/platform/client_types_by_project_key_types_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyTypesByIDRequestMethodPost) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_get.go b/platform/client_types_by_project_key_types_get.go index df9a44cc..a281f11a 100644 --- a/platform/client_types_by_project_key_types_get.go +++ b/platform/client_types_by_project_key_types_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyTypesRequestMethodGet) Execute(ctx context.Context) (resul return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_head.go b/platform/client_types_by_project_key_types_head.go index 0e0ed75f..26157847 100644 --- a/platform/client_types_by_project_key_types_head.go +++ b/platform/client_types_by_project_key_types_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyTypesRequestMethodHead) Execute(ctx context.Context) error switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_key_by_key_delete.go b/platform/client_types_by_project_key_types_key_by_key_delete.go index 0a76454a..94a69444 100644 --- a/platform/client_types_by_project_key_types_key_by_key_delete.go +++ b/platform/client_types_by_project_key_types_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyTypesKeyByKeyRequestMethodDelete) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_key_by_key_get.go b/platform/client_types_by_project_key_types_key_by_key_get.go index 15ba39d1..5d27308c 100644 --- a/platform/client_types_by_project_key_types_key_by_key_get.go +++ b/platform/client_types_by_project_key_types_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyTypesKeyByKeyRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_key_by_key_head.go b/platform/client_types_by_project_key_types_key_by_key_head.go index 41cc455a..55e2e674 100644 --- a/platform/client_types_by_project_key_types_key_by_key_head.go +++ b/platform/client_types_by_project_key_types_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyTypesKeyByKeyRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_key_by_key_post.go b/platform/client_types_by_project_key_types_key_by_key_post.go index 22370834..969c363c 100644 --- a/platform/client_types_by_project_key_types_key_by_key_post.go +++ b/platform/client_types_by_project_key_types_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyTypesKeyByKeyRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_types_by_project_key_types_post.go b/platform/client_types_by_project_key_types_post.go index 60ed8b7c..439302de 100644 --- a/platform/client_types_by_project_key_types_post.go +++ b/platform/client_types_by_project_key_types_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyTypesRequestMethodPost) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_by_id_delete.go b/platform/client_zones_by_project_key_zones_by_id_delete.go index 13d60d8c..c1523b47 100644 --- a/platform/client_zones_by_project_key_zones_by_id_delete.go +++ b/platform/client_zones_by_project_key_zones_by_id_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyZonesByIDRequestMethodDelete) Execute(ctx context.Context) return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_by_id_get.go b/platform/client_zones_by_project_key_zones_by_id_get.go index 9c2596af..77ea4b38 100644 --- a/platform/client_zones_by_project_key_zones_by_id_get.go +++ b/platform/client_zones_by_project_key_zones_by_id_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyZonesByIDRequestMethodGet) Execute(ctx context.Context) (r return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_by_id_head.go b/platform/client_zones_by_project_key_zones_by_id_head.go index 9bb92d9a..cc88ff19 100644 --- a/platform/client_zones_by_project_key_zones_by_id_head.go +++ b/platform/client_zones_by_project_key_zones_by_id_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyZonesByIDRequestMethodHead) Execute(ctx context.Context) e switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_by_id_post.go b/platform/client_zones_by_project_key_zones_by_id_post.go index 66877b20..40013bc6 100644 --- a/platform/client_zones_by_project_key_zones_by_id_post.go +++ b/platform/client_zones_by_project_key_zones_by_id_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyZonesByIDRequestMethodPost) Execute(ctx context.Context) ( return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_get.go b/platform/client_zones_by_project_key_zones_get.go index bcd1b649..48fe9e8e 100644 --- a/platform/client_zones_by_project_key_zones_get.go +++ b/platform/client_zones_by_project_key_zones_get.go @@ -182,7 +182,8 @@ func (rb *ByProjectKeyZonesRequestMethodGet) Execute(ctx context.Context) (resul return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_head.go b/platform/client_zones_by_project_key_zones_head.go index d0e65cad..57f77150 100644 --- a/platform/client_zones_by_project_key_zones_head.go +++ b/platform/client_zones_by_project_key_zones_head.go @@ -82,7 +82,8 @@ func (rb *ByProjectKeyZonesRequestMethodHead) Execute(ctx context.Context) error switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_key_by_key_delete.go b/platform/client_zones_by_project_key_zones_key_by_key_delete.go index eef152de..81ade75f 100644 --- a/platform/client_zones_by_project_key_zones_key_by_key_delete.go +++ b/platform/client_zones_by_project_key_zones_key_by_key_delete.go @@ -122,7 +122,8 @@ func (rb *ByProjectKeyZonesKeyByKeyRequestMethodDelete) Execute(ctx context.Cont return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_key_by_key_get.go b/platform/client_zones_by_project_key_zones_key_by_key_get.go index f5d413f9..9ef89621 100644 --- a/platform/client_zones_by_project_key_zones_key_by_key_get.go +++ b/platform/client_zones_by_project_key_zones_key_by_key_get.go @@ -103,7 +103,8 @@ func (rb *ByProjectKeyZonesKeyByKeyRequestMethodGet) Execute(ctx context.Context return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_key_by_key_head.go b/platform/client_zones_by_project_key_zones_key_by_key_head.go index e4e95b59..84b6d8cd 100644 --- a/platform/client_zones_by_project_key_zones_key_by_key_head.go +++ b/platform/client_zones_by_project_key_zones_key_by_key_head.go @@ -50,7 +50,8 @@ func (rb *ByProjectKeyZonesKeyByKeyRequestMethodHead) Execute(ctx context.Contex switch resp.StatusCode { case 200: return nil - + case 404: + return ErrNotFound case 400: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_key_by_key_post.go b/platform/client_zones_by_project_key_zones_key_by_key_post.go index f9f5ec65..7baf89a8 100644 --- a/platform/client_zones_by_project_key_zones_key_by_key_post.go +++ b/platform/client_zones_by_project_key_zones_key_by_key_post.go @@ -116,7 +116,8 @@ func (rb *ByProjectKeyZonesKeyByKeyRequestMethodPost) Execute(ctx context.Contex return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/client_zones_by_project_key_zones_post.go b/platform/client_zones_by_project_key_zones_post.go index 91cd6e86..e5dfaab0 100644 --- a/platform/client_zones_by_project_key_zones_post.go +++ b/platform/client_zones_by_project_key_zones_post.go @@ -109,7 +109,8 @@ func (rb *ByProjectKeyZonesRequestMethodPost) Execute(ctx context.Context) (resu return nil, err } return nil, errorObj - + case 404: + return nil, ErrNotFound case 500: errorObj := ErrorResponse{} err = json.Unmarshal(content, &errorObj) diff --git a/platform/types_cart.go b/platform/types_cart.go index 44bcefb0..e916db89 100644 --- a/platform/types_cart.go +++ b/platform/types_cart.go @@ -933,7 +933,7 @@ type CustomLineItemDraft struct { // - If `Standard`, Cart Discounts with a matching [CartDiscountCustomLineItemsTarget](ctp:api:type:CartDiscountCustomLineItemsTarget) // are applied to the Custom Line Item. // - If `External`, Cart Discounts are not considered on the Custom Line Item. - PriceMode CustomLineItemPriceMode `json:"priceMode"` + PriceMode *CustomLineItemPriceMode `json:"priceMode,omitempty"` } /** @@ -1578,7 +1578,7 @@ func (obj LineItemDraft) MarshalJSON() ([]byte, error) { } /** -* Indicates how a Line Item is added to a Cart. +* Indicates how a Line Item was added to a Cart. * */ type LineItemMode string @@ -2001,6 +2001,10 @@ type TaxedItemPrice struct { TotalNet CentPrecisionMoney `json:"totalNet"` // Total gross amount of the Line Item or Custom Line Item. TotalGross CentPrecisionMoney `json:"totalGross"` + // Taxable portions added to the total net price. + // + // Calculated from the [TaxRates](ctp:api:type:TaxRate). + TaxPortions []TaxPortion `json:"taxPortions"` // Total tax applicable for the Line Item or Custom Line Item. // Automatically calculated as the difference between the `totalGross` and `totalNet` values. TotalTax *CentPrecisionMoney `json:"totalTax,omitempty"` @@ -2030,6 +2034,26 @@ type TaxedPriceDraft struct { // // Calculated from the [TaxRates](ctp:api:type:TaxRate). TaxPortions []TaxPortionDraft `json:"taxPortions"` + // Total tax applicable for the Cart or Order. + TotalTax TypedMoneyDraft `json:"totalTax,omitempty"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *TaxedPriceDraft) UnmarshalJSON(data []byte) error { + type Alias TaxedPriceDraft + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.TotalTax != nil { + var err error + obj.TotalTax, err = mapDiscriminatorTypedMoneyDraft(obj.TotalTax) + if err != nil { + return err + } + } + + return nil } /** @@ -3781,6 +3805,32 @@ func (obj CartUpdateItemShippingAddressAction) MarshalJSON() ([]byte, error) { }{Action: "updateItemShippingAddress", Alias: (*Alias)(&obj)}) } +type ProductTailoringUpdate struct { + // Expected version of the ProductTailoring on which the changes apply. + // If the expected version does not match the actual version, a [409 Conflict](/../api/errors#409-conflict) is returned. + Version int `json:"version"` + // Update actions to be performed on the ProductTailoring. + Actions []ProductTailoringUpdateAction `json:"actions"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *ProductTailoringUpdate) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringUpdate + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + for i := range obj.Actions { + var err error + obj.Actions[i], err = mapDiscriminatorProductTailoringUpdateAction(obj.Actions[i]) + if err != nil { + return err + } + } + + return nil +} + /** * The scope controls which part of the product information is published. */ diff --git a/platform/types_cart_discount.go b/platform/types_cart_discount.go index b84f3436..a7d7079d 100644 --- a/platform/types_cart_discount.go +++ b/platform/types_cart_discount.go @@ -751,6 +751,8 @@ func (obj CartDiscountValueFixedDraft) MarshalJSON() ([]byte, error) { type CartDiscountValueGiftLineItem struct { // Reference to a Product. + // + // A Gift Line Item can be present on a Cart even if the referenced Product is unpublished. Product ProductReference `json:"product"` // [ProductVariant](ctp:api:type:ProductVariant) of the Product. VariantId int `json:"variantId"` @@ -777,6 +779,8 @@ func (obj CartDiscountValueGiftLineItem) MarshalJSON() ([]byte, error) { */ type CartDiscountValueGiftLineItemDraft struct { // ResourceIdentifier of a Product. + // + // A Gift Line Item is added to a Cart even if the referenced Product is unpublished. Product ProductResourceIdentifier `json:"product"` // [ProductVariant](ctp:api:type:ProductVariant) of the Product. VariantId int `json:"variantId"` diff --git a/platform/types_category.go b/platform/types_category.go index d7b3ef4f..2c1cdcd6 100644 --- a/platform/types_category.go +++ b/platform/types_category.go @@ -36,7 +36,7 @@ type Category struct { Parent *CategoryReference `json:"parent,omitempty"` // Decimal value between 0 and 1. Frontend applications can use this value for ordering Categories within the same level in the category tree. OrderHint string `json:"orderHint"` - // Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). + // Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP). ExternalId *string `json:"externalId,omitempty"` // Name of the Category used by external search engines for improved search engine performance. MetaTitle *LocalizedString `json:"metaTitle,omitempty"` @@ -91,7 +91,7 @@ type CategoryDraft struct { // Decimal value between 0 and 1. Frontend applications can use this value for ordering Categories within the same level in the category tree. // If not set, a random value will be assigned. OrderHint *string `json:"orderHint,omitempty"` - // Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). + // Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP). ExternalId *string `json:"externalId,omitempty"` // Name of the Category used by external search engines for improved search engine performance. MetaTitle *LocalizedString `json:"metaTitle,omitempty"` @@ -699,7 +699,7 @@ func (obj CategorySetDescriptionAction) MarshalJSON() ([]byte, error) { } /** -* This update action sets a new ID that can be used as an additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). +* This update action sets a new ID that can be used as an additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP). * */ type CategorySetExternalIdAction struct { diff --git a/platform/types_common.go b/platform/types_common.go index 71ba2eb0..c4687641 100644 --- a/platform/types_common.go +++ b/platform/types_common.go @@ -926,6 +926,12 @@ func mapDiscriminatorReference(input interface{}) (Reference, error) { return nil, err } return obj, nil + case "product-tailoring": + obj := ProductTailoringReference{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil case "product-type": obj := ProductTypeReference{} if err := decodeStruct(input, &obj); err != nil { @@ -1046,6 +1052,7 @@ const ( ReferenceTypeIdProductDiscount ReferenceTypeId = "product-discount" ReferenceTypeIdProductPrice ReferenceTypeId = "product-price" ReferenceTypeIdProductSelection ReferenceTypeId = "product-selection" + ReferenceTypeIdProductTailoring ReferenceTypeId = "product-tailoring" ReferenceTypeIdProductType ReferenceTypeId = "product-type" ReferenceTypeIdQuote ReferenceTypeId = "quote" ReferenceTypeIdQuoteRequest ReferenceTypeId = "quote-request" @@ -1172,6 +1179,12 @@ func mapDiscriminatorResourceIdentifier(input interface{}) (ResourceIdentifier, return nil, err } return obj, nil + case "product-tailoring": + obj := ProductTailoringResourceIdentifier{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil case "product-type": obj := ProductTypeResourceIdentifier{} if err := decodeStruct(input, &obj); err != nil { diff --git a/platform/types_customer.go b/platform/types_customer.go index ae94af2d..5324469c 100644 --- a/platform/types_customer.go +++ b/platform/types_customer.go @@ -41,7 +41,7 @@ type Customer struct { // // Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence). CustomerNumber *string `json:"customerNumber,omitempty"` - // Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). + // Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP). ExternalId *string `json:"externalId,omitempty"` // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` @@ -165,7 +165,7 @@ type CustomerDraft struct { // // Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence). CustomerNumber *string `json:"customerNumber,omitempty"` - // Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). + // Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP). ExternalId *string `json:"externalId,omitempty"` // Email address of the Customer that must be [unique](/../api/customers-overview#customer-uniqueness) for an entire Project or to a Store the Customer is assigned to. // It is the mandatory unique identifier of a Customer. diff --git a/platform/types_message.go b/platform/types_message.go index 082f1973..834eed59 100644 --- a/platform/types_message.go +++ b/platform/types_message.go @@ -1729,6 +1729,97 @@ func mapDiscriminatorMessage(input interface{}) (Message, error) { } } return obj, nil + case "ProductTailoringCreated": + obj := ProductTailoringCreatedMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil + case "ProductTailoringDeleted": + obj := ProductTailoringDeletedMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil + case "ProductTailoringDescriptionSet": + obj := ProductTailoringDescriptionSetMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil + case "ProductTailoringNameSet": + obj := ProductTailoringNameSetMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil + case "ProductTailoringPublished": + obj := ProductTailoringPublishedMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil + case "ProductTailoringSlugSet": + obj := ProductTailoringSlugSetMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil + case "ProductTailoringUnpublished": + obj := ProductTailoringUnpublishedMessage{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return nil, err + } + } + return obj, nil case "ProductUnpublished": obj := ProductUnpublishedMessage{} if err := decodeStruct(input, &obj); err != nil { @@ -13460,10 +13551,11 @@ func (obj ProductStateTransitionMessage) MarshalJSON() ([]byte, error) { } /** -* Generated after a successful [Unpublish Product](ctp:api:type:ProductUnpublishAction) update action. +* Generated after a successful [Create Product Tailoring](/../api/projects/product-tailoring#create-producttailoring) or +* [Create Product Tailoring in Store](/../api/projects/product-tailoring#create-producttailoring-in-store) request. * */ -type ProductUnpublishedMessage struct { +type ProductTailoringCreatedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13485,12 +13577,28 @@ type ProductUnpublishedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // User-defined unique identifier of the Product Tailoring. + Key *string `json:"key,omitempty"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The description of the [Product Tailoring](ctp:api:type:ProductTailoring) at the time of creation. + Description *LocalizedString `json:"description,omitempty"` + // The name of the [Product Tailoring](ctp:api:type:ProductTailoring) at the time of creation. + Name *LocalizedString `json:"name,omitempty"` + // The slug of the [Product Tailoring](ctp:api:type:ProductTailoring) at the time of creation. + Slug *LocalizedString `json:"slug,omitempty"` + // `true` if the ProductTailoring is published. + Published bool `json:"published"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *ProductUnpublishedMessage) UnmarshalJSON(data []byte) error { - type Alias ProductUnpublishedMessage +func (obj *ProductTailoringCreatedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringCreatedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13507,19 +13615,20 @@ func (obj *ProductUnpublishedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj ProductUnpublishedMessage) MarshalJSON() ([]byte, error) { - type Alias ProductUnpublishedMessage +func (obj ProductTailoringCreatedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringCreatedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "ProductUnpublished", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringCreated", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Add ProductVariant](ctp:api:type:ProductAddVariantAction) update action. +* Generated after a successful [Delete Product Tailoring](/../api/projects/product-tailoring#delete-producttailoring) or +* [Delete ProductTailoring assigned to Product in Store](/../api/projects/product-tailoring#delete-producttailoring-assigned-to-product-in-store) request. * */ -type ProductVariantAddedMessage struct { +type ProductTailoringDeletedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13541,16 +13650,18 @@ type ProductVariantAddedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // Unique identifier of the [Product Variant](ctp:api:type:ProductVariant) that was added. - Variant ProductVariant `json:"variant"` - // Whether the update was only applied to the staged [Product Projection](ctp:api:type:ProductProjection). - Staged bool `json:"staged"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *ProductVariantAddedMessage) UnmarshalJSON(data []byte) error { - type Alias ProductVariantAddedMessage +func (obj *ProductTailoringDeletedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringDeletedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13567,19 +13678,19 @@ func (obj *ProductVariantAddedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj ProductVariantAddedMessage) MarshalJSON() ([]byte, error) { - type Alias ProductVariantAddedMessage +func (obj ProductTailoringDeletedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringDeletedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "ProductVariantAdded", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringDeleted", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Remove ProductVariant](ctp:api:type:ProductRemoveVariantAction) update action. +* Generated after a successful Product Tailoring [Set Description](ctp:api:type:ProductTailoringSetDescriptionAction) update action. * */ -type ProductVariantDeletedMessage struct { +type ProductTailoringDescriptionSetMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13601,16 +13712,22 @@ type ProductVariantDeletedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // Unique identifier of the [Product Variant](ctp:api:type:ProductVariant) that was added. - Variant *ProductVariant `json:"variant,omitempty"` - // List of image URLs that were removed with the [Remove Product Variant](ctp:api:type:ProductRemoveVariantAction) update action. - RemovedImageUrls []string `json:"removedImageUrls"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The description of the [Product Tailoring](ctp:api:type:ProductTailoring) after the [Set Description](ctp:api:type:ProductTailoringSetDescriptionAction) update action. + Description *LocalizedString `json:"description,omitempty"` + // The description of the [ProductTailoring](ctp:api:type:ProductTailoring) before the [Set Description](ctp:api:type:ProductTailoringSetDescriptionAction) update action. + OldDescription *LocalizedString `json:"oldDescription,omitempty"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *ProductVariantDeletedMessage) UnmarshalJSON(data []byte) error { - type Alias ProductVariantDeletedMessage +func (obj *ProductTailoringDescriptionSetMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringDescriptionSetMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13627,19 +13744,19 @@ func (obj *ProductVariantDeletedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj ProductVariantDeletedMessage) MarshalJSON() ([]byte, error) { - type Alias ProductVariantDeletedMessage +func (obj ProductTailoringDescriptionSetMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringDescriptionSetMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "ProductVariantDeleted", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringDescriptionSet", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Create Quote](ctp:api:endpoint:/{projectKey}/quotes:POST) request. +* Generated after a successful Product Tailoring [Set Name](ctp:api:type:ProductTailoringSetNameAction) update action. * */ -type QuoteCreatedMessage struct { +type ProductTailoringNameSetMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13661,14 +13778,22 @@ type QuoteCreatedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // [Quote](/../api/projects/quotes) that was created. - Quote Quote `json:"quote"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The name of the [Product Tailoring](ctp:api:type:ProductTailoring) after the [Set Name](ctp:api:type:ProductTailoringSetNameAction) update action. + Name *LocalizedString `json:"name,omitempty"` + // The name of the [ProductTailoring](ctp:api:type:ProductTailoring) before the [Set Name](ctp:api:type:ProductTailoringSetNameAction) update action. + OldName *LocalizedString `json:"oldName,omitempty"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteCreatedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteCreatedMessage +func (obj *ProductTailoringNameSetMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringNameSetMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13685,19 +13810,19 @@ func (obj *QuoteCreatedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteCreatedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteCreatedMessage +func (obj ProductTailoringNameSetMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringNameSetMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteCreated", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringNameSet", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Change Customer](ctp:api:type:QuoteChangeCustomerAction) update action. +* Generated after a successful [Product Tailoring Publish](ctp:api:type:ProductTailoringPublishAction) update action. * */ -type QuoteCustomerChangedMessage struct { +type ProductTailoringPublishedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13719,16 +13844,18 @@ type QuoteCustomerChangedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // The [Buyer](/../api/quotes-overview#buyer) who now owns the Quote. - Customer CustomerReference `json:"customer"` - // The previous [Buyer](/../api/quotes-overview#buyer). - PreviousCustomer CustomerReference `json:"previousCustomer"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteCustomerChangedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteCustomerChangedMessage +func (obj *ProductTailoringPublishedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringPublishedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13745,19 +13872,19 @@ func (obj *QuoteCustomerChangedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteCustomerChangedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteCustomerChangedMessage +func (obj ProductTailoringPublishedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringPublishedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteCustomerChanged", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringPublished", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Delete Quote](/../api/projects/quotes#delete-quote) request. +* Generated after a successful Product Tailoring [Set Slug](ctp:api:type:ProductTailoringSetSlugAction) update action. * */ -type QuoteDeletedMessage struct { +type ProductTailoringSlugSetMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13779,12 +13906,22 @@ type QuoteDeletedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The slug of the [Product Tailoring](ctp:api:type:ProductTailoring) after the [Set Slug](ctp:api:type:ProductTailoringSetSlugAction) update action. + Slug *LocalizedString `json:"slug,omitempty"` + // The slug of the [ProductTailoring](ctp:api:type:ProductTailoring) before the [Set Slug](ctp:api:type:ProductTailoringSetSlugAction) update action. + OldSlug *LocalizedString `json:"oldSlug,omitempty"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteDeletedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteDeletedMessage +func (obj *ProductTailoringSlugSetMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringSlugSetMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13801,19 +13938,19 @@ func (obj *QuoteDeletedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteDeletedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteDeletedMessage +func (obj ProductTailoringSlugSetMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSlugSetMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteDeleted", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringSlugSet", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Request Quote Renegotiation](ctp:api:type:QuoteRequestQuoteRenegotiationAction) update action. +* Generated after a successful [Product Tailoring Unpublish](ctp:api:type:ProductTailoringUnpublishAction) update action. * */ -type QuoteRenegotiationRequestedMessage struct { +type ProductTailoringUnpublishedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13835,14 +13972,18 @@ type QuoteRenegotiationRequestedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // Message from the [Buyer](/api/quotes-overview#buyer) regarding the Quote renegotiation request. - BuyerComment *string `json:"buyerComment,omitempty"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteRenegotiationRequestedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteRenegotiationRequestedMessage +func (obj *ProductTailoringUnpublishedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductTailoringUnpublishedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13859,19 +14000,19 @@ func (obj *QuoteRenegotiationRequestedMessage) UnmarshalJSON(data []byte) error // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteRenegotiationRequestedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteRenegotiationRequestedMessage +func (obj ProductTailoringUnpublishedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringUnpublishedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteRenegotiationRequested", Alias: (*Alias)(&obj)}) + }{Action: "ProductTailoringUnpublished", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Create QuoteRequest](ctp:api:endpoint:/{projectKey}/quote-requests:POST) request. +* Generated after a successful [Unpublish Product](ctp:api:type:ProductUnpublishAction) update action. * */ -type QuoteRequestCreatedMessage struct { +type ProductUnpublishedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13893,14 +14034,12 @@ type QuoteRequestCreatedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // [Quote Request](/../api/projects/quote-requests) that was created. - QuoteRequest QuoteRequest `json:"quoteRequest"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteRequestCreatedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteRequestCreatedMessage +func (obj *ProductUnpublishedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductUnpublishedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13917,19 +14056,19 @@ func (obj *QuoteRequestCreatedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteRequestCreatedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteRequestCreatedMessage +func (obj ProductUnpublishedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductUnpublishedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteRequestCreated", Alias: (*Alias)(&obj)}) + }{Action: "ProductUnpublished", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Change Customer](ctp:api:type:QuoteRequestChangeCustomerAction) update action. +* Generated after a successful [Add ProductVariant](ctp:api:type:ProductAddVariantAction) update action. * */ -type QuoteRequestCustomerChangedMessage struct { +type ProductVariantAddedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -13951,16 +14090,16 @@ type QuoteRequestCustomerChangedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // The [Buyer](/../api/quotes-overview#buyer) who now owns the Quote Request. - Customer CustomerReference `json:"customer"` - // The previous [Buyer](/../api/quotes-overview#buyer). - PreviousCustomer CustomerReference `json:"previousCustomer"` + // Unique identifier of the [Product Variant](ctp:api:type:ProductVariant) that was added. + Variant ProductVariant `json:"variant"` + // Whether the update was only applied to the staged [Product Projection](ctp:api:type:ProductProjection). + Staged bool `json:"staged"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteRequestCustomerChangedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteRequestCustomerChangedMessage +func (obj *ProductVariantAddedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductVariantAddedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -13977,19 +14116,19 @@ func (obj *QuoteRequestCustomerChangedMessage) UnmarshalJSON(data []byte) error // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteRequestCustomerChangedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteRequestCustomerChangedMessage +func (obj ProductVariantAddedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductVariantAddedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteRequestCustomerChanged", Alias: (*Alias)(&obj)}) + }{Action: "ProductVariantAdded", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Delete QuoteRequest](/../api/projects/quote-requests#delete-quoterequest) request. +* Generated after a successful [Remove ProductVariant](ctp:api:type:ProductRemoveVariantAction) update action. * */ -type QuoteRequestDeletedMessage struct { +type ProductVariantDeletedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -14011,12 +14150,16 @@ type QuoteRequestDeletedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // Unique identifier of the [Product Variant](ctp:api:type:ProductVariant) that was added. + Variant *ProductVariant `json:"variant,omitempty"` + // List of image URLs that were removed with the [Remove Product Variant](ctp:api:type:ProductRemoveVariantAction) update action. + RemovedImageUrls []string `json:"removedImageUrls"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteRequestDeletedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteRequestDeletedMessage +func (obj *ProductVariantDeletedMessage) UnmarshalJSON(data []byte) error { + type Alias ProductVariantDeletedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -14033,19 +14176,19 @@ func (obj *QuoteRequestDeletedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteRequestDeletedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteRequestDeletedMessage +func (obj ProductVariantDeletedMessage) MarshalJSON() ([]byte, error) { + type Alias ProductVariantDeletedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteRequestDeleted", Alias: (*Alias)(&obj)}) + }{Action: "ProductVariantDeleted", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Change Quote Request State](ctp:api:type:QuoteRequestChangeQuoteRequestStateAction) update action. +* Generated after a successful [Create Quote](ctp:api:endpoint:/{projectKey}/quotes:POST) request. * */ -type QuoteRequestStateChangedMessage struct { +type QuoteCreatedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -14067,16 +14210,14 @@ type QuoteRequestStateChangedMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // State of the Quote Request after the [Change Quote Request State](ctp:api:type:QuoteRequestChangeQuoteRequestStateAction) update action. - QuoteRequestState QuoteRequestState `json:"quoteRequestState"` - // State of the Quote Request before the [Change Quote Request State](ctp:api:type:QuoteRequestChangeQuoteRequestStateAction) update action. - OldQuoteRequestState QuoteRequestState `json:"oldQuoteRequestState"` + // [Quote](/../api/projects/quotes) that was created. + Quote Quote `json:"quote"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteRequestStateChangedMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteRequestStateChangedMessage +func (obj *QuoteCreatedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteCreatedMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -14093,19 +14234,19 @@ func (obj *QuoteRequestStateChangedMessage) UnmarshalJSON(data []byte) error { // MarshalJSON override to set the discriminator value or remove // optional nil slices -func (obj QuoteRequestStateChangedMessage) MarshalJSON() ([]byte, error) { - type Alias QuoteRequestStateChangedMessage +func (obj QuoteCreatedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteCreatedMessage return json.Marshal(struct { Action string `json:"type"` *Alias - }{Action: "QuoteRequestStateChanged", Alias: (*Alias)(&obj)}) + }{Action: "QuoteCreated", Alias: (*Alias)(&obj)}) } /** -* Generated after a successful [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. +* Generated after a successful [Change Customer](ctp:api:type:QuoteChangeCustomerAction) update action. * */ -type QuoteRequestStateTransitionMessage struct { +type QuoteCustomerChangedMessage struct { // Unique identifier of the Message. Can be used to track which Messages have been processed. ID string `json:"id"` // Version of a resource. In case of Messages, this is always `1`. @@ -14127,18 +14268,426 @@ type QuoteRequestStateTransitionMessage struct { ResourceVersion int `json:"resourceVersion"` // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` - // [State](ctp:api:type:State) of the [Quote](ctp:api:type:Quote) after the [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. - State StateReference `json:"state"` - // [State](ctp:api:type:State) of the [Quote](ctp:api:type:Quote) before the [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. - OldState *StateReference `json:"oldState,omitempty"` - // Whether [State](ctp:api:type:State) transition validations were turned off during the [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. - Force bool `json:"force"` + // The [Buyer](/../api/quotes-overview#buyer) who now owns the Quote. + Customer CustomerReference `json:"customer"` + // The previous [Buyer](/../api/quotes-overview#buyer). + PreviousCustomer CustomerReference `json:"previousCustomer"` } // UnmarshalJSON override to deserialize correct attribute types based // on the discriminator value -func (obj *QuoteRequestStateTransitionMessage) UnmarshalJSON(data []byte) error { - type Alias QuoteRequestStateTransitionMessage +func (obj *QuoteCustomerChangedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteCustomerChangedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteCustomerChangedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteCustomerChangedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteCustomerChanged", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Delete Quote](/../api/projects/quotes#delete-quote) request. +* + */ +type QuoteDeletedMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteDeletedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteDeletedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteDeletedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteDeletedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteDeleted", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Request Quote Renegotiation](ctp:api:type:QuoteRequestQuoteRenegotiationAction) update action. +* + */ +type QuoteRenegotiationRequestedMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // Message from the [Buyer](/api/quotes-overview#buyer) regarding the Quote renegotiation request. + BuyerComment *string `json:"buyerComment,omitempty"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteRenegotiationRequestedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteRenegotiationRequestedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteRenegotiationRequestedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteRenegotiationRequestedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteRenegotiationRequested", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Create QuoteRequest](ctp:api:endpoint:/{projectKey}/quote-requests:POST) request. +* + */ +type QuoteRequestCreatedMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // [Quote Request](/../api/projects/quote-requests) that was created. + QuoteRequest QuoteRequest `json:"quoteRequest"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteRequestCreatedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteRequestCreatedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteRequestCreatedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteRequestCreatedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteRequestCreated", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Change Customer](ctp:api:type:QuoteRequestChangeCustomerAction) update action. +* + */ +type QuoteRequestCustomerChangedMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // The [Buyer](/../api/quotes-overview#buyer) who now owns the Quote Request. + Customer CustomerReference `json:"customer"` + // The previous [Buyer](/../api/quotes-overview#buyer). + PreviousCustomer CustomerReference `json:"previousCustomer"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteRequestCustomerChangedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteRequestCustomerChangedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteRequestCustomerChangedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteRequestCustomerChangedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteRequestCustomerChanged", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Delete QuoteRequest](/../api/projects/quote-requests#delete-quoterequest) request. +* + */ +type QuoteRequestDeletedMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteRequestDeletedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteRequestDeletedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteRequestDeletedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteRequestDeletedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteRequestDeleted", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Change Quote Request State](ctp:api:type:QuoteRequestChangeQuoteRequestStateAction) update action. +* + */ +type QuoteRequestStateChangedMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // State of the Quote Request after the [Change Quote Request State](ctp:api:type:QuoteRequestChangeQuoteRequestStateAction) update action. + QuoteRequestState QuoteRequestState `json:"quoteRequestState"` + // State of the Quote Request before the [Change Quote Request State](ctp:api:type:QuoteRequestChangeQuoteRequestStateAction) update action. + OldQuoteRequestState QuoteRequestState `json:"oldQuoteRequestState"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteRequestStateChangedMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteRequestStateChangedMessage + if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { + return err + } + if obj.Resource != nil { + var err error + obj.Resource, err = mapDiscriminatorReference(obj.Resource) + if err != nil { + return err + } + } + + return nil +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj QuoteRequestStateChangedMessage) MarshalJSON() ([]byte, error) { + type Alias QuoteRequestStateChangedMessage + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "QuoteRequestStateChanged", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. +* + */ +type QuoteRequestStateTransitionMessage struct { + // Unique identifier of the Message. Can be used to track which Messages have been processed. + ID string `json:"id"` + // Version of a resource. In case of Messages, this is always `1`. + Version int `json:"version"` + // Date and time (UTC) the Message was generated. + CreatedAt time.Time `json:"createdAt"` + // Value of `createdAt`. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Value of `createdBy`. + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1. + // `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource. + SequenceNumber int `json:"sequenceNumber"` + // [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed. + Resource Reference `json:"resource"` + // Version of the resource on which the change or action was performed. + ResourceVersion int `json:"resourceVersion"` + // User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers. + ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` + // [State](ctp:api:type:State) of the [Quote](ctp:api:type:Quote) after the [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. + State StateReference `json:"state"` + // [State](ctp:api:type:State) of the [Quote](ctp:api:type:Quote) before the [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. + OldState *StateReference `json:"oldState,omitempty"` + // Whether [State](ctp:api:type:State) transition validations were turned off during the [Transition State](ctp:api:type:QuoteRequestTransitionStateAction) update action. + Force bool `json:"force"` +} + +// UnmarshalJSON override to deserialize correct attribute types based +// on the discriminator value +func (obj *QuoteRequestStateTransitionMessage) UnmarshalJSON(data []byte) error { + type Alias QuoteRequestStateTransitionMessage if err := json.Unmarshal(data, (*Alias)(obj)); err != nil { return err } @@ -17324,6 +17873,48 @@ func mapDiscriminatorMessagePayload(input interface{}) (MessagePayload, error) { return nil, err } return obj, nil + case "ProductTailoringCreated": + obj := ProductTailoringCreatedMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "ProductTailoringDeleted": + obj := ProductTailoringDeletedMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "ProductTailoringDescriptionSet": + obj := ProductTailoringDescriptionSetMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "ProductTailoringNameSet": + obj := ProductTailoringNameSetMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "ProductTailoringPublished": + obj := ProductTailoringPublishedMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "ProductTailoringSlugSet": + obj := ProductTailoringSlugSetMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "ProductTailoringUnpublished": + obj := ProductTailoringUnpublishedMessagePayload{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil case "ProductUnpublished": obj := ProductUnpublishedMessagePayload{} if err := decodeStruct(input, &obj); err != nil { @@ -21626,6 +22217,191 @@ func (obj ProductStateTransitionMessagePayload) MarshalJSON() ([]byte, error) { }{Action: "ProductStateTransition", Alias: (*Alias)(&obj)}) } +/** +* Generated after a successful [Create Product Tailoring](/../api/projects/product-tailoring#create-producttailoring) or +* [Create Product Tailoring in Store](/../api/projects/product-tailoring#create-producttailoring-in-store) request. +* + */ +type ProductTailoringCreatedMessagePayload struct { + // User-defined unique identifier of the Product Tailoring. + Key *string `json:"key,omitempty"` + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The description of the [Product Tailoring](ctp:api:type:ProductTailoring) at the time of creation. + Description *LocalizedString `json:"description,omitempty"` + // The name of the [Product Tailoring](ctp:api:type:ProductTailoring) at the time of creation. + Name *LocalizedString `json:"name,omitempty"` + // The slug of the [Product Tailoring](ctp:api:type:ProductTailoring) at the time of creation. + Slug *LocalizedString `json:"slug,omitempty"` + // `true` if the ProductTailoring is published. + Published bool `json:"published"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringCreatedMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringCreatedMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringCreated", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Delete Product Tailoring](/../api/projects/product-tailoring#delete-producttailoring) or +* [Delete ProductTailoring assigned to Product in Store](/../api/projects/product-tailoring#delete-producttailoring-assigned-to-product-in-store) request. +* + */ +type ProductTailoringDeletedMessagePayload struct { + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringDeletedMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringDeletedMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringDeleted", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful Product Tailoring [Set Description](ctp:api:type:ProductTailoringSetDescriptionAction) update action. +* + */ +type ProductTailoringDescriptionSetMessagePayload struct { + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The description of the [Product Tailoring](ctp:api:type:ProductTailoring) after the [Set Description](ctp:api:type:ProductTailoringSetDescriptionAction) update action. + Description *LocalizedString `json:"description,omitempty"` + // The description of the [ProductTailoring](ctp:api:type:ProductTailoring) before the [Set Description](ctp:api:type:ProductTailoringSetDescriptionAction) update action. + OldDescription *LocalizedString `json:"oldDescription,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringDescriptionSetMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringDescriptionSetMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringDescriptionSet", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful Product Tailoring [Set Name](ctp:api:type:ProductTailoringSetNameAction) update action. +* + */ +type ProductTailoringNameSetMessagePayload struct { + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The name of the [Product Tailoring](ctp:api:type:ProductTailoring) after the [Set Name](ctp:api:type:ProductTailoringSetNameAction) update action. + Name *LocalizedString `json:"name,omitempty"` + // The name of the [ProductTailoring](ctp:api:type:ProductTailoring) before the [Set Name](ctp:api:type:ProductTailoringSetNameAction) update action. + OldName *LocalizedString `json:"oldName,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringNameSetMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringNameSetMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringNameSet", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Product Tailoring Publish](ctp:api:type:ProductTailoringPublishAction) update action. +* + */ +type ProductTailoringPublishedMessagePayload struct { + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringPublishedMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringPublishedMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringPublished", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful Product Tailoring [Set Slug](ctp:api:type:ProductTailoringSetSlugAction) update action. +* + */ +type ProductTailoringSlugSetMessagePayload struct { + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` + // The slug of the [Product Tailoring](ctp:api:type:ProductTailoring) after the [Set Slug](ctp:api:type:ProductTailoringSetSlugAction) update action. + Slug *LocalizedString `json:"slug,omitempty"` + // The slug of the [ProductTailoring](ctp:api:type:ProductTailoring) before the [Set Slug](ctp:api:type:ProductTailoringSetSlugAction) update action. + OldSlug *LocalizedString `json:"oldSlug,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSlugSetMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSlugSetMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringSlugSet", Alias: (*Alias)(&obj)}) +} + +/** +* Generated after a successful [Product Tailoring Unpublish](ctp:api:type:ProductTailoringUnpublishAction) update action. +* + */ +type ProductTailoringUnpublishedMessagePayload struct { + // The Store to which the Product Tailoring belongs. + Store StoreKeyReference `json:"store"` + // User-defined unique identifier of the Product this Product Tailoring belongs to. + ProductKey *string `json:"productKey,omitempty"` + // Reference to the Product the Product Tailoring belongs to. + Product ProductReference `json:"product"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringUnpublishedMessagePayload) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringUnpublishedMessagePayload + return json.Marshal(struct { + Action string `json:"type"` + *Alias + }{Action: "ProductTailoringUnpublished", Alias: (*Alias)(&obj)}) +} + /** * Generated after a successful [Unpublish Product](ctp:api:type:ProductUnpublishAction) update action. * diff --git a/platform/types_payment.go b/platform/types_payment.go index a2d3ec1a..47a31408 100644 --- a/platform/types_payment.go +++ b/platform/types_payment.go @@ -25,7 +25,7 @@ type Payment struct { Customer *CustomerReference `json:"customer,omitempty"` // [Anonymous session](ctp:api:type:AnonymousSession) associated with the Payment. AnonymousId *string `json:"anonymousId,omitempty"` - // Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). + // Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP). ExternalId *string `json:"externalId,omitempty"` // Identifier used by the payment service that processes the Payment (for example, a PSP). // The combination of `interfaceId` and the `paymentInterface` field on [PaymentMethodInfo](ctp:api:type:PaymentMethodInfo) must be unique. @@ -92,7 +92,7 @@ type PaymentDraft struct { Customer *CustomerResourceIdentifier `json:"customer,omitempty"` // [Anonymous session](ctp:api:type:AnonymousSession) associated with the Payment. AnonymousId *string `json:"anonymousId,omitempty"` - // Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP). + // Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP). ExternalId *string `json:"externalId,omitempty"` // Identifier used by the payment service that processes the Payment (for example, a PSP). // The combination of `interfaceId` and the `paymentInterface` field on [PaymentMethodInfo](ctp:api:type:PaymentMethodInfo) must be unique. diff --git a/platform/types_product.go b/platform/types_product.go index e747eae4..fa0e504f 100644 --- a/platform/types_product.go +++ b/platform/types_product.go @@ -831,11 +831,15 @@ type ProductVariantAvailability struct { // For each [InventoryEntry](ctp:api:type:InventoryEntry) with a supply Channel, an entry is added to `channels`. Channels *ProductVariantChannelAvailabilityMap `json:"channels,omitempty"` // Indicates whether a Product Variant is in stock. - IsOnStock *bool `json:"isOnStock,omitempty"` + IsOnStock bool `json:"isOnStock"` // Number of days to restock a Product Variant once it is out of stock. RestockableInDays *int `json:"restockableInDays,omitempty"` // Number of items of the Product Variant that are in stock. AvailableQuantity *int `json:"availableQuantity,omitempty"` + // Unique identifier of the [InventoryEntry](ctp:api:type:InventoryEntry). + ID *string `json:"id,omitempty"` + // Current version of the [InventoryEntry](ctp:api:type:InventoryEntry). + Version *int `json:"version,omitempty"` } type ProductVariantChannelAvailability struct { diff --git a/platform/types_product_tailoring.go b/platform/types_product_tailoring.go new file mode 100644 index 00000000..e32190f2 --- /dev/null +++ b/platform/types_product_tailoring.go @@ -0,0 +1,425 @@ +package platform + +// Generated file, please do not change!!! + +import ( + "encoding/json" + "errors" + "time" +) + +/** +* A single ProductTailoring representation contains the _current_ and the _staged_ representation of its product data tailored per Store. +* + */ +type ProductTailoring struct { + // Unique identifier of the ProductTailoring. + ID string `json:"id"` + // Current version of the ProductTailoring. + Version int `json:"version"` + // Date and time (UTC) the ProductTailoring was initially created. + CreatedAt time.Time `json:"createdAt"` + // Date and time (UTC) the ProductTailoring was last updated. + LastModifiedAt time.Time `json:"lastModifiedAt"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` + // Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked). + CreatedBy *CreatedBy `json:"createdBy,omitempty"` + // User-defined unique identifier of the ProductTailoring. + Key *string `json:"key,omitempty"` + // The Store to which the ProductTailoring belongs. + Store StoreKeyReference `json:"store"` + // Reference to the Product the ProductTailoring belongs to. + Product ProductReference `json:"product"` + // `true` if the ProductTailoring is published. + Published bool `json:"published"` + // Current (published) data of the ProductTailoring. + Current ProductTailoringData `json:"current"` + // Staged (unpublished) data of the ProductTailoring. + Staged ProductTailoringData `json:"staged"` + // `true` if the `staged` data is different from the `current` data. + HasStagedChanges bool `json:"hasStagedChanges"` +} + +/** +* Contains all the tailored data of a Product. +* + */ +type ProductTailoringData struct { + // Tailored name of the Product. + Name *LocalizedString `json:"name,omitempty"` + // Tailored description of the Product. + Description *LocalizedString `json:"description,omitempty"` + // Tailored title of the Product used by external search engines for improved search engine performance. + MetaTitle *LocalizedString `json:"metaTitle,omitempty"` + // Tailored description of the Product used by external search engines for improved search engine performance. + MetaDescription *LocalizedString `json:"metaDescription,omitempty"` + // Tailored keywords related to the Product used by external search engines for improved search engine performance. + MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` + // User-defined identifier used in a deep-link URL for the ProductTailoring. + // Matches the pattern `[a-zA-Z0-9_\\-]{2,256}`. + Slug *LocalizedString `json:"slug,omitempty"` +} + +/** +* Contains all the tailored data of a Product. +* + */ +type ProductTailoringDraft struct { + // User-defined unique identifier of the ProductTailoring. + Key *string `json:"key,omitempty"` + // The Store to which the ProductTailoring belongs. + Store StoreResourceIdentifier `json:"store"` + // ResourceIdentifier of the Product the ProductTailoring belongs to. + Product ProductResourceIdentifier `json:"product"` + // Tailored name of the Product. + Name *LocalizedString `json:"name,omitempty"` + // Tailored description of the Product. + Description *LocalizedString `json:"description,omitempty"` + // Tailored title of the Product used by external search engines for improved search engine performance. + MetaTitle *LocalizedString `json:"metaTitle,omitempty"` + // Tailored description of the Product used by external search engines for improved search engine performance. + MetaDescription *LocalizedString `json:"metaDescription,omitempty"` + // Tailored keywords related to the Product used by external search engines for improved search engine performance. + MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` + // User-defined identifier used in a deep-link URL for the ProductTailoring. + // Matches the pattern `[a-zA-Z0-9_\\-]{2,256}`. + Slug *LocalizedString `json:"slug,omitempty"` + // If `true`, the ProductTailoring is published immediately. + Publish *bool `json:"publish,omitempty"` +} + +/** +* Contains all the tailored data of a Product for a specific Store. +* + */ +type ProductTailoringInStoreDraft struct { + // User-defined unique identifier of the ProductTailoring. + Key *string `json:"key,omitempty"` + // ResourceIdentifier of the Product the ProductTailoring belongs to. + Product ProductResourceIdentifier `json:"product"` + // Tailored name of the Product. + Name *LocalizedString `json:"name,omitempty"` + // Tailored description of the Product. + Description *LocalizedString `json:"description,omitempty"` + // Tailored title of the Product used by external search engines for improved search engine performance. + MetaTitle *LocalizedString `json:"metaTitle,omitempty"` + // Tailored description of the Product used by external search engines for improved search engine performance. + MetaDescription *LocalizedString `json:"metaDescription,omitempty"` + // Tailored keywords related to the Product used by external search engines for improved search engine performance. + MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` + // User-defined identifier used in a deep-link URL for the ProductTailoring. + // Matches the pattern `[a-zA-Z0-9_\\-]{2,256}`. + Slug *LocalizedString `json:"slug,omitempty"` + // If `true`, the ProductTailoring is published immediately. + Publish *bool `json:"publish,omitempty"` +} + +/** +* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ProductTailoring](ctp:api:type:ProductTailoring). +* + */ +type ProductTailoringPagedQueryResponse struct { + // Number of [results requested](/../api/general-concepts#limit). + Limit int `json:"limit"` + // Number of [elements skipped](/../api/general-concepts#offset). + Offset int `json:"offset"` + // Actual number of results returned. + Count int `json:"count"` + // Total number of results matching the query. + // This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency). + // This field is returned by default. + // For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`. + // When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries). + Total *int `json:"total,omitempty"` + // [ProductTailoring](ctp:api:type:ProductTailoring) list matching the query. + Results []ProductTailoring `json:"results"` +} + +/** +* [Reference](ctp:api:type:Reference) to a [ProductTailoring](ctp:api:type:ProductTailoring). +* + */ +type ProductTailoringReference struct { + // Unique identifier of the referenced [ProductTailoring](ctp:api:type:ProductTailoring). + ID string `json:"id"` + // Contains the representation of the expanded ProductTailoring. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for ProductTailoring. + Obj *ProductTailoring `json:"obj,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringReference) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringReference + return json.Marshal(struct { + Action string `json:"typeId"` + *Alias + }{Action: "product-tailoring", Alias: (*Alias)(&obj)}) +} + +/** +* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductTailoring](ctp:api:type:ProductTailoring). +* + */ +type ProductTailoringResourceIdentifier struct { + // Unique identifier of the referenced [ProductTailoring](ctp:api:type:ProductTailoring). Either `id` or `key` is required. + ID *string `json:"id,omitempty"` + // User-defined unique identifier of the referenced [ProductTailoring](ctp:api:type:ProductTailoring). Either `id` or `key` is required. + Key *string `json:"key,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringResourceIdentifier) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringResourceIdentifier + return json.Marshal(struct { + Action string `json:"typeId"` + *Alias + }{Action: "product-tailoring", Alias: (*Alias)(&obj)}) +} + +type ProductTailoringUpdateAction interface{} + +func mapDiscriminatorProductTailoringUpdateAction(input interface{}) (ProductTailoringUpdateAction, error) { + var discriminator string + if data, ok := input.(map[string]interface{}); ok { + discriminator, ok = data["action"].(string) + if !ok { + return nil, errors.New("error processing discriminator field 'action'") + } + } else { + return nil, errors.New("invalid data") + } + + switch discriminator { + case "publish": + obj := ProductTailoringPublishAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setDescription": + obj := ProductTailoringSetDescriptionAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setMetaAttributes": + obj := ProductTailoringSetMetaAttributesAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setMetaDescription": + obj := ProductTailoringSetMetaDescriptionAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setMetaKeywords": + obj := ProductTailoringSetMetaKeywordsAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setMetaTitle": + obj := ProductTailoringSetMetaTitleAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setName": + obj := ProductTailoringSetNameAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "setSlug": + obj := ProductTailoringSetSlugAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + case "unpublish": + obj := ProductTailoringUnpublishAction{} + if err := decodeStruct(input, &obj); err != nil { + return nil, err + } + return obj, nil + } + return nil, nil +} + +/** +* Publishes the `staged` data of the ProductTailoring to `current`. Sets `hasStagedChanges` to `false`. +* Generates the [ProductTailoringPublished](ctp:api:type:ProductTailoringPublishedMessage) Message. +* + */ +type ProductTailoringPublishAction struct { +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringPublishAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringPublishAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "publish", Alias: (*Alias)(&obj)}) +} + +/** +* Generates the [ProductTailoringDescriptionSet](ctp:api:type:ProductTailoringDescriptionSetMessage) Message. +* + */ +type ProductTailoringSetDescriptionAction struct { + // Value to set. If empty, any existing value will be removed. + Description *LocalizedString `json:"description,omitempty"` + // If `true`, only the staged `description` is updated. If `false`, both the current and staged `description` are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetDescriptionAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetDescriptionAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setDescription", Alias: (*Alias)(&obj)}) +} + +/** +* Updates all meta attributes at the same time. + */ +type ProductTailoringSetMetaAttributesAction struct { + // Value to set. If empty, any existing value will be removed. + MetaTitle *LocalizedString `json:"metaTitle,omitempty"` + // Value to set. If empty, any existing value will be removed. + MetaDescription *LocalizedString `json:"metaDescription,omitempty"` + // Value to set. If empty, any existing value will be removed. + MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` + // If `true`, only the staged attributes are updated. If `false`, both the current and staged attributes are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetMetaAttributesAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetMetaAttributesAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setMetaAttributes", Alias: (*Alias)(&obj)}) +} + +type ProductTailoringSetMetaDescriptionAction struct { + // Value to set. If empty, any existing value will be removed. + MetaDescription *LocalizedString `json:"metaDescription,omitempty"` + // If `true`, only the staged `metaDescription` is updated. If `false`, both the current and staged `metaDescription` are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetMetaDescriptionAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetMetaDescriptionAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setMetaDescription", Alias: (*Alias)(&obj)}) +} + +type ProductTailoringSetMetaKeywordsAction struct { + // Value to set. If empty, any existing value will be removed. + MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` + // If `true`, only the staged `metaKeywords` is updated. If `false`, both the current and staged `metaKeywords` are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetMetaKeywordsAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetMetaKeywordsAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setMetaKeywords", Alias: (*Alias)(&obj)}) +} + +type ProductTailoringSetMetaTitleAction struct { + // Value to set. If empty, any existing value will be removed. + MetaTitle *LocalizedString `json:"metaTitle,omitempty"` + // If `true`, only the staged `metaTitle` is updated. If `false`, both the current and staged `metaTitle` are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetMetaTitleAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetMetaTitleAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setMetaTitle", Alias: (*Alias)(&obj)}) +} + +/** +* Generates the [ProductTailoringNameSet](ctp:api:type:ProductTailoringNameSetMessage) Message. +* + */ +type ProductTailoringSetNameAction struct { + // Value to set. If empty, any existing value will be removed. + Name *LocalizedString `json:"name,omitempty"` + // If `true`, only the staged `name` is updated. If `false`, both the current and staged `name` are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetNameAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetNameAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setName", Alias: (*Alias)(&obj)}) +} + +/** +* Generates the [ProductTailoringSlugSet](ctp:api:type:ProductTailoringSlugSetMessage) Message. +* + */ +type ProductTailoringSetSlugAction struct { + // Value to set. If empty, any existing value will be removed. + Slug *LocalizedString `json:"slug,omitempty"` + // If `true`, only the staged `slug` is updated. If `false`, both the current and staged `slug` are updated. + Staged *bool `json:"staged,omitempty"` +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringSetSlugAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringSetSlugAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "setSlug", Alias: (*Alias)(&obj)}) +} + +/** +* Unpublishes the `current` data of the ProductTailoring. Sets the `published` field to `false`. +* Generates the [ProductTailoringUnpublished](ctp:api:type:ProductTailoringUnpublishedMessage) Message. +* + */ +type ProductTailoringUnpublishAction struct { +} + +// MarshalJSON override to set the discriminator value or remove +// optional nil slices +func (obj ProductTailoringUnpublishAction) MarshalJSON() ([]byte, error) { + type Alias ProductTailoringUnpublishAction + return json.Marshal(struct { + Action string `json:"action"` + *Alias + }{Action: "unpublish", Alias: (*Alias)(&obj)}) +} diff --git a/platform/types_tax_category.go b/platform/types_tax_category.go index d177790b..496e7291 100644 --- a/platform/types_tax_category.go +++ b/platform/types_tax_category.go @@ -276,7 +276,7 @@ type TaxRateDraft struct { Country string `json:"country"` // State within the country, such as Texas in the United States. State *string `json:"state,omitempty"` - // Used to calculate the [taxPortions](/../api/projects/carts#taxedprice) field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate `amount`. + // Used to calculate the `taxPortions` field in a [Cart or Order](/../api/projects/carts#taxedprice) or [(Custom) Line Items](/../api/projects/carts#taxeditemprice). It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate `amount`. SubRates []SubRate `json:"subRates"` // User-defined unique identifier of the TaxRate. Key *string `json:"key,omitempty"`