@intelact/gnosa 0.1.0 → 0.1.1
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/lib/book/book.dto.d.ts +199 -0
- package/lib/book/book.dto.js +461 -0
- package/lib/book/book.dto.js.map +1 -0
- package/lib/book/book.model.d.ts +90 -0
- package/lib/book/book.model.js +262 -0
- package/lib/book/book.model.js.map +1 -0
- package/lib/discover/discover.dto.d.ts +38 -0
- package/lib/discover/discover.dto.js +99 -0
- package/lib/discover/discover.dto.js.map +1 -0
- package/lib/discover/discover.model.d.ts +30 -0
- package/lib/discover/discover.model.js +81 -0
- package/lib/discover/discover.model.js.map +1 -0
- package/lib/event/event.dto.d.ts +128 -0
- package/lib/event/event.dto.js +328 -0
- package/lib/event/event.dto.js.map +1 -0
- package/lib/event/event.enum.d.ts +16 -0
- package/lib/event/event.enum.js +22 -0
- package/lib/event/event.enum.js.map +1 -0
- package/lib/event/event.model.d.ts +78 -0
- package/lib/event/event.model.js +216 -0
- package/lib/event/event.model.js.map +1 -0
- package/lib/foundation/history.dto.d.ts +27 -0
- package/lib/foundation/history.dto.js +102 -0
- package/lib/foundation/history.dto.js.map +1 -0
- package/lib/foundation/history.model.d.ts +30 -0
- package/lib/foundation/history.model.js +82 -0
- package/lib/foundation/history.model.js.map +1 -0
- package/lib/foundation/partner.dto.d.ts +22 -0
- package/lib/foundation/partner.dto.js +92 -0
- package/lib/foundation/partner.dto.js.map +1 -0
- package/lib/foundation/partner.model.d.ts +30 -0
- package/lib/foundation/partner.model.js +82 -0
- package/lib/foundation/partner.model.js.map +1 -0
- package/lib/foundation/person.dto.d.ts +31 -0
- package/lib/foundation/person.dto.js +106 -0
- package/lib/foundation/person.dto.js.map +1 -0
- package/lib/foundation/person.model.d.ts +28 -0
- package/lib/foundation/person.model.js +80 -0
- package/lib/foundation/person.model.js.map +1 -0
- package/lib/general/language.dto.d.ts +7 -0
- package/lib/general/language.dto.js +26 -0
- package/lib/general/language.dto.js.map +1 -0
- package/lib/general/sort.dto.d.ts +7 -0
- package/lib/general/sort.dto.js +30 -0
- package/lib/general/sort.dto.js.map +1 -0
- package/lib/general/translations.d.ts +6 -0
- package/lib/general/translations.js +3 -0
- package/lib/general/translations.js.map +1 -0
- package/lib/index.d.ts +20 -0
- package/lib/index.js +20 -0
- package/lib/index.js.map +1 -1
- package/lib/magazine/magazine.dto.d.ts +132 -0
- package/lib/magazine/magazine.dto.js +313 -0
- package/lib/magazine/magazine.dto.js.map +1 -0
- package/lib/magazine/magazine.model.d.ts +88 -0
- package/lib/magazine/magazine.model.js +232 -0
- package/lib/magazine/magazine.model.js.map +1 -0
- package/lib/order/order.dto.d.ts +96 -0
- package/lib/order/order.dto.js +297 -0
- package/lib/order/order.dto.js.map +1 -0
- package/lib/order/order.enum.d.ts +10 -2
- package/lib/order/order.enum.js +12 -3
- package/lib/order/order.enum.js.map +1 -1
- package/lib/order/order.model.d.ts +168 -0
- package/lib/order/order.model.js +427 -0
- package/lib/order/order.model.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/transformers.helper.d.ts +7 -0
- package/lib/utils/transformers.helper.js +24 -0
- package/lib/utils/transformers.helper.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Order = exports.OrderItem = exports.Address = exports.Cart = exports.CartItem = exports.ShippingCountry = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const order_enum_1 = require("./order.enum");
|
|
15
|
+
/**
|
|
16
|
+
* A country Gnosa ships to, with its flat shipping rate in each currency, whatever the quantity.
|
|
17
|
+
*/
|
|
18
|
+
class ShippingCountry {
|
|
19
|
+
/**
|
|
20
|
+
* ISO 3166-1 alpha-2 code (`DE`).
|
|
21
|
+
*/
|
|
22
|
+
code;
|
|
23
|
+
/**
|
|
24
|
+
* The country's name in the app language.
|
|
25
|
+
*/
|
|
26
|
+
name;
|
|
27
|
+
rateEur;
|
|
28
|
+
rateMkd;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the shipping address needs a state or province.
|
|
31
|
+
*/
|
|
32
|
+
requiresState;
|
|
33
|
+
constructor(props) {
|
|
34
|
+
Object.assign(this, props);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ShippingCountry = ShippingCountry;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ShippingCountry.prototype, "code", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ShippingCountry.prototype, "name", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ShippingCountry.prototype, "rateEur", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], ShippingCountry.prototype, "rateMkd", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], ShippingCountry.prototype, "requiresState", void 0);
|
|
58
|
+
/**
|
|
59
|
+
* One publication of a priced cart, at its current price in the cart currency.
|
|
60
|
+
*/
|
|
61
|
+
class CartItem {
|
|
62
|
+
type;
|
|
63
|
+
slug;
|
|
64
|
+
/**
|
|
65
|
+
* In the app language; `null` for a publication that no longer exists.
|
|
66
|
+
*/
|
|
67
|
+
title;
|
|
68
|
+
coverUrl;
|
|
69
|
+
/**
|
|
70
|
+
* The current VAT-inclusive unit price; `null` when the publication can't be ordered.
|
|
71
|
+
*/
|
|
72
|
+
unitPrice;
|
|
73
|
+
quantity;
|
|
74
|
+
/**
|
|
75
|
+
* `unitPrice` × `quantity`; 0 when the publication can't be ordered.
|
|
76
|
+
*/
|
|
77
|
+
lineTotal;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the physical publication can still be ordered.
|
|
80
|
+
*/
|
|
81
|
+
isAvailable;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the current price differs from the one the cart showed.
|
|
84
|
+
*/
|
|
85
|
+
isPriceChanged;
|
|
86
|
+
constructor(props) {
|
|
87
|
+
Object.assign(this, props);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.CartItem = CartItem;
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_transformer_1.Expose)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], CartItem.prototype, "type", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CartItem.prototype, "slug", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_transformer_1.Expose)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], CartItem.prototype, "title", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], CartItem.prototype, "coverUrl", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_transformer_1.Expose)(),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], CartItem.prototype, "unitPrice", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_transformer_1.Expose)(),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], CartItem.prototype, "quantity", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_transformer_1.Expose)(),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], CartItem.prototype, "lineTotal", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_transformer_1.Expose)(),
|
|
121
|
+
__metadata("design:type", Boolean)
|
|
122
|
+
], CartItem.prototype, "isAvailable", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, class_transformer_1.Expose)(),
|
|
125
|
+
__metadata("design:type", Boolean)
|
|
126
|
+
], CartItem.prototype, "isPriceChanged", void 0);
|
|
127
|
+
/**
|
|
128
|
+
* The website's cart, priced: the items at their current prices, and, once a delivery country is
|
|
129
|
+
* chosen, the shipping and the total. Every amount is in `currency` and includes VAT.
|
|
130
|
+
*/
|
|
131
|
+
class Cart {
|
|
132
|
+
currency;
|
|
133
|
+
items;
|
|
134
|
+
/**
|
|
135
|
+
* Sum of the line totals of the available items.
|
|
136
|
+
*/
|
|
137
|
+
subtotal;
|
|
138
|
+
/**
|
|
139
|
+
* The delivery country's code, when one was given.
|
|
140
|
+
*/
|
|
141
|
+
country;
|
|
142
|
+
/**
|
|
143
|
+
* The country's flat rate; `null` until a country is given.
|
|
144
|
+
*/
|
|
145
|
+
shippingCost;
|
|
146
|
+
/**
|
|
147
|
+
* `subtotal` + `shippingCost`.
|
|
148
|
+
*/
|
|
149
|
+
total;
|
|
150
|
+
/**
|
|
151
|
+
* The VAT rate included in every price, as a percentage.
|
|
152
|
+
*/
|
|
153
|
+
vatRate;
|
|
154
|
+
/**
|
|
155
|
+
* The VAT included in `total`.
|
|
156
|
+
*/
|
|
157
|
+
vatAmount;
|
|
158
|
+
/**
|
|
159
|
+
* Whether the cart can be checked out as it is: no unavailable item and no changed price.
|
|
160
|
+
*/
|
|
161
|
+
isValid;
|
|
162
|
+
constructor(props) {
|
|
163
|
+
Object.assign(this, props);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.Cart = Cart;
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, class_transformer_1.Expose)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], Cart.prototype, "currency", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_transformer_1.Expose)(),
|
|
173
|
+
(0, class_transformer_1.Type)(() => CartItem),
|
|
174
|
+
__metadata("design:type", Array)
|
|
175
|
+
], Cart.prototype, "items", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, class_transformer_1.Expose)(),
|
|
178
|
+
__metadata("design:type", Number)
|
|
179
|
+
], Cart.prototype, "subtotal", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, class_transformer_1.Expose)(),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], Cart.prototype, "country", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_transformer_1.Expose)(),
|
|
186
|
+
__metadata("design:type", Number)
|
|
187
|
+
], Cart.prototype, "shippingCost", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, class_transformer_1.Expose)(),
|
|
190
|
+
__metadata("design:type", Number)
|
|
191
|
+
], Cart.prototype, "total", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, class_transformer_1.Expose)(),
|
|
194
|
+
__metadata("design:type", Number)
|
|
195
|
+
], Cart.prototype, "vatRate", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, class_transformer_1.Expose)(),
|
|
198
|
+
__metadata("design:type", Number)
|
|
199
|
+
], Cart.prototype, "vatAmount", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, class_transformer_1.Expose)(),
|
|
202
|
+
__metadata("design:type", Boolean)
|
|
203
|
+
], Cart.prototype, "isValid", void 0);
|
|
204
|
+
/**
|
|
205
|
+
* A postal address of an order.
|
|
206
|
+
*/
|
|
207
|
+
class Address {
|
|
208
|
+
line1;
|
|
209
|
+
line2;
|
|
210
|
+
postcode;
|
|
211
|
+
city;
|
|
212
|
+
state;
|
|
213
|
+
/**
|
|
214
|
+
* ISO 3166-1 alpha-2 code (`DE`).
|
|
215
|
+
*/
|
|
216
|
+
country;
|
|
217
|
+
/**
|
|
218
|
+
* The country's name in the app language.
|
|
219
|
+
*/
|
|
220
|
+
countryName;
|
|
221
|
+
constructor(props) {
|
|
222
|
+
Object.assign(this, props);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.Address = Address;
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, class_transformer_1.Expose)(),
|
|
228
|
+
__metadata("design:type", String)
|
|
229
|
+
], Address.prototype, "line1", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, class_transformer_1.Expose)(),
|
|
232
|
+
__metadata("design:type", String)
|
|
233
|
+
], Address.prototype, "line2", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, class_transformer_1.Expose)(),
|
|
236
|
+
__metadata("design:type", String)
|
|
237
|
+
], Address.prototype, "postcode", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, class_transformer_1.Expose)(),
|
|
240
|
+
__metadata("design:type", String)
|
|
241
|
+
], Address.prototype, "city", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, class_transformer_1.Expose)(),
|
|
244
|
+
__metadata("design:type", String)
|
|
245
|
+
], Address.prototype, "state", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
(0, class_transformer_1.Expose)(),
|
|
248
|
+
__metadata("design:type", String)
|
|
249
|
+
], Address.prototype, "country", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
(0, class_transformer_1.Expose)(),
|
|
252
|
+
__metadata("design:type", String)
|
|
253
|
+
], Address.prototype, "countryName", void 0);
|
|
254
|
+
/**
|
|
255
|
+
* One publication line of an order, as it was at checkout.
|
|
256
|
+
*/
|
|
257
|
+
class OrderItem {
|
|
258
|
+
type;
|
|
259
|
+
title;
|
|
260
|
+
unitPrice;
|
|
261
|
+
quantity;
|
|
262
|
+
lineTotal;
|
|
263
|
+
constructor(props) {
|
|
264
|
+
Object.assign(this, props);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.OrderItem = OrderItem;
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, class_transformer_1.Expose)(),
|
|
270
|
+
__metadata("design:type", String)
|
|
271
|
+
], OrderItem.prototype, "type", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, class_transformer_1.Expose)(),
|
|
274
|
+
__metadata("design:type", String)
|
|
275
|
+
], OrderItem.prototype, "title", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
(0, class_transformer_1.Expose)(),
|
|
278
|
+
__metadata("design:type", Number)
|
|
279
|
+
], OrderItem.prototype, "unitPrice", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, class_transformer_1.Expose)(),
|
|
282
|
+
__metadata("design:type", Number)
|
|
283
|
+
], OrderItem.prototype, "quantity", void 0);
|
|
284
|
+
__decorate([
|
|
285
|
+
(0, class_transformer_1.Expose)(),
|
|
286
|
+
__metadata("design:type", Number)
|
|
287
|
+
], OrderItem.prototype, "lineTotal", void 0);
|
|
288
|
+
/**
|
|
289
|
+
* A customer's order, a snapshot of the checkout. Every amount is in `currency` and includes VAT. The
|
|
290
|
+
* list carries the fields of a row; the detail adds the contact details, addresses, items, amounts
|
|
291
|
+
* and the workflow times.
|
|
292
|
+
*/
|
|
293
|
+
class Order {
|
|
294
|
+
/**
|
|
295
|
+
* The order reference (`GN-00042`), which identifies the order and is the E-Banking payment
|
|
296
|
+
* reference.
|
|
297
|
+
*/
|
|
298
|
+
reference;
|
|
299
|
+
/**
|
|
300
|
+
* When the order was placed, in UTC.
|
|
301
|
+
*/
|
|
302
|
+
createdOn;
|
|
303
|
+
status;
|
|
304
|
+
currency;
|
|
305
|
+
firstName;
|
|
306
|
+
lastName;
|
|
307
|
+
email;
|
|
308
|
+
total;
|
|
309
|
+
/**
|
|
310
|
+
* Whether an Orders List page has already displayed the order; until then it shows a New badge.
|
|
311
|
+
*/
|
|
312
|
+
isSeen;
|
|
313
|
+
phone;
|
|
314
|
+
shippingAddress;
|
|
315
|
+
billingAddress;
|
|
316
|
+
items;
|
|
317
|
+
subtotal;
|
|
318
|
+
shippingCost;
|
|
319
|
+
/**
|
|
320
|
+
* The VAT rate at checkout, as a percentage.
|
|
321
|
+
*/
|
|
322
|
+
vatRate;
|
|
323
|
+
/**
|
|
324
|
+
* The VAT included in `total`.
|
|
325
|
+
*/
|
|
326
|
+
vatAmount;
|
|
327
|
+
/**
|
|
328
|
+
* When the payment was confirmed, in UTC.
|
|
329
|
+
*/
|
|
330
|
+
paidOn;
|
|
331
|
+
/**
|
|
332
|
+
* When the order was marked as shipped, in UTC.
|
|
333
|
+
*/
|
|
334
|
+
shippedOn;
|
|
335
|
+
trackingUrl;
|
|
336
|
+
constructor(props) {
|
|
337
|
+
Object.assign(this, props);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
exports.Order = Order;
|
|
341
|
+
__decorate([
|
|
342
|
+
(0, class_transformer_1.Expose)(),
|
|
343
|
+
__metadata("design:type", String)
|
|
344
|
+
], Order.prototype, "reference", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, class_transformer_1.Expose)(),
|
|
347
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
348
|
+
__metadata("design:type", Date)
|
|
349
|
+
], Order.prototype, "createdOn", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
(0, class_transformer_1.Expose)(),
|
|
352
|
+
__metadata("design:type", String)
|
|
353
|
+
], Order.prototype, "status", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
(0, class_transformer_1.Expose)(),
|
|
356
|
+
__metadata("design:type", String)
|
|
357
|
+
], Order.prototype, "currency", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
(0, class_transformer_1.Expose)(),
|
|
360
|
+
__metadata("design:type", String)
|
|
361
|
+
], Order.prototype, "firstName", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
(0, class_transformer_1.Expose)(),
|
|
364
|
+
__metadata("design:type", String)
|
|
365
|
+
], Order.prototype, "lastName", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
(0, class_transformer_1.Expose)(),
|
|
368
|
+
__metadata("design:type", String)
|
|
369
|
+
], Order.prototype, "email", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
(0, class_transformer_1.Expose)(),
|
|
372
|
+
__metadata("design:type", Number)
|
|
373
|
+
], Order.prototype, "total", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
(0, class_transformer_1.Expose)(),
|
|
376
|
+
__metadata("design:type", Boolean)
|
|
377
|
+
], Order.prototype, "isSeen", void 0);
|
|
378
|
+
__decorate([
|
|
379
|
+
(0, class_transformer_1.Expose)(),
|
|
380
|
+
__metadata("design:type", String)
|
|
381
|
+
], Order.prototype, "phone", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
(0, class_transformer_1.Expose)(),
|
|
384
|
+
(0, class_transformer_1.Type)(() => Address),
|
|
385
|
+
__metadata("design:type", Address)
|
|
386
|
+
], Order.prototype, "shippingAddress", void 0);
|
|
387
|
+
__decorate([
|
|
388
|
+
(0, class_transformer_1.Expose)(),
|
|
389
|
+
(0, class_transformer_1.Type)(() => Address),
|
|
390
|
+
__metadata("design:type", Address)
|
|
391
|
+
], Order.prototype, "billingAddress", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
(0, class_transformer_1.Expose)(),
|
|
394
|
+
(0, class_transformer_1.Type)(() => OrderItem),
|
|
395
|
+
__metadata("design:type", Array)
|
|
396
|
+
], Order.prototype, "items", void 0);
|
|
397
|
+
__decorate([
|
|
398
|
+
(0, class_transformer_1.Expose)(),
|
|
399
|
+
__metadata("design:type", Number)
|
|
400
|
+
], Order.prototype, "subtotal", void 0);
|
|
401
|
+
__decorate([
|
|
402
|
+
(0, class_transformer_1.Expose)(),
|
|
403
|
+
__metadata("design:type", Number)
|
|
404
|
+
], Order.prototype, "shippingCost", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
(0, class_transformer_1.Expose)(),
|
|
407
|
+
__metadata("design:type", Number)
|
|
408
|
+
], Order.prototype, "vatRate", void 0);
|
|
409
|
+
__decorate([
|
|
410
|
+
(0, class_transformer_1.Expose)(),
|
|
411
|
+
__metadata("design:type", Number)
|
|
412
|
+
], Order.prototype, "vatAmount", void 0);
|
|
413
|
+
__decorate([
|
|
414
|
+
(0, class_transformer_1.Expose)(),
|
|
415
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
416
|
+
__metadata("design:type", Date)
|
|
417
|
+
], Order.prototype, "paidOn", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
(0, class_transformer_1.Expose)(),
|
|
420
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
421
|
+
__metadata("design:type", Date)
|
|
422
|
+
], Order.prototype, "shippedOn", void 0);
|
|
423
|
+
__decorate([
|
|
424
|
+
(0, class_transformer_1.Expose)(),
|
|
425
|
+
__metadata("design:type", String)
|
|
426
|
+
], Order.prototype, "trackingUrl", void 0);
|
|
427
|
+
//# sourceMappingURL=order.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.model.js","sourceRoot":"","sources":["../../src/order/order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,6CAAoE;AAEpE;;GAEG;AACH,MAAa,eAAe;IAC3B;;OAEG;IAEH,IAAI,CAAS;IAEb;;OAEG;IAEH,IAAI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