@digital8/lighting-illusions-ts-sdk 0.0.1932 → 0.0.1933
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/FILES +8 -8
- package/README.md +7 -8
- package/dist/apis/AdminApi.d.ts +17 -0
- package/dist/apis/AdminApi.js +60 -0
- package/dist/apis/OrdersApi.d.ts +2 -37
- package/dist/apis/OrdersApi.js +1 -126
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -4
- package/dist/models/AdminNoteResource.d.ts +68 -0
- package/dist/models/AdminNoteResource.js +71 -0
- package/dist/models/AdminNoteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminNoteResourceArrayResponse.js +50 -0
- package/dist/models/AdminOrderResource.d.ts +4 -16
- package/dist/models/AdminOrderResource.js +7 -15
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +3 -15
- package/dist/models/CartResource.js +6 -12
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllAdminNoteRequest.d.ts +102 -0
- package/dist/models/GetAllAdminNoteRequest.js +82 -0
- package/dist/models/GetAllOrderRequest.d.ts +0 -1
- package/dist/models/GetAllOrderRequest.js +1 -2
- package/dist/models/IndexOrderRequest.d.ts +0 -1
- package/dist/models/IndexOrderRequest.js +1 -2
- package/dist/models/OrderListResource.d.ts +0 -18
- package/dist/models/OrderListResource.js +0 -10
- package/dist/models/PaginatedAdminNoteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAdminNoteResourceResponse.js +57 -0
- package/dist/models/StoreCartRequest.d.ts +0 -6
- package/dist/models/StoreCartRequest.js +0 -2
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
- package/dist/models/StoreStoreRequestAddress.js +0 -2
- package/dist/models/UpdateCartRequest.d.ts +0 -6
- package/dist/models/UpdateCartRequest.js +0 -2
- package/dist/models/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestBillingAddress.js +5 -3
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +6 -2
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminApi.md +66 -0
- package/docs/{OrderStatusWithCountResource.md → AdminNoteResource.md} +16 -10
- package/docs/{AttachCouponOrderRequest.md → AdminNoteResourceArrayResponse.md} +6 -6
- package/docs/AdminOrderResource.md +3 -7
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +4 -8
- package/docs/GetAllAdminNoteRequest.md +52 -0
- package/docs/OrderListResource.md +0 -6
- package/docs/OrdersApi.md +3 -141
- package/docs/{OrderStatusWithCountResourceArrayResponse.md → PaginatedAdminNoteResourceResponse.md} +7 -5
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreStoreRequestAddress.md +0 -2
- package/docs/UpdateCartRequest.md +0 -2
- package/docs/UpdateOrderRequest.md +0 -2
- package/docs/UpdateOrderRequestBillingAddress.md +4 -2
- package/docs/UpdateOrderRequestShippingAddress.md +4 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +54 -0
- package/src/apis/OrdersApi.ts +3 -124
- package/src/models/AddressResource.ts +0 -9
- package/src/models/AdminNoteResource.ts +118 -0
- package/src/models/AdminNoteResourceArrayResponse.ts +73 -0
- package/src/models/AdminOrderResource.ts +10 -28
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +9 -26
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllAdminNoteRequest.ts +157 -0
- package/src/models/GetAllOrderRequest.ts +1 -2
- package/src/models/IndexOrderRequest.ts +1 -2
- package/src/models/OrderListResource.ts +0 -26
- package/src/models/PaginatedAdminNoteResourceResponse.ts +90 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreStoreRequestAddress.ts +0 -8
- package/src/models/UpdateCartRequest.ts +0 -8
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/UpdateOrderRequestBillingAddress.ts +12 -4
- package/src/models/UpdateOrderRequestShippingAddress.ts +12 -3
- package/src/models/index.ts +4 -4
- package/dist/models/AttachCouponOrderRequest.d.ts +0 -32
- package/dist/models/AttachCouponOrderRequest.js +0 -51
- package/dist/models/DetachCouponOrderRequest.d.ts +0 -32
- package/dist/models/DetachCouponOrderRequest.js +0 -51
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
- package/dist/models/OrderStatusWithCountResource.js +0 -63
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
- package/docs/DetachCouponOrderRequest.md +0 -34
- package/src/models/AttachCouponOrderRequest.ts +0 -66
- package/src/models/DetachCouponOrderRequest.ts +0 -66
- package/src/models/OrderStatusWithCountResource.ts +0 -93
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
|
@@ -24,7 +24,13 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateOrderRequestBillingAddress
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
adresseeName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateOrderRequestBillingAddress
|
|
32
|
+
*/
|
|
33
|
+
addressee?: string | null;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -73,7 +79,7 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
73
79
|
* Check if a given object implements the UpdateOrderRequestBillingAddress interface.
|
|
74
80
|
*/
|
|
75
81
|
export function instanceOfUpdateOrderRequestBillingAddress(value: object): value is UpdateOrderRequestBillingAddress {
|
|
76
|
-
if (!('
|
|
82
|
+
if (!('adresseeName' in value) || value['adresseeName'] === undefined) return false;
|
|
77
83
|
return true;
|
|
78
84
|
}
|
|
79
85
|
|
|
@@ -87,7 +93,8 @@ export function UpdateOrderRequestBillingAddressFromJSONTyped(json: any, ignoreD
|
|
|
87
93
|
}
|
|
88
94
|
return {
|
|
89
95
|
|
|
90
|
-
'
|
|
96
|
+
'adresseeName': json['adressee_name'],
|
|
97
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
91
98
|
'company': json['company'] == null ? undefined : json['company'],
|
|
92
99
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
93
100
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -109,7 +116,8 @@ export function UpdateOrderRequestBillingAddressToJSONTyped(value?: UpdateOrderR
|
|
|
109
116
|
|
|
110
117
|
return {
|
|
111
118
|
|
|
112
|
-
'
|
|
119
|
+
'adressee_name': value['adresseeName'],
|
|
120
|
+
'addressee': value['addressee'],
|
|
113
121
|
'company': value['company'],
|
|
114
122
|
'line_1': value['line1'],
|
|
115
123
|
'line_2': value['line2'],
|
|
@@ -24,7 +24,13 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateOrderRequestShippingAddress
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
adresseeName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
32
|
+
*/
|
|
33
|
+
addressee?: string | null;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -73,6 +79,7 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
73
79
|
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
74
80
|
*/
|
|
75
81
|
export function instanceOfUpdateOrderRequestShippingAddress(value: object): value is UpdateOrderRequestShippingAddress {
|
|
82
|
+
if (!('adresseeName' in value) || value['adresseeName'] === undefined) return false;
|
|
76
83
|
return true;
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -86,7 +93,8 @@ export function UpdateOrderRequestShippingAddressFromJSONTyped(json: any, ignore
|
|
|
86
93
|
}
|
|
87
94
|
return {
|
|
88
95
|
|
|
89
|
-
'
|
|
96
|
+
'adresseeName': json['adressee_name'],
|
|
97
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
90
98
|
'company': json['company'] == null ? undefined : json['company'],
|
|
91
99
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
92
100
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -108,7 +116,8 @@ export function UpdateOrderRequestShippingAddressToJSONTyped(value?: UpdateOrder
|
|
|
108
116
|
|
|
109
117
|
return {
|
|
110
118
|
|
|
111
|
-
'
|
|
119
|
+
'adressee_name': value['adresseeName'],
|
|
120
|
+
'addressee': value['addressee'],
|
|
112
121
|
'company': value['company'],
|
|
113
122
|
'line_1': value['line1'],
|
|
114
123
|
'line_2': value['line2'],
|
package/src/models/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './AddressFrontendResourceArrayResponse';
|
|
|
5
5
|
export * from './AddressResource';
|
|
6
6
|
export * from './AddressResourceArrayResponse';
|
|
7
7
|
export * from './AddressType';
|
|
8
|
+
export * from './AdminNoteResource';
|
|
9
|
+
export * from './AdminNoteResourceArrayResponse';
|
|
8
10
|
export * from './AdminOrderResource';
|
|
9
11
|
export * from './AdminOrderResourceArrayResponse';
|
|
10
12
|
export * from './AssetFileForUploadResource';
|
|
@@ -24,7 +26,6 @@ export * from './AttachAttributeProductTypeRequest';
|
|
|
24
26
|
export * from './AttachAttributesProductRangeRequest';
|
|
25
27
|
export * from './AttachAttributesProductRangeRequestAttributesInner';
|
|
26
28
|
export * from './AttachCouponCartRequest';
|
|
27
|
-
export * from './AttachCouponOrderRequest';
|
|
28
29
|
export * from './AttachDocumentablesDocumentRequest';
|
|
29
30
|
export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
30
31
|
export * from './AttachDocumentsProductChildRequest';
|
|
@@ -81,7 +82,6 @@ export * from './DetachAccessoriesProductRangeRequest';
|
|
|
81
82
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
82
83
|
export * from './DetachAttributesProductRangeRequest';
|
|
83
84
|
export * from './DetachCouponCartRequest';
|
|
84
|
-
export * from './DetachCouponOrderRequest';
|
|
85
85
|
export * from './DetachDocumentablesDocumentRequest';
|
|
86
86
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
87
87
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -106,6 +106,7 @@ export * from './ExternalApiLogResourceArrayResponse';
|
|
|
106
106
|
export * from './ExternalApiProvider';
|
|
107
107
|
export * from './ExternalApiSyncStatus';
|
|
108
108
|
export * from './GenericResponse';
|
|
109
|
+
export * from './GetAllAdminNoteRequest';
|
|
109
110
|
export * from './GetAllAttributeRequest';
|
|
110
111
|
export * from './GetAllAttributeValueRequest';
|
|
111
112
|
export * from './GetAllDefinitionRequest';
|
|
@@ -197,8 +198,6 @@ export * from './OrderListResource';
|
|
|
197
198
|
export * from './OrderListResourceArrayResponse';
|
|
198
199
|
export * from './OrderLiteResource';
|
|
199
200
|
export * from './OrderLiteResourceArrayResponse';
|
|
200
|
-
export * from './OrderStatusWithCountResource';
|
|
201
|
-
export * from './OrderStatusWithCountResourceArrayResponse';
|
|
202
201
|
export * from './OverlayTemplateAssetFrontendResource';
|
|
203
202
|
export * from './OverlayTemplateAssetFrontendResourceArrayResponse';
|
|
204
203
|
export * from './OverlayTemplateAssetPosition';
|
|
@@ -210,6 +209,7 @@ export * from './OverlayTemplateLiteResource';
|
|
|
210
209
|
export * from './OverlayTemplateLiteResourceArrayResponse';
|
|
211
210
|
export * from './OverlayTemplateResource';
|
|
212
211
|
export * from './OverlayTemplateResourceArrayResponse';
|
|
212
|
+
export * from './PaginatedAdminNoteResourceResponse';
|
|
213
213
|
export * from './PaginatedAttributeListResourceResponse';
|
|
214
214
|
export * from './PaginatedAttributeLiteResourceResponse';
|
|
215
215
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AttachCouponOrderRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachCouponOrderRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AttachCouponOrderRequest
|
|
22
|
-
*/
|
|
23
|
-
couponCode: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AttachCouponOrderRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfAttachCouponOrderRequest(value: object): value is AttachCouponOrderRequest;
|
|
29
|
-
export declare function AttachCouponOrderRequestFromJSON(json: any): AttachCouponOrderRequest;
|
|
30
|
-
export declare function AttachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponOrderRequest;
|
|
31
|
-
export declare function AttachCouponOrderRequestToJSON(json: any): AttachCouponOrderRequest;
|
|
32
|
-
export declare function AttachCouponOrderRequestToJSONTyped(value?: AttachCouponOrderRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfAttachCouponOrderRequest = instanceOfAttachCouponOrderRequest;
|
|
17
|
-
exports.AttachCouponOrderRequestFromJSON = AttachCouponOrderRequestFromJSON;
|
|
18
|
-
exports.AttachCouponOrderRequestFromJSONTyped = AttachCouponOrderRequestFromJSONTyped;
|
|
19
|
-
exports.AttachCouponOrderRequestToJSON = AttachCouponOrderRequestToJSON;
|
|
20
|
-
exports.AttachCouponOrderRequestToJSONTyped = AttachCouponOrderRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AttachCouponOrderRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAttachCouponOrderRequest(value) {
|
|
25
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function AttachCouponOrderRequestFromJSON(json) {
|
|
30
|
-
return AttachCouponOrderRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function AttachCouponOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponCode': json['coupon_code'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function AttachCouponOrderRequestToJSON(json) {
|
|
41
|
-
return AttachCouponOrderRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function AttachCouponOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'coupon_code': value['couponCode'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DetachCouponOrderRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface DetachCouponOrderRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof DetachCouponOrderRequest
|
|
22
|
-
*/
|
|
23
|
-
couponId: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the DetachCouponOrderRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfDetachCouponOrderRequest(value: object): value is DetachCouponOrderRequest;
|
|
29
|
-
export declare function DetachCouponOrderRequestFromJSON(json: any): DetachCouponOrderRequest;
|
|
30
|
-
export declare function DetachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponOrderRequest;
|
|
31
|
-
export declare function DetachCouponOrderRequestToJSON(json: any): DetachCouponOrderRequest;
|
|
32
|
-
export declare function DetachCouponOrderRequestToJSONTyped(value?: DetachCouponOrderRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfDetachCouponOrderRequest = instanceOfDetachCouponOrderRequest;
|
|
17
|
-
exports.DetachCouponOrderRequestFromJSON = DetachCouponOrderRequestFromJSON;
|
|
18
|
-
exports.DetachCouponOrderRequestFromJSONTyped = DetachCouponOrderRequestFromJSONTyped;
|
|
19
|
-
exports.DetachCouponOrderRequestToJSON = DetachCouponOrderRequestToJSON;
|
|
20
|
-
exports.DetachCouponOrderRequestToJSONTyped = DetachCouponOrderRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the DetachCouponOrderRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfDetachCouponOrderRequest(value) {
|
|
25
|
-
if (!('couponId' in value) || value['couponId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function DetachCouponOrderRequestFromJSON(json) {
|
|
30
|
-
return DetachCouponOrderRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function DetachCouponOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponId': json['coupon_id'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function DetachCouponOrderRequestToJSON(json) {
|
|
41
|
-
return DetachCouponOrderRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DetachCouponOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'coupon_id': value['couponId'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface OrderStatusWithCountResource
|
|
16
|
-
*/
|
|
17
|
-
export interface OrderStatusWithCountResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof OrderStatusWithCountResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OrderStatusWithCountResource
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof OrderStatusWithCountResource
|
|
34
|
-
*/
|
|
35
|
-
isOrderNetsuiteSyncable: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof OrderStatusWithCountResource
|
|
40
|
-
*/
|
|
41
|
-
ordersCount: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the OrderStatusWithCountResource interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfOrderStatusWithCountResource(value: object): value is OrderStatusWithCountResource;
|
|
47
|
-
export declare function OrderStatusWithCountResourceFromJSON(json: any): OrderStatusWithCountResource;
|
|
48
|
-
export declare function OrderStatusWithCountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusWithCountResource;
|
|
49
|
-
export declare function OrderStatusWithCountResourceToJSON(json: any): OrderStatusWithCountResource;
|
|
50
|
-
export declare function OrderStatusWithCountResourceToJSONTyped(value?: OrderStatusWithCountResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfOrderStatusWithCountResource = instanceOfOrderStatusWithCountResource;
|
|
17
|
-
exports.OrderStatusWithCountResourceFromJSON = OrderStatusWithCountResourceFromJSON;
|
|
18
|
-
exports.OrderStatusWithCountResourceFromJSONTyped = OrderStatusWithCountResourceFromJSONTyped;
|
|
19
|
-
exports.OrderStatusWithCountResourceToJSON = OrderStatusWithCountResourceToJSON;
|
|
20
|
-
exports.OrderStatusWithCountResourceToJSONTyped = OrderStatusWithCountResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the OrderStatusWithCountResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfOrderStatusWithCountResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('isOrderNetsuiteSyncable' in value) || value['isOrderNetsuiteSyncable'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('ordersCount' in value) || value['ordersCount'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function OrderStatusWithCountResourceFromJSON(json) {
|
|
36
|
-
return OrderStatusWithCountResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function OrderStatusWithCountResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': json['id'],
|
|
44
|
-
'name': json['name'],
|
|
45
|
-
'isOrderNetsuiteSyncable': json['is_order_netsuite_syncable'],
|
|
46
|
-
'ordersCount': json['orders_count'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function OrderStatusWithCountResourceToJSON(json) {
|
|
50
|
-
return OrderStatusWithCountResourceToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function OrderStatusWithCountResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'id': value['id'],
|
|
59
|
-
'name': value['name'],
|
|
60
|
-
'is_order_netsuite_syncable': value['isOrderNetsuiteSyncable'],
|
|
61
|
-
'orders_count': value['ordersCount'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { OrderStatusWithCountResource } from './OrderStatusWithCountResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface OrderStatusWithCountResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface OrderStatusWithCountResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<OrderStatusWithCountResource>}
|
|
22
|
-
* @memberof OrderStatusWithCountResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<OrderStatusWithCountResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the OrderStatusWithCountResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfOrderStatusWithCountResourceArrayResponse(value: object): value is OrderStatusWithCountResourceArrayResponse;
|
|
30
|
-
export declare function OrderStatusWithCountResourceArrayResponseFromJSON(json: any): OrderStatusWithCountResourceArrayResponse;
|
|
31
|
-
export declare function OrderStatusWithCountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusWithCountResourceArrayResponse;
|
|
32
|
-
export declare function OrderStatusWithCountResourceArrayResponseToJSON(json: any): OrderStatusWithCountResourceArrayResponse;
|
|
33
|
-
export declare function OrderStatusWithCountResourceArrayResponseToJSONTyped(value?: OrderStatusWithCountResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfOrderStatusWithCountResourceArrayResponse = instanceOfOrderStatusWithCountResourceArrayResponse;
|
|
17
|
-
exports.OrderStatusWithCountResourceArrayResponseFromJSON = OrderStatusWithCountResourceArrayResponseFromJSON;
|
|
18
|
-
exports.OrderStatusWithCountResourceArrayResponseFromJSONTyped = OrderStatusWithCountResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.OrderStatusWithCountResourceArrayResponseToJSON = OrderStatusWithCountResourceArrayResponseToJSON;
|
|
20
|
-
exports.OrderStatusWithCountResourceArrayResponseToJSONTyped = OrderStatusWithCountResourceArrayResponseToJSONTyped;
|
|
21
|
-
var OrderStatusWithCountResource_1 = require("./OrderStatusWithCountResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the OrderStatusWithCountResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfOrderStatusWithCountResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function OrderStatusWithCountResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return OrderStatusWithCountResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function OrderStatusWithCountResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(OrderStatusWithCountResource_1.OrderStatusWithCountResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function OrderStatusWithCountResourceArrayResponseToJSON(json) {
|
|
40
|
-
return OrderStatusWithCountResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function OrderStatusWithCountResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(OrderStatusWithCountResource_1.OrderStatusWithCountResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DetachCouponOrderRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`couponId` | number
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { DetachCouponOrderRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"couponId": null,
|
|
19
|
-
} satisfies DetachCouponOrderRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as DetachCouponOrderRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface AttachCouponOrderRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachCouponOrderRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AttachCouponOrderRequest
|
|
26
|
-
*/
|
|
27
|
-
couponCode: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the AttachCouponOrderRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfAttachCouponOrderRequest(value: object): value is AttachCouponOrderRequest {
|
|
34
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function AttachCouponOrderRequestFromJSON(json: any): AttachCouponOrderRequest {
|
|
39
|
-
return AttachCouponOrderRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function AttachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponOrderRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponCode': json['coupon_code'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function AttachCouponOrderRequestToJSON(json: any): AttachCouponOrderRequest {
|
|
53
|
-
return AttachCouponOrderRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function AttachCouponOrderRequestToJSONTyped(value?: AttachCouponOrderRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_code': value['couponCode'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DetachCouponOrderRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachCouponOrderRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof DetachCouponOrderRequest
|
|
26
|
-
*/
|
|
27
|
-
couponId: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachCouponOrderRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachCouponOrderRequest(value: object): value is DetachCouponOrderRequest {
|
|
34
|
-
if (!('couponId' in value) || value['couponId'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachCouponOrderRequestFromJSON(json: any): DetachCouponOrderRequest {
|
|
39
|
-
return DetachCouponOrderRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponOrderRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponId': json['coupon_id'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachCouponOrderRequestToJSON(json: any): DetachCouponOrderRequest {
|
|
53
|
-
return DetachCouponOrderRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachCouponOrderRequestToJSONTyped(value?: DetachCouponOrderRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_id': value['couponId'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|