sfcc-dev-mcp 1.0.0
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.
- package/LICENSE +15 -0
- package/README.md +338 -0
- package/dist/best-practices-client.d.ts +55 -0
- package/dist/best-practices-client.d.ts.map +1 -0
- package/dist/best-practices-client.js +201 -0
- package/dist/best-practices-client.js.map +1 -0
- package/dist/cache.d.ts +105 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +225 -0
- package/dist/cache.js.map +1 -0
- package/dist/config.d.ts +26 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +67 -0
- package/dist/config.js.map +1 -0
- package/dist/docs-client.d.ts +124 -0
- package/dist/docs-client.d.ts.map +1 -0
- package/dist/docs-client.js +442 -0
- package/dist/docs-client.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/log-client.d.ts +79 -0
- package/dist/log-client.d.ts.map +1 -0
- package/dist/log-client.js +226 -0
- package/dist/log-client.js.map +1 -0
- package/dist/main.d.ts +15 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +110 -0
- package/dist/main.js.map +1 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +539 -0
- package/dist/server.js.map +1 -0
- package/dist/types.d.ts +79 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +46 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +96 -0
- package/dist/utils.js.map +1 -0
- package/docs/TopLevel/APIException.md +68 -0
- package/docs/TopLevel/Array.md +897 -0
- package/docs/TopLevel/ArrayBuffer.md +79 -0
- package/docs/TopLevel/BigInt.md +132 -0
- package/docs/TopLevel/Boolean.md +62 -0
- package/docs/TopLevel/ConversionError.md +23 -0
- package/docs/TopLevel/DataView.md +352 -0
- package/docs/TopLevel/Date.md +924 -0
- package/docs/TopLevel/ES6Iterator.md +33 -0
- package/docs/TopLevel/Error.md +88 -0
- package/docs/TopLevel/EvalError.md +23 -0
- package/docs/TopLevel/Fault.md +87 -0
- package/docs/TopLevel/Float32Array.md +124 -0
- package/docs/TopLevel/Float64Array.md +124 -0
- package/docs/TopLevel/Function.md +105 -0
- package/docs/TopLevel/Generator.md +78 -0
- package/docs/TopLevel/IOError.md +62 -0
- package/docs/TopLevel/Int16Array.md +124 -0
- package/docs/TopLevel/Int32Array.md +124 -0
- package/docs/TopLevel/Int8Array.md +124 -0
- package/docs/TopLevel/InternalError.md +23 -0
- package/docs/TopLevel/Iterable.md +41 -0
- package/docs/TopLevel/Iterator.md +48 -0
- package/docs/TopLevel/JSON.md +162 -0
- package/docs/TopLevel/Map.md +216 -0
- package/docs/TopLevel/Math.md +865 -0
- package/docs/TopLevel/Module.md +45 -0
- package/docs/TopLevel/Namespace.md +96 -0
- package/docs/TopLevel/Number.md +375 -0
- package/docs/TopLevel/Object.md +641 -0
- package/docs/TopLevel/QName.md +96 -0
- package/docs/TopLevel/RangeError.md +23 -0
- package/docs/TopLevel/ReferenceError.md +23 -0
- package/docs/TopLevel/RegExp.md +109 -0
- package/docs/TopLevel/Set.md +165 -0
- package/docs/TopLevel/StopIteration.md +20 -0
- package/docs/TopLevel/String.md +1299 -0
- package/docs/TopLevel/Symbol.md +78 -0
- package/docs/TopLevel/SyntaxError.md +23 -0
- package/docs/TopLevel/SystemError.md +62 -0
- package/docs/TopLevel/TypeError.md +23 -0
- package/docs/TopLevel/URIError.md +23 -0
- package/docs/TopLevel/Uint16Array.md +124 -0
- package/docs/TopLevel/Uint32Array.md +124 -0
- package/docs/TopLevel/Uint8Array.md +124 -0
- package/docs/TopLevel/Uint8ClampedArray.md +124 -0
- package/docs/TopLevel/WeakMap.md +137 -0
- package/docs/TopLevel/WeakSet.md +92 -0
- package/docs/TopLevel/XML.md +937 -0
- package/docs/TopLevel/XMLList.md +484 -0
- package/docs/TopLevel/XMLStreamError.md +74 -0
- package/docs/TopLevel/arguments.md +34 -0
- package/docs/TopLevel/global.md +462 -0
- package/docs/best-practices/ocapi_hooks.md +295 -0
- package/docs/best-practices/scapi_custom_endpoint.md +176 -0
- package/docs/best-practices/scapi_hooks.md +295 -0
- package/docs/best-practices/sfra_controllers.md +190 -0
- package/docs/dw_campaign/ABTest.md +47 -0
- package/docs/dw_campaign/ABTestMgr.md +70 -0
- package/docs/dw_campaign/ABTestSegment.md +96 -0
- package/docs/dw_campaign/AmountDiscount.md +51 -0
- package/docs/dw_campaign/ApproachingDiscount.md +124 -0
- package/docs/dw_campaign/BonusChoiceDiscount.md +146 -0
- package/docs/dw_campaign/BonusDiscount.md +48 -0
- package/docs/dw_campaign/Campaign.md +365 -0
- package/docs/dw_campaign/CampaignMgr.md +395 -0
- package/docs/dw_campaign/CampaignStatusCodes.md +24 -0
- package/docs/dw_campaign/Coupon.md +292 -0
- package/docs/dw_campaign/CouponMgr.md +138 -0
- package/docs/dw_campaign/CouponRedemption.md +94 -0
- package/docs/dw_campaign/CouponStatusCodes.md +20 -0
- package/docs/dw_campaign/Discount.md +160 -0
- package/docs/dw_campaign/DiscountPlan.md +282 -0
- package/docs/dw_campaign/FixedPriceDiscount.md +52 -0
- package/docs/dw_campaign/FixedPriceShippingDiscount.md +52 -0
- package/docs/dw_campaign/FreeDiscount.md +17 -0
- package/docs/dw_campaign/FreeShippingDiscount.md +17 -0
- package/docs/dw_campaign/PercentageDiscount.md +52 -0
- package/docs/dw_campaign/PercentageOptionDiscount.md +48 -0
- package/docs/dw_campaign/PriceBookPriceDiscount.md +47 -0
- package/docs/dw_campaign/Promotion.md +826 -0
- package/docs/dw_campaign/PromotionMgr.md +386 -0
- package/docs/dw_campaign/PromotionPlan.md +318 -0
- package/docs/dw_campaign/SlotContent.md +144 -0
- package/docs/dw_campaign/SourceCodeGroup.md +72 -0
- package/docs/dw_campaign/SourceCodeInfo.md +126 -0
- package/docs/dw_campaign/SourceCodeStatusCodes.md +24 -0
- package/docs/dw_campaign/TotalFixedPriceDiscount.md +47 -0
- package/docs/dw_catalog/Catalog.md +122 -0
- package/docs/dw_catalog/CatalogMgr.md +182 -0
- package/docs/dw_catalog/Category.md +1296 -0
- package/docs/dw_catalog/CategoryAssignment.md +192 -0
- package/docs/dw_catalog/CategoryLink.md +96 -0
- package/docs/dw_catalog/PriceBook.md +242 -0
- package/docs/dw_catalog/PriceBookMgr.md +205 -0
- package/docs/dw_catalog/Product.md +2593 -0
- package/docs/dw_catalog/ProductActiveData.md +1275 -0
- package/docs/dw_catalog/ProductAttributeModel.md +277 -0
- package/docs/dw_catalog/ProductAvailabilityLevels.md +142 -0
- package/docs/dw_catalog/ProductAvailabilityModel.md +356 -0
- package/docs/dw_catalog/ProductInventoryList.md +140 -0
- package/docs/dw_catalog/ProductInventoryMgr.md +99 -0
- package/docs/dw_catalog/ProductInventoryRecord.md +563 -0
- package/docs/dw_catalog/ProductLink.md +96 -0
- package/docs/dw_catalog/ProductMgr.md +138 -0
- package/docs/dw_catalog/ProductOption.md +214 -0
- package/docs/dw_catalog/ProductOptionModel.md +246 -0
- package/docs/dw_catalog/ProductOptionValue.md +123 -0
- package/docs/dw_catalog/ProductPriceInfo.md +172 -0
- package/docs/dw_catalog/ProductPriceModel.md +745 -0
- package/docs/dw_catalog/ProductPriceTable.md +134 -0
- package/docs/dw_catalog/ProductSearchHit.md +545 -0
- package/docs/dw_catalog/ProductSearchModel.md +1912 -0
- package/docs/dw_catalog/ProductSearchRefinementDefinition.md +97 -0
- package/docs/dw_catalog/ProductSearchRefinementValue.md +73 -0
- package/docs/dw_catalog/ProductSearchRefinements.md +216 -0
- package/docs/dw_catalog/ProductVariationAttribute.md +100 -0
- package/docs/dw_catalog/ProductVariationAttributeValue.md +238 -0
- package/docs/dw_catalog/ProductVariationModel.md +849 -0
- package/docs/dw_catalog/Recommendation.md +296 -0
- package/docs/dw_catalog/SearchModel.md +877 -0
- package/docs/dw_catalog/SearchRefinementDefinition.md +146 -0
- package/docs/dw_catalog/SearchRefinementValue.md +185 -0
- package/docs/dw_catalog/SearchRefinements.md +156 -0
- package/docs/dw_catalog/SortingOption.md +120 -0
- package/docs/dw_catalog/SortingRule.md +47 -0
- package/docs/dw_catalog/Store.md +562 -0
- package/docs/dw_catalog/StoreGroup.md +96 -0
- package/docs/dw_catalog/StoreInventoryFilter.md +74 -0
- package/docs/dw_catalog/StoreInventoryFilterValue.md +74 -0
- package/docs/dw_catalog/StoreMgr.md +236 -0
- package/docs/dw_catalog/Variant.md +859 -0
- package/docs/dw_catalog/VariationGroup.md +792 -0
- package/docs/dw_content/Content.md +534 -0
- package/docs/dw_content/ContentMgr.md +160 -0
- package/docs/dw_content/ContentSearchModel.md +670 -0
- package/docs/dw_content/ContentSearchRefinementDefinition.md +49 -0
- package/docs/dw_content/ContentSearchRefinementValue.md +17 -0
- package/docs/dw_content/ContentSearchRefinements.md +208 -0
- package/docs/dw_content/Folder.md +467 -0
- package/docs/dw_content/Library.md +121 -0
- package/docs/dw_content/MarkupText.md +88 -0
- package/docs/dw_content/MediaFile.md +317 -0
- package/docs/dw_crypto/CertificateRef.md +42 -0
- package/docs/dw_crypto/Cipher.md +524 -0
- package/docs/dw_crypto/Encoding.md +220 -0
- package/docs/dw_crypto/JWE.md +182 -0
- package/docs/dw_crypto/JWS.md +264 -0
- package/docs/dw_crypto/JWSHeader.md +148 -0
- package/docs/dw_crypto/KeyRef.md +44 -0
- package/docs/dw_crypto/Mac.md +109 -0
- package/docs/dw_crypto/MessageDigest.md +139 -0
- package/docs/dw_crypto/SecureRandom.md +148 -0
- package/docs/dw_crypto/Signature.md +246 -0
- package/docs/dw_crypto/WeakCipher.md +532 -0
- package/docs/dw_crypto/WeakMac.md +109 -0
- package/docs/dw_crypto/WeakMessageDigest.md +139 -0
- package/docs/dw_crypto/WeakSignature.md +242 -0
- package/docs/dw_customer/AddressBook.md +163 -0
- package/docs/dw_customer/AgentUserMgr.md +83 -0
- package/docs/dw_customer/AgentUserStatusCodes.md +24 -0
- package/docs/dw_customer/AuthenticationStatus.md +96 -0
- package/docs/dw_customer/Credentials.md +494 -0
- package/docs/dw_customer/Customer.md +571 -0
- package/docs/dw_customer/CustomerActiveData.md +552 -0
- package/docs/dw_customer/CustomerAddress.md +852 -0
- package/docs/dw_customer/CustomerCDPData.md +70 -0
- package/docs/dw_customer/CustomerContextMgr.md +64 -0
- package/docs/dw_customer/CustomerGroup.md +134 -0
- package/docs/dw_customer/CustomerList.md +71 -0
- package/docs/dw_customer/CustomerMgr.md +735 -0
- package/docs/dw_customer/CustomerPasswordConstraints.md +142 -0
- package/docs/dw_customer/CustomerPaymentInstrument.md +125 -0
- package/docs/dw_customer/CustomerStatusCodes.md +24 -0
- package/docs/dw_customer/EncryptedObject.md +18 -0
- package/docs/dw_customer/ExternalProfile.md +160 -0
- package/docs/dw_customer/OrderHistory.md +111 -0
- package/docs/dw_customer/ProductList.md +952 -0
- package/docs/dw_customer/ProductListItem.md +492 -0
- package/docs/dw_customer/ProductListItemPurchase.md +145 -0
- package/docs/dw_customer/ProductListMgr.md +234 -0
- package/docs/dw_customer/ProductListRegistrant.md +193 -0
- package/docs/dw_customer/Profile.md +1128 -0
- package/docs/dw_customer/Wallet.md +118 -0
- package/docs/dw_extensions.applepay/ApplePayHookResult.md +161 -0
- package/docs/dw_extensions.applepay/ApplePayHooks.md +255 -0
- package/docs/dw_extensions.facebook/FacebookFeedHooks.md +47 -0
- package/docs/dw_extensions.facebook/FacebookProduct.md +1483 -0
- package/docs/dw_extensions.paymentrequest/PaymentRequestHookResult.md +159 -0
- package/docs/dw_extensions.paymentrequest/PaymentRequestHooks.md +160 -0
- package/docs/dw_extensions.payments/SalesforceBancontactPaymentDetails.md +79 -0
- package/docs/dw_extensions.payments/SalesforceCardPaymentDetails.md +103 -0
- package/docs/dw_extensions.payments/SalesforceEpsPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceIdealPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceKlarnaPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrder.md +234 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrderAddress.md +191 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrderPayer.md +118 -0
- package/docs/dw_extensions.payments/SalesforcePayPalPaymentDetails.md +79 -0
- package/docs/dw_extensions.payments/SalesforcePaymentDetails.md +57 -0
- package/docs/dw_extensions.payments/SalesforcePaymentIntent.md +269 -0
- package/docs/dw_extensions.payments/SalesforcePaymentMethod.md +304 -0
- package/docs/dw_extensions.payments/SalesforcePaymentRequest.md +622 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsHooks.md +45 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsMgr.md +592 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsSiteConfiguration.md +95 -0
- package/docs/dw_extensions.payments/SalesforceSepaDebitPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceVenmoPaymentDetails.md +79 -0
- package/docs/dw_extensions.pinterest/PinterestAvailability.md +86 -0
- package/docs/dw_extensions.pinterest/PinterestFeedHooks.md +69 -0
- package/docs/dw_extensions.pinterest/PinterestOrder.md +172 -0
- package/docs/dw_extensions.pinterest/PinterestOrderHooks.md +45 -0
- package/docs/dw_extensions.pinterest/PinterestProduct.md +814 -0
- package/docs/dw_io/CSVStreamReader.md +80 -0
- package/docs/dw_io/CSVStreamWriter.md +60 -0
- package/docs/dw_io/File.md +554 -0
- package/docs/dw_io/FileReader.md +41 -0
- package/docs/dw_io/FileWriter.md +103 -0
- package/docs/dw_io/InputStream.md +34 -0
- package/docs/dw_io/OutputStream.md +34 -0
- package/docs/dw_io/PrintWriter.md +71 -0
- package/docs/dw_io/RandomAccessFileReader.md +167 -0
- package/docs/dw_io/Reader.md +274 -0
- package/docs/dw_io/StringWriter.md +81 -0
- package/docs/dw_io/Writer.md +92 -0
- package/docs/dw_io/XMLIndentingStreamWriter.md +112 -0
- package/docs/dw_io/XMLStreamConstants.md +24 -0
- package/docs/dw_io/XMLStreamReader.md +1043 -0
- package/docs/dw_io/XMLStreamWriter.md +572 -0
- package/docs/dw_net/FTPClient.md +675 -0
- package/docs/dw_net/FTPFileInfo.md +122 -0
- package/docs/dw_net/HTTPClient.md +769 -0
- package/docs/dw_net/HTTPRequestPart.md +206 -0
- package/docs/dw_net/Mail.md +431 -0
- package/docs/dw_net/SFTPClient.md +579 -0
- package/docs/dw_net/SFTPFileInfo.md +122 -0
- package/docs/dw_net/WebDAVClient.md +667 -0
- package/docs/dw_net/WebDAVFileInfo.md +184 -0
- package/docs/dw_object/ActiveData.md +75 -0
- package/docs/dw_object/CustomAttributes.md +16 -0
- package/docs/dw_object/CustomObject.md +73 -0
- package/docs/dw_object/CustomObjectMgr.md +291 -0
- package/docs/dw_object/Extensible.md +64 -0
- package/docs/dw_object/ExtensibleObject.md +68 -0
- package/docs/dw_object/Note.md +121 -0
- package/docs/dw_object/ObjectAttributeDefinition.md +373 -0
- package/docs/dw_object/ObjectAttributeGroup.md +170 -0
- package/docs/dw_object/ObjectAttributeValueDefinition.md +72 -0
- package/docs/dw_object/ObjectTypeDefinition.md +216 -0
- package/docs/dw_object/PersistentObject.md +94 -0
- package/docs/dw_object/SimpleExtensible.md +46 -0
- package/docs/dw_object/SystemObjectMgr.md +153 -0
- package/docs/dw_order/AbstractItem.md +244 -0
- package/docs/dw_order/AbstractItemCtnr.md +240 -0
- package/docs/dw_order/Appeasement.md +325 -0
- package/docs/dw_order/AppeasementItem.md +90 -0
- package/docs/dw_order/Basket.md +362 -0
- package/docs/dw_order/BasketMgr.md +402 -0
- package/docs/dw_order/BonusDiscountLineItem.md +248 -0
- package/docs/dw_order/CouponLineItem.md +272 -0
- package/docs/dw_order/CreateAgentBasketLimitExceededException.md +18 -0
- package/docs/dw_order/CreateBasketFromOrderException.md +26 -0
- package/docs/dw_order/CreateCouponLineItemException.md +26 -0
- package/docs/dw_order/CreateOrderException.md +18 -0
- package/docs/dw_order/CreateTemporaryBasketLimitExceededException.md +18 -0
- package/docs/dw_order/GiftCertificate.md +545 -0
- package/docs/dw_order/GiftCertificateLineItem.md +324 -0
- package/docs/dw_order/GiftCertificateMgr.md +161 -0
- package/docs/dw_order/GiftCertificateStatusCodes.md +24 -0
- package/docs/dw_order/Invoice.md +316 -0
- package/docs/dw_order/InvoiceItem.md +222 -0
- package/docs/dw_order/LineItem.md +532 -0
- package/docs/dw_order/LineItemCtnr.md +2317 -0
- package/docs/dw_order/Order.md +2441 -0
- package/docs/dw_order/OrderAddress.md +807 -0
- package/docs/dw_order/OrderItem.md +476 -0
- package/docs/dw_order/OrderMgr.md +535 -0
- package/docs/dw_order/OrderPaymentInstrument.md +220 -0
- package/docs/dw_order/OrderProcessStatusCodes.md +24 -0
- package/docs/dw_order/PaymentCard.md +217 -0
- package/docs/dw_order/PaymentInstrument.md +1414 -0
- package/docs/dw_order/PaymentMethod.md +242 -0
- package/docs/dw_order/PaymentMgr.md +117 -0
- package/docs/dw_order/PaymentProcessor.md +70 -0
- package/docs/dw_order/PaymentStatusCodes.md +24 -0
- package/docs/dw_order/PaymentTransaction.md +304 -0
- package/docs/dw_order/PriceAdjustment.md +640 -0
- package/docs/dw_order/PriceAdjustmentLimitTypes.md +20 -0
- package/docs/dw_order/ProductLineItem.md +1821 -0
- package/docs/dw_order/ProductShippingCost.md +96 -0
- package/docs/dw_order/ProductShippingLineItem.md +320 -0
- package/docs/dw_order/ProductShippingModel.md +125 -0
- package/docs/dw_order/Return.md +318 -0
- package/docs/dw_order/ReturnCase.md +340 -0
- package/docs/dw_order/ReturnCaseItem.md +343 -0
- package/docs/dw_order/ReturnItem.md +362 -0
- package/docs/dw_order/Shipment.md +1227 -0
- package/docs/dw_order/ShipmentShippingCost.md +46 -0
- package/docs/dw_order/ShipmentShippingModel.md +146 -0
- package/docs/dw_order/ShippingLineItem.md +272 -0
- package/docs/dw_order/ShippingLocation.md +366 -0
- package/docs/dw_order/ShippingMethod.md +266 -0
- package/docs/dw_order/ShippingMgr.md +158 -0
- package/docs/dw_order/ShippingOrder.md +507 -0
- package/docs/dw_order/ShippingOrderItem.md +331 -0
- package/docs/dw_order/SumItem.md +147 -0
- package/docs/dw_order/TaxGroup.md +143 -0
- package/docs/dw_order/TaxItem.md +74 -0
- package/docs/dw_order/TaxMgr.md +215 -0
- package/docs/dw_order/TrackingInfo.md +312 -0
- package/docs/dw_order/TrackingRef.md +113 -0
- package/docs/dw_order.hooks/CalculateHooks.md +77 -0
- package/docs/dw_order.hooks/OrderHooks.md +41 -0
- package/docs/dw_order.hooks/PaymentHooks.md +180 -0
- package/docs/dw_order.hooks/ReturnHooks.md +135 -0
- package/docs/dw_order.hooks/ShippingOrderHooks.md +245 -0
- package/docs/dw_rpc/SOAPUtil.md +333 -0
- package/docs/dw_rpc/Stub.md +259 -0
- package/docs/dw_rpc/WebReference.md +83 -0
- package/docs/dw_suggest/BrandSuggestions.md +17 -0
- package/docs/dw_suggest/CategorySuggestions.md +53 -0
- package/docs/dw_suggest/ContentSuggestions.md +53 -0
- package/docs/dw_suggest/CustomSuggestions.md +17 -0
- package/docs/dw_suggest/ProductSuggestions.md +53 -0
- package/docs/dw_suggest/SearchPhraseSuggestions.md +117 -0
- package/docs/dw_suggest/SuggestModel.md +397 -0
- package/docs/dw_suggest/SuggestedCategory.md +46 -0
- package/docs/dw_suggest/SuggestedContent.md +46 -0
- package/docs/dw_suggest/SuggestedPhrase.md +70 -0
- package/docs/dw_suggest/SuggestedProduct.md +47 -0
- package/docs/dw_suggest/SuggestedTerm.md +143 -0
- package/docs/dw_suggest/SuggestedTerms.md +132 -0
- package/docs/dw_suggest/Suggestions.md +179 -0
- package/docs/dw_svc/FTPService.md +118 -0
- package/docs/dw_svc/FTPServiceDefinition.md +69 -0
- package/docs/dw_svc/HTTPFormService.md +18 -0
- package/docs/dw_svc/HTTPFormServiceDefinition.md +18 -0
- package/docs/dw_svc/HTTPService.md +415 -0
- package/docs/dw_svc/HTTPServiceDefinition.md +303 -0
- package/docs/dw_svc/LocalServiceRegistry.md +43 -0
- package/docs/dw_svc/Result.md +255 -0
- package/docs/dw_svc/SOAPService.md +115 -0
- package/docs/dw_svc/SOAPServiceDefinition.md +17 -0
- package/docs/dw_svc/Service.md +295 -0
- package/docs/dw_svc/ServiceCallback.md +268 -0
- package/docs/dw_svc/ServiceConfig.md +120 -0
- package/docs/dw_svc/ServiceCredential.md +150 -0
- package/docs/dw_svc/ServiceDefinition.md +176 -0
- package/docs/dw_svc/ServiceProfile.md +168 -0
- package/docs/dw_svc/ServiceRegistry.md +109 -0
- package/docs/dw_system/AgentUserStatusCodes.md +21 -0
- package/docs/dw_system/Cache.md +102 -0
- package/docs/dw_system/CacheMgr.md +42 -0
- package/docs/dw_system/HookMgr.md +66 -0
- package/docs/dw_system/InternalObject.md +56 -0
- package/docs/dw_system/JobProcessMonitor.md +124 -0
- package/docs/dw_system/Log.md +237 -0
- package/docs/dw_system/LogNDC.md +88 -0
- package/docs/dw_system/Logger.md +263 -0
- package/docs/dw_system/OrganizationPreferences.md +18 -0
- package/docs/dw_system/Pipeline.md +73 -0
- package/docs/dw_system/PipelineDictionary.md +16 -0
- package/docs/dw_system/RESTErrorResponse.md +66 -0
- package/docs/dw_system/RESTResponseMgr.md +258 -0
- package/docs/dw_system/RESTSuccessResponse.md +39 -0
- package/docs/dw_system/RemoteInclude.md +74 -0
- package/docs/dw_system/Request.md +839 -0
- package/docs/dw_system/RequestHooks.md +59 -0
- package/docs/dw_system/Response.md +318 -0
- package/docs/dw_system/SearchStatus.md +91 -0
- package/docs/dw_system/Session.md +476 -0
- package/docs/dw_system/Site.md +567 -0
- package/docs/dw_system/SitePreferences.md +49 -0
- package/docs/dw_system/Status.md +273 -0
- package/docs/dw_system/StatusItem.md +273 -0
- package/docs/dw_system/System.md +182 -0
- package/docs/dw_system/Transaction.md +84 -0
- package/docs/dw_util/ArrayList.md +50 -0
- package/docs/dw_util/Assert.md +391 -0
- package/docs/dw_util/BigInteger.md +326 -0
- package/docs/dw_util/Bytes.md +246 -0
- package/docs/dw_util/Calendar.md +663 -0
- package/docs/dw_util/Collection.md +338 -0
- package/docs/dw_util/Currency.md +163 -0
- package/docs/dw_util/DateUtils.md +86 -0
- package/docs/dw_util/Decimal.md +438 -0
- package/docs/dw_util/FilteringCollection.md +87 -0
- package/docs/dw_util/Geolocation.md +271 -0
- package/docs/dw_util/HashMap.md +43 -0
- package/docs/dw_util/HashSet.md +46 -0
- package/docs/dw_util/Iterator.md +97 -0
- package/docs/dw_util/LinkedHashMap.md +43 -0
- package/docs/dw_util/LinkedHashSet.md +46 -0
- package/docs/dw_util/List.md +519 -0
- package/docs/dw_util/Locale.md +267 -0
- package/docs/dw_util/Map.md +313 -0
- package/docs/dw_util/MapEntry.md +70 -0
- package/docs/dw_util/MappingKey.md +76 -0
- package/docs/dw_util/MappingMgr.md +122 -0
- package/docs/dw_util/PropertyComparator.md +51 -0
- package/docs/dw_util/SecureEncoder.md +350 -0
- package/docs/dw_util/SecureFilter.md +350 -0
- package/docs/dw_util/SeekableIterator.md +176 -0
- package/docs/dw_util/Set.md +19 -0
- package/docs/dw_util/SortedMap.md +148 -0
- package/docs/dw_util/SortedSet.md +151 -0
- package/docs/dw_util/StringUtils.md +717 -0
- package/docs/dw_util/Template.md +88 -0
- package/docs/dw_util/UUIDUtils.md +38 -0
- package/docs/dw_value/EnumValue.md +92 -0
- package/docs/dw_value/MimeEncodedText.md +103 -0
- package/docs/dw_value/Money.md +604 -0
- package/docs/dw_value/Quantity.md +376 -0
- package/docs/dw_web/CSRFProtection.md +83 -0
- package/docs/dw_web/ClickStream.md +157 -0
- package/docs/dw_web/ClickStreamEntry.md +289 -0
- package/docs/dw_web/Cookie.md +390 -0
- package/docs/dw_web/Cookies.md +46 -0
- package/docs/dw_web/Form.md +74 -0
- package/docs/dw_web/FormAction.md +199 -0
- package/docs/dw_web/FormElement.md +220 -0
- package/docs/dw_web/FormElementValidationResult.md +157 -0
- package/docs/dw_web/FormField.md +603 -0
- package/docs/dw_web/FormFieldOption.md +238 -0
- package/docs/dw_web/FormFieldOptions.md +42 -0
- package/docs/dw_web/FormGroup.md +199 -0
- package/docs/dw_web/FormList.md +126 -0
- package/docs/dw_web/FormListItem.md +48 -0
- package/docs/dw_web/Forms.md +16 -0
- package/docs/dw_web/HttpParameter.md +513 -0
- package/docs/dw_web/HttpParameterMap.md +185 -0
- package/docs/dw_web/LoopIterator.md +261 -0
- package/docs/dw_web/PageMetaData.md +230 -0
- package/docs/dw_web/PageMetaTag.md +142 -0
- package/docs/dw_web/PagingModel.md +365 -0
- package/docs/dw_web/Resource.md +126 -0
- package/docs/dw_web/URL.md +213 -0
- package/docs/dw_web/URLAction.md +26 -0
- package/docs/dw_web/URLParameter.md +22 -0
- package/docs/dw_web/URLRedirect.md +71 -0
- package/docs/dw_web/URLRedirectMgr.md +73 -0
- package/docs/dw_web/URLUtils.md +1246 -0
- package/package.json +43 -0
- package/scripts/convert-docs.js +617 -0
- package/src/best-practices-client.ts +243 -0
- package/src/cache.ts +291 -0
- package/src/config.ts +77 -0
- package/src/docs-client.ts +540 -0
- package/src/index.ts +22 -0
- package/src/log-client.ts +260 -0
- package/src/main.ts +133 -0
- package/src/server.ts +614 -0
- package/src/types.ts +83 -0
- package/src/utils.ts +103 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
## Package: dw.campaign
|
|
2
|
+
|
|
3
|
+
# Class CampaignMgr
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.campaign.CampaignMgr
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
CampaignMgr provides static methods for managing campaign-specific operations such as accessing promotions or updating promotion line items.
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### applicablePromotions
|
|
17
|
+
|
|
18
|
+
**Type:** Collection (Read Only)
|
|
19
|
+
|
|
20
|
+
The enabled promotions of active campaigns applicable for the
|
|
21
|
+
current customer and source code.
|
|
22
|
+
|
|
23
|
+
Note that this method does not return any coupon-based promotions.
|
|
24
|
+
|
|
25
|
+
## Constructor Summary
|
|
26
|
+
|
|
27
|
+
## Method Summary
|
|
28
|
+
|
|
29
|
+
### applyBonusPromotions
|
|
30
|
+
|
|
31
|
+
**Signature:** `static applyBonusPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
32
|
+
|
|
33
|
+
This method has been deprecated and should not be used anymore.
|
|
34
|
+
|
|
35
|
+
### applyOrderPromotions
|
|
36
|
+
|
|
37
|
+
**Signature:** `static applyOrderPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
38
|
+
|
|
39
|
+
Applies the applicable order promotions in the specified collection to the specified line item container.
|
|
40
|
+
|
|
41
|
+
### applyProductPromotions
|
|
42
|
+
|
|
43
|
+
**Signature:** `static applyProductPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
44
|
+
|
|
45
|
+
Applies all applicable product promotions in the specified collection to the specified line item container.
|
|
46
|
+
|
|
47
|
+
### applyShippingPromotions
|
|
48
|
+
|
|
49
|
+
**Signature:** `static applyShippingPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
50
|
+
|
|
51
|
+
Applies all applicable shipping promotions in the specified collection to the specified line item container.
|
|
52
|
+
|
|
53
|
+
### getApplicableConditionalPromotions
|
|
54
|
+
|
|
55
|
+
**Signature:** `static getApplicableConditionalPromotions(product : Product) : Collection`
|
|
56
|
+
|
|
57
|
+
Returns the enabled promotions of active campaigns applicable for the current customer and source code for which the specified product is a qualifiying product.
|
|
58
|
+
|
|
59
|
+
### getApplicablePromotions
|
|
60
|
+
|
|
61
|
+
**Signature:** `static getApplicablePromotions(product : Product) : Collection`
|
|
62
|
+
|
|
63
|
+
Returns the enabled promotions of active campaigns applicable for the current customer and source code for which the specified product is a discounted product.
|
|
64
|
+
|
|
65
|
+
### getApplicablePromotions
|
|
66
|
+
|
|
67
|
+
**Signature:** `static getApplicablePromotions(lineItemCtnr : LineItemCtnr) : Collection`
|
|
68
|
+
|
|
69
|
+
Returns the enabled promotions of active campaigns applicable for the current customer, source code and any coupon contained in the specified line item container.
|
|
70
|
+
|
|
71
|
+
### getApplicablePromotions
|
|
72
|
+
|
|
73
|
+
**Signature:** `static getApplicablePromotions() : Collection`
|
|
74
|
+
|
|
75
|
+
Returns the enabled promotions of active campaigns applicable for the current customer and source code.
|
|
76
|
+
|
|
77
|
+
### getCampaignByID
|
|
78
|
+
|
|
79
|
+
**Signature:** `static getCampaignByID(id : String) : Campaign`
|
|
80
|
+
|
|
81
|
+
Returns the campaign identified by the specified ID.
|
|
82
|
+
|
|
83
|
+
### getConditionalPromotions
|
|
84
|
+
|
|
85
|
+
**Signature:** `static getConditionalPromotions(product : Product) : Collection`
|
|
86
|
+
|
|
87
|
+
Returns the enabled promotions of active campaigns for which the specified product is a qualifiying product.
|
|
88
|
+
|
|
89
|
+
### getPromotion
|
|
90
|
+
|
|
91
|
+
**Signature:** `static getPromotion(couponCode : String) : Promotion`
|
|
92
|
+
|
|
93
|
+
Returns the promotion associated with the specified coupon code.
|
|
94
|
+
|
|
95
|
+
### getPromotionByCouponCode
|
|
96
|
+
|
|
97
|
+
**Signature:** `static getPromotionByCouponCode(couponCode : String) : Promotion`
|
|
98
|
+
|
|
99
|
+
Returns the promotion associated with the specified coupon code.
|
|
100
|
+
|
|
101
|
+
### getPromotionByID
|
|
102
|
+
|
|
103
|
+
**Signature:** `static getPromotionByID(id : String) : Promotion`
|
|
104
|
+
|
|
105
|
+
Returns the promotion identified by the specified ID.
|
|
106
|
+
|
|
107
|
+
### getPromotions
|
|
108
|
+
|
|
109
|
+
**Signature:** `static getPromotions(product : Product) : Collection`
|
|
110
|
+
|
|
111
|
+
Returns the enabled promotions of active campaigns for which the specified product is a discounted product.
|
|
112
|
+
|
|
113
|
+
## Method Detail
|
|
114
|
+
|
|
115
|
+
## Method Details
|
|
116
|
+
|
|
117
|
+
### applyBonusPromotions
|
|
118
|
+
|
|
119
|
+
**Signature:** `static applyBonusPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
120
|
+
|
|
121
|
+
**Description:** This method has been deprecated and should not be used anymore. Instead, use PromotionMgr to apply promotions to line item containers. The method does nothing, since bonus promotions are applied as product or order promotions using methods applyProductPromotions(LineItemCtnr, Collection) and applyOrderPromotions(LineItemCtnr, Collection). The method returns 'true' if any the line item container contains any bonus product line items, and otherwise false.
|
|
122
|
+
|
|
123
|
+
**Deprecated:**
|
|
124
|
+
|
|
125
|
+
Use PromotionMgr instead.
|
|
126
|
+
|
|
127
|
+
**Parameters:**
|
|
128
|
+
|
|
129
|
+
- `lineItemCtnr`: Basket or order
|
|
130
|
+
- `promotions`: Parameter not used, can be null
|
|
131
|
+
|
|
132
|
+
**Returns:**
|
|
133
|
+
|
|
134
|
+
True if line item container contains bonus product line items, else false
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
### applyOrderPromotions
|
|
139
|
+
|
|
140
|
+
**Signature:** `static applyOrderPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
141
|
+
|
|
142
|
+
**Description:** Applies the applicable order promotions in the specified collection to the specified line item container. This method has been deprecated and should not be used anymore. Instead, use PromotionMgr to apply promotions to line item containers. Note that the method does also apply any bonus discounts defined as order promotions (see also applyBonusPromotions(LineItemCtnr, Collection)).
|
|
143
|
+
|
|
144
|
+
**Deprecated:**
|
|
145
|
+
|
|
146
|
+
Use PromotionMgr
|
|
147
|
+
|
|
148
|
+
**Parameters:**
|
|
149
|
+
|
|
150
|
+
- `lineItemCtnr`: basket or order
|
|
151
|
+
- `promotions`: list of all promotions to be applied
|
|
152
|
+
|
|
153
|
+
**Returns:**
|
|
154
|
+
|
|
155
|
+
true if changes were made to the line item container, false otherwise.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### applyProductPromotions
|
|
160
|
+
|
|
161
|
+
**Signature:** `static applyProductPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
162
|
+
|
|
163
|
+
**Description:** Applies all applicable product promotions in the specified collection to the specified line item container. This method has been deprecated and should not be used anymore. Instead, use PromotionMgr to apply promotions to line item containers. Note that the method does also apply any bonus discounts defined as product promotions (see also applyBonusPromotions(LineItemCtnr, Collection)).
|
|
164
|
+
|
|
165
|
+
**Deprecated:**
|
|
166
|
+
|
|
167
|
+
Use PromotionMgr
|
|
168
|
+
|
|
169
|
+
**Parameters:**
|
|
170
|
+
|
|
171
|
+
- `lineItemCtnr`: basket or order
|
|
172
|
+
- `promotions`: list of all promotions to be applied
|
|
173
|
+
|
|
174
|
+
**Returns:**
|
|
175
|
+
|
|
176
|
+
true if changes were made to the line item container, false otherwise.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### applyShippingPromotions
|
|
181
|
+
|
|
182
|
+
**Signature:** `static applyShippingPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean`
|
|
183
|
+
|
|
184
|
+
**Description:** Applies all applicable shipping promotions in the specified collection to the specified line item container. This method has been deprecated and should not be used anymore. Instead, use PromotionMgr to apply promotions to line item containers.
|
|
185
|
+
|
|
186
|
+
**Deprecated:**
|
|
187
|
+
|
|
188
|
+
Use PromotionMgr
|
|
189
|
+
|
|
190
|
+
**Parameters:**
|
|
191
|
+
|
|
192
|
+
- `lineItemCtnr`: basket or order
|
|
193
|
+
- `promotions`: list of all promotions to be applied
|
|
194
|
+
|
|
195
|
+
**Returns:**
|
|
196
|
+
|
|
197
|
+
true if changes were made to the line item container, false otherwise.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### getApplicableConditionalPromotions
|
|
202
|
+
|
|
203
|
+
**Signature:** `static getApplicableConditionalPromotions(product : Product) : Collection`
|
|
204
|
+
|
|
205
|
+
**Description:** Returns the enabled promotions of active campaigns applicable for the current customer and source code for which the specified product is a qualifiying product. As a replacement of this deprecated method, use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getProductPromotions(Product). Unlike getApplicableConditionalPromotions(Product), PromotionPlan.getProductPromotions(Product) returns all promotions related to the specified product, regardless of whether the product is qualifying, discounted, or both, and also returns promotions where the product is a bonus product.
|
|
206
|
+
|
|
207
|
+
**Deprecated:**
|
|
208
|
+
|
|
209
|
+
Use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getProductPromotions(Product)
|
|
210
|
+
|
|
211
|
+
**Parameters:**
|
|
212
|
+
|
|
213
|
+
- `product`: Qualifying product
|
|
214
|
+
|
|
215
|
+
**Returns:**
|
|
216
|
+
|
|
217
|
+
List of active promotions
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
### getApplicablePromotions
|
|
222
|
+
|
|
223
|
+
**Signature:** `static getApplicablePromotions(product : Product) : Collection`
|
|
224
|
+
|
|
225
|
+
**Description:** Returns the enabled promotions of active campaigns applicable for the current customer and source code for which the specified product is a discounted product. Note that this method does not return any coupon-based promotions. As a replacement of this deprecated method, use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getProductPromotions(Product). Unlike getApplicablePromotions(Product), PromotionPlan.getProductPromotions(Product) returns all promotions related to the specified product, regardless of whether the product is qualifying, discounted, or both, and also returns promotions where the product is a bonus product.
|
|
226
|
+
|
|
227
|
+
**Deprecated:**
|
|
228
|
+
|
|
229
|
+
Use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getProductPromotions(Product)
|
|
230
|
+
|
|
231
|
+
**Parameters:**
|
|
232
|
+
|
|
233
|
+
- `product`: The product whose promotions are returned.
|
|
234
|
+
|
|
235
|
+
**Returns:**
|
|
236
|
+
|
|
237
|
+
A list of promotions
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
### getApplicablePromotions
|
|
242
|
+
|
|
243
|
+
**Signature:** `static getApplicablePromotions(lineItemCtnr : LineItemCtnr) : Collection`
|
|
244
|
+
|
|
245
|
+
**Description:** Returns the enabled promotions of active campaigns applicable for the current customer, source code and any coupon contained in the specified line item container. Note that although the method has been deprecated, no replacement method is provided.
|
|
246
|
+
|
|
247
|
+
**Deprecated:**
|
|
248
|
+
|
|
249
|
+
There is no replacement for this method.
|
|
250
|
+
|
|
251
|
+
**Parameters:**
|
|
252
|
+
|
|
253
|
+
- `lineItemCtnr`: the basket or order
|
|
254
|
+
|
|
255
|
+
**Returns:**
|
|
256
|
+
|
|
257
|
+
list of all applicable promotion for the given basket or order
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
### getApplicablePromotions
|
|
262
|
+
|
|
263
|
+
**Signature:** `static getApplicablePromotions() : Collection`
|
|
264
|
+
|
|
265
|
+
**Description:** Returns the enabled promotions of active campaigns applicable for the current customer and source code. Note that this method does not return any coupon-based promotions.
|
|
266
|
+
|
|
267
|
+
**Deprecated:**
|
|
268
|
+
|
|
269
|
+
Use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getPromotions()
|
|
270
|
+
|
|
271
|
+
**Returns:**
|
|
272
|
+
|
|
273
|
+
List of active promotions
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
### getCampaignByID
|
|
278
|
+
|
|
279
|
+
**Signature:** `static getCampaignByID(id : String) : Campaign`
|
|
280
|
+
|
|
281
|
+
**Description:** Returns the campaign identified by the specified ID.
|
|
282
|
+
|
|
283
|
+
**Deprecated:**
|
|
284
|
+
|
|
285
|
+
Use PromotionMgr.getCampaign(String)
|
|
286
|
+
|
|
287
|
+
**Parameters:**
|
|
288
|
+
|
|
289
|
+
- `id`: Campaign ID
|
|
290
|
+
|
|
291
|
+
**Returns:**
|
|
292
|
+
|
|
293
|
+
Campaign or null if not found
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
### getConditionalPromotions
|
|
298
|
+
|
|
299
|
+
**Signature:** `static getConditionalPromotions(product : Product) : Collection`
|
|
300
|
+
|
|
301
|
+
**Description:** Returns the enabled promotions of active campaigns for which the specified product is a qualifiying product. Note that the method also returns coupon-based promotions. As a replacement of this deprecated method, use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getProductPromotions(Product). Unlike getConditionalPromotions(Product), PromotionPlan.getProductPromotions(Product) returns all promotions related to the specified product, regardless of whether the product is qualifying, discounted, or both, and also returns promotions where the product is a bonus product.
|
|
302
|
+
|
|
303
|
+
**Deprecated:**
|
|
304
|
+
|
|
305
|
+
Use PromotionMgr.getActivePromotions() and PromotionPlan.getProductPromotions(Product)
|
|
306
|
+
|
|
307
|
+
**Parameters:**
|
|
308
|
+
|
|
309
|
+
- `product`: The product whose conditional promotions are returned.
|
|
310
|
+
|
|
311
|
+
**Returns:**
|
|
312
|
+
|
|
313
|
+
A list of promotions
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
### getPromotion
|
|
318
|
+
|
|
319
|
+
**Signature:** `static getPromotion(couponCode : String) : Promotion`
|
|
320
|
+
|
|
321
|
+
**Description:** Returns the promotion associated with the specified coupon code.
|
|
322
|
+
|
|
323
|
+
**Deprecated:**
|
|
324
|
+
|
|
325
|
+
Coupons are now related to multiple promotions. Method returns the first promotion associated with the coupon code in case of multiple assigned promotions.
|
|
326
|
+
|
|
327
|
+
**Parameters:**
|
|
328
|
+
|
|
329
|
+
- `couponCode`: The coupon code used to lookup the promotion
|
|
330
|
+
|
|
331
|
+
**Returns:**
|
|
332
|
+
|
|
333
|
+
The resolved promotion object or null if none was found
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
### getPromotionByCouponCode
|
|
338
|
+
|
|
339
|
+
**Signature:** `static getPromotionByCouponCode(couponCode : String) : Promotion`
|
|
340
|
+
|
|
341
|
+
**Description:** Returns the promotion associated with the specified coupon code.
|
|
342
|
+
|
|
343
|
+
**Deprecated:**
|
|
344
|
+
|
|
345
|
+
Coupons are now related to multiple promotions. Method returns the first promotion associated with the coupon in case of multiple assigned promotions
|
|
346
|
+
|
|
347
|
+
**Parameters:**
|
|
348
|
+
|
|
349
|
+
- `couponCode`: Coupon code
|
|
350
|
+
|
|
351
|
+
**Returns:**
|
|
352
|
+
|
|
353
|
+
The associated promotion or null
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
### getPromotionByID
|
|
358
|
+
|
|
359
|
+
**Signature:** `static getPromotionByID(id : String) : Promotion`
|
|
360
|
+
|
|
361
|
+
**Description:** Returns the promotion identified by the specified ID.
|
|
362
|
+
|
|
363
|
+
**Deprecated:**
|
|
364
|
+
|
|
365
|
+
Use PromotionMgr.getPromotion(String)
|
|
366
|
+
|
|
367
|
+
**Parameters:**
|
|
368
|
+
|
|
369
|
+
- `id`: Promotion ID
|
|
370
|
+
|
|
371
|
+
**Returns:**
|
|
372
|
+
|
|
373
|
+
Promotion or null if not found
|
|
374
|
+
|
|
375
|
+
---
|
|
376
|
+
|
|
377
|
+
### getPromotions
|
|
378
|
+
|
|
379
|
+
**Signature:** `static getPromotions(product : Product) : Collection`
|
|
380
|
+
|
|
381
|
+
**Description:** Returns the enabled promotions of active campaigns for which the specified product is a discounted product. Note that method does only return promotions based on customer groups or source codes. As a replacement of this deprecated method, use PromotionMgr.getActiveCustomerPromotions() and PromotionPlan.getProductPromotions(Product). Unlike getPromotions(Product), PromotionPlan.getProductPromotions(Product) returns all promotions related to the specified product, regardless of whether the product is qualifying, discounted, or both, and also returns promotions where the product is a bonus product.
|
|
382
|
+
|
|
383
|
+
**Deprecated:**
|
|
384
|
+
|
|
385
|
+
Use PromotionMgr.getActivePromotions() and PromotionPlan.getProductPromotions(Product)
|
|
386
|
+
|
|
387
|
+
**Parameters:**
|
|
388
|
+
|
|
389
|
+
- `product`: Discounted product
|
|
390
|
+
|
|
391
|
+
**Returns:**
|
|
392
|
+
|
|
393
|
+
List of promotions
|
|
394
|
+
|
|
395
|
+
---
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## Package: dw.campaign
|
|
2
|
+
|
|
3
|
+
# Class CampaignStatusCodes
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.campaign.CampaignStatusCodes
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
Deprecated. Formerly used to contain the various statuses that a coupon may be in.
|
|
13
|
+
|
|
14
|
+
## Constants
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
## Constructor Summary
|
|
19
|
+
|
|
20
|
+
CampaignStatusCodes()
|
|
21
|
+
|
|
22
|
+
## Method Summary
|
|
23
|
+
|
|
24
|
+
## Constructor Detail
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
## Package: dw.campaign
|
|
2
|
+
|
|
3
|
+
# Class Coupon
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.object.PersistentObject
|
|
9
|
+
- dw.campaign.Coupon
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Represents a coupon in Commerce Cloud Digital.
|
|
14
|
+
|
|
15
|
+
## Constants
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### codePrefix
|
|
20
|
+
|
|
21
|
+
**Type:** String (Read Only)
|
|
22
|
+
|
|
23
|
+
The prefix defined for coupons of type TYPE_SYSTEM_CODES
|
|
24
|
+
If no prefix is defined, or coupon is of type TYPE_SINGLE_CODE
|
|
25
|
+
or TYPE_MULTIPLE_CODES, null is returned.
|
|
26
|
+
|
|
27
|
+
### enabled
|
|
28
|
+
|
|
29
|
+
**Type:** boolean (Read Only)
|
|
30
|
+
|
|
31
|
+
Returns true if coupon is enabled, else false.
|
|
32
|
+
|
|
33
|
+
### ID
|
|
34
|
+
|
|
35
|
+
**Type:** String (Read Only)
|
|
36
|
+
|
|
37
|
+
The ID of the coupon.
|
|
38
|
+
|
|
39
|
+
### nextCouponCode
|
|
40
|
+
|
|
41
|
+
**Type:** String (Read Only)
|
|
42
|
+
|
|
43
|
+
The next unissued code of this coupon.
|
|
44
|
+
For single-code coupons, the single fixed coupon code is returned.
|
|
45
|
+
For all multi-code coupons, the next available, unissued coupon code is returned.
|
|
46
|
+
If all codes of the coupon have been issued, then there is no next code, and null is returned.
|
|
47
|
+
|
|
48
|
+
A transaction is required when calling this method. This needs to be ensured by the calling script.
|
|
49
|
+
|
|
50
|
+
### promotions
|
|
51
|
+
|
|
52
|
+
**Type:** Collection (Read Only)
|
|
53
|
+
|
|
54
|
+
The coupon-based promotions directly or indirectly (through
|
|
55
|
+
campaigns) assigned to this coupon.
|
|
56
|
+
|
|
57
|
+
### redemptionLimitPerCode
|
|
58
|
+
|
|
59
|
+
**Type:** Number (Read Only)
|
|
60
|
+
|
|
61
|
+
The defined limit on redemption per coupon code. Null is
|
|
62
|
+
returned if no limit is defined, which means that each code can be
|
|
63
|
+
redeemed an unlimited number of times.
|
|
64
|
+
|
|
65
|
+
### redemptionLimitPerCustomer
|
|
66
|
+
|
|
67
|
+
**Type:** Number (Read Only)
|
|
68
|
+
|
|
69
|
+
The defined limit on redemption of this coupon per customer.
|
|
70
|
+
Null is returned if no limit is defined, which means that customers can
|
|
71
|
+
redeem this coupon an unlimited number of times.
|
|
72
|
+
|
|
73
|
+
### redemptionLimitPerTimeFrame
|
|
74
|
+
|
|
75
|
+
**Type:** Number (Read Only)
|
|
76
|
+
|
|
77
|
+
The defined limit on redemption per customer per time-frame (see
|
|
78
|
+
getRedemptionLimitTimeFrame(). Null is returned if no limit is
|
|
79
|
+
defined, which means that there is no time-specific redemption limit for
|
|
80
|
+
customers.
|
|
81
|
+
|
|
82
|
+
### redemptionLimitTimeFrame
|
|
83
|
+
|
|
84
|
+
**Type:** Number (Read Only)
|
|
85
|
+
|
|
86
|
+
The time-frame (in days) of the defined limit on redemption per
|
|
87
|
+
customer per time-frame. Null is returned if no limit is defined, which
|
|
88
|
+
means that there is no time-specific redemption limit for customers.
|
|
89
|
+
|
|
90
|
+
### type
|
|
91
|
+
|
|
92
|
+
**Type:** String (Read Only)
|
|
93
|
+
|
|
94
|
+
The coupon type.
|
|
95
|
+
Possible values are TYPE_SINGLE_CODE, TYPE_MULTIPLE_CODES
|
|
96
|
+
and TYPE_SYSTEM_CODES.
|
|
97
|
+
|
|
98
|
+
## Constructor Summary
|
|
99
|
+
|
|
100
|
+
## Method Summary
|
|
101
|
+
|
|
102
|
+
### getCodePrefix
|
|
103
|
+
|
|
104
|
+
**Signature:** `getCodePrefix() : String`
|
|
105
|
+
|
|
106
|
+
Returns the prefix defined for coupons of type TYPE_SYSTEM_CODES If no prefix is defined, or coupon is of type TYPE_SINGLE_CODE or TYPE_MULTIPLE_CODES, null is returned.
|
|
107
|
+
|
|
108
|
+
### getID
|
|
109
|
+
|
|
110
|
+
**Signature:** `getID() : String`
|
|
111
|
+
|
|
112
|
+
Returns the ID of the coupon.
|
|
113
|
+
|
|
114
|
+
### getNextCouponCode
|
|
115
|
+
|
|
116
|
+
**Signature:** `getNextCouponCode() : String`
|
|
117
|
+
|
|
118
|
+
Returns the next unissued code of this coupon.
|
|
119
|
+
|
|
120
|
+
### getPromotions
|
|
121
|
+
|
|
122
|
+
**Signature:** `getPromotions() : Collection`
|
|
123
|
+
|
|
124
|
+
Returns the coupon-based promotions directly or indirectly (through campaigns) assigned to this coupon.
|
|
125
|
+
|
|
126
|
+
### getRedemptionLimitPerCode
|
|
127
|
+
|
|
128
|
+
**Signature:** `getRedemptionLimitPerCode() : Number`
|
|
129
|
+
|
|
130
|
+
Returns the defined limit on redemption per coupon code.
|
|
131
|
+
|
|
132
|
+
### getRedemptionLimitPerCustomer
|
|
133
|
+
|
|
134
|
+
**Signature:** `getRedemptionLimitPerCustomer() : Number`
|
|
135
|
+
|
|
136
|
+
Returns the defined limit on redemption of this coupon per customer.
|
|
137
|
+
|
|
138
|
+
### getRedemptionLimitPerTimeFrame
|
|
139
|
+
|
|
140
|
+
**Signature:** `getRedemptionLimitPerTimeFrame() : Number`
|
|
141
|
+
|
|
142
|
+
Returns the defined limit on redemption per customer per time-frame (see getRedemptionLimitTimeFrame().
|
|
143
|
+
|
|
144
|
+
### getRedemptionLimitTimeFrame
|
|
145
|
+
|
|
146
|
+
**Signature:** `getRedemptionLimitTimeFrame() : Number`
|
|
147
|
+
|
|
148
|
+
Returns the time-frame (in days) of the defined limit on redemption per customer per time-frame.
|
|
149
|
+
|
|
150
|
+
### getType
|
|
151
|
+
|
|
152
|
+
**Signature:** `getType() : String`
|
|
153
|
+
|
|
154
|
+
Returns the coupon type.
|
|
155
|
+
|
|
156
|
+
### isEnabled
|
|
157
|
+
|
|
158
|
+
**Signature:** `isEnabled() : boolean`
|
|
159
|
+
|
|
160
|
+
Returns true if coupon is enabled, else false.
|
|
161
|
+
|
|
162
|
+
## Method Detail
|
|
163
|
+
|
|
164
|
+
## Method Details
|
|
165
|
+
|
|
166
|
+
### getCodePrefix
|
|
167
|
+
|
|
168
|
+
**Signature:** `getCodePrefix() : String`
|
|
169
|
+
|
|
170
|
+
**Description:** Returns the prefix defined for coupons of type TYPE_SYSTEM_CODES If no prefix is defined, or coupon is of type TYPE_SINGLE_CODE or TYPE_MULTIPLE_CODES, null is returned.
|
|
171
|
+
|
|
172
|
+
**Returns:**
|
|
173
|
+
|
|
174
|
+
Coupon code prefix or null
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### getID
|
|
179
|
+
|
|
180
|
+
**Signature:** `getID() : String`
|
|
181
|
+
|
|
182
|
+
**Description:** Returns the ID of the coupon.
|
|
183
|
+
|
|
184
|
+
**Returns:**
|
|
185
|
+
|
|
186
|
+
Coupon ID
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### getNextCouponCode
|
|
191
|
+
|
|
192
|
+
**Signature:** `getNextCouponCode() : String`
|
|
193
|
+
|
|
194
|
+
**Description:** Returns the next unissued code of this coupon. For single-code coupons, the single fixed coupon code is returned. For all multi-code coupons, the next available, unissued coupon code is returned. If all codes of the coupon have been issued, then there is no next code, and null is returned. A transaction is required when calling this method. This needs to be ensured by the calling script.
|
|
195
|
+
|
|
196
|
+
**Returns:**
|
|
197
|
+
|
|
198
|
+
Next available code of this coupon, or null if there are no available codes.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
### getPromotions
|
|
203
|
+
|
|
204
|
+
**Signature:** `getPromotions() : Collection`
|
|
205
|
+
|
|
206
|
+
**Description:** Returns the coupon-based promotions directly or indirectly (through campaigns) assigned to this coupon.
|
|
207
|
+
|
|
208
|
+
**Returns:**
|
|
209
|
+
|
|
210
|
+
Promotions assigned to the coupon in no particular order.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### getRedemptionLimitPerCode
|
|
215
|
+
|
|
216
|
+
**Signature:** `getRedemptionLimitPerCode() : Number`
|
|
217
|
+
|
|
218
|
+
**Description:** Returns the defined limit on redemption per coupon code. Null is returned if no limit is defined, which means that each code can be redeemed an unlimited number of times.
|
|
219
|
+
|
|
220
|
+
**Returns:**
|
|
221
|
+
|
|
222
|
+
The maximum number of redemption per coupon code
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### getRedemptionLimitPerCustomer
|
|
227
|
+
|
|
228
|
+
**Signature:** `getRedemptionLimitPerCustomer() : Number`
|
|
229
|
+
|
|
230
|
+
**Description:** Returns the defined limit on redemption of this coupon per customer. Null is returned if no limit is defined, which means that customers can redeem this coupon an unlimited number of times.
|
|
231
|
+
|
|
232
|
+
**Returns:**
|
|
233
|
+
|
|
234
|
+
The maximum number of redemption per customer
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
### getRedemptionLimitPerTimeFrame
|
|
239
|
+
|
|
240
|
+
**Signature:** `getRedemptionLimitPerTimeFrame() : Number`
|
|
241
|
+
|
|
242
|
+
**Description:** Returns the defined limit on redemption per customer per time-frame (see getRedemptionLimitTimeFrame(). Null is returned if no limit is defined, which means that there is no time-specific redemption limit for customers.
|
|
243
|
+
|
|
244
|
+
**Returns:**
|
|
245
|
+
|
|
246
|
+
The maximum number of redemption per customer within time-frame
|
|
247
|
+
|
|
248
|
+
**See Also:**
|
|
249
|
+
|
|
250
|
+
getRedemptionLimitTimeFrame()
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
### getRedemptionLimitTimeFrame
|
|
255
|
+
|
|
256
|
+
**Signature:** `getRedemptionLimitTimeFrame() : Number`
|
|
257
|
+
|
|
258
|
+
**Description:** Returns the time-frame (in days) of the defined limit on redemption per customer per time-frame. Null is returned if no limit is defined, which means that there is no time-specific redemption limit for customers.
|
|
259
|
+
|
|
260
|
+
**Returns:**
|
|
261
|
+
|
|
262
|
+
Timeframe (days) of redemption per time
|
|
263
|
+
|
|
264
|
+
**See Also:**
|
|
265
|
+
|
|
266
|
+
getRedemptionLimitPerTimeFrame()
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
### getType
|
|
271
|
+
|
|
272
|
+
**Signature:** `getType() : String`
|
|
273
|
+
|
|
274
|
+
**Description:** Returns the coupon type. Possible values are TYPE_SINGLE_CODE, TYPE_MULTIPLE_CODES and TYPE_SYSTEM_CODES.
|
|
275
|
+
|
|
276
|
+
**Returns:**
|
|
277
|
+
|
|
278
|
+
Coupon type
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
### isEnabled
|
|
283
|
+
|
|
284
|
+
**Signature:** `isEnabled() : boolean`
|
|
285
|
+
|
|
286
|
+
**Description:** Returns true if coupon is enabled, else false.
|
|
287
|
+
|
|
288
|
+
**Returns:**
|
|
289
|
+
|
|
290
|
+
true if coupon is enabled.
|
|
291
|
+
|
|
292
|
+
---
|