Skip to main content

PayoutCommandService

@adamondo/backend


@adamondo/backend / application/services/PayoutCommandService

application/services/PayoutCommandService

Classes

PayoutCommandService

Defined in: src/application/services/PayoutCommandService.ts:12

Constructors

Constructor

new PayoutCommandService(uow): PayoutCommandService

Defined in: src/application/services/PayoutCommandService.ts:13

Parameters
uow

UnitOfWork

Returns

PayoutCommandService

Methods

add()

add(input): Promise<PayoutEntity>

Defined in: src/application/services/PayoutCommandService.ts:15

Parameters
input

CreatePayoutInput

Returns

Promise<PayoutEntity>

remove()

remove(userId, id): Promise<boolean>

Defined in: src/application/services/PayoutCommandService.ts:23

Parameters
userId

string

id

number

Returns

Promise<boolean>

setDefault()

setDefault(userId, id): Promise<boolean>

Defined in: src/application/services/PayoutCommandService.ts:29

Parameters
userId

string

id

number

Returns

Promise<boolean>