# LocationDto

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths: {}
components:
  schemas:
    LimitedAccessEnum:
      type: string
      enum:
        - Airport
        - Cemetery
        - Church
        - Construction Site
        - Container Station
        - Convention Center
        - Fair/Amusement Park
        - Farm Country Club Estate
        - Funeral Home
        - Golf Course
        - Grocery Warehouse
        - Hospital/Medical Facility
        - Hotel
        - Inspection Site
        - Marina
        - Military Base
        - Mine Site
        - Mini-Storage
        - No Dock/Dock obstruction
        - Nursing Home
        - Park Forest/Preserve
        - Piers and Wharves
        - Prison
        - Ranch
        - Recreational/athletic Facility
        - Remote Government
        - Reservation
        - Restaurant
        - School
        - Service Station
        - Shopping Center/Mall
        - Social Club
        - Steel Mill
        - Unspecified
        - Utility Site
        - Winery/Brewery/Distillery
      x-apidog:
        enumDescriptions:
          Airport: ''
          Cemetery: ''
          Church: ''
          Construction Site: ''
          Container Station: ''
          Convention Center: ''
          Fair/Amusement Park: ''
          Farm Country Club Estate: ''
          Funeral Home: ''
          Golf Course: ''
          Grocery Warehouse: ''
          Hospital/Medical Facility: ''
          Hotel: ''
          Inspection Site: ''
          Marina: ''
          Military Base: ''
          Mine Site: ''
          Mini-Storage: ''
          No Dock/Dock obstruction: ''
          Nursing Home: ''
          Park Forest/Preserve: ''
          Piers and Wharves: ''
          Prison: ''
          Ranch: ''
          Recreational/athletic Facility: ''
          Remote Government: ''
          Reservation: ''
          Restaurant: ''
          School: ''
          Service Station: ''
          Shopping Center/Mall: ''
          Social Club: ''
          Steel Mill: ''
          Unspecified: ''
          Utility Site: ''
          Winery/Brewery/Distillery: ''
      nullable: true
      x-apidog-folder: ''
    LocationDto:
      type: object
      properties:
        companyName:
          type: string
          description: Company name
          maxLength: 50
          nullable: true
        locationName:
          type: string
          description: Location name
          maxLength: 50
          nullable: true
        einNumber:
          type: string
          description: 'The EIN Number of the location (if applicable) '
          maxLength: 10
          nullable: true
        note:
          type: string
          description: A note for the location
          maxLength: 1000
          nullable: true
        contactMethods:
          $ref: '#/components/schemas/ContactMethodsDto'
          description: 'Contact methods for the location. '
        contactPerson:
          $ref: '#/components/schemas/ContactPersonDto'
          description: Contact Person for the location
        address:
          $ref: '#/components/schemas/AddressDto'
          description: Address information for the location.
        vendorId:
          type: string
          description: >-
            Vendor identifier - Used to map to an existing vendor in Banyan. 

            The system will look up the vendor location and use that data
            instead of what is in the request.
          maxLength: 50
          nullable: true
        distributionCenterReferenceNumber:
          type: string
          description: >-
            Distribution center identifier - Used to map to an existing
            distribution center in Banyan. This can further filter data for
            vendors with multiple locations.
          maxLength: 50
          nullable: true
        dock:
          $ref: '#/components/schemas/DockDetailsDto'
          description: Dock Information for the location.
      additionalProperties: false
      x-apidog-orders:
        - companyName
        - locationName
        - einNumber
        - note
        - contactMethods
        - contactPerson
        - address
        - vendorId
        - distributionCenterReferenceNumber
        - dock
      x-apidog-folder: ''
    DockDetailsDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the dock
          maxLength: 50
        note:
          type: string
          description: A note in regards to the dock.
          maxLength: 1000
        confirmationNumber:
          type: string
          description: The pickup/delivery confirmation number.
          maxLength: 50
        openTime:
          type: string
          description: 'The open time of the dock. '
          format: date-time
        accessTime:
          type: string
          description: The preferred dock access time.
          format: date-time
        closeTime:
          type: string
          description: 'The close time of the dock. '
          format: date-time
        isFirstComeFirstServe:
          type: boolean
          description: If the dock is 'First come, first serve'
        limitedAccessType:
          description: Dock limited access type.
          anyOf:
            - description: Dock limited access type.
              $ref: '#/components/schemas/LimitedAccessEnum'
            - type: 'null'
      description: Dock information
      additionalProperties: false
      x-apidog-orders:
        - name
        - note
        - confirmationNumber
        - openTime
        - accessTime
        - closeTime
        - isFirstComeFirstServe
        - limitedAccessType
      nullable: true
      x-apidog-folder: ''
    ContactMethodsDto:
      type: object
      properties:
        phoneNumber:
          type: string
          description: Phone number for contact
          maxLength: 50
          nullable: true
        extension:
          type: string
          description: Phone extension for contact
          maxLength: 10
          nullable: true
        faxNumber:
          type: string
          description: Fax number for contact
          maxLength: 28
          nullable: true
        email:
          type: string
          description: Email for contact
          maxLength: 128
          nullable: true
      additionalProperties: false
      description: Class ContactMethodsDto.
      x-apidog-orders:
        - phoneNumber
        - extension
        - faxNumber
        - email
      x-apidog-folder: ''
    AddressDto:
      required:
        - city
        - country
        - stateOrProvince
        - zipCode
      type: object
      properties:
        lineOne:
          type: string
          description: First address line
          maxLength: 50
          nullable: true
        lineTwo:
          type: string
          description: Second address line
          maxLength: 50
          nullable: true
        city:
          type: string
          description: City of address
          minLength: 1
          maxLength: 50
        stateOrProvince:
          minLength: 1
          type: string
          description: State or province of the address
        zipCode:
          type: string
          description: Zip or postal code of address
          minLength: 1
          maxLength: 10
        country:
          minLength: 1
          type: string
          description: Country of address
      additionalProperties: false
      description: Address Information
      x-apidog-orders:
        - lineOne
        - lineTwo
        - city
        - stateOrProvince
        - zipCode
        - country
      x-apidog-folder: ''
    ContactPersonDto:
      type: object
      properties:
        firstName:
          type: string
          description: Contact's first name
          maxLength: 50
          nullable: true
        lastName:
          type: string
          description: Contact's last name
          maxLength: 50
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - firstName
        - lastName
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
