Skip to main content

Class: ReturnReasonService

Hierarchy

  • "medusa-interfaces"

    ReturnReasonService

Constructors

constructor

new ReturnReasonService(__namedParameters)

Parameters

NameType
__namedParametersObject

Overrides

BaseService.constructor

Defined in

services/return-reason.js:5

Methods

create

create(data): any

Parameters

NameType
dataany

Returns

any

Defined in

services/return-reason.js:30


delete

delete(returnReasonId): Promise<any>

Parameters

NameType
returnReasonIdany

Returns

Promise<any>

Defined in

services/return-reason.js:114


list

list(selector, config?): Promise<any>

Parameters

NameTypeDescription
selectoranythe query object for find
configanyconfig object

Returns

Promise<any>

the result of the find operation

Defined in

services/return-reason.js:82


retrieve

retrieve(id, config?): Promise<Order>

Gets an order by id.

Parameters

NameTypeDescription
idstringid of order to retrieve
configanyconfig object

Returns

Promise<Order>

the order document

Defined in

services/return-reason.js:97


update

update(id, data): any

Parameters

NameType
idany
dataany

Returns

any

Defined in

services/return-reason.js:52


withTransaction

withTransaction(manager): ReturnReasonService

Parameters

NameType
managerany

Returns

ReturnReasonService

Defined in

services/return-reason.js:15