@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/commerce/promotion/index.js~
packages/ari/commerce/promotion/index.jsModified+1−4
Index: package/packages/ari/commerce/promotion/index.js
===================================================================
--- package/packages/ari/commerce/promotion/index.js
+++ package/packages/ari/commerce/promotion/index.js
@@ -284,23 +284,20 @@
var commercePromotionAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: CommercePromotionAriResourceOwner,
resourceType: CommercePromotionAriResourceType,
resourceIdSlug: "{promotionId}",
resourceIdSegmentFormats: {
promotionId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/commerce/promotion/index.ts
var CommercePromotionAri = class _CommercePromotionAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._promotionId = opts.resourceIdSegmentValues.promotionId;
+ super(opts), this._promotionId = opts.resourceIdSegmentValues.promotionId;
}
get promotionId() {
return this._promotionId;
}