@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;
@@ -67,6 +67,12 @@ interface IAuthorizeOptions {
67
67
  * 最大n日前から予約可能
68
68
  */
69
69
  maxReservationGracePeriodInDays: number;
70
+ /**
71
+ * 価格仕様なしのacceptedOfferを採用するかどうか
72
+ * 実験的に導入
73
+ * 2026-005-19~
74
+ */
75
+ useAcceptedOfferNoPriceSpec?: boolean;
70
76
  }
71
77
  /**
72
78
  * 興行オファー承認
@@ -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
- // if (params.options.useCreateOrderOnOfferAccepted) {
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
@@ -91,5 +91,5 @@
91
91
  "postversion": "git push origin --tags",
92
92
  "prepublishOnly": "npm run clean && npm run build"
93
93
  },
94
- "version": "24.1.0-alpha.22"
94
+ "version": "24.1.0-alpha.24"
95
95
  }