@salesforce/b2c-cli 1.10.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/job/import.d.ts +1 -0
- package/dist/commands/job/import.js +15 -0
- package/dist/commands/job/import.js.map +1 -1
- 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 +4160 -3853
- package/package.json +3 -3
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import Status = require('../../system/Status');
|
|
2
|
+
import Order = require('../Order');
|
|
3
|
+
import OrderPaymentInstrument = require('../OrderPaymentInstrument');
|
|
4
|
+
import Invoice = require('../Invoice');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This interface represents all script hooks that can be registered to
|
|
8
|
+
* customize the order center payment functionality. It contains the extension
|
|
9
|
+
* points (hook names), and the functions that are called by each extension
|
|
10
|
+
* point. A function must be defined inside a JavaScript source and must be
|
|
11
|
+
* exported. The script with the exported hook function must be located inside a
|
|
12
|
+
* site cartridge. Inside the site cartridge a 'package.json' file with a
|
|
13
|
+
* 'hooks' entry must exist.
|
|
14
|
+
*
|
|
15
|
+
* "hooks": "./hooks.json"
|
|
16
|
+
*
|
|
17
|
+
* The hooks entry links to a json file, relative to the 'package.json' file.
|
|
18
|
+
* This file lists all registered hooks inside the hooks property:
|
|
19
|
+
*
|
|
20
|
+
* ```
|
|
21
|
+
* "hooks": [
|
|
22
|
+
* {"name": "dw.order.payment.authorize", "script": "./authorize.js"},
|
|
23
|
+
* {"name": "dw.order.payment.validateAuthorization", "script": "./validateAuthorization.js"},
|
|
24
|
+
* ]
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* A hook entry has a 'name' and a 'script' property.
|
|
28
|
+
*
|
|
29
|
+
* - The 'name' contains the extension point, the hook name.
|
|
30
|
+
* - The 'script' contains the script relative to the hooks file, with the
|
|
31
|
+
* exported hook function.
|
|
32
|
+
*/
|
|
33
|
+
declare interface PaymentHooks {
|
|
34
|
+
/**
|
|
35
|
+
* The extension point name extensionPointAuthorize.
|
|
36
|
+
*
|
|
37
|
+
* This hook is optional.
|
|
38
|
+
*/
|
|
39
|
+
readonly extensionPointAuthorize: "dw.order.payment.authorize";
|
|
40
|
+
/**
|
|
41
|
+
* The extension point name extensionPointAuthorizeCreditCard.
|
|
42
|
+
*
|
|
43
|
+
* This hook is optional.
|
|
44
|
+
*/
|
|
45
|
+
readonly extensionPointAuthorizeCreditCard: "dw.order.payment.authorizeCreditCard";
|
|
46
|
+
/**
|
|
47
|
+
* The extension point name extensionPointCapture.
|
|
48
|
+
*/
|
|
49
|
+
readonly extensionPointCapture: "dw.order.payment.capture";
|
|
50
|
+
/**
|
|
51
|
+
* The extension point name extensionPointReauthorize.
|
|
52
|
+
*/
|
|
53
|
+
readonly extensionPointReauthorize: "dw.order.payment.reauthorize";
|
|
54
|
+
/**
|
|
55
|
+
* The extension point name extensionPointRefund.
|
|
56
|
+
*/
|
|
57
|
+
readonly extensionPointRefund: "dw.order.payment.refund";
|
|
58
|
+
/**
|
|
59
|
+
* The extension point name extensionPointReleaseAuthorization.
|
|
60
|
+
*/
|
|
61
|
+
readonly extensionPointReleaseAuthorization: "dw.order.payment.releaseAuthorization";
|
|
62
|
+
/**
|
|
63
|
+
* The extension point name extensionPointValidateAuthorization.
|
|
64
|
+
*/
|
|
65
|
+
readonly extensionPointValidateAuthorization: "dw.order.payment.validateAuthorization";
|
|
66
|
+
/**
|
|
67
|
+
* The function is called by extension point extensionPointAuthorize. Custom payment authorization - modify the
|
|
68
|
+
* order as needed.
|
|
69
|
+
*
|
|
70
|
+
* - Prerequisite: An order has been created using the data api or via the storefront.
|
|
71
|
+
* - Return Status.OK: Corresponding payment transaction is marked as authorized (usually a custom property is used for this).
|
|
72
|
+
* - Return Status.ERROR: Order is held, authorization needs to be repeated.
|
|
73
|
+
*/
|
|
74
|
+
authorize(order: Order, paymentDetails: OrderPaymentInstrument): Status;
|
|
75
|
+
/**
|
|
76
|
+
* The function is called by extension point
|
|
77
|
+
* extensionPointAuthorizeCreditCard. Custom payment authorization
|
|
78
|
+
* of a credit card - modify the order as needed.
|
|
79
|
+
*
|
|
80
|
+
* - Prerequisite: An order has been created using the data api or via the
|
|
81
|
+
* storefront.
|
|
82
|
+
* - Return Status.OK: Corresponding payment transaction is marked as
|
|
83
|
+
* authorized (usually a custom property is used for this).
|
|
84
|
+
* - Return Status.ERROR: Order is held, authorization needs to be
|
|
85
|
+
* repeated.
|
|
86
|
+
*/
|
|
87
|
+
authorizeCreditCard(order: Order, paymentDetails: OrderPaymentInstrument, cvn: string): Status;
|
|
88
|
+
/**
|
|
89
|
+
* The function is called by extension point extensionPointCapture. Custom payment capture - modify the order as needed.
|
|
90
|
+
*
|
|
91
|
+
* - Prerequisite:
|
|
92
|
+
*
|
|
93
|
+
* [ either ] As a result of shipping (or part-shipping) a shipping -order the warehouse updates the status of the shipping-order
|
|
94
|
+
* resulting in the creation of an unpaid debit invoice (the creation of the invoice is usually handled in
|
|
95
|
+
* dw.order.hooks.ShippingOrderHooks.changeStatus).
|
|
96
|
+
*
|
|
97
|
+
* [ or ] A unpaid debit invoice has been created using the data api.
|
|
98
|
+
* - Context: An unpaid debit invoice is passed to the payment system for capture. The capture attempt can either succeed (complete
|
|
99
|
+
* invoice amount captured) or fail. As a result the invoice status is updated by ordercenter for further processing. See dw.order.Invoice.
|
|
100
|
+
* - Hook responsibility: The hook should attempt to capture the amount located in invoice.grandTotal.grossPrice. When successful,
|
|
101
|
+
* the capture hook should also update the invoice by calling
|
|
102
|
+
* dw.order.Invoice.addCaptureTransaction
|
|
103
|
+
* which serves to record the capturedAmount and associate the invoice with the payment-transaction.
|
|
104
|
+
* - Return Status.OK: Indicates capture succeeded: Order Center sets the Invoice status to dw.order.Invoice.STATUS_PAID.
|
|
105
|
+
* - Return Status.ERROR: Indicates capture failed: Order Center sets the Invoice status to dw.order.Invoice.STATUS_FAILED for
|
|
106
|
+
* further processing.
|
|
107
|
+
* - Post processing: When the capture hook returns with success, order center not only sets the relevant invoice status, but also
|
|
108
|
+
* sets the relevant capturedAmount values on the invoice item. Returning success means the entire invoice total has been captured, so each item
|
|
109
|
+
* within the invoice can also be marked as completely captured. Note the script implementing the hook can take responsibility for this if desired
|
|
110
|
+
* order center will not overwrite existing values, but normally the standard implementation fits. As a result each invoice item and the related
|
|
111
|
+
* order item can return a capturedAmount, useful for calculating possible refunds.
|
|
112
|
+
*/
|
|
113
|
+
capture(invoice: Invoice): Status;
|
|
114
|
+
/**
|
|
115
|
+
* The function is called by extension point extensionPointReauthorize. Custom payment authorization - modify the
|
|
116
|
+
* order as needed.
|
|
117
|
+
*
|
|
118
|
+
* - Prerequisite:
|
|
119
|
+
*
|
|
120
|
+
* [ either ] Based on a selected dw.order.Order, a dw.order.ShippingOrder (which represents the whole or part of the order which can be shipped)
|
|
121
|
+
* is to be created ready for export to the warehouse system.
|
|
122
|
+
*
|
|
123
|
+
* [ or ] A dw.order.ShippingOrder is to be directly created using the data api.
|
|
124
|
+
* - Context: The related order is passed to the payment hook to check its authorization has not become invalid. Two hooks are called:
|
|
125
|
+
*
|
|
126
|
+
* a. validateAuthorization is used to check the orders authorization is still valid
|
|
127
|
+
*
|
|
128
|
+
* b. reauthorize is called if step a. returns Error
|
|
129
|
+
*
|
|
130
|
+
* - Return Status.OK: Corresponding payment transaction is marked as authorized (usually a custom property is used for this).
|
|
131
|
+
* If the order had been previously authorized, the custom property values may be overwritten during reauthorization.
|
|
132
|
+
* - Return Status.ERROR: Order is held, authorization needs to be repeated.
|
|
133
|
+
*/
|
|
134
|
+
reauthorize(order: Order): Status;
|
|
135
|
+
/**
|
|
136
|
+
* The function is called by extension point extensionPointRefund. Custom payment refund - modify the order as needed.
|
|
137
|
+
*
|
|
138
|
+
* - Prerequisite:
|
|
139
|
+
*
|
|
140
|
+
* [ either ] Goods returned by the customer result in the creation of one or more return documents, resulting in the creation of an
|
|
141
|
+
* unpaid customer credit invoice (the creation of the invoice is usually handled in dw.order.hooks.ReturnHooks.changeStatus).
|
|
142
|
+
*
|
|
143
|
+
* [ or ] An unpaid customer credit invoice is created using the data api (perhaps as a result of the creation of a customer appeasement).
|
|
144
|
+
* - Context: An unpaid credit invoice is passed to the payment system for refund. The refund attempt can either succeed (complete
|
|
145
|
+
* invoice amount refunded) or fail. As a result the invoice status is updated by ordercenter for further processing. See dw.order.Invoice.
|
|
146
|
+
* - Hook responsibility: The hook should attempt to refund the amount located in invoice.grandTotal.grossPrice. When successful,
|
|
147
|
+
* the refund hook should also update the invoice by calling
|
|
148
|
+
* dw.order.Invoice.addRefundTransaction
|
|
149
|
+
* which serves to record the refundedAmount and associate the invoice with the payment-transaction.
|
|
150
|
+
* - Return Status.OK: Indicates refund succeeded: Order Center sets the Invoice status to dw.order.Invoice.STATUS_PAID.
|
|
151
|
+
* - Return Status.ERROR: Indicates refund failed: Order Center sets the Invoice status to dw.order.Invoice.STATUS_FAILED for
|
|
152
|
+
* further processing.
|
|
153
|
+
* - Post processing: When the refund hook returns with success, order center not only sets the relevant invoice status, but also
|
|
154
|
+
* sets the relevant refundAmount values on the invoice item. Returning success means the entire invoice total has been refunded, so each item
|
|
155
|
+
* within the invoice can also be marked as completely refunded. Note the script implementing the hook can take responsibility for this if desired
|
|
156
|
+
* order center will not overwrite existing values, but normally the standard implementation fits. As a result each invoice item and the related
|
|
157
|
+
* order item can return a refundedAmount, useful for calculating further possible refunds.
|
|
158
|
+
*/
|
|
159
|
+
refund(invoice: Invoice): Status;
|
|
160
|
+
/**
|
|
161
|
+
* The function is called by extension point extensionPointReleaseAuthorization.
|
|
162
|
+
* Custom payment release authorization - modify the order as needed.
|
|
163
|
+
*
|
|
164
|
+
* - Prerequisite: an authorized order is updated resulting in a need to release the remaining authorization. This happens when:
|
|
165
|
+
*
|
|
166
|
+
* - order is cancelled
|
|
167
|
+
*
|
|
168
|
+
* - order is complete after remaining order items are cancelled.
|
|
169
|
+
* - Return Status.OK - successful release authorization
|
|
170
|
+
* - Return Status.ERROR - failed release authorization
|
|
171
|
+
*/
|
|
172
|
+
releaseAuthorization(order: Order): Status;
|
|
173
|
+
/**
|
|
174
|
+
* The function is called by extension point extensionPointValidateAuthorization. Custom payment authorization - modify the
|
|
175
|
+
* order as needed.
|
|
176
|
+
*
|
|
177
|
+
* - Context: This hook is called to validate whether a payment authorization exists for the order. It should usually check:
|
|
178
|
+
*
|
|
179
|
+
* - Whether the authorize or reauthorize hook was previously successfully executed for the order, e.g. by checking whether custom property has been previously set.
|
|
180
|
+
*
|
|
181
|
+
* - Whether an existing authorization has expired e.g. by comparing a timestamp set on authorization with the current time.
|
|
182
|
+
* - Return Status.OK: indicates the order has a valid payment authorization.
|
|
183
|
+
* - Return Status.ERROR: indicates reauthorize should be called.
|
|
184
|
+
* See reauthorize for more details.
|
|
185
|
+
*/
|
|
186
|
+
validateAuthorization(order: Order): Status;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export = PaymentHooks;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import Return = require('../Return');
|
|
2
|
+
import Status = require('../../system/Status');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This interface represents all script hooks that can be registered to
|
|
6
|
+
* customizing the order center return resource. It contains the extension
|
|
7
|
+
* points (hook names), and the functions that are called by each extension
|
|
8
|
+
* point. A function must be defined inside a JavaScript source and must be
|
|
9
|
+
* exported. The script with the exported hook function must be located inside a
|
|
10
|
+
* site cartridge. Inside the site cartridge a 'package.json' file with a
|
|
11
|
+
* 'hooks' entry must exist.
|
|
12
|
+
*
|
|
13
|
+
* "hooks": "./hooks.json"
|
|
14
|
+
*
|
|
15
|
+
* The hooks entry links to a json file, relative to the 'package.json' file.
|
|
16
|
+
* This file lists all registered hooks inside the hooks property:
|
|
17
|
+
*
|
|
18
|
+
* ```
|
|
19
|
+
* "hooks": [
|
|
20
|
+
* {"name": "dw.order.return.createReturn", "script": "./returns.ds"},
|
|
21
|
+
* {"name": "dw.order.return.addReturnItem", "script": "./returns.ds"},
|
|
22
|
+
* {"name": "dw.order.return.changeStatus", "script": "./returns.ds"},
|
|
23
|
+
* ]
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* A hook entry has a 'name' and a 'script' property.
|
|
27
|
+
*
|
|
28
|
+
* - The 'name' contains the extension point, the hook name.
|
|
29
|
+
* - The 'script' contains the script relative to the hooks file, with the
|
|
30
|
+
* exported hook function.
|
|
31
|
+
*
|
|
32
|
+
* Overview Return Functionality Business objects
|
|
33
|
+
* dw.order.ReturnCase All returns exist in the context of a
|
|
34
|
+
* dw.order.ReturnCase, each dw.order.Order can have any number
|
|
35
|
+
* of dw.order.ReturnCases.
|
|
36
|
+
*
|
|
37
|
+
* A dw.order.ReturnCase has dw.order.ReturnCaseItems, each of
|
|
38
|
+
* which is associated with an dw.order.OrderItem (an extension to
|
|
39
|
+
* either a dw.order.ProductLineItem or a
|
|
40
|
+
* dw.order.ShippingLineItem).
|
|
41
|
+
*
|
|
42
|
+
* Each dw.order.ReturnCaseItem defines an
|
|
43
|
+
* dw.order.ReturnCaseItem.getAuthorizedQuantity representing the
|
|
44
|
+
* maximum quantity expected to be returned. A dw.order.ReturnCaseItem
|
|
45
|
+
* may be associated with 0..n dw.order.ReturnItems -
|
|
46
|
+
* dw.order.ReturnItems are added to the dw.order.ReturnCaseItem
|
|
47
|
+
* when dw.order.Returns are created.
|
|
48
|
+
*
|
|
49
|
+
* Either - a dw.order.ReturnCase may be used as an RMA, in which
|
|
50
|
+
* case they are created when a customer first shows a wish to return item(s).
|
|
51
|
+
* The customer then includes the RMA number with the returned item(s). The
|
|
52
|
+
* dw.order.Return created as a result is then associated with the
|
|
53
|
+
* existing dw.order.ReturnCase.
|
|
54
|
+
*
|
|
55
|
+
* Or - a dw.order.ReturnCase is automatically created as part of
|
|
56
|
+
* the return creation, i.e. the customer returns some item(s) leading to a
|
|
57
|
+
* creation of both a dw.order.Return and an associated
|
|
58
|
+
* dw.order.ReturnCase.
|
|
59
|
+
*
|
|
60
|
+
* The scripting api allows access to the dw.order.ReturnCases, whether
|
|
61
|
+
* the dw.order.ReturnCase is an RMA or not, and the
|
|
62
|
+
* dw.order.ReturnCase status. Both the dw.order.ReturnCaseItems
|
|
63
|
+
* and any dw.order.Returns associated with the
|
|
64
|
+
* dw.order.ReturnCase can be accessed.
|
|
65
|
+
*
|
|
66
|
+
* A dw.order.ReturnCase has one of these status values:
|
|
67
|
+
*
|
|
68
|
+
* - New - the dw.order.ReturnCase has been created and can be edited
|
|
69
|
+
* previous to its authorization
|
|
70
|
+
* - CONFIRMED - the dw.order.ReturnCase is CONFIRMED, can no longer
|
|
71
|
+
* be edited, no dw.order.Returns have been associated with it. Only an
|
|
72
|
+
* New- dw.order.ReturnCase can be CONFIRMED
|
|
73
|
+
* - PARTIAL_RETURNED - the dw.order.ReturnCase has been associated
|
|
74
|
+
* with at least one dw.order.Return, but is not yet complete. Only an
|
|
75
|
+
* CONFIRMED- dw.order.ReturnCase can be set to PARTIAL_RETURNED
|
|
76
|
+
* - RETURNED - the dw.order.ReturnCase has been associated with
|
|
77
|
+
* dw.order.Returns which match the expected authorized quantity. Only
|
|
78
|
+
* an CONFIRMED- or PARTIAL_RETURNED- return-case can be set to RETURNED
|
|
79
|
+
* - Cancelled - the dw.order.ReturnCase has been cancelled (only a
|
|
80
|
+
* New- or CONFIRMED- dw.order.ReturnCase can be cancelled)
|
|
81
|
+
*
|
|
82
|
+
* dw.order.Return
|
|
83
|
+
* A dw.order.Return represents a physical customer return, and contains
|
|
84
|
+
* 1..n dw.order.ReturnItems. A dw.order.Return is associated
|
|
85
|
+
* with one dw.order.ReturnCase, and each dw.order.ReturnItem is
|
|
86
|
+
* associated with one dw.order.ReturnCaseItem and (via the
|
|
87
|
+
* dw.order.ReturnCaseItem) a single dw.order.OrderItem usually
|
|
88
|
+
* representing an dw.order.Order dw.order.ProductLineItem.
|
|
89
|
+
*
|
|
90
|
+
* A dw.order.ReturnItem records the quantity returned.
|
|
91
|
+
*
|
|
92
|
+
* A dw.order.Return can have one of these status values:
|
|
93
|
+
*
|
|
94
|
+
* - NEW - the dw.order.Return is new, i.e. needs to undergo a check
|
|
95
|
+
* before it can be marked as COMPLETED
|
|
96
|
+
* - COMPLETED - the return is complete, this is a precondition for refunding
|
|
97
|
+
* the customer for a return.
|
|
98
|
+
*
|
|
99
|
+
* Credit Invoice
|
|
100
|
+
* As a result of making a dw.order.Return, the customer may be
|
|
101
|
+
* refunded. The refund amount is held in a credit dw.order.Invoice
|
|
102
|
+
* which may be associated either with one dw.order.Return
|
|
103
|
+
* or with one dw.order.ReturnCase. The dw.order.Invoice
|
|
104
|
+
* is passed to the refund payment hook allowing custom code to handle
|
|
105
|
+
* the payment refund.
|
|
106
|
+
*
|
|
107
|
+
* Process overview
|
|
108
|
+
* Create dw.order.ReturnCase
|
|
109
|
+
* The creation of dw.order.ReturnCases is supported using the data-api.
|
|
110
|
+
* The api supports, within the context of an dw.order.Order, the
|
|
111
|
+
* specification of an (optional) RMA-number and addition of
|
|
112
|
+
* dw.order.ReturnCaseItems for a given order-item and quantity.
|
|
113
|
+
* Authorize dw.order.ReturnCase
|
|
114
|
+
* Following its creation, a dw.order.ReturnCase needs to be CONFIRMED -
|
|
115
|
+
* an CONFIRMED dw.order.ReturnCase cannot be modified.
|
|
116
|
+
* Cancel dw.order.ReturnCase
|
|
117
|
+
* Following its creation or authorization, a dw.order.ReturnCase may be
|
|
118
|
+
* cancelled.
|
|
119
|
+
* Create dw.order.Return
|
|
120
|
+
* dw.order.Returns may be imported or created via the data-api. These
|
|
121
|
+
* apis specify an (optional) RMA allowing a dw.order.Return to be
|
|
122
|
+
* associated with a dw.order.ReturnCase, and
|
|
123
|
+
* dw.order.ReturnItems with a quantity and a key allowing them to be
|
|
124
|
+
* associated with an order-item. The process is delegated to custom scripts
|
|
125
|
+
* which control the creation of the dw.order.Return and the addition of
|
|
126
|
+
* the dw.order.ReturnItems:
|
|
127
|
+
*
|
|
128
|
+
* Hook extensionPointCreateReturn
|
|
129
|
+
* The creation of the new dw.order.Return is delegated to the custom
|
|
130
|
+
* script when this hook is called, passing the order, and details of the
|
|
131
|
+
* dw.order.Return to be created to the script. Typically the script
|
|
132
|
+
* accesses the dw.order.ReturnCase from the order and creates the
|
|
133
|
+
* return with the provided return-number. It may also update the
|
|
134
|
+
* dw.order.Order, dw.order.ReturnCase or
|
|
135
|
+
* dw.order.Return using custom values passed in the
|
|
136
|
+
* dw.order.Return details.
|
|
137
|
+
*
|
|
138
|
+
* `
|
|
139
|
+
*
|
|
140
|
+
* exports.createReturn = function (order:Order, returnDetails) {
|
|
141
|
+
*
|
|
142
|
+
* var returnNumber=returnDetails.returnNumber;
|
|
143
|
+
*
|
|
144
|
+
* var returnCase = order.getReturnCase(returnDetails.returnCaseNumber);
|
|
145
|
+
*
|
|
146
|
+
* var newReturn = returnCase.createReturn(returnNumber);
|
|
147
|
+
*
|
|
148
|
+
* return newReturn;
|
|
149
|
+
*
|
|
150
|
+
* }`
|
|
151
|
+
*
|
|
152
|
+
* Hook extensionPointAddReturnItem
|
|
153
|
+
* This call delegates the creation of individual dw.order.ReturnItems
|
|
154
|
+
* to a custom script, passing the dw.order.Order, returnNumber,
|
|
155
|
+
* returnCaseItemId and return-item-details. Typically the script will access
|
|
156
|
+
* the dw.order.ReturnCaseItem from the order and create a new
|
|
157
|
+
* dw.order.ReturnItem for it.
|
|
158
|
+
*
|
|
159
|
+
* `exports.addReturnItem = function (retrn:Return, returnItemDetails) {
|
|
160
|
+
*
|
|
161
|
+
* var returnCaseItem = order.getReturnCaseItem(returnCaseItemId);
|
|
162
|
+
*
|
|
163
|
+
* var item = returnCaseItem.createReturnItem(returnNr);
|
|
164
|
+
*
|
|
165
|
+
* `
|
|
166
|
+
*
|
|
167
|
+
* Hook extensionPointChangeStatus
|
|
168
|
+
* This call delegates the update of the return-status to a custom script,
|
|
169
|
+
* passing the dw.order.Order, returnNumber and new status. The custom
|
|
170
|
+
* script is responsible for setting the status and taking any other actions
|
|
171
|
+
* necessary, including the possibility of creating a credit invoice:
|
|
172
|
+
*
|
|
173
|
+
* `changeStatus = function (retrn:Return, status) {
|
|
174
|
+
*
|
|
175
|
+
* retrn.status=status;
|
|
176
|
+
*
|
|
177
|
+
* `
|
|
178
|
+
*
|
|
179
|
+
* Hook extensionPointAfterStatusChange
|
|
180
|
+
* This call delegates the update of the return-status to a custom script,
|
|
181
|
+
* passing the dw.order.Order, returnNumber and new status. The custom
|
|
182
|
+
* script is responsible for setting the status and taking any other actions
|
|
183
|
+
* necessary, including the possibility of creating a credit invoice:
|
|
184
|
+
*
|
|
185
|
+
* `changeStatus = function (retrn:Return, status) {
|
|
186
|
+
*
|
|
187
|
+
* retrn.status=status;
|
|
188
|
+
*
|
|
189
|
+
* `
|
|
190
|
+
*
|
|
191
|
+
* Order post-processing APIs (gillian) are now inactive by default and will throw
|
|
192
|
+
* an exception if accessed. Activation needs preliminary approval by Product Management.
|
|
193
|
+
* Please contact support in this case. Existing customers using these APIs are not
|
|
194
|
+
* affected by this change and can use the APIs until further notice.
|
|
195
|
+
*/
|
|
196
|
+
declare interface ReturnHooks {
|
|
197
|
+
/**
|
|
198
|
+
* The extension point name extensionPointAddReturnItem.
|
|
199
|
+
*/
|
|
200
|
+
readonly extensionPointAddReturnItem: "dw.order.return.addReturnItem";
|
|
201
|
+
/**
|
|
202
|
+
* The extension point name extensionPointAfterStatusChange.
|
|
203
|
+
*/
|
|
204
|
+
readonly extensionPointAfterStatusChange: "dw.order.return.afterStatusChange";
|
|
205
|
+
/**
|
|
206
|
+
* The extension point name extensionPointChangeStatus.
|
|
207
|
+
*/
|
|
208
|
+
readonly extensionPointChangeStatus: "dw.order.return.changeStatus";
|
|
209
|
+
/**
|
|
210
|
+
* The extension point name extensionPointCreateReturn.
|
|
211
|
+
*/
|
|
212
|
+
readonly extensionPointCreateReturn: "dw.order.return.createReturn";
|
|
213
|
+
/**
|
|
214
|
+
* The extension point name extensionPointNotifyStatusChange.
|
|
215
|
+
*/
|
|
216
|
+
readonly extensionPointNotifyStatusChange: "dw.order.return.notifyStatusChange";
|
|
217
|
+
/**
|
|
218
|
+
* The hook provides customization in the process of assigning the returned
|
|
219
|
+
* amount, quantity etc. Here it is possible to refund differently based on
|
|
220
|
+
* the return reason code for example. Also one could correct the inventory
|
|
221
|
+
* based on the return information. Utilize
|
|
222
|
+
* dw.order.ReturnCaseItem.createReturnItem to create a new
|
|
223
|
+
* dw.order.ReturnItem.
|
|
224
|
+
*/
|
|
225
|
+
addReturnItem(retrn: Return, inputData: any): Status;
|
|
226
|
+
/**
|
|
227
|
+
* Called after method changeStatus returns
|
|
228
|
+
* Status.OK. The call is made in a separate database transaction allowing
|
|
229
|
+
* the script implementation to make an independent remote call if desired.
|
|
230
|
+
*/
|
|
231
|
+
afterStatusChange(retrn: Return): Status;
|
|
232
|
+
/**
|
|
233
|
+
* Responsible to change the status of a dw.order.Return: the custom
|
|
234
|
+
* script is responsible for setting the new status using
|
|
235
|
+
* dw.order.Return.setStatus.
|
|
236
|
+
*
|
|
237
|
+
* The invoice handling should be implemented here using
|
|
238
|
+
* dw.order.Return.createInvoice or
|
|
239
|
+
* dw.order.ReturnCase.createInvoice. For example create an
|
|
240
|
+
* dw.order.Invoice for a dw.order.Return moving to status
|
|
241
|
+
* dw.order.Return.STATUS_COMPLETED.
|
|
242
|
+
*/
|
|
243
|
+
changeStatus(retrn: Return, inputData: any): Status;
|
|
244
|
+
/**
|
|
245
|
+
* This hook is responsible for creating a new dw.order.Return,
|
|
246
|
+
* based on a dw.order.ReturnCase. 2 basic workflows are supported:
|
|
247
|
+
*
|
|
248
|
+
* -
|
|
249
|
+
* On-the-fly return: create the parent dw.order.ReturnCase using
|
|
250
|
+
* dw.order.Order.createReturnCase.
|
|
251
|
+
* -
|
|
252
|
+
* Return-merchandise-authorization (RMA) workflow: resolve an existing
|
|
253
|
+
* dw.order.ReturnCase using
|
|
254
|
+
* dw.order.Order.getReturnCase.
|
|
255
|
+
*
|
|
256
|
+
* In both cases use dw.order.ReturnCase.createReturn to create the dw.order.Return based on the inputData.
|
|
257
|
+
*
|
|
258
|
+
* Additional functionality like creating history entry, handling the return
|
|
259
|
+
* fees or the shipping cost credit can be implemented in the hook after the
|
|
260
|
+
* dw.order.Return is created.
|
|
261
|
+
*/
|
|
262
|
+
createReturn(inputData: any): Return;
|
|
263
|
+
/**
|
|
264
|
+
* Called after method changeStatus returns
|
|
265
|
+
* Status.OK (and after method afterStatusChange)
|
|
266
|
+
* to inform of a successful status change. The call is made outside any
|
|
267
|
+
* database transaction. This is the best hook in which to send customer
|
|
268
|
+
* notifications as the status change has already been successfully written
|
|
269
|
+
* to the database
|
|
270
|
+
*/
|
|
271
|
+
notifyStatusChange(retrn: Return): Status;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export = ReturnHooks;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import ShippingOrder = require('../ShippingOrder');
|
|
2
|
+
import Status = require('../../system/Status');
|
|
3
|
+
import Order = require('../Order');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This interface represents all script hooks that can be registered around
|
|
7
|
+
* shipping order lifecycle. It contains the extension points (hook names), and
|
|
8
|
+
* the functions that are called by each extension point. A function must be
|
|
9
|
+
* defined inside a JavaScript source and must be exported. The script with the
|
|
10
|
+
* exported hook function must be located inside a site cartridge. Inside the
|
|
11
|
+
* site cartridge a 'package.json' file with a 'hooks' entry must exist.
|
|
12
|
+
*
|
|
13
|
+
* "hooks": "./hooks.json"
|
|
14
|
+
*
|
|
15
|
+
* The hooks entry links to a json file, relative to the 'package.json' file.
|
|
16
|
+
* This file lists all registered hooks inside the hooks property:
|
|
17
|
+
*
|
|
18
|
+
* ```
|
|
19
|
+
* "hooks": [
|
|
20
|
+
* {"name": "dw.order.shippingorder.updateShippingOrderItem", "script": "./shippingOrderUpdate.ds"},
|
|
21
|
+
* ]
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* A hook entry has a 'name' and a 'script' property.
|
|
25
|
+
*
|
|
26
|
+
* - The 'name' contains the extension point, the hook name.
|
|
27
|
+
* - The 'script' contains the script relative to the hooks file, with the
|
|
28
|
+
* exported hook function.
|
|
29
|
+
*
|
|
30
|
+
* Order post-processing APIs (gillian) are now inactive by default and will throw
|
|
31
|
+
* an exception if accessed. Activation needs preliminary approval by Product Management.
|
|
32
|
+
* Please contact support in this case. Existing customers using these APIs are not
|
|
33
|
+
* affected by this change and can use the APIs until further notice.
|
|
34
|
+
*/
|
|
35
|
+
declare interface ShippingOrderHooks {
|
|
36
|
+
/**
|
|
37
|
+
* The extension point name extensionPointAfterStatusChange.
|
|
38
|
+
*/
|
|
39
|
+
readonly extensionPointAfterStatusChange: "dw.order.shippingorder.afterStatusChange";
|
|
40
|
+
/**
|
|
41
|
+
* The extension point name extensionPointChangeStatus.
|
|
42
|
+
*/
|
|
43
|
+
readonly extensionPointChangeStatus: "dw.order.shippingorder.changeStatus";
|
|
44
|
+
/**
|
|
45
|
+
* The extension point name extensionPointCreateShippingOrders.
|
|
46
|
+
*/
|
|
47
|
+
readonly extensionPointCreateShippingOrders: "dw.order.shippingorder.createShippingOrders";
|
|
48
|
+
/**
|
|
49
|
+
* The extension point name extensionPointNotifyStatusChange.
|
|
50
|
+
*/
|
|
51
|
+
readonly extensionPointNotifyStatusChange: "dw.order.shippingorder.notifyStatusChange";
|
|
52
|
+
/**
|
|
53
|
+
* The extension point name
|
|
54
|
+
* extensionPointPrepareCreateShippingOrders.
|
|
55
|
+
*/
|
|
56
|
+
readonly extensionPointPrepareCreateShippingOrders: "dw.order.shippingorder.prepareCreateShippingOrders";
|
|
57
|
+
/**
|
|
58
|
+
* The extension point name extensionPointResolveShippingOrder .
|
|
59
|
+
*/
|
|
60
|
+
readonly extensionPointResolveShippingOrder: "dw.order.shippingorder.resolveShippingOrder";
|
|
61
|
+
/**
|
|
62
|
+
* The extension point name extensionPointShippingOrderCancelled.
|
|
63
|
+
*/
|
|
64
|
+
readonly extensionPointShippingOrderCancelled: "dw.order.shippingorder.setShippingOrderCancelled";
|
|
65
|
+
/**
|
|
66
|
+
* The extension point name extensionPointShippingOrderShipped.
|
|
67
|
+
*/
|
|
68
|
+
readonly extensionPointShippingOrderShipped: "dw.order.shippingorder.setShippingOrderShipped";
|
|
69
|
+
/**
|
|
70
|
+
* The extension point name extensionPointShippingOrderWarehouse.
|
|
71
|
+
*/
|
|
72
|
+
readonly extensionPointShippingOrderWarehouse: "dw.order.shippingorder.setShippingOrderWarehouse";
|
|
73
|
+
/**
|
|
74
|
+
* The extension point name extensionPointUpdateShippingOrderItem.
|
|
75
|
+
*/
|
|
76
|
+
readonly extensionPointUpdateShippingOrderItem: "dw.order.shippingorder.updateShippingOrderItem";
|
|
77
|
+
/**
|
|
78
|
+
* After Status change hook.
|
|
79
|
+
*
|
|
80
|
+
* The function is called by extension point
|
|
81
|
+
* extensionPointAfterStatusChange.
|
|
82
|
+
*
|
|
83
|
+
* The implementation of this hook is optional. If defined the hook is
|
|
84
|
+
* called after extensionPointChangeStatus or respectively after
|
|
85
|
+
* extensionPointShippingOrderShipped,
|
|
86
|
+
* extensionPointShippingOrderCancelled or
|
|
87
|
+
* extensionPointShippingOrderWarehouse
|
|
88
|
+
*
|
|
89
|
+
* Runs inside of a transaction.
|
|
90
|
+
*/
|
|
91
|
+
afterStatusChange(shippingOrder: ShippingOrder): Status;
|
|
92
|
+
/**
|
|
93
|
+
* Change the status of a shipping order.
|
|
94
|
+
*
|
|
95
|
+
* The function is called by extension point
|
|
96
|
+
* extensionPointChangeStatus.
|
|
97
|
+
*
|
|
98
|
+
* Runs inside a transaction together with the hooks
|
|
99
|
+
* extensionPointResolveShippingOrder
|
|
100
|
+
* extensionPointUpdateShippingOrderItem.
|
|
101
|
+
*
|
|
102
|
+
* Runs after the iteration over the input's items collection as the last
|
|
103
|
+
* step in this transaction. The implementation of this hook is mandatory.
|
|
104
|
+
*/
|
|
105
|
+
changeStatus(shippingOrder: ShippingOrder, updateData: any): Status;
|
|
106
|
+
/**
|
|
107
|
+
* Called during shipping order creation for an order.
|
|
108
|
+
*
|
|
109
|
+
* The function is called by extension point
|
|
110
|
+
* extensionPointCreateShippingOrders. It is responsible for
|
|
111
|
+
* creating shipping orders and its items for the order. Preparations for
|
|
112
|
+
* shipping order creation can be done before in hook
|
|
113
|
+
* extensionPointPrepareCreateShippingOrders.
|
|
114
|
+
*
|
|
115
|
+
* Runs inside of a transaction. The implementation of this hook is
|
|
116
|
+
* mandatory.
|
|
117
|
+
*/
|
|
118
|
+
createShippingOrders(order: Order): Status;
|
|
119
|
+
/**
|
|
120
|
+
* Notify Status change hook.
|
|
121
|
+
*
|
|
122
|
+
* The function is called by extension point
|
|
123
|
+
* extensionPointNotifyStatusChange.
|
|
124
|
+
*
|
|
125
|
+
* The implementation of this hook is optional. If defined the hook is
|
|
126
|
+
* called after extensionPointAfterStatusChange as the last step
|
|
127
|
+
* in the shipping order update process.
|
|
128
|
+
*
|
|
129
|
+
* Runs outside of a transaction.
|
|
130
|
+
*/
|
|
131
|
+
notifyStatusChange(shippingOrder: ShippingOrder): Status;
|
|
132
|
+
/**
|
|
133
|
+
* Called before shipping order creation for an order takes place. Typically
|
|
134
|
+
* the hook is used to check the payment authorization status of the order.
|
|
135
|
+
*
|
|
136
|
+
* The function is called by extension point
|
|
137
|
+
* extensionPointPrepareCreateShippingOrders.
|
|
138
|
+
*
|
|
139
|
+
* Runs inside its own transaction. The value of the return status is used
|
|
140
|
+
* to control whether hook createShippingOrders is called
|
|
141
|
+
* for the order or not. The implementation of this hook is mandatory.
|
|
142
|
+
*/
|
|
143
|
+
prepareCreateShippingOrders(order: Order): Status;
|
|
144
|
+
/**
|
|
145
|
+
* Resolve the shipping order. Will be called as first step of the update.
|
|
146
|
+
*
|
|
147
|
+
* The function is called by extension point
|
|
148
|
+
* extensionPointResolveShippingOrder.
|
|
149
|
+
*
|
|
150
|
+
* Runs inside a transaction together with the hooks
|
|
151
|
+
*
|
|
152
|
+
* extensionPointUpdateShippingOrderItem
|
|
153
|
+
* extensionPointChangeStatus. The implementation of this hook is
|
|
154
|
+
* mandatory.
|
|
155
|
+
*/
|
|
156
|
+
resolveShippingOrder(updateData: any): ShippingOrder;
|
|
157
|
+
/**
|
|
158
|
+
* Change the status of a shipping order to cancelled.
|
|
159
|
+
*
|
|
160
|
+
* The function is called by extension point
|
|
161
|
+
* extensionPointShippingOrderCancelled.
|
|
162
|
+
*
|
|
163
|
+
* This is an optional hook that can be implemented to have full control
|
|
164
|
+
* over status change to destination status Cancelled. The following hooks
|
|
165
|
+
* will be skipped if an implementation for this hook is registered:
|
|
166
|
+
* extensionPointResolveShippingOrder,
|
|
167
|
+
* extensionPointUpdateShippingOrderItem,
|
|
168
|
+
* extensionPointChangeStatus.
|
|
169
|
+
*
|
|
170
|
+
* Runs inside of a transaction.
|
|
171
|
+
*/
|
|
172
|
+
setShippingOrderCancelled(updateData: any): Order;
|
|
173
|
+
/**
|
|
174
|
+
* Change the status of a shipping order to shipped.
|
|
175
|
+
*
|
|
176
|
+
* The function is called by extension point
|
|
177
|
+
* extensionPointShippingOrderShipped.
|
|
178
|
+
*
|
|
179
|
+
* This is an optional hook that can be implemented to have full control
|
|
180
|
+
* over status change to destination status Shipped. The following hooks
|
|
181
|
+
* will be skipped if an implementation for this hook is registered:
|
|
182
|
+
* extensionPointResolveShippingOrder
|
|
183
|
+
* extensionPointUpdateShippingOrderItem,
|
|
184
|
+
* extensionPointChangeStatus.
|
|
185
|
+
*
|
|
186
|
+
* Runs inside of a transaction.
|
|
187
|
+
*/
|
|
188
|
+
setShippingOrderShipped(updateData: any): Order;
|
|
189
|
+
/**
|
|
190
|
+
* Change the status of a shipping order to warehouse.
|
|
191
|
+
*
|
|
192
|
+
* The function is called by extension point
|
|
193
|
+
* extensionPointShippingOrderWarehouse.
|
|
194
|
+
*
|
|
195
|
+
* This is an optional hook that can be implemented to have full control
|
|
196
|
+
* over status change to destination status Warehouse. The following hooks
|
|
197
|
+
* will be skipped if an implementation for this hook is registered:
|
|
198
|
+
* extensionPointResolveShippingOrder,
|
|
199
|
+
* extensionPointUpdateShippingOrderItem,
|
|
200
|
+
* extensionPointChangeStatus.
|
|
201
|
+
*
|
|
202
|
+
* Runs inside of a transaction.
|
|
203
|
+
*/
|
|
204
|
+
setShippingOrderWarehouse(updateData: any): Order;
|
|
205
|
+
/**
|
|
206
|
+
* Updates the status of a shipping order item.
|
|
207
|
+
*
|
|
208
|
+
* The function is called by extension point
|
|
209
|
+
* extensionPointUpdateShippingOrderItem.
|
|
210
|
+
*
|
|
211
|
+
* Runs inside a transaction together with the hooks
|
|
212
|
+
*
|
|
213
|
+
* extensionPointResolveShippingOrder
|
|
214
|
+
* extensionPointChangeStatus. The implementation of this hook is
|
|
215
|
+
* mandatory.
|
|
216
|
+
*/
|
|
217
|
+
updateShippingOrderItem(shippingOrder: ShippingOrder, updateItem: any): Status;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export = ShippingOrderHooks;
|