@chevre/domain 25.2.0-alpha.3 → 25.2.0-alpha.4

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.
@@ -41,6 +41,11 @@ interface IConfirmOptions {
41
41
  * 注文における最大CreditCardIF決済方法数
42
42
  */
43
43
  maxNumCreditCardPaymentMethod: number;
44
+ /**
45
+ * 2026-07-06~
46
+ * 実験的に
47
+ */
48
+ usePrepareUnitPriceOfferConditions?: boolean;
44
49
  }
45
50
  type IConfirmParams = PlaceOrderFactory.IConfirmParams;
46
51
  interface IConfirmResult {
@@ -116,7 +116,8 @@ function confirm(params, options) {
116
116
  }))
117
117
  .filter(({ serialNumber }) => typeof serialNumber === 'string' && serialNumbers.includes(serialNumber));
118
118
  // 単価オファーの全適用条件を検証するために、単価オファーを参照(2026-07-06~)
119
- if (transaction.project.id === 'cinerino') {
119
+ const { usePrepareUnitPriceOfferConditions } = options;
120
+ if (usePrepareUnitPriceOfferConditions === true) {
120
121
  await (0, prepareUnitPriceOfferConditions_1.prepareUnitPriceOfferConditions)({
121
122
  project: { id: transaction.project.id, },
122
123
  acceptedOffers,
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "postversion": "git push origin --tags",
92
92
  "prepublishOnly": "npm run clean && npm run build"
93
93
  },
94
- "version": "25.2.0-alpha.3"
94
+ "version": "25.2.0-alpha.4"
95
95
  }