@@ -33,7 +33,6 @@ import Step from '../src/steps/model/Step';
3333import StepVersion from '../src/suppliers/model/StepVersion' ;
3434import SupplierUpdateRequest from '../src/suppliers/model/SupplierUpdateRequest' ;
3535import { AdjustmentType } from '../src/inventories/enum/AdjustmentType' ;
36- import * as uuidV4 from 'uuid/v4' ;
3736
3837describe ( 'ChannelApe Client' , ( ) => {
3938 describe ( 'Given valid session ID' , ( ) => {
@@ -55,22 +54,23 @@ describe('ChannelApe Client', () => {
5554 businessId : '4baafa5b-4fbf-404e-9766-8a02ad45c3a4' ,
5655 adjustments : [
5756 {
58- idempotentKey : uuidV4 ( ) ,
5957 locationId : '47' ,
6058 operation : AdjustmentType . ADJUST ,
6159 sku : 'ABC-123' ,
6260 memo : 'This is a test adjustment from e2e test' ,
6361 quantity : 1 ,
6462 inventoryStatus : InventoryStatus . AVAILABLE_TO_SELL ,
63+ idempotentKey : 'some-deduplication-key_47_ABC-123_AVAILABLE_TO_SELL' ,
64+
6565 } ,
6666 {
67- idempotentKey : uuidV4 ( ) ,
6867 locationId : '47' ,
6968 operation : AdjustmentType . SET ,
7069 sku : 'ABC-124' ,
7170 memo : 'This is a test adjustment from e2e test2' ,
7271 quantity : 1 ,
7372 inventoryStatus : InventoryStatus . AVAILABLE_TO_SELL ,
73+ idempotentKey : 'some-deduplication-key_47_ABC-124_AVAILABLE_TO_SELL' ,
7474 } ,
7575 ] ,
7676 } ) ;
@@ -1422,14 +1422,12 @@ describe('ChannelApe Client', () => {
14221422 quantity : 2 ,
14231423 inventoryStatus : InventoryStatus . AVAILABLE_TO_SELL ,
14241424 deduplicationKey : currentDateTime ,
1425- locationId : '28' ,
1426- } ,
1425+ locationId : '28' } ,
14271426 {
14281427 quantity : 0 ,
14291428 inventoryStatus : InventoryStatus . ON_HOLD ,
14301429 deduplicationKey : currentDateTime ,
1431- locationId : '28' ,
1432- } ,
1430+ locationId : '28' } ,
14331431 ] ,
14341432 } ,
14351433 ] ;
@@ -1451,13 +1449,13 @@ describe('ChannelApe Client', () => {
14511449 quantity : 1 ,
14521450 inventoryStatus : InventoryStatus . AVAILABLE_TO_SELL ,
14531451 deduplicationKey : currentDateTime ,
1454- locationId : '28' ,
1452+ locationId : '28'
14551453 } ,
14561454 {
14571455 quantity : 3 ,
14581456 inventoryStatus : InventoryStatus . ON_HOLD ,
14591457 deduplicationKey : currentDateTime ,
1460- locationId : '28' ,
1458+ locationId : '28'
14611459 } ,
14621460 ] ,
14631461 } ,
0 commit comments