Skip to content

SudoSOS Back-end API / seller-payouts / SellerPayoutService

Class: SellerPayoutService ​

Extends ​

Constructors ​

Constructor ​

ts
new SellerPayoutService(manager?): SellerPayoutService;

Parameters ​

ParameterType
manager?EntityManager

Returns ​

SellerPayoutService

Inherited from ​

WithManager.constructor

Properties ​

PropertyModifierTypeInherited from
managerprotectedEntityManagerWithManager.manager

Methods ​

createSellerPayout() ​

ts
createSellerPayout(params): Promise<SellerPayout>;

Create a new seller payout

Parameters ​

ParameterTypeDescription
paramsCreateSellerPayoutParams-

Returns ​

Promise<SellerPayout>


deleteSellerPayout() ​

ts
deleteSellerPayout(id): Promise<void>;

Delete an existing seller payout (with its corresponding transfer)

Parameters ​

ParameterTypeDescription
idnumber-

Returns ​

Promise<void>


getSellerPayouts() ​

ts
getSellerPayouts(params, pagination?): Promise<[SellerPayout[], number]>;

Get seller payouts from database

Parameters ​

ParameterTypeDescription
paramsSellerPayoutFilterParameters-
paginationPaginationParameters-

Returns ​

Promise<[SellerPayout[], number]>


updateSellerPayout() ​

ts
updateSellerPayout(id, params): Promise<SellerPayout>;

Update an existing seller payout

Parameters ​

ParameterTypeDescription
idnumber-
paramsUpdateSellerPayoutRequest-

Returns ​

Promise<SellerPayout>


asSellerPayoutResponse() ​

ts
static asSellerPayoutResponse(payout): SellerPayoutResponse;

Parameters ​

ParameterType
payoutSellerPayout

Returns ​

SellerPayoutResponse


getOptions() ​

ts
static getOptions(params): FindManyOptions<SellerPayout>;

Create filter options object

Parameters ​

ParameterTypeDescription
paramsSellerPayoutFilterParameters-

Returns ​

FindManyOptions<SellerPayout>