@digital8/lighting-illusions-ts-sdk 0.0.2520 → 0.0.2521

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 (93) hide show
  1. package/.openapi-generator/FILES +0 -15
  2. package/README.md +2 -2
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +2 -2
  8. package/dist/models/AddressResource.js +3 -3
  9. package/dist/models/AppliedCouponResource.d.ts +0 -30
  10. package/dist/models/AppliedCouponResource.js +0 -20
  11. package/dist/models/FrontendCartResource.d.ts +0 -6
  12. package/dist/models/FrontendCartResource.js +0 -2
  13. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  14. package/dist/models/OrderFulfillmentResource.js +3 -1
  15. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  16. package/dist/models/ProductCategoryLiteResource.js +0 -4
  17. package/dist/models/ProductChildListResource.d.ts +0 -6
  18. package/dist/models/ProductChildListResource.js +0 -4
  19. package/dist/models/SearchCartsRequest.d.ts +0 -6
  20. package/dist/models/SearchCartsRequest.js +0 -2
  21. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  22. package/dist/models/SearchOrdersRequest.js +0 -2
  23. package/dist/models/StoreFrontendResource.d.ts +1 -1
  24. package/dist/models/StoreFrontendResource.js +3 -1
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  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 +3 -1
  31. package/dist/models/index.d.ts +0 -14
  32. package/dist/models/index.js +0 -14
  33. package/package.json +1 -1
  34. package/src/apis/index.ts +0 -1
  35. package/src/models/AddressFrontendResource.ts +3 -2
  36. package/src/models/AddressResource.ts +5 -5
  37. package/src/models/AppliedCouponResource.ts +0 -45
  38. package/src/models/FrontendCartResource.ts +0 -8
  39. package/src/models/OrderFulfillmentResource.ts +3 -2
  40. package/src/models/ProductCategoryLiteResource.ts +0 -9
  41. package/src/models/ProductChildListResource.ts +0 -9
  42. package/src/models/SearchCartsRequest.ts +0 -8
  43. package/src/models/SearchOrdersRequest.ts +0 -8
  44. package/src/models/StoreFrontendResource.ts +3 -2
  45. package/src/models/StoreListResource.ts +2 -3
  46. package/src/models/StoreResource.ts +3 -2
  47. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  48. package/src/models/index.ts +0 -14
  49. package/dist/apis/CouponsApi.d.ts +0 -85
  50. package/dist/apis/CouponsApi.js +0 -355
  51. package/dist/models/CouponListResource.d.ts +0 -99
  52. package/dist/models/CouponListResource.js +0 -91
  53. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  54. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  55. package/dist/models/CouponLiteResource.d.ts +0 -44
  56. package/dist/models/CouponLiteResource.js +0 -57
  57. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  58. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  59. package/dist/models/CouponResource.d.ts +0 -163
  60. package/dist/models/CouponResource.js +0 -135
  61. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  62. package/dist/models/CouponResourceArrayResponse.js +0 -50
  63. package/dist/models/CouponType.d.ts +0 -26
  64. package/dist/models/CouponType.js +0 -52
  65. package/dist/models/CreateCouponRequest.d.ts +0 -126
  66. package/dist/models/CreateCouponRequest.js +0 -107
  67. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  68. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  69. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  70. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  71. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  72. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  73. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  74. package/dist/models/SearchAllCouponsRequest.js +0 -85
  75. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  76. package/dist/models/SearchCouponsRequest.js +0 -97
  77. package/dist/models/UpdateCouponRequest.d.ts +0 -120
  78. package/dist/models/UpdateCouponRequest.js +0 -103
  79. package/src/apis/CouponsApi.ts +0 -286
  80. package/src/models/CouponListResource.ts +0 -170
  81. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  82. package/src/models/CouponLiteResource.ts +0 -83
  83. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  84. package/src/models/CouponResource.ts +0 -288
  85. package/src/models/CouponResourceArrayResponse.ts +0 -73
  86. package/src/models/CouponType.ts +0 -54
  87. package/src/models/CreateCouponRequest.ts +0 -207
  88. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  89. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  90. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  91. package/src/models/SearchAllCouponsRequest.ts +0 -154
  92. package/src/models/SearchCouponsRequest.ts +0 -202
  93. package/src/models/UpdateCouponRequest.ts +0 -198
@@ -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.instanceOfCouponLiteResource = instanceOfCouponLiteResource;
17
- exports.CouponLiteResourceFromJSON = CouponLiteResourceFromJSON;
18
- exports.CouponLiteResourceFromJSONTyped = CouponLiteResourceFromJSONTyped;
19
- exports.CouponLiteResourceToJSON = CouponLiteResourceToJSON;
20
- exports.CouponLiteResourceToJSONTyped = CouponLiteResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the CouponLiteResource interface.
23
- */
24
- function instanceOfCouponLiteResource(value) {
25
- if (!('name' in value) || value['name'] === undefined)
26
- return false;
27
- if (!('code' in value) || value['code'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function CouponLiteResourceFromJSON(json) {
32
- return CouponLiteResourceFromJSONTyped(json, false);
33
- }
34
- function CouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'id': json['id'] == null ? undefined : json['id'],
40
- 'name': json['name'],
41
- 'code': json['code'],
42
- };
43
- }
44
- function CouponLiteResourceToJSON(json) {
45
- return CouponLiteResourceToJSONTyped(json, false);
46
- }
47
- function CouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
48
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'id': value['id'],
54
- 'name': value['name'],
55
- 'code': value['code'],
56
- };
57
- }
@@ -1,33 +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 { CouponLiteResource } from './CouponLiteResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CouponLiteResourceArrayResponse
17
- */
18
- export interface CouponLiteResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<CouponLiteResource>}
22
- * @memberof CouponLiteResourceArrayResponse
23
- */
24
- data?: Array<CouponLiteResource>;
25
- }
26
- /**
27
- * Check if a given object implements the CouponLiteResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfCouponLiteResourceArrayResponse(value: object): value is CouponLiteResourceArrayResponse;
30
- export declare function CouponLiteResourceArrayResponseFromJSON(json: any): CouponLiteResourceArrayResponse;
31
- export declare function CouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponLiteResourceArrayResponse;
32
- export declare function CouponLiteResourceArrayResponseToJSON(json: any): CouponLiteResourceArrayResponse;
33
- export declare function CouponLiteResourceArrayResponseToJSONTyped(value?: CouponLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfCouponLiteResourceArrayResponse = instanceOfCouponLiteResourceArrayResponse;
17
- exports.CouponLiteResourceArrayResponseFromJSON = CouponLiteResourceArrayResponseFromJSON;
18
- exports.CouponLiteResourceArrayResponseFromJSONTyped = CouponLiteResourceArrayResponseFromJSONTyped;
19
- exports.CouponLiteResourceArrayResponseToJSON = CouponLiteResourceArrayResponseToJSON;
20
- exports.CouponLiteResourceArrayResponseToJSONTyped = CouponLiteResourceArrayResponseToJSONTyped;
21
- var CouponLiteResource_1 = require("./CouponLiteResource");
22
- /**
23
- * Check if a given object implements the CouponLiteResourceArrayResponse interface.
24
- */
25
- function instanceOfCouponLiteResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function CouponLiteResourceArrayResponseFromJSON(json) {
29
- return CouponLiteResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function CouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(CouponLiteResource_1.CouponLiteResourceFromJSON)),
37
- };
38
- }
39
- function CouponLiteResourceArrayResponseToJSON(json) {
40
- return CouponLiteResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function CouponLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(CouponLiteResource_1.CouponLiteResourceToJSON)),
49
- };
50
- }
@@ -1,163 +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 { ProductCategoryListResource } from './ProductCategoryListResource';
13
- import type { SiteLiteResource } from './SiteLiteResource';
14
- import type { SupplierListResource } from './SupplierListResource';
15
- import type { ProductChildLiteResource } from './ProductChildLiteResource';
16
- import type { CustomerListResource } from './CustomerListResource';
17
- /**
18
- *
19
- * @export
20
- * @interface CouponResource
21
- */
22
- export interface CouponResource {
23
- /**
24
- *
25
- * @type {number}
26
- * @memberof CouponResource
27
- */
28
- id?: number | null;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CouponResource
33
- */
34
- name: string;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof CouponResource
39
- */
40
- code: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof CouponResource
45
- */
46
- type: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof CouponResource
51
- */
52
- discountType: string;
53
- /**
54
- *
55
- * @type {number}
56
- * @memberof CouponResource
57
- */
58
- discountAmount: number;
59
- /**
60
- *
61
- * @type {number}
62
- * @memberof CouponResource
63
- */
64
- minAmount: number;
65
- /**
66
- *
67
- * @type {number}
68
- * @memberof CouponResource
69
- */
70
- minProducts: number;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof CouponResource
75
- */
76
- totalUseLimit: number;
77
- /**
78
- *
79
- * @type {number}
80
- * @memberof CouponResource
81
- */
82
- customerUseLimit: number;
83
- /**
84
- *
85
- * @type {boolean}
86
- * @memberof CouponResource
87
- */
88
- isAbandonedCart: boolean;
89
- /**
90
- *
91
- * @type {boolean}
92
- * @memberof CouponResource
93
- */
94
- isForAllProducts: boolean;
95
- /**
96
- *
97
- * @type {boolean}
98
- * @memberof CouponResource
99
- */
100
- isForAllCustomers: boolean;
101
- /**
102
- *
103
- * @type {Date}
104
- * @memberof CouponResource
105
- */
106
- startDate?: Date | null;
107
- /**
108
- *
109
- * @type {Date}
110
- * @memberof CouponResource
111
- */
112
- endDate?: Date | null;
113
- /**
114
- *
115
- * @type {SiteLiteResource}
116
- * @memberof CouponResource
117
- */
118
- site: SiteLiteResource | null;
119
- /**
120
- *
121
- * @type {Array<ProductChildLiteResource>}
122
- * @memberof CouponResource
123
- */
124
- productChildren: Array<ProductChildLiteResource> | null;
125
- /**
126
- *
127
- * @type {Array<ProductCategoryListResource>}
128
- * @memberof CouponResource
129
- */
130
- categories: Array<ProductCategoryListResource> | null;
131
- /**
132
- *
133
- * @type {Array<SupplierListResource>}
134
- * @memberof CouponResource
135
- */
136
- suppliers: Array<SupplierListResource> | null;
137
- /**
138
- *
139
- * @type {Array<CustomerListResource>}
140
- * @memberof CouponResource
141
- */
142
- customers: Array<CustomerListResource> | null;
143
- /**
144
- *
145
- * @type {number}
146
- * @memberof CouponResource
147
- */
148
- ordersCount: number;
149
- /**
150
- *
151
- * @type {number}
152
- * @memberof CouponResource
153
- */
154
- cartsCount: number;
155
- }
156
- /**
157
- * Check if a given object implements the CouponResource interface.
158
- */
159
- export declare function instanceOfCouponResource(value: object): value is CouponResource;
160
- export declare function CouponResourceFromJSON(json: any): CouponResource;
161
- export declare function CouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResource;
162
- export declare function CouponResourceToJSON(json: any): CouponResource;
163
- export declare function CouponResourceToJSONTyped(value?: CouponResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,135 +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.instanceOfCouponResource = instanceOfCouponResource;
17
- exports.CouponResourceFromJSON = CouponResourceFromJSON;
18
- exports.CouponResourceFromJSONTyped = CouponResourceFromJSONTyped;
19
- exports.CouponResourceToJSON = CouponResourceToJSON;
20
- exports.CouponResourceToJSONTyped = CouponResourceToJSONTyped;
21
- var ProductCategoryListResource_1 = require("./ProductCategoryListResource");
22
- var SiteLiteResource_1 = require("./SiteLiteResource");
23
- var SupplierListResource_1 = require("./SupplierListResource");
24
- var ProductChildLiteResource_1 = require("./ProductChildLiteResource");
25
- var CustomerListResource_1 = require("./CustomerListResource");
26
- /**
27
- * Check if a given object implements the CouponResource interface.
28
- */
29
- function instanceOfCouponResource(value) {
30
- if (!('name' in value) || value['name'] === undefined)
31
- return false;
32
- if (!('code' in value) || value['code'] === undefined)
33
- return false;
34
- if (!('type' in value) || value['type'] === undefined)
35
- return false;
36
- if (!('discountType' in value) || value['discountType'] === undefined)
37
- return false;
38
- if (!('discountAmount' in value) || value['discountAmount'] === undefined)
39
- return false;
40
- if (!('minAmount' in value) || value['minAmount'] === undefined)
41
- return false;
42
- if (!('minProducts' in value) || value['minProducts'] === undefined)
43
- return false;
44
- if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
45
- return false;
46
- if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
47
- return false;
48
- if (!('isAbandonedCart' in value) || value['isAbandonedCart'] === undefined)
49
- return false;
50
- if (!('isForAllProducts' in value) || value['isForAllProducts'] === undefined)
51
- return false;
52
- if (!('isForAllCustomers' in value) || value['isForAllCustomers'] === undefined)
53
- return false;
54
- if (!('site' in value) || value['site'] === undefined)
55
- return false;
56
- if (!('productChildren' in value) || value['productChildren'] === undefined)
57
- return false;
58
- if (!('categories' in value) || value['categories'] === undefined)
59
- return false;
60
- if (!('suppliers' in value) || value['suppliers'] === undefined)
61
- return false;
62
- if (!('customers' in value) || value['customers'] === undefined)
63
- return false;
64
- if (!('ordersCount' in value) || value['ordersCount'] === undefined)
65
- return false;
66
- if (!('cartsCount' in value) || value['cartsCount'] === undefined)
67
- return false;
68
- return true;
69
- }
70
- function CouponResourceFromJSON(json) {
71
- return CouponResourceFromJSONTyped(json, false);
72
- }
73
- function CouponResourceFromJSONTyped(json, ignoreDiscriminator) {
74
- if (json == null) {
75
- return json;
76
- }
77
- return {
78
- 'id': json['id'] == null ? undefined : json['id'],
79
- 'name': json['name'],
80
- 'code': json['code'],
81
- 'type': json['type'],
82
- 'discountType': json['discountType'],
83
- 'discountAmount': json['discountAmount'],
84
- 'minAmount': json['minAmount'],
85
- 'minProducts': json['minProducts'],
86
- 'totalUseLimit': json['totalUseLimit'],
87
- 'customerUseLimit': json['customerUseLimit'],
88
- 'isAbandonedCart': json['isAbandonedCart'],
89
- 'isForAllProducts': json['isForAllProducts'],
90
- 'isForAllCustomers': json['isForAllCustomers'],
91
- 'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
92
- 'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
93
- 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
94
- 'productChildren': (json['productChildren'] == null ? null : json['productChildren'].map(ProductChildLiteResource_1.ProductChildLiteResourceFromJSON)),
95
- 'categories': (json['categories'] == null ? null : json['categories'].map(ProductCategoryListResource_1.ProductCategoryListResourceFromJSON)),
96
- 'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierListResource_1.SupplierListResourceFromJSON)),
97
- 'customers': (json['customers'] == null ? null : json['customers'].map(CustomerListResource_1.CustomerListResourceFromJSON)),
98
- 'ordersCount': json['ordersCount'],
99
- 'cartsCount': json['cartsCount'],
100
- };
101
- }
102
- function CouponResourceToJSON(json) {
103
- return CouponResourceToJSONTyped(json, false);
104
- }
105
- function CouponResourceToJSONTyped(value, ignoreDiscriminator) {
106
- var _a, _b;
107
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
108
- if (value == null) {
109
- return value;
110
- }
111
- return {
112
- 'id': value['id'],
113
- 'name': value['name'],
114
- 'code': value['code'],
115
- 'type': value['type'],
116
- 'discountType': value['discountType'],
117
- 'discountAmount': value['discountAmount'],
118
- 'minAmount': value['minAmount'],
119
- 'minProducts': value['minProducts'],
120
- 'totalUseLimit': value['totalUseLimit'],
121
- 'customerUseLimit': value['customerUseLimit'],
122
- 'isAbandonedCart': value['isAbandonedCart'],
123
- 'isForAllProducts': value['isForAllProducts'],
124
- 'isForAllCustomers': value['isForAllCustomers'],
125
- 'startDate': value['startDate'] === null ? null : ((_a = value['startDate']) === null || _a === void 0 ? void 0 : _a.toISOString()),
126
- 'endDate': value['endDate'] === null ? null : ((_b = value['endDate']) === null || _b === void 0 ? void 0 : _b.toISOString()),
127
- 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
128
- 'productChildren': (value['productChildren'] == null ? null : value['productChildren'].map(ProductChildLiteResource_1.ProductChildLiteResourceToJSON)),
129
- 'categories': (value['categories'] == null ? null : value['categories'].map(ProductCategoryListResource_1.ProductCategoryListResourceToJSON)),
130
- 'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierListResource_1.SupplierListResourceToJSON)),
131
- 'customers': (value['customers'] == null ? null : value['customers'].map(CustomerListResource_1.CustomerListResourceToJSON)),
132
- 'ordersCount': value['ordersCount'],
133
- 'cartsCount': value['cartsCount'],
134
- };
135
- }
@@ -1,33 +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 { CouponResource } from './CouponResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CouponResourceArrayResponse
17
- */
18
- export interface CouponResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<CouponResource>}
22
- * @memberof CouponResourceArrayResponse
23
- */
24
- data?: Array<CouponResource>;
25
- }
26
- /**
27
- * Check if a given object implements the CouponResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfCouponResourceArrayResponse(value: object): value is CouponResourceArrayResponse;
30
- export declare function CouponResourceArrayResponseFromJSON(json: any): CouponResourceArrayResponse;
31
- export declare function CouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResourceArrayResponse;
32
- export declare function CouponResourceArrayResponseToJSON(json: any): CouponResourceArrayResponse;
33
- export declare function CouponResourceArrayResponseToJSONTyped(value?: CouponResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfCouponResourceArrayResponse = instanceOfCouponResourceArrayResponse;
17
- exports.CouponResourceArrayResponseFromJSON = CouponResourceArrayResponseFromJSON;
18
- exports.CouponResourceArrayResponseFromJSONTyped = CouponResourceArrayResponseFromJSONTyped;
19
- exports.CouponResourceArrayResponseToJSON = CouponResourceArrayResponseToJSON;
20
- exports.CouponResourceArrayResponseToJSONTyped = CouponResourceArrayResponseToJSONTyped;
21
- var CouponResource_1 = require("./CouponResource");
22
- /**
23
- * Check if a given object implements the CouponResourceArrayResponse interface.
24
- */
25
- function instanceOfCouponResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function CouponResourceArrayResponseFromJSON(json) {
29
- return CouponResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function CouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(CouponResource_1.CouponResourceFromJSON)),
37
- };
38
- }
39
- function CouponResourceArrayResponseToJSON(json) {
40
- return CouponResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function CouponResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(CouponResource_1.CouponResourceToJSON)),
49
- };
50
- }
@@ -1,26 +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
- */
16
- export declare const CouponType: {
17
- readonly Subtotal: "subtotal";
18
- readonly Product: "product";
19
- readonly Shipping: "shipping";
20
- };
21
- export type CouponType = typeof CouponType[keyof typeof CouponType];
22
- export declare function instanceOfCouponType(value: any): boolean;
23
- export declare function CouponTypeFromJSON(json: any): CouponType;
24
- export declare function CouponTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponType;
25
- export declare function CouponTypeToJSON(value?: CouponType | null): any;
26
- export declare function CouponTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CouponType;
@@ -1,52 +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.CouponType = void 0;
17
- exports.instanceOfCouponType = instanceOfCouponType;
18
- exports.CouponTypeFromJSON = CouponTypeFromJSON;
19
- exports.CouponTypeFromJSONTyped = CouponTypeFromJSONTyped;
20
- exports.CouponTypeToJSON = CouponTypeToJSON;
21
- exports.CouponTypeToJSONTyped = CouponTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.CouponType = {
27
- Subtotal: 'subtotal',
28
- Product: 'product',
29
- Shipping: 'shipping'
30
- };
31
- function instanceOfCouponType(value) {
32
- for (var key in exports.CouponType) {
33
- if (Object.prototype.hasOwnProperty.call(exports.CouponType, key)) {
34
- if (exports.CouponType[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function CouponTypeFromJSON(json) {
42
- return CouponTypeFromJSONTyped(json, false);
43
- }
44
- function CouponTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function CouponTypeToJSON(value) {
48
- return value;
49
- }
50
- function CouponTypeToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }