@salesforce/b2c-cli 1.11.0 → 1.12.1
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/dist/commands/setup/ide/tsserver-plugin.d.ts +56 -0
- package/dist/commands/setup/ide/tsserver-plugin.js +88 -0
- package/dist/commands/setup/ide/tsserver-plugin.js.map +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +44 -0
- package/dist/commands/setup/ide/vscode-types.js +141 -0
- package/dist/commands/setup/ide/vscode-types.js.map +1 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/package.json +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/plugin/index.js +575 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/APIException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ConversionError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/EvalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Fault.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/IOError.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/InternalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Module.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Namespace.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/QName.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/RangeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ReferenceError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/StopIteration.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SyntaxError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SystemError.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/TypeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/URIError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XML.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLList.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLStreamError.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/arguments.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alert.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alerts.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTest.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestMgr.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestSegment.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/AmountDiscount.d.ts +22 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ApproachingDiscount.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusChoiceDiscount.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusDiscount.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Campaign.d.ts +167 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignMgr.d.ts +192 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignStatusCodes.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Coupon.d.ts +146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponMgr.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponRedemption.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponStatusCodes.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Discount.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/DiscountPlan.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceShippingDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeShippingDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageOptionDiscount.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PriceBookPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Promotion.d.ts +455 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionMgr.d.ts +262 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionPlan.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SlotContent.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeGroup.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeStatusCodes.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/TotalFixedPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/index.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Catalog.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CatalogMgr.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Category.d.ts +592 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryAssignment.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryLink.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBook.d.ts +94 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBookMgr.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Product.d.ts +1100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductActiveData.d.ts +593 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAttributeModel.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityLevels.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityModel.d.ts +359 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryList.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryMgr.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryRecord.d.ts +296 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductLink.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductMgr.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOption.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionModel.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionValue.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceModel.d.ts +586 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceTable.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchHit.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchModel.d.ts +816 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementDefinition.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementValue.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinements.d.ts +142 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttribute.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttributeValue.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationModel.d.ts +508 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Recommendation.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchModel.d.ts +277 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementDefinition.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementValue.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinements.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingOption.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingRule.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Store.d.ts +214 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreGroup.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilter.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilterValue.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreMgr.d.ts +86 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Variant.d.ts +555 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/VariationGroup.d.ts +422 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/index.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Content.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentMgr.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementDefinition.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementValue.d.ts +10 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinements.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Folder.d.ts +186 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Library.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MarkupText.d.ts +125 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MediaFile.d.ts +297 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateRef.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateUtils.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Cipher.d.ts +178 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Encoding.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWE.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWEHeader.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWS.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWSHeader.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/KeyRef.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Mac.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/MessageDigest.d.ts +108 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/SecureRandom.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Signature.d.ts +88 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakCipher.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMac.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMessageDigest.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakSignature.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/X509Certificate.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/index.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AddressBook.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserMgr.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserStatusCodes.d.ts +64 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AuthenticationStatus.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Credentials.d.ts +266 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Customer.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerActiveData.d.ts +276 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerAddress.d.ts +280 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerCDPData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerContextMgr.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerGroup.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerList.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerMgr.d.ts +611 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPasswordConstraints.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPaymentInstrument.d.ts +118 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerStatusCodes.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/EncryptedObject.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ExternalProfile.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/OrderHistory.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductList.d.ts +376 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItem.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItemPurchase.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListMgr.d.ts +190 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListRegistrant.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Profile.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Wallet.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ConsentStatusEntry.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/MarketingConsentSubscription.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentErrorCodes.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentMgr.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/index.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthAccessTokenResponse.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthFinalizedResponse.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthLoginFlowMgr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthUserInfoResponse.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContext.d.ts +171 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextErrorCodes.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextMgr.d.ts +130 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/AspectAttributeValidationException.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Component.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentRenderSettings.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentScriptContext.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditor.d.ts +80 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditorResources.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Page.d.ts +255 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageMgr.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageScriptContext.d.ts +127 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Region.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/RegionRenderSettings.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/CMSRecord.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/FocalPoint.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/Image.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/ImageMetaData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/index.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHookResult.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHooks.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookFeedHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookProduct.d.ts +567 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/PaymentApiHooks.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHookResult.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHooks.d.ts +168 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenPaymentIntent.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenSavedPaymentMethod.d.ts +126 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceBancontactPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceCardPaymentDetails.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceEpsPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceIdealPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceKlarnaPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrder.d.ts +109 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderAddress.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderPayer.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentDetails.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentIntent.d.ts +116 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentMethod.d.ts +162 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentRequest.d.ts +562 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsHooks.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccount.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccountPaymentMethod.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMgr.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsSiteConfiguration.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsZone.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceSepaDebitPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceVenmoPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/index.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestAvailability.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestFeedHooks.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrder.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrderHooks.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestProduct.d.ts +302 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamReader.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamWriter.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/File.d.ts +343 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileReader.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileWriter.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/InputStream.d.ts +15 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/OutputStream.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/PrintWriter.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/RandomAccessFileReader.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Reader.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/StringWriter.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Writer.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLIndentingStreamWriter.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamConstants.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamReader.d.ts +674 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamWriter.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/index.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobExecution.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobStepExecution.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPClient.d.ts +219 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPFileInfo.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClient.d.ts +337 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClientLoggingConfig.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPRequestPart.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/Mail.d.ts +182 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPClient.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPFileInfo.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVClient.d.ts +324 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVFileInfo.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ActiveData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomAttributes.d.ts +143 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObject.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObjectMgr.d.ts +283 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Extensible.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ExtensibleObject.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Note.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeDefinition.d.ts +239 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeGroup.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeValueDefinition.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectTypeDefinition.d.ts +113 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/PersistentObject.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SimpleExtensible.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SystemObjectMgr.d.ts +319 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItem.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItemCtnr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Appeasement.d.ts +163 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AppeasementItem.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Basket.d.ts +476 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BasketMgr.d.ts +406 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BonusDiscountLineItem.d.ts +170 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CouponLineItem.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateAgentBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateBasketFromOrderException.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateCouponLineItemException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateOrderException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateTemporaryBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificate.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateLineItem.d.ts +124 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateMgr.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateStatusCodes.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Invoice.d.ts +284 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/InvoiceItem.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItem.d.ts +265 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemCtnr.d.ts +1146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemTax.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Order.d.ts +1360 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderAddress.d.ts +259 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderItem.d.ts +332 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderMgr.d.ts +864 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderPaymentInstrument.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderProcessStatusCodes.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentCard.d.ts +112 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentInstrument.d.ts +757 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMethod.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentProcessor.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentStatusCodes.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentTransaction.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustment.d.ts +430 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustmentLimitTypes.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductLineItem.d.ts +849 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingCost.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingLineItem.d.ts +154 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingModel.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Return.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCase.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCaseItem.d.ts +165 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnItem.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Shipment.d.ts +506 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingCost.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingModel.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLineItem.d.ts +151 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLocation.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMethod.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMgr.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrder.d.ts +304 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrderItem.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/SumItem.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxGroup.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxItem.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxMgr.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingInfo.d.ts +107 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingRef.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/BasketMergeHooks.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CalculateHooks.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CheckoutHooks.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/OrderHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/PaymentHooks.d.ts +189 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ReturnHooks.d.ts +274 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ShippingOrderHooks.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/TaxHooks.d.ts +378 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/index.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/index.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/SOAPUtil.d.ts +339 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/Stub.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/WebReference.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapFile.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/BrandSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CategorySuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ContentSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CustomSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ProductSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SearchPhraseSuggestions.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedCategory.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedContent.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedPhrase.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedProduct.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerm.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerms.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/Suggestions.d.ts +89 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPService.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPServiceDefinition.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormService.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPService.d.ts +147 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPServiceDefinition.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/LocalServiceRegistry.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Result.d.ts +133 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPService.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Service.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCallback.d.ts +172 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceConfig.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCredential.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceDefinition.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceProfile.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceRegistry.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/index.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/AgentUserStatusCodes.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Cache.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/CacheMgr.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/HookMgr.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/InternalObject.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/JobProcessMonitor.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Log.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/LogNDC.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Logger.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/OrganizationPreferences.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Pipeline.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/PipelineDictionary.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTErrorResponse.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTResponseMgr.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTSuccessResponse.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RemoteInclude.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Request.d.ts +363 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RequestHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Response.d.ts +278 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SearchStatus.d.ts +74 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Session.d.ts +263 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Site.d.ts +247 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SitePreferences.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Status.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/StatusItem.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/System.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Transaction.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/index.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/ISML.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/Velocity.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/ArrayList.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Assert.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/BigInteger.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Bytes.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Calendar.d.ts +450 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Collection.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Currency.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/DateUtils.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Decimal.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/FilteringCollection.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Geolocation.d.ts +111 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashMap.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashSet.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Iterator.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashMap.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashSet.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/List.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Locale.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Map.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MapEntry.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingKey.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingMgr.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/PropertyComparator.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureEncoder.d.ts +371 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureFilter.d.ts +340 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SeekableIterator.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Set.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedMap.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedSet.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/StringUtils.d.ts +191 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Template.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/UUIDUtils.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/index.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/EnumValue.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/MimeEncodedText.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Money.d.ts +196 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Quantity.d.ts +103 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/CSRFProtection.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStream.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStreamEntry.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookie.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookies.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Form.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormAction.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElement.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElementValidationResult.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormField.d.ts +331 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOption.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOptions.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormGroup.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormList.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormListItem.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Forms.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameter.d.ts +195 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameterMap.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/LoopIterator.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaData.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaTag.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PagingModel.d.ts +181 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Resource.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URL.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLAction.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLParameter.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirect.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirectMgr.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLUtils.d.ts +759 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/index.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/Port.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WSUtil.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WebReference2.d.ts +120 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/global.d.ts +1101 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/sfra/server.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-package.json +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-tsconfig.json +7 -0
- package/oclif.manifest.json +5512 -5207
- package/package.json +3 -3
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BasketMgr.d.ts
ADDED
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import Basket = require('./Basket');
|
|
2
|
+
import Order = require('./Order');
|
|
3
|
+
import List = require('../util/List');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Provides static helper methods for managing baskets.
|
|
7
|
+
*/
|
|
8
|
+
declare class BasketMgr {
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* Retrieve all open baskets for the logged in customer including the temporary baskets.
|
|
13
|
+
*
|
|
14
|
+
* Restricted to agent scenario use cases: The returned list contains all agent baskets created with
|
|
15
|
+
* createAgentBasket and the current storefront basket which can also be retrieved with
|
|
16
|
+
* getCurrentBasket. This method will result in an exception if called by a user without permission
|
|
17
|
+
* Create_Order_On_Behalf_Of or if no customer is logged in the session.
|
|
18
|
+
*
|
|
19
|
+
* Please notice that baskets are invalidated after a certain amount of time and may not be returned anymore.
|
|
20
|
+
*/
|
|
21
|
+
static readonly baskets: List<Basket>;
|
|
22
|
+
/**
|
|
23
|
+
* This method returns the current valid basket of the session customer or `null` if no current valid
|
|
24
|
+
* basket exists.
|
|
25
|
+
*
|
|
26
|
+
* The methods getCurrentBasket and getCurrentOrNewBasket work based on the selected basket
|
|
27
|
+
* persistence, which can be configured in the Business Manager site preferences / baskets section. A basket is
|
|
28
|
+
* valid for the configured basket lifetime.
|
|
29
|
+
*
|
|
30
|
+
* In hybrid storefront scenarios (Phased Launch sites that utilize SFRA/SiteGenesis for some part while also
|
|
31
|
+
* utilizing PWA Kit or other custom headless solution for another part of the same site), this method must
|
|
32
|
+
* NOT be used. Instead, retrieve baskets via `GET baskets/{basketId}` or
|
|
33
|
+
* `GET customers/{customerId}/baskets`. Do not use getCurrentOrNewBasket for basket creation
|
|
34
|
+
* in any scenario.
|
|
35
|
+
*
|
|
36
|
+
* The current basket, if one exists, is usually updated by the method. In particular the last-modified date is
|
|
37
|
+
* updated. No update is done when method getCurrentBasket is used within a read-only hook
|
|
38
|
+
* implementation (such as a beforeGet or a modifyResponse hook). The lifetime of a basket can be extended
|
|
39
|
+
* in 2 ways:
|
|
40
|
+
*
|
|
41
|
+
* - The basket is modified in some way, e.g. a product is added resulting in the basket total being newly
|
|
42
|
+
* calculated. This results in the basket lifetime being reset.
|
|
43
|
+
* - The basket has not been modified for 60 minutes, then using this method to access the basket will also reset
|
|
44
|
+
* the basket lifetime.
|
|
45
|
+
*
|
|
46
|
+
* What happens when a customer logs in? Personal data held inside the basket such as addresses, email addresses and
|
|
47
|
+
* payment settings is associated with the customer to whom the basket belongs. If the basket being updated belongs
|
|
48
|
+
* to a different customer this data is removed. This happens when a guest customer that has a basket logs in and
|
|
49
|
+
* hence identifies as a registered customer. In this case the basket which was previously created by the guest
|
|
50
|
+
* customer gets transferred to the (now logged in) registered customer. Should the registered customer already have
|
|
51
|
+
* a basket, this basket is effectively invalidated, but made available using getStoredBasket allowing
|
|
52
|
+
* the script to merge content from it if desired.
|
|
53
|
+
*
|
|
54
|
+
* What happens when a customer logs out or when the customer session times out? After the customer logs out, a
|
|
55
|
+
* basket belonging to the registered customer (now logged out) is stored (where applicable) and this method
|
|
56
|
+
* returns `null`. Personal data is also cleared when the session times out for a guest customer.
|
|
57
|
+
*
|
|
58
|
+
* The following personal data is cleared:
|
|
59
|
+
*
|
|
60
|
+
* - product line items that were added from a wish list
|
|
61
|
+
* - shipping method
|
|
62
|
+
* - coupon line items
|
|
63
|
+
* - gift certificate line items
|
|
64
|
+
* - billing and shipping addresses
|
|
65
|
+
* - payment instruments
|
|
66
|
+
* - buyer email
|
|
67
|
+
*
|
|
68
|
+
* If the session currency no longer matches the basket currency, the basket currency should be updated with
|
|
69
|
+
* dw.order.Basket.updateCurrency.
|
|
70
|
+
*
|
|
71
|
+
* Typical usage:
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
* var basket : Basket = BasketMgr.getCurrentBasket();
|
|
75
|
+
* if (basket) {
|
|
76
|
+
* // do something with basket
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Constraints:
|
|
81
|
+
*
|
|
82
|
+
* - The method only accesses the basket for the session customer, an exception is thrown when the session
|
|
83
|
+
* customer is `null`.
|
|
84
|
+
* - Method getCurrentOrNewBasket only creates a basket when method getCurrentBasket returns
|
|
85
|
+
* `null`.
|
|
86
|
+
*/
|
|
87
|
+
static readonly currentBasket: Basket | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* This method returns the current valid basket of the session customer or creates a new one if no current valid
|
|
92
|
+
* basket exists. See getCurrentBasket for more details.
|
|
93
|
+
*
|
|
94
|
+
* In hybrid storefront scenarios (Phased Launch sites that utilize SFRA/SiteGenesis for some part while also
|
|
95
|
+
* utilizing PWA Kit or other custom headless solution for another part of the same site), this method must
|
|
96
|
+
* NOT be used. For these scenarios, create baskets via `POST baskets` REST calls.
|
|
97
|
+
*/
|
|
98
|
+
static readonly currentOrNewBasket: Basket;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* This method returns the stored basket of the session customer or `null` if none is found. A stored
|
|
103
|
+
* basket is returned in the following situation:
|
|
104
|
+
*
|
|
105
|
+
* - During one visit, a customer-Q logs in and creates a basket-A by adding products to it.
|
|
106
|
+
* - During a subsequent visit, a second basket-B is created for a guest customer who then logs in as
|
|
107
|
+
* customer-Q.
|
|
108
|
+
*
|
|
109
|
+
* In this case, basket-B is reassigned to customer-Q and basket-A is accessible as the stored basket using this
|
|
110
|
+
* method. It is now possible to merge the information from the stored basket (basket-A) to the active basket
|
|
111
|
+
* (basket-B). If this method returns `null` in the previous scenario, verify that:
|
|
112
|
+
*
|
|
113
|
+
* - The session handling between the two visits is correct - the first visit and second visit must be in
|
|
114
|
+
* different sessions. Furthermore, the second session must contain both basket creations: as guest and the customer
|
|
115
|
+
* login.
|
|
116
|
+
* - The stored basket is not expired.
|
|
117
|
+
* - Basket persistence settings are configured correctly in the Business Manager.
|
|
118
|
+
*
|
|
119
|
+
* A stored basket exists only if the corresponding setting is selected in Business Manager. preferences' baskets
|
|
120
|
+
* section. A basket is valid for the configured basket lifetime.
|
|
121
|
+
*
|
|
122
|
+
* Typical usage:
|
|
123
|
+
*
|
|
124
|
+
* ```
|
|
125
|
+
* var currentBasket : Basket = BasketMgr.getCurrentOrNewBasket();
|
|
126
|
+
* var storedBasket : Basket = BasketMgr.getStoredBasket();
|
|
127
|
+
* if (storedBasket) {
|
|
128
|
+
* // transfer all the data needed from the stored to the active basket
|
|
129
|
+
* }
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* A exhaustive example on how to use this method in the context of the Merge Basket functionality can be found
|
|
133
|
+
* here: Merge Basket utility
|
|
134
|
+
* functions using Script API
|
|
135
|
+
*/
|
|
136
|
+
static readonly storedBasket: Basket | null;
|
|
137
|
+
/**
|
|
138
|
+
* Retrieve all open temporary baskets for the logged in customer.
|
|
139
|
+
*
|
|
140
|
+
* Please notice that baskets are invalidated after a certain amount of time and may not be returned anymore.
|
|
141
|
+
*/
|
|
142
|
+
static readonly temporaryBaskets: List<Basket>;
|
|
143
|
+
private constructor();
|
|
144
|
+
/**
|
|
145
|
+
* Creates a new agent basket for the current session customer.
|
|
146
|
+
*
|
|
147
|
+
* By default only 4 open agent baskets are allowed per customer. If this is exceeded a
|
|
148
|
+
* CreateAgentBasketLimitExceededException will be thrown.
|
|
149
|
+
*
|
|
150
|
+
* This method will result in an exception if called by a user without permission Create_Order_On_Behalf_Of or if no
|
|
151
|
+
* customer is logged in the session.
|
|
152
|
+
* @throws CreateAgentBasketLimitExceededException indicates that no agent basket could be created because the agent basket limit is already exceeded
|
|
153
|
+
*/
|
|
154
|
+
static createAgentBasket(): Basket;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
*
|
|
158
|
+
* Creates a Basket from an existing Order for the purposes of changing an Order. When an Order is later created
|
|
159
|
+
* from the Basket, the original Order is changed to status dw.order.Order.ORDER_STATUS_REPLACED. Restricted
|
|
160
|
+
* to agent scenario use cases.
|
|
161
|
+
*
|
|
162
|
+
* In case a storefront customer is using it the created storefront basket cannot be retrieved via
|
|
163
|
+
*
|
|
164
|
+
* - getCurrentBasket (ScriptAPI),
|
|
165
|
+
* - GET /baskets/<basketid> (REST APIs) or
|
|
166
|
+
* - DELETE /baskets/<basketid> (REST APIs) or
|
|
167
|
+
* - GetBasket (Pipelet) or
|
|
168
|
+
* - Basket-related CSC Operations from BM (these also use OCAPI REST API).
|
|
169
|
+
*
|
|
170
|
+
* Baskets containing an "orderNumberBeingEdited" are explicitly excluded from the list of baskets that can be
|
|
171
|
+
* retrieved. Responsible for this behavior (this kind of basket cannot be used as general purpose shopping baskets)
|
|
172
|
+
* - see dw.order.Basket.getOrderNoBeingEdited / dw.order.Basket.getOrderBeingEdited.
|
|
173
|
+
*
|
|
174
|
+
* In case a Business Manager user is logged in into the session the basket will be marked as an agent basket. See
|
|
175
|
+
* dw.order.Basket.isAgentBasket</>.
|
|
176
|
+
*
|
|
177
|
+
* Any inventory reservation associated with the order will be canceled either early when
|
|
178
|
+
* dw.order.Basket.reserveInventory is called for the new basket or (later) when a new replacement order
|
|
179
|
+
* is created from the basket. Consider reserving the basket following its creation.
|
|
180
|
+
*
|
|
181
|
+
* The method only succeeds for an Order
|
|
182
|
+
*
|
|
183
|
+
* - without gift certificates,
|
|
184
|
+
* - status is not cancelled,
|
|
185
|
+
* - was not previously replaced and
|
|
186
|
+
* - was not previously exported.
|
|
187
|
+
*
|
|
188
|
+
* Failures are indicated by throwing an APIException of type CreateBasketFromOrderException which provides one of
|
|
189
|
+
* these errorCodes:
|
|
190
|
+
*
|
|
191
|
+
* - Code dw.order.OrderProcessStatusCodes.ORDER_CONTAINS_GC - the Order contains a gift certificate and
|
|
192
|
+
* cannot be replaced.
|
|
193
|
+
* - Code dw.order.OrderProcessStatusCodes.ORDER_ALREADY_REPLACED - the Order was already replaced.
|
|
194
|
+
* - Code dw.order.OrderProcessStatusCodes.ORDER_ALREADY_CANCELLED - the Order was cancelled.
|
|
195
|
+
* - Code dw.order.OrderProcessStatusCodes.ORDER_ALREADY_EXPORTED - the Order has already been
|
|
196
|
+
* exported.
|
|
197
|
+
*
|
|
198
|
+
* Usage:
|
|
199
|
+
* @example
|
|
200
|
+
* var order : Order; // known
|
|
201
|
+
* try
|
|
202
|
+
* {
|
|
203
|
+
* var basket : Basket = BasketMgr.createBasketFromOrder(order);
|
|
204
|
+
* }
|
|
205
|
+
* catch (e)
|
|
206
|
+
* {
|
|
207
|
+
* if (e instanceof APIException && e.type === 'CreateBasketFromOrderException')
|
|
208
|
+
* {
|
|
209
|
+
* // handle e.errorCode
|
|
210
|
+
* }
|
|
211
|
+
* }
|
|
212
|
+
* @throws dw.order.CreateBasketFromOrderException indicates the Order is in an invalid state.
|
|
213
|
+
* @see dw.customer.AgentUserMgr.loginAgentUser
|
|
214
|
+
* @see dw.customer.AgentUserMgr.loginOnBehalfOfCustomer
|
|
215
|
+
*/
|
|
216
|
+
static createBasketFromOrder(order: Order): Basket;
|
|
217
|
+
/**
|
|
218
|
+
* Creates a new temporary basket for the current session customer. Temporary baskets are separate from shopper
|
|
219
|
+
* storefront and agent baskets, and are intended for use to perform calculations or create an order without
|
|
220
|
+
* disturbing a shopper's open storefront basket. Temporary baskets are automatically deleted after a time duration
|
|
221
|
+
* of 15 minutes.
|
|
222
|
+
*
|
|
223
|
+
* By default only 4 open temporary baskets are allowed per customer. If this is exceeded a
|
|
224
|
+
* CreateTemporaryBasketLimitExceededException will be thrown.
|
|
225
|
+
*/
|
|
226
|
+
static createTemporaryBasket(): Basket;
|
|
227
|
+
/**
|
|
228
|
+
* Remove a customer basket including a temporary basket.
|
|
229
|
+
*
|
|
230
|
+
* This method will result in an exception if called by a user without permission Create_Order_On_Behalf_Of or if no
|
|
231
|
+
* customer is logged in the session.
|
|
232
|
+
* @see dw.customer.AgentUserMgr.loginAgentUser
|
|
233
|
+
* @see dw.customer.AgentUserMgr.loginOnBehalfOfCustomer
|
|
234
|
+
*/
|
|
235
|
+
static deleteBasket(basket: Basket): void;
|
|
236
|
+
/**
|
|
237
|
+
* Remove a customer temporary basket.
|
|
238
|
+
*/
|
|
239
|
+
static deleteTemporaryBasket(basket: Basket): void;
|
|
240
|
+
/**
|
|
241
|
+
* This method returns a valid basket of the session customer or `null` if none is found. This method can
|
|
242
|
+
* also be used to get a temporary basket for the session customer.
|
|
243
|
+
*
|
|
244
|
+
* If the basket does not belong to the session customer, the method returns `null`.
|
|
245
|
+
*
|
|
246
|
+
* If the registered customer is not logged in, the method returns `null`.
|
|
247
|
+
*
|
|
248
|
+
* Restricted to agent scenario use cases: This method will result in an exception if called by a user without
|
|
249
|
+
* permission Create_Order_On_Behalf_Of or if no customer is logged in the session.
|
|
250
|
+
*
|
|
251
|
+
* The basket, if accessible, is usually updated in the same way as getCurrentBasket.
|
|
252
|
+
*
|
|
253
|
+
* If the session currency no longer matches the basket currency, the basket currency should be updated with
|
|
254
|
+
* dw.order.Basket.updateCurrency.
|
|
255
|
+
*/
|
|
256
|
+
static getBasket(uuid: string): Basket | null;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
*
|
|
260
|
+
* Retrieve all open baskets for the logged in customer including the temporary baskets.
|
|
261
|
+
*
|
|
262
|
+
* Restricted to agent scenario use cases: The returned list contains all agent baskets created with
|
|
263
|
+
* createAgentBasket and the current storefront basket which can also be retrieved with
|
|
264
|
+
* getCurrentBasket. This method will result in an exception if called by a user without permission
|
|
265
|
+
* Create_Order_On_Behalf_Of or if no customer is logged in the session.
|
|
266
|
+
*
|
|
267
|
+
* Please notice that baskets are invalidated after a certain amount of time and may not be returned anymore.
|
|
268
|
+
*/
|
|
269
|
+
static getBaskets(): List<Basket>;
|
|
270
|
+
/**
|
|
271
|
+
* This method returns the current valid basket of the session customer or `null` if no current valid
|
|
272
|
+
* basket exists.
|
|
273
|
+
*
|
|
274
|
+
* The methods getCurrentBasket and getCurrentOrNewBasket work based on the selected basket
|
|
275
|
+
* persistence, which can be configured in the Business Manager site preferences / baskets section. A basket is
|
|
276
|
+
* valid for the configured basket lifetime.
|
|
277
|
+
*
|
|
278
|
+
* In hybrid storefront scenarios (Phased Launch sites that utilize SFRA/SiteGenesis for some part while also
|
|
279
|
+
* utilizing PWA Kit or other custom headless solution for another part of the same site), this method must
|
|
280
|
+
* NOT be used. Instead, retrieve baskets via `GET baskets/{basketId}` or
|
|
281
|
+
* `GET customers/{customerId}/baskets`. Do not use getCurrentOrNewBasket for basket creation
|
|
282
|
+
* in any scenario.
|
|
283
|
+
*
|
|
284
|
+
* The current basket, if one exists, is usually updated by the method. In particular the last-modified date is
|
|
285
|
+
* updated. No update is done when method getCurrentBasket is used within a read-only hook
|
|
286
|
+
* implementation (such as a beforeGet or a modifyResponse hook). The lifetime of a basket can be extended
|
|
287
|
+
* in 2 ways:
|
|
288
|
+
*
|
|
289
|
+
* - The basket is modified in some way, e.g. a product is added resulting in the basket total being newly
|
|
290
|
+
* calculated. This results in the basket lifetime being reset.
|
|
291
|
+
* - The basket has not been modified for 60 minutes, then using this method to access the basket will also reset
|
|
292
|
+
* the basket lifetime.
|
|
293
|
+
*
|
|
294
|
+
* What happens when a customer logs in? Personal data held inside the basket such as addresses, email addresses and
|
|
295
|
+
* payment settings is associated with the customer to whom the basket belongs. If the basket being updated belongs
|
|
296
|
+
* to a different customer this data is removed. This happens when a guest customer that has a basket logs in and
|
|
297
|
+
* hence identifies as a registered customer. In this case the basket which was previously created by the guest
|
|
298
|
+
* customer gets transferred to the (now logged in) registered customer. Should the registered customer already have
|
|
299
|
+
* a basket, this basket is effectively invalidated, but made available using getStoredBasket allowing
|
|
300
|
+
* the script to merge content from it if desired.
|
|
301
|
+
*
|
|
302
|
+
* What happens when a customer logs out or when the customer session times out? After the customer logs out, a
|
|
303
|
+
* basket belonging to the registered customer (now logged out) is stored (where applicable) and this method
|
|
304
|
+
* returns `null`. Personal data is also cleared when the session times out for a guest customer.
|
|
305
|
+
*
|
|
306
|
+
* The following personal data is cleared:
|
|
307
|
+
*
|
|
308
|
+
* - product line items that were added from a wish list
|
|
309
|
+
* - shipping method
|
|
310
|
+
* - coupon line items
|
|
311
|
+
* - gift certificate line items
|
|
312
|
+
* - billing and shipping addresses
|
|
313
|
+
* - payment instruments
|
|
314
|
+
* - buyer email
|
|
315
|
+
*
|
|
316
|
+
* If the session currency no longer matches the basket currency, the basket currency should be updated with
|
|
317
|
+
* dw.order.Basket.updateCurrency.
|
|
318
|
+
*
|
|
319
|
+
* Typical usage:
|
|
320
|
+
*
|
|
321
|
+
* ```
|
|
322
|
+
* var basket : Basket = BasketMgr.getCurrentBasket();
|
|
323
|
+
* if (basket) {
|
|
324
|
+
* // do something with basket
|
|
325
|
+
* }
|
|
326
|
+
* ```
|
|
327
|
+
*
|
|
328
|
+
* Constraints:
|
|
329
|
+
*
|
|
330
|
+
* - The method only accesses the basket for the session customer, an exception is thrown when the session
|
|
331
|
+
* customer is `null`.
|
|
332
|
+
* - Method getCurrentOrNewBasket only creates a basket when method getCurrentBasket returns
|
|
333
|
+
* `null`.
|
|
334
|
+
*/
|
|
335
|
+
static getCurrentBasket(): Basket | null;
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
*
|
|
339
|
+
* This method returns the current valid basket of the session customer or creates a new one if no current valid
|
|
340
|
+
* basket exists. See getCurrentBasket for more details.
|
|
341
|
+
*
|
|
342
|
+
* In hybrid storefront scenarios (Phased Launch sites that utilize SFRA/SiteGenesis for some part while also
|
|
343
|
+
* utilizing PWA Kit or other custom headless solution for another part of the same site), this method must
|
|
344
|
+
* NOT be used. For these scenarios, create baskets via `POST baskets` REST calls.
|
|
345
|
+
*/
|
|
346
|
+
static getCurrentOrNewBasket(): Basket;
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
*
|
|
350
|
+
* This method returns the stored basket of the session customer or `null` if none is found. A stored
|
|
351
|
+
* basket is returned in the following situation:
|
|
352
|
+
*
|
|
353
|
+
* - During one visit, a customer-Q logs in and creates a basket-A by adding products to it.
|
|
354
|
+
* - During a subsequent visit, a second basket-B is created for a guest customer who then logs in as
|
|
355
|
+
* customer-Q.
|
|
356
|
+
*
|
|
357
|
+
* In this case, basket-B is reassigned to customer-Q and basket-A is accessible as the stored basket using this
|
|
358
|
+
* method. It is now possible to merge the information from the stored basket (basket-A) to the active basket
|
|
359
|
+
* (basket-B). If this method returns `null` in the previous scenario, verify that:
|
|
360
|
+
*
|
|
361
|
+
* - The session handling between the two visits is correct - the first visit and second visit must be in
|
|
362
|
+
* different sessions. Furthermore, the second session must contain both basket creations: as guest and the customer
|
|
363
|
+
* login.
|
|
364
|
+
* - The stored basket is not expired.
|
|
365
|
+
* - Basket persistence settings are configured correctly in the Business Manager.
|
|
366
|
+
*
|
|
367
|
+
* A stored basket exists only if the corresponding setting is selected in Business Manager. preferences' baskets
|
|
368
|
+
* section. A basket is valid for the configured basket lifetime.
|
|
369
|
+
*
|
|
370
|
+
* Typical usage:
|
|
371
|
+
*
|
|
372
|
+
* ```
|
|
373
|
+
* var currentBasket : Basket = BasketMgr.getCurrentOrNewBasket();
|
|
374
|
+
* var storedBasket : Basket = BasketMgr.getStoredBasket();
|
|
375
|
+
* if (storedBasket) {
|
|
376
|
+
* // transfer all the data needed from the stored to the active basket
|
|
377
|
+
* }
|
|
378
|
+
* ```
|
|
379
|
+
*
|
|
380
|
+
* A exhaustive example on how to use this method in the context of the Merge Basket functionality can be found
|
|
381
|
+
* here: Merge Basket utility
|
|
382
|
+
* functions using Script API
|
|
383
|
+
*/
|
|
384
|
+
static getStoredBasket(): Basket | null;
|
|
385
|
+
/**
|
|
386
|
+
* This method returns a valid temporary basket of the session customer or `null` if none is found.
|
|
387
|
+
*
|
|
388
|
+
* If the basket does not belong to the session customer, the method returns `null`.
|
|
389
|
+
*
|
|
390
|
+
* If the basket is not a temporary basket, the method returns `null`.
|
|
391
|
+
*
|
|
392
|
+
* The basket, if accessible, is usually updated in the same way as getCurrentBasket.
|
|
393
|
+
*
|
|
394
|
+
* If the session currency no longer matches the basket currency, the basket currency should be updated with
|
|
395
|
+
* dw.order.Basket.updateCurrency.
|
|
396
|
+
*/
|
|
397
|
+
static getTemporaryBasket(uuid: string): Basket | null;
|
|
398
|
+
/**
|
|
399
|
+
* Retrieve all open temporary baskets for the logged in customer.
|
|
400
|
+
*
|
|
401
|
+
* Please notice that baskets are invalidated after a certain amount of time and may not be returned anymore.
|
|
402
|
+
*/
|
|
403
|
+
static getTemporaryBaskets(): List<Basket>;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export = BasketMgr;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import ExtensibleObject = require('../object/ExtensibleObject');
|
|
2
|
+
import CustomAttributes = require('../object/CustomAttributes');
|
|
3
|
+
import Promotion = require('../campaign/Promotion');
|
|
4
|
+
import CouponLineItem = require('./CouponLineItem');
|
|
5
|
+
import List = require('../util/List');
|
|
6
|
+
import Product = require('../catalog/Product');
|
|
7
|
+
import Money = require('../value/Money');
|
|
8
|
+
import ProductLineItem = require('./ProductLineItem');
|
|
9
|
+
|
|
10
|
+
declare global {
|
|
11
|
+
module ICustomAttributes {
|
|
12
|
+
interface BonusDiscountLineItem extends CustomAttributes {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Line item representing an applied dw.campaign.BonusChoiceDiscount in a LineItemCtnr. This type of line item
|
|
19
|
+
* can only be created by the B2C Commerce promotions engine when applying a BonusChoiceDiscount.
|
|
20
|
+
* A BonusDiscountLineItem is basically a placeholder in the cart which entitles a customer to add one or more bonus
|
|
21
|
+
* products to his basket from a configured list of products. Merchants typically display this type of line item in the
|
|
22
|
+
* cart by showing the corresponding promotion callout message. They typically provide links to the bonus products that
|
|
23
|
+
* the customer can choose from. This line item can be removed from the cart but will be re-added each time the
|
|
24
|
+
* promotions engine re-applies discounts. Merchants may however add custom logic to show/hide this line item since it
|
|
25
|
+
* just a placeholder and not an actual product line item.
|
|
26
|
+
*
|
|
27
|
+
* The number of products that a customer is allowed to choose from is determined by getMaxBonusItems. The
|
|
28
|
+
* collection of products the customer can choose from is determined by getBonusProducts. When a customer
|
|
29
|
+
* chooses a bonus product in the storefront, it is necessary to use the `AddBonusProductToBasket` pipelet
|
|
30
|
+
* instead of the usual `AddProductToBasket` pipelet, in order to associate this BonusDiscountLineItem with
|
|
31
|
+
* the newly created bonus ProductLineItem. Alternatively, the API method
|
|
32
|
+
* dw.order.LineItemCtnr.createBonusProductLineItem
|
|
33
|
+
* can be used instead. The system does proper validations in order to prevent incorrect or too many bonus products from
|
|
34
|
+
* being associated with this BonusDiscountLineItem. Once a customer has selected bonus products, the product line items
|
|
35
|
+
* representing the chosen bonus products can be retrieved with getBonusProductLineItems.
|
|
36
|
+
* @see dw.campaign.BonusChoiceDiscount
|
|
37
|
+
*/
|
|
38
|
+
declare class BonusDiscountLineItem extends ExtensibleObject<ICustomAttributes.BonusDiscountLineItem> {
|
|
39
|
+
/**
|
|
40
|
+
* Returns whether the promotion that triggered the creation of this line item uses a rule to determine the list of
|
|
41
|
+
* bonus products.
|
|
42
|
+
*
|
|
43
|
+
* If the promotion is rule based, then a ProductSearchModel should be used to return the bonus products the
|
|
44
|
+
* customer may choose from, as the methods that return lists will return nothing. See getBonusProducts
|
|
45
|
+
*/
|
|
46
|
+
readonly bonusChoiceRuleBased: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Get the product line items in the current LineItemCtnr representing the
|
|
49
|
+
* bonus products that the customer has selected for this discount.
|
|
50
|
+
* @see dw.order.LineItemCtnr.createBonusProductLineItem
|
|
51
|
+
*/
|
|
52
|
+
readonly bonusProductLineItems: List<ProductLineItem>;
|
|
53
|
+
/**
|
|
54
|
+
* Get the list of bonus products which the customer is allowed to choose
|
|
55
|
+
* from for this discount. This list is configured by a merchant entering a
|
|
56
|
+
* list of SKUs for the discount. Products which do not exist in the system,
|
|
57
|
+
* or are offline, or are not assigned to a category in the site catalog are
|
|
58
|
+
* filtered out. Unavailable (i.e. out-of-stock) products are NOT filtered
|
|
59
|
+
* out. This allows merchants to display out-of-stock bonus products with
|
|
60
|
+
* appropriate messaging.
|
|
61
|
+
*
|
|
62
|
+
* If the promotion which triggered this discount does not exist, or this
|
|
63
|
+
* promotion is rule based, then this method returns an empty list.
|
|
64
|
+
*
|
|
65
|
+
* If the promotion is rule based, then this method will return an empty list.
|
|
66
|
+
* A ProductSearchModel should be used to return the bonus products the
|
|
67
|
+
* customer may choose from instead. See
|
|
68
|
+
* dw.catalog.ProductSearchModel.PROMOTION_PRODUCT_TYPE_BONUS and
|
|
69
|
+
* dw.catalog.ProductSearchModel.setPromotionID
|
|
70
|
+
*
|
|
71
|
+
* If a returned product is a master product, the customer is entitled to
|
|
72
|
+
* choose from any variant. If the product is an option product, the
|
|
73
|
+
* customer is entitled to choose any value for each option. Since the
|
|
74
|
+
* promotions engine does not touch the value of the product option line
|
|
75
|
+
* items, it is the responsibility of custom code to set option prices.
|
|
76
|
+
*/
|
|
77
|
+
readonly bonusProducts: List<Product<any>>;
|
|
78
|
+
/**
|
|
79
|
+
* Get the coupon line item associated with this discount.
|
|
80
|
+
*/
|
|
81
|
+
readonly couponLineItem: CouponLineItem | null;
|
|
82
|
+
/**
|
|
83
|
+
* Get the maximum number of bonus items that the customer is permitted to
|
|
84
|
+
* select for this bonus discount.
|
|
85
|
+
*
|
|
86
|
+
* If the promotion which triggered this discount does not exist, then this
|
|
87
|
+
* method returns 0.
|
|
88
|
+
*/
|
|
89
|
+
readonly maxBonusItems: number;
|
|
90
|
+
/**
|
|
91
|
+
* Get the promotion associated with this discount.
|
|
92
|
+
*/
|
|
93
|
+
readonly promotion: Promotion | null;
|
|
94
|
+
/**
|
|
95
|
+
* Get the promotion ID associated with this discount.
|
|
96
|
+
*/
|
|
97
|
+
readonly promotionID: string;
|
|
98
|
+
private constructor();
|
|
99
|
+
/**
|
|
100
|
+
* Get the product line items in the current LineItemCtnr representing the
|
|
101
|
+
* bonus products that the customer has selected for this discount.
|
|
102
|
+
* @see dw.order.LineItemCtnr.createBonusProductLineItem
|
|
103
|
+
*/
|
|
104
|
+
getBonusProductLineItems(): List<ProductLineItem>;
|
|
105
|
+
/**
|
|
106
|
+
* Get the effective price for the passed bonus product. This is expected to
|
|
107
|
+
* be one of the products returned by getBonusProducts with one
|
|
108
|
+
* exception: If a master product is configured as a bonus product, this
|
|
109
|
+
* implies that a customer may choose from any of its variants. In this
|
|
110
|
+
* case, it is allowed to pass in a variant to this method and a price will
|
|
111
|
+
* be returned. If the passed product is not a valid bonus product, this
|
|
112
|
+
* method throws an exception.
|
|
113
|
+
*/
|
|
114
|
+
getBonusProductPrice(product: Product<any>): Money;
|
|
115
|
+
/**
|
|
116
|
+
* Get the list of bonus products which the customer is allowed to choose
|
|
117
|
+
* from for this discount. This list is configured by a merchant entering a
|
|
118
|
+
* list of SKUs for the discount. Products which do not exist in the system,
|
|
119
|
+
* or are offline, or are not assigned to a category in the site catalog are
|
|
120
|
+
* filtered out. Unavailable (i.e. out-of-stock) products are NOT filtered
|
|
121
|
+
* out. This allows merchants to display out-of-stock bonus products with
|
|
122
|
+
* appropriate messaging.
|
|
123
|
+
*
|
|
124
|
+
* If the promotion which triggered this discount does not exist, or this
|
|
125
|
+
* promotion is rule based, then this method returns an empty list.
|
|
126
|
+
*
|
|
127
|
+
* If the promotion is rule based, then this method will return an empty list.
|
|
128
|
+
* A ProductSearchModel should be used to return the bonus products the
|
|
129
|
+
* customer may choose from instead. See
|
|
130
|
+
* dw.catalog.ProductSearchModel.PROMOTION_PRODUCT_TYPE_BONUS and
|
|
131
|
+
* dw.catalog.ProductSearchModel.setPromotionID
|
|
132
|
+
*
|
|
133
|
+
* If a returned product is a master product, the customer is entitled to
|
|
134
|
+
* choose from any variant. If the product is an option product, the
|
|
135
|
+
* customer is entitled to choose any value for each option. Since the
|
|
136
|
+
* promotions engine does not touch the value of the product option line
|
|
137
|
+
* items, it is the responsibility of custom code to set option prices.
|
|
138
|
+
*/
|
|
139
|
+
getBonusProducts(): List<Product<any>>;
|
|
140
|
+
/**
|
|
141
|
+
* Get the coupon line item associated with this discount.
|
|
142
|
+
*/
|
|
143
|
+
getCouponLineItem(): CouponLineItem | null;
|
|
144
|
+
/**
|
|
145
|
+
* Get the maximum number of bonus items that the customer is permitted to
|
|
146
|
+
* select for this bonus discount.
|
|
147
|
+
*
|
|
148
|
+
* If the promotion which triggered this discount does not exist, then this
|
|
149
|
+
* method returns 0.
|
|
150
|
+
*/
|
|
151
|
+
getMaxBonusItems(): number;
|
|
152
|
+
/**
|
|
153
|
+
* Get the promotion associated with this discount.
|
|
154
|
+
*/
|
|
155
|
+
getPromotion(): Promotion | null;
|
|
156
|
+
/**
|
|
157
|
+
* Get the promotion ID associated with this discount.
|
|
158
|
+
*/
|
|
159
|
+
getPromotionID(): string;
|
|
160
|
+
/**
|
|
161
|
+
* Returns whether the promotion that triggered the creation of this line item uses a rule to determine the list of
|
|
162
|
+
* bonus products.
|
|
163
|
+
*
|
|
164
|
+
* If the promotion is rule based, then a ProductSearchModel should be used to return the bonus products the
|
|
165
|
+
* customer may choose from, as the methods that return lists will return nothing. See getBonusProducts
|
|
166
|
+
*/
|
|
167
|
+
isBonusChoiceRuleBased(): boolean;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export = BonusDiscountLineItem;
|