tm-orders-service

    1.0.1 • Public • Published

    Documentation

    OrderService

    Extends TMMicroServiceAPI

    Parameters

    • url string service url
    • token (string | null) user access token if available (optional, default null)

    checkDownloadLinkStatus

    Download link status (check) Method: Get url: http://service-orders.dev/api/v1/orders/:orderId/:productId/download-link version: 1.0.0

    Parameters

    • orderId {String} - Order id.
    • productId {Number} - Product id.

    Returns Object

    restoreDownloadLinkStatus

    Download link status (restore) Method: Post url: http://service-orders.dev/api/v1/orders/:orderId/:productId/download-link version: 1.0.0

    Parameters

    • orderId {String} - Order id.
    • productId {Number} - Product id.

    Returns Object

    getListOfUserOrders

    Get list of users orders Method: Get url: http://service-orders.dev/api/v2/orders version: 2.0.0

    Parameters

    • page {Number} - page number to view.
    • per_page {Number} - records per page.
    • product_type {String} - type of product. Allowed values: "template", "offer", "membership".
    • product_ids {String} - ID's of products.
    • ids {String} - ID's of orders.
    • status {Number} - order status

    Returns Object

    getOrderById

    Get order by ID Method: Get url: http://service-orders.dev/api/v2/orders/:id version: 2.0.0

    Parameters

    • id {String} - ID of order.

    Returns Object

    messages

    Object with class service messages

    Install

    npm i tm-orders-service

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    CC-BY-4.0

    Last publish

    Collaborators

    • kyrylovoronoi
    • silentimp