@teemill/platform 0.26.0 → 0.28.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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.26.0
7
+ * The version of the OpenAPI document: 0.28.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,9 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const CustomsInformationPreRegistrationTypeEnum = {
30
+ Ioss: 'IOSS'
31
+ };
29
32
  export const EnquiryStatusEnum = {
30
33
  New: 'New',
31
34
  Archived: 'Archived',
@@ -954,6 +957,100 @@ export class EnquiriesApi extends BaseAPI {
954
957
  */
955
958
  export const OrdersApiAxiosParamCreator = function (configuration) {
956
959
  return {
960
+ /**
961
+ *
962
+ * @summary Confirm order
963
+ * @param {string} project Project unique identifier
964
+ * @param {string} platformId The platform identifier
965
+ * @param {string} orderId The order identifier
966
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ confirmOrder: (project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, confirmOrderRequest, options = {}) {
971
+ // verify required parameter 'project' is not null or undefined
972
+ assertParamExists('confirmOrder', 'project', project);
973
+ // verify required parameter 'platformId' is not null or undefined
974
+ assertParamExists('confirmOrder', 'platformId', platformId);
975
+ // verify required parameter 'orderId' is not null or undefined
976
+ assertParamExists('confirmOrder', 'orderId', orderId);
977
+ // verify required parameter 'confirmOrderRequest' is not null or undefined
978
+ assertParamExists('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
979
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/confirm`
980
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
981
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
982
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
983
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
984
+ let baseOptions;
985
+ if (configuration) {
986
+ baseOptions = configuration.baseOptions;
987
+ }
988
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
989
+ const localVarHeaderParameter = {};
990
+ const localVarQueryParameter = {};
991
+ // authentication session-oauth required
992
+ // oauth required
993
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
994
+ // authentication api-key required
995
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
996
+ if (project !== undefined) {
997
+ localVarQueryParameter['project'] = project;
998
+ }
999
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1000
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1002
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1003
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmOrderRequest, localVarRequestOptions, configuration);
1004
+ return {
1005
+ url: toPathString(localVarUrlObj),
1006
+ options: localVarRequestOptions,
1007
+ };
1008
+ }),
1009
+ /**
1010
+ *
1011
+ * @summary Create order
1012
+ * @param {string} project Project unique identifier
1013
+ * @param {string} platformId The platform identifier
1014
+ * @param {CreateOrder} createOrder Create Order schema
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ createOrder: (project_1, platformId_1, createOrder_1, ...args_1) => __awaiter(this, [project_1, platformId_1, createOrder_1, ...args_1], void 0, function* (project, platformId, createOrder, options = {}) {
1019
+ // verify required parameter 'project' is not null or undefined
1020
+ assertParamExists('createOrder', 'project', project);
1021
+ // verify required parameter 'platformId' is not null or undefined
1022
+ assertParamExists('createOrder', 'platformId', platformId);
1023
+ // verify required parameter 'createOrder' is not null or undefined
1024
+ assertParamExists('createOrder', 'createOrder', createOrder);
1025
+ const localVarPath = `/v1/platform/{platformId}/orders`
1026
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1028
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1029
+ let baseOptions;
1030
+ if (configuration) {
1031
+ baseOptions = configuration.baseOptions;
1032
+ }
1033
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1034
+ const localVarHeaderParameter = {};
1035
+ const localVarQueryParameter = {};
1036
+ // authentication session-oauth required
1037
+ // oauth required
1038
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1039
+ // authentication api-key required
1040
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1041
+ if (project !== undefined) {
1042
+ localVarQueryParameter['project'] = project;
1043
+ }
1044
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1045
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1046
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1047
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1048
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrder, localVarRequestOptions, configuration);
1049
+ return {
1050
+ url: toPathString(localVarUrlObj),
1051
+ options: localVarRequestOptions,
1052
+ };
1053
+ }),
957
1054
  /**
958
1055
  * Export orders as a CSV file
959
1056
  * @summary Export orders
@@ -1199,10 +1296,12 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
1199
1296
  * @param {string} [start] Start of date range to filter when orders were placed
1200
1297
  * @param {string} [end] End of date range to filter when orders were placed
1201
1298
  * @param {ListOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
1299
+ * @param {number} [maxOrderTotal] The maximum value of the order
1300
+ * @param {number} [minOrderTotal] The minimum value of the order
1202
1301
  * @param {*} [options] Override http request option.
1203
1302
  * @throws {RequiredError}
1204
1303
  */
1205
- listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options = {}) {
1304
+ listOrders: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, maxOrderTotal_1, minOrderTotal_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, dateFilterType_1, maxOrderTotal_1, minOrderTotal_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options = {}) {
1206
1305
  // verify required parameter 'project' is not null or undefined
1207
1306
  assertParamExists('listOrders', 'project', project);
1208
1307
  // verify required parameter 'platformId' is not null or undefined
@@ -1248,6 +1347,12 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
1248
1347
  if (dateFilterType !== undefined) {
1249
1348
  localVarQueryParameter['dateFilterType'] = dateFilterType;
1250
1349
  }
1350
+ if (maxOrderTotal !== undefined) {
1351
+ localVarQueryParameter['maxOrderTotal'] = maxOrderTotal;
1352
+ }
1353
+ if (minOrderTotal !== undefined) {
1354
+ localVarQueryParameter['minOrderTotal'] = minOrderTotal;
1355
+ }
1251
1356
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1252
1357
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1253
1358
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1402,6 +1507,43 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
1402
1507
  export const OrdersApiFp = function (configuration) {
1403
1508
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
1404
1509
  return {
1510
+ /**
1511
+ *
1512
+ * @summary Confirm order
1513
+ * @param {string} project Project unique identifier
1514
+ * @param {string} platformId The platform identifier
1515
+ * @param {string} orderId The order identifier
1516
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ */
1520
+ confirmOrder(project, platformId, orderId, confirmOrderRequest, options) {
1521
+ return __awaiter(this, void 0, void 0, function* () {
1522
+ var _a, _b, _c;
1523
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmOrder(project, platformId, orderId, confirmOrderRequest, options);
1524
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1525
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.confirmOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1526
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1527
+ });
1528
+ },
1529
+ /**
1530
+ *
1531
+ * @summary Create order
1532
+ * @param {string} project Project unique identifier
1533
+ * @param {string} platformId The platform identifier
1534
+ * @param {CreateOrder} createOrder Create Order schema
1535
+ * @param {*} [options] Override http request option.
1536
+ * @throws {RequiredError}
1537
+ */
1538
+ createOrder(project, platformId, createOrder, options) {
1539
+ return __awaiter(this, void 0, void 0, function* () {
1540
+ var _a, _b, _c;
1541
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(project, platformId, createOrder, options);
1542
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1543
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1544
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1545
+ });
1546
+ },
1405
1547
  /**
1406
1548
  * Export orders as a CSV file
1407
1549
  * @summary Export orders
@@ -1505,13 +1647,15 @@ export const OrdersApiFp = function (configuration) {
1505
1647
  * @param {string} [start] Start of date range to filter when orders were placed
1506
1648
  * @param {string} [end] End of date range to filter when orders were placed
1507
1649
  * @param {ListOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
1650
+ * @param {number} [maxOrderTotal] The maximum value of the order
1651
+ * @param {number} [minOrderTotal] The minimum value of the order
1508
1652
  * @param {*} [options] Override http request option.
1509
1653
  * @throws {RequiredError}
1510
1654
  */
1511
- listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options) {
1655
+ listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options) {
1512
1656
  return __awaiter(this, void 0, void 0, function* () {
1513
1657
  var _a, _b, _c;
1514
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, options);
1658
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, dateFilterType, maxOrderTotal, minOrderTotal, options);
1515
1659
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1516
1660
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.listOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1517
1661
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1581,6 +1725,26 @@ export const OrdersApiFp = function (configuration) {
1581
1725
  export const OrdersApiFactory = function (configuration, basePath, axios) {
1582
1726
  const localVarFp = OrdersApiFp(configuration);
1583
1727
  return {
1728
+ /**
1729
+ *
1730
+ * @summary Confirm order
1731
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1732
+ * @param {*} [options] Override http request option.
1733
+ * @throws {RequiredError}
1734
+ */
1735
+ confirmOrder(requestParameters, options) {
1736
+ return localVarFp.confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(axios, basePath));
1737
+ },
1738
+ /**
1739
+ *
1740
+ * @summary Create order
1741
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1742
+ * @param {*} [options] Override http request option.
1743
+ * @throws {RequiredError}
1744
+ */
1745
+ createOrder(requestParameters, options) {
1746
+ return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
1747
+ },
1584
1748
  /**
1585
1749
  * Export orders as a CSV file
1586
1750
  * @summary Export orders
@@ -1639,7 +1803,7 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1639
1803
  * @throws {RequiredError}
1640
1804
  */
1641
1805
  listOrders(requestParameters, options) {
1642
- return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
1806
+ return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxOrderTotal, requestParameters.minOrderTotal, options).then((request) => request(axios, basePath));
1643
1807
  },
1644
1808
  /**
1645
1809
  * Retries failed platform payment, so fulfillment can proceed.
@@ -1680,6 +1844,28 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1680
1844
  * @extends {BaseAPI}
1681
1845
  */
1682
1846
  export class OrdersApi extends BaseAPI {
1847
+ /**
1848
+ *
1849
+ * @summary Confirm order
1850
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1851
+ * @param {*} [options] Override http request option.
1852
+ * @throws {RequiredError}
1853
+ * @memberof OrdersApi
1854
+ */
1855
+ confirmOrder(requestParameters, options) {
1856
+ return OrdersApiFp(this.configuration).confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(this.axios, this.basePath));
1857
+ }
1858
+ /**
1859
+ *
1860
+ * @summary Create order
1861
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1862
+ * @param {*} [options] Override http request option.
1863
+ * @throws {RequiredError}
1864
+ * @memberof OrdersApi
1865
+ */
1866
+ createOrder(requestParameters, options) {
1867
+ return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
1868
+ }
1683
1869
  /**
1684
1870
  * Export orders as a CSV file
1685
1871
  * @summary Export orders
@@ -1744,7 +1930,7 @@ export class OrdersApi extends BaseAPI {
1744
1930
  * @memberof OrdersApi
1745
1931
  */
1746
1932
  listOrders(requestParameters, options) {
1747
- return OrdersApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
1933
+ return OrdersApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, requestParameters.maxOrderTotal, requestParameters.minOrderTotal, options).then((request) => request(this.axios, this.basePath));
1748
1934
  }
1749
1935
  /**
1750
1936
  * Retries failed platform payment, so fulfillment can proceed.
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.26.0
5
+ * The version of the OpenAPI document: 0.28.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.26.0
7
+ * The version of the OpenAPI document: 0.28.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.26.0
5
+ * The version of the OpenAPI document: 0.28.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.26.0
7
+ * The version of the OpenAPI document: 0.28.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.26.0
5
+ * The version of the OpenAPI document: 0.28.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.26.0
7
+ * The version of the OpenAPI document: 0.28.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.26.0
5
+ * The version of the OpenAPI document: 0.28.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.26.0
7
+ * The version of the OpenAPI document: 0.28.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.26.0
5
+ * The version of the OpenAPI document: 0.28.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.26.0
8
+ * The version of the OpenAPI document: 0.28.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,24 @@
1
+ # ConfirmOrderFulfillment
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fulfillmentId** | **string** | Unique object identifier | [default to undefined]
9
+ **shippingMethodId** | **string** | Unique object identifier | [optional] [default to undefined]
10
+ **shipment** | [**ConfirmOrderFulfillmentShipment**](ConfirmOrderFulfillmentShipment.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ConfirmOrderFulfillment } from '@teemill/platform';
16
+
17
+ const instance: ConfirmOrderFulfillment = {
18
+ fulfillmentId,
19
+ shippingMethodId,
20
+ shipment,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,21 @@
1
+ # ConfirmOrderFulfillmentShipment
2
+
3
+ This field is only required if you are using your own shipping label.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **image** | **string** | Only required if you are generating shipping labels outside of PodOS | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmOrderFulfillmentShipment } from '@teemill/platform';
15
+
16
+ const instance: ConfirmOrderFulfillmentShipment = {
17
+ image,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # ConfirmOrderRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fulfillments** | [**Array<ConfirmOrderFulfillment>**](ConfirmOrderFulfillment.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ConfirmOrderRequest } from '@teemill/platform';
14
+
15
+ const instance: ConfirmOrderRequest = {
16
+ fulfillments,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,33 @@
1
+ # CreateOrder
2
+
3
+ Create an order
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **merchantReference** | **string** | A custom reference to the merchant\'s order. | [optional] [default to undefined]
10
+ **contactInformation** | [**CreateOrderContactInformation**](CreateOrderContactInformation.md) | | [default to undefined]
11
+ **shippingAddress** | [**Address**](Address.md) | | [default to undefined]
12
+ **customsInformation** | [**CustomsInformation**](CustomsInformation.md) | | [optional] [default to undefined]
13
+ **items** | [**Array<OrderItem1>**](OrderItem1.md) | Items to be ordered | [default to undefined]
14
+ **preferredFulfillers** | **Array<string>** | | [optional] [default to undefined]
15
+ **originalOrderRef** | **string** | A reference to the resource location | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { CreateOrder } from '@teemill/platform';
21
+
22
+ const instance: CreateOrder = {
23
+ merchantReference,
24
+ contactInformation,
25
+ shippingAddress,
26
+ customsInformation,
27
+ items,
28
+ preferredFulfillers,
29
+ originalOrderRef,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # CreateOrderContactInformation
2
+
3
+ Contact information for the order
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **email** | **string** | | [default to undefined]
10
+ **phone** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CreateOrderContactInformation } from '@teemill/platform';
16
+
17
+ const instance: CreateOrderContactInformation = {
18
+ email,
19
+ phone,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,27 @@
1
+ # CustomsInformation
2
+
3
+ Customs information for the order. **Note:** Adding customs information to an order is only compatible with Shipmate at this time
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **preRegistrationType** | **string** | Pre-registration type | [optional] [default to undefined]
10
+ **preRegistrationNumber** | **string** | Pre-registration number | [optional] [default to undefined]
11
+ **vatNumber** | **string** | VAT number | [optional] [default to undefined]
12
+ **eoriNumber** | **string** | EORI number | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { CustomsInformation } from '@teemill/platform';
18
+
19
+ const instance: CustomsInformation = {
20
+ preRegistrationType,
21
+ preRegistrationNumber,
22
+ vatNumber,
23
+ eoriNumber,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # OrderItem1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
9
+ **quantity** | **number** | | [default to undefined]
10
+ **recipientCost** | [**OrderItem1RecipientCost**](OrderItem1RecipientCost.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OrderItem1 } from '@teemill/platform';
16
+
17
+ const instance: OrderItem1 = {
18
+ variantRef,
19
+ quantity,
20
+ recipientCost,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # OrderItem1RecipientCost
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **amount** | **string** | | [default to undefined]
9
+ **currencyCode** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { OrderItem1RecipientCost } from '@teemill/platform';
15
+
16
+ const instance: OrderItem1RecipientCost = {
17
+ amount,
18
+ currencyCode,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)