@chevre/domain 21.20.0-alpha.70 → 21.20.0-alpha.71
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.
|
@@ -79,7 +79,7 @@ function confirm(params) {
|
|
|
79
79
|
expiresInSeconds: publishCodeExpiresInSeconds
|
|
80
80
|
})(repos);
|
|
81
81
|
}
|
|
82
|
-
const { result, eventId, reservationIds } = createResult(Object.assign(Object.assign({}, params), { orderNumber, transaction: transaction, authorizeActions: completedAuthorizeActions, code }));
|
|
82
|
+
const { orderWithAcceptedOffers, result, eventId, reservationIds } = createResult(Object.assign(Object.assign({}, params), { orderNumber, transaction: transaction, authorizeActions: completedAuthorizeActions, code }));
|
|
83
83
|
// デフォルトEメールメッセージを検索
|
|
84
84
|
let emailMessageOnOrderSent;
|
|
85
85
|
if (repos.emailMessage !== undefined) {
|
|
@@ -93,7 +93,8 @@ function confirm(params) {
|
|
|
93
93
|
}
|
|
94
94
|
// ポストアクションを作成
|
|
95
95
|
const potentialActions = yield (0, potentialActions_1.createPotentialActions)({
|
|
96
|
-
order: result.order,
|
|
96
|
+
// order: result.order,
|
|
97
|
+
order: orderWithAcceptedOffers,
|
|
97
98
|
potentialActions: params.potentialActions,
|
|
98
99
|
transaction: transaction,
|
|
99
100
|
emailMessage: emailMessageOnOrderSent,
|
|
@@ -209,6 +210,7 @@ function createResult(params) {
|
|
|
209
210
|
reservationIds = reservationIdsResult.reservationIds;
|
|
210
211
|
}
|
|
211
212
|
return {
|
|
213
|
+
orderWithAcceptedOffers: order,
|
|
212
214
|
result: Object.assign({ order: orderAsResult, authorizeActions, numAcceptedOffers: order.acceptedOffers.length, options: {
|
|
213
215
|
ignoreAccpetedOffersFromResult: ((_a = params.options) === null || _a === void 0 ? void 0 : _a.ignoreAccpetedOffersFromResult) === true
|
|
214
216
|
} }, (typeof params.code === 'string') ? { code: params.code } : undefined),
|
package/package.json
CHANGED