ordercloud-javascript-sdk
    Preparing search index...

    Class BundleSubscriptionItems

    Index
    • Returns this

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

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

      Type Parameters

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

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • 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 subscription item Check out the docs for more info

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • 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>