AdminReturnReasonsResource
admin/return-reasons.AdminReturnReasonsResource
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<AdminReturnReasonsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnReasonsRes
>
Created return reason.
Description
Creates a return reason.
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
Deleted response
Description
deletes a return reason
list
list(customHeaders?
): ResponsePromise
<AdminReturnReasonsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnReasonsListRes
>
a list of return reasons matching the query.
Description
Lists return reasons matching a query
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminReturnReasonsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnReasonsRes
>
the return reason with the given id
Description
retrieves a return reason
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminReturnReasonsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReturnReasonsRes
>
the updated return reason.
Description
Updates a return reason