AdminShippingOptionsResource
admin/shipping-options.AdminShippingOptionsResource
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<AdminShippingOptionsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminShippingOptionsRes
>
created shipping option.
Description
creates a shipping option.
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
deleted response
Description
deletes a shipping option
list
list(query?
, customHeaders?
): ResponsePromise
<AdminShippingOptionsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminShippingOptionsListRes
>
a list of shipping options matching the query.
Description
lists shipping options matching a query
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminShippingOptionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminShippingOptionsRes
>
the shipping option with the given id
Description
get a shipping option
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminShippingOptionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminShippingOptionsRes
>
the updated shipping option.
Description
updates a shipping option