@teemill/orders 1.31.2 → 1.33.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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +16 -8
- package/base.ts +1 -1
- package/common.ts +3 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +16 -8
- package/dist/api.js +5 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +16 -8
- package/dist/esm/api.js +5 -5
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Order.md +3 -1
- package/docs/OrderItem.md +4 -2
- package/docs/OrdersApi.md +1 -1
- package/git_push.sh +14 -17
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.25.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.
|
|
1
|
+
## @teemill/orders@1.33.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/orders@1.
|
|
39
|
+
npm install @teemill/orders@1.33.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -463,7 +463,7 @@ export interface Order {
|
|
|
463
463
|
*/
|
|
464
464
|
'items': Array<OrderItem>;
|
|
465
465
|
/**
|
|
466
|
-
* The total price of the order including tax and after discounts.
|
|
466
|
+
* The total price of the order including tax, additional fees, and after discounts.
|
|
467
467
|
*/
|
|
468
468
|
'totalPrice'?: Price;
|
|
469
469
|
/**
|
|
@@ -486,6 +486,10 @@ export interface Order {
|
|
|
486
486
|
* The total shipping cost for the order.
|
|
487
487
|
*/
|
|
488
488
|
'shippingPrice'?: Price;
|
|
489
|
+
/**
|
|
490
|
+
* Additional fees on the order, such as handling. This is a single summed value and is included in totalPrice.
|
|
491
|
+
*/
|
|
492
|
+
'additionalFees'?: Price;
|
|
489
493
|
'origin'?: Origin;
|
|
490
494
|
/**
|
|
491
495
|
* A chronological list of status changes for this order.
|
|
@@ -716,13 +720,17 @@ export interface OrderItem {
|
|
|
716
720
|
*/
|
|
717
721
|
'totalPrice'?: Price;
|
|
718
722
|
/**
|
|
719
|
-
* The tax amount for this line item. This is an estimate until the order has been confirmed.
|
|
723
|
+
* The tax amount for this line item after discounts. This is an estimate until the order has been confirmed.
|
|
720
724
|
*/
|
|
721
725
|
'taxPrice'?: Price;
|
|
722
726
|
/**
|
|
723
|
-
* The
|
|
727
|
+
* The price for this line item, including tax and before discounts.
|
|
724
728
|
*/
|
|
725
729
|
'subtotalPrice'?: Price;
|
|
730
|
+
/**
|
|
731
|
+
* The net price for this line item, excluding tax and before discounts.
|
|
732
|
+
*/
|
|
733
|
+
'subtotalExTaxPrice'?: Price;
|
|
726
734
|
/**
|
|
727
735
|
* The discount amount applied to this line item.
|
|
728
736
|
*/
|
|
@@ -1054,7 +1062,7 @@ export type VatRegisteredFilterOption = typeof VatRegisteredFilterOption[keyof t
|
|
|
1054
1062
|
export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1055
1063
|
return {
|
|
1056
1064
|
/**
|
|
1057
|
-
* Cancels
|
|
1065
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1058
1066
|
* @summary Cancel order
|
|
1059
1067
|
* @param {string} project The project identifier to scope the request to.
|
|
1060
1068
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -1759,7 +1767,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
1759
1767
|
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
1760
1768
|
return {
|
|
1761
1769
|
/**
|
|
1762
|
-
* Cancels
|
|
1770
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1763
1771
|
* @summary Cancel order
|
|
1764
1772
|
* @param {string} project The project identifier to scope the request to.
|
|
1765
1773
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -1956,7 +1964,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
1956
1964
|
const localVarFp = OrdersApiFp(configuration)
|
|
1957
1965
|
return {
|
|
1958
1966
|
/**
|
|
1959
|
-
* Cancels
|
|
1967
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1960
1968
|
* @summary Cancel order
|
|
1961
1969
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1962
1970
|
* @param {*} [options] Override http request option.
|
|
@@ -2363,7 +2371,7 @@ export interface OrdersApiRetryPlatformPaymentRequest {
|
|
|
2363
2371
|
*/
|
|
2364
2372
|
export class OrdersApi extends BaseAPI {
|
|
2365
2373
|
/**
|
|
2366
|
-
* Cancels
|
|
2374
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
2367
2375
|
* @summary Cancel order
|
|
2368
2376
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
2369
2377
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -154,8 +154,8 @@ export const toPathString = function (url: URL) {
|
|
|
154
154
|
* @export
|
|
155
155
|
*/
|
|
156
156
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
157
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
157
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
158
158
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
159
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
159
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
160
160
|
};
|
|
161
161
|
}
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Orders
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.33.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -443,7 +443,7 @@ export interface Order {
|
|
|
443
443
|
*/
|
|
444
444
|
'items': Array<OrderItem>;
|
|
445
445
|
/**
|
|
446
|
-
* The total price of the order including tax and after discounts.
|
|
446
|
+
* The total price of the order including tax, additional fees, and after discounts.
|
|
447
447
|
*/
|
|
448
448
|
'totalPrice'?: Price;
|
|
449
449
|
/**
|
|
@@ -466,6 +466,10 @@ export interface Order {
|
|
|
466
466
|
* The total shipping cost for the order.
|
|
467
467
|
*/
|
|
468
468
|
'shippingPrice'?: Price;
|
|
469
|
+
/**
|
|
470
|
+
* Additional fees on the order, such as handling. This is a single summed value and is included in totalPrice.
|
|
471
|
+
*/
|
|
472
|
+
'additionalFees'?: Price;
|
|
469
473
|
'origin'?: Origin;
|
|
470
474
|
/**
|
|
471
475
|
* A chronological list of status changes for this order.
|
|
@@ -676,13 +680,17 @@ export interface OrderItem {
|
|
|
676
680
|
*/
|
|
677
681
|
'totalPrice'?: Price;
|
|
678
682
|
/**
|
|
679
|
-
* The tax amount for this line item. This is an estimate until the order has been confirmed.
|
|
683
|
+
* The tax amount for this line item after discounts. This is an estimate until the order has been confirmed.
|
|
680
684
|
*/
|
|
681
685
|
'taxPrice'?: Price;
|
|
682
686
|
/**
|
|
683
|
-
* The
|
|
687
|
+
* The price for this line item, including tax and before discounts.
|
|
684
688
|
*/
|
|
685
689
|
'subtotalPrice'?: Price;
|
|
690
|
+
/**
|
|
691
|
+
* The net price for this line item, excluding tax and before discounts.
|
|
692
|
+
*/
|
|
693
|
+
'subtotalExTaxPrice'?: Price;
|
|
686
694
|
/**
|
|
687
695
|
* The discount amount applied to this line item.
|
|
688
696
|
*/
|
|
@@ -994,7 +1002,7 @@ export type VatRegisteredFilterOption = typeof VatRegisteredFilterOption[keyof t
|
|
|
994
1002
|
*/
|
|
995
1003
|
export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
996
1004
|
/**
|
|
997
|
-
* Cancels
|
|
1005
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
998
1006
|
* @summary Cancel order
|
|
999
1007
|
* @param {string} project The project identifier to scope the request to.
|
|
1000
1008
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -1127,7 +1135,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1127
1135
|
*/
|
|
1128
1136
|
export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
1129
1137
|
/**
|
|
1130
|
-
* Cancels
|
|
1138
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1131
1139
|
* @summary Cancel order
|
|
1132
1140
|
* @param {string} project The project identifier to scope the request to.
|
|
1133
1141
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -1260,7 +1268,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1260
1268
|
*/
|
|
1261
1269
|
export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1262
1270
|
/**
|
|
1263
|
-
* Cancels
|
|
1271
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1264
1272
|
* @summary Cancel order
|
|
1265
1273
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1266
1274
|
* @param {*} [options] Override http request option.
|
|
@@ -1597,7 +1605,7 @@ export interface OrdersApiRetryPlatformPaymentRequest {
|
|
|
1597
1605
|
*/
|
|
1598
1606
|
export declare class OrdersApi extends BaseAPI {
|
|
1599
1607
|
/**
|
|
1600
|
-
* Cancels
|
|
1608
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1601
1609
|
* @summary Cancel order
|
|
1602
1610
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1603
1611
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.33.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -130,7 +130,7 @@ exports.VatRegisteredFilterOption = {
|
|
|
130
130
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
131
131
|
return {
|
|
132
132
|
/**
|
|
133
|
-
* Cancels
|
|
133
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
134
134
|
* @summary Cancel order
|
|
135
135
|
* @param {string} project The project identifier to scope the request to.
|
|
136
136
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -728,7 +728,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
728
728
|
const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
729
729
|
return {
|
|
730
730
|
/**
|
|
731
|
-
* Cancels
|
|
731
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
732
732
|
* @summary Cancel order
|
|
733
733
|
* @param {string} project The project identifier to scope the request to.
|
|
734
734
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -961,7 +961,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
961
961
|
const localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
962
962
|
return {
|
|
963
963
|
/**
|
|
964
|
-
* Cancels
|
|
964
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
965
965
|
* @summary Cancel order
|
|
966
966
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
967
967
|
* @param {*} [options] Override http request option.
|
|
@@ -1088,7 +1088,7 @@ exports.OrdersApiFactory = OrdersApiFactory;
|
|
|
1088
1088
|
*/
|
|
1089
1089
|
class OrdersApi extends base_1.BaseAPI {
|
|
1090
1090
|
/**
|
|
1091
|
-
* Cancels
|
|
1091
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1092
1092
|
* @summary Cancel order
|
|
1093
1093
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1094
1094
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.33.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.33.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -443,7 +443,7 @@ export interface Order {
|
|
|
443
443
|
*/
|
|
444
444
|
'items': Array<OrderItem>;
|
|
445
445
|
/**
|
|
446
|
-
* The total price of the order including tax and after discounts.
|
|
446
|
+
* The total price of the order including tax, additional fees, and after discounts.
|
|
447
447
|
*/
|
|
448
448
|
'totalPrice'?: Price;
|
|
449
449
|
/**
|
|
@@ -466,6 +466,10 @@ export interface Order {
|
|
|
466
466
|
* The total shipping cost for the order.
|
|
467
467
|
*/
|
|
468
468
|
'shippingPrice'?: Price;
|
|
469
|
+
/**
|
|
470
|
+
* Additional fees on the order, such as handling. This is a single summed value and is included in totalPrice.
|
|
471
|
+
*/
|
|
472
|
+
'additionalFees'?: Price;
|
|
469
473
|
'origin'?: Origin;
|
|
470
474
|
/**
|
|
471
475
|
* A chronological list of status changes for this order.
|
|
@@ -676,13 +680,17 @@ export interface OrderItem {
|
|
|
676
680
|
*/
|
|
677
681
|
'totalPrice'?: Price;
|
|
678
682
|
/**
|
|
679
|
-
* The tax amount for this line item. This is an estimate until the order has been confirmed.
|
|
683
|
+
* The tax amount for this line item after discounts. This is an estimate until the order has been confirmed.
|
|
680
684
|
*/
|
|
681
685
|
'taxPrice'?: Price;
|
|
682
686
|
/**
|
|
683
|
-
* The
|
|
687
|
+
* The price for this line item, including tax and before discounts.
|
|
684
688
|
*/
|
|
685
689
|
'subtotalPrice'?: Price;
|
|
690
|
+
/**
|
|
691
|
+
* The net price for this line item, excluding tax and before discounts.
|
|
692
|
+
*/
|
|
693
|
+
'subtotalExTaxPrice'?: Price;
|
|
686
694
|
/**
|
|
687
695
|
* The discount amount applied to this line item.
|
|
688
696
|
*/
|
|
@@ -994,7 +1002,7 @@ export type VatRegisteredFilterOption = typeof VatRegisteredFilterOption[keyof t
|
|
|
994
1002
|
*/
|
|
995
1003
|
export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
996
1004
|
/**
|
|
997
|
-
* Cancels
|
|
1005
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
998
1006
|
* @summary Cancel order
|
|
999
1007
|
* @param {string} project The project identifier to scope the request to.
|
|
1000
1008
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -1127,7 +1135,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1127
1135
|
*/
|
|
1128
1136
|
export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
1129
1137
|
/**
|
|
1130
|
-
* Cancels
|
|
1138
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1131
1139
|
* @summary Cancel order
|
|
1132
1140
|
* @param {string} project The project identifier to scope the request to.
|
|
1133
1141
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -1260,7 +1268,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
1260
1268
|
*/
|
|
1261
1269
|
export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1262
1270
|
/**
|
|
1263
|
-
* Cancels
|
|
1271
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1264
1272
|
* @summary Cancel order
|
|
1265
1273
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1266
1274
|
* @param {*} [options] Override http request option.
|
|
@@ -1597,7 +1605,7 @@ export interface OrdersApiRetryPlatformPaymentRequest {
|
|
|
1597
1605
|
*/
|
|
1598
1606
|
export declare class OrdersApi extends BaseAPI {
|
|
1599
1607
|
/**
|
|
1600
|
-
* Cancels
|
|
1608
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1601
1609
|
* @summary Cancel order
|
|
1602
1610
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1603
1611
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -127,7 +127,7 @@ export const VatRegisteredFilterOption = {
|
|
|
127
127
|
export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
128
128
|
return {
|
|
129
129
|
/**
|
|
130
|
-
* Cancels
|
|
130
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
131
131
|
* @summary Cancel order
|
|
132
132
|
* @param {string} project The project identifier to scope the request to.
|
|
133
133
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -724,7 +724,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
724
724
|
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
|
|
725
725
|
return {
|
|
726
726
|
/**
|
|
727
|
-
* Cancels
|
|
727
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
728
728
|
* @summary Cancel order
|
|
729
729
|
* @param {string} project The project identifier to scope the request to.
|
|
730
730
|
* @param {string} orderId Unique identifier of an order
|
|
@@ -956,7 +956,7 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
956
956
|
const localVarFp = OrdersApiFp(configuration);
|
|
957
957
|
return {
|
|
958
958
|
/**
|
|
959
|
-
* Cancels
|
|
959
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
960
960
|
* @summary Cancel order
|
|
961
961
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
962
962
|
* @param {*} [options] Override http request option.
|
|
@@ -1082,7 +1082,7 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1082
1082
|
*/
|
|
1083
1083
|
export class OrdersApi extends BaseAPI {
|
|
1084
1084
|
/**
|
|
1085
|
-
* Cancels
|
|
1085
|
+
* Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
1086
1086
|
* @summary Cancel order
|
|
1087
1087
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
1088
1088
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.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
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.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
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Orders
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.33.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.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
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.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
|
* Orders
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 1.33.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
|
* Orders
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 1.33.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Order.md
CHANGED
|
@@ -20,12 +20,13 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**merchantReference** | **string** | Your own reference for this order, such as an order number from your storefront. | [optional] [default to undefined]
|
|
21
21
|
**fulfillments** | [**Array<Fulfillment>**](Fulfillment.md) | The fulfillment groups for this order. Each fulfillment represents a package that will be shipped separately. | [optional] [readonly] [default to undefined]
|
|
22
22
|
**items** | [**Array<OrderItem>**](OrderItem.md) | The line items included in this order. | [default to undefined]
|
|
23
|
-
**totalPrice** | [**Price**](Price.md) | The total price of the order including tax and after discounts. | [optional] [default to undefined]
|
|
23
|
+
**totalPrice** | [**Price**](Price.md) | The total price of the order including tax, additional fees, and after discounts. | [optional] [default to undefined]
|
|
24
24
|
**taxPrice** | [**Price**](Price.md) | The total tax amount for the order. | [optional] [default to undefined]
|
|
25
25
|
**subtotalPrice** | [**Price**](Price.md) | The net items price excluding tax and before discounts. | [optional] [default to undefined]
|
|
26
26
|
**discountPrice** | [**Price**](Price.md) | The total discount amount applied to the order. | [optional] [default to undefined]
|
|
27
27
|
**coupon** | [**Coupon**](Coupon.md) | The coupon applied to the order, if any. | [optional] [default to undefined]
|
|
28
28
|
**shippingPrice** | [**Price**](Price.md) | The total shipping cost for the order. | [optional] [default to undefined]
|
|
29
|
+
**additionalFees** | [**Price**](Price.md) | Additional fees on the order, such as handling. This is a single summed value and is included in totalPrice. | [optional] [default to undefined]
|
|
29
30
|
**origin** | [**Origin**](Origin.md) | | [optional] [default to undefined]
|
|
30
31
|
**statusHistory** | [**Array<StatusHistoryItem>**](StatusHistoryItem.md) | A chronological list of status changes for this order. | [optional] [default to undefined]
|
|
31
32
|
**paymentAttempts** | [**Array<PaymentAttempt>**](PaymentAttempt.md) | A list of payment attempts made for this order. | [optional] [default to undefined]
|
|
@@ -56,6 +57,7 @@ const instance: Order = {
|
|
|
56
57
|
discountPrice,
|
|
57
58
|
coupon,
|
|
58
59
|
shippingPrice,
|
|
60
|
+
additionalFees,
|
|
59
61
|
origin,
|
|
60
62
|
statusHistory,
|
|
61
63
|
paymentAttempts,
|
package/docs/OrderItem.md
CHANGED
|
@@ -13,8 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**name** | **string** | The display name of the product. | [optional] [readonly] [default to undefined]
|
|
14
14
|
**images** | [**Array<Image>**](Image.md) | Product images associated with this item. | [optional] [readonly] [default to undefined]
|
|
15
15
|
**totalPrice** | [**Price**](Price.md) | The total price for this line item including tax and after discounts. | [optional] [readonly] [default to undefined]
|
|
16
|
-
**taxPrice** | [**Price**](Price.md) | The tax amount for this line item. This is an estimate until the order has been confirmed. | [optional] [readonly] [default to undefined]
|
|
17
|
-
**subtotalPrice** | [**Price**](Price.md) | The
|
|
16
|
+
**taxPrice** | [**Price**](Price.md) | The tax amount for this line item after discounts. This is an estimate until the order has been confirmed. | [optional] [readonly] [default to undefined]
|
|
17
|
+
**subtotalPrice** | [**Price**](Price.md) | The price for this line item, including tax and before discounts. | [optional] [readonly] [default to undefined]
|
|
18
|
+
**subtotalExTaxPrice** | [**Price**](Price.md) | The net price for this line item, excluding tax and before discounts. | [optional] [readonly] [default to undefined]
|
|
18
19
|
**discountPrice** | [**Price**](Price.md) | The discount amount applied to this line item. | [optional] [readonly] [default to undefined]
|
|
19
20
|
**recipientCost** | [**Price**](Price.md) | The price you charged the recipient for each item. Highly recommended for international orders as it aids customs declarations. | [optional] [default to undefined]
|
|
20
21
|
|
|
@@ -33,6 +34,7 @@ const instance: OrderItem = {
|
|
|
33
34
|
totalPrice,
|
|
34
35
|
taxPrice,
|
|
35
36
|
subtotalPrice,
|
|
37
|
+
subtotalExTaxPrice,
|
|
36
38
|
discountPrice,
|
|
37
39
|
recipientCost,
|
|
38
40
|
};
|
package/docs/OrdersApi.md
CHANGED
|
@@ -20,7 +20,7 @@ All URIs are relative to *https://api.localhost:8080*
|
|
|
20
20
|
# **cancelOrder**
|
|
21
21
|
> cancelOrder()
|
|
22
22
|
|
|
23
|
-
Cancels
|
|
23
|
+
Cancels a confirmed, paid order and issues a refund. Only orders in `paid` status can be cancelled — both the order and all of its fulfillments must be `paid` and must not yet have started processing. Unconfirmed orders (`new`, `quote`) do not need to be cancelled. If an order has not been confirmed, you can simply leave it; it will not be processed.
|
|
24
24
|
|
|
25
25
|
### Example
|
|
26
26
|
|
package/git_push.sh
CHANGED
|
@@ -8,24 +8,24 @@ git_repo_id=$2
|
|
|
8
8
|
release_note=$3
|
|
9
9
|
git_host=$4
|
|
10
10
|
|
|
11
|
-
if [ "$git_host"
|
|
11
|
+
if [ -z "${git_host}" ]; then
|
|
12
12
|
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \${git_host} to ${git_host}"
|
|
14
14
|
fi
|
|
15
15
|
|
|
16
|
-
if [ "$git_user_id"
|
|
16
|
+
if [ -z "${git_user_id}" ]; then
|
|
17
17
|
git_user_id="Teemill"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \${git_user_id} to ${git_user_id}"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
|
-
if [ "$git_repo_id"
|
|
21
|
+
if [ -z "${git_repo_id}" ]; then
|
|
22
22
|
git_repo_id="public-api"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \${git_repo_id} to ${git_repo_id}"
|
|
24
24
|
fi
|
|
25
25
|
|
|
26
|
-
if [ "$release_note"
|
|
26
|
+
if [ -z "${release_note}" ]; then
|
|
27
27
|
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \${release_note} to ${release_note}"
|
|
29
29
|
fi
|
|
30
30
|
|
|
31
31
|
# Initialize the local directory as a Git repository
|
|
@@ -35,19 +35,16 @@ git init
|
|
|
35
35
|
git add .
|
|
36
36
|
|
|
37
37
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
38
|
+
git commit -m "${release_note}"
|
|
39
39
|
|
|
40
40
|
# Sets the new remote
|
|
41
|
-
|
|
42
|
-
if [ "$
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
41
|
+
if [ -z "$(git remote)" ]; then # git remote not defined
|
|
42
|
+
if [ -z "${GIT_TOKEN:-}" ]; then
|
|
43
|
+
echo "[INFO] \${GIT_TOKEN} (environment variable) is not set. Using the git credential in your environment."
|
|
44
|
+
git remote add origin "https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
47
45
|
else
|
|
48
|
-
git remote add origin https://${git_user_id}
|
|
46
|
+
git remote add origin "https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
49
47
|
fi
|
|
50
|
-
|
|
51
48
|
fi
|
|
52
49
|
|
|
53
50
|
git pull origin master
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.33.0
|
|
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.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "OpenAPI client for @teemill/orders",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"axios": "
|
|
27
|
+
"axios": "1.18.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "12.11.5 - 12.20.42",
|