@salesforce/b2c-cli 1.11.0 → 1.12.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/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 +5721 -5416
- package/package.json +2 -2
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemCtnr.d.ts
ADDED
|
@@ -0,0 +1,1146 @@
|
|
|
1
|
+
import ExtensibleObject = require('../object/ExtensibleObject');
|
|
2
|
+
import CustomAttributes = require('../object/CustomAttributes');
|
|
3
|
+
import ProductLineItem = require('./ProductLineItem');
|
|
4
|
+
import Quantity = require('../value/Quantity');
|
|
5
|
+
import Shipment = require('./Shipment');
|
|
6
|
+
import ProductListItem = require('../customer/ProductListItem');
|
|
7
|
+
import Product = require('../catalog/Product');
|
|
8
|
+
import ProductOptionModel = require('../catalog/ProductOptionModel');
|
|
9
|
+
import BonusDiscountLineItem = require('./BonusDiscountLineItem');
|
|
10
|
+
import Collection = require('../util/Collection');
|
|
11
|
+
import GiftCertificateLineItem = require('./GiftCertificateLineItem');
|
|
12
|
+
import OrderPaymentInstrument = require('./OrderPaymentInstrument');
|
|
13
|
+
import Money = require('../value/Money');
|
|
14
|
+
import CouponLineItem = require('./CouponLineItem');
|
|
15
|
+
import CustomerPaymentInstrument = require('../customer/CustomerPaymentInstrument');
|
|
16
|
+
import PaymentInstrument = require('./PaymentInstrument');
|
|
17
|
+
import LineItem = require('./LineItem');
|
|
18
|
+
import PriceAdjustment = require('./PriceAdjustment');
|
|
19
|
+
import Discount = require('../campaign/Discount');
|
|
20
|
+
import Status = require('../system/Status');
|
|
21
|
+
import OrderAddress = require('./OrderAddress');
|
|
22
|
+
import Customer = require('../customer/Customer');
|
|
23
|
+
import HashMap = require('../util/HashMap');
|
|
24
|
+
import EnumValue = require('../value/EnumValue');
|
|
25
|
+
import Note = require('../object/Note');
|
|
26
|
+
import List = require('../util/List');
|
|
27
|
+
import SortedMap = require('../util/SortedMap');
|
|
28
|
+
|
|
29
|
+
declare global {
|
|
30
|
+
module ICustomAttributes {
|
|
31
|
+
interface LineItemCtnr extends CustomAttributes {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A container for line items, such as ProductLineItems, CouponLineItems, GiftCertificateLineItems. This container also
|
|
38
|
+
* provides access to shipments, shipping adjustments (promotions), and payment instruments (credit cards).
|
|
39
|
+
*
|
|
40
|
+
* LineItemCtnr also contains a set of methods for creating line items and adjustments, and for accessing various price
|
|
41
|
+
* values. There are three types of price-related methods:
|
|
42
|
+
*
|
|
43
|
+
* - Net-based methods represent the amount of a category before tax has been calculated. For example,
|
|
44
|
+
* the getMerchandizeTotalNetPrice() returns the price of all merchandise in the container whereas
|
|
45
|
+
* getShippingTotalNetPrice() returns the price of all shipments in the container.
|
|
46
|
+
* - Tax-based methods return the amount of tax on a category. For example, the getMerchandizeTotalTax()
|
|
47
|
+
* returns the total tax for all merchandise and the getShippingTotalTax() returns the tax applied to all
|
|
48
|
+
* shipments.
|
|
49
|
+
* - Gross-based methods represent the amount of a category after tax has been calculated. For example,
|
|
50
|
+
* the getMerchandizeTotalGrossPrice() returns the price of all merchandise in the container, including tax on the
|
|
51
|
+
* merchandise, whereas getShippingTotalGrossPrice() returns the price of all shipments in the container, including tax
|
|
52
|
+
* on the shipments in the container.
|
|
53
|
+
*
|
|
54
|
+
* There are also a set of methods that provide access to 'adjusted' values. The adjusted-based methods return values
|
|
55
|
+
* where promotions have been applied. For example, the getAdjustedMerchandizeTotalNetPrice() method returns the net
|
|
56
|
+
* price of all merchandise after product-level and order-level promotions have been applied. Whereas the
|
|
57
|
+
* getAdjustedMerchandizeTotalGrossPrice() method returns the price of all merchandise after product-level and
|
|
58
|
+
* order-level promotions have been applied and includes the amount of merchandise-related tax.
|
|
59
|
+
*
|
|
60
|
+
* Finally, there are a set of methods that return the aggregate values representing the line items in the container.
|
|
61
|
+
* These are the total-based methods getTotalNetPrice(), getTotalTax() and getTotalGrossPrice(). These methods return
|
|
62
|
+
* the totals of all items in the container and include any order-level promotions.
|
|
63
|
+
*
|
|
64
|
+
* Note that all merchandise-related methods do not include 'gift certificates' values in the values they return. Gift
|
|
65
|
+
* certificates are not considered merchandise as they do not represent a product.
|
|
66
|
+
*/
|
|
67
|
+
declare class LineItemCtnr<T extends ICustomAttributes.LineItemCtnr = ICustomAttributes.LineItemCtnr> extends ExtensibleObject<T> {
|
|
68
|
+
/**
|
|
69
|
+
* constant for Business Type B2B
|
|
70
|
+
*/
|
|
71
|
+
static readonly BUSINESS_TYPE_B2B: number;
|
|
72
|
+
/**
|
|
73
|
+
* constant for Business Type B2C
|
|
74
|
+
*/
|
|
75
|
+
static readonly BUSINESS_TYPE_B2C: number;
|
|
76
|
+
/**
|
|
77
|
+
* constant for Channel Type CallCenter
|
|
78
|
+
*/
|
|
79
|
+
static readonly CHANNEL_TYPE_CALLCENTER: number;
|
|
80
|
+
/**
|
|
81
|
+
* constant for Channel Type ChatGPT
|
|
82
|
+
*/
|
|
83
|
+
static readonly CHANNEL_TYPE_CHATGPT: number;
|
|
84
|
+
/**
|
|
85
|
+
* constant for Channel Type Customer Service Center
|
|
86
|
+
*/
|
|
87
|
+
static readonly CHANNEL_TYPE_CUSTOMERSERVICECENTER: number;
|
|
88
|
+
/**
|
|
89
|
+
* constant for Channel Type DSS
|
|
90
|
+
*/
|
|
91
|
+
static readonly CHANNEL_TYPE_DSS: number;
|
|
92
|
+
/**
|
|
93
|
+
* constant for Channel Type Facebook Ads
|
|
94
|
+
*/
|
|
95
|
+
static readonly CHANNEL_TYPE_FACEBOOKADS: number;
|
|
96
|
+
/**
|
|
97
|
+
* constant for Channel Type Gemini
|
|
98
|
+
*/
|
|
99
|
+
static readonly CHANNEL_TYPE_GEMINI: number;
|
|
100
|
+
/**
|
|
101
|
+
* constant for Channel Type Google
|
|
102
|
+
*/
|
|
103
|
+
static readonly CHANNEL_TYPE_GOOGLE: number;
|
|
104
|
+
/**
|
|
105
|
+
* constant for Channel Type Instagram Commerce
|
|
106
|
+
*/
|
|
107
|
+
static readonly CHANNEL_TYPE_INSTAGRAMCOMMERCE: number;
|
|
108
|
+
/**
|
|
109
|
+
* constant for Channel Type Marketplace
|
|
110
|
+
*/
|
|
111
|
+
static readonly CHANNEL_TYPE_MARKETPLACE: number;
|
|
112
|
+
/**
|
|
113
|
+
* constant for Channel Type Online Reservation
|
|
114
|
+
*/
|
|
115
|
+
static readonly CHANNEL_TYPE_ONLINERESERVATION: number;
|
|
116
|
+
/**
|
|
117
|
+
* constant for Channel Type Pinterest
|
|
118
|
+
*/
|
|
119
|
+
static readonly CHANNEL_TYPE_PINTEREST: number;
|
|
120
|
+
/**
|
|
121
|
+
* constant for Channel Type Snapchat
|
|
122
|
+
*/
|
|
123
|
+
static readonly CHANNEL_TYPE_SNAPCHAT: number;
|
|
124
|
+
/**
|
|
125
|
+
* constant for Channel Type Store
|
|
126
|
+
*/
|
|
127
|
+
static readonly CHANNEL_TYPE_STORE: number;
|
|
128
|
+
/**
|
|
129
|
+
* constant for Channel Type Storefront
|
|
130
|
+
*/
|
|
131
|
+
static readonly CHANNEL_TYPE_STOREFRONT: number;
|
|
132
|
+
/**
|
|
133
|
+
* constant for Channel Type Subscriptions
|
|
134
|
+
*/
|
|
135
|
+
static readonly CHANNEL_TYPE_SUBSCRIPTIONS: number;
|
|
136
|
+
/**
|
|
137
|
+
* constant for Channel Type TikTok
|
|
138
|
+
*/
|
|
139
|
+
static readonly CHANNEL_TYPE_TIKTOK: number;
|
|
140
|
+
/**
|
|
141
|
+
* constant for Channel Type Twitter
|
|
142
|
+
*/
|
|
143
|
+
static readonly CHANNEL_TYPE_TWITTER: number;
|
|
144
|
+
/**
|
|
145
|
+
* constant for Channel Type WhatsApp
|
|
146
|
+
*/
|
|
147
|
+
static readonly CHANNEL_TYPE_WHATSAPP: number;
|
|
148
|
+
/**
|
|
149
|
+
* constant for Channel Type YouTube
|
|
150
|
+
*/
|
|
151
|
+
static readonly CHANNEL_TYPE_YOUTUBE: number;
|
|
152
|
+
/**
|
|
153
|
+
* Returns the adjusted total gross price (including tax) in purchase currency. Adjusted merchandize prices
|
|
154
|
+
* represent the sum of product prices before services such as shipping, but after product-level and order-level
|
|
155
|
+
* adjustments.
|
|
156
|
+
*/
|
|
157
|
+
readonly adjustedMerchandizeTotalGrossPrice: Money;
|
|
158
|
+
/**
|
|
159
|
+
* Returns the total net price (excluding tax) in purchase currency. Adjusted merchandize prices represent the sum
|
|
160
|
+
* of product prices before services such as shipping, but after product-level and order-level adjustments.
|
|
161
|
+
*/
|
|
162
|
+
readonly adjustedMerchandizeTotalNetPrice: Money;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the adjusted merchandize total price including product-level and order-level adjustments. If the line
|
|
165
|
+
* item container is based on net pricing the adjusted merchandize total net price is returned. If the line item
|
|
166
|
+
* container is based on gross pricing the adjusted merchandize total gross price is returned.
|
|
167
|
+
*/
|
|
168
|
+
readonly adjustedMerchandizeTotalPrice: Money;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the subtotal tax in purchase currency. Adjusted merchandize prices represent the sum of product prices
|
|
171
|
+
* before services such as shipping have been added, but after adjustment from promotions have been added.
|
|
172
|
+
*/
|
|
173
|
+
readonly adjustedMerchandizeTotalTax: Money;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the adjusted sum of all shipping line items of the line item container, including tax after shipping
|
|
176
|
+
* adjustments have been applied.
|
|
177
|
+
*/
|
|
178
|
+
readonly adjustedShippingTotalGrossPrice: Money;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the sum of all shipping line items of the line item container, excluding tax after shipping adjustments
|
|
181
|
+
* have been applied.
|
|
182
|
+
*/
|
|
183
|
+
readonly adjustedShippingTotalNetPrice: Money;
|
|
184
|
+
/**
|
|
185
|
+
* Returns the adjusted shipping total price. If the line item container is based on net pricing the adjusted
|
|
186
|
+
* shipping total net price is returned. If the line item container is based on gross pricing the adjusted shipping
|
|
187
|
+
* total gross price is returned.
|
|
188
|
+
*/
|
|
189
|
+
readonly adjustedShippingTotalPrice: Money;
|
|
190
|
+
/**
|
|
191
|
+
* Returns the tax of all shipping line items of the line item container after shipping adjustments have been
|
|
192
|
+
* applied.
|
|
193
|
+
*/
|
|
194
|
+
readonly adjustedShippingTotalTax: Money;
|
|
195
|
+
/**
|
|
196
|
+
* Returns all gift certificate line items of the container.
|
|
197
|
+
* @deprecated Use getGiftCertificateLineItems to get the collection instead.
|
|
198
|
+
*/
|
|
199
|
+
readonly allGiftCertificateLineItems: Collection<GiftCertificateLineItem>;
|
|
200
|
+
/**
|
|
201
|
+
* Returns all product, shipping, price adjustment, and gift certificate line items of the line item container.
|
|
202
|
+
*/
|
|
203
|
+
readonly allLineItems: Collection<LineItem<any>>;
|
|
204
|
+
/**
|
|
205
|
+
* Returns all product line items of the container, no matter if they are dependent or independent. This includes
|
|
206
|
+
* option, bundled and bonus line items.
|
|
207
|
+
*/
|
|
208
|
+
readonly allProductLineItems: Collection<ProductLineItem>;
|
|
209
|
+
/**
|
|
210
|
+
* Returns a hash mapping all products in the line item container to their total quantities. The total product
|
|
211
|
+
* quantity is used chiefly to validate the availability of the items in the cart. This method is not appropriate to
|
|
212
|
+
* look up prices because it returns products such as bundled line items which are included in the price of their
|
|
213
|
+
* parent and therefore have no corresponding price.
|
|
214
|
+
*
|
|
215
|
+
* The method counts all direct product line items, plus dependent product line items that are not option line
|
|
216
|
+
* items. It also excludes product line items that are not associated to any catalog product.
|
|
217
|
+
*/
|
|
218
|
+
readonly allProductQuantities: HashMap<any, any>;
|
|
219
|
+
/**
|
|
220
|
+
* Returns the collection of all shipping price adjustments applied somewhere in the container. This can be
|
|
221
|
+
* adjustments applied to individual shipments or to the container itself. Note that the promotions engine only
|
|
222
|
+
* applies shipping price adjustments to the the default shipping line item of shipments, and never to the
|
|
223
|
+
* container.
|
|
224
|
+
* @see getShippingPriceAdjustments
|
|
225
|
+
*/
|
|
226
|
+
readonly allShippingPriceAdjustments: Collection<PriceAdjustment>;
|
|
227
|
+
/**
|
|
228
|
+
* Returns the billing address defined for the container. Returns null if no billing address has been created yet.
|
|
229
|
+
*/
|
|
230
|
+
readonly billingAddress: OrderAddress | null;
|
|
231
|
+
/**
|
|
232
|
+
* Returns an unsorted collection of the the bonus discount line items associated with this container.
|
|
233
|
+
*/
|
|
234
|
+
readonly bonusDiscountLineItems: Collection<BonusDiscountLineItem>;
|
|
235
|
+
/**
|
|
236
|
+
* Returns the collection of product line items that are bonus items (where
|
|
237
|
+
* dw.order.ProductLineItem.isBonusProductLineItem is true).
|
|
238
|
+
*/
|
|
239
|
+
readonly bonusLineItems: Collection<Product<any>>;
|
|
240
|
+
/**
|
|
241
|
+
* Returns the type of the business this order has been placed in.
|
|
242
|
+
*
|
|
243
|
+
* Possible values are BUSINESS_TYPE_B2C or BUSINESS_TYPE_B2B.
|
|
244
|
+
*/
|
|
245
|
+
readonly businessType: EnumValue | null;
|
|
246
|
+
/**
|
|
247
|
+
* The channel type defines in which sales channel this order has been created. This can be used to distinguish
|
|
248
|
+
* order placed through Storefront, Call Center or Marketplace.
|
|
249
|
+
*
|
|
250
|
+
* Possible values are CHANNEL_TYPE_STOREFRONT, CHANNEL_TYPE_CALLCENTER,
|
|
251
|
+
* CHANNEL_TYPE_MARKETPLACE, CHANNEL_TYPE_DSS, CHANNEL_TYPE_STORE,
|
|
252
|
+
* CHANNEL_TYPE_PINTEREST, CHANNEL_TYPE_TWITTER, CHANNEL_TYPE_FACEBOOKADS,
|
|
253
|
+
* CHANNEL_TYPE_SUBSCRIPTIONS, CHANNEL_TYPE_ONLINERESERVATION,
|
|
254
|
+
* CHANNEL_TYPE_CUSTOMERSERVICECENTER, CHANNEL_TYPE_INSTAGRAMCOMMERCE,
|
|
255
|
+
* CHANNEL_TYPE_GOOGLE, CHANNEL_TYPE_YOUTUBE, CHANNEL_TYPE_TIKTOK,
|
|
256
|
+
* CHANNEL_TYPE_SNAPCHAT, CHANNEL_TYPE_WHATSAPP, CHANNEL_TYPE_CHATGPT,
|
|
257
|
+
* CHANNEL_TYPE_GEMINI
|
|
258
|
+
*/
|
|
259
|
+
readonly channelType: EnumValue | null;
|
|
260
|
+
/**
|
|
261
|
+
* Returns a sorted collection of the coupon line items in the container. The coupon line items are returned in the
|
|
262
|
+
* order they were added to container.
|
|
263
|
+
*/
|
|
264
|
+
readonly couponLineItems: Collection<CouponLineItem>;
|
|
265
|
+
/**
|
|
266
|
+
* Returns the currency code for this line item container. The currency code is a 3-character currency mnemonic such
|
|
267
|
+
* as 'USD' or 'EUR'. The currency code represents the currency in which the calculation is made, and in which the
|
|
268
|
+
* buyer sees all prices in the store front.
|
|
269
|
+
*/
|
|
270
|
+
readonly currencyCode: string;
|
|
271
|
+
/**
|
|
272
|
+
* Returns the customer associated with this container.
|
|
273
|
+
*/
|
|
274
|
+
readonly customer: Customer;
|
|
275
|
+
/**
|
|
276
|
+
* Returns the email of the customer associated with this container.
|
|
277
|
+
*/
|
|
278
|
+
customerEmail: string;
|
|
279
|
+
/**
|
|
280
|
+
* Returns the name of the customer associated with this container.
|
|
281
|
+
*/
|
|
282
|
+
customerName: string;
|
|
283
|
+
/**
|
|
284
|
+
* Returns the customer number of the customer associated with this container.
|
|
285
|
+
*/
|
|
286
|
+
readonly customerNo: string;
|
|
287
|
+
/**
|
|
288
|
+
* Returns the default shipment of the line item container. Baskets always have a default shipment with ID "me".
|
|
289
|
+
* For orders, this can differ, for example: dw.order.OrderMgr.createOrder removes empty
|
|
290
|
+
* shipments, so if the basket's "me" shipment was empty at order creation, the order has no "me" shipment. In
|
|
291
|
+
* that case, the shipment with the lowest ID is returned as the fallback, or `null` if the order has
|
|
292
|
+
* no shipments. See dw.order.Shipment.isDefault for the matching logic.
|
|
293
|
+
*
|
|
294
|
+
* Processes that access a shipment use the default shipment when none is specified. The default shipment can't be
|
|
295
|
+
* removed. Calling removeShipment on it throws an exception.
|
|
296
|
+
*/
|
|
297
|
+
readonly defaultShipment: Shipment | null;
|
|
298
|
+
/**
|
|
299
|
+
* Returns the Etag of the line item container. The Etag is a hash that represents the overall container state
|
|
300
|
+
* including any associated objects like line items.
|
|
301
|
+
*/
|
|
302
|
+
readonly etag: string;
|
|
303
|
+
/**
|
|
304
|
+
* Use this method to check whether the LineItemCtnr is calculated based on external tax tables.
|
|
305
|
+
*
|
|
306
|
+
* Note: a basket can only be created in EXTERNAL tax mode using SCAPI.
|
|
307
|
+
*/
|
|
308
|
+
readonly externallyTaxed: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* Returns all gift certificate line items of the container.
|
|
311
|
+
*/
|
|
312
|
+
readonly giftCertificateLineItems: Collection<GiftCertificateLineItem>;
|
|
313
|
+
/**
|
|
314
|
+
* Returns an unsorted collection of the PaymentInstrument instances that represent GiftCertificates in this
|
|
315
|
+
* container.
|
|
316
|
+
*/
|
|
317
|
+
readonly giftCertificatePaymentInstruments: Collection<OrderPaymentInstrument>;
|
|
318
|
+
/**
|
|
319
|
+
* Returns the total gross price of all gift certificates in the cart. Should usually be equal to total net price.
|
|
320
|
+
*/
|
|
321
|
+
readonly giftCertificateTotalGrossPrice: Money;
|
|
322
|
+
/**
|
|
323
|
+
* Returns the total net price (excluding tax) of all gift certificates in the cart. Should usually be equal to
|
|
324
|
+
* total gross price.
|
|
325
|
+
*/
|
|
326
|
+
readonly giftCertificateTotalNetPrice: Money;
|
|
327
|
+
/**
|
|
328
|
+
* Returns the gift certificate total price. If the line item container is based on net pricing the gift certificate
|
|
329
|
+
* total net price is returned. If the line item container is based on gross pricing the gift certificate total
|
|
330
|
+
* gross price is returned.
|
|
331
|
+
*/
|
|
332
|
+
readonly giftCertificateTotalPrice: Money;
|
|
333
|
+
/**
|
|
334
|
+
* Returns the total tax of all gift certificates in the cart. Should usually be 0.0.
|
|
335
|
+
*/
|
|
336
|
+
readonly giftCertificateTotalTax: Money;
|
|
337
|
+
/**
|
|
338
|
+
* Returns the total gross price (including tax) in purchase currency. Merchandize total prices represent the sum of
|
|
339
|
+
* product prices before services such as shipping or adjustment from promotions have been added.
|
|
340
|
+
*/
|
|
341
|
+
readonly merchandizeTotalGrossPrice: Money;
|
|
342
|
+
/**
|
|
343
|
+
* Returns the total net price (excluding tax) in purchase currency. Merchandize total prices represent the sum of
|
|
344
|
+
* product prices before services such as shipping or adjustment from promotion have been added.
|
|
345
|
+
*/
|
|
346
|
+
readonly merchandizeTotalNetPrice: Money;
|
|
347
|
+
/**
|
|
348
|
+
* Returns the merchandize total price. If the line item container is based on net pricing the merchandize total net
|
|
349
|
+
* price is returned. If the line item container is based on gross pricing the merchandize total gross price is
|
|
350
|
+
* returned.
|
|
351
|
+
*/
|
|
352
|
+
readonly merchandizeTotalPrice: Money;
|
|
353
|
+
/**
|
|
354
|
+
* Returns the total tax in purchase currency. Merchandize total prices represent the sum of product prices before
|
|
355
|
+
* services such as shipping or adjustment from promotions have been added.
|
|
356
|
+
*/
|
|
357
|
+
readonly merchandizeTotalTax: Money;
|
|
358
|
+
/**
|
|
359
|
+
* Returns the list of notes for this object, ordered by creation time from oldest to newest.
|
|
360
|
+
*/
|
|
361
|
+
readonly notes: List<any>;
|
|
362
|
+
/**
|
|
363
|
+
* Returns the payment instrument of the line item container or null. This method is deprecated. You should use
|
|
364
|
+
* getPaymentInstruments() or getGiftCertificatePaymentInstruments() instead.
|
|
365
|
+
* @deprecated Use getPaymentInstruments or getGiftCertificatePaymentInstruments to get the
|
|
366
|
+
* set of payment instruments.
|
|
367
|
+
*/
|
|
368
|
+
readonly paymentInstrument: OrderPaymentInstrument | null;
|
|
369
|
+
/**
|
|
370
|
+
* Returns an unsorted collection of the payment instruments in this container.
|
|
371
|
+
*/
|
|
372
|
+
readonly paymentInstruments: Collection<PaymentInstrument<any>>;
|
|
373
|
+
/**
|
|
374
|
+
* Returns the collection of price adjustments that have been applied to the totals such as promotion on the
|
|
375
|
+
* purchase value (i.e. $10 Off or 10% Off). The price adjustments are sorted by the order in which they were
|
|
376
|
+
* applied to the order by the promotions engine.
|
|
377
|
+
*/
|
|
378
|
+
readonly priceAdjustments: Collection<PriceAdjustment>;
|
|
379
|
+
/**
|
|
380
|
+
* Returns the product line items of the container that are not dependent on other product line items. This includes
|
|
381
|
+
* line items representing bonus products in the container but excludes option, bundled, and bonus line items. The
|
|
382
|
+
* returned collection is sorted by the position attribute of the product line items.
|
|
383
|
+
*/
|
|
384
|
+
readonly productLineItems: Collection<ProductLineItem>;
|
|
385
|
+
/**
|
|
386
|
+
* Returns a hash map of all products in the line item container and their total quantities. The total product
|
|
387
|
+
* quantity is for example used to lookup the product price.
|
|
388
|
+
*
|
|
389
|
+
* The method counts all direct product line items, plus dependent product line items that are not bundled line
|
|
390
|
+
* items and no option line items. It also excludes product line items that are not associated to any catalog
|
|
391
|
+
* product, and bonus product line items.
|
|
392
|
+
* @see getProductQuantities
|
|
393
|
+
*/
|
|
394
|
+
readonly productQuantities: HashMap<any, any>;
|
|
395
|
+
/**
|
|
396
|
+
* Returns the total quantity of all product line items. Not included are bundled line items and option line items.
|
|
397
|
+
*/
|
|
398
|
+
readonly productQuantityTotal: number;
|
|
399
|
+
/**
|
|
400
|
+
* Returns all shipments of the line item container.
|
|
401
|
+
*
|
|
402
|
+
* The first shipment in the returned collection is the default shipment (shipment ID always set to "me"). All other
|
|
403
|
+
* shipments are sorted ascending by shipment ID.
|
|
404
|
+
*/
|
|
405
|
+
readonly shipments: Collection<Shipment>;
|
|
406
|
+
/**
|
|
407
|
+
* Returns the of shipping price adjustments applied to the shipping total of the container. Note that the
|
|
408
|
+
* promotions engine only applies shipping price adjustments to the the default shipping line item of shipments, and
|
|
409
|
+
* never to the container.
|
|
410
|
+
* @see getAllShippingPriceAdjustments
|
|
411
|
+
*/
|
|
412
|
+
readonly shippingPriceAdjustments: Collection<PriceAdjustment>;
|
|
413
|
+
/**
|
|
414
|
+
* Returns the sum of all shipping line items of the line item container, including tax before shipping adjustments
|
|
415
|
+
* have been applied.
|
|
416
|
+
*/
|
|
417
|
+
readonly shippingTotalGrossPrice: Money;
|
|
418
|
+
/**
|
|
419
|
+
* Returns the sum of all shipping line items of the line item container, excluding tax before shipping adjustments
|
|
420
|
+
* have been applied.
|
|
421
|
+
*/
|
|
422
|
+
readonly shippingTotalNetPrice: Money;
|
|
423
|
+
/**
|
|
424
|
+
* Returns the shipping total price. If the line item container is based on net pricing the shipping total net price
|
|
425
|
+
* is returned. If the line item container is based on gross pricing the shipping total gross price is returned.
|
|
426
|
+
*/
|
|
427
|
+
readonly shippingTotalPrice: Money;
|
|
428
|
+
/**
|
|
429
|
+
* Returns the tax of all shipping line items of the line item container before shipping adjustments have been
|
|
430
|
+
* applied.
|
|
431
|
+
*/
|
|
432
|
+
readonly shippingTotalTax: Money;
|
|
433
|
+
/**
|
|
434
|
+
* Use this method to check if the LineItemCtnr was calculated with grouped taxation calculation.
|
|
435
|
+
*
|
|
436
|
+
* If the tax is rounded on group level, the tax is applied to the summed-up tax basis for each tax rate.
|
|
437
|
+
*/
|
|
438
|
+
readonly taxRoundedAtGroup: boolean;
|
|
439
|
+
/**
|
|
440
|
+
* This method returns a dw.util.SortedMap in which the keys are dw.util.Decimal tax rates and the values
|
|
441
|
+
* are dw.value.Money total tax for the tax rate. The map is unmodifiable.
|
|
442
|
+
*/
|
|
443
|
+
readonly taxTotalsPerTaxRate: SortedMap<any, any>;
|
|
444
|
+
/**
|
|
445
|
+
* Returns the grand total price gross of tax for LineItemCtnr, in purchase currency. Total prices represent the sum
|
|
446
|
+
* of product prices, services prices and adjustments.
|
|
447
|
+
*/
|
|
448
|
+
readonly totalGrossPrice: Money;
|
|
449
|
+
/**
|
|
450
|
+
* Returns the grand total price for LineItemCtnr net of tax, in purchase currency. Total prices represent the sum
|
|
451
|
+
* of product prices, services prices and adjustments.
|
|
452
|
+
*/
|
|
453
|
+
readonly totalNetPrice: Money;
|
|
454
|
+
/**
|
|
455
|
+
* Returns the grand total tax for LineItemCtnr, in purchase currency. Total prices represent the sum of product
|
|
456
|
+
* prices, services prices and adjustments.
|
|
457
|
+
*/
|
|
458
|
+
readonly totalTax: Money;
|
|
459
|
+
/**
|
|
460
|
+
* Adds a note to the object.
|
|
461
|
+
*/
|
|
462
|
+
addNote(subject: string, text: string): Note;
|
|
463
|
+
/**
|
|
464
|
+
* Create a billing address for the LineItemCtnr. A LineItemCtnr (e.g. basket) initially has no billing address.
|
|
465
|
+
* This method creates a billing address for the LineItemCtnr and replaces an existing billing address.
|
|
466
|
+
*/
|
|
467
|
+
createBillingAddress(): OrderAddress;
|
|
468
|
+
/**
|
|
469
|
+
* Creates a product line item in the container based on the passed Product and BonusDiscountLineItem. The product
|
|
470
|
+
* must be assigned to the current site catalog and must also be a bonus product of the specified
|
|
471
|
+
* BonusDiscountLineItem or an exception is thrown. The line item is always created in the default shipment. If
|
|
472
|
+
* successful, the operation always creates a new ProductLineItem and never simply increments the quantity of an
|
|
473
|
+
* existing ProductLineItem. An option model can optionally be specified.
|
|
474
|
+
*/
|
|
475
|
+
createBonusProductLineItem(bonusDiscountLineItem: BonusDiscountLineItem, product: Product<any>, optionModel: ProductOptionModel | null, shipment: Shipment): ProductLineItem;
|
|
476
|
+
/**
|
|
477
|
+
* Creates a new CouponLineItem for this container based on the supplied coupon code.
|
|
478
|
+
*
|
|
479
|
+
* The created coupon line item is based on the B2C Commerce campaign system if campaignBased parameter is true. In
|
|
480
|
+
* that case, if the supplied coupon code is not valid, APIException with type 'CreateCouponLineItemException' is
|
|
481
|
+
* thrown.
|
|
482
|
+
*
|
|
483
|
+
* If you want to create a custom coupon line item, you must call this method with campaignBased = false or to use
|
|
484
|
+
* createCouponLineItem.
|
|
485
|
+
*
|
|
486
|
+
* Example:
|
|
487
|
+
*
|
|
488
|
+
* ```
|
|
489
|
+
* try {
|
|
490
|
+
* var cli : CouponLineItem = basket.createCouponLineItem(couponCode, true);
|
|
491
|
+
* } catch (e if e instanceof APIException && e.type === 'CreateCouponLineItemException')
|
|
492
|
+
* if (e.errorCode == CouponStatusCodes.COUPON_CODE_ALREADY_IN_BASKET) {
|
|
493
|
+
* ...
|
|
494
|
+
* }
|
|
495
|
+
* }
|
|
496
|
+
* ```
|
|
497
|
+
*
|
|
498
|
+
* An dw.order.CreateCouponLineItemException is thrown in case of campaignBased = true only. Indicates that the
|
|
499
|
+
* provided coupon code is not a valid coupon code to create a coupon line item based on the B2C Commerce campaign
|
|
500
|
+
* system. The error code property (CreateCouponLineItemException.errorCode) will be set to one of the following
|
|
501
|
+
* values:
|
|
502
|
+
*
|
|
503
|
+
* - dw.campaign.CouponStatusCodes.COUPON_CODE_ALREADY_IN_BASKET = Indicates that coupon code has already
|
|
504
|
+
* been added to basket.
|
|
505
|
+
* - dw.campaign.CouponStatusCodes.COUPON_ALREADY_IN_BASKET = Indicates that another code of the same
|
|
506
|
+
* MultiCode/System coupon has already been added to basket.
|
|
507
|
+
* - dw.campaign.CouponStatusCodes.COUPON_CODE_ALREADY_REDEEMED = Indicates that code of MultiCode/System
|
|
508
|
+
* coupon has already been redeemed.
|
|
509
|
+
* - dw.campaign.CouponStatusCodes.COUPON_CODE_UNKNOWN = Indicates that coupon not found for given coupon
|
|
510
|
+
* code or that the code itself was not found.
|
|
511
|
+
* - dw.campaign.CouponStatusCodes.COUPON_DISABLED = Indicates that coupon is not enabled.
|
|
512
|
+
* - dw.campaign.CouponStatusCodes.REDEMPTION_LIMIT_EXCEEDED = Indicates that number of redemptions per
|
|
513
|
+
* code exceeded.
|
|
514
|
+
* - dw.campaign.CouponStatusCodes.CUSTOMER_REDEMPTION_LIMIT_EXCEEDED = Indicates that number of
|
|
515
|
+
* redemptions per code and customer exceeded.
|
|
516
|
+
* - dw.campaign.CouponStatusCodes.TIMEFRAME_REDEMPTION_LIMIT_EXCEEDED = Indicates that number of
|
|
517
|
+
* redemptions per code, customer and time exceeded.
|
|
518
|
+
* - dw.campaign.CouponStatusCodes.NO_ACTIVE_PROMOTION = Indicates that coupon is not assigned to an
|
|
519
|
+
* active promotion.
|
|
520
|
+
*/
|
|
521
|
+
createCouponLineItem(couponCode: string, campaignBased: boolean): CouponLineItem;
|
|
522
|
+
/**
|
|
523
|
+
* Creates a coupon line item that is not based on the B2C Commerce campaign system and associates it with the
|
|
524
|
+
* specified coupon code.
|
|
525
|
+
*
|
|
526
|
+
* There may not be any other coupon line item in the container with the specific coupon code, otherwise an
|
|
527
|
+
* exception is thrown.
|
|
528
|
+
*
|
|
529
|
+
* If you want to create a coupon line item based on the B2C Commerce campaign system, you must use
|
|
530
|
+
* createCouponLineItem with campaignBased = true.
|
|
531
|
+
*/
|
|
532
|
+
createCouponLineItem(couponCode: string): CouponLineItem;
|
|
533
|
+
/**
|
|
534
|
+
* Creates a gift certificate line item.
|
|
535
|
+
*/
|
|
536
|
+
createGiftCertificateLineItem(amount: number, recipientEmail: string): GiftCertificateLineItem;
|
|
537
|
+
/**
|
|
538
|
+
* Creates an OrderPaymentInstrument representing a Gift Certificate. The amount is set on a PaymentTransaction that
|
|
539
|
+
* is accessible via the OrderPaymentInstrument. By default, the status of the PaymentTransaction is set to CREATE.
|
|
540
|
+
* The PaymentTransaction must be processed at a later time.
|
|
541
|
+
*/
|
|
542
|
+
createGiftCertificatePaymentInstrument(giftCertificateCode: string, amount: Money): OrderPaymentInstrument;
|
|
543
|
+
/**
|
|
544
|
+
* Creates a payment instrument using the specified payment method id and amount. The amount is set on the
|
|
545
|
+
* PaymentTransaction that is attached to the payment instrument.
|
|
546
|
+
*/
|
|
547
|
+
createPaymentInstrument(paymentMethodId: string, amount: Money | null): OrderPaymentInstrument;
|
|
548
|
+
/**
|
|
549
|
+
* Creates a payment instrument using the specified wallet payment instrument and amount. The amount is set on the
|
|
550
|
+
* PaymentTransaction that is attached to the payment instrument. All data from the wallet payment
|
|
551
|
+
* instrument will be copied over to the created payment instrument.
|
|
552
|
+
*/
|
|
553
|
+
createPaymentInstrumentFromWallet(walletPaymentInstrument: CustomerPaymentInstrument, amount: Money | null): OrderPaymentInstrument;
|
|
554
|
+
/**
|
|
555
|
+
* Creates an order price adjustment.
|
|
556
|
+
*
|
|
557
|
+
* The promotion id is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise
|
|
558
|
+
* an exception is thrown.
|
|
559
|
+
*/
|
|
560
|
+
createPriceAdjustment(promotionID: string): PriceAdjustment;
|
|
561
|
+
/**
|
|
562
|
+
* Creates an order level price adjustment for a specific discount.
|
|
563
|
+
*
|
|
564
|
+
* The promotion id is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise
|
|
565
|
+
* an exception is thrown.
|
|
566
|
+
*
|
|
567
|
+
* The possible discount types are supported: dw.campaign.PercentageDiscount and
|
|
568
|
+
* dw.campaign.AmountDiscount.
|
|
569
|
+
*
|
|
570
|
+
* Examples:
|
|
571
|
+
*
|
|
572
|
+
* `
|
|
573
|
+
* var myOrder : dw.order.Order; // assume known
|
|
574
|
+
*
|
|
575
|
+
* var paTenPercent : dw.order.PriceAdjustment = myOrder.createPriceAdjustment("myPromotionID1", new dw.campaign.PercentageDiscount(10));
|
|
576
|
+
*
|
|
577
|
+
* var paReduceBy20 : dw.order.PriceAdjustment = myOrder.createPriceAdjustment("myPromotionID2", new dw.campaign.AmountDiscount(20);
|
|
578
|
+
*
|
|
579
|
+
* `
|
|
580
|
+
*/
|
|
581
|
+
createPriceAdjustment(promotionID: string, discount: Discount): PriceAdjustment;
|
|
582
|
+
/**
|
|
583
|
+
* Creates a new product line item in the container and assigns it to the specified shipment.
|
|
584
|
+
*
|
|
585
|
+
* If the specified productID represents a product in the site catalog, the method will associate the product line
|
|
586
|
+
* item with that catalog product and will copy all order-relevant information, like the quantity unit, from the
|
|
587
|
+
* catalog product.
|
|
588
|
+
*
|
|
589
|
+
* If the specified productID does not represent a product of the site catalog, the method creates a new product
|
|
590
|
+
* line item and initializes it with the specified product ID and quantity. If the passed in quantity value is not a
|
|
591
|
+
* positive integer, it will be rounded to the nearest positive integer. The minimum order quantity and step
|
|
592
|
+
* quantity will be set to 1.0.
|
|
593
|
+
*
|
|
594
|
+
* For catalog products, the method follows the configured 'Add2Basket' strategy to either increment the quantity of
|
|
595
|
+
* an existing product line item or create a new product line item for the same product. For non-catalog products,
|
|
596
|
+
* the method creates a new product line item no matter if the same product is already in the line item container.
|
|
597
|
+
* If a negative quantity is specified, it is automatically changed to 1.0.
|
|
598
|
+
* @deprecated Use createProductLineItem or
|
|
599
|
+
* dw.order.ProductLineItem.updateQuantity instead.
|
|
600
|
+
*/
|
|
601
|
+
createProductLineItem(productID: string, quantity: Quantity, shipment: Shipment): ProductLineItem;
|
|
602
|
+
/**
|
|
603
|
+
* Creates a new product line item in the container and assigns it to the specified shipment.
|
|
604
|
+
*
|
|
605
|
+
* If the specified productID represents a product in the site catalog, the method will associate the product line
|
|
606
|
+
* item with that catalog product and will copy all order-relevant information, like the quantity unit, from the
|
|
607
|
+
* catalog product. The quantity of the product line item is initialized with 1.0 or - if defined - the minimum
|
|
608
|
+
* order quantity of the product.
|
|
609
|
+
*
|
|
610
|
+
* If the product represents a product in the site catalog and is an option product, the product is added with it's
|
|
611
|
+
* default option values.
|
|
612
|
+
*
|
|
613
|
+
* If the specified productID does not represent a product of the site catalog, the method creates a new product
|
|
614
|
+
* line item and initializes it with the specified product ID and with a quantity, minimum order quantity, and step
|
|
615
|
+
* quantity value of 1.0.
|
|
616
|
+
*
|
|
617
|
+
* If the provided SKU references a product that is not available as described in method dw.order.ProductLineItem.isCatalogProduct, the new product line item is considered a non-catalog product line item without a connection to a product. Such product line items are not included in reservation requests in either OCI-based inventory or eCom-based inventory when calling dw.order.Basket.reserveInventory or dw.order.OrderMgr.createOrder.
|
|
618
|
+
*/
|
|
619
|
+
createProductLineItem(productID: string, shipment: Shipment): ProductLineItem;
|
|
620
|
+
/**
|
|
621
|
+
* Creates a new product line item in the basket and assigns it to the specified shipment.
|
|
622
|
+
*
|
|
623
|
+
* If the product list item references a product in the site catalog, the method will associate the product line
|
|
624
|
+
* item with that catalog product and will copy all order-relevant information, like the quantity unit, from the
|
|
625
|
+
* catalog product. The quantity of the product line item is initialized with 1.0 or - if defined - the minimum
|
|
626
|
+
* order quantity of the product.
|
|
627
|
+
*
|
|
628
|
+
* If the product list item references an option product, the option values are copied from the product list item.
|
|
629
|
+
*
|
|
630
|
+
* If the product list item is associated with an existing product line item, and the BasketAddProductBehaviour
|
|
631
|
+
* setting is MergeQuantities, then the product line item quantity is increased by 1.0 or, if defined, the minimum
|
|
632
|
+
* order quantity of the product.
|
|
633
|
+
*
|
|
634
|
+
* An exception is thrown if
|
|
635
|
+
*
|
|
636
|
+
* - the line item container is no basket.
|
|
637
|
+
* - the type of the product list item is not PRODUCT.
|
|
638
|
+
* - the product list item references a product which is not assigned to the site catalog.
|
|
639
|
+
*/
|
|
640
|
+
createProductLineItem(productListItem: ProductListItem, shipment: Shipment): ProductLineItem;
|
|
641
|
+
/**
|
|
642
|
+
* Creates a new product line item in the container and assigns it to the specified shipment. An option model can be
|
|
643
|
+
* specified.
|
|
644
|
+
*
|
|
645
|
+
* Please note that the product must be assigned to the current site catalog.
|
|
646
|
+
*/
|
|
647
|
+
createProductLineItem(product: Product<any>, optionModel: ProductOptionModel | null, shipment: Shipment): ProductLineItem;
|
|
648
|
+
/**
|
|
649
|
+
* Creates a standard shipment for the line item container. The specified ID must not yet be in use for another
|
|
650
|
+
* shipment of this line item container.
|
|
651
|
+
*/
|
|
652
|
+
createShipment(id: string): Shipment;
|
|
653
|
+
/**
|
|
654
|
+
* Creates a shipping price adjustment to be applied to the container.
|
|
655
|
+
*
|
|
656
|
+
* The promotion ID is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise
|
|
657
|
+
* the method will throw an exception.
|
|
658
|
+
*
|
|
659
|
+
* If there already exists a shipping price adjustment referring to the specified promotion ID, an exception is
|
|
660
|
+
* thrown.
|
|
661
|
+
*/
|
|
662
|
+
createShippingPriceAdjustment(promotionID: string): PriceAdjustment;
|
|
663
|
+
/**
|
|
664
|
+
* Returns the adjusted total gross price (including tax) in purchase currency. Adjusted merchandize prices
|
|
665
|
+
* represent the sum of product prices before services such as shipping, but after product-level and order-level
|
|
666
|
+
* adjustments.
|
|
667
|
+
*/
|
|
668
|
+
getAdjustedMerchandizeTotalGrossPrice(): Money;
|
|
669
|
+
/**
|
|
670
|
+
* Returns the total net price (excluding tax) in purchase currency. Adjusted merchandize prices represent the sum
|
|
671
|
+
* of product prices before services such as shipping, but after product-level and order-level adjustments.
|
|
672
|
+
*/
|
|
673
|
+
getAdjustedMerchandizeTotalNetPrice(): Money;
|
|
674
|
+
/**
|
|
675
|
+
* Returns the adjusted merchandize total price including product-level and order-level adjustments. If the line
|
|
676
|
+
* item container is based on net pricing the adjusted merchandize total net price is returned. If the line item
|
|
677
|
+
* container is based on gross pricing the adjusted merchandize total gross price is returned.
|
|
678
|
+
*/
|
|
679
|
+
getAdjustedMerchandizeTotalPrice(): Money;
|
|
680
|
+
/**
|
|
681
|
+
* Returns the adjusted merchandize total price including order-level adjustments if requested. If the line item
|
|
682
|
+
* container is based on net pricing the adjusted merchandize total net price is returned. If the line item
|
|
683
|
+
* container is based on gross pricing the adjusted merchandize total gross price is returned.
|
|
684
|
+
*/
|
|
685
|
+
getAdjustedMerchandizeTotalPrice(applyOrderLevelAdjustments: boolean): Money;
|
|
686
|
+
/**
|
|
687
|
+
* Returns the subtotal tax in purchase currency. Adjusted merchandize prices represent the sum of product prices
|
|
688
|
+
* before services such as shipping have been added, but after adjustment from promotions have been added.
|
|
689
|
+
*/
|
|
690
|
+
getAdjustedMerchandizeTotalTax(): Money;
|
|
691
|
+
/**
|
|
692
|
+
* Returns the adjusted sum of all shipping line items of the line item container, including tax after shipping
|
|
693
|
+
* adjustments have been applied.
|
|
694
|
+
*/
|
|
695
|
+
getAdjustedShippingTotalGrossPrice(): Money;
|
|
696
|
+
/**
|
|
697
|
+
* Returns the sum of all shipping line items of the line item container, excluding tax after shipping adjustments
|
|
698
|
+
* have been applied.
|
|
699
|
+
*/
|
|
700
|
+
getAdjustedShippingTotalNetPrice(): Money;
|
|
701
|
+
/**
|
|
702
|
+
* Returns the adjusted shipping total price. If the line item container is based on net pricing the adjusted
|
|
703
|
+
* shipping total net price is returned. If the line item container is based on gross pricing the adjusted shipping
|
|
704
|
+
* total gross price is returned.
|
|
705
|
+
*/
|
|
706
|
+
getAdjustedShippingTotalPrice(): Money;
|
|
707
|
+
/**
|
|
708
|
+
* Returns the tax of all shipping line items of the line item container after shipping adjustments have been
|
|
709
|
+
* applied.
|
|
710
|
+
*/
|
|
711
|
+
getAdjustedShippingTotalTax(): Money;
|
|
712
|
+
/**
|
|
713
|
+
* Returns all gift certificate line items of the container.
|
|
714
|
+
* @deprecated Use getGiftCertificateLineItems to get the collection instead.
|
|
715
|
+
*/
|
|
716
|
+
getAllGiftCertificateLineItems(): Collection<GiftCertificateLineItem>;
|
|
717
|
+
/**
|
|
718
|
+
* Returns all product, shipping, price adjustment, and gift certificate line items of the line item container.
|
|
719
|
+
*/
|
|
720
|
+
getAllLineItems(): Collection<LineItem<any>>;
|
|
721
|
+
/**
|
|
722
|
+
* Returns all product line items of the container, no matter if they are dependent or independent. This includes
|
|
723
|
+
* option, bundled and bonus line items.
|
|
724
|
+
*/
|
|
725
|
+
getAllProductLineItems(): Collection<ProductLineItem>;
|
|
726
|
+
/**
|
|
727
|
+
* Returns all product line items of the container that have a product ID equal to the specified product ID, no
|
|
728
|
+
* matter if they are dependent or independent. This includes option, bundled and bonus line items.
|
|
729
|
+
*/
|
|
730
|
+
getAllProductLineItems(productID: string): Collection<ProductLineItem>;
|
|
731
|
+
/**
|
|
732
|
+
* Returns a hash mapping all products in the line item container to their total quantities. The total product
|
|
733
|
+
* quantity is used chiefly to validate the availability of the items in the cart. This method is not appropriate to
|
|
734
|
+
* look up prices because it returns products such as bundled line items which are included in the price of their
|
|
735
|
+
* parent and therefore have no corresponding price.
|
|
736
|
+
*
|
|
737
|
+
* The method counts all direct product line items, plus dependent product line items that are not option line
|
|
738
|
+
* items. It also excludes product line items that are not associated to any catalog product.
|
|
739
|
+
*/
|
|
740
|
+
getAllProductQuantities(): HashMap<any, any>;
|
|
741
|
+
/**
|
|
742
|
+
* Returns the collection of all shipping price adjustments applied somewhere in the container. This can be
|
|
743
|
+
* adjustments applied to individual shipments or to the container itself. Note that the promotions engine only
|
|
744
|
+
* applies shipping price adjustments to the the default shipping line item of shipments, and never to the
|
|
745
|
+
* container.
|
|
746
|
+
* @see getShippingPriceAdjustments
|
|
747
|
+
*/
|
|
748
|
+
getAllShippingPriceAdjustments(): Collection<PriceAdjustment>;
|
|
749
|
+
/**
|
|
750
|
+
* Returns the billing address defined for the container. Returns null if no billing address has been created yet.
|
|
751
|
+
*/
|
|
752
|
+
getBillingAddress(): OrderAddress | null;
|
|
753
|
+
/**
|
|
754
|
+
* Returns an unsorted collection of the the bonus discount line items associated with this container.
|
|
755
|
+
*/
|
|
756
|
+
getBonusDiscountLineItems(): Collection<BonusDiscountLineItem>;
|
|
757
|
+
/**
|
|
758
|
+
* Returns the collection of product line items that are bonus items (where
|
|
759
|
+
* dw.order.ProductLineItem.isBonusProductLineItem is true).
|
|
760
|
+
*/
|
|
761
|
+
getBonusLineItems(): Collection<Product<any>>;
|
|
762
|
+
/**
|
|
763
|
+
* Returns the type of the business this order has been placed in.
|
|
764
|
+
*
|
|
765
|
+
* Possible values are BUSINESS_TYPE_B2C or BUSINESS_TYPE_B2B.
|
|
766
|
+
*/
|
|
767
|
+
getBusinessType(): EnumValue | null;
|
|
768
|
+
/**
|
|
769
|
+
* The channel type defines in which sales channel this order has been created. This can be used to distinguish
|
|
770
|
+
* order placed through Storefront, Call Center or Marketplace.
|
|
771
|
+
*
|
|
772
|
+
* Possible values are CHANNEL_TYPE_STOREFRONT, CHANNEL_TYPE_CALLCENTER,
|
|
773
|
+
* CHANNEL_TYPE_MARKETPLACE, CHANNEL_TYPE_DSS, CHANNEL_TYPE_STORE,
|
|
774
|
+
* CHANNEL_TYPE_PINTEREST, CHANNEL_TYPE_TWITTER, CHANNEL_TYPE_FACEBOOKADS,
|
|
775
|
+
* CHANNEL_TYPE_SUBSCRIPTIONS, CHANNEL_TYPE_ONLINERESERVATION,
|
|
776
|
+
* CHANNEL_TYPE_CUSTOMERSERVICECENTER, CHANNEL_TYPE_INSTAGRAMCOMMERCE,
|
|
777
|
+
* CHANNEL_TYPE_GOOGLE, CHANNEL_TYPE_YOUTUBE, CHANNEL_TYPE_TIKTOK,
|
|
778
|
+
* CHANNEL_TYPE_SNAPCHAT, CHANNEL_TYPE_WHATSAPP, CHANNEL_TYPE_CHATGPT,
|
|
779
|
+
* CHANNEL_TYPE_GEMINI
|
|
780
|
+
*/
|
|
781
|
+
getChannelType(): EnumValue | null;
|
|
782
|
+
/**
|
|
783
|
+
* Returns the coupon line item representing the specified coupon code.
|
|
784
|
+
*/
|
|
785
|
+
getCouponLineItem(couponCode: string): CouponLineItem | null;
|
|
786
|
+
/**
|
|
787
|
+
* Returns a sorted collection of the coupon line items in the container. The coupon line items are returned in the
|
|
788
|
+
* order they were added to container.
|
|
789
|
+
*/
|
|
790
|
+
getCouponLineItems(): Collection<CouponLineItem>;
|
|
791
|
+
/**
|
|
792
|
+
* Returns the currency code for this line item container. The currency code is a 3-character currency mnemonic such
|
|
793
|
+
* as 'USD' or 'EUR'. The currency code represents the currency in which the calculation is made, and in which the
|
|
794
|
+
* buyer sees all prices in the store front.
|
|
795
|
+
*/
|
|
796
|
+
getCurrencyCode(): string;
|
|
797
|
+
/**
|
|
798
|
+
* Returns the customer associated with this container.
|
|
799
|
+
*/
|
|
800
|
+
getCustomer(): Customer;
|
|
801
|
+
/**
|
|
802
|
+
* Returns the email of the customer associated with this container.
|
|
803
|
+
*/
|
|
804
|
+
getCustomerEmail(): string;
|
|
805
|
+
/**
|
|
806
|
+
* Returns the name of the customer associated with this container.
|
|
807
|
+
*/
|
|
808
|
+
getCustomerName(): string;
|
|
809
|
+
/**
|
|
810
|
+
* Returns the customer number of the customer associated with this container.
|
|
811
|
+
*/
|
|
812
|
+
getCustomerNo(): string;
|
|
813
|
+
/**
|
|
814
|
+
* Returns the default shipment of the line item container. Baskets always have a default shipment with ID "me".
|
|
815
|
+
* For orders, this can differ, for example: dw.order.OrderMgr.createOrder removes empty
|
|
816
|
+
* shipments, so if the basket's "me" shipment was empty at order creation, the order has no "me" shipment. In
|
|
817
|
+
* that case, the shipment with the lowest ID is returned as the fallback, or `null` if the order has
|
|
818
|
+
* no shipments. See dw.order.Shipment.isDefault for the matching logic.
|
|
819
|
+
*
|
|
820
|
+
* Processes that access a shipment use the default shipment when none is specified. The default shipment can't be
|
|
821
|
+
* removed. Calling removeShipment on it throws an exception.
|
|
822
|
+
*/
|
|
823
|
+
getDefaultShipment(): Shipment | null;
|
|
824
|
+
/**
|
|
825
|
+
* Returns the Etag of the line item container. The Etag is a hash that represents the overall container state
|
|
826
|
+
* including any associated objects like line items.
|
|
827
|
+
*/
|
|
828
|
+
getEtag(): string;
|
|
829
|
+
/**
|
|
830
|
+
* Returns all gift certificate line items of the container.
|
|
831
|
+
*/
|
|
832
|
+
getGiftCertificateLineItems(): Collection<GiftCertificateLineItem>;
|
|
833
|
+
/**
|
|
834
|
+
* Returns all gift certificate line items of the container, no matter if they are dependent or independent.
|
|
835
|
+
*/
|
|
836
|
+
getGiftCertificateLineItems(giftCertificateId: string): Collection<GiftCertificateLineItem>;
|
|
837
|
+
/**
|
|
838
|
+
* Returns an unsorted collection of the PaymentInstrument instances that represent GiftCertificates in this
|
|
839
|
+
* container.
|
|
840
|
+
*/
|
|
841
|
+
getGiftCertificatePaymentInstruments(): Collection<OrderPaymentInstrument>;
|
|
842
|
+
/**
|
|
843
|
+
* Returns an unsorted collection containing all PaymentInstruments of type
|
|
844
|
+
* PaymentInstrument.METHOD_GIFT_CERTIFICATE where the specified code is the same code on the payment instrument.
|
|
845
|
+
*/
|
|
846
|
+
getGiftCertificatePaymentInstruments(giftCertificateCode: string): Collection<OrderPaymentInstrument>;
|
|
847
|
+
/**
|
|
848
|
+
* Returns the total gross price of all gift certificates in the cart. Should usually be equal to total net price.
|
|
849
|
+
*/
|
|
850
|
+
getGiftCertificateTotalGrossPrice(): Money;
|
|
851
|
+
/**
|
|
852
|
+
* Returns the total net price (excluding tax) of all gift certificates in the cart. Should usually be equal to
|
|
853
|
+
* total gross price.
|
|
854
|
+
*/
|
|
855
|
+
getGiftCertificateTotalNetPrice(): Money;
|
|
856
|
+
/**
|
|
857
|
+
* Returns the gift certificate total price. If the line item container is based on net pricing the gift certificate
|
|
858
|
+
* total net price is returned. If the line item container is based on gross pricing the gift certificate total
|
|
859
|
+
* gross price is returned.
|
|
860
|
+
*/
|
|
861
|
+
getGiftCertificateTotalPrice(): Money;
|
|
862
|
+
/**
|
|
863
|
+
* Returns the total tax of all gift certificates in the cart. Should usually be 0.0.
|
|
864
|
+
*/
|
|
865
|
+
getGiftCertificateTotalTax(): Money;
|
|
866
|
+
/**
|
|
867
|
+
* Returns the total gross price (including tax) in purchase currency. Merchandize total prices represent the sum of
|
|
868
|
+
* product prices before services such as shipping or adjustment from promotions have been added.
|
|
869
|
+
*/
|
|
870
|
+
getMerchandizeTotalGrossPrice(): Money;
|
|
871
|
+
/**
|
|
872
|
+
* Returns the total net price (excluding tax) in purchase currency. Merchandize total prices represent the sum of
|
|
873
|
+
* product prices before services such as shipping or adjustment from promotion have been added.
|
|
874
|
+
*/
|
|
875
|
+
getMerchandizeTotalNetPrice(): Money;
|
|
876
|
+
/**
|
|
877
|
+
* Returns the merchandize total price. If the line item container is based on net pricing the merchandize total net
|
|
878
|
+
* price is returned. If the line item container is based on gross pricing the merchandize total gross price is
|
|
879
|
+
* returned.
|
|
880
|
+
*/
|
|
881
|
+
getMerchandizeTotalPrice(): Money;
|
|
882
|
+
/**
|
|
883
|
+
* Returns the total tax in purchase currency. Merchandize total prices represent the sum of product prices before
|
|
884
|
+
* services such as shipping or adjustment from promotions have been added.
|
|
885
|
+
*/
|
|
886
|
+
getMerchandizeTotalTax(): Money;
|
|
887
|
+
/**
|
|
888
|
+
* Returns the list of notes for this object, ordered by creation time from oldest to newest.
|
|
889
|
+
*/
|
|
890
|
+
getNotes(): List<any>;
|
|
891
|
+
/**
|
|
892
|
+
* Returns the payment instrument of the line item container or null. This method is deprecated. You should use
|
|
893
|
+
* getPaymentInstruments() or getGiftCertificatePaymentInstruments() instead.
|
|
894
|
+
* @deprecated Use getPaymentInstruments or getGiftCertificatePaymentInstruments to get the
|
|
895
|
+
* set of payment instruments.
|
|
896
|
+
*/
|
|
897
|
+
getPaymentInstrument(): OrderPaymentInstrument | null;
|
|
898
|
+
/**
|
|
899
|
+
* Returns an unsorted collection of the payment instruments in this container.
|
|
900
|
+
*/
|
|
901
|
+
getPaymentInstruments(): Collection<PaymentInstrument<any>>;
|
|
902
|
+
/**
|
|
903
|
+
* Returns an unsorted collection of PaymentInstrument instances based on the specified payment method ID.
|
|
904
|
+
*/
|
|
905
|
+
getPaymentInstruments(paymentMethodID: string): Collection<PaymentInstrument<any>>;
|
|
906
|
+
/**
|
|
907
|
+
* Returns the price adjustment associated to the specified promotion ID.
|
|
908
|
+
*/
|
|
909
|
+
getPriceAdjustmentByPromotionID(promotionID: string): PriceAdjustment | null;
|
|
910
|
+
/**
|
|
911
|
+
* Returns the collection of price adjustments that have been applied to the totals such as promotion on the
|
|
912
|
+
* purchase value (i.e. $10 Off or 10% Off). The price adjustments are sorted by the order in which they were
|
|
913
|
+
* applied to the order by the promotions engine.
|
|
914
|
+
*/
|
|
915
|
+
getPriceAdjustments(): Collection<PriceAdjustment>;
|
|
916
|
+
/**
|
|
917
|
+
* Returns the product line items of the container that are not dependent on other product line items. This includes
|
|
918
|
+
* line items representing bonus products in the container but excludes option, bundled, and bonus line items. The
|
|
919
|
+
* returned collection is sorted by the position attribute of the product line items.
|
|
920
|
+
*/
|
|
921
|
+
getProductLineItems(): Collection<ProductLineItem>;
|
|
922
|
+
/**
|
|
923
|
+
* Returns the product line items of the container that have a product ID equal to the specified product ID and that
|
|
924
|
+
* are not dependent on other product line items. This includes line items representing bonus products in the
|
|
925
|
+
* container, but excludes option, bundled and bonus line items. The returned collection is sorted by the position
|
|
926
|
+
* attribute of the product line items.
|
|
927
|
+
*/
|
|
928
|
+
getProductLineItems(productID: string): Collection<ProductLineItem>;
|
|
929
|
+
/**
|
|
930
|
+
* Returns a hash map of all products in the line item container and their total quantities. The total product
|
|
931
|
+
* quantity is for example used to lookup the product price.
|
|
932
|
+
*
|
|
933
|
+
* The method counts all direct product line items, plus dependent product line items that are not bundled line
|
|
934
|
+
* items and no option line items. It also excludes product line items that are not associated to any catalog
|
|
935
|
+
* product, and bonus product line items.
|
|
936
|
+
* @see getProductQuantities
|
|
937
|
+
*/
|
|
938
|
+
getProductQuantities(): HashMap<any, any>;
|
|
939
|
+
/**
|
|
940
|
+
* Returns a hash map of all products in the line item container and their total quantities. The total product
|
|
941
|
+
* quantity is for example used to lookup the product price in the cart.
|
|
942
|
+
*
|
|
943
|
+
* The method counts all direct product line items, plus dependent product line items that are not bundled line
|
|
944
|
+
* items and no option line items. It also excludes product line items that are not associated to any catalog
|
|
945
|
+
* product.
|
|
946
|
+
*
|
|
947
|
+
* If the parameter 'includeBonusProducts' is set to true, the method also counts bonus product line items.
|
|
948
|
+
*/
|
|
949
|
+
getProductQuantities(includeBonusProducts: boolean): HashMap<any, any>;
|
|
950
|
+
/**
|
|
951
|
+
* Returns the total quantity of all product line items. Not included are bundled line items and option line items.
|
|
952
|
+
*/
|
|
953
|
+
getProductQuantityTotal(): number;
|
|
954
|
+
/**
|
|
955
|
+
* Returns the shipment for the specified ID or `null` if no shipment with this ID exists in the line
|
|
956
|
+
* item container. Using "me" always returns the default shipment.
|
|
957
|
+
*/
|
|
958
|
+
getShipment(id: string): Shipment | null;
|
|
959
|
+
/**
|
|
960
|
+
* Returns all shipments of the line item container.
|
|
961
|
+
*
|
|
962
|
+
* The first shipment in the returned collection is the default shipment (shipment ID always set to "me"). All other
|
|
963
|
+
* shipments are sorted ascending by shipment ID.
|
|
964
|
+
*/
|
|
965
|
+
getShipments(): Collection<Shipment>;
|
|
966
|
+
/**
|
|
967
|
+
* Returns the shipping price adjustment associated with the specified promotion ID.
|
|
968
|
+
*/
|
|
969
|
+
getShippingPriceAdjustmentByPromotionID(promotionID: string): PriceAdjustment | null;
|
|
970
|
+
/**
|
|
971
|
+
* Returns the of shipping price adjustments applied to the shipping total of the container. Note that the
|
|
972
|
+
* promotions engine only applies shipping price adjustments to the the default shipping line item of shipments, and
|
|
973
|
+
* never to the container.
|
|
974
|
+
* @see getAllShippingPriceAdjustments
|
|
975
|
+
*/
|
|
976
|
+
getShippingPriceAdjustments(): Collection<PriceAdjustment>;
|
|
977
|
+
/**
|
|
978
|
+
* Returns the sum of all shipping line items of the line item container, including tax before shipping adjustments
|
|
979
|
+
* have been applied.
|
|
980
|
+
*/
|
|
981
|
+
getShippingTotalGrossPrice(): Money;
|
|
982
|
+
/**
|
|
983
|
+
* Returns the sum of all shipping line items of the line item container, excluding tax before shipping adjustments
|
|
984
|
+
* have been applied.
|
|
985
|
+
*/
|
|
986
|
+
getShippingTotalNetPrice(): Money;
|
|
987
|
+
/**
|
|
988
|
+
* Returns the shipping total price. If the line item container is based on net pricing the shipping total net price
|
|
989
|
+
* is returned. If the line item container is based on gross pricing the shipping total gross price is returned.
|
|
990
|
+
*/
|
|
991
|
+
getShippingTotalPrice(): Money;
|
|
992
|
+
/**
|
|
993
|
+
* Returns the tax of all shipping line items of the line item container before shipping adjustments have been
|
|
994
|
+
* applied.
|
|
995
|
+
*/
|
|
996
|
+
getShippingTotalTax(): Money;
|
|
997
|
+
/**
|
|
998
|
+
* This method returns a dw.util.SortedMap in which the keys are dw.util.Decimal tax rates and the values
|
|
999
|
+
* are dw.value.Money total tax for the tax rate. The map is unmodifiable.
|
|
1000
|
+
*/
|
|
1001
|
+
getTaxTotalsPerTaxRate(): SortedMap<any, any>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Returns the grand total price gross of tax for LineItemCtnr, in purchase currency. Total prices represent the sum
|
|
1004
|
+
* of product prices, services prices and adjustments.
|
|
1005
|
+
*/
|
|
1006
|
+
getTotalGrossPrice(): Money;
|
|
1007
|
+
/**
|
|
1008
|
+
* Returns the grand total price for LineItemCtnr net of tax, in purchase currency. Total prices represent the sum
|
|
1009
|
+
* of product prices, services prices and adjustments.
|
|
1010
|
+
*/
|
|
1011
|
+
getTotalNetPrice(): Money;
|
|
1012
|
+
/**
|
|
1013
|
+
* Returns the grand total tax for LineItemCtnr, in purchase currency. Total prices represent the sum of product
|
|
1014
|
+
* prices, services prices and adjustments.
|
|
1015
|
+
*/
|
|
1016
|
+
getTotalTax(): Money;
|
|
1017
|
+
/**
|
|
1018
|
+
* Use this method to check whether the LineItemCtnr is calculated based on external tax tables.
|
|
1019
|
+
*
|
|
1020
|
+
* Note: a basket can only be created in EXTERNAL tax mode using SCAPI.
|
|
1021
|
+
*/
|
|
1022
|
+
isExternallyTaxed(): boolean;
|
|
1023
|
+
/**
|
|
1024
|
+
* Use this method to check if the LineItemCtnr was calculated with grouped taxation calculation.
|
|
1025
|
+
*
|
|
1026
|
+
* If the tax is rounded on group level, the tax is applied to the summed-up tax basis for each tax rate.
|
|
1027
|
+
*/
|
|
1028
|
+
isTaxRoundedAtGroup(): boolean;
|
|
1029
|
+
/**
|
|
1030
|
+
* Removes the all Payment Instruments from this container and deletes the Payment Instruments.
|
|
1031
|
+
*/
|
|
1032
|
+
removeAllPaymentInstruments(): void;
|
|
1033
|
+
/**
|
|
1034
|
+
* Removes the specified bonus discount line item from the line item container.
|
|
1035
|
+
*/
|
|
1036
|
+
removeBonusDiscountLineItem(bonusDiscountLineItem: BonusDiscountLineItem): void;
|
|
1037
|
+
/**
|
|
1038
|
+
* Removes the specified coupon line item from the line item container.
|
|
1039
|
+
*/
|
|
1040
|
+
removeCouponLineItem(couponLineItem: CouponLineItem): void;
|
|
1041
|
+
/**
|
|
1042
|
+
* Removes the specified gift certificate line item from the line item container.
|
|
1043
|
+
*/
|
|
1044
|
+
removeGiftCertificateLineItem(giftCertificateLineItem: GiftCertificateLineItem): void;
|
|
1045
|
+
/**
|
|
1046
|
+
* Removes a note from this line item container and deletes it.
|
|
1047
|
+
*/
|
|
1048
|
+
removeNote(note: Note): void;
|
|
1049
|
+
/**
|
|
1050
|
+
* Removes the specified Payment Instrument from this container and deletes the Payment Instrument.
|
|
1051
|
+
*/
|
|
1052
|
+
removePaymentInstrument(pi: PaymentInstrument<any>): void;
|
|
1053
|
+
/**
|
|
1054
|
+
* Removes the specified price adjustment line item from the line item container.
|
|
1055
|
+
*/
|
|
1056
|
+
removePriceAdjustment(priceAdjustment: PriceAdjustment): void;
|
|
1057
|
+
/**
|
|
1058
|
+
* Removes the specified product line item from the line item container.
|
|
1059
|
+
*/
|
|
1060
|
+
removeProductLineItem(productLineItem: ProductLineItem): void;
|
|
1061
|
+
/**
|
|
1062
|
+
* Removes the specified shipment and all associated product, gift certificate, shipping and price adjustment line
|
|
1063
|
+
* items from the line item container. It is not permissible to remove the default shipment.
|
|
1064
|
+
*/
|
|
1065
|
+
removeShipment(shipment: Shipment): void;
|
|
1066
|
+
/**
|
|
1067
|
+
* Removes the specified shipping price adjustment line item from the line item container.
|
|
1068
|
+
*/
|
|
1069
|
+
removeShippingPriceAdjustment(priceAdjustment: PriceAdjustment): void;
|
|
1070
|
+
/**
|
|
1071
|
+
* Sets the email address of the customer associated with this container.
|
|
1072
|
+
*/
|
|
1073
|
+
setCustomerEmail(aValue: string): void;
|
|
1074
|
+
/**
|
|
1075
|
+
* Sets the name of the customer associated with this container.
|
|
1076
|
+
*/
|
|
1077
|
+
setCustomerName(aValue: string): void;
|
|
1078
|
+
/**
|
|
1079
|
+
* Calculates the tax for all shipping and order-level merchandise price adjustments in this LineItemCtnr.
|
|
1080
|
+
*
|
|
1081
|
+
* The tax on each adjustment is calculated from the taxes of the line items the adjustment applies across.
|
|
1082
|
+
*
|
|
1083
|
+
* This method must be invoked at the end of tax calculation of a basket or an order.
|
|
1084
|
+
*/
|
|
1085
|
+
updateOrderLevelPriceAdjustmentTax(): void;
|
|
1086
|
+
/**
|
|
1087
|
+
* Recalculates the totals of the line item container. It is necessary to call this method after any type of
|
|
1088
|
+
* modification to the basket.
|
|
1089
|
+
*/
|
|
1090
|
+
updateTotals(): void;
|
|
1091
|
+
/**
|
|
1092
|
+
* Verifies whether the manual price adjustments made for the line item container exceed the corresponding limits
|
|
1093
|
+
* for the current user and the current site.
|
|
1094
|
+
*
|
|
1095
|
+
* The results of this method are based on the current values held in the dw.order.LineItemCtnr, such as the
|
|
1096
|
+
* base price of manual price adjustments. It is important the method is only called after the calculation process
|
|
1097
|
+
* has completed.
|
|
1098
|
+
*
|
|
1099
|
+
* Status.OK is returned if NONE of the manual price adjustments exceed the correspondent limits.
|
|
1100
|
+
*
|
|
1101
|
+
* Status.ERROR is returned if ANY of the manual price adjustments exceed the correspondent limits. If this case
|
|
1102
|
+
* dw.system.Status.getItems returns all price adjustment limit violations. The code of each
|
|
1103
|
+
* dw.system.StatusItem represents the violated price adjustment type (see
|
|
1104
|
+
* dw.order.PriceAdjustmentLimitTypes). dw.system.StatusItem.getDetails returns a
|
|
1105
|
+
* dw.util.Map with the max amount and (where relevant) the item to which the violation applies.
|
|
1106
|
+
*
|
|
1107
|
+
* Usage:
|
|
1108
|
+
* @example
|
|
1109
|
+
* var order : Order; // known
|
|
1110
|
+
*
|
|
1111
|
+
* var status : Status = order.verifyPriceAdjustmentLimits();
|
|
1112
|
+
* if (status.status == Status.ERROR)
|
|
1113
|
+
* {
|
|
1114
|
+
* for each (var statusItem : StatusItem in status.items)
|
|
1115
|
+
* {
|
|
1116
|
+
* var statusDetail : MapEntry = statusItem.details.entrySet().iterator().next();
|
|
1117
|
+
* var maxAllowedLimit : Number = (Number) (statusDetail.key);
|
|
1118
|
+
*
|
|
1119
|
+
* if (statusItem.code == PriceAdjustmentLimitTypes.TYPE_ORDER)
|
|
1120
|
+
* {
|
|
1121
|
+
* // fix order price adjustment considering maxAllowedLimit
|
|
1122
|
+
* }
|
|
1123
|
+
* else if (statusItem.code == PriceAdjustmentLimitTypes.TYPE_ITEM)
|
|
1124
|
+
* {
|
|
1125
|
+
* var pli : ProductLineItem = (ProductLineItem) (statusDetail.value);
|
|
1126
|
+
* // fix pli price adjustment considering maxAllowedLimit
|
|
1127
|
+
* }
|
|
1128
|
+
* else if (statusItem.code == PriceAdjustmentLimitTypes.TYPE_SHIPPING)
|
|
1129
|
+
* {
|
|
1130
|
+
* if (statusDetail.value == null)
|
|
1131
|
+
* {
|
|
1132
|
+
* // fix order level shipping price adjustment considering maxAllowedLimit
|
|
1133
|
+
* }
|
|
1134
|
+
* else
|
|
1135
|
+
* {
|
|
1136
|
+
* var sli : ShippingLineItem = (ShippingLineItem) (statusDetail.value);
|
|
1137
|
+
* // fix sli price adjustment considering maxAllowedLimit
|
|
1138
|
+
* }
|
|
1139
|
+
* }
|
|
1140
|
+
* }
|
|
1141
|
+
* }
|
|
1142
|
+
*/
|
|
1143
|
+
verifyPriceAdjustmentLimits(): Status;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export = LineItemCtnr;
|