@digital8/lighting-illusions-ts-sdk 0.0.2056 → 0.0.2057
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 +36 -16
- package/README.md +24 -13
- package/dist/apis/CartsApi.d.ts +8 -8
- package/dist/apis/CartsApi.js +8 -8
- package/dist/apis/CustomersApi.d.ts +17 -0
- package/dist/apis/CustomersApi.js +62 -0
- package/dist/apis/OrdersApi.d.ts +23 -8
- package/dist/apis/OrdersApi.js +69 -10
- package/dist/apis/ProductApi.d.ts +0 -16
- package/dist/apis/ProductApi.js +0 -59
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -2
- package/dist/models/AdminNoteResource.d.ts +12 -0
- package/dist/models/AdminNoteResource.js +8 -0
- package/dist/models/AdminOrderResource.d.ts +22 -4
- package/dist/models/AdminOrderResource.js +18 -6
- package/dist/models/AttachCartCouponRequest.d.ts +32 -0
- package/dist/models/AttachCartCouponRequest.js +51 -0
- package/dist/models/AttachCartItemRequest.d.ts +44 -0
- package/dist/models/{AttachLineItemRequest.js → AttachCartItemRequest.js} +13 -13
- package/dist/models/AttachOrderCouponRequest.d.ts +32 -0
- package/dist/models/AttachOrderCouponRequest.js +51 -0
- package/dist/models/AttachOrderLineItemRequest.d.ts +44 -0
- package/dist/models/AttachOrderLineItemRequest.js +57 -0
- package/dist/models/CartCouponLiteResource.d.ts +56 -0
- package/dist/models/CartCouponLiteResource.js +67 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +48 -0
- package/dist/models/CartListResource.js +26 -0
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/CreateTransactionRequest.d.ts +0 -6
- package/dist/models/CreateTransactionRequest.js +0 -2
- package/dist/models/CustomerListResource.d.ts +7 -0
- package/dist/models/CustomerListResource.js +5 -0
- package/dist/models/DetachCartCouponRequest.d.ts +32 -0
- package/dist/models/DetachCartCouponRequest.js +51 -0
- package/dist/models/DetachOrderCouponRequest.d.ts +32 -0
- package/dist/models/DetachOrderCouponRequest.js +51 -0
- package/dist/models/FrontendCartResource.d.ts +144 -0
- package/dist/models/FrontendCartResource.js +121 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
- package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
- package/dist/models/FrontendLineItemResource.d.ts +81 -0
- package/dist/models/FrontendLineItemResource.js +82 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderResource.d.ts +174 -0
- package/dist/models/FrontendOrderResource.js +139 -0
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
- package/dist/models/PaymentSource.d.ts +1 -0
- package/dist/models/PaymentSource.js +2 -1
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/SearchCartsRequest.d.ts +0 -1
- package/dist/models/SearchCartsRequest.js +1 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/TransactionLiteResource.d.ts +0 -12
- package/dist/models/TransactionLiteResource.js +0 -4
- package/dist/models/UpdateCartItemRequest.d.ts +38 -0
- package/dist/models/{UpdateLineItemRequest.js → UpdateCartItemRequest.js} +13 -13
- package/dist/models/UpdateCustomerRequest.d.ts +56 -0
- package/dist/models/UpdateCustomerRequest.js +63 -0
- package/dist/models/UpdateOrderLineItemRequest.d.ts +38 -0
- package/dist/models/UpdateOrderLineItemRequest.js +53 -0
- package/dist/models/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/index.d.ts +18 -8
- package/dist/models/index.js +18 -8
- package/docs/AddressResource.md +0 -2
- package/docs/AdminNoteResource.md +4 -0
- package/docs/AdminOrderResource.md +9 -3
- package/docs/{AttachCouponRequest.md → AttachCartCouponRequest.md} +4 -4
- package/docs/{AttachLineItemRequest.md → AttachCartItemRequest.md} +4 -4
- package/docs/{SkuSearchProductChildRequest.md → AttachOrderCouponRequest.md} +6 -8
- package/docs/AttachOrderLineItemRequest.md +38 -0
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +16 -0
- package/docs/CartResource.md +3 -3
- package/docs/CartsApi.md +16 -16
- package/docs/CreateTransactionRequest.md +0 -2
- package/docs/CustomerListResource.md +2 -0
- package/docs/CustomersApi.md +69 -0
- package/docs/{DetachCouponRequest.md → DetachCartCouponRequest.md} +4 -4
- package/docs/DetachOrderCouponRequest.md +34 -0
- package/docs/FrontendCartResource.md +70 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/FrontendOrderResource.md +80 -0
- package/docs/FrontendOrderResourceArrayResponse.md +34 -0
- package/docs/OrdersApi.md +84 -18
- package/docs/ProductApi.md +0 -66
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionLiteResource.md +0 -4
- package/docs/TransactionsApi.md +3 -3
- package/docs/{UpdateLineItemRequest.md → UpdateCartItemRequest.md} +4 -4
- package/docs/UpdateCustomerRequest.md +42 -0
- package/docs/UpdateOrderLineItemRequest.md +36 -0
- package/docs/UpdateOrderRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +25 -25
- package/src/apis/CustomersApi.ts +58 -0
- package/src/apis/OrdersApi.ts +75 -26
- package/src/apis/ProductApi.ts +0 -49
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +0 -8
- package/src/models/AdminNoteResource.ts +18 -0
- package/src/models/AdminOrderResource.ts +42 -15
- package/src/models/AttachCartCouponRequest.ts +66 -0
- package/src/models/{AttachLineItemRequest.ts → AttachCartItemRequest.ts} +13 -13
- package/src/models/AttachOrderCouponRequest.ts +66 -0
- package/src/models/AttachOrderLineItemRequest.ts +83 -0
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +69 -0
- package/src/models/CartResource.ts +15 -15
- package/src/models/CreateTransactionRequest.ts +0 -8
- package/src/models/CustomerListResource.ts +16 -0
- package/src/models/DetachCartCouponRequest.ts +66 -0
- package/src/models/DetachOrderCouponRequest.ts +66 -0
- package/src/models/FrontendCartResource.ts +254 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
- package/src/models/FrontendLineItemResource.ts +145 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderResource.ts +298 -0
- package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
- package/src/models/PaymentSource.ts +2 -1
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/SearchCartsRequest.ts +1 -2
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/TransactionLiteResource.ts +0 -16
- package/src/models/{UpdateLineItemRequest.ts → UpdateCartItemRequest.ts} +12 -12
- package/src/models/UpdateCustomerRequest.ts +100 -0
- package/src/models/UpdateOrderLineItemRequest.ts +74 -0
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/index.ts +18 -8
- package/dist/models/AttachCouponRequest.d.ts +0 -32
- package/dist/models/AttachCouponRequest.js +0 -51
- package/dist/models/AttachLineItemRequest.d.ts +0 -44
- package/dist/models/DetachCouponRequest.d.ts +0 -32
- package/dist/models/DetachCouponRequest.js +0 -51
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
- package/dist/models/SkuSearchProductChildRequest.js +0 -55
- package/dist/models/TransactionListResource.d.ts +0 -116
- package/dist/models/TransactionListResource.js +0 -97
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/UpdateLineItemRequest.d.ts +0 -38
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/TransactionListResource.md +0 -62
- package/src/models/AttachCouponRequest.ts +0 -66
- package/src/models/DetachCouponRequest.ts +0 -66
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/SkuSearchProductChildRequest.ts +0 -75
- package/src/models/TransactionListResource.ts +0 -187
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfAttachCartItemRequest = instanceOfAttachCartItemRequest;
|
|
17
|
+
exports.AttachCartItemRequestFromJSON = AttachCartItemRequestFromJSON;
|
|
18
|
+
exports.AttachCartItemRequestFromJSONTyped = AttachCartItemRequestFromJSONTyped;
|
|
19
|
+
exports.AttachCartItemRequestToJSON = AttachCartItemRequestToJSON;
|
|
20
|
+
exports.AttachCartItemRequestToJSONTyped = AttachCartItemRequestToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the AttachCartItemRequest interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfAttachCartItemRequest(value) {
|
|
25
25
|
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function AttachCartItemRequestFromJSON(json) {
|
|
32
|
+
return AttachCartItemRequestFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function AttachCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
if (json == null) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
@@ -41,10 +41,10 @@ function AttachLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function AttachCartItemRequestToJSON(json) {
|
|
45
|
+
return AttachCartItemRequestToJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function AttachCartItemRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
49
|
if (value == null) {
|
|
50
50
|
return value;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AttachOrderCouponRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachOrderCouponRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AttachOrderCouponRequest
|
|
22
|
+
*/
|
|
23
|
+
couponCode: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AttachOrderCouponRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAttachOrderCouponRequest(value: object): value is AttachOrderCouponRequest;
|
|
29
|
+
export declare function AttachOrderCouponRequestFromJSON(json: any): AttachOrderCouponRequest;
|
|
30
|
+
export declare function AttachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderCouponRequest;
|
|
31
|
+
export declare function AttachOrderCouponRequestToJSON(json: any): AttachOrderCouponRequest;
|
|
32
|
+
export declare function AttachOrderCouponRequestToJSONTyped(value?: AttachOrderCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAttachOrderCouponRequest = instanceOfAttachOrderCouponRequest;
|
|
17
|
+
exports.AttachOrderCouponRequestFromJSON = AttachOrderCouponRequestFromJSON;
|
|
18
|
+
exports.AttachOrderCouponRequestFromJSONTyped = AttachOrderCouponRequestFromJSONTyped;
|
|
19
|
+
exports.AttachOrderCouponRequestToJSON = AttachOrderCouponRequestToJSON;
|
|
20
|
+
exports.AttachOrderCouponRequestToJSONTyped = AttachOrderCouponRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachOrderCouponRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachOrderCouponRequest(value) {
|
|
25
|
+
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachOrderCouponRequestFromJSON(json) {
|
|
30
|
+
return AttachOrderCouponRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachOrderCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'couponCode': json['coupon_code'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AttachOrderCouponRequestToJSON(json) {
|
|
41
|
+
return AttachOrderCouponRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AttachOrderCouponRequestToJSONTyped(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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 AttachOrderLineItemRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachOrderLineItemRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AttachOrderLineItemRequest
|
|
22
|
+
*/
|
|
23
|
+
productChildId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AttachOrderLineItemRequest
|
|
28
|
+
*/
|
|
29
|
+
quantity: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AttachOrderLineItemRequest
|
|
34
|
+
*/
|
|
35
|
+
productPrice?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AttachOrderLineItemRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAttachOrderLineItemRequest(value: object): value is AttachOrderLineItemRequest;
|
|
41
|
+
export declare function AttachOrderLineItemRequestFromJSON(json: any): AttachOrderLineItemRequest;
|
|
42
|
+
export declare function AttachOrderLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderLineItemRequest;
|
|
43
|
+
export declare function AttachOrderLineItemRequestToJSON(json: any): AttachOrderLineItemRequest;
|
|
44
|
+
export declare function AttachOrderLineItemRequestToJSONTyped(value?: AttachOrderLineItemRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfAttachOrderLineItemRequest = instanceOfAttachOrderLineItemRequest;
|
|
17
|
+
exports.AttachOrderLineItemRequestFromJSON = AttachOrderLineItemRequestFromJSON;
|
|
18
|
+
exports.AttachOrderLineItemRequestFromJSONTyped = AttachOrderLineItemRequestFromJSONTyped;
|
|
19
|
+
exports.AttachOrderLineItemRequestToJSON = AttachOrderLineItemRequestToJSON;
|
|
20
|
+
exports.AttachOrderLineItemRequestToJSONTyped = AttachOrderLineItemRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachOrderLineItemRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachOrderLineItemRequest(value) {
|
|
25
|
+
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AttachOrderLineItemRequestFromJSON(json) {
|
|
32
|
+
return AttachOrderLineItemRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AttachOrderLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'productChildId': json['product_child_id'],
|
|
40
|
+
'quantity': json['quantity'],
|
|
41
|
+
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AttachOrderLineItemRequestToJSON(json) {
|
|
45
|
+
return AttachOrderLineItemRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AttachOrderLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'product_child_id': value['productChildId'],
|
|
54
|
+
'quantity': value['quantity'],
|
|
55
|
+
'product_price': value['productPrice'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CartCouponLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface CartCouponLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartCouponLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CartCouponLiteResource
|
|
28
|
+
*/
|
|
29
|
+
code: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CartCouponLiteResource
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CartCouponLiteResource
|
|
40
|
+
*/
|
|
41
|
+
discount: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CartCouponLiteResource
|
|
46
|
+
*/
|
|
47
|
+
appliesTo: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CartCouponLiteResource interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfCartCouponLiteResource(value: object): value is CartCouponLiteResource;
|
|
53
|
+
export declare function CartCouponLiteResourceFromJSON(json: any): CartCouponLiteResource;
|
|
54
|
+
export declare function CartCouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResource;
|
|
55
|
+
export declare function CartCouponLiteResourceToJSON(json: any): CartCouponLiteResource;
|
|
56
|
+
export declare function CartCouponLiteResourceToJSONTyped(value?: CartCouponLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfCartCouponLiteResource = instanceOfCartCouponLiteResource;
|
|
17
|
+
exports.CartCouponLiteResourceFromJSON = CartCouponLiteResourceFromJSON;
|
|
18
|
+
exports.CartCouponLiteResourceFromJSONTyped = CartCouponLiteResourceFromJSONTyped;
|
|
19
|
+
exports.CartCouponLiteResourceToJSON = CartCouponLiteResourceToJSON;
|
|
20
|
+
exports.CartCouponLiteResourceToJSONTyped = CartCouponLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CartCouponLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCartCouponLiteResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('discount' in value) || value['discount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('appliesTo' in value) || value['appliesTo'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CartCouponLiteResourceFromJSON(json) {
|
|
38
|
+
return CartCouponLiteResourceFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CartCouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'code': json['code'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'discount': json['discount'],
|
|
49
|
+
'appliesTo': json['appliesTo'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CartCouponLiteResourceToJSON(json) {
|
|
53
|
+
return CartCouponLiteResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CartCouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'code': value['code'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'discount': value['discount'],
|
|
65
|
+
'appliesTo': value['appliesTo'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CartCouponLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CartCouponLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CartCouponLiteResource>}
|
|
22
|
+
* @memberof CartCouponLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CartCouponLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCartCouponLiteResourceArrayResponse(value: object): value is CartCouponLiteResourceArrayResponse;
|
|
30
|
+
export declare function CartCouponLiteResourceArrayResponseFromJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
31
|
+
export declare function CartCouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResourceArrayResponse;
|
|
32
|
+
export declare function CartCouponLiteResourceArrayResponseToJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
33
|
+
export declare function CartCouponLiteResourceArrayResponseToJSONTyped(value?: CartCouponLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfCartCouponLiteResourceArrayResponse = instanceOfCartCouponLiteResourceArrayResponse;
|
|
17
|
+
exports.CartCouponLiteResourceArrayResponseFromJSON = CartCouponLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CartCouponLiteResourceArrayResponseFromJSONTyped = CartCouponLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CartCouponLiteResourceArrayResponseToJSON = CartCouponLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.CartCouponLiteResourceArrayResponseToJSONTyped = CartCouponLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CartCouponLiteResource_1 = require("./CartCouponLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCartCouponLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CartCouponLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CartCouponLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CartCouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CartCouponLiteResource_1.CartCouponLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CartCouponLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CartCouponLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CartCouponLiteResourceArrayResponseToJSONTyped(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(CartCouponLiteResource_1.CartCouponLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -36,6 +36,54 @@ export interface CartListResource {
|
|
|
36
36
|
* @memberof CartListResource
|
|
37
37
|
*/
|
|
38
38
|
source: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof CartListResource
|
|
43
|
+
*/
|
|
44
|
+
shippingType?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof CartListResource
|
|
49
|
+
*/
|
|
50
|
+
shippingSubtotal?: number | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof CartListResource
|
|
55
|
+
*/
|
|
56
|
+
overrideShipping: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof CartListResource
|
|
61
|
+
*/
|
|
62
|
+
insuranceAmount?: number | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof CartListResource
|
|
67
|
+
*/
|
|
68
|
+
includeInsurance: boolean;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof CartListResource
|
|
73
|
+
*/
|
|
74
|
+
overrideInsurance: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof CartListResource
|
|
79
|
+
*/
|
|
80
|
+
useAsBillingAddress: boolean;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof CartListResource
|
|
85
|
+
*/
|
|
86
|
+
expiryDate: Date;
|
|
39
87
|
/**
|
|
40
88
|
*
|
|
41
89
|
* @type {Date}
|
|
@@ -27,6 +27,16 @@ var CustomerListResource_1 = require("./CustomerListResource");
|
|
|
27
27
|
function instanceOfCartListResource(value) {
|
|
28
28
|
if (!('source' in value) || value['source'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
39
|
+
return false;
|
|
30
40
|
if (!('site' in value) || value['site'] === undefined)
|
|
31
41
|
return false;
|
|
32
42
|
if (!('customer' in value) || value['customer'] === undefined)
|
|
@@ -50,6 +60,14 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
60
|
'id': json['id'] == null ? undefined : json['id'],
|
|
51
61
|
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
52
62
|
'source': json['source'],
|
|
63
|
+
'shippingType': json['shippingType'] == null ? undefined : json['shippingType'],
|
|
64
|
+
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
65
|
+
'overrideShipping': json['overrideShipping'],
|
|
66
|
+
'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
|
|
67
|
+
'includeInsurance': json['includeInsurance'],
|
|
68
|
+
'overrideInsurance': json['overrideInsurance'],
|
|
69
|
+
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
70
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
53
71
|
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
54
72
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
55
73
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -71,6 +89,14 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
89
|
'id': value['id'],
|
|
72
90
|
'guestEmail': value['guestEmail'],
|
|
73
91
|
'source': value['source'],
|
|
92
|
+
'shippingType': value['shippingType'],
|
|
93
|
+
'shippingSubtotal': value['shippingSubtotal'],
|
|
94
|
+
'overrideShipping': value['overrideShipping'],
|
|
95
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
96
|
+
'includeInsurance': value['includeInsurance'],
|
|
97
|
+
'overrideInsurance': value['overrideInsurance'],
|
|
98
|
+
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
99
|
+
'expiryDate': value['expiryDate'].toISOString(),
|
|
74
100
|
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
75
101
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
76
102
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
13
|
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
-
import type { CustomerResource } from './CustomerResource';
|
|
15
14
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
15
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
16
16
|
import type { AddressResource } from './AddressResource';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -94,10 +94,10 @@ export interface CartResource {
|
|
|
94
94
|
overrideShipping: boolean;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @type {
|
|
97
|
+
* @type {number}
|
|
98
98
|
* @memberof CartResource
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
insuranceAmount?: number | null;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {boolean}
|
|
@@ -130,10 +130,10 @@ export interface CartResource {
|
|
|
130
130
|
site: SiteLiteResource | null;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
|
-
* @type {
|
|
133
|
+
* @type {CustomerListResource}
|
|
134
134
|
* @memberof CartResource
|
|
135
135
|
*/
|
|
136
|
-
customer:
|
|
136
|
+
customer: CustomerListResource | null;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @type {Array<LineItemListResource>}
|
|
@@ -20,8 +20,8 @@ exports.CartResourceToJSON = CartResourceToJSON;
|
|
|
20
20
|
exports.CartResourceToJSONTyped = CartResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
22
|
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
-
var CustomerResource_1 = require("./CustomerResource");
|
|
24
23
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
24
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
25
25
|
var AddressResource_1 = require("./AddressResource");
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CartResource interface.
|
|
@@ -99,13 +99,13 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
99
99
|
'shippingType': json['shippingType'],
|
|
100
100
|
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
101
101
|
'overrideShipping': json['overrideShipping'],
|
|
102
|
-
'
|
|
102
|
+
'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
|
|
103
103
|
'includeInsurance': json['includeInsurance'],
|
|
104
104
|
'overrideInsurance': json['overrideInsurance'],
|
|
105
105
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
106
106
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
107
107
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
|
-
'customer': (0,
|
|
108
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
109
109
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
110
110
|
'coupons': json['coupons'],
|
|
111
111
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
@@ -144,13 +144,13 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
144
144
|
'shippingType': value['shippingType'],
|
|
145
145
|
'shippingSubtotal': value['shippingSubtotal'],
|
|
146
146
|
'overrideShipping': value['overrideShipping'],
|
|
147
|
-
'
|
|
147
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
148
148
|
'includeInsurance': value['includeInsurance'],
|
|
149
149
|
'overrideInsurance': value['overrideInsurance'],
|
|
150
150
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
151
151
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
152
152
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
|
-
'customer': (0,
|
|
153
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
154
154
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
155
155
|
'coupons': value['coupons'],
|
|
156
156
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
@@ -45,12 +45,6 @@ export interface CreateTransactionRequest {
|
|
|
45
45
|
* @memberof CreateTransactionRequest
|
|
46
46
|
*/
|
|
47
47
|
paymentMethod: CreateTransactionRequestPaymentMethodEnum;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof CreateTransactionRequest
|
|
52
|
-
*/
|
|
53
|
-
description?: string | null;
|
|
54
48
|
/**
|
|
55
49
|
*
|
|
56
50
|
* @type {string}
|
|
@@ -54,7 +54,6 @@ function CreateTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
55
55
|
'surcharge': json['surcharge'],
|
|
56
56
|
'paymentMethod': json['payment_method'],
|
|
57
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
58
57
|
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
59
58
|
'deviceData': json['device_data'] == null ? undefined : json['device_data'],
|
|
60
59
|
};
|
|
@@ -73,7 +72,6 @@ function CreateTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
72
|
'amount': value['amount'],
|
|
74
73
|
'surcharge': value['surcharge'],
|
|
75
74
|
'payment_method': value['paymentMethod'],
|
|
76
|
-
'description': value['description'],
|
|
77
75
|
'nonce': value['nonce'],
|
|
78
76
|
'device_data': value['deviceData'],
|
|
79
77
|
};
|