@chevre/domain 20.7.0-alpha.1 → 20.7.0-alpha.2
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.
|
@@ -29,12 +29,13 @@ function validateAcceptedOffers(params) {
|
|
|
29
29
|
}
|
|
30
30
|
// 利用可能なチケットオファーであれば受け入れる
|
|
31
31
|
const acceptedOffers = params.object.acceptedOffer.map((acceptedOffer) => {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f;
|
|
32
33
|
const availableUnitPriceOffer = availableUnitPriceOffers.find((unitPriceOffer) => unitPriceOffer.id === acceptedOffer.id);
|
|
33
34
|
if (availableUnitPriceOffer === undefined) {
|
|
34
35
|
throw new factory.errors.NotFound(factory.offerType.Offer, `${acceptedOffer.identifier} not found`);
|
|
35
36
|
}
|
|
36
37
|
const { additionalProperty, itemOffered, name, price, priceSpecification, ticketInfo } = acceptedOffer;
|
|
37
|
-
return Object.assign({ additionalProperty,
|
|
38
|
+
return Object.assign(Object.assign({ additionalProperty,
|
|
38
39
|
itemOffered,
|
|
39
40
|
name,
|
|
40
41
|
price,
|
|
@@ -43,17 +44,14 @@ function validateAcceptedOffers(params) {
|
|
|
43
44
|
// 以下属性については単価オファーから読む(2023-03-09~)
|
|
44
45
|
priceCurrency: availableUnitPriceOffer.priceCurrency, id: String(availableUnitPriceOffer.id), identifier: String(availableUnitPriceOffer.identifier), typeOf: availableUnitPriceOffer.typeOf }, (Array.isArray(availableUnitPriceOffer.eligibleMonetaryAmount))
|
|
45
46
|
? { eligibleMonetaryAmount: availableUnitPriceOffer.eligibleMonetaryAmount }
|
|
46
|
-
: undefined
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// seatSection: offer.seatSection
|
|
55
|
-
// }
|
|
56
|
-
);
|
|
47
|
+
: undefined), {
|
|
48
|
+
// tslint:disable-next-line:no-suspicious-comment
|
|
49
|
+
// TODO itemOfferedに完全置き換え
|
|
50
|
+
seatNumber: (_c = (_b = (_a = itemOffered.serviceOutput) === null || _a === void 0 ? void 0 : _a.reservedTicket) === null || _b === void 0 ? void 0 : _b.ticketedSeat) === null || _c === void 0 ? void 0 : _c.seatNumber,
|
|
51
|
+
// tslint:disable-next-line:no-suspicious-comment
|
|
52
|
+
// TODO itemOfferedに完全置き換え
|
|
53
|
+
seatSection: (_f = (_e = (_d = itemOffered.serviceOutput) === null || _d === void 0 ? void 0 : _d.reservedTicket) === null || _e === void 0 ? void 0 : _e.ticketedSeat) === null || _f === void 0 ? void 0 : _f.seatSection
|
|
54
|
+
});
|
|
57
55
|
});
|
|
58
56
|
return { acceptedOffers };
|
|
59
57
|
});
|
package/package.json
CHANGED