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:
  /Orders/OrderItems:
    get:
      tags:
        - Orders
      summary: Get OrderItem
      description: Get OrderItem
      operationId: OrderItems
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItem
        '500':
          description: Internal Server Error
          content: {}
  /Orders/Orders:
    get:
      tags:
        - Orders
      summary: Get Order
      description: Get Order
      operationId: Orders
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.Order
        '500':
          description: Internal Server Error
          content: {}
  /Orders/Quotations:
    get:
      tags:
        - Orders
      summary: Get Quotation
      description: Get Quotation
      operationId: Quotations
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.Quotation
        '500':
          description: Internal Server Error
          content: {}
  /Orders/PurchaseOrders:
    get:
      tags:
        - Orders
      summary: Get PurchaseOrder
      description: Get PurchaseOrder
      operationId: PurchaseOrders
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.PurchaseOrder
        '500':
          description: Internal Server Error
          content: {}
  /Orders/DeliveryNotes:
    get:
      tags:
        - Orders
      summary: Get DeliveryNote
      description: Get DeliveryNote
      operationId: DeliveryNotes
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.DeliveryNote
        '500':
          description: Internal Server Error
          content: {}
  /Orders/Invoices:
    get:
      tags:
        - Orders
      summary: Get Invoice
      description: Get Invoice
      operationId: Invoices
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.Invoice
        '500':
          description: Internal Server Error
          content: {}
  /Orders/WarehouseTransactions:
    get:
      tags:
        - Orders
      summary: Get WarehouseTransaction
      description: Get WarehouseTransaction
      operationId: WarehouseTransactions
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.WarehouseTransaction
        '500':
          description: Internal Server Error
          content: {}
components:
  schemas:
    Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderInfo:
      type: object
      properties:
        OrderId:
          type: string
          description: OrderId. Key property.
        TypeId:
          type: integer
          description: TypeId. Key property.
          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.OrderModel.OrderInfo
    Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItemInfo:
      type: object
      properties:
        OrderItemId:
          type: string
          description: OrderItemId. Key property.
        TypeId:
          type: integer
          description: TypeId. Key property.
          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.OrderModel.OrderItemInfo
    Enferno.Storm.Query.Api.DataContexts.OrderModel.QuotationInfo:
      type: object
      properties:
        QuotationId:
          type: integer
          description: QuotationId. Key property.
          format: int32
        TypeId:
          type: integer
          description: TypeId. Key property.
          format: int32
        Id:
          type: string
          description: Id.
        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.OrderModel.QuotationInfo
    Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderCustomerInfo:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        FirstName:
          type: string
          description: 'FirstName. MaxLength: 50. Nullable.'
        LastName:
          type: string
          description: 'LastName. MaxLength: 50. Nullable.'
        EmailAddress:
          type: string
          description: 'EmailAddress. MaxLength: 255. Nullable.'
        PhoneNumber:
          type: string
          description: 'PhoneNumber. MaxLength: 50. Nullable.'
        CellPhoneNumber:
          type: string
          description: 'CellPhoneNumber. MaxLength: 50. Nullable.'
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Rowid:
          type: string
          description: 'Rowid. MaxLength: 8. Nullable.'
        CompanyName:
          type: string
          description: 'CompanyName. MaxLength: 100. Nullable.'
        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
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        ShippingPhoneNumber:
          type: string
          description: 'ShippingPhoneNumber. MaxLength: 50. Nullable.'
        Gln:
          type: string
          description: 'Gln. MaxLength: 50. Nullable.'
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderCustomerInfo
    Enferno.Storm.Query.Api.DataContexts.OrderModel.WarehouseTransactionItem:
      type: object
      properties:
        WarehouseTransactionId:
          type: string
          description: WarehouseTransactionId.
        Id:
          type: string
          description: Id. Key property.
        LineNumber:
          type: number
          description: LineNumber.
          format: decimal
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        Qty:
          type: number
          description: Qty.
          format: decimal
        Amount:
          type: number
          description: Amount.
          format: decimal
        RemainingQty:
          type: number
          description: RemainingQty. Nullable.
          format: decimal
        RemainingAmount:
          type: number
          description: RemainingAmount. Nullable.
          format: decimal
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.WarehouseTransactionItem
    Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItem:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        OrderId:
          type: string
          description: OrderId.
        LineNumber:
          type: number
          description: LineNumber.
          format: decimal
        ParentLineNumber:
          type: number
          description: ParentLineNumber. Nullable.
          format: decimal
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        ExternalPartNo:
          type: string
          description: 'ExternalPartNo. MaxLength: 50. Nullable.'
        ProductName:
          type: string
          description: 'ProductName. MaxLength: 255. Nullable.'
        StockUnitOfMeasurementCount:
          type: number
          description: StockUnitOfMeasurementCount.
          format: decimal
        PriceUnitOfMeasurementCount:
          type: number
          description: PriceUnitOfMeasurementCount.
          format: decimal
        WarehouseId:
          type: integer
          description: WarehouseId. Nullable.
          format: int32
        LocationId:
          type: integer
          description: LocationId. Nullable.
          format: int32
        QtyOrdered:
          type: number
          description: QtyOrdered.
          format: decimal
        CurrencyId:
          type: integer
          description: CurrencyId.
          format: int32
        VatRate:
          type: number
          description: VatRate.
          format: decimal
        CostUnit:
          type: number
          description: CostUnit.
          format: decimal
        PriceSale:
          type: number
          description: PriceSale.
          format: decimal
        DiscountPercentage:
          type: number
          description: DiscountPercentage.
          format: decimal
        DiscountAmount:
          type: number
          description: DiscountAmount.
          format: decimal
        LineAmount:
          type: number
          description: LineAmount.
          format: decimal
        DeliveryMode:
          type: string
          description: 'DeliveryMode. MaxLength: 50. Nullable.'
        IsPartDelivery:
          type: boolean
          description: IsPartDelivery.
        ExpectedDeliveryDate:
          type: string
          description: ExpectedDeliveryDate. Nullable.
          format: date-time
        ConfirmedDeliveryDate:
          type: string
          description: ConfirmedDeliveryDate. Nullable.
          format: date-time
        SalesRepContactId:
          type: integer
          description: SalesRepContactId. 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.'
        TransId:
          type: string
          description: TransId.
        ExternalStatusText:
          type: string
          description: 'ExternalStatusText. 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
        LineNumberString:
          type: string
          description: 'LineNumberString. MaxLength: 50. Nullable.'
        PriceRecommended:
          type: number
          description: PriceRecommended. Nullable.
          format: decimal
        PriceCatalog:
          type: number
          description: PriceCatalog. Nullable.
          format: decimal
        PriceStandard:
          type: number
          description: PriceStandard. Nullable.
          format: decimal
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        InvoiceItem:
          type: array
          description: InvoiceItem.
          items:
            $ref: '#/components/schemas/OrderService.InvoiceItem'
        Infos:
          type: array
          description: Infos.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItemInfo
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItem
    Enferno.Storm.Query.Api.DataContexts.OrderModel.Order:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId. Nullable.
          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.'
        Quotation:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.Quotation
        Items:
          type: array
          description: Items.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItem
        Infos:
          type: array
          description: Infos.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderInfo
        Payer:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderCustomerInfo
        Buyer:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderCustomerInfo
        ShipTo:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderCustomerInfo
        DropPoint:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderCustomerInfo
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.Order
    Enferno.Storm.Query.Api.DataContexts.OrderModel.Quotation:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId.
          format: int32
        SalesContactId:
          type: integer
          description: SalesContactId. Nullable.
          format: int32
        BuyerAccountKey:
          type: string
          description: BuyerAccountKey.
          format: guid
        BuyerAccountId:
          type: integer
          description: BuyerAccountId. Nullable.
          format: int32
        PayerAccountId:
          type: integer
          description: PayerAccountId. Nullable.
          format: int32
        PayerAccountKey:
          type: string
          description: PayerAccountKey. Nullable.
          format: guid
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        IsPrimary:
          type: boolean
          description: IsPrimary.
        Name:
          type: string
          description: 'Name. MaxLength: 50. Nullable.'
        ValidTo:
          type: string
          description: ValidTo. Nullable.
          format: date-time
        IsDeletable:
          type: boolean
          description: IsDeletable.
        DeleteDate:
          type: string
          description: DeleteDate. Nullable.
          format: date-time
        Comment:
          type: string
          description: 'Comment. MaxLength: 250. Nullable.'
        RejectionReasonId:
          type: integer
          description: RejectionReasonId. Nullable.
          format: int32
        Modified:
          type: string
          description: Modified. Nullable.
          format: date-time
        Browsed:
          type: string
          description: Browsed. Nullable.
          format: date-time
        PaymentMethodId:
          type: integer
          description: PaymentMethodId. Nullable.
          format: int32
        DeliveryMethodId:
          type: integer
          description: DeliveryMethodId. Nullable.
          format: int32
        IpAddress:
          type: string
          description: 'IpAddress. MaxLength: 50. Nullable.'
        PayerFirstName:
          type: string
          description: 'PayerFirstName. MaxLength: 50. Nullable.'
        PayerMiddleName:
          type: string
          description: 'PayerMiddleName. MaxLength: 50. Nullable.'
        PayerLastName:
          type: string
          description: 'PayerLastName. MaxLength: 50. Nullable.'
        PayerCellPhoneNumber:
          type: string
          description: 'PayerCellPhoneNumber. MaxLength: 50. Nullable.'
        PayerEmail:
          type: string
          description: 'PayerEmail. MaxLength: 255. Nullable.'
        CurrencyId:
          type: integer
          description: CurrencyId.
          format: int32
        ResellerCustomerId:
          type: integer
          description: ResellerCustomerId. Nullable.
          format: int32
        IsLocked:
          type: boolean
          description: IsLocked. Nullable.
        DiscountCode:
          type: string
          description: DiscountCode. Nullable.
        IsActive:
          type: boolean
          description: IsActive. Nullable.
        ParentQuotationId:
          type: integer
          description: ParentQuotationId. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        BuyerCompanyId:
          type: integer
          description: BuyerCompanyId. Nullable.
          format: int32
        PayerCompanyId:
          type: integer
          description: PayerCompanyId. Nullable.
          format: int32
        HasPaymentTransaction:
          type: boolean
          description: HasPaymentTransaction. Nullable.
        BuyerFirstName:
          type: string
          description: 'BuyerFirstName. MaxLength: 50. Nullable.'
        BuyerMiddleName:
          type: string
          description: 'BuyerMiddleName. MaxLength: 50. Nullable.'
        BuyerLastName:
          type: string
          description: 'BuyerLastName. MaxLength: 50. Nullable.'
        BuyerCellPhoneNumber:
          type: string
          description: 'BuyerCellPhoneNumber. MaxLength: 50. Nullable.'
        BuyerEmail:
          type: string
          description: 'BuyerEmail. MaxLength: 255. Nullable.'
        CustomerOrderReference:
          type: string
          description: 'CustomerOrderReference. MaxLength: 50. Nullable.'
        Created:
          type: string
          description: Created. Nullable.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy. Nullable.
          format: int32
        ReferId:
          type: integer
          description: ReferId. Nullable.
          format: int32
        ReferUrl:
          type: string
          description: 'ReferUrl. MaxLength: 255. Nullable.'
        PayerSocialSecurityNumber:
          type: string
          description: 'PayerSocialSecurityNumber. MaxLength: 50. Nullable.'
        BuyerCustomerId:
          type: integer
          description: BuyerCustomerId. Nullable.
          format: int32
        PayerCustomerId:
          type: integer
          description: PayerCustomerId. Nullable.
          format: int32
        ShipToCustomerId:
          type: integer
          description: ShipToCustomerId. Nullable.
          format: int32
        RowId:
          type: string
          description: 'RowId. MaxLength: 8. Nullable.'
        PickupCode:
          type: string
          description: 'PickupCode. MaxLength: 50. Nullable.'
        AttestedBy:
          type: integer
          description: AttestedBy. Nullable.
          format: int32
        ModifiedBy:
          type: integer
          description: ModifiedBy. Nullable.
          format: int32
        TypeId:
          type: integer
          description: TypeId. Nullable.
          format: int32
        DoHold:
          type: boolean
          description: DoHold.
        DeliveryMethodCode:
          type: string
          description: 'DeliveryMethodCode. MaxLength: 50. Nullable.'
        FreightPrice:
          type: number
          description: FreightPrice. Nullable.
          format: decimal
        Infos:
          type: array
          description: Infos.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.QuotationInfo
        Items:
          type: array
          description: Items.
          items:
            $ref: '#/components/schemas/OrderService.QuotationItem'
        Addresses:
          type: array
          description: Addresses.
          items:
            $ref: '#/components/schemas/OrderService.QuotationCustomerAddress'
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.Quotation
    Enferno.Storm.Query.Api.DataContexts.OrderModel.PurchaseOrder:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId. Nullable.
          format: int32
        PurchaseOrderNo:
          type: string
          description: 'PurchaseOrderNo. MaxLength: 50. Nullable.'
        PurchaseOrderDate:
          type: string
          description: PurchaseOrderDate.
          format: date-time
        SupplierId:
          type: integer
          description: SupplierId. Nullable.
          format: int32
        SupplierCode:
          type: string
          description: 'SupplierCode. MaxLength: 50. Nullable.'
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        PurchaseRepContactId:
          type: integer
          description: PurchaseRepContactId. Nullable.
          format: int32
        PurchaseRepContactCode:
          type: string
          description: 'PurchaseRepContactCode. MaxLength: 50. Nullable.'
        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. Nullable.
          format: int32
        VatCodeId:
          type: integer
          description: VatCodeId. Nullable.
          format: int32
        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.'
        Comment:
          type: string
          description: Comment. Nullable.
        SellToCustomerCode:
          type: string
          description: 'SellToCustomerCode. MaxLength: 50. Nullable.'
        SellToSupplierCustomerCode:
          type: string
          description: 'SellToSupplierCustomerCode. MaxLength: 50. Nullable.'
        SellToAddressId:
          type: string
          description: SellToAddressId. Nullable.
        BillToCustomerCode:
          type: string
          description: 'BillToCustomerCode. MaxLength: 50. Nullable.'
        BillToSupplierCustomerCode:
          type: string
          description: 'BillToSupplierCustomerCode. MaxLength: 50. Nullable.'
        BillToAddressId:
          type: string
          description: BillToAddressId. Nullable.
        ShipToCustomerCode:
          type: string
          description: 'ShipToCustomerCode. MaxLength: 50. Nullable.'
        ShipToSupplierCustomerCode:
          type: string
          description: 'ShipToSupplierCustomerCode. MaxLength: 50. Nullable.'
        ShipToAddressId:
          type: string
          description: ShipToAddressId. Nullable.
        ShipToEmail:
          type: string
          description: 'ShipToEmail. MaxLength: 255. Nullable.'
        ShipToPhone:
          type: string
          description: 'ShipToPhone. 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
        RowId:
          type: string
          description: 'RowId. MaxLength: 8. Nullable.'
        BillToCustomerInfoId:
          type: string
          description: BillToCustomerInfoId. Nullable.
        CurrencyCode:
          type: string
          description: 'CurrencyCode. MaxLength: 3. Nullable.'
        FreightTerms:
          type: string
          description: 'FreightTerms. MaxLength: 255. Nullable.'
        InternalComment:
          type: string
          description: 'InternalComment. MaxLength: 255. Nullable.'
        SupplierStatusId:
          type: integer
          description: SupplierStatusId. 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
        Items:
          type: array
          description: Items.
          items:
            $ref: '#/components/schemas/OrderService.PurchaseOrderItem'
        ShipToAddress:
          $ref: '#/components/schemas/OrderService.Address'
        SellToAddress:
          $ref: '#/components/schemas/OrderService.Address'
        BillToAddress:
          $ref: '#/components/schemas/OrderService.Address'
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.PurchaseOrder
    Enferno.Storm.Query.Api.DataContexts.OrderModel.DeliveryNote:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        NoteNo:
          type: string
          description: 'NoteNo. MaxLength: 50. Nullable.'
        SupplierId:
          type: integer
          description: SupplierId. Nullable.
          format: int32
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        ReferenceOrderId:
          type: string
          description: ReferenceOrderId.
        BuyerCompanyId:
          type: integer
          description: BuyerCompanyId. Nullable.
          format: int32
        BuyerCompanyCode:
          type: string
          description: 'BuyerCompanyCode. MaxLength: 50. Nullable.'
        BuyerCustomerId:
          type: integer
          description: BuyerCustomerId. Nullable.
          format: int32
        BuyerCustomerCode:
          type: string
          description: 'BuyerCustomerCode. MaxLength: 50. Nullable.'
        PayerCompanyId:
          type: integer
          description: PayerCompanyId. Nullable.
          format: int32
        PayerCompanyCode:
          type: string
          description: 'PayerCompanyCode. MaxLength: 50. Nullable.'
        PayerCustomerId:
          type: integer
          description: PayerCustomerId. Nullable.
          format: int32
        PayerCustomerCode:
          type: string
          description: 'PayerCustomerCode. MaxLength: 50. Nullable.'
        ResellerCompanyId:
          type: integer
          description: ResellerCompanyId. Nullable.
          format: int32
        ResellerCompanyCode:
          type: string
          description: 'ResellerCompanyCode. MaxLength: 50. Nullable.'
        ResellerCustomerId:
          type: integer
          description: ResellerCustomerId. Nullable.
          format: int32
        ResellerCustomerCode:
          type: string
          description: 'ResellerCustomerCode. MaxLength: 50. Nullable.'
        GroupCode:
          type: string
          description: 'GroupCode. MaxLength: 50. Nullable.'
        DeliveryName:
          type: string
          description: 'DeliveryName. MaxLength: 100. Nullable.'
        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
        DeliveryDate:
          type: string
          description: DeliveryDate. Nullable.
          format: date-time
        Quantity:
          type: number
          description: Quantity. Nullable.
          format: decimal
        Volume:
          type: number
          description: Volume. Nullable.
          format: decimal
        Weight:
          type: number
          description: Weight. Nullable.
          format: decimal
        IsPrinted:
          type: boolean
          description: IsPrinted.
        DeliveryTerms:
          type: string
          description: 'DeliveryTerms. MaxLength: 10. Nullable.'
        DeliveryMode:
          type: string
          description: 'DeliveryMode. MaxLength: 50. Nullable.'
        Source:
          type: string
          description: 'Source. MaxLength: 255. Nullable.'
        DeliveryMark:
          type: string
          description: 'DeliveryMark. MaxLength: 255. Nullable.'
        NoteText:
          type: string
          description: 'NoteText. MaxLength: 255. Nullable.'
        Department:
          type: string
          description: 'Department. MaxLength: 10. Nullable.'
        Centre:
          type: string
          description: 'Centre. MaxLength: 10. Nullable.'
        ShippingNo:
          type: string
          description: 'ShippingNo. 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
        DeliveryAddressId:
          type: string
          description: DeliveryAddressId. Nullable.
        DivisionCode:
          type: string
          description: 'DivisionCode. MaxLength: 50. Nullable.'
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        IsForgotten:
          type: boolean
          description: IsForgotten.
        ForgottenBy:
          type: integer
          description: ForgottenBy. Nullable.
          format: int32
        ForgottenDate:
          type: string
          description: ForgottenDate. Nullable.
          format: date-time
        Items:
          type: array
          description: Items.
          items:
            $ref: '#/components/schemas/OrderService.DeliveryNoteItem'
        Packages:
          type: array
          description: Packages.
          items:
            $ref: '#/components/schemas/OrderService.DeliveryNotePackage'
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.DeliveryNote
    Enferno.Storm.Query.Api.DataContexts.OrderModel.Invoice:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        InvoiceNo:
          type: string
          description: 'InvoiceNo. MaxLength: 50. Nullable.'
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        ReferenceOrderId:
          type: string
          description: ReferenceOrderId.
        BuyerCompanyId:
          type: integer
          description: BuyerCompanyId. Nullable.
          format: int32
        BuyerCustomerId:
          type: integer
          description: BuyerCustomerId. Nullable.
          format: int32
        PayerCompanyId:
          type: integer
          description: PayerCompanyId. Nullable.
          format: int32
        PayerCustomerId:
          type: integer
          description: PayerCustomerId. Nullable.
          format: int32
        ResellerCompanyId:
          type: integer
          description: ResellerCompanyId. Nullable.
          format: int32
        ResellerCustomerId:
          type: integer
          description: ResellerCustomerId. Nullable.
          format: int32
        GroupCode:
          type: string
          description: 'GroupCode. MaxLength: 50. Nullable.'
        DeliveryDate:
          type: string
          description: DeliveryDate. Nullable.
          format: date-time
        InvoiceDate:
          type: string
          description: InvoiceDate.
          format: date-time
        InvoiceDueDate:
          type: string
          description: InvoiceDueDate. Nullable.
          format: date-time
        SalesRepContactId:
          type: integer
          description: SalesRepContactId. Nullable.
          format: int32
        Source:
          type: string
          description: 'Source. MaxLength: 255. Nullable.'
        Quantity:
          type: number
          description: Quantity.
          format: decimal
        Volume:
          type: number
          description: Volume. Nullable.
          format: decimal
        Weight:
          type: number
          description: Weight. Nullable.
          format: decimal
        CurrencyId:
          type: integer
          description: CurrencyId.
          format: int32
        CurrencyRate:
          type: number
          description: CurrencyRate.
          format: decimal
        CashDiscount:
          type: number
          description: CashDiscount.
          format: decimal
        CashDiscountDate:
          type: string
          description: CashDiscountDate. Nullable.
          format: date-time
        SumLineDiscount:
          type: number
          description: SumLineDiscount.
          format: decimal
        FreightCost:
          type: number
          description: FreightCost.
          format: decimal
        InvoiceFee:
          type: number
          description: InvoiceFee.
          format: decimal
        CostValue:
          type: number
          description: CostValue.
          format: decimal
        SalesBalance:
          type: number
          description: SalesBalance.
          format: decimal
        InvoiceAmount:
          type: number
          description: InvoiceAmount.
          format: decimal
        InvoiceRoundOff:
          type: number
          description: InvoiceRoundOff.
          format: decimal
        VatDutiable1:
          type: number
          description: VatDutiable1.
          format: decimal
        VatDutiable2:
          type: number
          description: VatDutiable2.
          format: decimal
        VatDutiable3:
          type: number
          description: VatDutiable3.
          format: decimal
        Vat1:
          type: number
          description: Vat1.
          format: decimal
        Vat2:
          type: number
          description: Vat2.
          format: decimal
        Vat3:
          type: number
          description: Vat3.
          format: decimal
        VatRoundOff:
          type: number
          description: VatRoundOff.
          format: decimal
        Vat:
          type: number
          description: Vat.
          format: decimal
        InvoiceName:
          type: string
          description: 'InvoiceName. MaxLength: 255. Nullable.'
        InvoiceAttention:
          type: string
          description: 'InvoiceAttention. MaxLength: 100. Nullable.'
        InvoiceCareOf:
          type: string
          description: 'InvoiceCareOf. MaxLength: 100. Nullable.'
        InvoiceAddressLine1:
          type: string
          description: 'InvoiceAddressLine1. MaxLength: 255. Nullable.'
        InvoiceAddressLine2:
          type: string
          description: 'InvoiceAddressLine2. MaxLength: 255. Nullable.'
        InvoiceZipCode:
          type: string
          description: 'InvoiceZipCode. MaxLength: 50. Nullable.'
        InvoiceCity:
          type: string
          description: 'InvoiceCity. MaxLength: 50. Nullable.'
        InvoiceRegion:
          type: string
          description: 'InvoiceRegion. MaxLength: 100. Nullable.'
        InvoiceCountryId:
          type: integer
          description: InvoiceCountryId. Nullable.
          format: int32
        LedgerVoucher:
          type: string
          description: 'LedgerVoucher. MaxLength: 50. Nullable.'
        Department:
          type: string
          description: 'Department. MaxLength: 10. Nullable.'
        Centre:
          type: string
          description: 'Centre. MaxLength: 10. Nullable.'
        NoteText:
          type: string
          description: 'NoteText. MaxLength: 255. Nullable.'
        LastInvoiceForOrder:
          type: boolean
          description: LastInvoiceForOrder. 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
        InvoiceAddressId:
          type: string
          description: InvoiceAddressId. Nullable.
        ReferenceNoPsp:
          type: string
          description: 'ReferenceNoPsp. MaxLength: 50. Nullable.'
        PaymentMethodId:
          type: integer
          description: PaymentMethodId. Nullable.
          format: int32
        DeliveryMethodId:
          type: integer
          description: DeliveryMethodId. Nullable.
          format: int32
        IsDebit:
          type: boolean
          description: IsDebit. Nullable.
        CreditedInvoiceId:
          type: string
          description: CreditedInvoiceId. Nullable.
        Comment:
          type: string
          description: 'Comment. MaxLength: 250. Nullable.'
        IsForgotten:
          type: boolean
          description: IsForgotten.
        ForgottenBy:
          type: integer
          description: ForgottenBy. Nullable.
          format: int32
        ForgottenDate:
          type: string
          description: ForgottenDate. Nullable.
          format: date-time
        AggregatedInvoiceCode:
          type: string
          description: 'AggregatedInvoiceCode. MaxLength: 100. Nullable.'
        PaymentMethodCode:
          type: string
          description: 'PaymentMethodCode. MaxLength: 50. Nullable.'
        PaymentMethodName:
          type: string
          description: 'PaymentMethodName. MaxLength: 50. Nullable.'
        Items:
          type: array
          description: Items.
          items:
            $ref: '#/components/schemas/OrderService.InvoiceItem'
        Address:
          $ref: '#/components/schemas/OrderService.Address'
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.Invoice
    Enferno.Storm.Query.Api.DataContexts.OrderModel.WarehouseTransaction:
      type: object
      properties:
        TransactionNo:
          type: string
          description: 'TransactionNo. MaxLength: 50. Nullable.'
        Id:
          type: string
          description: Id. Key property.
        TransactionDate:
          type: string
          description: TransactionDate.
          format: date-time
        WarehouseCode:
          type: string
          description: 'WarehouseCode. MaxLength: 50. Nullable.'
        LocationCode:
          type: string
          description: 'LocationCode. MaxLength: 50. Nullable.'
        Type:
          type: string
          description: 'Type. MaxLength: 50. Nullable.'
        OrderNo:
          type: string
          description: 'OrderNo. MaxLength: 50. Nullable.'
        PurchaseOrderNo:
          type: string
          description: 'PurchaseOrderNo. MaxLength: 50. Nullable.'
        DeliveryNoteNo:
          type: string
          description: 'DeliveryNoteNo. MaxLength: 50. Nullable.'
        ExternalReference:
          type: string
          description: 'ExternalReference. MaxLength: 50. Nullable.'
        ReasonCode:
          type: string
          description: 'ReasonCode. MaxLength: 50. Nullable.'
        Comment:
          type: string
          description: 'Comment. MaxLength: 500. Nullable.'
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Items:
          type: array
          description: Items.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.WarehouseTransactionItem
      format: Enferno.Storm.Query.Api.DataContexts.OrderModel.WarehouseTransaction
    OrderService.InvoiceItem:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        InvoiceId:
          type: string
          description: InvoiceId.
        LineNumber:
          type: number
          description: LineNumber. Nullable.
          format: decimal
        StatusId:
          type: integer
          description: StatusId. Nullable.
          format: int32
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        ExternalPartNo:
          type: string
          description: 'ExternalPartNo. MaxLength: 50. Nullable.'
        ProductName:
          type: string
          description: 'ProductName. MaxLength: 255. Nullable.'
        StockUnitOfMeasurementCount:
          type: number
          description: StockUnitOfMeasurementCount.
          format: decimal
        PriceUnitOfMeasurementCount:
          type: number
          description: PriceUnitOfMeasurementCount.
          format: decimal
        WarehouseId:
          type: integer
          description: WarehouseId. Nullable.
          format: int32
        LocationId:
          type: integer
          description: LocationId. Nullable.
          format: int32
        Quantity:
          type: integer
          description: Quantity.
          format: int32
        CurrencyId:
          type: integer
          description: CurrencyId.
          format: int32
        VatRate:
          type: number
          description: VatRate.
          format: decimal
        CostUnit:
          type: number
          description: CostUnit.
          format: decimal
        PriceSale:
          type: number
          description: PriceSale.
          format: decimal
        DiscountPercentage:
          type: number
          description: DiscountPercentage.
          format: decimal
        DiscountAmount:
          type: number
          description: DiscountAmount.
          format: decimal
        LineAmount:
          type: number
          description: LineAmount.
          format: decimal
        DeliveryMode:
          type: string
          description: 'DeliveryMode. MaxLength: 50. Nullable.'
        IsPartDelivery:
          type: boolean
          description: IsPartDelivery.
        DeliveryDate:
          type: string
          description: DeliveryDate. Nullable.
          format: date-time
        SalesRepContactId:
          type: integer
          description: SalesRepContactId. 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.'
        TransId:
          type: string
          description: TransId.
        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
        OrderItemId:
          type: string
          description: OrderItemId. Nullable.
        PurchaseOrderItemId:
          type: string
          description: PurchaseOrderItemId. Nullable.
        LineNumberString:
          type: string
          description: 'LineNumberString. MaxLength: 50. Nullable.'
        PriceUnit:
          type: number
          description: PriceUnit. Nullable.
          format: decimal
        Quantity2:
          type: number
          description: Quantity2. Nullable.
          format: decimal
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        OrderItem:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.OrderModel.OrderItem
      format: OrderService.InvoiceItem
    OrderService.QuotationItem:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        QuotationId:
          type: integer
          description: QuotationId.
          format: int32
        LineNumber:
          type: integer
          description: LineNumber.
          format: int32
        CustomerLineCode:
          type: string
          description: 'CustomerLineCode. MaxLength: 50. Nullable.'
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        ProductNameWhenCreated:
          type: string
          description: 'ProductNameWhenCreated. MaxLength: 255. Nullable.'
        BundlePartno:
          type: string
          description: 'BundlePartno. MaxLength: 50. Nullable.'
        BundleTypeId:
          type: integer
          description: BundleTypeId. Nullable.
          format: int32
        Qty:
          type: integer
          description: Qty.
          format: int32
        OnHandWhenCreated:
          type: integer
          description: OnHandWhenCreated. Nullable.
          format: int32
        PriceSale:
          type: number
          description: PriceSale. Nullable.
          format: decimal
        PriceSaleWhenCreated:
          type: number
          description: PriceSaleWhenCreated. Nullable.
          format: decimal
        PriceListId:
          type: integer
          description: PriceListId.
          format: int32
        PatternId:
          type: integer
          description: PatternId. Nullable.
          format: int32
        VatCode:
          type: integer
          description: VatCode. Nullable.
          format: int32
        VatValue:
          type: number
          description: VatValue. Nullable.
          format: decimal
        PromotionIdSeed:
          type: string
          description: 'PromotionIdSeed. MaxLength: 50. Nullable.'
        CampaignId:
          type: integer
          description: CampaignId. Nullable.
          format: int32
        SearchString:
          type: string
          description: 'SearchString. MaxLength: 50. Nullable.'
        CategoryItemId:
          type: integer
          description: CategoryItemId. Nullable.
          format: int32
        ParentPartnoId:
          type: string
          description: 'ParentPartnoId. MaxLength: 50. Nullable.'
        ParentLineNumber:
          type: integer
          description: ParentLineNumber. Nullable.
          format: int32
        Comment:
          type: string
          description: 'Comment. MaxLength: 255. Nullable.'
        ExternalData:
          type: string
          description: ExternalData. Nullable.
        RefererId:
          type: integer
          description: RefererId. Nullable.
          format: int32
        RefererUrl:
          type: string
          description: 'RefererUrl. MaxLength: 255. Nullable.'
        PriceReseller:
          type: number
          description: PriceReseller. Nullable.
          format: decimal
        IsLocked:
          type: boolean
          description: IsLocked. Nullable.
        TotalPriceSaleExVat:
          type: number
          description: TotalPriceSaleExVat. Nullable.
          format: decimal
        TotalPriceSaleIncVat:
          type: number
          description: TotalPriceSaleIncVat. Nullable.
          format: decimal
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy. Nullable.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        ExpectedDeliveryDate:
          type: string
          description: ExpectedDeliveryDate. Nullable.
          format: date-time
        RequirementPromotionIdSeed:
          type: string
          description: 'RequirementPromotionIdSeed. MaxLength: 255. Nullable.'
        IsPriceManual:
          type: boolean
          description: IsPriceManual. Nullable.
        Qty2:
          type: number
          description: Qty2. Nullable.
          format: decimal
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        Infos:
          type: array
          description: Infos.
          items:
            $ref: '#/components/schemas/OrderService.QuotationItemInfo'
      format: OrderService.QuotationItem
    OrderService.QuotationItemInfo:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        QuotationItemId:
          type: integer
          description: QuotationItemId.
          format: int32
        TypeId:
          type: integer
          description: TypeId.
          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: OrderService.QuotationItemInfo
    OrderService.QuotationCustomerAddress:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        QuotationId:
          type: integer
          description: QuotationId.
          format: int32
        ClientCustomerAddressId:
          type: integer
          description: ClientCustomerAddressId. Nullable.
          format: int32
        ClientCompanyAddressId:
          type: integer
          description: ClientCompanyAddressId. Nullable.
          format: int32
        CustomerId:
          type: integer
          description: CustomerId. Nullable.
          format: int32
        CompanyId:
          type: integer
          description: CompanyId. Nullable.
          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
        CompanyName:
          type: string
          description: 'CompanyName. MaxLength: 100. Nullable.'
        FirstName:
          type: string
          description: 'FirstName. MaxLength: 50. Nullable.'
        LastName:
          type: string
          description: 'LastName. MaxLength: 50. Nullable.'
        CellPhoneNumber:
          type: string
          description: 'CellPhoneNumber. MaxLength: 50. Nullable.'
        Email:
          type: string
          description: 'Email. MaxLength: 255. Nullable.'
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        ShippingPhoneNumber:
          type: string
          description: 'ShippingPhoneNumber. MaxLength: 50. Nullable.'
        Gln:
          type: string
          description: 'Gln. MaxLength: 50. Nullable.'
      format: OrderService.QuotationCustomerAddress
    OrderService.PurchaseOrderItem:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        PurchaseOrderId:
          type: string
          description: PurchaseOrderId.
        LineNumber:
          type: number
          description: LineNumber. Nullable.
          format: decimal
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        ExternalPartNo:
          type: string
          description: 'ExternalPartNo. MaxLength: 50. Nullable.'
        ProductName:
          type: string
          description: 'ProductName. MaxLength: 255. Nullable.'
        StockUnitOfMeasurementCount:
          type: number
          description: StockUnitOfMeasurementCount.
          format: decimal
        PriceUnitOfMeasurementCount:
          type: number
          description: PriceUnitOfMeasurementCount.
          format: decimal
        WarehouseId:
          type: integer
          description: WarehouseId. Nullable.
          format: int32
        LocationId:
          type: integer
          description: LocationId. Nullable.
          format: int32
        QtyOrdered:
          type: number
          description: QtyOrdered.
          format: decimal
        CurrencyId:
          type: integer
          description: CurrencyId. Nullable.
          format: int32
        VatCodeId:
          type: integer
          description: VatCodeId. Nullable.
          format: int32
        PriceSale:
          type: number
          description: PriceSale.
          format: decimal
        LineAmount:
          type: number
          description: LineAmount. Nullable.
          format: decimal
        DeliveryMode:
          type: string
          description: 'DeliveryMode. MaxLength: 50. Nullable.'
        IsPartDelivery:
          type: boolean
          description: IsPartDelivery.
        ExpectedDeliveryDate:
          type: string
          description: ExpectedDeliveryDate. Nullable.
          format: date-time
        ConfirmedDeliveryDate:
          type: string
          description: ConfirmedDeliveryDate. Nullable.
          format: date-time
        LedgerAccount:
          type: string
          description: 'LedgerAccount. MaxLength: 50. Nullable.'
        Department:
          type: string
          description: 'Department. MaxLength: 10. Nullable.'
        Centre:
          type: string
          description: 'Centre. MaxLength: 10. Nullable.'
        SupplierLineReference:
          type: string
          description: 'SupplierLineReference. MaxLength: 50. Nullable.'
        OrderTransId:
          type: string
          description: OrderTransId. Nullable.
        TransId:
          type: string
          description: TransId. Nullable.
        Comment:
          type: string
          description: 'Comment. MaxLength: 255. Nullable.'
        DeliveryMark:
          type: string
          description: 'DeliveryMark. 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
        RowId:
          type: string
          description: 'RowId. MaxLength: 8. Nullable.'
        QtyOriginallyOrdered:
          type: number
          description: QtyOriginallyOrdered. Nullable.
          format: decimal
        QtyDelivered:
          type: number
          description: QtyDelivered. Nullable.
          format: decimal
        RequestedDeliveryDate:
          type: string
          description: RequestedDeliveryDate. Nullable.
          format: date-time
        OrderItemId:
          type: string
          description: OrderItemId. Nullable.
        LineNumberString:
          type: string
          description: 'LineNumberString. MaxLength: 50. Nullable.'
        ClientProductSkuTypeId:
          type: integer
          description: ClientProductSkuTypeId. Nullable.
          format: int32
        EndUserCode:
          type: string
          description: 'EndUserCode. MaxLength: 50. Nullable.'
        AgreementCode:
          type: string
          description: 'AgreementCode. MaxLength: 50. Nullable.'
        InternalComment:
          type: string
          description: 'InternalComment. MaxLength: 255. Nullable.'
        SupplierStatusId:
          type: integer
          description: SupplierStatusId. Nullable.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        DeliveryNoteItem:
          type: array
          description: DeliveryNoteItem.
          items:
            $ref: '#/components/schemas/OrderService.DeliveryNoteItem'
      format: OrderService.PurchaseOrderItem
    OrderService.DeliveryNoteItem:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        DeliveryNoteId:
          type: string
          description: DeliveryNoteId.
        LineNumber:
          type: number
          description: LineNumber. Nullable.
          format: decimal
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        ExternalPartNo:
          type: string
          description: 'ExternalPartNo. MaxLength: 50. Nullable.'
        ProductName:
          type: string
          description: 'ProductName. MaxLength: 255. Nullable.'
        StockUnitOfMeasurementCount:
          type: number
          description: StockUnitOfMeasurementCount.
          format: decimal
        PriceUnitOfMeasurementCount:
          type: number
          description: PriceUnitOfMeasurementCount.
          format: decimal
        QtyOrdered:
          type: number
          description: QtyOrdered.
          format: decimal
        Quantity:
          type: number
          description: Quantity.
          format: decimal
        QtyBackOrdered:
          type: number
          description: QtyBackOrdered.
          format: decimal
        IsPartDelivery:
          type: boolean
          description: IsPartDelivery.
        SalesRepContactId:
          type: integer
          description: SalesRepContactId. Nullable.
          format: int32
        VatRate:
          type: number
          description: VatRate.
          format: decimal
        ValueMst:
          type: number
          description: ValueMst.
          format: decimal
        NoteText:
          type: string
          description: 'NoteText. MaxLength: 255. Nullable.'
        Department:
          type: string
          description: 'Department. MaxLength: 10. Nullable.'
        Centre:
          type: string
          description: 'Centre. MaxLength: 10. Nullable.'
        TransId:
          type: integer
          description: TransId.
          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
        OrderItemId:
          type: string
          description: OrderItemId. Nullable.
        PurchaseOrderItemId:
          type: string
          description: PurchaseOrderItemId. Nullable.
        LineNumberString:
          type: string
          description: 'LineNumberString. MaxLength: 50. Nullable.'
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        PurchaseOrderItem:
          $ref: '#/components/schemas/OrderService.PurchaseOrderItem'
      format: OrderService.DeliveryNoteItem
    OrderService.Address:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        TypeId:
          type: integer
          description: TypeId. Nullable.
          format: int32
        Name:
          type: string
          description: 'Name. MaxLength: 100. Nullable.'
        Attention:
          type: string
          description: 'Attention. MaxLength: 100. Nullable.'
        CareOf:
          type: string
          description: 'CareOf. MaxLength: 100. Nullable.'
        Line1:
          type: string
          description: 'Line1. MaxLength: 255. Nullable.'
        Line2:
          type: string
          description: 'Line2. 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
        RowId:
          type: string
          description: 'RowId. MaxLength: 8. Nullable.'
        EmailAddress:
          type: string
          description: 'EmailAddress. MaxLength: 255. Nullable.'
        PhoneNumber:
          type: string
          description: 'PhoneNumber. MaxLength: 50. Nullable.'
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        ShippingPhoneNumber:
          type: string
          description: 'ShippingPhoneNumber. MaxLength: 50. Nullable.'
        Gln:
          type: string
          description: 'Gln. MaxLength: 50. Nullable.'
      format: OrderService.Address
    OrderService.DeliveryNotePackage:
      type: object
      properties:
        Id:
          type: string
          description: Id. Key property.
        DeliveryNoteId:
          type: string
          description: DeliveryNoteId.
        ShippingNo:
          type: string
          description: 'ShippingNo. 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
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: OrderService.DeliveryNotePackage
x-original-swagger-version: '2.0'
