Hierarchy

  • default
    • Order

Constructors

  • Parameters

    • __namedParameters: EndpointOptions

    Returns Order

Methods

  • Returns a placed Order.

    Required token: Order token

    Options schema:

    interface options {
    order_number: string
    }

    Success response schema: Success schema

    Failure response schema: Error schema

    Example:

    const response = await client.order.status({
    order_token: '7381273269536713689562374856',
    order_number: 'R653163382'
    })

    Parameters

    • options: StatusOptions

    Returns Promise<IOrderResult>

  • Type Parameters

    • ResponseType = JsonApiResponse

    Parameters

    • method: HttpMethod
    • url: string
    • Optional tokens: IToken
    • Optional params: any
    • Optional responseParsing: ResponseParsing

    Returns Promise<ResultResponse<ResponseType>>

  • The HTTP error code returned by Spree is not indicative of its response shape. This function determines the information provided by Spree and uses everything available.

    Parameters

    • error: default

    Returns ErrorType

  • Parameters

    • error: Error

    Returns default

  • Parameters

    • error: default

    Returns default

  • Parameters

    • tokens: IToken

    Returns {
        [headerName: string]: string;
    }

    • [headerName: string]: string

Properties

fetcher: Fetcher

Generated using TypeDoc