Compare commits
No commits in common. "ccc363f74f568f15d6b67c0f1b69e725e0129a05" and "ec5229645f775b16b4b251b341172a065cb32834" have entirely different histories.
ccc363f74f
...
ec5229645f
|
@ -4,13 +4,10 @@ export enum OTP_ACTION_TYPE {
|
|||
CREATE_DISCOUNT = 'CREATE_DISCOUNT',
|
||||
CANCEL_TRANSACTION = 'CANCEL_TRANSACTION',
|
||||
REJECT_RECONCILIATION = 'REJECT_RECONCILIATION',
|
||||
|
||||
ACTIVATE_USER = 'ACTIVATE_USER',
|
||||
|
||||
ACTIVATE_ITEM = 'ACTIVATE_ITEM',
|
||||
ACTIVATE_USER = 'ACTIVATE_USER',
|
||||
UPDATE_ITEM_PRICE = 'UPDATE_ITEM_PRICE',
|
||||
UPDATE_ITEM_DETAILS = 'UPDATE_ITEM_DETAILS',
|
||||
|
||||
CONFIRM_TRANSACTION = 'CONFIRM_TRANSACTION',
|
||||
}
|
||||
|
||||
|
|
|
@ -41,19 +41,16 @@ export class ItemDataController {
|
|||
}
|
||||
|
||||
@Patch(':id/active')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async active(@Param('id') dataId: string): Promise<string> {
|
||||
return await this.orchestrator.active(dataId);
|
||||
}
|
||||
|
||||
@Put('/batch-active')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async batchActive(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
||||
return await this.orchestrator.batchActive(body.ids);
|
||||
}
|
||||
|
||||
@Patch(':id/confirm')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async confirm(@Param('id') dataId: string): Promise<string> {
|
||||
return await this.orchestrator.confirm(dataId);
|
||||
}
|
||||
|
@ -74,7 +71,6 @@ export class ItemDataController {
|
|||
}
|
||||
|
||||
@Put(':id')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async update(
|
||||
@Param('id') dataId: string,
|
||||
@Body() data: ItemDto,
|
||||
|
|
|
@ -80,7 +80,6 @@ export class SeasonPeriodDataController {
|
|||
}
|
||||
|
||||
// pemisahan update data dengan update items dikarenakan payload (based on tampilan) berbeda
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
@Put(':id/items')
|
||||
async updateItems(
|
||||
@Param('id') dataId: string,
|
||||
|
|
|
@ -36,25 +36,21 @@ export class UserDataController {
|
|||
}
|
||||
|
||||
@Patch(':id/active')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async active(@Param('id') dataId: string): Promise<string> {
|
||||
return await this.orchestrator.active(dataId);
|
||||
}
|
||||
|
||||
@Put('/batch-active')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async batchActive(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
||||
return await this.orchestrator.batchActive(body.ids);
|
||||
}
|
||||
|
||||
@Patch(':id/confirm')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async confirm(@Param('id') dataId: string): Promise<string> {
|
||||
return await this.orchestrator.confirm(dataId);
|
||||
}
|
||||
|
||||
@Put('/batch-confirm')
|
||||
// TOD0 => simpan OTP update yang disikim dari request ini
|
||||
async batchConfirm(@Body() body: BatchIdsDto): Promise<BatchResult> {
|
||||
return await this.orchestrator.batchConfirm(body.ids);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue