@chevre/domain 24.1.0-alpha.22 → 24.1.0-alpha.23
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.
|
@@ -35,6 +35,7 @@ type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservat
|
|
|
35
35
|
export type IResultAcceptedOffer = factory.order.IAcceptedOffer & {
|
|
36
36
|
itemOffered: factory.order.IReservation;
|
|
37
37
|
offeredThrough: factory.offer.IOfferedThrough;
|
|
38
|
+
serialNumber: string;
|
|
38
39
|
};
|
|
39
40
|
declare function responseBody2acceptedOffers4result(params: {
|
|
40
41
|
issuedThrough: factory.assetTransaction.reserve.IIssuedThrough;
|
|
@@ -10,6 +10,11 @@ exports.createReserveTransactionStartParams = createReserveTransactionStartParam
|
|
|
10
10
|
exports.responseBody2acceptedOffers4result = responseBody2acceptedOffers4result;
|
|
11
11
|
const moment_1 = __importDefault(require("moment"));
|
|
12
12
|
const factory_1 = require("../../../../factory");
|
|
13
|
+
/**
|
|
14
|
+
* 実験的に導入
|
|
15
|
+
* 2026-005-18~
|
|
16
|
+
*/
|
|
17
|
+
const USE_ACCEPTED_OFFER_NO_PRICE_SPEC = process.env.USE_ACCEPTED_OFFER_NO_PRICE_SPEC === '1';
|
|
13
18
|
function createReserveTransactionStartParams(params) {
|
|
14
19
|
const { transaction, transactionNumber } = params;
|
|
15
20
|
const { seller } = transaction;
|
|
@@ -285,12 +290,16 @@ function responseBody2acceptedOffers4result(params) {
|
|
|
285
290
|
name: itemOffered.reservedTicket.ticketType.name,
|
|
286
291
|
itemOffered: reservation,
|
|
287
292
|
offeredThrough: { typeOf: 'WebAPI', identifier: factory_1.factory.service.webAPI.Identifier.Chevre },
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
...(USE_ACCEPTED_OFFER_NO_PRICE_SPEC)
|
|
294
|
+
? {}
|
|
295
|
+
: {
|
|
296
|
+
priceSpecification: {
|
|
297
|
+
priceComponent: priceComponent,
|
|
298
|
+
priceCurrency: priceSpecification.priceCurrency,
|
|
299
|
+
typeOf: priceSpecification.typeOf,
|
|
300
|
+
valueAddedTaxIncluded: priceSpecification.valueAddedTaxIncluded
|
|
301
|
+
}
|
|
302
|
+
},
|
|
294
303
|
serialNumber: params.transactionNumber
|
|
295
304
|
};
|
|
296
305
|
return resultAcceptedOffer;
|
package/package.json
CHANGED