@digital8/lighting-illusions-ts-sdk 0.0.2032 → 0.0.2033
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/README.md +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/CreateTransactionRequest.d.ts +6 -0
- package/dist/models/CreateTransactionRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/TransactionLiteResource.d.ts +6 -0
- package/dist/models/TransactionLiteResource.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/models/UpdateOrderRequest.js +2 -0
- package/docs/CreateTransactionRequest.md +2 -0
- package/docs/TransactionLiteResource.md +2 -0
- package/docs/UpdateOrderRequest.md +2 -0
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/CreateTransactionRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +3 -2
- package/src/models/TransactionLiteResource.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2033
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -922,7 +922,7 @@ and is automatically generated by the
|
|
|
922
922
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
923
923
|
|
|
924
924
|
- API version: `1.0.0`
|
|
925
|
-
- Package version: `0.0.
|
|
925
|
+
- Package version: `0.0.2033`
|
|
926
926
|
- Generator version: `7.22.0`
|
|
927
927
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
928
928
|
|
|
@@ -22,6 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -44,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
return json;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
48
50
|
'line1': json['line1'],
|
|
49
51
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
50
52
|
'postcode': json['postcode'],
|
|
@@ -44,7 +44,7 @@ export interface AddressResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AddressResource
|
|
46
46
|
*/
|
|
47
|
-
company
|
|
47
|
+
company: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface AddressResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof AddressResource
|
|
58
58
|
*/
|
|
59
|
-
line2
|
|
59
|
+
line2?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -24,9 +24,9 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
32
|
return false;
|
|
@@ -52,9 +52,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
53
53
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
54
54
|
'addresseeName': json['addresseeName'],
|
|
55
|
-
'company': json['company']
|
|
55
|
+
'company': json['company'],
|
|
56
56
|
'line1': json['line1'],
|
|
57
|
-
'line2': json['line2'],
|
|
57
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
58
58
|
'postcode': json['postcode'],
|
|
59
59
|
'suburb': json['suburb'],
|
|
60
60
|
'country': json['country'],
|
|
@@ -45,6 +45,12 @@ 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;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {string}
|
|
@@ -54,6 +54,7 @@ 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'],
|
|
57
58
|
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
58
59
|
'deviceData': json['device_data'] == null ? undefined : json['device_data'],
|
|
59
60
|
};
|
|
@@ -72,6 +73,7 @@ function CreateTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
73
|
'amount': value['amount'],
|
|
73
74
|
'surcharge': value['surcharge'],
|
|
74
75
|
'payment_method': value['paymentMethod'],
|
|
76
|
+
'description': value['description'],
|
|
75
77
|
'nonce': value['nonce'],
|
|
76
78
|
'device_data': value['deviceData'],
|
|
77
79
|
};
|
|
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreFrontendResource
|
|
46
46
|
*/
|
|
47
|
-
website
|
|
47
|
+
website?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreFrontendResource
|
|
76
76
|
*/
|
|
77
|
-
tagLine
|
|
77
|
+
tagLine: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -28,14 +28,14 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
36
|
return false;
|
|
37
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
+
return false;
|
|
39
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
40
|
return false;
|
|
41
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -54,12 +54,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'siteId': json['siteId'],
|
|
55
55
|
'name': json['name'],
|
|
56
56
|
'email': json['email'],
|
|
57
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
58
58
|
'phone': json['phone'],
|
|
59
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
60
|
'latitude': json['latitude'],
|
|
61
61
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
63
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
64
|
'specialDates': json['specialDates'],
|
|
65
65
|
'suppliers': json['suppliers'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website?: string | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -33,12 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
39
|
return false;
|
|
44
40
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
55
|
'phone': json['phone'],
|
|
60
56
|
'longitude': json['longitude'],
|
|
61
57
|
'latitude': json['latitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
58
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
59
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
60
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
61
|
'netsuiteId': json['netsuiteId'],
|
|
66
62
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -36,6 +36,8 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'phone': json['phone'],
|
|
65
67
|
'longitude': json['longitude'],
|
|
66
68
|
'latitude': json['latitude'],
|
|
67
|
-
'tagLine': json['tagLine']
|
|
69
|
+
'tagLine': json['tagLine'],
|
|
68
70
|
'email': json['email'],
|
|
69
71
|
'website': json['website'] == null ? undefined : json['website'],
|
|
70
72
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -60,6 +60,7 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'surcharge': json['surcharge'],
|
|
61
61
|
'totalAmount': json['totalAmount'],
|
|
62
62
|
'reference': json['reference'],
|
|
63
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
63
64
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
64
65
|
};
|
|
65
66
|
}
|
|
@@ -82,6 +83,7 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
83
|
'surcharge': value['surcharge'],
|
|
83
84
|
'totalAmount': value['totalAmount'],
|
|
84
85
|
'reference': value['reference'],
|
|
86
|
+
'description': value['description'],
|
|
85
87
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
86
88
|
};
|
|
87
89
|
}
|
|
@@ -70,6 +70,7 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'insuranceAmount': json['insurance_amount'],
|
|
71
71
|
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
72
72
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
73
|
+
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
73
74
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
74
75
|
'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
|
|
75
76
|
'shippingAddress': json['shipping_address'] == null ? undefined : (0, CreateCartRequestShippingAddress_1.CreateCartRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
@@ -94,6 +95,7 @@ function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
94
95
|
'insurance_amount': value['insuranceAmount'],
|
|
95
96
|
'include_insurance': value['includeInsurance'],
|
|
96
97
|
'override_insurance': value['overrideInsurance'],
|
|
98
|
+
'use_as_billing_address': value['useAsBillingAddress'],
|
|
97
99
|
'shipping_address_id': value['shippingAddressId'],
|
|
98
100
|
'billing_address_id': value['billingAddressId'],
|
|
99
101
|
'shipping_address': (0, CreateCartRequestShippingAddress_1.CreateCartRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`amount` | number
|
|
12
12
|
`surcharge` | number
|
|
13
13
|
`paymentMethod` | string
|
|
14
|
+
`description` | string
|
|
14
15
|
`nonce` | string
|
|
15
16
|
`deviceData` | string
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"amount": null,
|
|
27
28
|
"surcharge": null,
|
|
28
29
|
"paymentMethod": null,
|
|
30
|
+
"description": null,
|
|
29
31
|
"nonce": null,
|
|
30
32
|
"deviceData": null,
|
|
31
33
|
} satisfies CreateTransactionRequest
|
|
@@ -16,6 +16,7 @@ Name | Type
|
|
|
16
16
|
`surcharge` | number
|
|
17
17
|
`totalAmount` | number
|
|
18
18
|
`reference` | string
|
|
19
|
+
`description` | string
|
|
19
20
|
`createdAt` | Date
|
|
20
21
|
|
|
21
22
|
## Example
|
|
@@ -35,6 +36,7 @@ const example = {
|
|
|
35
36
|
"surcharge": null,
|
|
36
37
|
"totalAmount": null,
|
|
37
38
|
"reference": null,
|
|
39
|
+
"description": null,
|
|
38
40
|
"createdAt": null,
|
|
39
41
|
} satisfies TransactionLiteResource
|
|
40
42
|
|
|
@@ -15,6 +15,7 @@ Name | Type
|
|
|
15
15
|
`insuranceAmount` | number
|
|
16
16
|
`includeInsurance` | boolean
|
|
17
17
|
`overrideInsurance` | boolean
|
|
18
|
+
`useAsBillingAddress` | boolean
|
|
18
19
|
`shippingAddressId` | number
|
|
19
20
|
`billingAddressId` | number
|
|
20
21
|
`shippingAddress` | [CreateCartRequestShippingAddress](CreateCartRequestShippingAddress.md)
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"insuranceAmount": null,
|
|
37
38
|
"includeInsurance": null,
|
|
38
39
|
"overrideInsurance": null,
|
|
40
|
+
"useAsBillingAddress": null,
|
|
39
41
|
"shippingAddressId": null,
|
|
40
42
|
"billingAddressId": null,
|
|
41
43
|
"shippingAddress": null,
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
95
|
|
|
95
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
98
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
@@ -48,7 +48,7 @@ export interface AddressResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -98,8 +98,8 @@ export interface AddressResource {
|
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
101
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
102
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
103
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
104
104
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
105
105
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -122,9 +122,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
122
122
|
'type': json['type'] == null ? undefined : json['type'],
|
|
123
123
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
124
124
|
'addresseeName': json['addresseeName'],
|
|
125
|
-
'company': json['company']
|
|
125
|
+
'company': json['company'],
|
|
126
126
|
'line1': json['line1'],
|
|
127
|
-
'line2': json['line2'],
|
|
127
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
128
128
|
'postcode': json['postcode'],
|
|
129
129
|
'suburb': json['suburb'],
|
|
130
130
|
'country': json['country'],
|
|
@@ -49,6 +49,12 @@ export interface CreateTransactionRequest {
|
|
|
49
49
|
* @memberof CreateTransactionRequest
|
|
50
50
|
*/
|
|
51
51
|
paymentMethod: CreateTransactionRequestPaymentMethodEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateTransactionRequest
|
|
56
|
+
*/
|
|
57
|
+
description?: string | null;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {string}
|
|
@@ -103,6 +109,7 @@ export function CreateTransactionRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
103
109
|
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
104
110
|
'surcharge': json['surcharge'],
|
|
105
111
|
'paymentMethod': json['payment_method'],
|
|
112
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
106
113
|
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
107
114
|
'deviceData': json['device_data'] == null ? undefined : json['device_data'],
|
|
108
115
|
};
|
|
@@ -124,6 +131,7 @@ export function CreateTransactionRequestToJSONTyped(value?: CreateTransactionReq
|
|
|
124
131
|
'amount': value['amount'],
|
|
125
132
|
'surcharge': value['surcharge'],
|
|
126
133
|
'payment_method': value['paymentMethod'],
|
|
134
|
+
'description': value['description'],
|
|
127
135
|
'nonce': value['nonce'],
|
|
128
136
|
'device_data': value['deviceData'],
|
|
129
137
|
};
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -106,10 +106,10 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
113
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
114
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
115
|
return true;
|
|
@@ -129,12 +129,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
129
|
'siteId': json['siteId'],
|
|
130
130
|
'name': json['name'],
|
|
131
131
|
'email': json['email'],
|
|
132
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
133
133
|
'phone': json['phone'],
|
|
134
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
135
|
'latitude': json['latitude'],
|
|
136
136
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
138
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
139
|
'specialDates': json['specialDates'],
|
|
140
140
|
'suppliers': json['suppliers'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -110,9 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
114
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
115
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
116
|
return true;
|
|
@@ -134,9 +132,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
132
|
'phone': json['phone'],
|
|
135
133
|
'longitude': json['longitude'],
|
|
136
134
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
135
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
136
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
137
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
138
|
'netsuiteId': json['netsuiteId'],
|
|
141
139
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
140
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
154
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
@@ -174,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
174
175
|
'phone': json['phone'],
|
|
175
176
|
'longitude': json['longitude'],
|
|
176
177
|
'latitude': json['latitude'],
|
|
177
|
-
'tagLine': json['tagLine']
|
|
178
|
+
'tagLine': json['tagLine'],
|
|
178
179
|
'email': json['email'],
|
|
179
180
|
'website': json['website'] == null ? undefined : json['website'],
|
|
180
181
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -79,6 +79,12 @@ export interface TransactionLiteResource {
|
|
|
79
79
|
* @memberof TransactionLiteResource
|
|
80
80
|
*/
|
|
81
81
|
reference: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof TransactionLiteResource
|
|
86
|
+
*/
|
|
87
|
+
description?: string | null;
|
|
82
88
|
/**
|
|
83
89
|
*
|
|
84
90
|
* @type {Date}
|
|
@@ -123,6 +129,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
123
129
|
'surcharge': json['surcharge'],
|
|
124
130
|
'totalAmount': json['totalAmount'],
|
|
125
131
|
'reference': json['reference'],
|
|
132
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
126
133
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
127
134
|
};
|
|
128
135
|
}
|
|
@@ -148,6 +155,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
148
155
|
'surcharge': value['surcharge'],
|
|
149
156
|
'totalAmount': value['totalAmount'],
|
|
150
157
|
'reference': value['reference'],
|
|
158
|
+
'description': value['description'],
|
|
151
159
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
152
160
|
};
|
|
153
161
|
}
|
|
@@ -81,6 +81,12 @@ export interface UpdateOrderRequest {
|
|
|
81
81
|
* @memberof UpdateOrderRequest
|
|
82
82
|
*/
|
|
83
83
|
overrideInsurance?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof UpdateOrderRequest
|
|
88
|
+
*/
|
|
89
|
+
useAsBillingAddress?: boolean;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {number}
|
|
@@ -161,6 +167,7 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
161
167
|
'insuranceAmount': json['insurance_amount'],
|
|
162
168
|
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
163
169
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
170
|
+
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
164
171
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
165
172
|
'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
|
|
166
173
|
'shippingAddress': json['shipping_address'] == null ? undefined : CreateCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
@@ -188,6 +195,7 @@ export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null,
|
|
|
188
195
|
'insurance_amount': value['insuranceAmount'],
|
|
189
196
|
'include_insurance': value['includeInsurance'],
|
|
190
197
|
'override_insurance': value['overrideInsurance'],
|
|
198
|
+
'use_as_billing_address': value['useAsBillingAddress'],
|
|
191
199
|
'shipping_address_id': value['shippingAddressId'],
|
|
192
200
|
'billing_address_id': value['billingAddressId'],
|
|
193
201
|
'shipping_address': CreateCartRequestShippingAddressToJSON(value['shippingAddress']),
|