{
  "$schema" : "http://json-schema.org/draft-07/schema#",
  "title" : "warehousestock Schema",
  "description" : "JSON Schema for warehousestock models",
  "definitions" : {
    "WarehouseItemDTO" : {
      "type" : "object",
      "id" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:WarehouseItemDTO",
      "properties" : {
        "itemCode" : {
          "type" : "string",
          "required" : true
        },
        "combination1Code" : {
          "type" : "string"
        },
        "combination2Code" : {
          "type" : "string"
        },
        "stock" : {
          "type" : "number",
          "required" : true
        },
        "active" : {
          "type" : "boolean"
        }
      }
    },
    "WarehouseItemsDTO" : {
      "type" : "object",
      "id" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:WarehouseItemsDTO",
      "properties" : {
        "documentId" : {
          "type" : "string",
          "required" : true
        },
        "whCode" : {
          "type" : "string",
          "required" : true
        },
        "whItems" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "id" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:WarehouseItemDTO",
            "properties" : {
              "itemCode" : {
                "type" : "string",
                "required" : true
              },
              "combination1Code" : {
                "type" : "string"
              },
              "combination2Code" : {
                "type" : "string"
              },
              "stock" : {
                "type" : "number",
                "required" : true
              },
              "active" : {
                "type" : "boolean"
              }
            }
          }
        }
      }
    },
    "StoresDTO" : {
      "type" : "object",
      "id" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:stores:StoresDTO",
      "properties" : {
        "documentId" : {
          "type" : "string",
          "required" : true
        },
        "stores" : {
          "type" : "array",
          "items" : {
            "$ref" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:stores:StoreDTO"
          }
        }
      }
    },
    "StoreDTO" : {
      "type" : "object",
      "id" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:stores:StoreDTO",
      "properties" : {
        "storeCode" : {
          "type" : "string",
          "required" : true
        },
        "storeDes" : {
          "type" : "string",
          "required" : true
        },
        "storeTypeId" : {
          "type" : "integer"
        },
        "salesChannelCode" : {
          "type" : "string"
        },
        "companyCode" : {
          "type" : "string",
          "required" : true
        },
        "warehouseConceptCode" : {
          "type" : "string",
          "required" : true
        },
        "paymentMethodCode" : {
          "type" : "string"
        },
        "paymentMethodCreditCode" : {
          "type" : "string"
        },
        "paymentMethodPromotionsCode" : {
          "type" : "string"
        },
        "serviceQualityCode" : {
          "type" : "string"
        },
        "address" : {
          "type" : "string"
        },
        "city" : {
          "type" : "string"
        },
        "province" : {
          "type" : "string"
        },
        "postalCode" : {
          "type" : "string",
          "required" : true
        },
        "countryCode" : {
          "type" : "string",
          "required" : true
        },
        "phone1" : {
          "type" : "string"
        },
        "phone2" : {
          "type" : "string"
        },
        "fax" : {
          "type" : "string"
        },
        "contactPerson" : {
          "type" : "string"
        },
        "latitude" : {
          "type" : "number"
        },
        "longitude" : {
          "type" : "number"
        },
        "client" : {
          "type" : "object",
          "required" : true,
          "$ref" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:stores:StoreClientDTO"
        },
        "rateCodes" : {
          "type" : "array",
          "required" : true,
          "items" : {
            "type" : "string"
          }
        },
        "userCodes" : {
          "type" : "array",
          "required" : true,
          "items" : {
            "type" : "string"
          }
        },
        "tillCodes" : {
          "type" : "array",
          "required" : true,
          "items" : {
            "type" : "string"
          }
        }
      }
    },
    "StoreClientDTO" : {
      "type" : "object",
      "id" : "urn:jsonschema:com:comerzzia:integrations:model:warehouse:stores:StoreClientDTO",
      "properties" : {
        "clientCode" : {
          "type" : "string",
          "required" : true
        },
        "clientDes" : {
          "type" : "string",
          "required" : true
        },
        "tradeName" : {
          "type" : "string"
        },
        "countryCode" : {
          "type" : "string"
        },
        "taxTreatmentId" : {
          "type" : "integer",
          "required" : true
        },
        "taxTreatmentDes" : {
          "type" : "string"
        },
        "paymentMethodMaturityId" : {
          "type" : "integer"
        },
        "paymentMethodMaturityDes" : {
          "type" : "string"
        }
      }
    }
  }
}