@orchesty/connector-authentica 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE +190 -0
- package/coverage/clover.xml +413 -0
- package/coverage/coverage-final.json +19 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +161 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +210 -0
- package/coverage/lcov-report/src/AuthenticaApplication.ts.html +496 -0
- package/coverage/lcov-report/src/Batch/AuthenticaGetStock.ts.html +316 -0
- package/coverage/lcov-report/src/Batch/AuthenticaGetStockAvailable.ts.html +262 -0
- package/coverage/lcov-report/src/Batch/index.html +131 -0
- package/coverage/lcov-report/src/Connector/AuthenticaCreateOrder.ts.html +244 -0
- package/coverage/lcov-report/src/Connector/AuthenticaCreateProduct.ts.html +247 -0
- package/coverage/lcov-report/src/Connector/AuthenticaCreateReceipt.ts.html +244 -0
- package/coverage/lcov-report/src/Connector/AuthenticaGetCarriersConnector.ts.html +205 -0
- package/coverage/lcov-report/src/Connector/AuthenticaGetOrder.ts.html +259 -0
- package/coverage/lcov-report/src/Connector/AuthenticaGetOrderStatus.ts.html +199 -0
- package/coverage/lcov-report/src/Connector/AuthenticaGetReceipt.ts.html +259 -0
- package/coverage/lcov-report/src/Connector/AuthenticaGetShippingMethods.ts.html +208 -0
- package/coverage/lcov-report/src/Connector/AuthenticaPostLabel.ts.html +196 -0
- package/coverage/lcov-report/src/Connector/AuthenticaPutOrders.ts.html +334 -0
- package/coverage/lcov-report/src/Connector/AuthenticaPutProducts.ts.html +250 -0
- package/coverage/lcov-report/src/Connector/AuthenticaUpdateOrder.ts.html +256 -0
- package/coverage/lcov-report/src/Connector/AuthenticaUpdateProduct.ts.html +259 -0
- package/coverage/lcov-report/src/Connector/AuthenticaUpdateReceipt.ts.html +193 -0
- package/coverage/lcov-report/src/Connector/index.html +311 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/test/dataProvider.ts.html +325 -0
- package/coverage/lcov-report/test/index.html +116 -0
- package/coverage/lcov.info +676 -0
- package/dist/AuthenticaApplication.d.ts +29 -0
- package/dist/AuthenticaApplication.js +128 -0
- package/dist/Batch/AuthenticaGetStock.d.ts +20 -0
- package/dist/Batch/AuthenticaGetStock.js +45 -0
- package/dist/Batch/AuthenticaGetStockAvailable.d.ts +13 -0
- package/dist/Batch/AuthenticaGetStockAvailable.js +36 -0
- package/dist/Connector/AuthenticaCreateOrder.d.ts +12 -0
- package/dist/Connector/AuthenticaCreateOrder.js +37 -0
- package/dist/Connector/AuthenticaCreateProduct.d.ts +12 -0
- package/dist/Connector/AuthenticaCreateProduct.js +37 -0
- package/dist/Connector/AuthenticaCreateReceipt.d.ts +11 -0
- package/dist/Connector/AuthenticaCreateReceipt.js +37 -0
- package/dist/Connector/AuthenticaGetCarriersConnector.d.ts +15 -0
- package/dist/Connector/AuthenticaGetCarriersConnector.js +23 -0
- package/dist/Connector/AuthenticaGetOrder.d.ts +14 -0
- package/dist/Connector/AuthenticaGetOrder.js +38 -0
- package/dist/Connector/AuthenticaGetOrderStatus.d.ts +11 -0
- package/dist/Connector/AuthenticaGetOrderStatus.js +20 -0
- package/dist/Connector/AuthenticaGetReceipt.d.ts +13 -0
- package/dist/Connector/AuthenticaGetReceipt.js +38 -0
- package/dist/Connector/AuthenticaGetShippingMethods.d.ts +14 -0
- package/dist/Connector/AuthenticaGetShippingMethods.js +20 -0
- package/dist/Connector/AuthenticaPostLabel.d.ts +12 -0
- package/dist/Connector/AuthenticaPostLabel.js +22 -0
- package/dist/Connector/AuthenticaPutOrders.d.ts +52 -0
- package/dist/Connector/AuthenticaPutOrders.js +22 -0
- package/dist/Connector/AuthenticaPutProducts.d.ts +24 -0
- package/dist/Connector/AuthenticaPutProducts.js +22 -0
- package/dist/Connector/AuthenticaUpdateOrder.d.ts +12 -0
- package/dist/Connector/AuthenticaUpdateOrder.js +39 -0
- package/dist/Connector/AuthenticaUpdateProduct.d.ts +12 -0
- package/dist/Connector/AuthenticaUpdateProduct.js +39 -0
- package/dist/Connector/AuthenticaUpdateReceipt.d.ts +9 -0
- package/dist/Connector/AuthenticaUpdateReceipt.js +22 -0
- package/dist/package.json +24 -0
- package/dist/types/order.d.ts +39 -0
- package/dist/types/order.js +2 -0
- package/dist/types/product.d.ts +20 -0
- package/dist/types/product.js +2 -0
- package/dist/types/receipt.d.ts +29 -0
- package/dist/types/receipt.js +1 -0
- package/jest.config.js +13 -0
- package/package.json +24 -0
- package/src/AuthenticaApplication.ts +137 -0
- package/src/Batch/AuthenticaGetStock.ts +77 -0
- package/src/Batch/AuthenticaGetStockAvailable.ts +59 -0
- package/src/Batch/__tests__/AuthenticaGetStock.ts +26 -0
- package/src/Batch/__tests__/AuthenticaGetStockAvailable.ts +22 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStock/input.json +6 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStock/mock.json +23 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStock/nok-input.json +6 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStock/nok-mock.json +20 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStock/nok-output.json +13 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStock/output.json +11 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/1-mock.json +20 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/input.json +6 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/mock.json +21 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/output.json +14 -0
- package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/output1.json +12 -0
- package/src/Connector/AuthenticaCreateOrder.ts +53 -0
- package/src/Connector/AuthenticaCreateProduct.ts +54 -0
- package/src/Connector/AuthenticaCreateReceipt.ts +53 -0
- package/src/Connector/AuthenticaGetCarriersConnector.ts +40 -0
- package/src/Connector/AuthenticaGetOrder.ts +58 -0
- package/src/Connector/AuthenticaGetOrderStatus.ts +38 -0
- package/src/Connector/AuthenticaGetReceipt.ts +58 -0
- package/src/Connector/AuthenticaGetShippingMethods.ts +41 -0
- package/src/Connector/AuthenticaPostLabel.ts +37 -0
- package/src/Connector/AuthenticaPutOrders.ts +83 -0
- package/src/Connector/AuthenticaPutProducts.ts +55 -0
- package/src/Connector/AuthenticaUpdateOrder.ts +57 -0
- package/src/Connector/AuthenticaUpdateProduct.ts +58 -0
- package/src/Connector/AuthenticaUpdateReceipt.ts +36 -0
- package/src/Connector/__tests__/AuthenticaCreateOrder.ts +22 -0
- package/src/Connector/__tests__/AuthenticaCreateProduct.ts +22 -0
- package/src/Connector/__tests__/AuthenticaCreateReceipt.ts +22 -0
- package/src/Connector/__tests__/AuthenticaGetCarriers.ts +22 -0
- package/src/Connector/__tests__/AuthenticaGetOrder.ts +22 -0
- package/src/Connector/__tests__/AuthenticaGetOrderStatus.ts +36 -0
- package/src/Connector/__tests__/AuthenticaGetReceipt.ts +22 -0
- package/src/Connector/__tests__/AuthenticaGetShippingMethods.ts +22 -0
- package/src/Connector/__tests__/AuthenticaPostLabel.ts +36 -0
- package/src/Connector/__tests__/AuthenticaPutOrders.ts +36 -0
- package/src/Connector/__tests__/AuthenticaPutProducts.ts +36 -0
- package/src/Connector/__tests__/AuthenticaUpdateOrder.ts +22 -0
- package/src/Connector/__tests__/AuthenticaUpdateProduct.ts +22 -0
- package/src/Connector/__tests__/AuthenticaUpdateReceipt.ts +22 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateOrder/input.json +67 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateOrder/mock.json +70 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateOrder/output.json +71 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateProduct/input.json +28 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateProduct/mock.json +28 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateProduct/output.json +29 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateReceipt/input.json +47 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateReceipt/mock.json +51 -0
- package/src/Connector/__tests__/Data/AuthenticaCreateReceipt/output.json +52 -0
- package/src/Connector/__tests__/Data/AuthenticaGetCarriers/input.json +6 -0
- package/src/Connector/__tests__/Data/AuthenticaGetCarriers/mock.json +18 -0
- package/src/Connector/__tests__/Data/AuthenticaGetCarriers/output.json +19 -0
- package/src/Connector/__tests__/Data/AuthenticaGetOrder/input.json +8 -0
- package/src/Connector/__tests__/Data/AuthenticaGetOrder/mock.json +63 -0
- package/src/Connector/__tests__/Data/AuthenticaGetOrder/output.json +64 -0
- package/src/Connector/__tests__/Data/AuthenticaGetOrderStatus/input.json +6 -0
- package/src/Connector/__tests__/Data/AuthenticaGetOrderStatus/mock.json +12 -0
- package/src/Connector/__tests__/Data/AuthenticaGetOrderStatus/output.json +11 -0
- package/src/Connector/__tests__/Data/AuthenticaGetReceipt/input.json +8 -0
- package/src/Connector/__tests__/Data/AuthenticaGetReceipt/mock.json +54 -0
- package/src/Connector/__tests__/Data/AuthenticaGetReceipt/output.json +55 -0
- package/src/Connector/__tests__/Data/AuthenticaGetShippingMethods/input.json +6 -0
- package/src/Connector/__tests__/Data/AuthenticaGetShippingMethods/mock.json +404 -0
- package/src/Connector/__tests__/Data/AuthenticaGetShippingMethods/output.json +403 -0
- package/src/Connector/__tests__/Data/AuthenticaPostLabel/input.json +10 -0
- package/src/Connector/__tests__/Data/AuthenticaPostLabel/mock.json +5 -0
- package/src/Connector/__tests__/Data/AuthenticaPostLabel/output.json +10 -0
- package/src/Connector/__tests__/Data/AuthenticaPutOrders/input.json +43 -0
- package/src/Connector/__tests__/Data/AuthenticaPutOrders/mock.json +44 -0
- package/src/Connector/__tests__/Data/AuthenticaPutOrders/output.json +43 -0
- package/src/Connector/__tests__/Data/AuthenticaPutProducts/input.json +19 -0
- package/src/Connector/__tests__/Data/AuthenticaPutProducts/mock.json +20 -0
- package/src/Connector/__tests__/Data/AuthenticaPutProducts/output.json +19 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateOrder/input.json +68 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateOrder/mock.json +70 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateOrder/output.json +71 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateProduct/input.json +32 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateProduct/mock.json +28 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateProduct/output.json +31 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateReceipt/input.json +45 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateReceipt/mock.json +51 -0
- package/src/Connector/__tests__/Data/AuthenticaUpdateReceipt/output.json +52 -0
- package/src/__tests__/AuthenticaApplication.ts +41 -0
- package/src/types/order.ts +40 -0
- package/src/types/product.ts +21 -0
- package/src/types/receipt.ts +30 -0
- package/test/dataProvider.ts +80 -0
- package/tsconfig.json +8 -0
- package/tsconfig.prod.json +13 -0
- package/tsconfig.prod.tsbuildinfo +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
+
import Redis from '@orchesty/nodejs-sdk/dist/lib/Storage/Redis/Redis';
|
|
3
|
+
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
4
|
+
import { initAuthenticaTest } from '../../../test/dataProvider';
|
|
5
|
+
import { NAME as AUTHENTICA_POST_ORDERS } from '../AuthenticaPutOrders';
|
|
6
|
+
|
|
7
|
+
let tester: NodeTester;
|
|
8
|
+
let redis: Redis;
|
|
9
|
+
|
|
10
|
+
describe('Tests for AuthenticaPostOrders', () => {
|
|
11
|
+
beforeAll(async () => {
|
|
12
|
+
tester = new NodeTester(container, __filename);
|
|
13
|
+
redis = container.get(Redis);
|
|
14
|
+
await initAuthenticaTest();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
afterAll(async () => {
|
|
18
|
+
await redis.close();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('process - ok', async () => {
|
|
22
|
+
await redis.set(
|
|
23
|
+
'authentica_cache_key',
|
|
24
|
+
JSON.stringify({
|
|
25
|
+
expiration: 1759965308,
|
|
26
|
+
|
|
27
|
+
access_token: 'testAccessToken',
|
|
28
|
+
refresh_token: 'testRefreshToken',
|
|
29
|
+
refresh_token_expiration: 1759965308,
|
|
30
|
+
|
|
31
|
+
}),
|
|
32
|
+
4,
|
|
33
|
+
);
|
|
34
|
+
await tester.testConnector(AUTHENTICA_POST_ORDERS);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
+
import Redis from '@orchesty/nodejs-sdk/dist/lib/Storage/Redis/Redis';
|
|
3
|
+
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
4
|
+
import { initAuthenticaTest } from '../../../test/dataProvider';
|
|
5
|
+
import { NAME as AUTHENTICA_POST_PRODUCTS } from '../AuthenticaPutProducts';
|
|
6
|
+
|
|
7
|
+
let tester: NodeTester;
|
|
8
|
+
let redis: Redis;
|
|
9
|
+
|
|
10
|
+
describe('Tests for AuthenticaPostProducts', () => {
|
|
11
|
+
beforeAll(async () => {
|
|
12
|
+
tester = new NodeTester(container, __filename);
|
|
13
|
+
redis = container.get(Redis);
|
|
14
|
+
await initAuthenticaTest();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
afterAll(async () => {
|
|
18
|
+
await redis.close();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('process - ok', async () => {
|
|
22
|
+
await redis.set(
|
|
23
|
+
'authentica_cache_key',
|
|
24
|
+
JSON.stringify({
|
|
25
|
+
expiration: 1759965308,
|
|
26
|
+
|
|
27
|
+
access_token: 'testAccessToken',
|
|
28
|
+
refresh_token: 'testRefreshToken',
|
|
29
|
+
refresh_token_expiration: 1759965308,
|
|
30
|
+
|
|
31
|
+
}),
|
|
32
|
+
4,
|
|
33
|
+
);
|
|
34
|
+
await tester.testConnector(AUTHENTICA_POST_PRODUCTS);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
+
import Redis from '@orchesty/nodejs-sdk/dist/lib/Storage/Redis/Redis';
|
|
3
|
+
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
4
|
+
import { initAuthenticaTest } from '../../../test/dataProvider';
|
|
5
|
+
import { AUTHENTICA_UPDATE_ORDER } from '../AuthenticaUpdateOrder';
|
|
6
|
+
|
|
7
|
+
let tester: NodeTester;
|
|
8
|
+
|
|
9
|
+
describe('Tests for AuthenticaUpdateOrder', () => {
|
|
10
|
+
beforeAll(async () => {
|
|
11
|
+
tester = new NodeTester(container, __filename);
|
|
12
|
+
await initAuthenticaTest();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
afterAll(async () => {
|
|
16
|
+
await container.get(Redis).close();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('process - ok', async () => {
|
|
20
|
+
await tester.testConnector(AUTHENTICA_UPDATE_ORDER);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
+
import Redis from '@orchesty/nodejs-sdk/dist/lib/Storage/Redis/Redis';
|
|
3
|
+
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
4
|
+
import { initAuthenticaTest } from '../../../test/dataProvider';
|
|
5
|
+
import { AUTHENTICA_UPDATE_PRODUCT } from '../AuthenticaUpdateProduct';
|
|
6
|
+
|
|
7
|
+
let tester: NodeTester;
|
|
8
|
+
|
|
9
|
+
describe('Tests for AuthenticaUpdateProduct', () => {
|
|
10
|
+
beforeAll(async () => {
|
|
11
|
+
tester = new NodeTester(container, __filename);
|
|
12
|
+
await initAuthenticaTest();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
afterAll(async () => {
|
|
16
|
+
await container.get(Redis).close();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('process - ok', async () => {
|
|
20
|
+
await tester.testConnector(AUTHENTICA_UPDATE_PRODUCT);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
+
import Redis from '@orchesty/nodejs-sdk/dist/lib/Storage/Redis/Redis';
|
|
3
|
+
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
4
|
+
import { initAuthenticaTest } from '../../../test/dataProvider';
|
|
5
|
+
import { AUTHENTICA_UPDATE_RECEIPT } from '../AuthenticaUpdateReceipt';
|
|
6
|
+
|
|
7
|
+
let tester: NodeTester;
|
|
8
|
+
|
|
9
|
+
describe('Tests for AuthenticaUpdateReceipt', () => {
|
|
10
|
+
beforeAll(async () => {
|
|
11
|
+
tester = new NodeTester(container, __filename);
|
|
12
|
+
await initAuthenticaTest();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
afterAll(async () => {
|
|
16
|
+
await container.get(Redis).close();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('process - ok', async () => {
|
|
20
|
+
await tester.testConnector(AUTHENTICA_UPDATE_RECEIPT);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": {
|
|
6
|
+
"externalId": "external-ccx",
|
|
7
|
+
"carrierId": 8,
|
|
8
|
+
"branchId": null,
|
|
9
|
+
"price": "153.00",
|
|
10
|
+
"priceCurrency": "CZK",
|
|
11
|
+
"cod": false,
|
|
12
|
+
"codValue": null,
|
|
13
|
+
"codValueCurrency": null,
|
|
14
|
+
"vs": null,
|
|
15
|
+
"companyName": "Webwings s.r.o.",
|
|
16
|
+
"firstName": null,
|
|
17
|
+
"lastName": null,
|
|
18
|
+
"addressLine1": "Marešova 14",
|
|
19
|
+
"addressLine2": "2nd floor",
|
|
20
|
+
"addressLine3": null,
|
|
21
|
+
"city": "Brno",
|
|
22
|
+
"zip": "602 00",
|
|
23
|
+
"country": "CZ",
|
|
24
|
+
"state": null,
|
|
25
|
+
"phone": "+420808875329",
|
|
26
|
+
"email": "developers@webwings.cz",
|
|
27
|
+
"processingDate": "2023-01-24",
|
|
28
|
+
"printDeliveryNote": true,
|
|
29
|
+
"orderNumber": null,
|
|
30
|
+
"orderTags": [
|
|
31
|
+
"tag1",
|
|
32
|
+
"tag2"
|
|
33
|
+
],
|
|
34
|
+
"packagingInstructions": [
|
|
35
|
+
{
|
|
36
|
+
"message": "Apply fragile sticker",
|
|
37
|
+
"packagingInstructionType": "after"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"items": [
|
|
41
|
+
{
|
|
42
|
+
"productId": 16,
|
|
43
|
+
"amount": 4
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"productId": 4,
|
|
47
|
+
"amount": 3
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"productId": 12,
|
|
51
|
+
"amount": 4
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"productId": 3,
|
|
55
|
+
"amount": 4
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"productId": 8,
|
|
59
|
+
"amount": 4
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"productId": 7,
|
|
63
|
+
"amount": 4
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"http": "POST https://app.authentica.cz/api/shop/TestUser/order",
|
|
3
|
+
"code": 200,
|
|
4
|
+
"body": {
|
|
5
|
+
"id": 3,
|
|
6
|
+
"status": "received",
|
|
7
|
+
"externalId": "external-ccx",
|
|
8
|
+
"carrierId": 8,
|
|
9
|
+
"branchId": null,
|
|
10
|
+
"price": "153.00",
|
|
11
|
+
"priceCurrency": "CZK",
|
|
12
|
+
"cod": false,
|
|
13
|
+
"codValue": null,
|
|
14
|
+
"codValueCurrency": null,
|
|
15
|
+
"vs": null,
|
|
16
|
+
"companyName": "Webwings s.r.o.",
|
|
17
|
+
"firstName": null,
|
|
18
|
+
"lastName": null,
|
|
19
|
+
"addressLine1": "Marešova 14",
|
|
20
|
+
"addressLine2": "2nd floor",
|
|
21
|
+
"addressLine3": null,
|
|
22
|
+
"city": "Brno",
|
|
23
|
+
"zip": "602 00",
|
|
24
|
+
"country": "CZ",
|
|
25
|
+
"state": null,
|
|
26
|
+
"phone": "+420808875329",
|
|
27
|
+
"email": "developers@webwings.cz",
|
|
28
|
+
"processingDate": "2023-01-24",
|
|
29
|
+
"printDeliveryNote": true,
|
|
30
|
+
"orderNumber": null,
|
|
31
|
+
"orderTags": [
|
|
32
|
+
"tag1",
|
|
33
|
+
"tag2"
|
|
34
|
+
],
|
|
35
|
+
"packagingInstructions": [
|
|
36
|
+
{
|
|
37
|
+
"message": "Apply fragile sticker",
|
|
38
|
+
"packagingInstructionType": "after"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"items": [
|
|
42
|
+
{
|
|
43
|
+
"productId": 16,
|
|
44
|
+
"amount": 4
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"productId": 4,
|
|
48
|
+
"amount": 3
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"productId": 12,
|
|
52
|
+
"amount": 4
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"productId": 3,
|
|
56
|
+
"amount": 4
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"productId": 8,
|
|
60
|
+
"amount": 4
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"productId": 7,
|
|
64
|
+
"amount": 4
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"trackingNumbers": [],
|
|
68
|
+
"trackingUrls": []
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": {
|
|
6
|
+
"id": 3,
|
|
7
|
+
"status": "received",
|
|
8
|
+
"externalId": "external-ccx",
|
|
9
|
+
"carrierId": 8,
|
|
10
|
+
"branchId": null,
|
|
11
|
+
"price": "153.00",
|
|
12
|
+
"priceCurrency": "CZK",
|
|
13
|
+
"cod": false,
|
|
14
|
+
"codValue": null,
|
|
15
|
+
"codValueCurrency": null,
|
|
16
|
+
"vs": null,
|
|
17
|
+
"companyName": "Webwings s.r.o.",
|
|
18
|
+
"firstName": null,
|
|
19
|
+
"lastName": null,
|
|
20
|
+
"addressLine1": "Marešova 14",
|
|
21
|
+
"addressLine2": "2nd floor",
|
|
22
|
+
"addressLine3": null,
|
|
23
|
+
"city": "Brno",
|
|
24
|
+
"zip": "602 00",
|
|
25
|
+
"country": "CZ",
|
|
26
|
+
"state": null,
|
|
27
|
+
"phone": "+420808875329",
|
|
28
|
+
"email": "developers@webwings.cz",
|
|
29
|
+
"processingDate": "2023-01-24",
|
|
30
|
+
"printDeliveryNote": true,
|
|
31
|
+
"orderNumber": null,
|
|
32
|
+
"orderTags": [
|
|
33
|
+
"tag1",
|
|
34
|
+
"tag2"
|
|
35
|
+
],
|
|
36
|
+
"packagingInstructions": [
|
|
37
|
+
{
|
|
38
|
+
"message": "Apply fragile sticker",
|
|
39
|
+
"packagingInstructionType": "after"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"items": [
|
|
43
|
+
{
|
|
44
|
+
"productId": 16,
|
|
45
|
+
"amount": 4
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"productId": 4,
|
|
49
|
+
"amount": 3
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"productId": 12,
|
|
53
|
+
"amount": 4
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"productId": 3,
|
|
57
|
+
"amount": 4
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"productId": 8,
|
|
61
|
+
"amount": 4
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"productId": 7,
|
|
65
|
+
"amount": 4
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"trackingNumbers": [],
|
|
69
|
+
"trackingUrls": []
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": {
|
|
6
|
+
"name": "Small iPhone",
|
|
7
|
+
"declarationName": "Small iPhone declaration",
|
|
8
|
+
"description": null,
|
|
9
|
+
"note": null,
|
|
10
|
+
"length": 2.53,
|
|
11
|
+
"width": 10.43,
|
|
12
|
+
"height": 7.82,
|
|
13
|
+
"weight": 13.52,
|
|
14
|
+
"hsCode": "1234",
|
|
15
|
+
"fdaCode": null,
|
|
16
|
+
"hasLot": false,
|
|
17
|
+
"hasImei": false,
|
|
18
|
+
"hasLotExpiration": false,
|
|
19
|
+
"inspectionMethod": null,
|
|
20
|
+
"countryOfOrigin": "CZ",
|
|
21
|
+
"skus": [
|
|
22
|
+
"sku-3079"
|
|
23
|
+
],
|
|
24
|
+
"barcodes": [
|
|
25
|
+
"5103092117757"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"http": "POST https://app.authentica.cz/api/shop/TestUser/product",
|
|
3
|
+
"code": 200,
|
|
4
|
+
"body": {
|
|
5
|
+
"id": 3,
|
|
6
|
+
"name": "Small iPhone",
|
|
7
|
+
"declarationName": "Small iPhone declaration",
|
|
8
|
+
"description": null,
|
|
9
|
+
"note": null,
|
|
10
|
+
"length": 2.53,
|
|
11
|
+
"width": 10.43,
|
|
12
|
+
"height": 7.82,
|
|
13
|
+
"weight": 13.52,
|
|
14
|
+
"hsCode": "1234",
|
|
15
|
+
"fdaCode": null,
|
|
16
|
+
"hasLot": false,
|
|
17
|
+
"hasImei": false,
|
|
18
|
+
"hasLotExpiration": false,
|
|
19
|
+
"inspectionMethod": null,
|
|
20
|
+
"countryOfOrigin": "CZ",
|
|
21
|
+
"skus": [
|
|
22
|
+
"sku-3079"
|
|
23
|
+
],
|
|
24
|
+
"barcodes": [
|
|
25
|
+
"5103092117757"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": {
|
|
6
|
+
"id": 3,
|
|
7
|
+
"name": "Small iPhone",
|
|
8
|
+
"declarationName": "Small iPhone declaration",
|
|
9
|
+
"description": null,
|
|
10
|
+
"note": null,
|
|
11
|
+
"length": 2.53,
|
|
12
|
+
"width": 10.43,
|
|
13
|
+
"height": 7.82,
|
|
14
|
+
"weight": 13.52,
|
|
15
|
+
"hsCode": "1234",
|
|
16
|
+
"fdaCode": null,
|
|
17
|
+
"hasLot": false,
|
|
18
|
+
"hasImei": false,
|
|
19
|
+
"hasLotExpiration": false,
|
|
20
|
+
"inspectionMethod": null,
|
|
21
|
+
"countryOfOrigin": "CZ",
|
|
22
|
+
"skus": [
|
|
23
|
+
"sku-3079"
|
|
24
|
+
],
|
|
25
|
+
"barcodes": [
|
|
26
|
+
"5103092117757"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": {
|
|
6
|
+
"externalId": "receipt-1",
|
|
7
|
+
"incomingDate": 1709178916,
|
|
8
|
+
"customerNote": null,
|
|
9
|
+
"customerType": "customer-type",
|
|
10
|
+
"supplier": {
|
|
11
|
+
"firstName": null,
|
|
12
|
+
"lastName": null,
|
|
13
|
+
"companyName": "Webwings s.r.o.",
|
|
14
|
+
"addressLine1": "Marešova 305/14",
|
|
15
|
+
"addressLine2": "2nd floor",
|
|
16
|
+
"addressLine3": null,
|
|
17
|
+
"city": "Brno",
|
|
18
|
+
"zip": "602 00",
|
|
19
|
+
"country": "CZ",
|
|
20
|
+
"state": null
|
|
21
|
+
},
|
|
22
|
+
"items": [
|
|
23
|
+
{
|
|
24
|
+
"productId": 1,
|
|
25
|
+
"expectedAmount": 5,
|
|
26
|
+
"expectedLot": null,
|
|
27
|
+
"expectedExpirationDate": null
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"productId": 2,
|
|
31
|
+
"expectedAmount": 3,
|
|
32
|
+
"expectedLot": "LOT-1",
|
|
33
|
+
"expectedExpirationDate": null
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"productId": 3,
|
|
37
|
+
"receivedAmount": 0,
|
|
38
|
+
"expectedAmount": 1,
|
|
39
|
+
"expectedLot": "LOT-1",
|
|
40
|
+
"expectedExpirationDate": 1719178916
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"trackingNumbers": [
|
|
44
|
+
"123456789"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"http": "POST https://app.authentica.cz/api/shop/TestUser/receipt",
|
|
3
|
+
"code": 200,
|
|
4
|
+
"body": {
|
|
5
|
+
"id": 1,
|
|
6
|
+
"status": "waiting_for_receipt",
|
|
7
|
+
"externalId": "receipt-1",
|
|
8
|
+
"incomingDate": 1709178916,
|
|
9
|
+
"customerNote": null,
|
|
10
|
+
"customerType": "customer-type",
|
|
11
|
+
"supplier": {
|
|
12
|
+
"firstName": null,
|
|
13
|
+
"lastName": null,
|
|
14
|
+
"companyName": "Webwings s.r.o.",
|
|
15
|
+
"addressLine1": "Marešova 305/14",
|
|
16
|
+
"addressLine2": "2nd floor",
|
|
17
|
+
"addressLine3": null,
|
|
18
|
+
"city": "Brno",
|
|
19
|
+
"zip": "602 00",
|
|
20
|
+
"country": "CZ",
|
|
21
|
+
"state": null
|
|
22
|
+
},
|
|
23
|
+
"items": [
|
|
24
|
+
{
|
|
25
|
+
"productId": 1,
|
|
26
|
+
"receivedAmount": 0,
|
|
27
|
+
"expectedAmount": 5,
|
|
28
|
+
"expectedLot": null,
|
|
29
|
+
"expectedExpirationDate": null
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"productId": 2,
|
|
33
|
+
"receivedAmount": 0,
|
|
34
|
+
"expectedAmount": 3,
|
|
35
|
+
"expectedLot": "LOT-1",
|
|
36
|
+
"expectedExpirationDate": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"productId": 3,
|
|
40
|
+
"receivedAmount": 0,
|
|
41
|
+
"expectedAmount": 1,
|
|
42
|
+
"expectedLot": "LOT-1",
|
|
43
|
+
"expectedExpirationDate": 1719178916
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"trackingNumbers": [
|
|
47
|
+
"123456789"
|
|
48
|
+
],
|
|
49
|
+
"shipments": []
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": {
|
|
6
|
+
"id": 1,
|
|
7
|
+
"status": "waiting_for_receipt",
|
|
8
|
+
"externalId": "receipt-1",
|
|
9
|
+
"incomingDate": 1709178916,
|
|
10
|
+
"customerNote": null,
|
|
11
|
+
"customerType": "customer-type",
|
|
12
|
+
"supplier": {
|
|
13
|
+
"firstName": null,
|
|
14
|
+
"lastName": null,
|
|
15
|
+
"companyName": "Webwings s.r.o.",
|
|
16
|
+
"addressLine1": "Marešova 305/14",
|
|
17
|
+
"addressLine2": "2nd floor",
|
|
18
|
+
"addressLine3": null,
|
|
19
|
+
"city": "Brno",
|
|
20
|
+
"zip": "602 00",
|
|
21
|
+
"country": "CZ",
|
|
22
|
+
"state": null
|
|
23
|
+
},
|
|
24
|
+
"items": [
|
|
25
|
+
{
|
|
26
|
+
"productId": 1,
|
|
27
|
+
"receivedAmount": 0,
|
|
28
|
+
"expectedAmount": 5,
|
|
29
|
+
"expectedLot": null,
|
|
30
|
+
"expectedExpirationDate": null
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"productId": 2,
|
|
34
|
+
"receivedAmount": 0,
|
|
35
|
+
"expectedAmount": 3,
|
|
36
|
+
"expectedLot": "LOT-1",
|
|
37
|
+
"expectedExpirationDate": null
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"productId": 3,
|
|
41
|
+
"receivedAmount": 0,
|
|
42
|
+
"expectedAmount": 1,
|
|
43
|
+
"expectedLot": "LOT-1",
|
|
44
|
+
"expectedExpirationDate": 1719178916
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"trackingNumbers": [
|
|
48
|
+
"123456789"
|
|
49
|
+
],
|
|
50
|
+
"shipments": []
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"http": "GET https://app.authentica.cz/api/shop/TestUser/carrier",
|
|
3
|
+
"code": 200,
|
|
4
|
+
"body": [
|
|
5
|
+
{
|
|
6
|
+
"id": 1,
|
|
7
|
+
"name": "Česká pošta - Balík do ruky",
|
|
8
|
+
"branchSupported": false,
|
|
9
|
+
"branchRequired": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": 2,
|
|
13
|
+
"name": "Česká pošta - Balík na poštu",
|
|
14
|
+
"branchSupported": true,
|
|
15
|
+
"branchRequired": false
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"headers": {
|
|
3
|
+
"user": "TestUser"
|
|
4
|
+
},
|
|
5
|
+
"data": [
|
|
6
|
+
{
|
|
7
|
+
"branchRequired": false,
|
|
8
|
+
"branchSupported": false,
|
|
9
|
+
"id": 1,
|
|
10
|
+
"name": "Česká pošta - Balík do ruky"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"branchRequired": false,
|
|
14
|
+
"branchSupported": true,
|
|
15
|
+
"id": 2,
|
|
16
|
+
"name": "Česká pošta - Balík na poštu"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|