Skip to main content

Class: ClaimItemService

Hierarchy

  • "medusa-interfaces"

    ClaimItemService

Constructors

constructor

new ClaimItemService(__namedParameters)

Parameters

NameType
__namedParametersObject

Overrides

BaseService.constructor

Defined in

services/claim-item.js:11

Properties

claimImageRepository_

claimImageRepository_: any

Defined in

services/claim-item.js:27


claimTagRepository_

claimTagRepository_: any

Defined in

services/claim-item.js:26


Events

Static Events: Object

Type declaration

NameType
CANCELEDstring
CREATEDstring
UPDATEDstring

Defined in

services/claim-item.js:5

Methods

cancel

cancel(id): Promise<void>

Parameters

NameType
idany

Returns

Promise<void>

Defined in

services/claim-item.js:212


create

create(data): any

Parameters

NameType
dataany

Returns

any

Defined in

services/claim-item.js:55


deleteMetadata

deleteMetadata(orderId, key): Promise<any>

Dedicated method to delete metadata for an order.

Parameters

NameTypeDescription
orderIdstringthe order to delete metadata from.
keystringkey for metadata field

Returns

Promise<any>

resolves to the updated result.

Defined in

services/claim-item.js:259


list

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

Parameters

NameTypeDescription
selectoranythe query object for find
configanythe config object for find

Returns

Promise<any>

the result of the find operation

Defined in

services/claim-item.js:219


retrieve

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

Gets a claim item by id.

Parameters

NameTypeDescription
idstringid of ClaimItem to retrieve
configanyconfiguration for the find operation

Returns

Promise<Order>

the ClaimItem

Defined in

services/claim-item.js:234


update

update(id, data): any

Parameters

NameType
idany
dataany

Returns

any

Defined in

services/claim-item.js:135


withTransaction

withTransaction(manager): ClaimItemService

Parameters

NameType
managerany

Returns

ClaimItemService

Defined in

services/claim-item.js:36