@digital8/lighting-illusions-ts-sdk 0.0.2793 → 0.0.2795
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 -10
- package/README.md +2 -2
- package/dist/apis/CouponsApi.d.ts +1 -9
- package/dist/apis/CouponsApi.js +0 -42
- 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 +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +0 -12
- package/dist/models/AdminOrderResource.js +0 -8
- package/dist/models/CreatePageRequest.d.ts +2 -2
- package/dist/models/CreatePageRequest.js +3 -2
- package/dist/models/CreateTransactionRequest.d.ts +0 -1
- package/dist/models/CreateTransactionRequest.js +1 -2
- package/dist/models/FrontendCartResource.d.ts +0 -25
- package/dist/models/FrontendCartResource.js +0 -17
- package/dist/models/FrontendOrderResource.d.ts +0 -6
- package/dist/models/FrontendOrderResource.js +0 -4
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/PaymentMethod.d.ts +0 -1
- package/dist/models/PaymentMethod.js +1 -2
- package/dist/models/PaymentTotalsResource.d.ts +0 -25
- package/dist/models/PaymentTotalsResource.js +0 -17
- package/dist/models/SearchTransactionsRequest.d.ts +2 -3
- package/dist/models/SearchTransactionsRequest.js +2 -3
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- 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 +3 -1
- package/dist/models/TransactionListResource.d.ts +8 -12
- package/dist/models/TransactionListResource.js +8 -12
- package/dist/models/TransactionLiteResource.d.ts +8 -12
- package/dist/models/TransactionLiteResource.js +8 -12
- package/dist/models/TransactionResource.d.ts +8 -12
- package/dist/models/TransactionResource.js +8 -12
- package/dist/models/UpdatePageRequest.d.ts +2 -2
- package/dist/models/UpdatePageRequest.js +3 -2
- package/dist/models/index.d.ts +0 -9
- package/dist/models/index.js +0 -9
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +0 -32
- package/src/apis/TransactionsApi.ts +0 -44
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +0 -18
- package/src/models/CreatePageRequest.ts +4 -4
- package/src/models/CreateTransactionRequest.ts +1 -2
- package/src/models/FrontendCartResource.ts +0 -43
- package/src/models/FrontendOrderResource.ts +0 -9
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/PaymentMethod.ts +1 -2
- package/src/models/PaymentTotalsResource.ts +0 -44
- package/src/models/SearchTransactionsRequest.ts +4 -12
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionListResource.ts +16 -47
- package/src/models/TransactionLiteResource.ts +16 -47
- package/src/models/TransactionResource.ts +16 -47
- package/src/models/UpdatePageRequest.ts +4 -4
- package/src/models/index.ts +0 -9
- package/dist/apis/StoreCreditsApi.d.ts +0 -29
- package/dist/apis/StoreCreditsApi.js +0 -125
- package/dist/models/FrontendCartResourceStoreCreditsInner.d.ts +0 -44
- package/dist/models/FrontendCartResourceStoreCreditsInner.js +0 -53
- package/dist/models/GeneratedCouponCodeResource.d.ts +0 -32
- package/dist/models/GeneratedCouponCodeResource.js +0 -51
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.js +0 -50
- 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/dist/models/StoreCreditLiteResource.d.ts +0 -44
- package/dist/models/StoreCreditLiteResource.js +0 -59
- package/dist/models/StoreCreditLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditLiteResourceArrayResponse.js +0 -50
- package/src/apis/StoreCreditsApi.ts +0 -69
- package/src/models/FrontendCartResourceStoreCreditsInner.ts +0 -81
- package/src/models/GeneratedCouponCodeResource.ts +0 -66
- package/src/models/GeneratedCouponCodeResourceArrayResponse.ts +0 -73
- 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/src/models/StoreCreditLiteResource.ts +0 -84
- package/src/models/StoreCreditLiteResourceArrayResponse.ts +0 -73
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { FrontendCartResourceStoreCreditsInner } from './FrontendCartResourceStoreCreditsInner';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -70,36 +69,12 @@ export interface PaymentTotalsResource {
|
|
|
70
69
|
* @memberof PaymentTotalsResource
|
|
71
70
|
*/
|
|
72
71
|
surchargePaid: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof PaymentTotalsResource
|
|
77
|
-
*/
|
|
78
|
-
storeCreditPaid: number;
|
|
79
72
|
/**
|
|
80
73
|
*
|
|
81
74
|
* @type {number}
|
|
82
75
|
* @memberof PaymentTotalsResource
|
|
83
76
|
*/
|
|
84
77
|
amountDue: number;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {Array<FrontendCartResourceStoreCreditsInner>}
|
|
88
|
-
* @memberof PaymentTotalsResource
|
|
89
|
-
*/
|
|
90
|
-
storeCredits: Array<FrontendCartResourceStoreCreditsInner>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof PaymentTotalsResource
|
|
95
|
-
*/
|
|
96
|
-
storeCreditTotal: number;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof PaymentTotalsResource
|
|
101
|
-
*/
|
|
102
|
-
availableStoreCreditTotal: number;
|
|
103
78
|
/**
|
|
104
79
|
*
|
|
105
80
|
* @type {Array<object>}
|
|
@@ -18,7 +18,6 @@ exports.PaymentTotalsResourceFromJSON = PaymentTotalsResourceFromJSON;
|
|
|
18
18
|
exports.PaymentTotalsResourceFromJSONTyped = PaymentTotalsResourceFromJSONTyped;
|
|
19
19
|
exports.PaymentTotalsResourceToJSON = PaymentTotalsResourceToJSON;
|
|
20
20
|
exports.PaymentTotalsResourceToJSONTyped = PaymentTotalsResourceToJSONTyped;
|
|
21
|
-
var FrontendCartResourceStoreCreditsInner_1 = require("./FrontendCartResourceStoreCreditsInner");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the PaymentTotalsResource interface.
|
|
24
23
|
*/
|
|
@@ -41,16 +40,8 @@ function instanceOfPaymentTotalsResource(value) {
|
|
|
41
40
|
return false;
|
|
42
41
|
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined)
|
|
43
42
|
return false;
|
|
44
|
-
if (!('storeCreditPaid' in value) || value['storeCreditPaid'] === undefined)
|
|
45
|
-
return false;
|
|
46
43
|
if (!('amountDue' in value) || value['amountDue'] === undefined)
|
|
47
44
|
return false;
|
|
48
|
-
if (!('storeCredits' in value) || value['storeCredits'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
if (!('storeCreditTotal' in value) || value['storeCreditTotal'] === undefined)
|
|
51
|
-
return false;
|
|
52
|
-
if (!('availableStoreCreditTotal' in value) || value['availableStoreCreditTotal'] === undefined)
|
|
53
|
-
return false;
|
|
54
45
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined)
|
|
55
46
|
return false;
|
|
56
47
|
if (!('noOfItems' in value) || value['noOfItems'] === undefined)
|
|
@@ -84,11 +75,7 @@ function PaymentTotalsResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
75
|
'finalTotal': json['finalTotal'],
|
|
85
76
|
'amountPaid': json['amountPaid'],
|
|
86
77
|
'surchargePaid': json['surchargePaid'],
|
|
87
|
-
'storeCreditPaid': json['storeCreditPaid'],
|
|
88
78
|
'amountDue': json['amountDue'],
|
|
89
|
-
'storeCredits': (json['storeCredits'].map(FrontendCartResourceStoreCreditsInner_1.FrontendCartResourceStoreCreditsInnerFromJSON)),
|
|
90
|
-
'storeCreditTotal': json['storeCreditTotal'],
|
|
91
|
-
'availableStoreCreditTotal': json['availableStoreCreditTotal'],
|
|
92
79
|
'appliedCoupons': json['appliedCoupons'],
|
|
93
80
|
'noOfItems': json['noOfItems'],
|
|
94
81
|
'lineItems': json['lineItems'],
|
|
@@ -117,11 +104,7 @@ function PaymentTotalsResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
117
104
|
'finalTotal': value['finalTotal'],
|
|
118
105
|
'amountPaid': value['amountPaid'],
|
|
119
106
|
'surchargePaid': value['surchargePaid'],
|
|
120
|
-
'storeCreditPaid': value['storeCreditPaid'],
|
|
121
107
|
'amountDue': value['amountDue'],
|
|
122
|
-
'storeCredits': (value['storeCredits'].map(FrontendCartResourceStoreCreditsInner_1.FrontendCartResourceStoreCreditsInnerToJSON)),
|
|
123
|
-
'storeCreditTotal': value['storeCreditTotal'],
|
|
124
|
-
'availableStoreCreditTotal': value['availableStoreCreditTotal'],
|
|
125
108
|
'appliedCoupons': value['appliedCoupons'],
|
|
126
109
|
'noOfItems': value['noOfItems'],
|
|
127
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()),
|
|
@@ -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'],
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
60
|
'tagLine': json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
62
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
66
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,7 +70,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
71
|
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
|
-
'website': json['website']
|
|
73
|
+
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
|
73
75
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
76
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ 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;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { TransactionType } from './TransactionType';
|
|
13
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
14
|
-
import type { PaymentSource } from './PaymentSource';
|
|
15
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
16
12
|
/**
|
|
17
13
|
*
|
|
18
14
|
* @export
|
|
@@ -27,28 +23,28 @@ export interface TransactionListResource {
|
|
|
27
23
|
id: number;
|
|
28
24
|
/**
|
|
29
25
|
*
|
|
30
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
31
27
|
* @memberof TransactionListResource
|
|
32
28
|
*/
|
|
33
|
-
paymentSource:
|
|
29
|
+
paymentSource: string;
|
|
34
30
|
/**
|
|
35
31
|
*
|
|
36
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
37
33
|
* @memberof TransactionListResource
|
|
38
34
|
*/
|
|
39
|
-
paymentMethod:
|
|
35
|
+
paymentMethod: string;
|
|
40
36
|
/**
|
|
41
37
|
*
|
|
42
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
43
39
|
* @memberof TransactionListResource
|
|
44
40
|
*/
|
|
45
|
-
type:
|
|
41
|
+
type: string;
|
|
46
42
|
/**
|
|
47
43
|
*
|
|
48
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
49
45
|
* @memberof TransactionListResource
|
|
50
46
|
*/
|
|
51
|
-
status:
|
|
47
|
+
status: string;
|
|
52
48
|
/**
|
|
53
49
|
*
|
|
54
50
|
* @type {number}
|
|
@@ -18,10 +18,6 @@ exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
|
18
18
|
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
19
|
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
20
|
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
-
var TransactionType_1 = require("./TransactionType");
|
|
22
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
|
-
var PaymentSource_1 = require("./PaymentSource");
|
|
24
|
-
var PaymentStatus_1 = require("./PaymentStatus");
|
|
25
21
|
/**
|
|
26
22
|
* Check if a given object implements the TransactionListResource interface.
|
|
27
23
|
*/
|
|
@@ -57,10 +53,10 @@ function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
53
|
}
|
|
58
54
|
return {
|
|
59
55
|
'id': json['id'],
|
|
60
|
-
'paymentSource':
|
|
61
|
-
'paymentMethod':
|
|
62
|
-
'type':
|
|
63
|
-
'status':
|
|
56
|
+
'paymentSource': json['paymentSource'],
|
|
57
|
+
'paymentMethod': json['paymentMethod'],
|
|
58
|
+
'type': json['type'],
|
|
59
|
+
'status': json['status'],
|
|
64
60
|
'totalAmount': json['totalAmount'],
|
|
65
61
|
'surcharge': json['surcharge'],
|
|
66
62
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -84,10 +80,10 @@ function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
80
|
}
|
|
85
81
|
return {
|
|
86
82
|
'id': value['id'],
|
|
87
|
-
'paymentSource':
|
|
88
|
-
'paymentMethod':
|
|
89
|
-
'type':
|
|
90
|
-
'status':
|
|
83
|
+
'paymentSource': value['paymentSource'],
|
|
84
|
+
'paymentMethod': value['paymentMethod'],
|
|
85
|
+
'type': value['type'],
|
|
86
|
+
'status': value['status'],
|
|
91
87
|
'totalAmount': value['totalAmount'],
|
|
92
88
|
'surcharge': value['surcharge'],
|
|
93
89
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { TransactionType } from './TransactionType';
|
|
13
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
14
|
-
import type { PaymentSource } from './PaymentSource';
|
|
15
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
16
12
|
/**
|
|
17
13
|
*
|
|
18
14
|
* @export
|
|
@@ -27,16 +23,16 @@ export interface TransactionLiteResource {
|
|
|
27
23
|
id?: number | null;
|
|
28
24
|
/**
|
|
29
25
|
*
|
|
30
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
31
27
|
* @memberof TransactionLiteResource
|
|
32
28
|
*/
|
|
33
|
-
paymentSource:
|
|
29
|
+
paymentSource: string;
|
|
34
30
|
/**
|
|
35
31
|
*
|
|
36
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
37
33
|
* @memberof TransactionLiteResource
|
|
38
34
|
*/
|
|
39
|
-
paymentMethod:
|
|
35
|
+
paymentMethod: string;
|
|
40
36
|
/**
|
|
41
37
|
*
|
|
42
38
|
* @type {string}
|
|
@@ -45,16 +41,16 @@ export interface TransactionLiteResource {
|
|
|
45
41
|
paymentMethodThumbnail: string;
|
|
46
42
|
/**
|
|
47
43
|
*
|
|
48
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
49
45
|
* @memberof TransactionLiteResource
|
|
50
46
|
*/
|
|
51
|
-
type:
|
|
47
|
+
type: string;
|
|
52
48
|
/**
|
|
53
49
|
*
|
|
54
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
55
51
|
* @memberof TransactionLiteResource
|
|
56
52
|
*/
|
|
57
|
-
status:
|
|
53
|
+
status: string;
|
|
58
54
|
/**
|
|
59
55
|
*
|
|
60
56
|
* @type {number}
|
|
@@ -18,10 +18,6 @@ exports.TransactionLiteResourceFromJSON = TransactionLiteResourceFromJSON;
|
|
|
18
18
|
exports.TransactionLiteResourceFromJSONTyped = TransactionLiteResourceFromJSONTyped;
|
|
19
19
|
exports.TransactionLiteResourceToJSON = TransactionLiteResourceToJSON;
|
|
20
20
|
exports.TransactionLiteResourceToJSONTyped = TransactionLiteResourceToJSONTyped;
|
|
21
|
-
var TransactionType_1 = require("./TransactionType");
|
|
22
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
|
-
var PaymentSource_1 = require("./PaymentSource");
|
|
24
|
-
var PaymentStatus_1 = require("./PaymentStatus");
|
|
25
21
|
/**
|
|
26
22
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
27
23
|
*/
|
|
@@ -55,11 +51,11 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
51
|
}
|
|
56
52
|
return {
|
|
57
53
|
'id': json['id'] == null ? undefined : json['id'],
|
|
58
|
-
'paymentSource':
|
|
59
|
-
'paymentMethod':
|
|
54
|
+
'paymentSource': json['paymentSource'],
|
|
55
|
+
'paymentMethod': json['paymentMethod'],
|
|
60
56
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
61
|
-
'type':
|
|
62
|
-
'status':
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'status': json['status'],
|
|
63
59
|
'amount': json['amount'],
|
|
64
60
|
'surcharge': json['surcharge'],
|
|
65
61
|
'totalAmount': json['totalAmount'],
|
|
@@ -79,11 +75,11 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
75
|
}
|
|
80
76
|
return {
|
|
81
77
|
'id': value['id'],
|
|
82
|
-
'paymentSource':
|
|
83
|
-
'paymentMethod':
|
|
78
|
+
'paymentSource': value['paymentSource'],
|
|
79
|
+
'paymentMethod': value['paymentMethod'],
|
|
84
80
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
85
|
-
'type':
|
|
86
|
-
'status':
|
|
81
|
+
'type': value['type'],
|
|
82
|
+
'status': value['status'],
|
|
87
83
|
'amount': value['amount'],
|
|
88
84
|
'surcharge': value['surcharge'],
|
|
89
85
|
'totalAmount': value['totalAmount'],
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { TransactionType } from './TransactionType';
|
|
13
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
14
|
-
import type { PaymentSource } from './PaymentSource';
|
|
15
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
16
12
|
/**
|
|
17
13
|
*
|
|
18
14
|
* @export
|
|
@@ -27,28 +23,28 @@ export interface TransactionResource {
|
|
|
27
23
|
id?: number | null;
|
|
28
24
|
/**
|
|
29
25
|
*
|
|
30
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
31
27
|
* @memberof TransactionResource
|
|
32
28
|
*/
|
|
33
|
-
paymentSource:
|
|
29
|
+
paymentSource: string;
|
|
34
30
|
/**
|
|
35
31
|
*
|
|
36
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
37
33
|
* @memberof TransactionResource
|
|
38
34
|
*/
|
|
39
|
-
paymentMethod:
|
|
35
|
+
paymentMethod: string;
|
|
40
36
|
/**
|
|
41
37
|
*
|
|
42
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
43
39
|
* @memberof TransactionResource
|
|
44
40
|
*/
|
|
45
|
-
type:
|
|
41
|
+
type: string;
|
|
46
42
|
/**
|
|
47
43
|
*
|
|
48
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
49
45
|
* @memberof TransactionResource
|
|
50
46
|
*/
|
|
51
|
-
status:
|
|
47
|
+
status: string;
|
|
52
48
|
/**
|
|
53
49
|
*
|
|
54
50
|
* @type {number}
|
|
@@ -18,10 +18,6 @@ exports.TransactionResourceFromJSON = TransactionResourceFromJSON;
|
|
|
18
18
|
exports.TransactionResourceFromJSONTyped = TransactionResourceFromJSONTyped;
|
|
19
19
|
exports.TransactionResourceToJSON = TransactionResourceToJSON;
|
|
20
20
|
exports.TransactionResourceToJSONTyped = TransactionResourceToJSONTyped;
|
|
21
|
-
var TransactionType_1 = require("./TransactionType");
|
|
22
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
23
|
-
var PaymentSource_1 = require("./PaymentSource");
|
|
24
|
-
var PaymentStatus_1 = require("./PaymentStatus");
|
|
25
21
|
/**
|
|
26
22
|
* Check if a given object implements the TransactionResource interface.
|
|
27
23
|
*/
|
|
@@ -57,10 +53,10 @@ function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
53
|
}
|
|
58
54
|
return {
|
|
59
55
|
'id': json['id'] == null ? undefined : json['id'],
|
|
60
|
-
'paymentSource':
|
|
61
|
-
'paymentMethod':
|
|
62
|
-
'type':
|
|
63
|
-
'status':
|
|
56
|
+
'paymentSource': json['paymentSource'],
|
|
57
|
+
'paymentMethod': json['paymentMethod'],
|
|
58
|
+
'type': json['type'],
|
|
59
|
+
'status': json['status'],
|
|
64
60
|
'amount': json['amount'],
|
|
65
61
|
'surcharge': json['surcharge'],
|
|
66
62
|
'totalAmount': json['totalAmount'],
|
|
@@ -86,10 +82,10 @@ function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
86
82
|
}
|
|
87
83
|
return {
|
|
88
84
|
'id': value['id'],
|
|
89
|
-
'paymentSource':
|
|
90
|
-
'paymentMethod':
|
|
91
|
-
'type':
|
|
92
|
-
'status':
|
|
85
|
+
'paymentSource': value['paymentSource'],
|
|
86
|
+
'paymentMethod': value['paymentMethod'],
|
|
87
|
+
'type': value['type'],
|
|
88
|
+
'status': value['status'],
|
|
93
89
|
'amount': value['amount'],
|
|
94
90
|
'surcharge': value['surcharge'],
|
|
95
91
|
'totalAmount': value['totalAmount'],
|
|
@@ -38,10 +38,10 @@ export interface UpdatePageRequest {
|
|
|
38
38
|
enabled?: boolean;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
|
-
* @type {
|
|
41
|
+
* @type {Date}
|
|
42
42
|
* @memberof UpdatePageRequest
|
|
43
43
|
*/
|
|
44
|
-
startDate?:
|
|
44
|
+
startDate?: Date | null;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {CreatePageRequestBlog}
|
|
@@ -44,7 +44,7 @@ function UpdatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'name': json['name'],
|
|
45
45
|
'slug': json['slug'],
|
|
46
46
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
47
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
47
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
48
48
|
'blog': json['blog'] == null ? undefined : (0, CreatePageRequestBlog_1.CreatePageRequestBlogFromJSON)(json['blog']),
|
|
49
49
|
'componentOrder': json['component_order'] == null ? undefined : (json['component_order'].map(UpdatePageRequestComponentOrderInner_1.UpdatePageRequestComponentOrderInnerFromJSON)),
|
|
50
50
|
'seo': (json['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
@@ -54,6 +54,7 @@ function UpdatePageRequestToJSON(json) {
|
|
|
54
54
|
return UpdatePageRequestToJSONTyped(json, false);
|
|
55
55
|
}
|
|
56
56
|
function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
var _a;
|
|
57
58
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
59
|
if (value == null) {
|
|
59
60
|
return value;
|
|
@@ -62,7 +63,7 @@ function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
63
|
'name': value['name'],
|
|
63
64
|
'slug': value['slug'],
|
|
64
65
|
'enabled': value['enabled'],
|
|
65
|
-
'start_date': value['startDate'],
|
|
66
|
+
'start_date': value['startDate'] === null ? null : ((_a = value['startDate']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
66
67
|
'blog': (0, CreatePageRequestBlog_1.CreatePageRequestBlogToJSON)(value['blog']),
|
|
67
68
|
'component_order': value['componentOrder'] == null ? undefined : (value['componentOrder'].map(UpdatePageRequestComponentOrderInner_1.UpdatePageRequestComponentOrderInnerToJSON)),
|
|
68
69
|
'seo': (value['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerToJSON)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -208,7 +208,6 @@ export * from './FreshdeskFaqResourceArrayResponse';
|
|
|
208
208
|
export * from './FrontendCartResource';
|
|
209
209
|
export * from './FrontendCartResourceArrayResponse';
|
|
210
210
|
export * from './FrontendCartResourceCouponsInner';
|
|
211
|
-
export * from './FrontendCartResourceStoreCreditsInner';
|
|
212
211
|
export * from './FrontendComponentLiteResource';
|
|
213
212
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
214
213
|
export * from './FrontendComponentResource';
|
|
@@ -226,8 +225,6 @@ export * from './FrontendOrderResource';
|
|
|
226
225
|
export * from './FrontendOrderResourceArrayResponse';
|
|
227
226
|
export * from './FrontendOrderResourceFulfillmentsInner';
|
|
228
227
|
export * from './FrontendOrderResourceFulfillmentsInnerItemsInner';
|
|
229
|
-
export * from './GeneratedCouponCodeResource';
|
|
230
|
-
export * from './GeneratedCouponCodeResourceArrayResponse';
|
|
231
228
|
export * from './GenericResponse';
|
|
232
229
|
export * from './GetUniqueEndpointsRequest';
|
|
233
230
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -403,7 +400,6 @@ export * from './PaginatedSiteLiteResourceResponse';
|
|
|
403
400
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
404
401
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
405
402
|
export * from './PaginatedSiteResourceResponse';
|
|
406
|
-
export * from './PaginatedStoreCreditListResourceResponse';
|
|
407
403
|
export * from './PaginatedStoreListResourceResponse';
|
|
408
404
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
409
405
|
export * from './PaginatedSupplierListResourceResponse';
|
|
@@ -649,7 +645,6 @@ export * from './SearchReviewsRequest';
|
|
|
649
645
|
export * from './SearchRolesRequest';
|
|
650
646
|
export * from './SearchSiteNotificationsRequest';
|
|
651
647
|
export * from './SearchSitesRequest';
|
|
652
|
-
export * from './SearchStoreCreditsRequest';
|
|
653
648
|
export * from './SearchStoresRequest';
|
|
654
649
|
export * from './SearchSuppliersRequest';
|
|
655
650
|
export * from './SearchTagsRequest';
|
|
@@ -674,10 +669,6 @@ export * from './SiteResource';
|
|
|
674
669
|
export * from './SiteResourceArrayResponse';
|
|
675
670
|
export * from './SkuSearchProductChildRequest';
|
|
676
671
|
export * from './SocialProvider';
|
|
677
|
-
export * from './StoreCreditListResource';
|
|
678
|
-
export * from './StoreCreditListResourceArrayResponse';
|
|
679
|
-
export * from './StoreCreditLiteResource';
|
|
680
|
-
export * from './StoreCreditLiteResourceArrayResponse';
|
|
681
672
|
export * from './StoreFrontendResource';
|
|
682
673
|
export * from './StoreFrontendResourceArrayResponse';
|
|
683
674
|
export * from './StoreListResource';
|