Skip to content

Commit 9ad263f

Browse files
committed
Merge branch 'hotfix/1.40.1'
2 parents dbf4a48 + c82ad50 commit 9ad263f

File tree

8 files changed

+30
-3868
lines changed

8 files changed

+30
-3868
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,22 +981,22 @@ const batchRequest = BatchAdjustmentCreationRequest = {
981981
businessId: '91f47fdf-fd71-484c-9b3b-db4e2877a229',
982982
adjustments: [
983983
{
984-
idempotentKey: 'some-predictable-idempotent-key-1',
985984
locationId: '47',
986985
operation: AdjustmentType.ADJUST,
987986
sku: 'ABC-123',
988987
memo: 'Adjusting for intraday inventory.',
989988
quantity: 1,
990989
inventoryStatus: InventoryStatus.AVAILABLE_TO_SELL,
990+
idempotentKey: 'some-idempotent-key'
991991
},
992992
{
993-
idempotentKey: 'some-predictable-idempotent-key-2',
994993
locationId: '12',
995994
operation: AdjustmentType.SET,
996995
inventoryItemId: 123,
997996
memo: 'Adjusting for nightly true up.',
998997
quantity: 1,
999998
inventoryStatus: InventoryStatus.COMMITTED,
999+
idempotentKey: 'some-idempotent-key'
10001000
},
10011001
],
10021002
}

e2e/ChannelApeClient.spec.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import Step from '../src/steps/model/Step';
3333
import StepVersion from '../src/suppliers/model/StepVersion';
3434
import SupplierUpdateRequest from '../src/suppliers/model/SupplierUpdateRequest';
3535
import { AdjustmentType } from '../src/inventories/enum/AdjustmentType';
36-
import * as uuidV4 from 'uuid/v4';
3736

3837
describe('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

Comments
 (0)