@digital8/lighting-illusions-ts-sdk 0.0.2049 → 0.0.2050
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 -18
- package/README.md +8 -14
- package/dist/apis/CartsApi.d.ts +8 -8
- package/dist/apis/CartsApi.js +8 -8
- package/dist/apis/CustomersApi.d.ts +0 -17
- package/dist/apis/CustomersApi.js +0 -62
- package/dist/apis/OrdersApi.d.ts +8 -8
- package/dist/apis/OrdersApi.js +10 -10
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderResource.d.ts +1 -13
- package/dist/models/AdminOrderResource.js +3 -11
- package/dist/models/AttachCouponRequest.d.ts +32 -0
- package/dist/models/AttachCouponRequest.js +51 -0
- package/dist/models/AttachLineItemRequest.d.ts +44 -0
- package/dist/models/{AttachCartItemRequest.js → AttachLineItemRequest.js} +13 -13
- package/dist/models/CartListResource.d.ts +0 -48
- package/dist/models/CartListResource.js +0 -26
- package/dist/models/CartResource.d.ts +2 -2
- package/dist/models/CartResource.js +2 -2
- package/dist/models/DetachCouponRequest.d.ts +32 -0
- package/dist/models/DetachCouponRequest.js +51 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/UpdateLineItemRequest.d.ts +38 -0
- package/dist/models/{UpdateCartItemRequest.js → UpdateLineItemRequest.js} +13 -13
- package/dist/models/index.d.ts +4 -9
- package/dist/models/index.js +4 -9
- package/docs/AdminOrderResource.md +2 -6
- package/docs/{AttachCartCouponRequest.md → AttachCouponRequest.md} +4 -4
- package/docs/{AttachCartItemRequest.md → AttachLineItemRequest.md} +4 -4
- package/docs/CartListResource.md +0 -16
- package/docs/CartResource.md +2 -2
- package/docs/CartsApi.md +16 -16
- package/docs/CustomersApi.md +0 -69
- package/docs/{DetachCartCouponRequest.md → DetachCouponRequest.md} +4 -4
- package/docs/OrdersApi.md +18 -18
- package/docs/{UpdateCartItemRequest.md → UpdateLineItemRequest.md} +4 -4
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +25 -25
- package/src/apis/CustomersApi.ts +0 -58
- package/src/apis/OrdersApi.ts +26 -26
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +4 -22
- package/src/models/AttachCouponRequest.ts +66 -0
- package/src/models/{AttachCartItemRequest.ts → AttachLineItemRequest.ts} +13 -13
- package/src/models/CartListResource.ts +0 -69
- package/src/models/CartResource.ts +4 -4
- package/src/models/DetachCouponRequest.ts +66 -0
- package/src/models/StoreResource.ts +2 -3
- package/src/models/{UpdateCartItemRequest.ts → UpdateLineItemRequest.ts} +12 -12
- package/src/models/index.ts +4 -9
- package/dist/models/AttachCartCouponRequest.d.ts +0 -32
- package/dist/models/AttachCartCouponRequest.js +0 -51
- package/dist/models/AttachCartItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderCouponRequest.d.ts +0 -32
- package/dist/models/AttachOrderCouponRequest.js +0 -51
- package/dist/models/AttachOrderLineItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderLineItemRequest.js +0 -57
- package/dist/models/DetachCartCouponRequest.d.ts +0 -32
- package/dist/models/DetachCartCouponRequest.js +0 -51
- package/dist/models/DetachOrderCouponRequest.d.ts +0 -32
- package/dist/models/DetachOrderCouponRequest.js +0 -51
- package/dist/models/UpdateCartItemRequest.d.ts +0 -38
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateOrderLineItemRequest.d.ts +0 -38
- package/dist/models/UpdateOrderLineItemRequest.js +0 -53
- package/docs/AttachOrderCouponRequest.md +0 -34
- package/docs/AttachOrderLineItemRequest.md +0 -38
- package/docs/DetachOrderCouponRequest.md +0 -34
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateOrderLineItemRequest.md +0 -36
- package/src/models/AttachCartCouponRequest.ts +0 -66
- package/src/models/AttachOrderCouponRequest.ts +0 -66
- package/src/models/AttachOrderLineItemRequest.ts +0 -83
- package/src/models/DetachCartCouponRequest.ts +0 -66
- package/src/models/DetachOrderCouponRequest.ts +0 -66
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateOrderLineItemRequest.ts +0 -74
|
@@ -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 AttachOrderCouponRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachOrderCouponRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AttachOrderCouponRequest
|
|
26
|
-
*/
|
|
27
|
-
couponCode: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the AttachOrderCouponRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfAttachOrderCouponRequest(value: object): value is AttachOrderCouponRequest {
|
|
34
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function AttachOrderCouponRequestFromJSON(json: any): AttachOrderCouponRequest {
|
|
39
|
-
return AttachOrderCouponRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function AttachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderCouponRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponCode': json['coupon_code'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function AttachOrderCouponRequestToJSON(json: any): AttachOrderCouponRequest {
|
|
53
|
-
return AttachOrderCouponRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function AttachOrderCouponRequestToJSONTyped(value?: AttachOrderCouponRequest | 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,83 +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 AttachOrderLineItemRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachOrderLineItemRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof AttachOrderLineItemRequest
|
|
26
|
-
*/
|
|
27
|
-
productChildId: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof AttachOrderLineItemRequest
|
|
32
|
-
*/
|
|
33
|
-
quantity: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof AttachOrderLineItemRequest
|
|
38
|
-
*/
|
|
39
|
-
productPrice?: number | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the AttachOrderLineItemRequest interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfAttachOrderLineItemRequest(value: object): value is AttachOrderLineItemRequest {
|
|
46
|
-
if (!('productChildId' in value) || value['productChildId'] === undefined) return false;
|
|
47
|
-
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function AttachOrderLineItemRequestFromJSON(json: any): AttachOrderLineItemRequest {
|
|
52
|
-
return AttachOrderLineItemRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function AttachOrderLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderLineItemRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'productChildId': json['product_child_id'],
|
|
62
|
-
'quantity': json['quantity'],
|
|
63
|
-
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function AttachOrderLineItemRequestToJSON(json: any): AttachOrderLineItemRequest {
|
|
68
|
-
return AttachOrderLineItemRequestToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function AttachOrderLineItemRequestToJSONTyped(value?: AttachOrderLineItemRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'product_child_id': value['productChildId'],
|
|
79
|
-
'quantity': value['quantity'],
|
|
80
|
-
'product_price': value['productPrice'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -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 DetachCartCouponRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachCartCouponRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<number>}
|
|
25
|
-
* @memberof DetachCartCouponRequest
|
|
26
|
-
*/
|
|
27
|
-
couponIds: Array<number>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachCartCouponRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachCartCouponRequest(value: object): value is DetachCartCouponRequest {
|
|
34
|
-
if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachCartCouponRequestFromJSON(json: any): DetachCartCouponRequest {
|
|
39
|
-
return DetachCartCouponRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachCartCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCartCouponRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponIds': json['coupon_ids'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachCartCouponRequestToJSON(json: any): DetachCartCouponRequest {
|
|
53
|
-
return DetachCartCouponRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachCartCouponRequestToJSONTyped(value?: DetachCartCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_ids': value['couponIds'],
|
|
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 DetachOrderCouponRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachOrderCouponRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof DetachOrderCouponRequest
|
|
26
|
-
*/
|
|
27
|
-
couponId: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachOrderCouponRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachOrderCouponRequest(value: object): value is DetachOrderCouponRequest {
|
|
34
|
-
if (!('couponId' in value) || value['couponId'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachOrderCouponRequestFromJSON(json: any): DetachOrderCouponRequest {
|
|
39
|
-
return DetachOrderCouponRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachOrderCouponRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponId': json['coupon_id'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachOrderCouponRequestToJSON(json: any): DetachOrderCouponRequest {
|
|
53
|
-
return DetachOrderCouponRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachOrderCouponRequestToJSONTyped(value?: DetachOrderCouponRequest | 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
|
-
|
|
@@ -1,100 +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 UpdateCustomerRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface UpdateCustomerRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof UpdateCustomerRequest
|
|
26
|
-
*/
|
|
27
|
-
siteId?: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateCustomerRequest
|
|
32
|
-
*/
|
|
33
|
-
firstName: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UpdateCustomerRequest
|
|
38
|
-
*/
|
|
39
|
-
lastName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UpdateCustomerRequest
|
|
44
|
-
*/
|
|
45
|
-
email: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof UpdateCustomerRequest
|
|
50
|
-
*/
|
|
51
|
-
phone?: string | null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the UpdateCustomerRequest interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfUpdateCustomerRequest(value: object): value is UpdateCustomerRequest {
|
|
58
|
-
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
59
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
60
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function UpdateCustomerRequestFromJSON(json: any): UpdateCustomerRequest {
|
|
65
|
-
return UpdateCustomerRequestFromJSONTyped(json, false);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function UpdateCustomerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCustomerRequest {
|
|
69
|
-
if (json == null) {
|
|
70
|
-
return json;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
75
|
-
'firstName': json['first_name'],
|
|
76
|
-
'lastName': json['last_name'],
|
|
77
|
-
'email': json['email'],
|
|
78
|
-
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function UpdateCustomerRequestToJSON(json: any): UpdateCustomerRequest {
|
|
83
|
-
return UpdateCustomerRequestToJSONTyped(json, false);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function UpdateCustomerRequestToJSONTyped(value?: UpdateCustomerRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
-
if (value == null) {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
|
|
93
|
-
'site_id': value['siteId'],
|
|
94
|
-
'first_name': value['firstName'],
|
|
95
|
-
'last_name': value['lastName'],
|
|
96
|
-
'email': value['email'],
|
|
97
|
-
'phone': value['phone'],
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
@@ -1,74 +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 UpdateOrderLineItemRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface UpdateOrderLineItemRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof UpdateOrderLineItemRequest
|
|
26
|
-
*/
|
|
27
|
-
quantity: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof UpdateOrderLineItemRequest
|
|
32
|
-
*/
|
|
33
|
-
productPrice?: number | null;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the UpdateOrderLineItemRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfUpdateOrderLineItemRequest(value: object): value is UpdateOrderLineItemRequest {
|
|
40
|
-
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function UpdateOrderLineItemRequestFromJSON(json: any): UpdateOrderLineItemRequest {
|
|
45
|
-
return UpdateOrderLineItemRequestFromJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function UpdateOrderLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderLineItemRequest {
|
|
49
|
-
if (json == null) {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
|
|
54
|
-
'quantity': json['quantity'],
|
|
55
|
-
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function UpdateOrderLineItemRequestToJSON(json: any): UpdateOrderLineItemRequest {
|
|
60
|
-
return UpdateOrderLineItemRequestToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function UpdateOrderLineItemRequestToJSONTyped(value?: UpdateOrderLineItemRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'quantity': value['quantity'],
|
|
71
|
-
'product_price': value['productPrice'],
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|