@digital8/lighting-illusions-ts-sdk 0.0.2731 → 0.0.2733
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 +0 -5
- package/README.md +2 -2
- package/dist/apis/TransactionsApi.d.ts +1 -12
- package/dist/apis/TransactionsApi.js +0 -46
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +3 -3
- package/dist/models/AddressFrontendResource.js +6 -4
- package/dist/models/CreateTransactionRequest.d.ts +0 -1
- package/dist/models/CreateTransactionRequest.js +1 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/FrontendCartResource.d.ts +0 -24
- package/dist/models/FrontendCartResource.js +0 -16
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- package/dist/models/PaymentMethod.d.ts +0 -1
- package/dist/models/PaymentMethod.js +1 -2
- package/dist/models/PaymentTotalsResource.d.ts +0 -18
- package/dist/models/PaymentTotalsResource.js +0 -12
- package/dist/models/SearchTransactionsRequest.d.ts +2 -3
- package/dist/models/SearchTransactionsRequest.js +2 -3
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +2 -3
- package/dist/models/TransactionListResource.js +2 -3
- package/dist/models/TransactionLiteResource.d.ts +2 -3
- package/dist/models/TransactionLiteResource.js +2 -3
- package/dist/models/TransactionResource.d.ts +2 -3
- package/dist/models/TransactionResource.js +2 -3
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +0 -44
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +8 -7
- package/src/models/CreateTransactionRequest.ts +1 -2
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/FrontendCartResource.ts +0 -36
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/PaymentMethod.ts +1 -2
- package/src/models/PaymentTotalsResource.ts +0 -27
- package/src/models/SearchTransactionsRequest.ts +4 -12
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionListResource.ts +4 -14
- package/src/models/TransactionLiteResource.ts +4 -14
- package/src/models/TransactionResource.ts +4 -14
- package/src/models/index.ts +0 -4
- package/dist/apis/StoreCreditsApi.d.ts +0 -29
- package/dist/apis/StoreCreditsApi.js +0 -125
- package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreCreditListResourceResponse.js +0 -57
- package/dist/models/SearchStoreCreditsRequest.d.ts +0 -106
- package/dist/models/SearchStoreCreditsRequest.js +0 -86
- package/dist/models/StoreCreditListResource.d.ts +0 -86
- package/dist/models/StoreCreditListResource.js +0 -80
- package/dist/models/StoreCreditListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditListResourceArrayResponse.js +0 -50
- package/src/apis/StoreCreditsApi.ts +0 -69
- package/src/models/PaginatedStoreCreditListResourceResponse.ts +0 -90
- package/src/models/SearchStoreCreditsRequest.ts +0 -161
- package/src/models/StoreCreditListResource.ts +0 -143
- package/src/models/StoreCreditListResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -38,7 +38,6 @@ src/apis/ReviewApi.ts
|
|
|
38
38
|
src/apis/RolesApi.ts
|
|
39
39
|
src/apis/SiteApi.ts
|
|
40
40
|
src/apis/StoreApi.ts
|
|
41
|
-
src/apis/StoreCreditsApi.ts
|
|
42
41
|
src/apis/SupplierApi.ts
|
|
43
42
|
src/apis/TagApi.ts
|
|
44
43
|
src/apis/TransactionsApi.ts
|
|
@@ -446,7 +445,6 @@ src/models/PaginatedSiteLiteResourceResponse.ts
|
|
|
446
445
|
src/models/PaginatedSiteNotificationListResourceResponse.ts
|
|
447
446
|
src/models/PaginatedSiteNotificationResourceResponse.ts
|
|
448
447
|
src/models/PaginatedSiteResourceResponse.ts
|
|
449
|
-
src/models/PaginatedStoreCreditListResourceResponse.ts
|
|
450
448
|
src/models/PaginatedStoreListResourceResponse.ts
|
|
451
449
|
src/models/PaginatedSupplierFrontendResourceResponse.ts
|
|
452
450
|
src/models/PaginatedSupplierListResourceResponse.ts
|
|
@@ -692,7 +690,6 @@ src/models/SearchReviewsRequest.ts
|
|
|
692
690
|
src/models/SearchRolesRequest.ts
|
|
693
691
|
src/models/SearchSiteNotificationsRequest.ts
|
|
694
692
|
src/models/SearchSitesRequest.ts
|
|
695
|
-
src/models/SearchStoreCreditsRequest.ts
|
|
696
693
|
src/models/SearchStoresRequest.ts
|
|
697
694
|
src/models/SearchSuppliersRequest.ts
|
|
698
695
|
src/models/SearchTagsRequest.ts
|
|
@@ -717,8 +714,6 @@ src/models/SiteResource.ts
|
|
|
717
714
|
src/models/SiteResourceArrayResponse.ts
|
|
718
715
|
src/models/SkuSearchProductChildRequest.ts
|
|
719
716
|
src/models/SocialProvider.ts
|
|
720
|
-
src/models/StoreCreditListResource.ts
|
|
721
|
-
src/models/StoreCreditListResourceArrayResponse.ts
|
|
722
717
|
src/models/StoreFrontendResource.ts
|
|
723
718
|
src/models/StoreFrontendResourceArrayResponse.ts
|
|
724
719
|
src/models/StoreListResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2733
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/lighting-illusions-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2733 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateTransactionRequest,
|
|
14
|
-
export interface DestroyTransactionRequest {
|
|
15
|
-
transaction: number;
|
|
16
|
-
}
|
|
13
|
+
import type { CreateTransactionRequest, PaginatedTransactionListResourceResponse, RefundTransactionRequest, SearchTransactionsRequest, StoreTransactionResource, TransactionResource } from '../models/index';
|
|
17
14
|
export interface IndexTransactionRequest {
|
|
18
15
|
searchTransactionsRequest?: SearchTransactionsRequest;
|
|
19
16
|
}
|
|
@@ -28,14 +25,6 @@ export interface StoreTransactionRequest {
|
|
|
28
25
|
*
|
|
29
26
|
*/
|
|
30
27
|
export declare class TransactionsApi extends runtime.BaseAPI {
|
|
31
|
-
/**
|
|
32
|
-
* Auto-generated: destroyTransaction
|
|
33
|
-
*/
|
|
34
|
-
destroyTransactionRaw(requestParameters: DestroyTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
35
|
-
/**
|
|
36
|
-
* Auto-generated: destroyTransaction
|
|
37
|
-
*/
|
|
38
|
-
destroyTransaction(requestParameters: DestroyTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
39
28
|
/**
|
|
40
29
|
* Auto-generated: indexTransaction
|
|
41
30
|
*/
|
|
@@ -75,52 +75,6 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function TransactionsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: destroyTransaction
|
|
80
|
-
*/
|
|
81
|
-
TransactionsApi.prototype.destroyTransactionRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['transaction'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('transaction', 'Required parameter "transaction" was null or undefined when calling destroyTransaction().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
urlPath = "/admin-api/transactions/{transaction}/delete";
|
|
93
|
-
urlPath = urlPath.replace("{".concat("transaction", "}"), encodeURIComponent(String(requestParameters['transaction'])));
|
|
94
|
-
return [4 /*yield*/, this.request({
|
|
95
|
-
path: urlPath,
|
|
96
|
-
method: 'DELETE',
|
|
97
|
-
headers: headerParameters,
|
|
98
|
-
query: queryParameters,
|
|
99
|
-
}, initOverrides)];
|
|
100
|
-
case 1:
|
|
101
|
-
response = _a.sent();
|
|
102
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Auto-generated: destroyTransaction
|
|
109
|
-
*/
|
|
110
|
-
TransactionsApi.prototype.destroyTransaction = function (requestParameters, initOverrides) {
|
|
111
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
-
var response;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0: return [4 /*yield*/, this.destroyTransactionRaw(requestParameters, initOverrides)];
|
|
116
|
-
case 1:
|
|
117
|
-
response = _a.sent();
|
|
118
|
-
return [4 /*yield*/, response.value()];
|
|
119
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
78
|
/**
|
|
125
79
|
* Auto-generated: indexTransaction
|
|
126
80
|
*/
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __exportStar(require("./ReviewApi"), exports);
|
|
|
51
51
|
__exportStar(require("./RolesApi"), exports);
|
|
52
52
|
__exportStar(require("./SiteApi"), exports);
|
|
53
53
|
__exportStar(require("./StoreApi"), exports);
|
|
54
|
-
__exportStar(require("./StoreCreditsApi"), exports);
|
|
55
54
|
__exportStar(require("./SupplierApi"), exports);
|
|
56
55
|
__exportStar(require("./TagApi"), exports);
|
|
57
56
|
__exportStar(require("./TransactionsApi"), exports);
|
|
@@ -32,13 +32,13 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
addresseeName
|
|
35
|
+
addresseeName?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
41
|
+
company: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -50,7 +50,7 @@ export interface AddressFrontendResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof AddressFrontendResource
|
|
52
52
|
*/
|
|
53
|
-
line2
|
|
53
|
+
line2: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -22,10 +22,12 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -48,10 +50,10 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
|
-
'addresseeName': json['addresseeName'],
|
|
52
|
-
'company': json['company']
|
|
53
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
54
|
+
'company': json['company'],
|
|
53
55
|
'line1': json['line1'],
|
|
54
|
-
'line2': json['line2']
|
|
56
|
+
'line2': json['line2'],
|
|
55
57
|
'postcode': json['postcode'],
|
|
56
58
|
'suburb': json['suburb'],
|
|
57
59
|
'country': json['country'],
|
|
@@ -75,7 +75,6 @@ export declare const CreateTransactionRequestPaymentMethodEnum: {
|
|
|
75
75
|
readonly GooglePay: "google_pay";
|
|
76
76
|
readonly PayPal: "pay_pal";
|
|
77
77
|
readonly ApplePay: "apple_pay";
|
|
78
|
-
readonly StoreCredit: "store_credit";
|
|
79
78
|
};
|
|
80
79
|
export type CreateTransactionRequestPaymentMethodEnum = typeof CreateTransactionRequestPaymentMethodEnum[keyof typeof CreateTransactionRequestPaymentMethodEnum];
|
|
81
80
|
/**
|
|
@@ -29,8 +29,7 @@ exports.CreateTransactionRequestPaymentMethodEnum = {
|
|
|
29
29
|
AmericanExpress: 'american_express',
|
|
30
30
|
GooglePay: 'google_pay',
|
|
31
31
|
PayPal: 'pay_pal',
|
|
32
|
-
ApplePay: 'apple_pay'
|
|
33
|
-
StoreCredit: 'store_credit'
|
|
32
|
+
ApplePay: 'apple_pay'
|
|
34
33
|
};
|
|
35
34
|
/**
|
|
36
35
|
* Check if a given object implements the CreateTransactionRequest interface.
|
|
@@ -39,6 +39,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('isSuccess' in value) || value['isSuccess'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -61,7 +63,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
63
|
'endpoint': json['endpoint'],
|
|
62
64
|
'responseCode': json['responseCode'],
|
|
63
65
|
'isSuccess': json['isSuccess'],
|
|
64
|
-
'requestPayload': json['requestPayload']
|
|
66
|
+
'requestPayload': json['requestPayload'],
|
|
65
67
|
'responsePayload': json['responsePayload'],
|
|
66
68
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
67
69
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -157,30 +157,6 @@ export interface FrontendCartResource {
|
|
|
157
157
|
* @memberof FrontendCartResource
|
|
158
158
|
*/
|
|
159
159
|
grandTotal: number;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {Array<string>}
|
|
163
|
-
* @memberof FrontendCartResource
|
|
164
|
-
*/
|
|
165
|
-
storeCredits: Array<string>;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {number}
|
|
169
|
-
* @memberof FrontendCartResource
|
|
170
|
-
*/
|
|
171
|
-
storeCreditTotal: number;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {number}
|
|
175
|
-
* @memberof FrontendCartResource
|
|
176
|
-
*/
|
|
177
|
-
availableStoreCreditTotal: number;
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @type {number}
|
|
181
|
-
* @memberof FrontendCartResource
|
|
182
|
-
*/
|
|
183
|
-
amountDue: number;
|
|
184
160
|
}
|
|
185
161
|
/**
|
|
186
162
|
* Check if a given object implements the FrontendCartResource interface.
|
|
@@ -64,14 +64,6 @@ function instanceOfFrontendCartResource(value) {
|
|
|
64
64
|
return false;
|
|
65
65
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined)
|
|
66
66
|
return false;
|
|
67
|
-
if (!('storeCredits' in value) || value['storeCredits'] === undefined)
|
|
68
|
-
return false;
|
|
69
|
-
if (!('storeCreditTotal' in value) || value['storeCreditTotal'] === undefined)
|
|
70
|
-
return false;
|
|
71
|
-
if (!('availableStoreCreditTotal' in value) || value['availableStoreCreditTotal'] === undefined)
|
|
72
|
-
return false;
|
|
73
|
-
if (!('amountDue' in value) || value['amountDue'] === undefined)
|
|
74
|
-
return false;
|
|
75
67
|
return true;
|
|
76
68
|
}
|
|
77
69
|
function FrontendCartResourceFromJSON(json) {
|
|
@@ -105,10 +97,6 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
105
97
|
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
106
98
|
'gst': json['gst'],
|
|
107
99
|
'grandTotal': json['grandTotal'],
|
|
108
|
-
'storeCredits': json['storeCredits'],
|
|
109
|
-
'storeCreditTotal': json['storeCreditTotal'],
|
|
110
|
-
'availableStoreCreditTotal': json['availableStoreCreditTotal'],
|
|
111
|
-
'amountDue': json['amountDue'],
|
|
112
100
|
};
|
|
113
101
|
}
|
|
114
102
|
function FrontendCartResourceToJSON(json) {
|
|
@@ -143,9 +131,5 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
143
131
|
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
144
132
|
'gst': value['gst'],
|
|
145
133
|
'grandTotal': value['grandTotal'],
|
|
146
|
-
'storeCredits': value['storeCredits'],
|
|
147
|
-
'storeCreditTotal': value['storeCreditTotal'],
|
|
148
|
-
'availableStoreCreditTotal': value['availableStoreCreditTotal'],
|
|
149
|
-
'amountDue': value['amountDue'],
|
|
150
134
|
};
|
|
151
135
|
}
|
|
@@ -45,13 +45,13 @@ export interface OrderFulfillmentResource {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,7 +29,7 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -51,8 +51,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'orderId': json['orderId'],
|
|
52
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
53
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
54
|
-
'trackingUrl': json['trackingUrl']
|
|
55
|
-
'trackingCompany': json['trackingCompany'],
|
|
54
|
+
'trackingUrl': json['trackingUrl'],
|
|
55
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
56
56
|
'docnum': json['docnum'],
|
|
57
57
|
'netsuiteId': json['netsuiteId'],
|
|
58
58
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -21,7 +21,6 @@ export declare const PaymentMethod: {
|
|
|
21
21
|
readonly GooglePay: "google_pay";
|
|
22
22
|
readonly PayPal: "pay_pal";
|
|
23
23
|
readonly ApplePay: "apple_pay";
|
|
24
|
-
readonly StoreCredit: "store_credit";
|
|
25
24
|
};
|
|
26
25
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
27
26
|
export declare function instanceOfPaymentMethod(value: any): boolean;
|
|
@@ -30,8 +30,7 @@ exports.PaymentMethod = {
|
|
|
30
30
|
AmericanExpress: 'american_express',
|
|
31
31
|
GooglePay: 'google_pay',
|
|
32
32
|
PayPal: 'pay_pal',
|
|
33
|
-
ApplePay: 'apple_pay'
|
|
34
|
-
StoreCredit: 'store_credit'
|
|
33
|
+
ApplePay: 'apple_pay'
|
|
35
34
|
};
|
|
36
35
|
function instanceOfPaymentMethod(value) {
|
|
37
36
|
for (var key in exports.PaymentMethod) {
|
|
@@ -75,24 +75,6 @@ export interface PaymentTotalsResource {
|
|
|
75
75
|
* @memberof PaymentTotalsResource
|
|
76
76
|
*/
|
|
77
77
|
amountDue: number;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<string>}
|
|
81
|
-
* @memberof PaymentTotalsResource
|
|
82
|
-
*/
|
|
83
|
-
storeCredits: Array<string>;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof PaymentTotalsResource
|
|
88
|
-
*/
|
|
89
|
-
storeCreditTotal: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof PaymentTotalsResource
|
|
94
|
-
*/
|
|
95
|
-
availableStoreCreditTotal: number;
|
|
96
78
|
/**
|
|
97
79
|
*
|
|
98
80
|
* @type {Array<object>}
|
|
@@ -42,12 +42,6 @@ function instanceOfPaymentTotalsResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('amountDue' in value) || value['amountDue'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
-
if (!('storeCredits' in value) || value['storeCredits'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('storeCreditTotal' in value) || value['storeCreditTotal'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('availableStoreCreditTotal' in value) || value['availableStoreCreditTotal'] === undefined)
|
|
50
|
-
return false;
|
|
51
45
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined)
|
|
52
46
|
return false;
|
|
53
47
|
if (!('noOfItems' in value) || value['noOfItems'] === undefined)
|
|
@@ -82,9 +76,6 @@ function PaymentTotalsResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
76
|
'amountPaid': json['amountPaid'],
|
|
83
77
|
'surchargePaid': json['surchargePaid'],
|
|
84
78
|
'amountDue': json['amountDue'],
|
|
85
|
-
'storeCredits': json['storeCredits'],
|
|
86
|
-
'storeCreditTotal': json['storeCreditTotal'],
|
|
87
|
-
'availableStoreCreditTotal': json['availableStoreCreditTotal'],
|
|
88
79
|
'appliedCoupons': json['appliedCoupons'],
|
|
89
80
|
'noOfItems': json['noOfItems'],
|
|
90
81
|
'lineItems': json['lineItems'],
|
|
@@ -114,9 +105,6 @@ function PaymentTotalsResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
114
105
|
'amountPaid': value['amountPaid'],
|
|
115
106
|
'surchargePaid': value['surchargePaid'],
|
|
116
107
|
'amountDue': value['amountDue'],
|
|
117
|
-
'storeCredits': value['storeCredits'],
|
|
118
|
-
'storeCreditTotal': value['storeCreditTotal'],
|
|
119
|
-
'availableStoreCreditTotal': value['availableStoreCreditTotal'],
|
|
120
108
|
'appliedCoupons': value['appliedCoupons'],
|
|
121
109
|
'noOfItems': value['noOfItems'],
|
|
122
110
|
'lineItems': value['lineItems'],
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -60,10 +59,10 @@ export interface SearchTransactionsRequest {
|
|
|
60
59
|
type?: Array<string>;
|
|
61
60
|
/**
|
|
62
61
|
*
|
|
63
|
-
* @type {Array<
|
|
62
|
+
* @type {Array<string>}
|
|
64
63
|
* @memberof SearchTransactionsRequest
|
|
65
64
|
*/
|
|
66
|
-
paymentMethod?: Array<
|
|
65
|
+
paymentMethod?: Array<string>;
|
|
67
66
|
/**
|
|
68
67
|
*
|
|
69
68
|
* @type {Array<string>}
|
|
@@ -19,7 +19,6 @@ exports.SearchTransactionsRequestFromJSON = SearchTransactionsRequestFromJSON;
|
|
|
19
19
|
exports.SearchTransactionsRequestFromJSONTyped = SearchTransactionsRequestFromJSONTyped;
|
|
20
20
|
exports.SearchTransactionsRequestToJSON = SearchTransactionsRequestToJSON;
|
|
21
21
|
exports.SearchTransactionsRequestToJSONTyped = SearchTransactionsRequestToJSONTyped;
|
|
22
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
22
|
/**
|
|
24
23
|
* @export
|
|
25
24
|
*/
|
|
@@ -63,7 +62,7 @@ function SearchTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
62
|
'page': json['page'] == null ? undefined : json['page'],
|
|
64
63
|
'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
|
|
65
64
|
'type': json['type'] == null ? undefined : json['type'],
|
|
66
|
-
'paymentMethod': json['payment_method'] == null ? undefined :
|
|
65
|
+
'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
|
|
67
66
|
'status': json['status'] == null ? undefined : json['status'],
|
|
68
67
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
69
68
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
@@ -88,7 +87,7 @@ function SearchTransactionsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
87
|
'page': value['page'],
|
|
89
88
|
'payment_source': value['paymentSource'],
|
|
90
89
|
'type': value['type'],
|
|
91
|
-
'payment_method': value['paymentMethod']
|
|
90
|
+
'payment_method': value['paymentMethod'],
|
|
92
91
|
'status': value['status'],
|
|
93
92
|
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
94
93
|
'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
|
|
@@ -28,6 +28,8 @@ 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;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine: string;
|
|
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,9 +33,9 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('
|
|
38
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
41
|
return false;
|
|
@@ -57,9 +57,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'phone': json['phone'],
|
|
58
58
|
'longitude': json['longitude'],
|
|
59
59
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
60
|
+
'tagLine': json['tagLine'],
|
|
61
61
|
'email': json['email'],
|
|
62
|
-
'website': json['website'],
|
|
62
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
63
63
|
'netsuiteId': json['netsuiteId'],
|
|
64
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
65
|
'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 (!('website' in value) || value['website'] === undefined)
|
|
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'phone': json['phone'],
|
|
67
69
|
'longitude': json['longitude'],
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine']
|
|
71
|
+
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
73
|
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -30,10 +29,10 @@ export interface TransactionListResource {
|
|
|
30
29
|
paymentSource: string;
|
|
31
30
|
/**
|
|
32
31
|
*
|
|
33
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
34
33
|
* @memberof TransactionListResource
|
|
35
34
|
*/
|
|
36
|
-
paymentMethod:
|
|
35
|
+
paymentMethod: string;
|
|
37
36
|
/**
|
|
38
37
|
*
|
|
39
38
|
* @type {string}
|