ordercloud-javascript-sdk
    Preparing search index...

    Class BundleLineItems

    Index
    • Returns this

      enables impersonation by calling the subsequent method with the stored impersonation token

      BundleLineItems.As().List() // lists BundleLineItems using the impersonated users' token
      
    • Create a bundle line item Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • direction: OrderDirection

        Direction of the order, from the current user's perspective.

      • orderID: string

        ID of the order.

      • bundleID: string

        ID of the bundle.

      • bundleItems: BundleItems
      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TLineItem>>

    • Delete a bundle line item Check out the docs for more info

      Parameters

      • direction: OrderDirection

        Direction of the order, from the current user's perspective.

      • orderID: string

        ID of the order.

      • bundleID: string

        ID of the bundle.

      • bundleItemID: string

        ID of the bundle item.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>