openapi: 3.0.1
info:
  title: Storm Query API Documentation
  description: >-
    Storm Query API is an API based on OData V4. It is an API to fill the need
    for data from Storm in integration services that do not have direct access
    to Storm’s data and data models.
  version: '2.0'
servers:
  - url: https://customer-slug.api-se.norce.tech/commerce/query/2.0
paths:
  /Customers/CustomerCompanies:
    get:
      tags:
        - Customers
      summary: Get CustomerCompany
      description: Get CustomerCompany
      operationId: CustomerCompanies
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerCompany
        '500':
          description: Internal Server Error
          content: {}
  /Customers/Customers:
    get:
      tags:
        - Customers
      summary: Get Customer
      description: Get Customer
      operationId: Customers
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Customer
        '500':
          description: Internal Server Error
          content: {}
  /Customers/Companies:
    get:
      tags:
        - Customers
      summary: Get Company
      description: Get Company
      operationId: Companies
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Company
        '500':
          description: Internal Server Error
          content: {}
components:
  schemas:
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.AccountRole:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        AccountId:
          type: integer
          description: AccountId. Key property.
          format: int32
        ApplicationRoleId:
          type: integer
          description: ApplicationRoleId. Key property.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId. Nullable.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.AccountRole
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyAddress:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        CareOf:
          type: string
          description: 'CareOf. MaxLength: 100. Nullable.'
        AddressLine1:
          type: string
          description: 'AddressLine1. MaxLength: 255. Nullable.'
        AddressLine2:
          type: string
          description: 'AddressLine2. MaxLength: 255. Nullable.'
        ZipCode:
          type: string
          description: 'ZipCode. MaxLength: 50. Nullable.'
        City:
          type: string
          description: 'City. MaxLength: 50. Nullable.'
        Region:
          type: string
          description: 'Region. MaxLength: 100. Nullable.'
        CountryId:
          type: integer
          description: CountryId. Nullable.
          format: int32
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        StatusId:
          type: integer
          description: StatusId. Nullable.
          format: int32
        StatusUpdated:
          type: string
          description: StatusUpdated. Nullable.
          format: date-time
        StatusUpdatedBy:
          type: integer
          description: StatusUpdatedBy. Nullable.
          format: int32
        Gln:
          type: string
          description: 'Gln. MaxLength: 50. Nullable.'
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        ShippingPhoneNumber:
          type: string
          description: 'ShippingPhoneNumber. MaxLength: 50. Nullable.'
        Code:
          type: string
          description: 'Code. MaxLength: 50. Nullable.'
        IsPrimary:
          type: boolean
          description: IsPrimary.
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyAddress
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyInfo:
      type: object
      properties:
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        TypeId:
          type: integer
          description: TypeId. Key property.
          format: int32
        Id:
          type: integer
          description: Id.
          format: int32
        Value:
          type: string
          description: Value. Nullable.
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyInfo
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyFlag:
      type: object
      properties:
        FlagId:
          type: integer
          description: FlagId. Key property.
          format: int32
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        StoppedDate:
          type: string
          description: StoppedDate. Nullable.
          format: date-time
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyFlag
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyPriceList:
      type: object
      properties:
        PriceListId:
          type: integer
          description: PriceListId. Key property.
          format: int32
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        IsExclusive:
          type: boolean
          description: IsExclusive.
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyPriceList
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyDeliveryMethod:
      type: object
      properties:
        Code:
          type: string
          description: 'Code. MaxLength: 50. Key property.'
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyDeliveryMethod
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyPaymentMethod:
      type: object
      properties:
        Code:
          type: string
          description: 'Code. MaxLength: 50. Key property.'
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        InvoiceCaptureSettingsCode:
          type: string
          description: 'InvoiceCaptureSettingsCode. MaxLength: 100. Nullable.'
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyPaymentMethod
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyDiscount:
      type: object
      properties:
        TypeId:
          type: integer
          description: TypeId. Key property.
          format: int32
        ValueCode:
          type: string
          description: 'ValueCode. MaxLength: 50. Key property.'
        CompanyId:
          type: integer
          description: CompanyId. Key property.
          format: int32
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        DiscountPct:
          type: number
          description: DiscountPct.
          format: decimal
        PriceListTypeIdSeed:
          type: string
          description: 'PriceListTypeIdSeed. MaxLength: 50. Nullable.'
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyDiscount
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerAddress:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        CustomerId:
          type: integer
          description: CustomerId. Key property.
          format: int32
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        CareOf:
          type: string
          description: 'CareOf. MaxLength: 100. Nullable.'
        AddressLine1:
          type: string
          description: 'AddressLine1. MaxLength: 255. Nullable.'
        AddressLine2:
          type: string
          description: 'AddressLine2. MaxLength: 255. Nullable.'
        ZipCode:
          type: string
          description: 'ZipCode. MaxLength: 50. Nullable.'
        City:
          type: string
          description: 'City. MaxLength: 50. Nullable.'
        Region:
          type: string
          description: 'Region. MaxLength: 50. Nullable.'
        CountryId:
          type: integer
          description: CountryId. Nullable.
          format: int32
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        StatusId:
          type: integer
          description: StatusId. Nullable.
          format: int32
        StatusUpdated:
          type: string
          description: StatusUpdated. Nullable.
          format: date-time
        StatusUpdatedBy:
          type: integer
          description: StatusUpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        ShippingPhoneNumber:
          type: string
          description: 'ShippingPhoneNumber. MaxLength: 50. Nullable.'
        Code:
          type: string
          description: 'Code. MaxLength: 50. Nullable.'
        IsPrimary:
          type: boolean
          description: IsPrimary.
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerAddress
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerInfo:
      type: object
      properties:
        CustomerId:
          type: integer
          description: CustomerId. Key property.
          format: int32
        TypeId:
          type: integer
          description: TypeId. Key property.
          format: int32
        Id:
          type: integer
          description: Id.
          format: int32
        Value:
          type: string
          description: Value. Nullable.
        Updated:
          type: string
          description: Updated.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerInfo
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerFlag:
      type: object
      properties:
        FlagId:
          type: integer
          description: FlagId. Key property.
          format: int32
        CustomerId:
          type: integer
          description: CustomerId. Key property.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        StoppedDate:
          type: string
          description: StoppedDate. Nullable.
          format: date-time
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerFlag
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.Account:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId.
          format: int32
        Key:
          type: string
          description: Key.
          format: guid
        LoginName:
          type: string
          description: 'LoginName. MaxLength: 255. Nullable.'
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        ContactId:
          type: integer
          description: ContactId. Nullable.
          format: int32
        CustomerId:
          type: integer
          description: CustomerId. Nullable.
          format: int32
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        Roles:
          type: array
          description: Roles.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.AccountRole
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.Account
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerCompany:
      type: object
      properties:
        CustomerId:
          type: integer
          description: CustomerId. Nullable. Key property.
          format: int32
        CompanyId:
          type: integer
          description: CompanyId. Nullable. Key property.
          format: int32
        RoleId:
          type: integer
          description: RoleId. Nullable.
          format: int32
        CustomerCodePrefix:
          type: string
          description: 'CustomerCodePrefix. MaxLength: 10. Nullable.'
        CustomerCode:
          type: string
          description: 'CustomerCode. MaxLength: 50. Nullable.'
        Department:
          type: string
          description: 'Department. MaxLength: 255. Nullable.'
        OrganizationTitle:
          type: string
          description: 'OrganizationTitle. MaxLength: 50. Nullable.'
        IsPrimary:
          type: boolean
          description: IsPrimary.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        Customer:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Customer
        Company:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Company
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerCompany
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.Customer:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        Key:
          type: string
          description: Key.
          format: guid
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        CustomerCodePrefix:
          type: string
          description: 'CustomerCodePrefix. MaxLength: 10. Nullable.'
        CustomerCode:
          type: string
          description: 'CustomerCode. MaxLength: 50. Nullable.'
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        EmailAddress:
          type: string
          description: 'EmailAddress. MaxLength: 255. Nullable.'
        SocialSecurityNumber:
          type: string
          description: 'SocialSecurityNumber. MaxLength: 50. Nullable.'
        Title:
          type: string
          description: 'Title. MaxLength: 10. Nullable.'
        FirstName:
          type: string
          description: 'FirstName. MaxLength: 50. Nullable.'
        MiddleName:
          type: string
          description: 'MiddleName. MaxLength: 50. Nullable.'
        LastName:
          type: string
          description: 'LastName. MaxLength: 50. Nullable.'
        Suffix:
          type: string
          description: 'Suffix. MaxLength: 10. Nullable.'
        PhoneNumber:
          type: string
          description: 'PhoneNumber. MaxLength: 50. Nullable.'
        CellPhoneNumber:
          type: string
          description: 'CellPhoneNumber. MaxLength: 50. Nullable.'
        ReferId:
          type: integer
          description: ReferId. Nullable.
          format: int32
        ReferUrl:
          type: string
          description: 'ReferUrl. MaxLength: 255. Nullable.'
        UseBillingAddressAsShippingAddress:
          type: boolean
          description: UseBillingAddressAsShippingAddress.
        OldCustomerNoPrefix:
          type: string
          description: 'OldCustomerNoPrefix. MaxLength: 10. Nullable.'
        OldCustomerNo:
          type: string
          description: 'OldCustomerNo. MaxLength: 50. Nullable.'
        ReplacementCustomerId:
          type: integer
          description: ReplacementCustomerId. Nullable.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        LastOrderDate:
          type: string
          description: LastOrderDate. Nullable.
          format: date-time
        NormalizedSocialSecurityNumber:
          type: string
          description: 'NormalizedSocialSecurityNumber. MaxLength: 50. Nullable.'
        ApplicationId:
          type: integer
          description: ApplicationId. Nullable.
          format: int32
        IsForgotten:
          type: boolean
          description: IsForgotten.
        ForgottenBy:
          type: integer
          description: ForgottenBy. Nullable.
          format: int32
        ForgottenDate:
          type: string
          description: ForgottenDate. Nullable.
          format: date-time
        StoppedDate:
          type: string
          description: StoppedDate. Nullable.
          format: date-time
        StoppedBy:
          type: integer
          description: StoppedBy. Nullable.
          format: int32
        CrmId:
          type: string
          description: 'CrmId. MaxLength: 50. Nullable.'
        Account:
          type: array
          description: Account.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Account
        Companies:
          type: array
          description: Companies.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerCompany
        Addresses:
          type: array
          description: Addresses.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerAddress
        Orders:
          type: array
          description: Orders.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerOrder
        Infos:
          type: array
          description: Infos.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerInfo
        Flags:
          type: array
          description: Flags.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerFlag
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.Customer
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.Company:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        Key:
          type: string
          description: Key.
          format: guid
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        CompanyCodePrefix:
          type: string
          description: 'CompanyCodePrefix. MaxLength: 10. Nullable.'
        CompanyCode:
          type: string
          description: 'CompanyCode. MaxLength: 50. Nullable.'
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        LogoPath:
          type: string
          description: 'LogoPath. MaxLength: 255. Nullable.'
        OrganizationNo:
          type: string
          description: 'OrganizationNo. MaxLength: 50. Nullable.'
        Name:
          type: string
          description: 'Name. MaxLength: 100. Nullable.'
        EmailAddress:
          type: string
          description: 'EmailAddress. MaxLength: 255. Nullable.'
        PhoneNumber:
          type: string
          description: 'PhoneNumber. MaxLength: 50. Nullable.'
        FaxNumber:
          type: string
          description: 'FaxNumber. MaxLength: 50. Nullable.'
        ParentCompanyId:
          type: integer
          description: ParentCompanyId. Nullable.
          format: int32
        ReferId:
          type: integer
          description: ReferId. Nullable.
          format: int32
        ReferUrl:
          type: string
          description: 'ReferUrl. MaxLength: 255. Nullable.'
        UseBillingAddressAsShippingAddress:
          type: boolean
          description: UseBillingAddressAsShippingAddress.
        OldCompanyCodePrefix:
          type: string
          description: 'OldCompanyCodePrefix. MaxLength: 10. Nullable.'
        OldCompanyCode:
          type: string
          description: 'OldCompanyCode. MaxLength: 50. Nullable.'
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        LogoKey:
          type: string
          description: LogoKey. Nullable.
          format: guid
        NormalizedOrganizationNo:
          type: string
          description: 'NormalizedOrganizationNo. MaxLength: 50. Nullable.'
        ApplicationId:
          type: integer
          description: ApplicationId. Nullable.
          format: int32
        VatNo:
          type: string
          description: 'VatNo. MaxLength: 50. Nullable.'
        Customers:
          type: array
          description: Customers.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerCompany
        Orders:
          type: array
          description: Orders.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerOrder
        Infos:
          type: array
          description: Infos.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyInfo
        Addresses:
          type: array
          description: Addresses.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyAddress
        Flags:
          type: array
          description: Flags.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyFlag
        PriceLists:
          type: array
          description: PriceLists.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyPriceList
        Discounts:
          type: array
          description: Discounts.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyDiscount
        DeliveryMethods:
          type: array
          description: DeliveryMethods.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyDeliveryMethod
        PaymentMethods:
          type: array
          description: PaymentMethods.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.CompanyPaymentMethod
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.Company
    Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerOrder:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId.
          format: int32
        QuotationId:
          type: integer
          description: QuotationId. Nullable.
          format: int32
        OrderNo:
          type: string
          description: 'OrderNo. MaxLength: 50. Nullable.'
        OrderDate:
          type: string
          description: OrderDate.
          format: date-time
        BuyerCompanyCode:
          type: string
          description: 'BuyerCompanyCode. MaxLength: 50. Nullable.'
        BuyerCompanyId:
          type: integer
          description: BuyerCompanyId. Nullable.
          format: int32
        BuyerCustomerCode:
          type: string
          description: 'BuyerCustomerCode. MaxLength: 50. Nullable.'
        BuyerCustomerId:
          type: integer
          description: BuyerCustomerId. Nullable.
          format: int32
        PayerCompanyCode:
          type: string
          description: 'PayerCompanyCode. MaxLength: 50. Nullable.'
        PayerCompanyId:
          type: integer
          description: PayerCompanyId. Nullable.
          format: int32
        PayerCustomerCode:
          type: string
          description: 'PayerCustomerCode. MaxLength: 50. Nullable.'
        PayerCustomerId:
          type: integer
          description: PayerCustomerId. Nullable.
          format: int32
        ResellerCompanyCode:
          type: string
          description: 'ResellerCompanyCode. MaxLength: 50. Nullable.'
        ResellerCompanyId:
          type: integer
          description: ResellerCompanyId. Nullable.
          format: int32
        ResellerCustomerCode:
          type: string
          description: 'ResellerCustomerCode. MaxLength: 50. Nullable.'
        ResellerCustomerId:
          type: integer
          description: ResellerCustomerId. Nullable.
          format: int32
        GroupCode:
          type: string
          description: 'GroupCode. MaxLength: 50. Nullable.'
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        SalesRepContactId:
          type: integer
          description: SalesRepContactId. Nullable.
          format: int32
        Source:
          type: string
          description: 'Source. MaxLength: 255. Nullable.'
        DeliveryTerms:
          type: string
          description: 'DeliveryTerms. MaxLength: 10. Nullable.'
        DeliveryMode:
          type: string
          description: 'DeliveryMode. MaxLength: 50. Nullable.'
        DeliveryDate:
          type: string
          description: DeliveryDate. Nullable.
          format: date-time
        IsPartDelivery:
          type: boolean
          description: IsPartDelivery.
        PaymentTerms:
          type: string
          description: 'PaymentTerms. MaxLength: 100. Nullable.'
        CurrencyId:
          type: integer
          description: CurrencyId.
          format: int32
        VatRate:
          type: number
          description: VatRate.
          format: decimal
        CashDiscount:
          type: number
          description: CashDiscount.
          format: decimal
        LineDiscount:
          type: number
          description: LineDiscount.
          format: decimal
        FreightCost:
          type: number
          description: FreightCost.
          format: decimal
        OrderFee:
          type: number
          description: OrderFee.
          format: decimal
        DeliveryAttention:
          type: string
          description: 'DeliveryAttention. MaxLength: 100. Nullable.'
        DeliveryCareOf:
          type: string
          description: 'DeliveryCareOf. MaxLength: 100. Nullable.'
        DeliveryAddressLine1:
          type: string
          description: 'DeliveryAddressLine1. MaxLength: 255. Nullable.'
        DeliveryAddressLine2:
          type: string
          description: 'DeliveryAddressLine2. MaxLength: 255. Nullable.'
        DeliveryZipCode:
          type: string
          description: 'DeliveryZipCode. MaxLength: 50. Nullable.'
        DeliveryCity:
          type: string
          description: 'DeliveryCity. MaxLength: 50. Nullable.'
        DeliveryRegion:
          type: string
          description: 'DeliveryRegion. MaxLength: 100. Nullable.'
        DeliveryCountryId:
          type: integer
          description: DeliveryCountryId. Nullable.
          format: int32
        LedgerAccount:
          type: string
          description: 'LedgerAccount. MaxLength: 50. Nullable.'
        Department:
          type: string
          description: 'Department. MaxLength: 10. Nullable.'
        Centre:
          type: string
          description: 'Centre. MaxLength: 10. Nullable.'
        ExternalPurchaseNo:
          type: string
          description: 'ExternalPurchaseNo. MaxLength: 50. Nullable.'
        SalesCode:
          type: string
          description: 'SalesCode. MaxLength: 50. Nullable.'
        DeliveryMark:
          type: string
          description: 'DeliveryMark. MaxLength: 255. Nullable.'
        InvoiceMark:
          type: string
          description: 'InvoiceMark. MaxLength: 255. Nullable.'
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        PayerCustomerInfoId:
          type: string
          description: PayerCustomerInfoId. Nullable.
        EstimatedDeliveryTime:
          type: string
          description: EstimatedDeliveryTime. Nullable.
          format: date-time
        DeliveryTime:
          type: string
          description: DeliveryTime. Nullable.
          format: date-time
        BuyerCustomerInfoId:
          type: string
          description: BuyerCustomerInfoId. Nullable.
        ShipToCustomerInfoId:
          type: string
          description: ShipToCustomerInfoId. Nullable.
        ExternalRef:
          type: string
          description: 'ExternalRef. MaxLength: 50. Nullable.'
        PaymentMethodId:
          type: integer
          description: PaymentMethodId. Nullable.
          format: int32
        DeliveryMethodId:
          type: integer
          description: DeliveryMethodId. Nullable.
          format: int32
        OrderTypeId:
          type: integer
          description: OrderTypeId. Nullable.
          format: int32
        IsForgotten:
          type: boolean
          description: IsForgotten.
        ForgottenBy:
          type: integer
          description: ForgottenBy. Nullable.
          format: int32
        ForgottenDate:
          type: string
          description: ForgottenDate. Nullable.
          format: date-time
        DropPointCustomerInfoId:
          type: string
          description: DropPointCustomerInfoId. Nullable.
        DropPointCode:
          type: string
          description: 'DropPointCode. MaxLength: 50. Nullable.'
        Year:
          type: integer
          description: Year. Nullable.
          format: int32
        Week:
          type: integer
          description: Week. Nullable.
          format: int32
        Company:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Company
        Customer:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.CustomerModel.Customer
      format: Enferno.Storm.Query.Api.DataContexts.CustomerModel.CustomerOrder
x-original-swagger-version: '2.0'
