@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/Invoice.d.ts
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import AbstractItemCtnr = require('./AbstractItemCtnr');
|
|
2
|
+
import EnumValue = require('../value/EnumValue');
|
|
3
|
+
import FilteringCollection = require('../util/FilteringCollection');
|
|
4
|
+
import InvoiceItem = require('./InvoiceItem');
|
|
5
|
+
import PaymentTransaction = require('./PaymentTransaction');
|
|
6
|
+
import OrderPaymentInstrument = require('./OrderPaymentInstrument');
|
|
7
|
+
import Money = require('../value/Money');
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The Invoice can be a debit or credit invoice, and is created
|
|
11
|
+
* from custom scripts using one of the methods
|
|
12
|
+
* dw.order.ShippingOrder.createInvoice,
|
|
13
|
+
* dw.order.Appeasement.createInvoice,
|
|
14
|
+
* dw.order.ReturnCase.createInvoice or
|
|
15
|
+
* dw.order.Return.createInvoice.
|
|
16
|
+
*
|
|
17
|
+
* Order post-processing APIs (gillian) are now inactive by default and will throw
|
|
18
|
+
* an exception if accessed. Activation needs preliminary approval by Product Management.
|
|
19
|
+
* Please contact support in this case. Existing customers using these APIs are not
|
|
20
|
+
* affected by this change and can use the APIs until further notice.
|
|
21
|
+
*/
|
|
22
|
+
declare class Invoice extends AbstractItemCtnr {
|
|
23
|
+
/**
|
|
24
|
+
* Sorting by creation date. Use with method getPaymentTransactions as an argument to
|
|
25
|
+
* method dw.util.FilteringCollection.sort.
|
|
26
|
+
*/
|
|
27
|
+
static readonly ORDERBY_CREATION_DATE: any;
|
|
28
|
+
/**
|
|
29
|
+
* Sorting by item id. Use with method getItems as an argument to
|
|
30
|
+
* method dw.util.FilteringCollection.sort.
|
|
31
|
+
*/
|
|
32
|
+
static readonly ORDERBY_ITEMID: any;
|
|
33
|
+
/**
|
|
34
|
+
* Sorting by the position of the related oder item. Use with method
|
|
35
|
+
* getItems as an argument to method
|
|
36
|
+
* dw.util.FilteringCollection.sort.
|
|
37
|
+
*/
|
|
38
|
+
static readonly ORDERBY_ITEMPOSITION: any;
|
|
39
|
+
/**
|
|
40
|
+
* Reverse orders. Use as an argument
|
|
41
|
+
* to method dw.util.FilteringCollection.sort.
|
|
42
|
+
*/
|
|
43
|
+
static readonly ORDERBY_REVERSE: any;
|
|
44
|
+
/**
|
|
45
|
+
* Unsorted , as it is. Use with method getItems as an argument
|
|
46
|
+
* to method dw.util.FilteringCollection.sort.
|
|
47
|
+
*/
|
|
48
|
+
static readonly ORDERBY_UNSORTED: any;
|
|
49
|
+
/**
|
|
50
|
+
* Selects the capture transactions. Use with method getPaymentTransactions as an
|
|
51
|
+
* argument to method dw.util.FilteringCollection.select.
|
|
52
|
+
*/
|
|
53
|
+
static readonly QUALIFIER_CAPTURE: any;
|
|
54
|
+
/**
|
|
55
|
+
* Selects the product items. Use with method getItems as an
|
|
56
|
+
* argument to method dw.util.FilteringCollection.select.
|
|
57
|
+
*/
|
|
58
|
+
static readonly QUALIFIER_PRODUCTITEMS: any;
|
|
59
|
+
/**
|
|
60
|
+
* Selects the refund transactions. Use with method getPaymentTransactions as an
|
|
61
|
+
* argument to method dw.util.FilteringCollection.select.
|
|
62
|
+
*/
|
|
63
|
+
static readonly QUALIFIER_REFUND: any;
|
|
64
|
+
/**
|
|
65
|
+
* Selects for the service items. Use with method getItems as an
|
|
66
|
+
* argument to method dw.util.FilteringCollection.select.
|
|
67
|
+
*/
|
|
68
|
+
static readonly QUALIFIER_SERVICEITEMS: any;
|
|
69
|
+
/**
|
|
70
|
+
* Constant for Invoice Status Failed.
|
|
71
|
+
*
|
|
72
|
+
* The invoice handling failed.
|
|
73
|
+
*/
|
|
74
|
+
static readonly STATUS_FAILED: string;
|
|
75
|
+
/**
|
|
76
|
+
* Constant for Invoice Status Manual.
|
|
77
|
+
*
|
|
78
|
+
* The invoice is not paid but will not be handled automatically.
|
|
79
|
+
*
|
|
80
|
+
* A manual invoice handling (capture or refund) is necessary.
|
|
81
|
+
*/
|
|
82
|
+
static readonly STATUS_MANUAL: string;
|
|
83
|
+
/**
|
|
84
|
+
* Constant for Invoice Status Not Paid.
|
|
85
|
+
*
|
|
86
|
+
* The invoice is not paid and will be handled automatically.
|
|
87
|
+
*/
|
|
88
|
+
static readonly STATUS_NOT_PAID: string;
|
|
89
|
+
/**
|
|
90
|
+
* Constant for Invoice Status Paid.
|
|
91
|
+
*
|
|
92
|
+
* The invoice was successfully paid.
|
|
93
|
+
*/
|
|
94
|
+
static readonly STATUS_PAID: string;
|
|
95
|
+
/**
|
|
96
|
+
* Constant for Invoice Type Appeasement.
|
|
97
|
+
*
|
|
98
|
+
* The invoice was created for an appeasement.
|
|
99
|
+
*
|
|
100
|
+
* The invoice amount needs to be refunded.
|
|
101
|
+
*/
|
|
102
|
+
static readonly TYPE_APPEASEMENT: string;
|
|
103
|
+
/**
|
|
104
|
+
* Constant for Invoice Type Return.
|
|
105
|
+
*
|
|
106
|
+
* The invoice was created for a return.
|
|
107
|
+
*
|
|
108
|
+
* The invoice amount needs to be refunded.
|
|
109
|
+
*/
|
|
110
|
+
static readonly TYPE_RETURN: string;
|
|
111
|
+
/**
|
|
112
|
+
* Constant for Invoice Type Return Case.
|
|
113
|
+
*
|
|
114
|
+
* The invoice was created for a return case.
|
|
115
|
+
*
|
|
116
|
+
* The invoice amount needs to be refunded.
|
|
117
|
+
*/
|
|
118
|
+
static readonly TYPE_RETURN_CASE: string;
|
|
119
|
+
/**
|
|
120
|
+
* Constant for Invoice Type Shipping.
|
|
121
|
+
*
|
|
122
|
+
* The invoice was created for a shipping order.
|
|
123
|
+
*
|
|
124
|
+
* The invoice amount needs to be captured.
|
|
125
|
+
*/
|
|
126
|
+
static readonly TYPE_SHIPPING: string;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the sum of the captured amounts. The captured amounts are
|
|
129
|
+
* calculated on the fly.
|
|
130
|
+
*
|
|
131
|
+
* Associate a payment capture for a dw.order.OrderPaymentInstrument
|
|
132
|
+
* with an Invoice using
|
|
133
|
+
* addCaptureTransaction.
|
|
134
|
+
*/
|
|
135
|
+
readonly capturedAmount: Money;
|
|
136
|
+
/**
|
|
137
|
+
* Returns the invoice number.
|
|
138
|
+
*/
|
|
139
|
+
readonly invoiceNumber: string;
|
|
140
|
+
/**
|
|
141
|
+
* Returns the payment transactions belonging to this Invoice.
|
|
142
|
+
*
|
|
143
|
+
* This dw.util.FilteringCollection can be sorted / filtered using:
|
|
144
|
+
*
|
|
145
|
+
* - dw.util.FilteringCollection.sort with
|
|
146
|
+
* ORDERBY_CREATION_DATE
|
|
147
|
+
* - dw.util.FilteringCollection.sort with
|
|
148
|
+
* ORDERBY_UNSORTED
|
|
149
|
+
* - dw.util.FilteringCollection.select with
|
|
150
|
+
* QUALIFIER_CAPTURE
|
|
151
|
+
* - dw.util.FilteringCollection.select with
|
|
152
|
+
* QUALIFIER_REFUND
|
|
153
|
+
* @see dw.order.PaymentTransaction
|
|
154
|
+
*/
|
|
155
|
+
readonly paymentTransactions: FilteringCollection<PaymentTransaction>;
|
|
156
|
+
/**
|
|
157
|
+
* Returns the sum of the refunded amounts. The refunded amounts are
|
|
158
|
+
* calculated on the fly.
|
|
159
|
+
*
|
|
160
|
+
* Associate a payment capture for a dw.order.OrderPaymentInstrument
|
|
161
|
+
* with an Invoice using
|
|
162
|
+
* addRefundTransaction.
|
|
163
|
+
*/
|
|
164
|
+
readonly refundedAmount: Money;
|
|
165
|
+
/**
|
|
166
|
+
* Returns the invoice status.
|
|
167
|
+
*
|
|
168
|
+
* The possible values are STATUS_NOT_PAID, STATUS_MANUAL,
|
|
169
|
+
* STATUS_PAID, STATUS_FAILED.
|
|
170
|
+
*/
|
|
171
|
+
status: EnumValue;
|
|
172
|
+
/**
|
|
173
|
+
* Returns the invoice type.
|
|
174
|
+
*
|
|
175
|
+
* The possible values are TYPE_SHIPPING, TYPE_RETURN,
|
|
176
|
+
* TYPE_RETURN_CASE, TYPE_APPEASEMENT.
|
|
177
|
+
*/
|
|
178
|
+
readonly type: EnumValue;
|
|
179
|
+
private constructor();
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
*
|
|
183
|
+
* The invoice will be accounted.
|
|
184
|
+
*
|
|
185
|
+
* It will be captured in case of a shipping invoice and it will be refunded in
|
|
186
|
+
* case of an appeasement, return case or return invoice.
|
|
187
|
+
*
|
|
188
|
+
* The accounting will be handled in the payment hooks
|
|
189
|
+
* dw.order.hooks.PaymentHooks.capture or
|
|
190
|
+
* dw.order.hooks.PaymentHooks.refund. The implementing script could add
|
|
191
|
+
* payment transactions to the invoice. The accompanying business logic will
|
|
192
|
+
* set the status to `PAID` or `FAILED`.
|
|
193
|
+
*
|
|
194
|
+
* The accounting will fail when the invoice state is different to
|
|
195
|
+
* STATUS_NOT_PAID or STATUS_FAILED.
|
|
196
|
+
*
|
|
197
|
+
* The method implements its own transaction handling. The method must not
|
|
198
|
+
* be called inside a transaction.
|
|
199
|
+
*/
|
|
200
|
+
account(): boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Calling this method registers an amount captured for a given
|
|
203
|
+
* order payment instrument. The authorization for the
|
|
204
|
+
* capture is associated with the payment transaction belonging to the
|
|
205
|
+
* instrument. Calling this method allows the Invoice, the
|
|
206
|
+
* dw.order.OrderPaymentInstrument and the dw.order.Order to
|
|
207
|
+
* return their captured amount as a sum calculated on the fly. The method
|
|
208
|
+
* may be called multiple times for the same instrument (multiple capture
|
|
209
|
+
* for one authorization) or for different instruments (invoice settlement
|
|
210
|
+
* using multiple payments).
|
|
211
|
+
*/
|
|
212
|
+
addCaptureTransaction(instrument: OrderPaymentInstrument, capturedAmount: Money): PaymentTransaction;
|
|
213
|
+
/**
|
|
214
|
+
* Calling this method registers an amount refunded for a given
|
|
215
|
+
* order payment instrument. Calling this method allows the
|
|
216
|
+
* Invoice, the dw.order.OrderPaymentInstrument and
|
|
217
|
+
* the dw.order.Order to return their refunded amount as a sum
|
|
218
|
+
* calculated on the fly. The method may be called multiple times for the
|
|
219
|
+
* same instrument (multiple refunds of one payment) or for different
|
|
220
|
+
* instruments (invoice settlement using multiple payments).
|
|
221
|
+
*/
|
|
222
|
+
addRefundTransaction(instrument: OrderPaymentInstrument, refundedAmount: Money): PaymentTransaction;
|
|
223
|
+
/**
|
|
224
|
+
* Returns the sum of the captured amounts. The captured amounts are
|
|
225
|
+
* calculated on the fly.
|
|
226
|
+
*
|
|
227
|
+
* Associate a payment capture for a dw.order.OrderPaymentInstrument
|
|
228
|
+
* with an Invoice using
|
|
229
|
+
* addCaptureTransaction.
|
|
230
|
+
*/
|
|
231
|
+
getCapturedAmount(): Money;
|
|
232
|
+
/**
|
|
233
|
+
* Returns the invoice number.
|
|
234
|
+
*/
|
|
235
|
+
getInvoiceNumber(): string;
|
|
236
|
+
/**
|
|
237
|
+
* Returns the payment transactions belonging to this Invoice.
|
|
238
|
+
*
|
|
239
|
+
* This dw.util.FilteringCollection can be sorted / filtered using:
|
|
240
|
+
*
|
|
241
|
+
* - dw.util.FilteringCollection.sort with
|
|
242
|
+
* ORDERBY_CREATION_DATE
|
|
243
|
+
* - dw.util.FilteringCollection.sort with
|
|
244
|
+
* ORDERBY_UNSORTED
|
|
245
|
+
* - dw.util.FilteringCollection.select with
|
|
246
|
+
* QUALIFIER_CAPTURE
|
|
247
|
+
* - dw.util.FilteringCollection.select with
|
|
248
|
+
* QUALIFIER_REFUND
|
|
249
|
+
* @see dw.order.PaymentTransaction
|
|
250
|
+
*/
|
|
251
|
+
getPaymentTransactions(): FilteringCollection<PaymentTransaction>;
|
|
252
|
+
/**
|
|
253
|
+
* Returns the sum of the refunded amounts. The refunded amounts are
|
|
254
|
+
* calculated on the fly.
|
|
255
|
+
*
|
|
256
|
+
* Associate a payment capture for a dw.order.OrderPaymentInstrument
|
|
257
|
+
* with an Invoice using
|
|
258
|
+
* addRefundTransaction.
|
|
259
|
+
*/
|
|
260
|
+
getRefundedAmount(): Money;
|
|
261
|
+
/**
|
|
262
|
+
* Returns the invoice status.
|
|
263
|
+
*
|
|
264
|
+
* The possible values are STATUS_NOT_PAID, STATUS_MANUAL,
|
|
265
|
+
* STATUS_PAID, STATUS_FAILED.
|
|
266
|
+
*/
|
|
267
|
+
getStatus(): EnumValue;
|
|
268
|
+
/**
|
|
269
|
+
* Returns the invoice type.
|
|
270
|
+
*
|
|
271
|
+
* The possible values are TYPE_SHIPPING, TYPE_RETURN,
|
|
272
|
+
* TYPE_RETURN_CASE, TYPE_APPEASEMENT.
|
|
273
|
+
*/
|
|
274
|
+
getType(): EnumValue;
|
|
275
|
+
/**
|
|
276
|
+
* Sets the invoice status.
|
|
277
|
+
*
|
|
278
|
+
* The possible values are STATUS_NOT_PAID, STATUS_MANUAL,
|
|
279
|
+
* STATUS_PAID, STATUS_FAILED.
|
|
280
|
+
*/
|
|
281
|
+
setStatus(status: string): void;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export = Invoice;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/InvoiceItem.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import AbstractItem = require('./AbstractItem');
|
|
2
|
+
import Quantity = require('../value/Quantity');
|
|
3
|
+
import Money = require('../value/Money');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Represents a specific item in an dw.order.Invoice. Invoice items are added to the invoice
|
|
7
|
+
* on its creation, each item references exactly one order-item.
|
|
8
|
+
*
|
|
9
|
+
* Order post-processing APIs (gillian) are now inactive by default and will throw
|
|
10
|
+
* an exception if accessed. Activation needs preliminary approval by Product Management.
|
|
11
|
+
* Please contact support in this case. Existing customers using these APIs are not
|
|
12
|
+
* affected by this change and can use the APIs until further notice.
|
|
13
|
+
*/
|
|
14
|
+
declare class InvoiceItem extends AbstractItem {
|
|
15
|
+
/**
|
|
16
|
+
* Price of a single unit before discount application.
|
|
17
|
+
*/
|
|
18
|
+
readonly basePrice: Money;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the captured amount for this item.
|
|
21
|
+
*/
|
|
22
|
+
capturedAmount: Money;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the number of the invoice to which this item belongs.
|
|
25
|
+
*/
|
|
26
|
+
readonly invoiceNumber: string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns null or the parent item.
|
|
29
|
+
*/
|
|
30
|
+
parentItem: InvoiceItem | null;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the quantity of this item.
|
|
33
|
+
*/
|
|
34
|
+
readonly quantity: Quantity;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the refunded amount for this item.
|
|
37
|
+
*/
|
|
38
|
+
refundedAmount: Money;
|
|
39
|
+
private constructor();
|
|
40
|
+
/**
|
|
41
|
+
* Price of a single unit before discount application.
|
|
42
|
+
*/
|
|
43
|
+
getBasePrice(): Money;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the captured amount for this item.
|
|
46
|
+
*/
|
|
47
|
+
getCapturedAmount(): Money;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the number of the invoice to which this item belongs.
|
|
50
|
+
*/
|
|
51
|
+
getInvoiceNumber(): string;
|
|
52
|
+
/**
|
|
53
|
+
* Returns null or the parent item.
|
|
54
|
+
*/
|
|
55
|
+
getParentItem(): InvoiceItem | null;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the quantity of this item.
|
|
58
|
+
*/
|
|
59
|
+
getQuantity(): Quantity;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the refunded amount for this item.
|
|
62
|
+
*/
|
|
63
|
+
getRefundedAmount(): Money;
|
|
64
|
+
/**
|
|
65
|
+
* Updates the captured amount for this item.
|
|
66
|
+
*/
|
|
67
|
+
setCapturedAmount(capturedAmount: Money): void;
|
|
68
|
+
/**
|
|
69
|
+
* Set a parent item. The parent item must belong to the same
|
|
70
|
+
* dw.order.Invoice. An infinite parent-child loop is disallowed
|
|
71
|
+
* as is a parent-child depth greater than 10. Setting a parent item
|
|
72
|
+
* indicates a dependency of the child item on the parent item, and can be
|
|
73
|
+
* used to form a parallel structure to that accessed using
|
|
74
|
+
* dw.order.ProductLineItem.getParent.
|
|
75
|
+
*/
|
|
76
|
+
setParentItem(parentItem: InvoiceItem): void;
|
|
77
|
+
/**
|
|
78
|
+
* Updates the refunded amount for this item.
|
|
79
|
+
*/
|
|
80
|
+
setRefundedAmount(refundedAmount: Money): void;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export = InvoiceItem;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItem.d.ts
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import ExtensibleObject = require('../object/ExtensibleObject');
|
|
2
|
+
import CustomAttributes = require('../object/CustomAttributes');
|
|
3
|
+
import Money = require('../value/Money');
|
|
4
|
+
import LineItemCtnr = require('./LineItemCtnr');
|
|
5
|
+
import Collection = require('../util/Collection');
|
|
6
|
+
import LineItemTax = require('./LineItemTax');
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
module ICustomAttributes {
|
|
10
|
+
interface LineItem extends CustomAttributes {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Common line item base class.
|
|
17
|
+
*/
|
|
18
|
+
declare class LineItem<T extends ICustomAttributes.LineItem = ICustomAttributes.LineItem> extends ExtensibleObject<T> {
|
|
19
|
+
/**
|
|
20
|
+
* Returns the base price for the line item, which is the price of the unit before applying adjustments, in the
|
|
21
|
+
* purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.
|
|
22
|
+
*/
|
|
23
|
+
basePrice: Money;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the gross price for the line item, which is the price of the unit before applying adjustments, in the
|
|
26
|
+
* purchase currency, including tax.
|
|
27
|
+
*/
|
|
28
|
+
grossPrice: Money;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the line item ctnr of the line item.
|
|
31
|
+
*/
|
|
32
|
+
readonly lineItemCtnr: LineItemCtnr<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the display text for the line item.
|
|
35
|
+
*/
|
|
36
|
+
lineItemText: string;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the net price for the line item, which is the price of the unit before applying adjustments, in the
|
|
39
|
+
* purchase currency, excluding tax.
|
|
40
|
+
*/
|
|
41
|
+
netPrice: Money;
|
|
42
|
+
/**
|
|
43
|
+
* Get the price of the line item. If the line item is based on net pricing then the net price is returned. If the
|
|
44
|
+
* line item is based on gross pricing then the gross price is returned.
|
|
45
|
+
*/
|
|
46
|
+
readonly price: Money;
|
|
47
|
+
/**
|
|
48
|
+
* Return the price amount for the line item. Same as getPrice().getValue().
|
|
49
|
+
*/
|
|
50
|
+
priceValue: number;
|
|
51
|
+
/**
|
|
52
|
+
* Returns the tax for the line item, which is the tax of the unit before applying adjustments, in the purchase
|
|
53
|
+
* currency.
|
|
54
|
+
*/
|
|
55
|
+
tax: Money;
|
|
56
|
+
/**
|
|
57
|
+
* Get the price used to calculate the tax for this line item.
|
|
58
|
+
*/
|
|
59
|
+
readonly taxBasis: Money;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the tax class ID for the line item or null if no tax class ID is associated with the line item. In the
|
|
62
|
+
* case where the tax class ID is null, you should use the default tax class ID.
|
|
63
|
+
* @see dw.order.TaxMgr.getDefaultTaxClassID
|
|
64
|
+
*/
|
|
65
|
+
taxClassID: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the tax rate, which is the decimal tax rate to be applied to the product represented by this line item. A
|
|
68
|
+
* value of 0.175 represents a percentage of 17.5%.
|
|
69
|
+
*/
|
|
70
|
+
taxRate: number;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the tax items for this line item. When taxes are set via setTaxes, the line item's
|
|
73
|
+
* tax amount and tax rate are updated as the sum and combined rate of all tax items. The tax items are preserved
|
|
74
|
+
* after order creation and can be retrieved on both baskets and orders.
|
|
75
|
+
*
|
|
76
|
+
* Access is currently restricted to select pilot customers and controlled via feature toggle.
|
|
77
|
+
* @see setTaxes
|
|
78
|
+
* @see LineItemTax
|
|
79
|
+
*/
|
|
80
|
+
taxes: Collection<LineItemTax>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns the base price for the line item, which is the price of the unit before applying adjustments, in the
|
|
83
|
+
* purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.
|
|
84
|
+
*/
|
|
85
|
+
getBasePrice(): Money;
|
|
86
|
+
/**
|
|
87
|
+
* Returns the gross price for the line item, which is the price of the unit before applying adjustments, in the
|
|
88
|
+
* purchase currency, including tax.
|
|
89
|
+
*/
|
|
90
|
+
getGrossPrice(): Money;
|
|
91
|
+
/**
|
|
92
|
+
* Returns the line item ctnr of the line item.
|
|
93
|
+
*/
|
|
94
|
+
getLineItemCtnr(): LineItemCtnr<any>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the display text for the line item.
|
|
97
|
+
*/
|
|
98
|
+
getLineItemText(): string;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the net price for the line item, which is the price of the unit before applying adjustments, in the
|
|
101
|
+
* purchase currency, excluding tax.
|
|
102
|
+
*/
|
|
103
|
+
getNetPrice(): Money;
|
|
104
|
+
/**
|
|
105
|
+
* Get the price of the line item. If the line item is based on net pricing then the net price is returned. If the
|
|
106
|
+
* line item is based on gross pricing then the gross price is returned.
|
|
107
|
+
*/
|
|
108
|
+
getPrice(): Money;
|
|
109
|
+
/**
|
|
110
|
+
* Return the price amount for the line item. Same as getPrice().getValue().
|
|
111
|
+
*/
|
|
112
|
+
getPriceValue(): number;
|
|
113
|
+
/**
|
|
114
|
+
* Returns the tax for the line item, which is the tax of the unit before applying adjustments, in the purchase
|
|
115
|
+
* currency.
|
|
116
|
+
*/
|
|
117
|
+
getTax(): Money;
|
|
118
|
+
/**
|
|
119
|
+
* Get the price used to calculate the tax for this line item.
|
|
120
|
+
*/
|
|
121
|
+
getTaxBasis(): Money;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the tax class ID for the line item or null if no tax class ID is associated with the line item. In the
|
|
124
|
+
* case where the tax class ID is null, you should use the default tax class ID.
|
|
125
|
+
* @see dw.order.TaxMgr.getDefaultTaxClassID
|
|
126
|
+
*/
|
|
127
|
+
getTaxClassID(): string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Returns the tax rate, which is the decimal tax rate to be applied to the product represented by this line item. A
|
|
130
|
+
* value of 0.175 represents a percentage of 17.5%.
|
|
131
|
+
*/
|
|
132
|
+
getTaxRate(): number;
|
|
133
|
+
/**
|
|
134
|
+
* Returns the tax items for this line item. When taxes are set via setTaxes, the line item's
|
|
135
|
+
* tax amount and tax rate are updated as the sum and combined rate of all tax items. The tax items are preserved
|
|
136
|
+
* after order creation and can be retrieved on both baskets and orders.
|
|
137
|
+
*
|
|
138
|
+
* Access is currently restricted to select pilot customers and controlled via feature toggle.
|
|
139
|
+
* @see setTaxes
|
|
140
|
+
* @see LineItemTax
|
|
141
|
+
*/
|
|
142
|
+
getTaxes(): Collection<LineItemTax>;
|
|
143
|
+
/**
|
|
144
|
+
* Sets the base price for the line item, which is the price of the unit before applying adjustments, in the
|
|
145
|
+
* purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.
|
|
146
|
+
* @deprecated Use updatePrice instead.
|
|
147
|
+
*/
|
|
148
|
+
setBasePrice(aValue: Money): void;
|
|
149
|
+
/**
|
|
150
|
+
* Sets the gross price for the line item, which is the Price of the unit before applying adjustments, in the
|
|
151
|
+
* purchase currency, including tax.
|
|
152
|
+
* @deprecated Use updatePrice which sets the base price and also the gross price if the line item
|
|
153
|
+
* is based on gross pricing.
|
|
154
|
+
*/
|
|
155
|
+
setGrossPrice(aValue: Money): void;
|
|
156
|
+
/**
|
|
157
|
+
* Sets the display text for the line item.
|
|
158
|
+
*/
|
|
159
|
+
setLineItemText(aText: string): void;
|
|
160
|
+
/**
|
|
161
|
+
* Sets the value for the net price, which is the price of the unit before applying adjustments, in the purchase
|
|
162
|
+
* currency, excluding tax.
|
|
163
|
+
* @deprecated Use updatePrice which sets the base price and also the net price if the line item is
|
|
164
|
+
* based on net pricing.
|
|
165
|
+
*/
|
|
166
|
+
setNetPrice(aValue: Money): void;
|
|
167
|
+
/**
|
|
168
|
+
* Sets price attributes of the line item based on the current purchase currency and taxation policy.
|
|
169
|
+
*
|
|
170
|
+
* The methods sets the 'basePrice' attribute of the line item. Additionally, it sets the 'netPrice' attribute of
|
|
171
|
+
* the line item if the current taxation policy is 'net', and the 'grossPrice' attribute, if the current taxation
|
|
172
|
+
* policy is 'gross'.
|
|
173
|
+
*
|
|
174
|
+
* If null is specified as value, the price attributes are reset to Money.NOT_AVAILABLE.
|
|
175
|
+
*/
|
|
176
|
+
setPriceValue(value: number): void;
|
|
177
|
+
/**
|
|
178
|
+
* Sets the value for the tax of the line item, which is the the tax of the unit before applying adjustments, in the
|
|
179
|
+
* purchase currency.
|
|
180
|
+
*
|
|
181
|
+
* If tax items are already set (e.g. via setTaxes), calling this will clear them.
|
|
182
|
+
*/
|
|
183
|
+
setTax(aValue: Money): void;
|
|
184
|
+
/**
|
|
185
|
+
* Sets the tax class ID for the line item.
|
|
186
|
+
*/
|
|
187
|
+
setTaxClassID(aValue: string): void;
|
|
188
|
+
/**
|
|
189
|
+
* Sets the tax rate, which is the decimal tax rate to be applied to the product represented by this line item. A
|
|
190
|
+
* value of 0.175 represents a percentage of 17.5%.
|
|
191
|
+
*
|
|
192
|
+
* If tax items are already set (e.g. via setTaxes), calling this will clear them.
|
|
193
|
+
*/
|
|
194
|
+
setTaxRate(taxRate: number): void;
|
|
195
|
+
/**
|
|
196
|
+
* Sets the tax items for this line item. The container must be a basket. Persists the given items, then aggregates
|
|
197
|
+
* them (sum of tax values, combined tax rate) and updates this line item's tax amount and tax rate accordingly.
|
|
198
|
+
*
|
|
199
|
+
* Each element in the collection must be a LineItemTax, for example created via
|
|
200
|
+
* LineItemTax.LineItemTax.
|
|
201
|
+
*
|
|
202
|
+
* Use either multilevel tax items via setTaxes or
|
|
203
|
+
* setTax/setTaxRate/updateTax/updateTaxAmount,
|
|
204
|
+
* not both.
|
|
205
|
+
*
|
|
206
|
+
* Access is currently restricted to select pilot customers and controlled via feature toggle.
|
|
207
|
+
*
|
|
208
|
+
* The maximum number of tax items allowed per line item is 10.
|
|
209
|
+
* @throws IllegalArgumentException if the container is not a basket, or if more than 10 tax items are provided
|
|
210
|
+
* @see getTaxes
|
|
211
|
+
* @see LineItemTax
|
|
212
|
+
*/
|
|
213
|
+
setTaxes(taxItems: Collection<any>): void;
|
|
214
|
+
/**
|
|
215
|
+
* Updates the price attributes of the line item based on the specified price. The base price is set to the
|
|
216
|
+
* specified value. If the line item is based on net pricing then the net price attribute is set. If the line item
|
|
217
|
+
* is based on gross pricing then the gross price attribute is set. Whether or not a line item is based on net or
|
|
218
|
+
* gross pricing is a site-wide configuration parameter.
|
|
219
|
+
* @deprecated Use setPriceValue instead.
|
|
220
|
+
*/
|
|
221
|
+
updatePrice(price: Money): void;
|
|
222
|
+
/**
|
|
223
|
+
* Updates the tax-related attributes of the line item based on the specified tax rate, a tax basis determined by
|
|
224
|
+
* the system and the "Tax Rounding Mode" order preference. This method sets the tax basis as an attribute, and is
|
|
225
|
+
* not affected by the previous value of this attribute.
|
|
226
|
+
*
|
|
227
|
+
* The value used as a basis depends on the type of line item this is and on the promotion preferences for the
|
|
228
|
+
* current site. If you tax products, shipping, and discounts based on price (default), then the tax basis will
|
|
229
|
+
* simply be equal to getPrice. If you tax products and shipping only based on adjusted price, then the
|
|
230
|
+
* tax basis depends upon line item type as follows:
|
|
231
|
+
*
|
|
232
|
+
* - ProductLineItem: basis equals dw.order.ProductLineItem.getProratedPrice.
|
|
233
|
+
* - ShippingLineItem: basis equals dw.order.ShippingLineItem.getAdjustedPrice.
|
|
234
|
+
* - ProductShippingLineItem: basis equals
|
|
235
|
+
* dw.order.ProductShippingLineItem.getAdjustedPrice.
|
|
236
|
+
* - PriceAdjustment: basis equals 0.00.
|
|
237
|
+
* - All other line item types: basis equals getPrice.
|
|
238
|
+
*
|
|
239
|
+
* If null is passed as tax rate, tax-related attribute fields are set to N/A.
|
|
240
|
+
*/
|
|
241
|
+
updateTax(taxRate: number): void;
|
|
242
|
+
/**
|
|
243
|
+
* Updates the tax-related attributes of the line item based on the specified tax rate, the passed tax basis and the
|
|
244
|
+
* "Tax Rounding Mode" order preference. If null is passed as tax rate or tax basis, tax-related attribute fields
|
|
245
|
+
* are set to N/A.
|
|
246
|
+
*
|
|
247
|
+
* If tax items are already set (e.g. via setTaxes), calling this will clear them.
|
|
248
|
+
*/
|
|
249
|
+
updateTax(taxRate: number, taxBasis: Money | null): void;
|
|
250
|
+
/**
|
|
251
|
+
* Updates tax amount of the line item setting the provided value. Depending on the way how the tax is calculated
|
|
252
|
+
* (based on net or gross price), the corresponding gross or net price is updated accordingly. For tax calculation
|
|
253
|
+
* based on net price, the gross price is calculated by adding the tax to the net price. For tax calculation based
|
|
254
|
+
* on gross price, the net price is calculated by subtracting the tax from the gross price.
|
|
255
|
+
*
|
|
256
|
+
* If null is passed as tax amount, the item tax and resulting net or gross price are set to N/A.
|
|
257
|
+
*
|
|
258
|
+
* Note that tax rate is not calculated and it is not updated.
|
|
259
|
+
*
|
|
260
|
+
* If tax items are already set (e.g. via setTaxes), calling this will clear them.
|
|
261
|
+
*/
|
|
262
|
+
updateTaxAmount(tax: Money): void;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export = LineItem;
|