@chevre/domain 24.1.0-alpha.22 → 24.1.0-alpha.24
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;
|
|
@@ -58,13 +58,21 @@ function authorize(params, options) {
|
|
|
58
58
|
acceptedOffers4result = processStartReserveResult.acceptedOffers4result;
|
|
59
59
|
// add orderInTransaction(2024-01-15~)
|
|
60
60
|
if (!noOfferSpecified) {
|
|
61
|
-
|
|
61
|
+
const useAcceptedOfferNoPriceSpec = options.useAcceptedOfferNoPriceSpec === true;
|
|
62
62
|
await (0, any_1.acceptOffer)({
|
|
63
63
|
orderNumber,
|
|
64
64
|
project: transaction.project,
|
|
65
|
-
acceptedOffers: acceptedOffers4result
|
|
65
|
+
acceptedOffers: acceptedOffers4result.map((acceptOffer4result) => {
|
|
66
|
+
// support useAcceptedOfferNoPriceSpec(2026-05-19~)
|
|
67
|
+
if (useAcceptedOfferNoPriceSpec) {
|
|
68
|
+
const { priceSpecification: _priceSpecification, ...acceptOfferNoPriceSpec } = acceptOffer4result;
|
|
69
|
+
return acceptOfferNoPriceSpec;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return acceptOffer4result;
|
|
73
|
+
}
|
|
74
|
+
})
|
|
66
75
|
})(repos);
|
|
67
|
-
// }
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
catch (error) {
|
package/package.json
CHANGED