SudoSOS Back-end API / seller-payouts / SellerPayoutService
Class: SellerPayoutService ​
Extends ​
Constructors ​
Constructor ​
ts
new SellerPayoutService(manager?): SellerPayoutService;Parameters ​
| Parameter | Type |
|---|---|
manager? | EntityManager |
Returns ​
SellerPayoutService
Inherited from ​
Properties ​
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
manager | protected | EntityManager | WithManager.manager |
Methods ​
createSellerPayout() ​
ts
createSellerPayout(params): Promise<SellerPayout>;Create a new seller payout
Parameters ​
| Parameter | Type | Description |
|---|---|---|
params | CreateSellerPayoutParams | - |
Returns ​
Promise<SellerPayout>
deleteSellerPayout() ​
ts
deleteSellerPayout(id): Promise<void>;Delete an existing seller payout (with its corresponding transfer)
Parameters ​
| Parameter | Type | Description |
|---|---|---|
id | number | - |
Returns ​
Promise<void>
getSellerPayouts() ​
ts
getSellerPayouts(params, pagination?): Promise<[SellerPayout[], number]>;Get seller payouts from database
Parameters ​
| Parameter | Type | Description |
|---|---|---|
params | SellerPayoutFilterParameters | - |
pagination | PaginationParameters | - |
Returns ​
Promise<[SellerPayout[], number]>
updateSellerPayout() ​
ts
updateSellerPayout(id, params): Promise<SellerPayout>;Update an existing seller payout
Parameters ​
| Parameter | Type | Description |
|---|---|---|
id | number | - |
params | UpdateSellerPayoutRequest | - |
Returns ​
Promise<SellerPayout>
asSellerPayoutResponse() ​
ts
static asSellerPayoutResponse(payout): SellerPayoutResponse;Parameters ​
| Parameter | Type |
|---|---|
payout | SellerPayout |
Returns ​
getOptions() ​
ts
static getOptions(params): FindManyOptions<SellerPayout>;Create filter options object
Parameters ​
| Parameter | Type | Description |
|---|---|---|
params | SellerPayoutFilterParameters | - |
Returns ​
FindManyOptions<SellerPayout>