@chevre/domain 21.17.0-alpha.11 → 21.17.0-alpha.12
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.
|
@@ -114,12 +114,12 @@ function validatePrice(transaction, authorizeActions) {
|
|
|
114
114
|
.forEach((authorizeAction) => {
|
|
115
115
|
var _a;
|
|
116
116
|
const priceByAction = (_a = authorizeAction.result) === null || _a === void 0 ? void 0 : _a.price;
|
|
117
|
-
if (typeof priceByAction === 'number' && priceByAction
|
|
117
|
+
if (typeof priceByAction === 'number' && priceByAction >= 0) {
|
|
118
118
|
priceBySeller += priceByAction;
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
121
|
// price未確定(オファー未指定)のオファー承認アクションが存在すれば確定不可能(2023-11-27~)
|
|
122
|
-
throw new factory.errors.Argument('id',
|
|
122
|
+
throw new factory.errors.Argument('id', `some actions with no offer specified. [${authorizeAction.id}]`);
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
// priceBySeller += authorizeActions
|
package/package.json
CHANGED