@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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +0 -5
  2. package/README.md +2 -2
  3. package/dist/apis/TransactionsApi.d.ts +1 -12
  4. package/dist/apis/TransactionsApi.js +0 -46
  5. package/dist/apis/index.d.ts +0 -1
  6. package/dist/apis/index.js +0 -1
  7. package/dist/models/AddressFrontendResource.d.ts +3 -3
  8. package/dist/models/AddressFrontendResource.js +6 -4
  9. package/dist/models/CreateTransactionRequest.d.ts +0 -1
  10. package/dist/models/CreateTransactionRequest.js +1 -2
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +3 -1
  13. package/dist/models/FrontendCartResource.d.ts +0 -24
  14. package/dist/models/FrontendCartResource.js +0 -16
  15. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  16. package/dist/models/OrderFulfillmentResource.js +3 -3
  17. package/dist/models/PaymentMethod.d.ts +0 -1
  18. package/dist/models/PaymentMethod.js +1 -2
  19. package/dist/models/PaymentTotalsResource.d.ts +0 -18
  20. package/dist/models/PaymentTotalsResource.js +0 -12
  21. package/dist/models/SearchTransactionsRequest.d.ts +2 -3
  22. package/dist/models/SearchTransactionsRequest.js +2 -3
  23. package/dist/models/StoreFrontendResource.d.ts +1 -1
  24. package/dist/models/StoreFrontendResource.js +3 -1
  25. package/dist/models/StoreListResource.d.ts +2 -2
  26. package/dist/models/StoreListResource.js +4 -4
  27. package/dist/models/StoreResource.d.ts +1 -1
  28. package/dist/models/StoreResource.js +3 -1
  29. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  30. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  31. package/dist/models/TransactionListResource.d.ts +2 -3
  32. package/dist/models/TransactionListResource.js +2 -3
  33. package/dist/models/TransactionLiteResource.d.ts +2 -3
  34. package/dist/models/TransactionLiteResource.js +2 -3
  35. package/dist/models/TransactionResource.d.ts +2 -3
  36. package/dist/models/TransactionResource.js +2 -3
  37. package/dist/models/index.d.ts +0 -4
  38. package/dist/models/index.js +0 -4
  39. package/package.json +1 -1
  40. package/src/apis/TransactionsApi.ts +0 -44
  41. package/src/apis/index.ts +0 -1
  42. package/src/models/AddressFrontendResource.ts +8 -7
  43. package/src/models/CreateTransactionRequest.ts +1 -2
  44. package/src/models/ExternalApiLogResource.ts +3 -2
  45. package/src/models/FrontendCartResource.ts +0 -36
  46. package/src/models/OrderFulfillmentResource.ts +5 -5
  47. package/src/models/PaymentMethod.ts +1 -2
  48. package/src/models/PaymentTotalsResource.ts +0 -27
  49. package/src/models/SearchTransactionsRequest.ts +4 -12
  50. package/src/models/StoreFrontendResource.ts +3 -2
  51. package/src/models/StoreListResource.ts +5 -5
  52. package/src/models/StoreResource.ts +3 -2
  53. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  54. package/src/models/TransactionListResource.ts +4 -14
  55. package/src/models/TransactionLiteResource.ts +4 -14
  56. package/src/models/TransactionResource.ts +4 -14
  57. package/src/models/index.ts +0 -4
  58. package/dist/apis/StoreCreditsApi.d.ts +0 -29
  59. package/dist/apis/StoreCreditsApi.js +0 -125
  60. package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +0 -40
  61. package/dist/models/PaginatedStoreCreditListResourceResponse.js +0 -57
  62. package/dist/models/SearchStoreCreditsRequest.d.ts +0 -106
  63. package/dist/models/SearchStoreCreditsRequest.js +0 -86
  64. package/dist/models/StoreCreditListResource.d.ts +0 -86
  65. package/dist/models/StoreCreditListResource.js +0 -80
  66. package/dist/models/StoreCreditListResourceArrayResponse.d.ts +0 -33
  67. package/dist/models/StoreCreditListResourceArrayResponse.js +0 -50
  68. package/src/apis/StoreCreditsApi.ts +0 -69
  69. package/src/models/PaginatedStoreCreditListResourceResponse.ts +0 -90
  70. package/src/models/SearchStoreCreditsRequest.ts +0 -161
  71. package/src/models/StoreCreditListResource.ts +0 -143
  72. package/src/models/StoreCreditListResourceArrayResponse.ts +0 -73
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
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 (!('website' in value) || value['website'] === undefined) return false;
154
155
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -175,7 +176,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
175
176
  'phone': json['phone'],
176
177
  'longitude': json['longitude'],
177
178
  'latitude': json['latitude'],
178
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
179
+ 'tagLine': json['tagLine'],
179
180
  'email': json['email'],
180
181
  'website': json['website'],
181
182
  'netsuiteId': json['netsuiteId'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { PaymentMethod } from './PaymentMethod';
17
- import {
18
- PaymentMethodFromJSON,
19
- PaymentMethodFromJSONTyped,
20
- PaymentMethodToJSON,
21
- PaymentMethodToJSONTyped,
22
- } from './PaymentMethod';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -41,10 +33,10 @@ export interface TransactionListResource {
41
33
  paymentSource: string;
42
34
  /**
43
35
  *
44
- * @type {PaymentMethod}
36
+ * @type {string}
45
37
  * @memberof TransactionListResource
46
38
  */
47
- paymentMethod: PaymentMethod;
39
+ paymentMethod: string;
48
40
  /**
49
41
  *
50
42
  * @type {string}
@@ -119,8 +111,6 @@ export interface TransactionListResource {
119
111
  createdAt?: Date | null;
120
112
  }
121
113
 
122
-
123
-
124
114
  /**
125
115
  * Check if a given object implements the TransactionListResource interface.
126
116
  */
@@ -150,7 +140,7 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
150
140
 
151
141
  'id': json['id'],
152
142
  'paymentSource': json['paymentSource'],
153
- 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
143
+ 'paymentMethod': json['paymentMethod'],
154
144
  'type': json['type'],
155
145
  'status': json['status'],
156
146
  'totalAmount': json['totalAmount'],
@@ -179,7 +169,7 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
179
169
 
180
170
  'id': value['id'],
181
171
  'paymentSource': value['paymentSource'],
182
- 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
172
+ 'paymentMethod': value['paymentMethod'],
183
173
  'type': value['type'],
184
174
  'status': value['status'],
185
175
  'totalAmount': value['totalAmount'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { PaymentMethod } from './PaymentMethod';
17
- import {
18
- PaymentMethodFromJSON,
19
- PaymentMethodFromJSONTyped,
20
- PaymentMethodToJSON,
21
- PaymentMethodToJSONTyped,
22
- } from './PaymentMethod';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -41,10 +33,10 @@ export interface TransactionLiteResource {
41
33
  paymentSource: string;
42
34
  /**
43
35
  *
44
- * @type {PaymentMethod}
36
+ * @type {string}
45
37
  * @memberof TransactionLiteResource
46
38
  */
47
- paymentMethod: PaymentMethod;
39
+ paymentMethod: string;
48
40
  /**
49
41
  *
50
42
  * @type {string}
@@ -101,8 +93,6 @@ export interface TransactionLiteResource {
101
93
  createdAt?: Date | null;
102
94
  }
103
95
 
104
-
105
-
106
96
  /**
107
97
  * Check if a given object implements the TransactionLiteResource interface.
108
98
  */
@@ -131,7 +121,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
131
121
 
132
122
  'id': json['id'] == null ? undefined : json['id'],
133
123
  'paymentSource': json['paymentSource'],
134
- 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
124
+ 'paymentMethod': json['paymentMethod'],
135
125
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
136
126
  'type': json['type'],
137
127
  'status': json['status'],
@@ -157,7 +147,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
157
147
 
158
148
  'id': value['id'],
159
149
  'paymentSource': value['paymentSource'],
160
- 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
150
+ 'paymentMethod': value['paymentMethod'],
161
151
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
162
152
  'type': value['type'],
163
153
  'status': value['status'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { PaymentMethod } from './PaymentMethod';
17
- import {
18
- PaymentMethodFromJSON,
19
- PaymentMethodFromJSONTyped,
20
- PaymentMethodToJSON,
21
- PaymentMethodToJSONTyped,
22
- } from './PaymentMethod';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -41,10 +33,10 @@ export interface TransactionResource {
41
33
  paymentSource: string;
42
34
  /**
43
35
  *
44
- * @type {PaymentMethod}
36
+ * @type {string}
45
37
  * @memberof TransactionResource
46
38
  */
47
- paymentMethod: PaymentMethod;
39
+ paymentMethod: string;
48
40
  /**
49
41
  *
50
42
  * @type {string}
@@ -131,8 +123,6 @@ export interface TransactionResource {
131
123
  createdAt?: Date | null;
132
124
  }
133
125
 
134
-
135
-
136
126
  /**
137
127
  * Check if a given object implements the TransactionResource interface.
138
128
  */
@@ -162,7 +152,7 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
162
152
 
163
153
  'id': json['id'] == null ? undefined : json['id'],
164
154
  'paymentSource': json['paymentSource'],
165
- 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
155
+ 'paymentMethod': json['paymentMethod'],
166
156
  'type': json['type'],
167
157
  'status': json['status'],
168
158
  'amount': json['amount'],
@@ -193,7 +183,7 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
193
183
 
194
184
  'id': value['id'],
195
185
  'paymentSource': value['paymentSource'],
196
- 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
186
+ 'paymentMethod': value['paymentMethod'],
197
187
  'type': value['type'],
198
188
  'status': value['status'],
199
189
  'amount': value['amount'],
@@ -402,7 +402,6 @@ export * from './PaginatedSiteLiteResourceResponse';
402
402
  export * from './PaginatedSiteNotificationListResourceResponse';
403
403
  export * from './PaginatedSiteNotificationResourceResponse';
404
404
  export * from './PaginatedSiteResourceResponse';
405
- export * from './PaginatedStoreCreditListResourceResponse';
406
405
  export * from './PaginatedStoreListResourceResponse';
407
406
  export * from './PaginatedSupplierFrontendResourceResponse';
408
407
  export * from './PaginatedSupplierListResourceResponse';
@@ -648,7 +647,6 @@ export * from './SearchReviewsRequest';
648
647
  export * from './SearchRolesRequest';
649
648
  export * from './SearchSiteNotificationsRequest';
650
649
  export * from './SearchSitesRequest';
651
- export * from './SearchStoreCreditsRequest';
652
650
  export * from './SearchStoresRequest';
653
651
  export * from './SearchSuppliersRequest';
654
652
  export * from './SearchTagsRequest';
@@ -673,8 +671,6 @@ export * from './SiteResource';
673
671
  export * from './SiteResourceArrayResponse';
674
672
  export * from './SkuSearchProductChildRequest';
675
673
  export * from './SocialProvider';
676
- export * from './StoreCreditListResource';
677
- export * from './StoreCreditListResourceArrayResponse';
678
674
  export * from './StoreFrontendResource';
679
675
  export * from './StoreFrontendResourceArrayResponse';
680
676
  export * from './StoreListResource';
@@ -1,29 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- import type { PaginatedStoreCreditListResourceResponse, SearchStoreCreditsRequest } from '../models/index';
14
- export interface IndexStoreCreditRequest {
15
- searchStoreCreditsRequest?: SearchStoreCreditsRequest;
16
- }
17
- /**
18
- *
19
- */
20
- export declare class StoreCreditsApi extends runtime.BaseAPI {
21
- /**
22
- * Auto-generated: indexStoreCredit
23
- */
24
- indexStoreCreditRaw(requestParameters: IndexStoreCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedStoreCreditListResourceResponse>>;
25
- /**
26
- * Auto-generated: indexStoreCredit
27
- */
28
- indexStoreCredit(requestParameters?: IndexStoreCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStoreCreditListResourceResponse>;
29
- }
@@ -1,125 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.StoreCreditsApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var StoreCreditsApi = /** @class */ (function (_super) {
74
- __extends(StoreCreditsApi, _super);
75
- function StoreCreditsApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Auto-generated: indexStoreCredit
80
- */
81
- StoreCreditsApi.prototype.indexStoreCreditRaw = 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
- queryParameters = {};
88
- headerParameters = {};
89
- headerParameters['Content-Type'] = 'application/json';
90
- urlPath = "/admin-api/store-credits/list";
91
- return [4 /*yield*/, this.request({
92
- path: urlPath,
93
- method: 'POST',
94
- headers: headerParameters,
95
- query: queryParameters,
96
- body: (0, index_1.SearchStoreCreditsRequestToJSON)(requestParameters['searchStoreCreditsRequest']),
97
- }, initOverrides)];
98
- case 1:
99
- response = _a.sent();
100
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedStoreCreditListResourceResponseFromJSON)(jsonValue); })];
101
- }
102
- });
103
- });
104
- };
105
- /**
106
- * Auto-generated: indexStoreCredit
107
- */
108
- StoreCreditsApi.prototype.indexStoreCredit = function () {
109
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
110
- var response;
111
- if (requestParameters === void 0) { requestParameters = {}; }
112
- return __generator(this, function (_a) {
113
- switch (_a.label) {
114
- case 0: return [4 /*yield*/, this.indexStoreCreditRaw(requestParameters, initOverrides)];
115
- case 1:
116
- response = _a.sent();
117
- return [4 /*yield*/, response.value()];
118
- case 2: return [2 /*return*/, _a.sent()];
119
- }
120
- });
121
- });
122
- };
123
- return StoreCreditsApi;
124
- }(runtime.BaseAPI));
125
- exports.StoreCreditsApi = StoreCreditsApi;
@@ -1,40 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { StoreCreditListResource } from './StoreCreditListResource';
13
- import type { PagingMetadata } from './PagingMetadata';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedStoreCreditListResourceResponse
18
- */
19
- export interface PaginatedStoreCreditListResourceResponse {
20
- /**
21
- *
22
- * @type {Array<StoreCreditListResource>}
23
- * @memberof PaginatedStoreCreditListResourceResponse
24
- */
25
- data: Array<StoreCreditListResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedStoreCreditListResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedStoreCreditListResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedStoreCreditListResourceResponse(value: object): value is PaginatedStoreCreditListResourceResponse;
37
- export declare function PaginatedStoreCreditListResourceResponseFromJSON(json: any): PaginatedStoreCreditListResourceResponse;
38
- export declare function PaginatedStoreCreditListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedStoreCreditListResourceResponse;
39
- export declare function PaginatedStoreCreditListResourceResponseToJSON(json: any): PaginatedStoreCreditListResourceResponse;
40
- export declare function PaginatedStoreCreditListResourceResponseToJSONTyped(value?: PaginatedStoreCreditListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfPaginatedStoreCreditListResourceResponse = instanceOfPaginatedStoreCreditListResourceResponse;
17
- exports.PaginatedStoreCreditListResourceResponseFromJSON = PaginatedStoreCreditListResourceResponseFromJSON;
18
- exports.PaginatedStoreCreditListResourceResponseFromJSONTyped = PaginatedStoreCreditListResourceResponseFromJSONTyped;
19
- exports.PaginatedStoreCreditListResourceResponseToJSON = PaginatedStoreCreditListResourceResponseToJSON;
20
- exports.PaginatedStoreCreditListResourceResponseToJSONTyped = PaginatedStoreCreditListResourceResponseToJSONTyped;
21
- var StoreCreditListResource_1 = require("./StoreCreditListResource");
22
- var PagingMetadata_1 = require("./PagingMetadata");
23
- /**
24
- * Check if a given object implements the PaginatedStoreCreditListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedStoreCreditListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedStoreCreditListResourceResponseFromJSON(json) {
34
- return PaginatedStoreCreditListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedStoreCreditListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(StoreCreditListResource_1.StoreCreditListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedStoreCreditListResourceResponseToJSON(json) {
46
- return PaginatedStoreCreditListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedStoreCreditListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(StoreCreditListResource_1.StoreCreditListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,106 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface SearchStoreCreditsRequest
16
- */
17
- export interface SearchStoreCreditsRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SearchStoreCreditsRequest
22
- */
23
- search?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SearchStoreCreditsRequest
28
- */
29
- sortBy?: SearchStoreCreditsRequestSortByEnum;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SearchStoreCreditsRequest
34
- */
35
- sortDirection?: SearchStoreCreditsRequestSortDirectionEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof SearchStoreCreditsRequest
40
- */
41
- perPage?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof SearchStoreCreditsRequest
46
- */
47
- page?: number;
48
- /**
49
- *
50
- * @type {Array<string>}
51
- * @memberof SearchStoreCreditsRequest
52
- */
53
- siteId?: Array<string>;
54
- /**
55
- *
56
- * @type {Array<string>}
57
- * @memberof SearchStoreCreditsRequest
58
- */
59
- customerId?: Array<string>;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof SearchStoreCreditsRequest
64
- */
65
- relatedId?: number;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof SearchStoreCreditsRequest
70
- */
71
- relatedType?: string;
72
- /**
73
- *
74
- * @type {boolean}
75
- * @memberof SearchStoreCreditsRequest
76
- */
77
- includesRelations?: boolean;
78
- }
79
- /**
80
- * @export
81
- */
82
- export declare const SearchStoreCreditsRequestSortByEnum: {
83
- readonly Id: "id";
84
- readonly Code: "code";
85
- readonly ExpiryDate: "expiry_date";
86
- readonly OriginalAmount: "original_amount";
87
- readonly AmountRemaining: "amount_remaining";
88
- readonly CreatedAt: "created_at";
89
- };
90
- export type SearchStoreCreditsRequestSortByEnum = typeof SearchStoreCreditsRequestSortByEnum[keyof typeof SearchStoreCreditsRequestSortByEnum];
91
- /**
92
- * @export
93
- */
94
- export declare const SearchStoreCreditsRequestSortDirectionEnum: {
95
- readonly Asc: "asc";
96
- readonly Desc: "desc";
97
- };
98
- export type SearchStoreCreditsRequestSortDirectionEnum = typeof SearchStoreCreditsRequestSortDirectionEnum[keyof typeof SearchStoreCreditsRequestSortDirectionEnum];
99
- /**
100
- * Check if a given object implements the SearchStoreCreditsRequest interface.
101
- */
102
- export declare function instanceOfSearchStoreCreditsRequest(value: object): value is SearchStoreCreditsRequest;
103
- export declare function SearchStoreCreditsRequestFromJSON(json: any): SearchStoreCreditsRequest;
104
- export declare function SearchStoreCreditsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchStoreCreditsRequest;
105
- export declare function SearchStoreCreditsRequestToJSON(json: any): SearchStoreCreditsRequest;
106
- export declare function SearchStoreCreditsRequestToJSONTyped(value?: SearchStoreCreditsRequest | null, ignoreDiscriminator?: boolean): any;