@digital8/lighting-illusions-ts-sdk 0.0.1850 → 0.0.1852
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 +74 -2
- package/README.md +52 -3
- package/dist/apis/CartsApi.d.ts +190 -0
- package/dist/apis/CartsApi.js +745 -0
- package/dist/apis/CustomersApi.d.ts +79 -0
- package/dist/apis/CustomersApi.js +316 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AddressType.d.ts +25 -0
- package/dist/models/AddressType.js +51 -0
- package/dist/models/AdminCartResource.d.ts +240 -0
- package/dist/models/AdminCartResource.js +171 -0
- package/dist/models/AdminCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminCartResourceArrayResponse.js +50 -0
- package/dist/models/AttachCouponCartRequest.d.ts +32 -0
- package/dist/models/AttachCouponCartRequest.js +51 -0
- package/dist/models/AttachItemCartRequest.d.ts +44 -0
- package/dist/models/AttachItemCartRequest.js +57 -0
- package/dist/models/CartListResource.d.ts +149 -0
- package/dist/models/CartListResource.js +112 -0
- package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartListResourceArrayResponse.js +50 -0
- package/dist/models/CartOrderSource.d.ts +29 -0
- package/dist/models/CartOrderSource.js +55 -0
- package/dist/models/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +76 -0
- package/dist/models/CustomerListResource.js +77 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +76 -0
- package/dist/models/CustomerResource.js +77 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/DetachCouponCartRequest.d.ts +32 -0
- package/dist/models/DetachCouponCartRequest.js +51 -0
- package/dist/models/DiscountType.d.ts +26 -0
- package/dist/models/DiscountType.js +52 -0
- package/dist/models/DiscountValueType.d.ts +25 -0
- package/dist/models/DiscountValueType.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexCartRequest.d.ts +154 -0
- package/dist/models/IndexCartRequest.js +105 -0
- package/dist/models/IndexCustomerRequest.d.ts +99 -0
- package/dist/models/IndexCustomerRequest.js +83 -0
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/LiAddressResource.d.ts +86 -0
- package/dist/models/LiAddressResource.js +83 -0
- package/dist/models/LiAddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/LiAddressResourceArrayResponse.js +50 -0
- package/dist/models/LineItemListResource.d.ts +75 -0
- package/dist/models/LineItemListResource.js +78 -0
- package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemListResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCartListResourceResponse.js +57 -0
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
- package/dist/models/ProductChildCartLiteResource.js +77 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
- package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
- package/dist/models/ShippingType.d.ts +28 -0
- package/dist/models/ShippingType.js +54 -0
- package/dist/models/SitePaymentConfigResource.d.ts +6 -0
- package/dist/models/SitePaymentConfigResource.js +4 -0
- package/dist/models/StoreCartRequest.d.ts +148 -0
- package/dist/models/StoreCartRequest.js +108 -0
- package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
- package/dist/models/StoreCartRequestCustomer.js +55 -0
- package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
- package/dist/models/StoreCartRequestItemsInner.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +68 -0
- package/dist/models/StoreCartRequestShippingAddress.js +61 -0
- package/dist/models/StoreCustomerRequest.d.ts +56 -0
- package/dist/models/StoreCustomerRequest.js +65 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -13
- package/dist/models/StoreListResource.js +6 -12
- package/dist/models/StoreResource.d.ts +1 -13
- package/dist/models/StoreResource.js +8 -14
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.js +4 -4
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/UpdateCartRequest.d.ts +123 -0
- package/dist/models/UpdateCartRequest.js +95 -0
- package/dist/models/UpdateCustomerRequest.d.ts +56 -0
- package/dist/models/UpdateCustomerRequest.js +63 -0
- package/dist/models/UpdateItemCartRequest.d.ts +38 -0
- package/dist/models/UpdateItemCartRequest.js +53 -0
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/index.d.ts +35 -1
- package/dist/models/index.js +35 -1
- package/docs/{StoreStockType.md → AddressType.md} +4 -4
- package/docs/AdminCartResource.md +102 -0
- package/docs/AdminCartResourceArrayResponse.md +34 -0
- package/docs/AttachCouponCartRequest.md +34 -0
- package/docs/AttachItemCartRequest.md +38 -0
- package/docs/CartListResource.md +72 -0
- package/docs/CartListResourceArrayResponse.md +34 -0
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +755 -0
- package/docs/CustomerListResource.md +48 -0
- package/docs/CustomerListResourceArrayResponse.md +34 -0
- package/docs/CustomerResource.md +48 -0
- package/docs/CustomerResourceArrayResponse.md +34 -0
- package/docs/CustomersApi.md +275 -0
- package/docs/DetachCouponCartRequest.md +34 -0
- package/docs/DiscountType.md +32 -0
- package/docs/DiscountValueType.md +32 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/IndexCustomerRequest.md +50 -0
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/LiAddressResource.md +52 -0
- package/docs/LiAddressResourceArrayResponse.md +34 -0
- package/docs/LineItemListResource.md +48 -0
- package/docs/LineItemListResourceArrayResponse.md +34 -0
- package/docs/PaginatedCartListResourceResponse.md +36 -0
- package/docs/PaginatedCustomerListResourceResponse.md +36 -0
- package/docs/ProductChildCartLiteResource.md +46 -0
- package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailLiteResource.md +2 -0
- package/docs/ShippingType.md +32 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreCartRequest.md +64 -0
- package/docs/StoreCartRequestCustomer.md +40 -0
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +46 -0
- package/docs/StoreCustomerRequest.md +42 -0
- package/docs/StoreListResource.md +0 -4
- package/docs/StoreResource.md +0 -4
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/UpdateCartRequest.md +56 -0
- package/docs/UpdateCustomerRequest.md +42 -0
- package/docs/UpdateItemCartRequest.md +36 -0
- package/docs/UpdateSiteRequest.md +2 -0
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +624 -0
- package/src/apis/CustomersApi.ts +232 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddressType.ts +53 -0
- package/src/models/AdminCartResource.ts +391 -0
- package/src/models/AdminCartResourceArrayResponse.ts +73 -0
- package/src/models/AttachCouponCartRequest.ts +66 -0
- package/src/models/AttachItemCartRequest.ts +83 -0
- package/src/models/CartListResource.ts +250 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +142 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +142 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/DetachCouponCartRequest.ts +66 -0
- package/src/models/DiscountType.ts +54 -0
- package/src/models/DiscountValueType.ts +53 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/IndexCustomerRequest.ts +152 -0
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/LiAddressResource.ts +145 -0
- package/src/models/LiAddressResourceArrayResponse.ts +73 -0
- package/src/models/LineItemListResource.ts +136 -0
- package/src/models/LineItemListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/ProductChildCartLiteResource.ts +135 -0
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
- package/src/models/ShippingType.ts +56 -0
- package/src/models/SitePaymentConfigResource.ts +9 -0
- package/src/models/StoreCartRequest.ts +236 -0
- package/src/models/StoreCartRequestCustomer.ts +89 -0
- package/src/models/StoreCartRequestItemsInner.ts +83 -0
- package/src/models/StoreCartRequestShippingAddress.ts +113 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +6 -23
- package/src/models/StoreResource.ts +9 -26
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -4
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/UpdateCartRequest.ts +195 -0
- package/src/models/UpdateCustomerRequest.ts +100 -0
- package/src/models/UpdateItemCartRequest.ts +74 -0
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/index.ts +35 -1
- package/dist/models/StoreStockType.d.ts +0 -25
- package/dist/models/StoreStockType.js +0 -51
- package/src/models/StoreStockType.ts +0 -53
|
@@ -0,0 +1,149 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CartListResource
|
|
19
|
+
*/
|
|
20
|
+
export interface CartListResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof CartListResource
|
|
25
|
+
*/
|
|
26
|
+
id?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof CartListResource
|
|
31
|
+
*/
|
|
32
|
+
siteId: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof CartListResource
|
|
37
|
+
*/
|
|
38
|
+
customerId?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof CartListResource
|
|
43
|
+
*/
|
|
44
|
+
guestEmail?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof CartListResource
|
|
49
|
+
*/
|
|
50
|
+
adminId?: number | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CartListResource
|
|
55
|
+
*/
|
|
56
|
+
source: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CartListResource
|
|
61
|
+
*/
|
|
62
|
+
shippingType?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof CartListResource
|
|
67
|
+
*/
|
|
68
|
+
shippingSubtotal?: number | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof CartListResource
|
|
73
|
+
*/
|
|
74
|
+
overrideShipping: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof CartListResource
|
|
79
|
+
*/
|
|
80
|
+
insuranceAmount?: number | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof CartListResource
|
|
85
|
+
*/
|
|
86
|
+
overrideInsurance: boolean;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof CartListResource
|
|
91
|
+
*/
|
|
92
|
+
useAsBillingAddress: boolean;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof CartListResource
|
|
97
|
+
*/
|
|
98
|
+
expiryDate: Date;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof CartListResource
|
|
103
|
+
*/
|
|
104
|
+
checkoutCompletedAt?: Date | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof CartListResource
|
|
109
|
+
*/
|
|
110
|
+
createdAt?: Date | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {SiteLiteResource}
|
|
114
|
+
* @memberof CartListResource
|
|
115
|
+
*/
|
|
116
|
+
site: SiteLiteResource | null;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {CustomerListResource}
|
|
120
|
+
* @memberof CartListResource
|
|
121
|
+
*/
|
|
122
|
+
customer: CustomerListResource | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {Array<LineItemListResource>}
|
|
126
|
+
* @memberof CartListResource
|
|
127
|
+
*/
|
|
128
|
+
lineItems: Array<LineItemListResource> | null;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @memberof CartListResource
|
|
133
|
+
*/
|
|
134
|
+
subtotal: number;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof CartListResource
|
|
139
|
+
*/
|
|
140
|
+
status: string;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Check if a given object implements the CartListResource interface.
|
|
144
|
+
*/
|
|
145
|
+
export declare function instanceOfCartListResource(value: object): value is CartListResource;
|
|
146
|
+
export declare function CartListResourceFromJSON(json: any): CartListResource;
|
|
147
|
+
export declare function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResource;
|
|
148
|
+
export declare function CartListResourceToJSON(json: any): CartListResource;
|
|
149
|
+
export declare function CartListResourceToJSONTyped(value?: CartListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,112 @@
|
|
|
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.instanceOfCartListResource = instanceOfCartListResource;
|
|
17
|
+
exports.CartListResourceFromJSON = CartListResourceFromJSON;
|
|
18
|
+
exports.CartListResourceFromJSONTyped = CartListResourceFromJSONTyped;
|
|
19
|
+
exports.CartListResourceToJSON = CartListResourceToJSON;
|
|
20
|
+
exports.CartListResourceToJSONTyped = CartListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CartListResource interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCartListResource(value) {
|
|
28
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('overrideShipping' in value) || value['overrideShipping'] === 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;
|
|
40
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function CartListResourceFromJSON(json) {
|
|
53
|
+
return CartListResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
61
|
+
'siteId': json['site_id'],
|
|
62
|
+
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
63
|
+
'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
|
|
64
|
+
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
65
|
+
'source': json['source'],
|
|
66
|
+
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
67
|
+
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
68
|
+
'overrideShipping': json['override_shipping'],
|
|
69
|
+
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
70
|
+
'overrideInsurance': json['override_insurance'],
|
|
71
|
+
'useAsBillingAddress': json['use_as_billing_address'],
|
|
72
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
73
|
+
'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
|
|
74
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
75
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
76
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
77
|
+
'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
78
|
+
'subtotal': json['subtotal'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function CartListResourceToJSON(json) {
|
|
83
|
+
return CartListResourceToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
86
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'id': value['id'],
|
|
92
|
+
'site_id': value['siteId'],
|
|
93
|
+
'customer_id': value['customerId'],
|
|
94
|
+
'guest_email': value['guestEmail'],
|
|
95
|
+
'admin_id': value['adminId'],
|
|
96
|
+
'source': value['source'],
|
|
97
|
+
'shipping_type': value['shippingType'],
|
|
98
|
+
'shipping_subtotal': value['shippingSubtotal'],
|
|
99
|
+
'override_shipping': value['overrideShipping'],
|
|
100
|
+
'insurance_amount': value['insuranceAmount'],
|
|
101
|
+
'override_insurance': value['overrideInsurance'],
|
|
102
|
+
'use_as_billing_address': value['useAsBillingAddress'],
|
|
103
|
+
'expiry_date': value['expiryDate'].toISOString(),
|
|
104
|
+
'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
105
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
106
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
107
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
108
|
+
'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
109
|
+
'subtotal': value['subtotal'],
|
|
110
|
+
'status': value['status'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -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 { CartListResource } from './CartListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CartListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CartListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CartListResource>}
|
|
22
|
+
* @memberof CartListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CartListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CartListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCartListResourceArrayResponse(value: object): value is CartListResourceArrayResponse;
|
|
30
|
+
export declare function CartListResourceArrayResponseFromJSON(json: any): CartListResourceArrayResponse;
|
|
31
|
+
export declare function CartListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResourceArrayResponse;
|
|
32
|
+
export declare function CartListResourceArrayResponseToJSON(json: any): CartListResourceArrayResponse;
|
|
33
|
+
export declare function CartListResourceArrayResponseToJSONTyped(value?: CartListResourceArrayResponse | 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.instanceOfCartListResourceArrayResponse = instanceOfCartListResourceArrayResponse;
|
|
17
|
+
exports.CartListResourceArrayResponseFromJSON = CartListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CartListResourceArrayResponseFromJSONTyped = CartListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CartListResourceArrayResponseToJSON = CartListResourceArrayResponseToJSON;
|
|
20
|
+
exports.CartListResourceArrayResponseToJSONTyped = CartListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CartListResource_1 = require("./CartListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CartListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCartListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CartListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CartListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CartListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CartListResource_1.CartListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CartListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CartListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CartListResourceArrayResponseToJSONTyped(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(CartListResource_1.CartListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const CartOrderSource: {
|
|
17
|
+
readonly Checkout: "checkout";
|
|
18
|
+
readonly Admin: "admin";
|
|
19
|
+
readonly Phone: "phone";
|
|
20
|
+
readonly Email: "email";
|
|
21
|
+
readonly Ebay: "ebay";
|
|
22
|
+
readonly InStore: "in_store";
|
|
23
|
+
};
|
|
24
|
+
export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
|
|
25
|
+
export declare function instanceOfCartOrderSource(value: any): boolean;
|
|
26
|
+
export declare function CartOrderSourceFromJSON(json: any): CartOrderSource;
|
|
27
|
+
export declare function CartOrderSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartOrderSource;
|
|
28
|
+
export declare function CartOrderSourceToJSON(value?: CartOrderSource | null): any;
|
|
29
|
+
export declare function CartOrderSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): CartOrderSource;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.CartOrderSource = void 0;
|
|
17
|
+
exports.instanceOfCartOrderSource = instanceOfCartOrderSource;
|
|
18
|
+
exports.CartOrderSourceFromJSON = CartOrderSourceFromJSON;
|
|
19
|
+
exports.CartOrderSourceFromJSONTyped = CartOrderSourceFromJSONTyped;
|
|
20
|
+
exports.CartOrderSourceToJSON = CartOrderSourceToJSON;
|
|
21
|
+
exports.CartOrderSourceToJSONTyped = CartOrderSourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CartOrderSource = {
|
|
27
|
+
Checkout: 'checkout',
|
|
28
|
+
Admin: 'admin',
|
|
29
|
+
Phone: 'phone',
|
|
30
|
+
Email: 'email',
|
|
31
|
+
Ebay: 'ebay',
|
|
32
|
+
InStore: 'in_store'
|
|
33
|
+
};
|
|
34
|
+
function instanceOfCartOrderSource(value) {
|
|
35
|
+
for (var key in exports.CartOrderSource) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(exports.CartOrderSource, key)) {
|
|
37
|
+
if (exports.CartOrderSource[key] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function CartOrderSourceFromJSON(json) {
|
|
45
|
+
return CartOrderSourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CartOrderSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
function CartOrderSourceToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function CartOrderSourceToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const CartStatus: {
|
|
17
|
+
readonly Completed: "completed";
|
|
18
|
+
readonly Active: "active";
|
|
19
|
+
readonly Expired: "expired";
|
|
20
|
+
};
|
|
21
|
+
export type CartStatus = typeof CartStatus[keyof typeof CartStatus];
|
|
22
|
+
export declare function instanceOfCartStatus(value: any): boolean;
|
|
23
|
+
export declare function CartStatusFromJSON(json: any): CartStatus;
|
|
24
|
+
export declare function CartStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartStatus;
|
|
25
|
+
export declare function CartStatusToJSON(value?: CartStatus | null): any;
|
|
26
|
+
export declare function CartStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CartStatus;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.CartStatus = void 0;
|
|
17
|
+
exports.instanceOfCartStatus = instanceOfCartStatus;
|
|
18
|
+
exports.CartStatusFromJSON = CartStatusFromJSON;
|
|
19
|
+
exports.CartStatusFromJSONTyped = CartStatusFromJSONTyped;
|
|
20
|
+
exports.CartStatusToJSON = CartStatusToJSON;
|
|
21
|
+
exports.CartStatusToJSONTyped = CartStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CartStatus = {
|
|
27
|
+
Completed: 'completed',
|
|
28
|
+
Active: 'active',
|
|
29
|
+
Expired: 'expired'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfCartStatus(value) {
|
|
32
|
+
for (var key in exports.CartStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.CartStatus, key)) {
|
|
34
|
+
if (exports.CartStatus[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function CartStatusFromJSON(json) {
|
|
42
|
+
return CartStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CartStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function CartStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function CartStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { LiAddressResource } from './LiAddressResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CustomerListResource
|
|
18
|
+
*/
|
|
19
|
+
export interface CustomerListResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CustomerListResource
|
|
24
|
+
*/
|
|
25
|
+
id?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CustomerListResource
|
|
30
|
+
*/
|
|
31
|
+
firstName: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CustomerListResource
|
|
36
|
+
*/
|
|
37
|
+
lastName: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CustomerListResource
|
|
42
|
+
*/
|
|
43
|
+
email: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CustomerListResource
|
|
48
|
+
*/
|
|
49
|
+
phone: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CustomerListResource
|
|
54
|
+
*/
|
|
55
|
+
siteId?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SiteLiteResource}
|
|
59
|
+
* @memberof CustomerListResource
|
|
60
|
+
*/
|
|
61
|
+
site: SiteLiteResource | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<LiAddressResource>}
|
|
65
|
+
* @memberof CustomerListResource
|
|
66
|
+
*/
|
|
67
|
+
addresses: Array<LiAddressResource> | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the CustomerListResource interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfCustomerListResource(value: object): value is CustomerListResource;
|
|
73
|
+
export declare function CustomerListResourceFromJSON(json: any): CustomerListResource;
|
|
74
|
+
export declare function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerListResource;
|
|
75
|
+
export declare function CustomerListResourceToJSON(json: any): CustomerListResource;
|
|
76
|
+
export declare function CustomerListResourceToJSONTyped(value?: CustomerListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.instanceOfCustomerListResource = instanceOfCustomerListResource;
|
|
17
|
+
exports.CustomerListResourceFromJSON = CustomerListResourceFromJSON;
|
|
18
|
+
exports.CustomerListResourceFromJSONTyped = CustomerListResourceFromJSONTyped;
|
|
19
|
+
exports.CustomerListResourceToJSON = CustomerListResourceToJSON;
|
|
20
|
+
exports.CustomerListResourceToJSONTyped = CustomerListResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var LiAddressResource_1 = require("./LiAddressResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CustomerListResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCustomerListResource(value) {
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('addresses' in value) || value['addresses'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function CustomerListResourceFromJSON(json) {
|
|
42
|
+
return CustomerListResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CustomerListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
+
'firstName': json['first_name'],
|
|
51
|
+
'lastName': json['last_name'],
|
|
52
|
+
'email': json['email'],
|
|
53
|
+
'phone': json['phone'],
|
|
54
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
55
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
56
|
+
'addresses': (json['addresses'] == null ? null : json['addresses'].map(LiAddressResource_1.LiAddressResourceFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function CustomerListResourceToJSON(json) {
|
|
60
|
+
return CustomerListResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function CustomerListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'first_name': value['firstName'],
|
|
70
|
+
'last_name': value['lastName'],
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'phone': value['phone'],
|
|
73
|
+
'site_id': value['siteId'],
|
|
74
|
+
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
75
|
+
'addresses': (value['addresses'] == null ? null : value['addresses'].map(LiAddressResource_1.LiAddressResourceToJSON)),
|
|
76
|
+
};
|
|
77
|
+
}
|