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