@teemill/orders 1.21.0 → 1.22.1

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
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.21.0
7
+ * The version of the OpenAPI document: 1.22.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,11 +46,6 @@ export const PaymentAttemptStatusEnum = {
46
46
  Pending: 'pending',
47
47
  Cancelled: 'cancelled'
48
48
  };
49
- /**
50
- *
51
- * @export
52
- * @enum {string}
53
- */
54
49
  export const Status = {
55
50
  New: 'new',
56
51
  Paid: 'paid',
@@ -61,7 +56,6 @@ export const Status = {
61
56
  };
62
57
  /**
63
58
  * OrdersApi - axios parameter creator
64
- * @export
65
59
  */
66
60
  export const OrdersApiAxiosParamCreator = function (configuration) {
67
61
  return {
@@ -465,7 +459,6 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
465
459
  };
466
460
  /**
467
461
  * OrdersApi - functional programming interface
468
- * @export
469
462
  */
470
463
  export const OrdersApiFp = function (configuration) {
471
464
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
@@ -626,7 +619,6 @@ export const OrdersApiFp = function (configuration) {
626
619
  };
627
620
  /**
628
621
  * OrdersApi - factory interface
629
- * @export
630
622
  */
631
623
  export const OrdersApiFactory = function (configuration, basePath, axios) {
632
624
  const localVarFp = OrdersApiFp(configuration);
@@ -715,9 +707,6 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
715
707
  };
716
708
  /**
717
709
  * OrdersApi - object-oriented interface
718
- * @export
719
- * @class OrdersApi
720
- * @extends {BaseAPI}
721
710
  */
722
711
  export class OrdersApi extends BaseAPI {
723
712
  /**
@@ -726,7 +715,6 @@ export class OrdersApi extends BaseAPI {
726
715
  * @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
727
716
  * @param {*} [options] Override http request option.
728
717
  * @throws {RequiredError}
729
- * @memberof OrdersApi
730
718
  */
731
719
  cancelOrder(requestParameters, options) {
732
720
  return OrdersApiFp(this.configuration).cancelOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -737,7 +725,6 @@ export class OrdersApi extends BaseAPI {
737
725
  * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
738
726
  * @param {*} [options] Override http request option.
739
727
  * @throws {RequiredError}
740
- * @memberof OrdersApi
741
728
  */
742
729
  confirmOrder(requestParameters, options) {
743
730
  return OrdersApiFp(this.configuration).confirmOrder(requestParameters.project, requestParameters.orderId, requestParameters.confirmOrderRequest, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -748,7 +735,6 @@ export class OrdersApi extends BaseAPI {
748
735
  * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
749
736
  * @param {*} [options] Override http request option.
750
737
  * @throws {RequiredError}
751
- * @memberof OrdersApi
752
738
  */
753
739
  createOrder(requestParameters, options) {
754
740
  return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.createOrder, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -759,7 +745,6 @@ export class OrdersApi extends BaseAPI {
759
745
  * @param {OrdersApiDownloadInvoiceRequest} requestParameters Request parameters.
760
746
  * @param {*} [options] Override http request option.
761
747
  * @throws {RequiredError}
762
- * @memberof OrdersApi
763
748
  */
764
749
  downloadInvoice(requestParameters, options) {
765
750
  return OrdersApiFp(this.configuration).downloadInvoice(requestParameters.project, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
@@ -770,7 +755,6 @@ export class OrdersApi extends BaseAPI {
770
755
  * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
771
756
  * @param {*} [options] Override http request option.
772
757
  * @throws {RequiredError}
773
- * @memberof OrdersApi
774
758
  */
775
759
  exportOrders(requestParameters, options) {
776
760
  return OrdersApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
@@ -781,7 +765,6 @@ export class OrdersApi extends BaseAPI {
781
765
  * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
782
766
  * @param {*} [options] Override http request option.
783
767
  * @throws {RequiredError}
784
- * @memberof OrdersApi
785
768
  */
786
769
  getOrder(requestParameters, options) {
787
770
  return OrdersApiFp(this.configuration).getOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -792,7 +775,6 @@ export class OrdersApi extends BaseAPI {
792
775
  * @param {OrdersApiGetOrdersRequest} requestParameters Request parameters.
793
776
  * @param {*} [options] Override http request option.
794
777
  * @throws {RequiredError}
795
- * @memberof OrdersApi
796
778
  */
797
779
  getOrders(requestParameters, options) {
798
780
  return OrdersApiFp(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
@@ -803,15 +785,11 @@ export class OrdersApi extends BaseAPI {
803
785
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
804
786
  * @param {*} [options] Override http request option.
805
787
  * @throws {RequiredError}
806
- * @memberof OrdersApi
807
788
  */
808
789
  retryPlatformPayment(requestParameters, options) {
809
790
  return OrdersApiFp(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
810
791
  }
811
792
  }
812
- /**
813
- * @export
814
- */
815
793
  export const GetOrdersDateFilterTypeEnum = {
816
794
  CreatedAt: 'createdAt',
817
795
  UpdatedAt: 'updatedAt',
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.21.0
5
+ * The version of the OpenAPI document: 1.22.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,42 +12,22 @@
12
12
  import type { Configuration } from './configuration';
13
13
  import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const COLLECTION_FORMATS: {
20
16
  csv: string;
21
17
  ssv: string;
22
18
  tsv: string;
23
19
  pipes: string;
24
20
  };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
21
  export interface RequestArgs {
31
22
  url: string;
32
23
  options: RawAxiosRequestConfig;
33
24
  }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
25
  export declare class BaseAPI {
40
26
  protected basePath: string;
41
27
  protected axios: AxiosInstance;
42
28
  protected configuration: Configuration | undefined;
43
29
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
30
  }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
31
  export declare class RequiredError extends Error {
52
32
  field: string;
53
33
  constructor(field: string, msg?: string);
@@ -58,9 +38,5 @@ interface ServerMap {
58
38
  description: string;
59
39
  }[];
60
40
  }
61
- /**
62
- *
63
- * @export
64
- */
65
41
  export declare const operationServerMap: ServerMap;
66
42
  export {};
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.21.0
7
+ * The version of the OpenAPI document: 1.22.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,21 +13,12 @@
13
13
  */
14
14
  import globalAxios from 'axios';
15
15
  export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
16
- /**
17
- *
18
- * @export
19
- */
20
16
  export const COLLECTION_FORMATS = {
21
17
  csv: ",",
22
18
  ssv: " ",
23
19
  tsv: "\t",
24
20
  pipes: "|",
25
21
  };
26
- /**
27
- *
28
- * @export
29
- * @class BaseAPI
30
- */
31
22
  export class BaseAPI {
32
23
  constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
24
  var _a;
@@ -40,12 +31,6 @@ export class BaseAPI {
40
31
  }
41
32
  }
42
33
  ;
43
- /**
44
- *
45
- * @export
46
- * @class RequiredError
47
- * @extends {Error}
48
- */
49
34
  export class RequiredError extends Error {
50
35
  constructor(field, msg) {
51
36
  super(msg);
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
53
38
  this.name = "RequiredError";
54
39
  }
55
40
  }
56
- /**
57
- *
58
- * @export
59
- */
60
41
  export const operationServerMap = {};
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.21.0
5
+ * The version of the OpenAPI document: 1.22.1
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
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.21.0
7
+ * The version of the OpenAPI document: 1.22.1
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
  * Orders API
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.21.0
5
+ * The version of the OpenAPI document: 1.22.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,49 +23,32 @@ export declare class Configuration {
23
23
  /**
24
24
  * parameter for apiKey security
25
25
  * @param name security name
26
- * @memberof Configuration
27
26
  */
28
27
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
28
  /**
30
29
  * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
30
  */
35
31
  username?: string;
36
32
  /**
37
33
  * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
34
  */
42
35
  password?: string;
43
36
  /**
44
37
  * parameter for oauth2 security
45
38
  * @param name security name
46
39
  * @param scopes oauth2 scope
47
- * @memberof Configuration
48
40
  */
49
41
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
42
  /**
51
43
  * override base path
52
- *
53
- * @type {string}
54
- * @memberof Configuration
55
44
  */
56
45
  basePath?: string;
57
46
  /**
58
47
  * override server index
59
- *
60
- * @type {number}
61
- * @memberof Configuration
62
48
  */
63
49
  serverIndex?: number;
64
50
  /**
65
51
  * base options for axios calls
66
- *
67
- * @type {any}
68
- * @memberof Configuration
69
52
  */
70
53
  baseOptions?: any;
71
54
  /**
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.21.0
7
+ * The version of the OpenAPI document: 1.22.1
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
  * Orders API
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.21.0
5
+ * The version of the OpenAPI document: 1.22.1
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
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.21.0
7
+ * The version of the OpenAPI document: 1.22.1
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
  * Orders API
3
3
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
4
4
  *
5
- * The version of the OpenAPI document: 1.21.0
5
+ * The version of the OpenAPI document: 1.22.1
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
  * Orders API
6
6
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
7
7
  *
8
- * The version of the OpenAPI document: 1.21.0
8
+ * The version of the OpenAPI document: 1.22.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
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]
9
+ **shippingMethodId** | **string** | Unique object identifier | [default to undefined]
10
+ **shipment** | [**ConfirmOrderFulfillmentWithShipmentShipment**](ConfirmOrderFulfillmentWithShipmentShipment.md) | | [default to undefined]
11
11
 
12
12
  ## Example
13
13
 
@@ -0,0 +1,22 @@
1
+ # ConfirmOrderFulfillmentWithShipment
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fulfillmentId** | **string** | Unique object identifier | [default to undefined]
9
+ **shipment** | [**ConfirmOrderFulfillmentWithShipmentShipment**](ConfirmOrderFulfillmentWithShipmentShipment.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmOrderFulfillmentWithShipment } from '@teemill/orders';
15
+
16
+ const instance: ConfirmOrderFulfillmentWithShipment = {
17
+ fulfillmentId,
18
+ shipment,
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)
@@ -0,0 +1,21 @@
1
+ # ConfirmOrderFulfillmentWithShipmentShipment
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 { ConfirmOrderFulfillmentWithShipmentShipment } from '@teemill/orders';
15
+
16
+ const instance: ConfirmOrderFulfillmentWithShipmentShipment = {
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,22 @@
1
+ # ConfirmOrderFulfillmentWithShippingMethod
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 | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmOrderFulfillmentWithShippingMethod } from '@teemill/orders';
15
+
16
+ const instance: ConfirmOrderFulfillmentWithShippingMethod = {
17
+ fulfillmentId,
18
+ shippingMethodId,
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)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
6
6
  *
7
- * The version of the OpenAPI document: 1.21.0
7
+ * The version of the OpenAPI document: 1.22.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.21.0",
3
+ "version": "1.22.1",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {