@salesforce/b2c-tooling-sdk 0.0.1 → 0.0.2
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/README.md +158 -29
- package/data/script-api/TopLevel.APIException.md +119 -0
- package/data/script-api/TopLevel.Array.md +732 -0
- package/data/script-api/TopLevel.ArrayBuffer.md +97 -0
- package/data/script-api/TopLevel.BigInt.md +154 -0
- package/data/script-api/TopLevel.Boolean.md +83 -0
- package/data/script-api/TopLevel.ConversionError.md +51 -0
- package/data/script-api/TopLevel.DataView.md +271 -0
- package/data/script-api/TopLevel.Date.md +688 -0
- package/data/script-api/TopLevel.ES6Iterator.md +47 -0
- package/data/script-api/TopLevel.Error.md +124 -0
- package/data/script-api/TopLevel.EvalError.md +47 -0
- package/data/script-api/TopLevel.Fault.md +133 -0
- package/data/script-api/TopLevel.Float32Array.md +186 -0
- package/data/script-api/TopLevel.Float64Array.md +186 -0
- package/data/script-api/TopLevel.Function.md +114 -0
- package/data/script-api/TopLevel.Generator.md +132 -0
- package/data/script-api/TopLevel.IOError.md +98 -0
- package/data/script-api/TopLevel.Int16Array.md +186 -0
- package/data/script-api/TopLevel.Int32Array.md +186 -0
- package/data/script-api/TopLevel.Int8Array.md +186 -0
- package/data/script-api/TopLevel.InternalError.md +47 -0
- package/data/script-api/TopLevel.Iterable.md +44 -0
- package/data/script-api/TopLevel.Iterator.md +89 -0
- package/data/script-api/TopLevel.JSON.md +173 -0
- package/data/script-api/TopLevel.Map.md +189 -0
- package/data/script-api/TopLevel.Math.md +948 -0
- package/data/script-api/TopLevel.Module.md +152 -0
- package/data/script-api/TopLevel.Namespace.md +152 -0
- package/data/script-api/TopLevel.Number.md +404 -0
- package/data/script-api/TopLevel.Object.md +472 -0
- package/data/script-api/TopLevel.QName.md +147 -0
- package/data/script-api/TopLevel.RangeError.md +47 -0
- package/data/script-api/TopLevel.ReferenceError.md +47 -0
- package/data/script-api/TopLevel.RegExp.md +155 -0
- package/data/script-api/TopLevel.Set.md +150 -0
- package/data/script-api/TopLevel.StopIteration.md +36 -0
- package/data/script-api/TopLevel.String.md +1060 -0
- package/data/script-api/TopLevel.Symbol.md +196 -0
- package/data/script-api/TopLevel.SyntaxError.md +47 -0
- package/data/script-api/TopLevel.SystemError.md +99 -0
- package/data/script-api/TopLevel.TypeError.md +47 -0
- package/data/script-api/TopLevel.URIError.md +47 -0
- package/data/script-api/TopLevel.Uint16Array.md +186 -0
- package/data/script-api/TopLevel.Uint32Array.md +186 -0
- package/data/script-api/TopLevel.Uint8Array.md +186 -0
- package/data/script-api/TopLevel.Uint8ClampedArray.md +186 -0
- package/data/script-api/TopLevel.WeakMap.md +135 -0
- package/data/script-api/TopLevel.WeakSet.md +96 -0
- package/data/script-api/TopLevel.XML.md +922 -0
- package/data/script-api/TopLevel.XMLList.md +418 -0
- package/data/script-api/TopLevel.XMLStreamError.md +115 -0
- package/data/script-api/TopLevel.arguments.md +56 -0
- package/data/script-api/TopLevel.global.md +539 -0
- package/data/script-api/TopLevel.md +58 -0
- package/data/script-api/dw.alert.Alert.md +175 -0
- package/data/script-api/dw.alert.Alerts.md +256 -0
- package/data/script-api/dw.alert.md +7 -0
- package/data/script-api/dw.campaign.ABTest.md +63 -0
- package/data/script-api/dw.campaign.ABTestMgr.md +76 -0
- package/data/script-api/dw.campaign.ABTestSegment.md +107 -0
- package/data/script-api/dw.campaign.AmountDiscount.md +70 -0
- package/data/script-api/dw.campaign.ApproachingDiscount.md +157 -0
- package/data/script-api/dw.campaign.BonusChoiceDiscount.md +190 -0
- package/data/script-api/dw.campaign.BonusDiscount.md +59 -0
- package/data/script-api/dw.campaign.Campaign.md +346 -0
- package/data/script-api/dw.campaign.CampaignMgr.md +436 -0
- package/data/script-api/dw.campaign.CampaignStatusCodes.md +103 -0
- package/data/script-api/dw.campaign.Coupon.md +324 -0
- package/data/script-api/dw.campaign.CouponMgr.md +137 -0
- package/data/script-api/dw.campaign.CouponRedemption.md +87 -0
- package/data/script-api/dw.campaign.CouponStatusCodes.md +130 -0
- package/data/script-api/dw.campaign.Discount.md +271 -0
- package/data/script-api/dw.campaign.DiscountPlan.md +322 -0
- package/data/script-api/dw.campaign.FixedPriceDiscount.md +74 -0
- package/data/script-api/dw.campaign.FixedPriceShippingDiscount.md +74 -0
- package/data/script-api/dw.campaign.FreeDiscount.md +24 -0
- package/data/script-api/dw.campaign.FreeShippingDiscount.md +24 -0
- package/data/script-api/dw.campaign.PercentageDiscount.md +74 -0
- package/data/script-api/dw.campaign.PercentageOptionDiscount.md +59 -0
- package/data/script-api/dw.campaign.PriceBookPriceDiscount.md +56 -0
- package/data/script-api/dw.campaign.Promotion.md +939 -0
- package/data/script-api/dw.campaign.PromotionMgr.md +478 -0
- package/data/script-api/dw.campaign.PromotionPlan.md +378 -0
- package/data/script-api/dw.campaign.SlotContent.md +131 -0
- package/data/script-api/dw.campaign.SourceCodeGroup.md +83 -0
- package/data/script-api/dw.campaign.SourceCodeInfo.md +167 -0
- package/data/script-api/dw.campaign.SourceCodeStatusCodes.md +61 -0
- package/data/script-api/dw.campaign.TotalFixedPriceDiscount.md +56 -0
- package/data/script-api/dw.campaign.md +36 -0
- package/data/script-api/dw.catalog.Catalog.md +158 -0
- package/data/script-api/dw.catalog.CatalogMgr.md +155 -0
- package/data/script-api/dw.catalog.Category.md +1212 -0
- package/data/script-api/dw.catalog.CategoryAssignment.md +179 -0
- package/data/script-api/dw.catalog.CategoryLink.md +142 -0
- package/data/script-api/dw.catalog.PriceBook.md +215 -0
- package/data/script-api/dw.catalog.PriceBookMgr.md +176 -0
- package/data/script-api/dw.catalog.Product.md +2492 -0
- package/data/script-api/dw.catalog.ProductActiveData.md +1244 -0
- package/data/script-api/dw.catalog.ProductAttributeModel.md +409 -0
- package/data/script-api/dw.catalog.ProductAvailabilityLevels.md +125 -0
- package/data/script-api/dw.catalog.ProductAvailabilityModel.md +516 -0
- package/data/script-api/dw.catalog.ProductInventoryList.md +136 -0
- package/data/script-api/dw.catalog.ProductInventoryMgr.md +132 -0
- package/data/script-api/dw.catalog.ProductInventoryRecord.md +638 -0
- package/data/script-api/dw.catalog.ProductLink.md +166 -0
- package/data/script-api/dw.catalog.ProductMgr.md +136 -0
- package/data/script-api/dw.catalog.ProductOption.md +189 -0
- package/data/script-api/dw.catalog.ProductOptionModel.md +209 -0
- package/data/script-api/dw.catalog.ProductOptionValue.md +132 -0
- package/data/script-api/dw.catalog.ProductPriceInfo.md +170 -0
- package/data/script-api/dw.catalog.ProductPriceModel.md +988 -0
- package/data/script-api/dw.catalog.ProductPriceTable.md +121 -0
- package/data/script-api/dw.catalog.ProductSearchHit.md +702 -0
- package/data/script-api/dw.catalog.ProductSearchModel.md +1894 -0
- package/data/script-api/dw.catalog.ProductSearchRefinementDefinition.md +99 -0
- package/data/script-api/dw.catalog.ProductSearchRefinementValue.md +80 -0
- package/data/script-api/dw.catalog.ProductSearchRefinements.md +265 -0
- package/data/script-api/dw.catalog.ProductVariationAttribute.md +107 -0
- package/data/script-api/dw.catalog.ProductVariationAttributeValue.md +215 -0
- package/data/script-api/dw.catalog.ProductVariationModel.md +1010 -0
- package/data/script-api/dw.catalog.Recommendation.md +327 -0
- package/data/script-api/dw.catalog.SearchModel.md +769 -0
- package/data/script-api/dw.catalog.SearchRefinementDefinition.md +145 -0
- package/data/script-api/dw.catalog.SearchRefinementValue.md +194 -0
- package/data/script-api/dw.catalog.SearchRefinements.md +238 -0
- package/data/script-api/dw.catalog.SortingOption.md +120 -0
- package/data/script-api/dw.catalog.SortingRule.md +53 -0
- package/data/script-api/dw.catalog.Store.md +484 -0
- package/data/script-api/dw.catalog.StoreGroup.md +95 -0
- package/data/script-api/dw.catalog.StoreInventoryFilter.md +112 -0
- package/data/script-api/dw.catalog.StoreInventoryFilterValue.md +111 -0
- package/data/script-api/dw.catalog.StoreMgr.md +223 -0
- package/data/script-api/dw.catalog.Variant.md +1000 -0
- package/data/script-api/dw.catalog.VariationGroup.md +869 -0
- package/data/script-api/dw.catalog.md +50 -0
- package/data/script-api/dw.content.Content.md +481 -0
- package/data/script-api/dw.content.ContentMgr.md +147 -0
- package/data/script-api/dw.content.ContentSearchModel.md +618 -0
- package/data/script-api/dw.content.ContentSearchRefinementDefinition.md +61 -0
- package/data/script-api/dw.content.ContentSearchRefinementValue.md +22 -0
- package/data/script-api/dw.content.ContentSearchRefinements.md +218 -0
- package/data/script-api/dw.content.Folder.md +432 -0
- package/data/script-api/dw.content.Library.md +124 -0
- package/data/script-api/dw.content.MarkupText.md +150 -0
- package/data/script-api/dw.content.MediaFile.md +367 -0
- package/data/script-api/dw.content.md +15 -0
- package/data/script-api/dw.crypto.CertificateRef.md +59 -0
- package/data/script-api/dw.crypto.CertificateUtils.md +162 -0
- package/data/script-api/dw.crypto.Cipher.md +1230 -0
- package/data/script-api/dw.crypto.Encoding.md +193 -0
- package/data/script-api/dw.crypto.JWE.md +245 -0
- package/data/script-api/dw.crypto.JWEHeader.md +147 -0
- package/data/script-api/dw.crypto.JWS.md +260 -0
- package/data/script-api/dw.crypto.JWSHeader.md +128 -0
- package/data/script-api/dw.crypto.KeyRef.md +77 -0
- package/data/script-api/dw.crypto.Mac.md +191 -0
- package/data/script-api/dw.crypto.MessageDigest.md +243 -0
- package/data/script-api/dw.crypto.SecureRandom.md +161 -0
- package/data/script-api/dw.crypto.Signature.md +241 -0
- package/data/script-api/dw.crypto.WeakCipher.md +725 -0
- package/data/script-api/dw.crypto.WeakMac.md +163 -0
- package/data/script-api/dw.crypto.WeakMessageDigest.md +220 -0
- package/data/script-api/dw.crypto.WeakSignature.md +208 -0
- package/data/script-api/dw.crypto.X509Certificate.md +180 -0
- package/data/script-api/dw.crypto.md +23 -0
- package/data/script-api/dw.customer.AddressBook.md +158 -0
- package/data/script-api/dw.customer.AgentUserMgr.md +94 -0
- package/data/script-api/dw.customer.AgentUserStatusCodes.md +164 -0
- package/data/script-api/dw.customer.AuthenticationStatus.md +157 -0
- package/data/script-api/dw.customer.Credentials.md +524 -0
- package/data/script-api/dw.customer.Customer.md +488 -0
- package/data/script-api/dw.customer.CustomerActiveData.md +563 -0
- package/data/script-api/dw.customer.CustomerAddress.md +666 -0
- package/data/script-api/dw.customer.CustomerCDPData.md +70 -0
- package/data/script-api/dw.customer.CustomerContextMgr.md +62 -0
- package/data/script-api/dw.customer.CustomerGroup.md +146 -0
- package/data/script-api/dw.customer.CustomerList.md +76 -0
- package/data/script-api/dw.customer.CustomerMgr.md +1046 -0
- package/data/script-api/dw.customer.CustomerPasswordConstraints.md +125 -0
- package/data/script-api/dw.customer.CustomerPaymentInstrument.md +161 -0
- package/data/script-api/dw.customer.CustomerStatusCodes.md +55 -0
- package/data/script-api/dw.customer.EncryptedObject.md +34 -0
- package/data/script-api/dw.customer.ExternalProfile.md +154 -0
- package/data/script-api/dw.customer.OrderHistory.md +167 -0
- package/data/script-api/dw.customer.ProductList.md +870 -0
- package/data/script-api/dw.customer.ProductListItem.md +469 -0
- package/data/script-api/dw.customer.ProductListItemPurchase.md +139 -0
- package/data/script-api/dw.customer.ProductListMgr.md +350 -0
- package/data/script-api/dw.customer.ProductListRegistrant.md +165 -0
- package/data/script-api/dw.customer.Profile.md +895 -0
- package/data/script-api/dw.customer.Wallet.md +136 -0
- package/data/script-api/dw.customer.md +31 -0
- package/data/script-api/dw.customer.oauth.OAuthAccessTokenResponse.md +171 -0
- package/data/script-api/dw.customer.oauth.OAuthFinalizedResponse.md +75 -0
- package/data/script-api/dw.customer.oauth.OAuthLoginFlowMgr.md +165 -0
- package/data/script-api/dw.customer.oauth.OAuthUserInfoResponse.md +84 -0
- package/data/script-api/dw.customer.oauth.md +9 -0
- package/data/script-api/dw.customer.shoppercontext.ShopperContext.md +369 -0
- package/data/script-api/dw.customer.shoppercontext.ShopperContextErrorCodes.md +111 -0
- package/data/script-api/dw.customer.shoppercontext.ShopperContextException.md +77 -0
- package/data/script-api/dw.customer.shoppercontext.ShopperContextMgr.md +209 -0
- package/data/script-api/dw.customer.shoppercontext.md +9 -0
- package/data/script-api/dw.experience.AspectAttributeValidationException.md +25 -0
- package/data/script-api/dw.experience.Component.md +166 -0
- package/data/script-api/dw.experience.ComponentRenderSettings.md +130 -0
- package/data/script-api/dw.experience.ComponentScriptContext.md +148 -0
- package/data/script-api/dw.experience.CustomEditor.md +146 -0
- package/data/script-api/dw.experience.CustomEditorResources.md +100 -0
- package/data/script-api/dw.experience.Page.md +467 -0
- package/data/script-api/dw.experience.PageMgr.md +549 -0
- package/data/script-api/dw.experience.PageScriptContext.md +200 -0
- package/data/script-api/dw.experience.Region.md +119 -0
- package/data/script-api/dw.experience.RegionRenderSettings.md +207 -0
- package/data/script-api/dw.experience.cms.CMSRecord.md +125 -0
- package/data/script-api/dw.experience.cms.md +6 -0
- package/data/script-api/dw.experience.image.FocalPoint.md +71 -0
- package/data/script-api/dw.experience.image.Image.md +101 -0
- package/data/script-api/dw.experience.image.ImageMetaData.md +71 -0
- package/data/script-api/dw.experience.image.md +8 -0
- package/data/script-api/dw.experience.md +16 -0
- package/data/script-api/dw.extensions.applepay.ApplePayHookResult.md +254 -0
- package/data/script-api/dw.extensions.applepay.ApplePayHooks.md +572 -0
- package/data/script-api/dw.extensions.applepay.md +7 -0
- package/data/script-api/dw.extensions.facebook.FacebookFeedHooks.md +102 -0
- package/data/script-api/dw.extensions.facebook.FacebookProduct.md +1343 -0
- package/data/script-api/dw.extensions.facebook.md +7 -0
- package/data/script-api/dw.extensions.paymentapi.PaymentApiHooks.md +136 -0
- package/data/script-api/dw.extensions.paymentapi.md +6 -0
- package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHookResult.md +149 -0
- package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHooks.md +356 -0
- package/data/script-api/dw.extensions.paymentrequest.md +7 -0
- package/data/script-api/dw.extensions.payments.SalesforceAdyenPaymentIntent.md +134 -0
- package/data/script-api/dw.extensions.payments.SalesforceAdyenSavedPaymentMethod.md +283 -0
- package/data/script-api/dw.extensions.payments.SalesforceBancontactPaymentDetails.md +88 -0
- package/data/script-api/dw.extensions.payments.SalesforceCardPaymentDetails.md +107 -0
- package/data/script-api/dw.extensions.payments.SalesforceEpsPaymentDetails.md +63 -0
- package/data/script-api/dw.extensions.payments.SalesforceIdealPaymentDetails.md +63 -0
- package/data/script-api/dw.extensions.payments.SalesforceKlarnaPaymentDetails.md +63 -0
- package/data/script-api/dw.extensions.payments.SalesforcePayPalOrder.md +263 -0
- package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderAddress.md +171 -0
- package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderPayer.md +110 -0
- package/data/script-api/dw.extensions.payments.SalesforcePayPalPaymentDetails.md +88 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentDetails.md +83 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentIntent.md +273 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentMethod.md +368 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentRequest.md +1077 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsHooks.md +166 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccount.md +151 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccountPaymentMethod.md +98 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsMgr.md +941 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsSiteConfiguration.md +126 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsZone.md +393 -0
- package/data/script-api/dw.extensions.payments.SalesforceSepaDebitPaymentDetails.md +63 -0
- package/data/script-api/dw.extensions.payments.SalesforceVenmoPaymentDetails.md +88 -0
- package/data/script-api/dw.extensions.payments.md +28 -0
- package/data/script-api/dw.extensions.pinterest.PinterestAvailability.md +85 -0
- package/data/script-api/dw.extensions.pinterest.PinterestFeedHooks.md +118 -0
- package/data/script-api/dw.extensions.pinterest.PinterestOrder.md +263 -0
- package/data/script-api/dw.extensions.pinterest.PinterestOrderHooks.md +89 -0
- package/data/script-api/dw.extensions.pinterest.PinterestProduct.md +677 -0
- package/data/script-api/dw.extensions.pinterest.md +10 -0
- package/data/script-api/dw.io.CSVStreamReader.md +128 -0
- package/data/script-api/dw.io.CSVStreamWriter.md +92 -0
- package/data/script-api/dw.io.File.md +729 -0
- package/data/script-api/dw.io.FileReader.md +70 -0
- package/data/script-api/dw.io.FileWriter.md +159 -0
- package/data/script-api/dw.io.InputStream.md +35 -0
- package/data/script-api/dw.io.OutputStream.md +38 -0
- package/data/script-api/dw.io.PrintWriter.md +66 -0
- package/data/script-api/dw.io.RandomAccessFileReader.md +183 -0
- package/data/script-api/dw.io.Reader.md +284 -0
- package/data/script-api/dw.io.StringWriter.md +89 -0
- package/data/script-api/dw.io.Writer.md +96 -0
- package/data/script-api/dw.io.XMLIndentingStreamWriter.md +121 -0
- package/data/script-api/dw.io.XMLStreamConstants.md +172 -0
- package/data/script-api/dw.io.XMLStreamReader.md +1181 -0
- package/data/script-api/dw.io.XMLStreamWriter.md +478 -0
- package/data/script-api/dw.io.md +21 -0
- package/data/script-api/dw.job.JobExecution.md +111 -0
- package/data/script-api/dw.job.JobStepExecution.md +136 -0
- package/data/script-api/dw.job.md +7 -0
- package/data/script-api/dw.net.FTPClient.md +621 -0
- package/data/script-api/dw.net.FTPFileInfo.md +132 -0
- package/data/script-api/dw.net.HTTPClient.md +775 -0
- package/data/script-api/dw.net.HTTPClientLoggingConfig.md +363 -0
- package/data/script-api/dw.net.HTTPRequestPart.md +296 -0
- package/data/script-api/dw.net.Mail.md +487 -0
- package/data/script-api/dw.net.SFTPClient.md +535 -0
- package/data/script-api/dw.net.SFTPFileInfo.md +128 -0
- package/data/script-api/dw.net.WebDAVClient.md +762 -0
- package/data/script-api/dw.net.WebDAVFileInfo.md +163 -0
- package/data/script-api/dw.net.md +15 -0
- package/data/script-api/dw.object.ActiveData.md +86 -0
- package/data/script-api/dw.object.CustomAttributes.md +122 -0
- package/data/script-api/dw.object.CustomObject.md +82 -0
- package/data/script-api/dw.object.CustomObjectMgr.md +478 -0
- package/data/script-api/dw.object.Extensible.md +71 -0
- package/data/script-api/dw.object.ExtensibleObject.md +85 -0
- package/data/script-api/dw.object.Note.md +118 -0
- package/data/script-api/dw.object.ObjectAttributeDefinition.md +542 -0
- package/data/script-api/dw.object.ObjectAttributeGroup.md +160 -0
- package/data/script-api/dw.object.ObjectAttributeValueDefinition.md +78 -0
- package/data/script-api/dw.object.ObjectTypeDefinition.md +239 -0
- package/data/script-api/dw.object.PersistentObject.md +92 -0
- package/data/script-api/dw.object.SimpleExtensible.md +53 -0
- package/data/script-api/dw.object.SystemObjectMgr.md +520 -0
- package/data/script-api/dw.object.md +19 -0
- package/data/script-api/dw.order.AbstractItem.md +220 -0
- package/data/script-api/dw.order.AbstractItemCtnr.md +219 -0
- package/data/script-api/dw.order.Appeasement.md +398 -0
- package/data/script-api/dw.order.AppeasementItem.md +104 -0
- package/data/script-api/dw.order.Basket.md +867 -0
- package/data/script-api/dw.order.BasketMgr.md +673 -0
- package/data/script-api/dw.order.BonusDiscountLineItem.md +309 -0
- package/data/script-api/dw.order.CouponLineItem.md +289 -0
- package/data/script-api/dw.order.CreateAgentBasketLimitExceededException.md +35 -0
- package/data/script-api/dw.order.CreateBasketFromOrderException.md +54 -0
- package/data/script-api/dw.order.CreateCouponLineItemException.md +67 -0
- package/data/script-api/dw.order.CreateOrderException.md +23 -0
- package/data/script-api/dw.order.CreateTemporaryBasketLimitExceededException.md +35 -0
- package/data/script-api/dw.order.GiftCertificate.md +530 -0
- package/data/script-api/dw.order.GiftCertificateLineItem.md +292 -0
- package/data/script-api/dw.order.GiftCertificateMgr.md +228 -0
- package/data/script-api/dw.order.GiftCertificateStatusCodes.md +108 -0
- package/data/script-api/dw.order.Invoice.md +571 -0
- package/data/script-api/dw.order.InvoiceItem.md +199 -0
- package/data/script-api/dw.order.LineItem.md +489 -0
- package/data/script-api/dw.order.LineItemCtnr.md +2399 -0
- package/data/script-api/dw.order.Order.md +2770 -0
- package/data/script-api/dw.order.OrderAddress.md +624 -0
- package/data/script-api/dw.order.OrderItem.md +613 -0
- package/data/script-api/dw.order.OrderMgr.md +1494 -0
- package/data/script-api/dw.order.OrderPaymentInstrument.md +231 -0
- package/data/script-api/dw.order.OrderProcessStatusCodes.md +146 -0
- package/data/script-api/dw.order.PaymentCard.md +220 -0
- package/data/script-api/dw.order.PaymentInstrument.md +1416 -0
- package/data/script-api/dw.order.PaymentMethod.md +257 -0
- package/data/script-api/dw.order.PaymentMgr.md +138 -0
- package/data/script-api/dw.order.PaymentProcessor.md +106 -0
- package/data/script-api/dw.order.PaymentStatusCodes.md +70 -0
- package/data/script-api/dw.order.PaymentTransaction.md +291 -0
- package/data/script-api/dw.order.PriceAdjustment.md +745 -0
- package/data/script-api/dw.order.PriceAdjustmentLimitTypes.md +61 -0
- package/data/script-api/dw.order.ProductLineItem.md +1749 -0
- package/data/script-api/dw.order.ProductShippingCost.md +101 -0
- package/data/script-api/dw.order.ProductShippingLineItem.md +336 -0
- package/data/script-api/dw.order.ProductShippingModel.md +143 -0
- package/data/script-api/dw.order.Return.md +396 -0
- package/data/script-api/dw.order.ReturnCase.md +463 -0
- package/data/script-api/dw.order.ReturnCaseItem.md +372 -0
- package/data/script-api/dw.order.ReturnItem.md +335 -0
- package/data/script-api/dw.order.Shipment.md +1124 -0
- package/data/script-api/dw.order.ShipmentShippingCost.md +54 -0
- package/data/script-api/dw.order.ShipmentShippingModel.md +203 -0
- package/data/script-api/dw.order.ShippingLineItem.md +315 -0
- package/data/script-api/dw.order.ShippingLocation.md +313 -0
- package/data/script-api/dw.order.ShippingMethod.md +251 -0
- package/data/script-api/dw.order.ShippingMgr.md +173 -0
- package/data/script-api/dw.order.ShippingOrder.md +630 -0
- package/data/script-api/dw.order.ShippingOrderItem.md +425 -0
- package/data/script-api/dw.order.SumItem.md +158 -0
- package/data/script-api/dw.order.TaxGroup.md +128 -0
- package/data/script-api/dw.order.TaxItem.md +74 -0
- package/data/script-api/dw.order.TaxMgr.md +260 -0
- package/data/script-api/dw.order.TrackingInfo.md +261 -0
- package/data/script-api/dw.order.TrackingRef.md +108 -0
- package/data/script-api/dw.order.hooks.BasketMergeHooks.md +87 -0
- package/data/script-api/dw.order.hooks.CalculateHooks.md +139 -0
- package/data/script-api/dw.order.hooks.CheckoutHooks.md +88 -0
- package/data/script-api/dw.order.hooks.OrderHooks.md +96 -0
- package/data/script-api/dw.order.hooks.PaymentHooks.md +325 -0
- package/data/script-api/dw.order.hooks.ReturnHooks.md +395 -0
- package/data/script-api/dw.order.hooks.ShippingOrderHooks.md +426 -0
- package/data/script-api/dw.order.hooks.md +12 -0
- package/data/script-api/dw.order.md +64 -0
- package/data/script-api/dw.rpc.SOAPUtil.md +736 -0
- package/data/script-api/dw.rpc.Stub.md +373 -0
- package/data/script-api/dw.rpc.WebReference.md +133 -0
- package/data/script-api/dw.rpc.md +8 -0
- package/data/script-api/dw.sitemap.SitemapFile.md +137 -0
- package/data/script-api/dw.sitemap.SitemapMgr.md +142 -0
- package/data/script-api/dw.sitemap.md +7 -0
- package/data/script-api/dw.suggest.BrandSuggestions.md +34 -0
- package/data/script-api/dw.suggest.CategorySuggestions.md +76 -0
- package/data/script-api/dw.suggest.ContentSuggestions.md +76 -0
- package/data/script-api/dw.suggest.CustomSuggestions.md +34 -0
- package/data/script-api/dw.suggest.ProductSuggestions.md +76 -0
- package/data/script-api/dw.suggest.SearchPhraseSuggestions.md +126 -0
- package/data/script-api/dw.suggest.SuggestModel.md +471 -0
- package/data/script-api/dw.suggest.SuggestedCategory.md +51 -0
- package/data/script-api/dw.suggest.SuggestedContent.md +51 -0
- package/data/script-api/dw.suggest.SuggestedPhrase.md +70 -0
- package/data/script-api/dw.suggest.SuggestedProduct.md +55 -0
- package/data/script-api/dw.suggest.SuggestedTerm.md +143 -0
- package/data/script-api/dw.suggest.SuggestedTerms.md +144 -0
- package/data/script-api/dw.suggest.Suggestions.md +206 -0
- package/data/script-api/dw.suggest.md +19 -0
- package/data/script-api/dw.svc.FTPService.md +140 -0
- package/data/script-api/dw.svc.FTPServiceDefinition.md +97 -0
- package/data/script-api/dw.svc.HTTPFormService.md +32 -0
- package/data/script-api/dw.svc.HTTPFormServiceDefinition.md +36 -0
- package/data/script-api/dw.svc.HTTPService.md +370 -0
- package/data/script-api/dw.svc.HTTPServiceDefinition.md +290 -0
- package/data/script-api/dw.svc.LocalServiceRegistry.md +63 -0
- package/data/script-api/dw.svc.Result.md +320 -0
- package/data/script-api/dw.svc.SOAPService.md +104 -0
- package/data/script-api/dw.svc.SOAPServiceDefinition.md +32 -0
- package/data/script-api/dw.svc.Service.md +276 -0
- package/data/script-api/dw.svc.ServiceCallback.md +282 -0
- package/data/script-api/dw.svc.ServiceConfig.md +114 -0
- package/data/script-api/dw.svc.ServiceCredential.md +162 -0
- package/data/script-api/dw.svc.ServiceDefinition.md +211 -0
- package/data/script-api/dw.svc.ServiceProfile.md +152 -0
- package/data/script-api/dw.svc.ServiceRegistry.md +118 -0
- package/data/script-api/dw.svc.md +22 -0
- package/data/script-api/dw.system.AgentUserStatusCodes.md +41 -0
- package/data/script-api/dw.system.Cache.md +126 -0
- package/data/script-api/dw.system.CacheMgr.md +70 -0
- package/data/script-api/dw.system.HookMgr.md +78 -0
- package/data/script-api/dw.system.InternalObject.md +47 -0
- package/data/script-api/dw.system.JobProcessMonitor.md +103 -0
- package/data/script-api/dw.system.Log.md +198 -0
- package/data/script-api/dw.system.LogNDC.md +75 -0
- package/data/script-api/dw.system.Logger.md +216 -0
- package/data/script-api/dw.system.OrganizationPreferences.md +53 -0
- package/data/script-api/dw.system.Pipeline.md +94 -0
- package/data/script-api/dw.system.PipelineDictionary.md +42 -0
- package/data/script-api/dw.system.RESTErrorResponse.md +102 -0
- package/data/script-api/dw.system.RESTResponseMgr.md +243 -0
- package/data/script-api/dw.system.RESTSuccessResponse.md +62 -0
- package/data/script-api/dw.system.RemoteInclude.md +146 -0
- package/data/script-api/dw.system.Request.md +781 -0
- package/data/script-api/dw.system.RequestHooks.md +112 -0
- package/data/script-api/dw.system.Response.md +612 -0
- package/data/script-api/dw.system.SearchStatus.md +187 -0
- package/data/script-api/dw.system.Session.md +469 -0
- package/data/script-api/dw.system.Site.md +570 -0
- package/data/script-api/dw.system.SitePreferences.md +90 -0
- package/data/script-api/dw.system.Status.md +330 -0
- package/data/script-api/dw.system.StatusItem.md +273 -0
- package/data/script-api/dw.system.System.md +224 -0
- package/data/script-api/dw.system.Transaction.md +107 -0
- package/data/script-api/dw.system.md +32 -0
- package/data/script-api/dw.template.ISML.md +127 -0
- package/data/script-api/dw.template.Velocity.md +168 -0
- package/data/script-api/dw.template.md +7 -0
- package/data/script-api/dw.util.ArrayList.md +99 -0
- package/data/script-api/dw.util.Assert.md +341 -0
- package/data/script-api/dw.util.BigInteger.md +283 -0
- package/data/script-api/dw.util.Bytes.md +278 -0
- package/data/script-api/dw.util.Calendar.md +1051 -0
- package/data/script-api/dw.util.Collection.md +272 -0
- package/data/script-api/dw.util.Currency.md +147 -0
- package/data/script-api/dw.util.DateUtils.md +82 -0
- package/data/script-api/dw.util.Decimal.md +386 -0
- package/data/script-api/dw.util.FilteringCollection.md +140 -0
- package/data/script-api/dw.util.Geolocation.md +293 -0
- package/data/script-api/dw.util.HashMap.md +50 -0
- package/data/script-api/dw.util.HashSet.md +65 -0
- package/data/script-api/dw.util.Iterator.md +86 -0
- package/data/script-api/dw.util.LinkedHashMap.md +52 -0
- package/data/script-api/dw.util.LinkedHashSet.md +68 -0
- package/data/script-api/dw.util.List.md +429 -0
- package/data/script-api/dw.util.Locale.md +274 -0
- package/data/script-api/dw.util.Map.md +251 -0
- package/data/script-api/dw.util.MapEntry.md +68 -0
- package/data/script-api/dw.util.MappingKey.md +96 -0
- package/data/script-api/dw.util.MappingMgr.md +113 -0
- package/data/script-api/dw.util.PropertyComparator.md +122 -0
- package/data/script-api/dw.util.SecureEncoder.md +582 -0
- package/data/script-api/dw.util.SecureFilter.md +572 -0
- package/data/script-api/dw.util.SeekableIterator.md +187 -0
- package/data/script-api/dw.util.Set.md +39 -0
- package/data/script-api/dw.util.SortedMap.md +148 -0
- package/data/script-api/dw.util.SortedSet.md +173 -0
- package/data/script-api/dw.util.StringUtils.md +655 -0
- package/data/script-api/dw.util.Template.md +141 -0
- package/data/script-api/dw.util.UUIDUtils.md +34 -0
- package/data/script-api/dw.util.md +37 -0
- package/data/script-api/dw.value.EnumValue.md +105 -0
- package/data/script-api/dw.value.MimeEncodedText.md +131 -0
- package/data/script-api/dw.value.Money.md +526 -0
- package/data/script-api/dw.value.Quantity.md +299 -0
- package/data/script-api/dw.value.md +9 -0
- package/data/script-api/dw.web.CSRFProtection.md +105 -0
- package/data/script-api/dw.web.ClickStream.md +177 -0
- package/data/script-api/dw.web.ClickStreamEntry.md +255 -0
- package/data/script-api/dw.web.Cookie.md +360 -0
- package/data/script-api/dw.web.Cookies.md +59 -0
- package/data/script-api/dw.web.Form.md +84 -0
- package/data/script-api/dw.web.FormAction.md +195 -0
- package/data/script-api/dw.web.FormElement.md +211 -0
- package/data/script-api/dw.web.FormElementValidationResult.md +170 -0
- package/data/script-api/dw.web.FormField.md +642 -0
- package/data/script-api/dw.web.FormFieldOption.md +211 -0
- package/data/script-api/dw.web.FormFieldOptions.md +49 -0
- package/data/script-api/dw.web.FormGroup.md +222 -0
- package/data/script-api/dw.web.FormList.md +134 -0
- package/data/script-api/dw.web.FormListItem.md +57 -0
- package/data/script-api/dw.web.Forms.md +25 -0
- package/data/script-api/dw.web.HttpParameter.md +462 -0
- package/data/script-api/dw.web.HttpParameterMap.md +194 -0
- package/data/script-api/dw.web.LoopIterator.md +231 -0
- package/data/script-api/dw.web.PageMetaData.md +197 -0
- package/data/script-api/dw.web.PageMetaTag.md +149 -0
- package/data/script-api/dw.web.PagingModel.md +407 -0
- package/data/script-api/dw.web.Resource.md +147 -0
- package/data/script-api/dw.web.URL.md +174 -0
- package/data/script-api/dw.web.URLAction.md +95 -0
- package/data/script-api/dw.web.URLParameter.md +52 -0
- package/data/script-api/dw.web.URLRedirect.md +72 -0
- package/data/script-api/dw.web.URLRedirectMgr.md +86 -0
- package/data/script-api/dw.web.URLUtils.md +1357 -0
- package/data/script-api/dw.web.md +34 -0
- package/data/script-api/dw.ws.Port.md +126 -0
- package/data/script-api/dw.ws.WSUtil.md +728 -0
- package/data/script-api/dw.ws.WebReference2.md +137 -0
- package/data/script-api/dw.ws.md +8 -0
- package/data/script-api/index.json +3085 -0
- package/data/script-api/index.md +39 -0
- package/data/xsd/abtest.xsd +347 -0
- package/data/xsd/abtestparticipants.xsd +58 -0
- package/data/xsd/assignment.xsd +158 -0
- package/data/xsd/bmext.xsd +262 -0
- package/data/xsd/cachesettings.xsd +75 -0
- package/data/xsd/catalog.xsd +1363 -0
- package/data/xsd/coupon.xsd +206 -0
- package/data/xsd/couponredemption.xsd +58 -0
- package/data/xsd/csrfwhitelists.xsd +81 -0
- package/data/xsd/customer.xsd +411 -0
- package/data/xsd/customeractivedata.xsd +75 -0
- package/data/xsd/customercdnsettings.xsd +36 -0
- package/data/xsd/customergroup.xsd +276 -0
- package/data/xsd/customerlist.xsd +72 -0
- package/data/xsd/customerlist2.xsd +52 -0
- package/data/xsd/customerpaymentinstrument.xsd +189 -0
- package/data/xsd/customobject.xsd +68 -0
- package/data/xsd/dcext.xsd +391 -0
- package/data/xsd/feed.xsd +76 -0
- package/data/xsd/form.xsd +262 -0
- package/data/xsd/geolocation.xsd +68 -0
- package/data/xsd/giftcertificate.xsd +186 -0
- package/data/xsd/index.json +222 -0
- package/data/xsd/inventory.xsd +174 -0
- package/data/xsd/jobs.xsd +408 -0
- package/data/xsd/library.xsd +547 -0
- package/data/xsd/locales.xsd +172 -0
- package/data/xsd/metadata.xsd +315 -0
- package/data/xsd/oauth.xsd +60 -0
- package/data/xsd/order.xsd +1253 -0
- package/data/xsd/pagemetatag.xsd +110 -0
- package/data/xsd/paymentmethod.xsd +216 -0
- package/data/xsd/paymentprocessor.xsd +86 -0
- package/data/xsd/preferences.xsd +74 -0
- package/data/xsd/priceadjustmentlimits.xsd +74 -0
- package/data/xsd/pricebook.xsd +166 -0
- package/data/xsd/productlist.xsd +246 -0
- package/data/xsd/promotion.xsd +1019 -0
- package/data/xsd/redirecturl.xsd +120 -0
- package/data/xsd/returnimportfeed.xsd +82 -0
- package/data/xsd/schedules.xsd +246 -0
- package/data/xsd/search.xsd +333 -0
- package/data/xsd/search2.xsd +439 -0
- package/data/xsd/services.xsd +139 -0
- package/data/xsd/shipping.xsd +487 -0
- package/data/xsd/shippingorderupdatefeed.xsd +125 -0
- package/data/xsd/site.xsd +89 -0
- package/data/xsd/sitemapconfiguration.xsd +230 -0
- package/data/xsd/slot.xsd +292 -0
- package/data/xsd/sort.xsd +298 -0
- package/data/xsd/sourcecode.xsd +188 -0
- package/data/xsd/store.xsd +194 -0
- package/data/xsd/tax.xsd +112 -0
- package/data/xsd/urlrules.xsd +273 -0
- package/data/xsd/xml.xsd +54 -0
- package/dist/cjs/auth/api-key.d.ts +28 -0
- package/dist/cjs/auth/api-key.js +44 -0
- package/dist/cjs/auth/api-key.js.map +1 -0
- package/dist/cjs/auth/basic.d.ts +7 -0
- package/dist/cjs/auth/basic.js +18 -0
- package/dist/cjs/auth/basic.js.map +1 -0
- package/dist/cjs/auth/index.d.ts +65 -0
- package/dist/cjs/auth/index.js +69 -0
- package/dist/cjs/auth/index.js.map +1 -0
- package/dist/cjs/auth/oauth-implicit.d.ts +74 -0
- package/dist/cjs/auth/oauth-implicit.js +330 -0
- package/dist/cjs/auth/oauth-implicit.js.map +1 -0
- package/dist/cjs/auth/oauth.d.ts +48 -0
- package/dist/cjs/auth/oauth.js +178 -0
- package/dist/cjs/auth/oauth.js.map +1 -0
- package/dist/cjs/auth/resolve.d.ts +100 -0
- package/dist/cjs/auth/resolve.js +173 -0
- package/dist/cjs/auth/resolve.js.map +1 -0
- package/dist/cjs/auth/types.d.ts +101 -0
- package/dist/cjs/auth/types.js +3 -0
- package/dist/cjs/auth/types.js.map +1 -0
- package/dist/cjs/cli/base-command.d.ts +98 -0
- package/dist/cjs/cli/base-command.js +331 -0
- package/dist/cjs/cli/base-command.js.map +1 -0
- package/dist/cjs/cli/cartridge-command.d.ts +65 -0
- package/dist/cjs/cli/cartridge-command.js +142 -0
- package/dist/cjs/cli/cartridge-command.js.map +1 -0
- package/dist/cjs/cli/cartridge-providers.d.ts +149 -0
- package/dist/cjs/cli/cartridge-providers.js +103 -0
- package/dist/cjs/cli/cartridge-providers.js.map +1 -0
- package/dist/cjs/cli/config.d.ts +75 -0
- package/dist/cjs/cli/config.js +65 -0
- package/dist/cjs/cli/config.js.map +1 -0
- package/dist/cjs/cli/hooks.d.ts +231 -0
- package/dist/cjs/cli/hooks.js +3 -0
- package/dist/cjs/cli/hooks.js.map +1 -0
- package/dist/cjs/cli/index.d.ts +103 -0
- package/dist/cjs/cli/index.js +106 -0
- package/dist/cjs/cli/index.js.map +1 -0
- package/dist/cjs/cli/instance-command.d.ts +121 -0
- package/dist/cjs/cli/instance-command.js +213 -0
- package/dist/cjs/cli/instance-command.js.map +1 -0
- package/dist/cjs/cli/job-command.d.ts +32 -0
- package/dist/cjs/cli/job-command.js +60 -0
- package/dist/cjs/cli/job-command.js.map +1 -0
- package/dist/cjs/cli/lifecycle.d.ts +189 -0
- package/dist/cjs/cli/lifecycle.js +130 -0
- package/dist/cjs/cli/lifecycle.js.map +1 -0
- package/dist/cjs/cli/mrt-command.d.ts +61 -0
- package/dist/cjs/cli/mrt-command.js +113 -0
- package/dist/cjs/cli/mrt-command.js.map +1 -0
- package/dist/cjs/cli/oauth-command.d.ts +70 -0
- package/dist/cjs/cli/oauth-command.js +173 -0
- package/dist/cjs/cli/oauth-command.js.map +1 -0
- package/dist/cjs/cli/ods-command.d.ts +70 -0
- package/dist/cjs/cli/ods-command.js +79 -0
- package/dist/cjs/cli/ods-command.js.map +1 -0
- package/dist/cjs/cli/table.d.ts +113 -0
- package/dist/cjs/cli/table.js +175 -0
- package/dist/cjs/cli/table.js.map +1 -0
- package/dist/cjs/cli/webdav-command.d.ts +100 -0
- package/dist/cjs/cli/webdav-command.js +106 -0
- package/dist/cjs/cli/webdav-command.js.map +1 -0
- package/dist/cjs/clients/custom-apis.d.ts +137 -0
- package/dist/cjs/clients/custom-apis.generated.d.ts +202 -0
- package/dist/cjs/clients/custom-apis.generated.js +6 -0
- package/dist/cjs/clients/custom-apis.generated.js.map +1 -0
- package/dist/cjs/clients/custom-apis.js +124 -0
- package/dist/cjs/clients/custom-apis.js.map +1 -0
- package/dist/cjs/clients/index.d.ts +127 -0
- package/dist/cjs/clients/index.js +125 -0
- package/dist/cjs/clients/index.js.map +1 -0
- package/dist/cjs/clients/middleware-registry.d.ts +184 -0
- package/dist/cjs/clients/middleware-registry.js +104 -0
- package/dist/cjs/clients/middleware-registry.js.map +1 -0
- package/dist/cjs/clients/middleware.d.ts +85 -0
- package/dist/cjs/clients/middleware.js +210 -0
- package/dist/cjs/clients/middleware.js.map +1 -0
- package/dist/cjs/clients/mrt.d.ts +120 -0
- package/dist/cjs/clients/mrt.generated.d.ts +2774 -0
- package/dist/cjs/clients/mrt.generated.js +6 -0
- package/dist/cjs/clients/mrt.generated.js.map +1 -0
- package/dist/cjs/clients/mrt.js +88 -0
- package/dist/cjs/clients/mrt.js.map +1 -0
- package/dist/cjs/clients/ocapi.d.ts +108 -0
- package/dist/cjs/clients/ocapi.generated.d.ts +26052 -0
- package/dist/cjs/clients/ocapi.generated.js +6 -0
- package/dist/cjs/clients/ocapi.generated.js.map +1 -0
- package/dist/cjs/clients/ocapi.js +80 -0
- package/dist/cjs/clients/ocapi.js.map +1 -0
- package/dist/cjs/clients/ods.d.ts +133 -0
- package/dist/cjs/clients/ods.generated.d.ts +2548 -0
- package/dist/cjs/clients/ods.generated.js +6 -0
- package/dist/cjs/clients/ods.generated.js.map +1 -0
- package/dist/cjs/clients/ods.js +103 -0
- package/dist/cjs/clients/ods.js.map +1 -0
- package/dist/cjs/clients/slas-admin.d.ts +104 -0
- package/dist/cjs/clients/slas-admin.generated.d.ts +1434 -0
- package/dist/cjs/clients/slas-admin.generated.js +6 -0
- package/dist/cjs/clients/slas-admin.generated.js.map +1 -0
- package/dist/cjs/clients/slas-admin.js +79 -0
- package/dist/cjs/clients/slas-admin.js.map +1 -0
- package/dist/cjs/clients/webdav.d.ts +157 -0
- package/dist/cjs/clients/webdav.js +337 -0
- package/dist/cjs/clients/webdav.js.map +1 -0
- package/dist/cjs/config/dw-json.d.ts +114 -0
- package/dist/cjs/config/dw-json.js +142 -0
- package/dist/cjs/config/dw-json.js.map +1 -0
- package/dist/cjs/config/index.d.ts +96 -0
- package/dist/cjs/config/index.js +103 -0
- package/dist/cjs/config/index.js.map +1 -0
- package/dist/cjs/config/mapping.d.ts +143 -0
- package/dist/cjs/config/mapping.js +212 -0
- package/dist/cjs/config/mapping.js.map +1 -0
- package/dist/cjs/config/resolved-config.d.ts +31 -0
- package/dist/cjs/config/resolved-config.js +84 -0
- package/dist/cjs/config/resolved-config.js.map +1 -0
- package/dist/cjs/config/resolver.d.ts +190 -0
- package/dist/cjs/config/resolver.js +323 -0
- package/dist/cjs/config/resolver.js.map +1 -0
- package/dist/cjs/config/sources/dw-json-source.d.ts +10 -0
- package/dist/cjs/config/sources/dw-json-source.js +38 -0
- package/dist/cjs/config/sources/dw-json-source.js.map +1 -0
- package/dist/cjs/config/sources/index.d.ts +7 -0
- package/dist/cjs/config/sources/index.js +13 -0
- package/dist/cjs/config/sources/index.js.map +1 -0
- package/dist/cjs/config/sources/mobify-source.d.ts +24 -0
- package/dist/cjs/config/sources/mobify-source.js +79 -0
- package/dist/cjs/config/sources/mobify-source.js.map +1 -0
- package/dist/cjs/config/types.d.ts +270 -0
- package/dist/cjs/config/types.js +2 -0
- package/dist/cjs/config/types.js.map +1 -0
- package/dist/cjs/defaults.d.ts +22 -0
- package/dist/cjs/defaults.js +28 -0
- package/dist/cjs/defaults.js.map +1 -0
- package/dist/cjs/discovery/detector.d.ts +75 -0
- package/dist/cjs/discovery/detector.js +108 -0
- package/dist/cjs/discovery/detector.js.map +1 -0
- package/dist/cjs/discovery/index.d.ts +63 -0
- package/dist/cjs/discovery/index.js +70 -0
- package/dist/cjs/discovery/index.js.map +1 -0
- package/dist/cjs/discovery/patterns/cartridges.d.ts +16 -0
- package/dist/cjs/discovery/patterns/cartridges.js +16 -0
- package/dist/cjs/discovery/patterns/cartridges.js.map +1 -0
- package/dist/cjs/discovery/patterns/index.d.ts +21 -0
- package/dist/cjs/discovery/patterns/index.js +16 -0
- package/dist/cjs/discovery/patterns/index.js.map +1 -0
- package/dist/cjs/discovery/patterns/pwa-kit.d.ts +15 -0
- package/dist/cjs/discovery/patterns/pwa-kit.js +26 -0
- package/dist/cjs/discovery/patterns/pwa-kit.js.map +1 -0
- package/dist/cjs/discovery/patterns/sfra.d.ts +34 -0
- package/dist/cjs/discovery/patterns/sfra.js +50 -0
- package/dist/cjs/discovery/patterns/sfra.js.map +1 -0
- package/dist/cjs/discovery/patterns/storefront-next.d.ts +14 -0
- package/dist/cjs/discovery/patterns/storefront-next.js +20 -0
- package/dist/cjs/discovery/patterns/storefront-next.js.map +1 -0
- package/dist/cjs/discovery/types.d.ts +47 -0
- package/dist/cjs/discovery/types.js +12 -0
- package/dist/cjs/discovery/types.js.map +1 -0
- package/dist/cjs/discovery/utils.d.ts +44 -0
- package/dist/cjs/discovery/utils.js +82 -0
- package/dist/cjs/discovery/utils.js.map +1 -0
- package/dist/cjs/errors/http-error.d.ts +34 -0
- package/dist/cjs/errors/http-error.js +45 -0
- package/dist/cjs/errors/http-error.js.map +1 -0
- package/dist/cjs/errors/index.d.ts +6 -0
- package/dist/cjs/errors/index.js +12 -0
- package/dist/cjs/errors/index.js.map +1 -0
- package/dist/cjs/i18n/index.d.ts +144 -0
- package/dist/cjs/i18n/index.js +242 -0
- package/dist/cjs/i18n/index.js.map +1 -0
- package/dist/cjs/i18n/locales/de.d.ts +13 -0
- package/dist/cjs/i18n/locales/de.js +19 -0
- package/dist/cjs/i18n/locales/de.js.map +1 -0
- package/dist/cjs/i18n/locales/index.d.ts +28 -0
- package/dist/cjs/i18n/locales/index.js +25 -0
- package/dist/cjs/i18n/locales/index.js.map +1 -0
- package/dist/cjs/index.d.ts +25 -0
- package/dist/cjs/index.js +31 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/instance/index.d.ts +132 -0
- package/dist/cjs/instance/index.js +124 -0
- package/dist/cjs/instance/index.js.map +1 -0
- package/dist/cjs/logger.d.ts +66 -0
- package/dist/cjs/logger.js +80 -0
- package/dist/cjs/logger.js.map +1 -0
- package/dist/cjs/logging/index.d.ts +116 -0
- package/dist/cjs/logging/index.js +121 -0
- package/dist/cjs/logging/index.js.map +1 -0
- package/dist/cjs/logging/logger.d.ts +9 -0
- package/dist/cjs/logging/logger.js +111 -0
- package/dist/cjs/logging/logger.js.map +1 -0
- package/dist/cjs/logging/types.d.ts +36 -0
- package/dist/cjs/logging/types.js +10 -0
- package/dist/cjs/logging/types.js.map +1 -0
- package/dist/cjs/operations/code/cartridges.d.ts +46 -0
- package/dist/cjs/operations/code/cartridges.js +59 -0
- package/dist/cjs/operations/code/cartridges.js.map +1 -0
- package/dist/cjs/operations/code/deploy.d.ts +101 -0
- package/dist/cjs/operations/code/deploy.js +218 -0
- package/dist/cjs/operations/code/deploy.js.map +1 -0
- package/dist/cjs/operations/code/index.d.ts +66 -0
- package/dist/cjs/operations/code/index.js +72 -0
- package/dist/cjs/operations/code/index.js.map +1 -0
- package/dist/cjs/operations/code/versions.d.ts +99 -0
- package/dist/cjs/operations/code/versions.js +156 -0
- package/dist/cjs/operations/code/versions.js.map +1 -0
- package/dist/cjs/operations/code/watch.d.ts +58 -0
- package/dist/cjs/operations/code/watch.js +226 -0
- package/dist/cjs/operations/code/watch.js.map +1 -0
- package/dist/cjs/operations/docs/download.d.ts +45 -0
- package/dist/cjs/operations/docs/download.js +96 -0
- package/dist/cjs/operations/docs/download.js.map +1 -0
- package/dist/cjs/operations/docs/index.d.ts +44 -0
- package/dist/cjs/operations/docs/index.js +12 -0
- package/dist/cjs/operations/docs/index.js.map +1 -0
- package/dist/cjs/operations/docs/schema.d.ts +24 -0
- package/dist/cjs/operations/docs/schema.js +92 -0
- package/dist/cjs/operations/docs/schema.js.map +1 -0
- package/dist/cjs/operations/docs/search.d.ts +67 -0
- package/dist/cjs/operations/docs/search.js +128 -0
- package/dist/cjs/operations/docs/search.js.map +1 -0
- package/dist/cjs/operations/docs/types.d.ts +64 -0
- package/dist/cjs/operations/docs/types.js +15 -0
- package/dist/cjs/operations/docs/types.js.map +1 -0
- package/dist/cjs/operations/jobs/index.d.ts +66 -0
- package/dist/cjs/operations/jobs/index.js +72 -0
- package/dist/cjs/operations/jobs/index.js.map +1 -0
- package/dist/cjs/operations/jobs/run.d.ts +224 -0
- package/dist/cjs/operations/jobs/run.js +322 -0
- package/dist/cjs/operations/jobs/run.js.map +1 -0
- package/dist/cjs/operations/jobs/site-archive.d.ts +224 -0
- package/dist/cjs/operations/jobs/site-archive.js +354 -0
- package/dist/cjs/operations/jobs/site-archive.js.map +1 -0
- package/dist/cjs/operations/mrt/bundle.d.ts +114 -0
- package/dist/cjs/operations/mrt/bundle.js +166 -0
- package/dist/cjs/operations/mrt/bundle.js.map +1 -0
- package/dist/cjs/operations/mrt/env-var.d.ts +176 -0
- package/dist/cjs/operations/mrt/env-var.js +231 -0
- package/dist/cjs/operations/mrt/env-var.js.map +1 -0
- package/dist/cjs/operations/mrt/env.d.ts +256 -0
- package/dist/cjs/operations/mrt/env.js +233 -0
- package/dist/cjs/operations/mrt/env.js.map +1 -0
- package/dist/cjs/operations/mrt/index.d.ts +49 -0
- package/dist/cjs/operations/mrt/index.js +55 -0
- package/dist/cjs/operations/mrt/index.js.map +1 -0
- package/dist/cjs/operations/mrt/push.d.ts +109 -0
- package/dist/cjs/operations/mrt/push.js +149 -0
- package/dist/cjs/operations/mrt/push.js.map +1 -0
- package/dist/cjs/operations/sites/index.d.ts +56 -0
- package/dist/cjs/operations/sites/index.js +19 -0
- package/dist/cjs/operations/sites/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/platform/index.d.ts +38 -0
- package/dist/cjs/platform/index.js +42 -0
- package/dist/cjs/platform/index.js.map +1 -0
- package/dist/cjs/platform/mrt.d.ts +19 -0
- package/dist/cjs/platform/mrt.js +22 -0
- package/dist/cjs/platform/mrt.js.map +1 -0
- package/dist/cjs/platform/ods.d.ts +17 -0
- package/dist/cjs/platform/ods.js +22 -0
- package/dist/cjs/platform/ods.js.map +1 -0
- package/dist/esm/auth/api-key.d.ts +28 -0
- package/dist/esm/auth/api-key.js +44 -0
- package/dist/esm/auth/api-key.js.map +1 -0
- package/dist/esm/auth/basic.d.ts +7 -0
- package/dist/esm/auth/basic.js +18 -0
- package/dist/esm/auth/basic.js.map +1 -0
- package/dist/esm/auth/index.d.ts +65 -0
- package/dist/esm/auth/index.js +69 -0
- package/dist/esm/auth/index.js.map +1 -0
- package/dist/esm/auth/oauth-implicit.d.ts +74 -0
- package/dist/esm/auth/oauth-implicit.js +330 -0
- package/dist/esm/auth/oauth-implicit.js.map +1 -0
- package/dist/esm/auth/oauth.d.ts +48 -0
- package/dist/esm/auth/oauth.js +178 -0
- package/dist/esm/auth/oauth.js.map +1 -0
- package/dist/esm/auth/resolve.d.ts +100 -0
- package/dist/esm/auth/resolve.js +173 -0
- package/dist/esm/auth/resolve.js.map +1 -0
- package/dist/esm/auth/types.d.ts +101 -0
- package/dist/esm/auth/types.js +3 -0
- package/dist/esm/auth/types.js.map +1 -0
- package/dist/esm/cli/base-command.d.ts +98 -0
- package/dist/esm/cli/base-command.js +331 -0
- package/dist/esm/cli/base-command.js.map +1 -0
- package/dist/esm/cli/cartridge-command.d.ts +65 -0
- package/dist/esm/cli/cartridge-command.js +142 -0
- package/dist/esm/cli/cartridge-command.js.map +1 -0
- package/dist/esm/cli/cartridge-providers.d.ts +149 -0
- package/dist/esm/cli/cartridge-providers.js +103 -0
- package/dist/esm/cli/cartridge-providers.js.map +1 -0
- package/dist/esm/cli/config.d.ts +75 -0
- package/dist/esm/cli/config.js +65 -0
- package/dist/esm/cli/config.js.map +1 -0
- package/dist/esm/cli/hooks.d.ts +231 -0
- package/dist/esm/cli/hooks.js +3 -0
- package/dist/esm/cli/hooks.js.map +1 -0
- package/dist/esm/cli/index.d.ts +103 -0
- package/dist/esm/cli/index.js +108 -0
- package/dist/esm/cli/index.js.map +1 -0
- package/dist/esm/cli/instance-command.d.ts +121 -0
- package/dist/esm/cli/instance-command.js +213 -0
- package/dist/esm/cli/instance-command.js.map +1 -0
- package/dist/esm/cli/job-command.d.ts +32 -0
- package/dist/esm/cli/job-command.js +66 -0
- package/dist/esm/cli/job-command.js.map +1 -0
- package/dist/esm/cli/lifecycle.d.ts +189 -0
- package/dist/esm/cli/lifecycle.js +130 -0
- package/dist/esm/cli/lifecycle.js.map +1 -0
- package/dist/esm/cli/mrt-command.d.ts +61 -0
- package/dist/esm/cli/mrt-command.js +113 -0
- package/dist/esm/cli/mrt-command.js.map +1 -0
- package/dist/esm/cli/oauth-command.d.ts +70 -0
- package/dist/esm/cli/oauth-command.js +173 -0
- package/dist/esm/cli/oauth-command.js.map +1 -0
- package/dist/esm/cli/ods-command.d.ts +70 -0
- package/dist/esm/cli/ods-command.js +79 -0
- package/dist/esm/cli/ods-command.js.map +1 -0
- package/dist/esm/cli/table.d.ts +113 -0
- package/dist/esm/cli/table.js +175 -0
- package/dist/esm/cli/table.js.map +1 -0
- package/dist/esm/cli/webdav-command.d.ts +100 -0
- package/dist/esm/cli/webdav-command.js +106 -0
- package/dist/esm/cli/webdav-command.js.map +1 -0
- package/dist/esm/clients/custom-apis.d.ts +137 -0
- package/dist/esm/clients/custom-apis.generated.d.ts +202 -0
- package/dist/esm/clients/custom-apis.generated.js +6 -0
- package/dist/esm/clients/custom-apis.generated.js.map +1 -0
- package/dist/esm/clients/custom-apis.js +124 -0
- package/dist/esm/clients/custom-apis.js.map +1 -0
- package/dist/esm/clients/index.d.ts +127 -0
- package/dist/esm/clients/index.js +125 -0
- package/dist/esm/clients/index.js.map +1 -0
- package/dist/esm/clients/middleware-registry.d.ts +184 -0
- package/dist/esm/clients/middleware-registry.js +104 -0
- package/dist/esm/clients/middleware-registry.js.map +1 -0
- package/dist/esm/clients/middleware.d.ts +85 -0
- package/dist/esm/clients/middleware.js +210 -0
- package/dist/esm/clients/middleware.js.map +1 -0
- package/dist/esm/clients/mrt.d.ts +120 -0
- package/dist/esm/clients/mrt.generated.d.ts +2774 -0
- package/dist/esm/clients/mrt.generated.js +6 -0
- package/dist/esm/clients/mrt.generated.js.map +1 -0
- package/dist/esm/clients/mrt.js +88 -0
- package/dist/esm/clients/mrt.js.map +1 -0
- package/dist/esm/clients/ocapi.d.ts +108 -0
- package/dist/esm/clients/ocapi.generated.d.ts +26052 -0
- package/dist/esm/clients/ocapi.generated.js +6 -0
- package/dist/esm/clients/ocapi.generated.js.map +1 -0
- package/dist/esm/clients/ocapi.js +80 -0
- package/dist/esm/clients/ocapi.js.map +1 -0
- package/dist/esm/clients/ods.d.ts +133 -0
- package/dist/esm/clients/ods.generated.d.ts +2548 -0
- package/dist/esm/clients/ods.generated.js +6 -0
- package/dist/esm/clients/ods.generated.js.map +1 -0
- package/dist/esm/clients/ods.js +103 -0
- package/dist/esm/clients/ods.js.map +1 -0
- package/dist/esm/clients/slas-admin.d.ts +104 -0
- package/dist/esm/clients/slas-admin.generated.d.ts +1434 -0
- package/dist/esm/clients/slas-admin.generated.js +6 -0
- package/dist/esm/clients/slas-admin.generated.js.map +1 -0
- package/dist/esm/clients/slas-admin.js +79 -0
- package/dist/esm/clients/slas-admin.js.map +1 -0
- package/dist/esm/clients/webdav.d.ts +157 -0
- package/dist/esm/clients/webdav.js +337 -0
- package/dist/esm/clients/webdav.js.map +1 -0
- package/dist/esm/config/dw-json.d.ts +114 -0
- package/dist/esm/config/dw-json.js +142 -0
- package/dist/esm/config/dw-json.js.map +1 -0
- package/dist/esm/config/index.d.ts +96 -0
- package/dist/esm/config/index.js +103 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/config/mapping.d.ts +143 -0
- package/dist/esm/config/mapping.js +212 -0
- package/dist/esm/config/mapping.js.map +1 -0
- package/dist/esm/config/resolved-config.d.ts +31 -0
- package/dist/esm/config/resolved-config.js +84 -0
- package/dist/esm/config/resolved-config.js.map +1 -0
- package/dist/esm/config/resolver.d.ts +190 -0
- package/dist/esm/config/resolver.js +323 -0
- package/dist/esm/config/resolver.js.map +1 -0
- package/dist/esm/config/sources/dw-json-source.d.ts +10 -0
- package/dist/esm/config/sources/dw-json-source.js +38 -0
- package/dist/esm/config/sources/dw-json-source.js.map +1 -0
- package/dist/esm/config/sources/index.d.ts +7 -0
- package/dist/esm/config/sources/index.js +13 -0
- package/dist/esm/config/sources/index.js.map +1 -0
- package/dist/esm/config/sources/mobify-source.d.ts +24 -0
- package/dist/esm/config/sources/mobify-source.js +79 -0
- package/dist/esm/config/sources/mobify-source.js.map +1 -0
- package/dist/esm/config/types.d.ts +270 -0
- package/dist/esm/config/types.js +2 -0
- package/dist/esm/config/types.js.map +1 -0
- package/dist/esm/defaults.d.ts +22 -0
- package/dist/esm/defaults.js +28 -0
- package/dist/esm/defaults.js.map +1 -0
- package/dist/esm/discovery/detector.d.ts +75 -0
- package/dist/esm/discovery/detector.js +108 -0
- package/dist/esm/discovery/detector.js.map +1 -0
- package/dist/esm/discovery/index.d.ts +63 -0
- package/dist/esm/discovery/index.js +70 -0
- package/dist/esm/discovery/index.js.map +1 -0
- package/dist/esm/discovery/patterns/cartridges.d.ts +16 -0
- package/dist/esm/discovery/patterns/cartridges.js +16 -0
- package/dist/esm/discovery/patterns/cartridges.js.map +1 -0
- package/dist/esm/discovery/patterns/index.d.ts +21 -0
- package/dist/esm/discovery/patterns/index.js +16 -0
- package/dist/esm/discovery/patterns/index.js.map +1 -0
- package/dist/esm/discovery/patterns/pwa-kit.d.ts +15 -0
- package/dist/esm/discovery/patterns/pwa-kit.js +26 -0
- package/dist/esm/discovery/patterns/pwa-kit.js.map +1 -0
- package/dist/esm/discovery/patterns/sfra.d.ts +34 -0
- package/dist/esm/discovery/patterns/sfra.js +50 -0
- package/dist/esm/discovery/patterns/sfra.js.map +1 -0
- package/dist/esm/discovery/patterns/storefront-next.d.ts +14 -0
- package/dist/esm/discovery/patterns/storefront-next.js +20 -0
- package/dist/esm/discovery/patterns/storefront-next.js.map +1 -0
- package/dist/esm/discovery/types.d.ts +47 -0
- package/dist/esm/discovery/types.js +12 -0
- package/dist/esm/discovery/types.js.map +1 -0
- package/dist/esm/discovery/utils.d.ts +44 -0
- package/dist/esm/discovery/utils.js +82 -0
- package/dist/esm/discovery/utils.js.map +1 -0
- package/dist/esm/errors/http-error.d.ts +34 -0
- package/dist/esm/errors/http-error.js +45 -0
- package/dist/esm/errors/http-error.js.map +1 -0
- package/dist/esm/errors/index.d.ts +6 -0
- package/dist/esm/errors/index.js +12 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/i18n/index.d.ts +144 -0
- package/dist/esm/i18n/index.js +242 -0
- package/dist/esm/i18n/index.js.map +1 -0
- package/dist/esm/i18n/locales/de.d.ts +13 -0
- package/dist/esm/i18n/locales/de.js +19 -0
- package/dist/esm/i18n/locales/de.js.map +1 -0
- package/dist/esm/i18n/locales/index.d.ts +28 -0
- package/dist/esm/i18n/locales/index.js +25 -0
- package/dist/esm/i18n/locales/index.js.map +1 -0
- package/dist/esm/index.d.ts +25 -0
- package/dist/esm/index.js +31 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/instance/index.d.ts +132 -0
- package/dist/esm/instance/index.js +124 -0
- package/dist/esm/instance/index.js.map +1 -0
- package/dist/esm/logger.d.ts +66 -0
- package/dist/esm/logger.js +80 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/logging/index.d.ts +116 -0
- package/dist/esm/logging/index.js +121 -0
- package/dist/esm/logging/index.js.map +1 -0
- package/dist/esm/logging/logger.d.ts +9 -0
- package/dist/esm/logging/logger.js +111 -0
- package/dist/esm/logging/logger.js.map +1 -0
- package/dist/esm/logging/types.d.ts +36 -0
- package/dist/esm/logging/types.js +10 -0
- package/dist/esm/logging/types.js.map +1 -0
- package/dist/esm/operations/code/cartridges.d.ts +46 -0
- package/dist/esm/operations/code/cartridges.js +59 -0
- package/dist/esm/operations/code/cartridges.js.map +1 -0
- package/dist/esm/operations/code/deploy.d.ts +101 -0
- package/dist/esm/operations/code/deploy.js +218 -0
- package/dist/esm/operations/code/deploy.js.map +1 -0
- package/dist/esm/operations/code/index.d.ts +66 -0
- package/dist/esm/operations/code/index.js +72 -0
- package/dist/esm/operations/code/index.js.map +1 -0
- package/dist/esm/operations/code/versions.d.ts +99 -0
- package/dist/esm/operations/code/versions.js +157 -0
- package/dist/esm/operations/code/versions.js.map +1 -0
- package/dist/esm/operations/code/watch.d.ts +58 -0
- package/dist/esm/operations/code/watch.js +226 -0
- package/dist/esm/operations/code/watch.js.map +1 -0
- package/dist/esm/operations/docs/download.d.ts +45 -0
- package/dist/esm/operations/docs/download.js +96 -0
- package/dist/esm/operations/docs/download.js.map +1 -0
- package/dist/esm/operations/docs/index.d.ts +44 -0
- package/dist/esm/operations/docs/index.js +12 -0
- package/dist/esm/operations/docs/index.js.map +1 -0
- package/dist/esm/operations/docs/schema.d.ts +24 -0
- package/dist/esm/operations/docs/schema.js +92 -0
- package/dist/esm/operations/docs/schema.js.map +1 -0
- package/dist/esm/operations/docs/search.d.ts +67 -0
- package/dist/esm/operations/docs/search.js +128 -0
- package/dist/esm/operations/docs/search.js.map +1 -0
- package/dist/esm/operations/docs/types.d.ts +64 -0
- package/dist/esm/operations/docs/types.js +15 -0
- package/dist/esm/operations/docs/types.js.map +1 -0
- package/dist/esm/operations/jobs/index.d.ts +66 -0
- package/dist/esm/operations/jobs/index.js +72 -0
- package/dist/esm/operations/jobs/index.js.map +1 -0
- package/dist/esm/operations/jobs/run.d.ts +224 -0
- package/dist/esm/operations/jobs/run.js +333 -0
- package/dist/esm/operations/jobs/run.js.map +1 -0
- package/dist/esm/operations/jobs/site-archive.d.ts +224 -0
- package/dist/esm/operations/jobs/site-archive.js +355 -0
- package/dist/esm/operations/jobs/site-archive.js.map +1 -0
- package/dist/esm/operations/mrt/bundle.d.ts +114 -0
- package/dist/esm/operations/mrt/bundle.js +166 -0
- package/dist/esm/operations/mrt/bundle.js.map +1 -0
- package/dist/esm/operations/mrt/env-var.d.ts +176 -0
- package/dist/esm/operations/mrt/env-var.js +231 -0
- package/dist/esm/operations/mrt/env-var.js.map +1 -0
- package/dist/esm/operations/mrt/env.d.ts +256 -0
- package/dist/esm/operations/mrt/env.js +233 -0
- package/dist/esm/operations/mrt/env.js.map +1 -0
- package/dist/esm/operations/mrt/index.d.ts +49 -0
- package/dist/esm/operations/mrt/index.js +55 -0
- package/dist/esm/operations/mrt/index.js.map +1 -0
- package/dist/esm/operations/mrt/push.d.ts +109 -0
- package/dist/esm/operations/mrt/push.js +149 -0
- package/dist/esm/operations/mrt/push.js.map +1 -0
- package/dist/esm/operations/sites/index.d.ts +56 -0
- package/dist/esm/operations/sites/index.js +67 -0
- package/dist/esm/operations/sites/index.js.map +1 -0
- package/dist/esm/platform/index.d.ts +38 -0
- package/dist/esm/platform/index.js +42 -0
- package/dist/esm/platform/index.js.map +1 -0
- package/dist/esm/platform/mrt.d.ts +19 -0
- package/dist/esm/platform/mrt.js +22 -0
- package/dist/esm/platform/mrt.js.map +1 -0
- package/dist/esm/platform/ods.d.ts +17 -0
- package/dist/esm/platform/ods.js +22 -0
- package/dist/esm/platform/ods.js.map +1 -0
- package/package.json +263 -6
- package/specs/README.md +7 -0
- package/specs/custom-apis-v1.yaml +309 -0
- package/specs/data-api.json +37503 -0
- package/specs/mrt-api-v1.json +5555 -0
- package/specs/ods-api-v1.json +3673 -0
- package/specs/slas-admin-v1.yaml +1841 -0
|
@@ -0,0 +1,1494 @@
|
|
|
1
|
+
<!-- prettier-ignore-start -->
|
|
2
|
+
# Class OrderMgr
|
|
3
|
+
|
|
4
|
+
- [TopLevel.Object](TopLevel.Object.md)
|
|
5
|
+
- [dw.order.OrderMgr](dw.order.OrderMgr.md)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Provides static helper methods for managing orders.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Pipelet GetOrder and methods provided to access orders such as [getOrder(String)](dw.order.OrderMgr.md#getorderstring) and
|
|
15
|
+
[searchOrders(String, String, Object...)](dw.order.OrderMgr.md#searchordersstring-string-object) can be limited by the site preference 'Limit Storefront Order
|
|
16
|
+
Access'. An insecure order access occurs in a storefront session when all of the following are true:
|
|
17
|
+
|
|
18
|
+
- The current storefront session isn’t the session in which the order was created.
|
|
19
|
+
- The session customer doesn’t match the order customer.
|
|
20
|
+
- The order status isn’t CREATED.
|
|
21
|
+
|
|
22
|
+
When an order is accessed in an insecure manner:
|
|
23
|
+
|
|
24
|
+
- If the preference is ACTIVE, the action is disallowed and a SecurityException with a message beginning 'Unauthorized access to order' is thrown.
|
|
25
|
+
- If the preference is NOT ACTIVE, a SecurityException with a message beginning 'Unauthorized access to order' is logged as an error.
|
|
26
|
+
|
|
27
|
+
In addition, the storefront should ensure the shopper is properly authenticated and authorized to read
|
|
28
|
+
or modify the content of an order object. For more information, see [Access Control](https://help.salesforce.com/s/articleView?id=cc.b2c\_developer\_authentication\_and\_authorization.htm).
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Don’t use dw.order.OrderMgr.searchOrder methods or [processOrders(Function, String, Object...)](dw.order.OrderMgr.md#processordersfunction-string-object)
|
|
32
|
+
immediately after creating or updating an order. The order search index updates asynchronously, typically within seconds but occasionally longer depending on search service load, so it
|
|
33
|
+
might not include very recent changes. Instead, do one of the following:
|
|
34
|
+
|
|
35
|
+
- In the same request, pass the dw.order.Order object reference to the followup logic.
|
|
36
|
+
- For storefront use cases, especially when passing the order reference to a third party, use the order token for security by using [getOrder(String, String)](dw.order.OrderMgr.md#getorderstring-string).
|
|
37
|
+
|
|
38
|
+
When implementing order history functionality, don't use the search or query methods in this class. Instead, use
|
|
39
|
+
[OrderHistory.getOrders(String, String, Object...)](dw.customer.OrderHistory.md#getordersstring-string-object).
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Constructor Summary
|
|
44
|
+
|
|
45
|
+
This class does not have a constructor, so you cannot create it directly.
|
|
46
|
+
## Method Summary
|
|
47
|
+
|
|
48
|
+
| Method | Description |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| static [cancelOrder](dw.order.OrderMgr.md#cancelorderorder)([Order](dw.order.Order.md)) | <p> This method cancels an order. |
|
|
51
|
+
| static [createOrder](dw.order.OrderMgr.md#createorderbasket)([Basket](dw.order.Basket.md)) | <p> This method creates an order based on a basket. |
|
|
52
|
+
| static [createOrder](dw.order.OrderMgr.md#createorderbasket-string)([Basket](dw.order.Basket.md), [String](TopLevel.String.md)) | <p> This method functions the same as [createOrder(Basket)](dw.order.OrderMgr.md#createorderbasket), but allows the optional specification of an `orderNo`. |
|
|
53
|
+
| static [createOrderNo](dw.order.OrderMgr.md#createorderno)() | <p> Creates an order number. |
|
|
54
|
+
| static [createOrderSequenceNo](dw.order.OrderMgr.md#createordersequenceno)() | <p> Creates an order number. |
|
|
55
|
+
| static [createShippingOrders](dw.order.OrderMgr.md#createshippingordersorder)([Order](dw.order.Order.md)) | <p> Triggers the shipping order creation for an order. |
|
|
56
|
+
| static [describeOrder](dw.order.OrderMgr.md#describeorder)() | <p> Returns the meta data for Orders. |
|
|
57
|
+
| ~~static [failOrder](dw.order.OrderMgr.md#failorderorder)([Order](dw.order.Order.md))~~ | <p> This method fails an unplaced order and is usually called if payment could not be authorized. |
|
|
58
|
+
| static [failOrder](dw.order.OrderMgr.md#failorderorder-boolean)([Order](dw.order.Order.md), [Boolean](TopLevel.Boolean.md)) | <p> This method fails an unplaced order and is usually called if payment could not be authorized. |
|
|
59
|
+
| static [getOrder](dw.order.OrderMgr.md#getorderstring)([String](TopLevel.String.md)) | <p> Returns the order with the specified order number. |
|
|
60
|
+
| static [getOrder](dw.order.OrderMgr.md#getorderstring-string)([String](TopLevel.String.md), [String](TopLevel.String.md)) | <p> Resolves an order using the orderNumber and orderToken. |
|
|
61
|
+
| static [placeOrder](dw.order.OrderMgr.md#placeorderorder)([Order](dw.order.Order.md)) | <p> This method places an order and is usually called after payment has been authorized. |
|
|
62
|
+
| static [processOrders](dw.order.OrderMgr.md#processordersfunction-string-object)([Function](TopLevel.Function.md), [String](TopLevel.String.md), [Object...](TopLevel.Object.md)) | <p> Executes a user-definable function on a set of orders. |
|
|
63
|
+
| ~~static [queryOrder](dw.order.OrderMgr.md#queryorderstring-object)([String](TopLevel.String.md), [Object...](TopLevel.Object.md))~~ | <p> Searches for a single order instance. |
|
|
64
|
+
| ~~static [queryOrders](dw.order.OrderMgr.md#queryordersmap-string)([Map](dw.util.Map.md), [String](TopLevel.String.md))~~ | <p> Searches for order instances. |
|
|
65
|
+
| ~~static [queryOrders](dw.order.OrderMgr.md#queryordersstring-string-object)([String](TopLevel.String.md), [String](TopLevel.String.md), [Object...](TopLevel.Object.md))~~ | <p> Searches for order instances. |
|
|
66
|
+
| static [searchOrder](dw.order.OrderMgr.md#searchorderstring-object)([String](TopLevel.String.md), [Object...](TopLevel.Object.md)) | <p> Searches for a single order instance. |
|
|
67
|
+
| static [searchOrders](dw.order.OrderMgr.md#searchordersmap-string)([Map](dw.util.Map.md), [String](TopLevel.String.md)) | <p> Searches for order instances. |
|
|
68
|
+
| static [searchOrders](dw.order.OrderMgr.md#searchordersstring-string-object)([String](TopLevel.String.md), [String](TopLevel.String.md), [Object...](TopLevel.Object.md)) | <p> Searches for order instances. |
|
|
69
|
+
| static [undoCancelOrder](dw.order.OrderMgr.md#undocancelorderorder)([Order](dw.order.Order.md)) | <p> This method is used to turn a CANCELLED order into an OPEN order. |
|
|
70
|
+
| static [undoFailOrder](dw.order.OrderMgr.md#undofailorderorder)([Order](dw.order.Order.md)) | <p> This method is used to turn a FAILED order into a CREATED order. |
|
|
71
|
+
|
|
72
|
+
### Methods inherited from class Object
|
|
73
|
+
|
|
74
|
+
[assign](TopLevel.Object.md#assignobject-object), [create](TopLevel.Object.md#createobject), [create](TopLevel.Object.md#createobject-object), [defineProperties](TopLevel.Object.md#definepropertiesobject-object), [defineProperty](TopLevel.Object.md#definepropertyobject-object-object), [entries](TopLevel.Object.md#entriesobject), [freeze](TopLevel.Object.md#freezeobject), [fromEntries](TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](TopLevel.Object.md#hasownpropertystring), [is](TopLevel.Object.md#isobject-object), [isExtensible](TopLevel.Object.md#isextensibleobject), [isFrozen](TopLevel.Object.md#isfrozenobject), [isPrototypeOf](TopLevel.Object.md#isprototypeofobject), [isSealed](TopLevel.Object.md#issealedobject), [keys](TopLevel.Object.md#keysobject), [preventExtensions](TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](TopLevel.Object.md#propertyisenumerablestring), [seal](TopLevel.Object.md#sealobject), [setPrototypeOf](TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](TopLevel.Object.md#tolocalestring), [toString](TopLevel.Object.md#tostring), [valueOf](TopLevel.Object.md#valueof), [values](TopLevel.Object.md#valuesobject)
|
|
75
|
+
## Method Details
|
|
76
|
+
|
|
77
|
+
### cancelOrder(Order)
|
|
78
|
+
- static cancelOrder(order: [Order](dw.order.Order.md)): [Status](dw.system.Status.md)
|
|
79
|
+
- :
|
|
80
|
+
|
|
81
|
+
This method cancels an order. Only orders in status OPEN, NEW, or COMPLETED can be cancelled.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
Setting of cancel code and cancel description can be done by calling
|
|
87
|
+
`[Order.setCancelCode(String)](dw.order.Order.md#setcancelcodestring)` and `[Order.setCancelDescription(String)](dw.order.Order.md#setcanceldescriptionstring)`. \*
|
|
88
|
+
If the order contains product or gift certificate line items associated with product list items, records of the
|
|
89
|
+
purchase of the product list items will be removed.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
Inventory transactions and coupon redemptions associated with the order will be rolled back.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
It is important to consider that this method will cancel orders with gift certificate line items.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
If an order has any active post-processing objects (e.g. shipping orders, returns, appeasements), then it cannot
|
|
105
|
+
be cancelled directly. Its status is set automatically, based on the statuses of its post-processing objects. To
|
|
106
|
+
cancel such an order, you must cancel all related post-processing objects.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
If your B2C Commerce instance is integrated with Order Management, then you manage order statuses in Order
|
|
112
|
+
Management. Use Order Management API endpoints.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
**Parameters:**
|
|
116
|
+
- order - the order to be cancelled
|
|
117
|
+
|
|
118
|
+
**Returns:**
|
|
119
|
+
- Status 'OK' or 'ERROR'
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### createOrder(Basket)
|
|
125
|
+
- static createOrder(basket: [Basket](dw.order.Basket.md)): [Order](dw.order.Order.md)
|
|
126
|
+
- :
|
|
127
|
+
|
|
128
|
+
This method creates an order based on a basket. If successful, the new order will be in status
|
|
129
|
+
[Order.ORDER_STATUS_CREATED](dw.order.Order.md#order_status_created). The basket will be removed from the session and marked for removal.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
This method throws an APIException with type 'CreateOrderException' if any of the following conditions are
|
|
135
|
+
encountered:
|
|
136
|
+
|
|
137
|
+
- any of the totals (net, gross, tax) of the basket is N/A
|
|
138
|
+
- any of the product items is not available (this takes previously reserved items into account)
|
|
139
|
+
- any campaign-based coupon in the basket is invalid (see [CouponLineItem.isValid()](dw.order.CouponLineItem.md#isvalid)
|
|
140
|
+
- the basket represents an order being edited, but the order has already been replaced by another order
|
|
141
|
+
- the basket represents an order being edited, but the customer associated with the original order is not the same as the current customer
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
The method removes all empty shipments from the basket before creating the order. A shipment is said to be empty
|
|
148
|
+
if all of the following are true:
|
|
149
|
+
|
|
150
|
+
- it contains no product or gift certificate line items
|
|
151
|
+
- all total prices (net, gross, tax) are 0.0
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
This method decrements inventory for all products contained in the order. A previous call to
|
|
158
|
+
[Basket.reserveInventory()](dw.order.Basket.md#reserveinventory) is unnecessary and discouraged within the same request. The method
|
|
159
|
+
takes any items with reserved inventory into account, allowing an early reservation of items, e.g. at the
|
|
160
|
+
beginning of the checkout process. As described above, an APIException is thrown if any item is not available.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
If the basket contains product or gift certificate line items associated with product list items, the method
|
|
166
|
+
updates the purchased quantity of the product list items; see
|
|
167
|
+
[ProductListItem.getPurchasedQuantity()](dw.customer.ProductListItem.md#getpurchasedquantity).
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
The system generates an order number via hook [OrderHooks.createOrderNo()](dw.order.hooks.OrderHooks.md#createorderno). If no hook is
|
|
173
|
+
registered for the endpoint, the number is generated by calling [createOrderSequenceNo()](dw.order.OrderMgr.md#createordersequenceno). The format of
|
|
174
|
+
the number is based on the Order Number scheme defined in the Sequence Numbers preference configured for the site
|
|
175
|
+
or organization. The number is guaranteed to be unique, but is not guaranteed to be sequential. It can be higher
|
|
176
|
+
or lower than a previously created number. As a result, sorting orders by order number is not guaranteed to sort
|
|
177
|
+
them in their order of creation.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
This method must not be used with the **ReserveInventoryForOrder** pipelet or
|
|
183
|
+
[Basket.reserveInventory()](dw.order.Basket.md#reserveinventory) in the same request.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
When an order is created, search results don't include it until the next asynchronous update of the order search
|
|
189
|
+
index. See [OrderMgr](dw.order.OrderMgr.md).
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
Please note that this method might result in an order with a different customer ID than the originating
|
|
195
|
+
registered customer attached to the session. This happens if a registered customer logs in with the "RememberMe"
|
|
196
|
+
flag set to `true`, but is later logged out (either explicitly, or automatically via session
|
|
197
|
+
expiration) before calling this method. This is due to the internal order creation logic, which creates a new
|
|
198
|
+
guest customer and attaches it to the order in such cases. To avoid this situation, have your custom code verify
|
|
199
|
+
that the customer is authenticated before it calls this method.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
Usage:
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
var basket : Basket; // known
|
|
213
|
+
try
|
|
214
|
+
{
|
|
215
|
+
var order : Order = OrderMgr.createOrder(basket);
|
|
216
|
+
}
|
|
217
|
+
catch (e if e instanceof APIException && e.type === 'CreateOrderException')
|
|
218
|
+
{
|
|
219
|
+
// handle e
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
**Parameters:**
|
|
225
|
+
- basket - basket to create an order for
|
|
226
|
+
|
|
227
|
+
**Returns:**
|
|
228
|
+
- a new order
|
|
229
|
+
|
|
230
|
+
**Throws:**
|
|
231
|
+
- dw.order.CreateOrderException - indicates the order could not be created
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
### createOrder(Basket, String)
|
|
237
|
+
- static createOrder(basket: [Basket](dw.order.Basket.md), orderNo: [String](TopLevel.String.md)): [Order](dw.order.Order.md)
|
|
238
|
+
- :
|
|
239
|
+
|
|
240
|
+
This method functions the same as [createOrder(Basket)](dw.order.OrderMgr.md#createorderbasket), but allows the optional specification of
|
|
241
|
+
an `orderNo`. The `orderNo` must be unique within the context of a site.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
If the `orderNo` is not specified, the behavior is the same as that of
|
|
247
|
+
[createOrder(Basket)](dw.order.OrderMgr.md#createorderbasket). In that case, the system generates an order number via hook
|
|
248
|
+
[OrderHooks.createOrderNo()](dw.order.hooks.OrderHooks.md#createorderno). If no hook is registered for the endpoint, the number is
|
|
249
|
+
generated by calling [createOrderSequenceNo()](dw.order.OrderMgr.md#createordersequenceno). The format of the number is based on the Order Number
|
|
250
|
+
scheme defined in the Sequence Numbers preference configured for the site or organization. The number is
|
|
251
|
+
guaranteed to be unique, but is not guaranteed to be sequential. It can be higher or lower than a previously
|
|
252
|
+
created number. As a result, sorting orders by order number is not guaranteed to sort them in their order of
|
|
253
|
+
creation.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
This method must not be used with the **ReserveInventoryForOrder** pipelet or
|
|
259
|
+
[Basket.reserveInventory()](dw.order.Basket.md#reserveinventory) in the same request.
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
When an order is created, search results don't include it until the next asynchronous update of the order search
|
|
265
|
+
index. See [OrderMgr](dw.order.OrderMgr.md).
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
Please note that this method might result in an order with a different customer ID than the originating
|
|
271
|
+
registered customer attached to the session. This happens if a registered customer logs in with the "RememberMe"
|
|
272
|
+
flag set to `true`, but is later logged out (either explicitly, or automatically via session
|
|
273
|
+
expiration) before calling this method. This is due to the internal order creation logic, which creates a new
|
|
274
|
+
guest customer and attaches it to the order in such cases. To avoid this situation, have your custom code verify
|
|
275
|
+
that the customer is authenticated before it calls this method.
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
Usage:
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
var basket : Basket; // known
|
|
289
|
+
var orderNo : String; // known
|
|
290
|
+
try
|
|
291
|
+
{
|
|
292
|
+
var order : Order = OrderMgr.createOrder(basket, orderNo);
|
|
293
|
+
}
|
|
294
|
+
catch (e if e instanceof APIException && e.type === 'CreateOrderException')
|
|
295
|
+
{
|
|
296
|
+
// handle e
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
**Parameters:**
|
|
302
|
+
- basket - basket to create an order for
|
|
303
|
+
- orderNo - optional order number; if `null` is specified, an order number is generated
|
|
304
|
+
|
|
305
|
+
**Returns:**
|
|
306
|
+
- a new order
|
|
307
|
+
|
|
308
|
+
**Throws:**
|
|
309
|
+
- dw.order.CreateOrderException - indicates the order could not be created
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
### createOrderNo()
|
|
315
|
+
- static createOrderNo(): [String](TopLevel.String.md)
|
|
316
|
+
- :
|
|
317
|
+
|
|
318
|
+
Creates an order number.
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
The order number is created via hook [OrderHooks.createOrderNo()](dw.order.hooks.OrderHooks.md#createorderno). If no hook is registered
|
|
324
|
+
for the endpoint, the number is generated by calling [createOrderSequenceNo()](dw.order.OrderMgr.md#createordersequenceno). The format of the number
|
|
325
|
+
is based on the Order Number scheme defined in the Sequence Numbers preference configured for the site or
|
|
326
|
+
organization.
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
The number is guaranteed to be unique, but is not guaranteed to be sequential. It can be higher or lower than a
|
|
332
|
+
previously created number. As a result, sorting orders by order number is not guaranteed to sort them in their
|
|
333
|
+
order of creation.
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
**Returns:**
|
|
337
|
+
- an available order number
|
|
338
|
+
|
|
339
|
+
**Throws:**
|
|
340
|
+
- CreateException - if order number creation failed
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
### createOrderSequenceNo()
|
|
346
|
+
- static createOrderSequenceNo(): [String](TopLevel.String.md)
|
|
347
|
+
- :
|
|
348
|
+
|
|
349
|
+
Creates an order number.
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
The format of the number is based on the Order Number scheme defined in the Sequence Numbers preference
|
|
355
|
+
configured for the site or organization.
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
The number is guaranteed to be unique, but is not guaranteed to be sequential. It can be higher or lower than a
|
|
361
|
+
previously created number. As a result, sorting orders by order number is not guaranteed to sort them in their
|
|
362
|
+
order of creation.
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
**Returns:**
|
|
366
|
+
- an available order number
|
|
367
|
+
|
|
368
|
+
**Throws:**
|
|
369
|
+
- CreateException - if order number creation failed
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
### createShippingOrders(Order)
|
|
375
|
+
- static createShippingOrders(order: [Order](dw.order.Order.md)): [Status](dw.system.Status.md)
|
|
376
|
+
- :
|
|
377
|
+
|
|
378
|
+
Triggers the shipping order creation for an order.
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
Must be run outside of a transaction. Will call hooks of the shipping order creation process, which are:
|
|
384
|
+
|
|
385
|
+
- [ShippingOrderHooks.extensionPointPrepareCreateShippingOrders](dw.order.hooks.ShippingOrderHooks.md#extensionpointpreparecreateshippingorders)
|
|
386
|
+
- [ShippingOrderHooks.extensionPointCreateShippingOrders](dw.order.hooks.ShippingOrderHooks.md#extensionpointcreateshippingorders)
|
|
387
|
+
- [ShippingOrderHooks.extensionPointAfterStatusChange](dw.order.hooks.ShippingOrderHooks.md#extensionpointafterstatuschange)
|
|
388
|
+
- [ShippingOrderHooks.extensionPointNotifyStatusChange](dw.order.hooks.ShippingOrderHooks.md#extensionpointnotifystatuschange)
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
As a result, zero, one, or multiple [ShippingOrder](dw.order.ShippingOrder.md)s are created.
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
Order post-processing APIs (gillian) are now inactive by default and will throw an exception if accessed.
|
|
398
|
+
Activation needs preliminary approval by Product Management. Please contact support in this case. Existing
|
|
399
|
+
customers using these APIs are not affected by this change and can use the APIs until further notice.
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
**Parameters:**
|
|
403
|
+
- order - the order to run the shipping order creation for
|
|
404
|
+
|
|
405
|
+
**Returns:**
|
|
406
|
+
- Status 'OK' or 'ERROR' with an error message
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
411
|
+
### describeOrder()
|
|
412
|
+
- static describeOrder(): [ObjectTypeDefinition](dw.object.ObjectTypeDefinition.md)
|
|
413
|
+
- :
|
|
414
|
+
|
|
415
|
+
Returns the meta data for Orders.
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
**Returns:**
|
|
419
|
+
- the meta data for Orders.
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
---
|
|
423
|
+
|
|
424
|
+
### failOrder(Order)
|
|
425
|
+
- ~~static failOrder(order: [Order](dw.order.Order.md)): [Status](dw.system.Status.md)~~
|
|
426
|
+
- :
|
|
427
|
+
|
|
428
|
+
This method fails an unplaced order and is usually called if payment could not be authorized. The specified Order
|
|
429
|
+
must be in status CREATED, and will be set to status FAILED.
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
Inventory transactions and coupon redemptions associated with the Order will be rolled back.
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
If the order is failed in the same session in which it was created, the basket will be reopened such that it can
|
|
440
|
+
be used for a subsequent order.
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
**Parameters:**
|
|
444
|
+
- order - the order to be placed
|
|
445
|
+
|
|
446
|
+
**Returns:**
|
|
447
|
+
- Status 'OK' or 'ERROR' with an error message
|
|
448
|
+
|
|
449
|
+
**Deprecated:**
|
|
450
|
+
:::warning
|
|
451
|
+
Please use [failOrder(Order, Boolean)](dw.order.OrderMgr.md#failorderorder-boolean) instead.
|
|
452
|
+
:::
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
### failOrder(Order, Boolean)
|
|
457
|
+
- static failOrder(order: [Order](dw.order.Order.md), reopenBasketIfPossible: [Boolean](TopLevel.Boolean.md)): [Status](dw.system.Status.md)
|
|
458
|
+
- :
|
|
459
|
+
|
|
460
|
+
This method fails an unplaced order and is usually called if payment could not be authorized. The specified Order
|
|
461
|
+
must be in status CREATED, and will be set to status FAILED.
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
Inventory transactions and coupon redemptions associated with the Order will be rolled back.
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
A basket can only be reopened if no other basket for the customer exists at the moment of the call to
|
|
472
|
+
`failOrder`, since a customer is limited to 1 storefront basket at a time. If, after order creation, a
|
|
473
|
+
call was made to [BasketMgr.getCurrentOrNewBasket()](dw.order.BasketMgr.md#getcurrentornewbasket) or pipelet GetBasket with parameter Create=true, then
|
|
474
|
+
a new basket has been created, and `failOrder` cannot reopen the basket the order was created with. If
|
|
475
|
+
a basket is reopened, it always masks sensitive information (e.g., credit card number), because during order
|
|
476
|
+
creation, basket payment information is permanently masked.
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
**Parameters:**
|
|
480
|
+
- order - the order to be placed
|
|
481
|
+
- reopenBasketIfPossible - reopen the basket if it still exists and limit for number of baskets is not reached
|
|
482
|
+
|
|
483
|
+
**Returns:**
|
|
484
|
+
- Status 'OK' or 'ERROR' with an error message. Status detail basket contains the reopened basket, if it
|
|
485
|
+
has been reopened successfully.
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
---
|
|
490
|
+
|
|
491
|
+
### getOrder(String)
|
|
492
|
+
- static getOrder(orderNumber: [String](TopLevel.String.md)): [Order](dw.order.Order.md)
|
|
493
|
+
- :
|
|
494
|
+
|
|
495
|
+
Returns the order with the specified order number. Order access in the storefront can be limited; see
|
|
496
|
+
the class description. Use [getOrder(String, String)](dw.order.OrderMgr.md#getorderstring-string) instead for secure access in a storefront session.
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
If Limit Storefront Order Access site preference is enabled, this method throws an exception when an
|
|
502
|
+
insecure access is attempted (refer to the conditions of insecure access in the description of OrderMgr
|
|
503
|
+
class). Use [getOrder(String, String)](dw.order.OrderMgr.md#getorderstring-string) instead.
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
**Parameters:**
|
|
507
|
+
- orderNumber - the order number of the order to retrieve
|
|
508
|
+
|
|
509
|
+
**Returns:**
|
|
510
|
+
- Order for the specified order number
|
|
511
|
+
|
|
512
|
+
**Throws:**
|
|
513
|
+
- SecurityException - thrown when the Limit Storefront Order Access preference is enabled and the order is insecurely accessed
|
|
514
|
+
|
|
515
|
+
**See Also:**
|
|
516
|
+
- [getOrder(String, String)](dw.order.OrderMgr.md#getorderstring-string)
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
---
|
|
520
|
+
|
|
521
|
+
### getOrder(String, String)
|
|
522
|
+
- static getOrder(orderNumber: [String](TopLevel.String.md), orderToken: [String](TopLevel.String.md)): [Order](dw.order.Order.md)
|
|
523
|
+
- :
|
|
524
|
+
|
|
525
|
+
Resolves an order using the orderNumber and orderToken.
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
The order token is generated during order creation in a secure way that is designed to reduce the
|
|
531
|
+
possibility of unauthorized access. You can retrieve the token via ([Order.getOrderToken()](dw.order.Order.md#getordertoken).
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
This version of the getOrder method doesn’t return an exception when the Limit Storefront Order
|
|
537
|
+
Access site preference is enabled. Best security practice is to always enable this preference, and to use
|
|
538
|
+
this method when appropriate.
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
You should always use this method in the following cases.
|
|
544
|
+
|
|
545
|
+
- Integration use cases (such as asynchronous payment processing)
|
|
546
|
+
- When resolving orders from links (for example, order confirmation)
|
|
547
|
+
- Storefront use cases
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
**Parameters:**
|
|
551
|
+
- orderNumber - the order number of the order to retrieve
|
|
552
|
+
- orderToken - the order token of the order to retrieve
|
|
553
|
+
|
|
554
|
+
**Returns:**
|
|
555
|
+
- Order for the specified order number. null is returned if order is not found by number or token
|
|
556
|
+
doesn’t correspond to the order found
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
---
|
|
561
|
+
|
|
562
|
+
### placeOrder(Order)
|
|
563
|
+
- static placeOrder(order: [Order](dw.order.Order.md)): [Status](dw.system.Status.md)
|
|
564
|
+
- :
|
|
565
|
+
|
|
566
|
+
This method places an order and is usually called after payment has been authorized. The specified order must be
|
|
567
|
+
in status CREATED, and will be set to status NEW.
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
If the order contains product or gift certificate line items associated with product list items, records of the
|
|
573
|
+
purchase of the product list items will be made. For example, if the basket contains an item added from a gift
|
|
574
|
+
registry, the purchase history of the respective gift registry item is updated.
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
The order will count toward product and customer active data.
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
Placing an order leads to the generation of shipment numbers for all shipments and the invoice number of the
|
|
585
|
+
order. See [Shipment.getShipmentNo()](dw.order.Shipment.md#getshipmentno) and [Order.getInvoiceNo()](dw.order.Order.md#getinvoiceno). This is done
|
|
586
|
+
using sequences.
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
**Parameters:**
|
|
590
|
+
- order - the order to be placed
|
|
591
|
+
|
|
592
|
+
**Returns:**
|
|
593
|
+
- Status 'OK' or 'ERROR' with an error message
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
---
|
|
597
|
+
|
|
598
|
+
### processOrders(Function, String, Object...)
|
|
599
|
+
- static processOrders(processFunction: [Function](TopLevel.Function.md), queryString: [String](TopLevel.String.md), args: [Object...](TopLevel.Object.md)): void
|
|
600
|
+
- :
|
|
601
|
+
|
|
602
|
+
Executes a user-definable function on a set of orders. This method is intended to be used in batch processes and
|
|
603
|
+
jobs, since it allows efficient processing of large result sets (which might take a while to process). First, a
|
|
604
|
+
search with the given parameters is executed. Then the given function is executed once for each order of the
|
|
605
|
+
search result. The order is handed over as the only parameter to this function.
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
The search can be configured using a simple query language, which provides most common filter and operator
|
|
611
|
+
functionality. The callback function will be supplied with a single argument of type 'Order'. When the function
|
|
612
|
+
defines additional arguments, they will be undefined when called. When the method doesn't define any argument, it
|
|
613
|
+
will be called anyway. Error during execution of the callback will be logged, and execution will continue with
|
|
614
|
+
the next element from the result set. This method can be used as in this example (which counts the number of
|
|
615
|
+
orders):
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
```
|
|
623
|
+
var count=0;
|
|
624
|
+
function callback(order: Order)
|
|
625
|
+
{
|
|
626
|
+
count++;
|
|
627
|
+
dw.system.Logger.debug("order found: "+order.documentNo)
|
|
628
|
+
}
|
|
629
|
+
OrderMgr.processOrders(callback, "buyerno=1");
|
|
630
|
+
dw.system.Logger.debug("found "+count+" orders for buyerno 1");
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
**Parameters:**
|
|
635
|
+
- processFunction - the function to execute for each order
|
|
636
|
+
- queryString - the query string to use when searching for an order.
|
|
637
|
+
- args - the query string arguments.
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
---
|
|
641
|
+
|
|
642
|
+
### queryOrder(String, Object...)
|
|
643
|
+
- ~~static queryOrder(queryString: [String](TopLevel.String.md), args: [Object...](TopLevel.Object.md)): [Order](dw.order.Order.md)~~
|
|
644
|
+
- :
|
|
645
|
+
|
|
646
|
+
Searches for a single order instance. Order access in the storefront can be limited; see the class description.
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
The search can be configured using a simple query language, which provides most common filter and operator
|
|
652
|
+
functionality.
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
The identifier for an **attribute** to use in a query condition is always the ID of the attribute as defined
|
|
658
|
+
in the type definition. For custom-defined attributes, the prefix 'custom' is required in the search term (e.g.
|
|
659
|
+
`custom.color = {1}`), while for system attributes no prefix is used (e.g. `name = {4}`).
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
Supported attribute value **types** with sample expression values:
|
|
665
|
+
|
|
666
|
+
- _String_`'String', 'Str*', 'Strin?'`
|
|
667
|
+
- _Integer_`1, 3E4`
|
|
668
|
+
- _Number_`1.0, 3.99E5`
|
|
669
|
+
- _Date_`yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC)`
|
|
670
|
+
- _DateTime_`yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00`
|
|
671
|
+
- _Boolean_`true, false`
|
|
672
|
+
- _Email_`'search@demandware.com', '*@demandware.com'`
|
|
673
|
+
- _Set of String_`'String', 'Str*', 'Strin?'`
|
|
674
|
+
- _Set of Integer_`1, 3E4`
|
|
675
|
+
- _Set of Number_`1.0, 3.99E5`
|
|
676
|
+
- _Enum of String_`'String', 'Str*', 'Strin?'`
|
|
677
|
+
- _Enum of Integer_`1, 3E4`
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
The following types of attributes are not queryable:
|
|
684
|
+
|
|
685
|
+
- _Image_
|
|
686
|
+
- _HTML_
|
|
687
|
+
- _Text_
|
|
688
|
+
- _Quantity_
|
|
689
|
+
- _Password_
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
Note that some system attributes are not queryable by default, regardless of the actual value type code.
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
The following **operators** are supported in a condition:
|
|
701
|
+
|
|
702
|
+
- `=`Equals - All types; supports NULL value (`thumbnail = NULL`)
|
|
703
|
+
- `!=`Not equals - All types; supports NULL value (`thumbnail != NULL`)
|
|
704
|
+
- `<`Less than - Integer, Number, and Date types only
|
|
705
|
+
- `>`Greater than - Integer, Number, and Date types only
|
|
706
|
+
- `<=`Less or equals than - Integer, Number, and Date types only
|
|
707
|
+
- `>=`Greater or equals than - Integer, Number, and Date types only
|
|
708
|
+
- `LIKE`Like - String types and Email only; use if leading or trailing wildcards will be used to support substring search (e.g. `custom.country LIKE 'US*'`)
|
|
709
|
+
- `ILIKE`Caseindependent Like - String types and Email only; use to support case-insensitive queries (e.g. `custom.country ILIKE 'usa'`); also supports wildcards for substring matching
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
Conditions can be combined using logical expressions 'AND', 'OR', and 'NOT', and nested using parentheses, e.g.
|
|
716
|
+
`gender = {1} AND (age >= {2} OR (NOT profession LIKE {3}))`.
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
The query language provides a placeholder syntax to pass objects as additional search parameters. Each passed
|
|
722
|
+
object is related to a placeholder in the query string. The placeholder must be an Integer that is surrounded by
|
|
723
|
+
braces. The first Integer value must be '0', the second '1', and so on, e.g.
|
|
724
|
+
`querySystemObjects("sample", "age = {0} or creationDate >= {1}", 18, date)`
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
If there is more than one object matching the specified query criteria, the result is not deterministic. In order
|
|
730
|
+
to retrieve a single object from a sorted result set, it is recommended to use the following code:
|
|
731
|
+
`queryOrders("", "custom.myAttr asc", null).first()`. The method `first()` returns only the
|
|
732
|
+
next element and closes the iterator. **
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
**This method is deprecated and will be removed in a future release.**
|
|
738
|
+
One of the following methods should be used instead:
|
|
739
|
+
[searchOrder(String, Object...)](dw.order.OrderMgr.md#searchorderstring-object), [searchOrders(Map, String)](dw.order.OrderMgr.md#searchordersmap-string), and
|
|
740
|
+
[searchOrders(String, String, Object...)](dw.order.OrderMgr.md#searchordersstring-string-object) to search for orders and
|
|
741
|
+
[processOrders(Function, String, Object...)](dw.order.OrderMgr.md#processordersfunction-string-object) to search for and process orders in jobs.
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
**Parameters:**
|
|
745
|
+
- queryString - the query string that is used to locate the order.
|
|
746
|
+
- args - one or more arguments to apply.
|
|
747
|
+
|
|
748
|
+
**Returns:**
|
|
749
|
+
- the order that was found when executing the `queryString`.
|
|
750
|
+
|
|
751
|
+
**Deprecated:**
|
|
752
|
+
:::warning
|
|
753
|
+
Please use [searchOrder(String, Object...)](dw.order.OrderMgr.md#searchorderstring-object) instead.
|
|
754
|
+
:::
|
|
755
|
+
|
|
756
|
+
---
|
|
757
|
+
|
|
758
|
+
### queryOrders(Map, String)
|
|
759
|
+
- ~~static queryOrders(queryAttributes: [Map](dw.util.Map.md), sortString: [String](TopLevel.String.md)): [SeekableIterator](dw.util.SeekableIterator.md)~~
|
|
760
|
+
- :
|
|
761
|
+
|
|
762
|
+
Searches for order instances. Order access in the storefront can be limited; see the class description.
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
The search can be configured with a map, which converts key-value pairs into a query expression. The key-value
|
|
768
|
+
pairs are turned into a sequence of '=' or 'like' conditions, which are combined with AND statements. When
|
|
769
|
+
implementing order history functionality, don't use the search or query methods in this class. Instead, use
|
|
770
|
+
[OrderHistory.getOrders(String, String, Object...)](dw.customer.OrderHistory.md#getordersstring-string-object).
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
Example:
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
A map with the key/value pairs: _'name'/'tom\*', 'age'/66_ will be converted as follows:
|
|
781
|
+
`"name like 'tom*' and age = 66"`
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
The identifier for an **attribute** to use in a query condition is always the ID of the attribute as defined
|
|
787
|
+
in the type definition. For custom-defined attributes, the prefix 'custom' is required in the search term (e.g.
|
|
788
|
+
`custom.color = {1}`), while for system attributes no prefix is used (e.g. `name = {4}`).
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
Supported attribute value **types** with sample expression values:
|
|
794
|
+
|
|
795
|
+
- _String_`'String', 'Str*', 'Strin?'`
|
|
796
|
+
- _Integer_`1, 3E4`
|
|
797
|
+
- _Number_`1.0, 3.99E5`
|
|
798
|
+
- _Date_`yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC)`
|
|
799
|
+
- _DateTime_`yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00`
|
|
800
|
+
- _Boolean_`true, false`
|
|
801
|
+
- _Email_`'search@demandware.com', '*@demandware.com'`
|
|
802
|
+
- _Set of String_`'String', 'Str*', 'Strin?'`
|
|
803
|
+
- _Set of Integer_`1, 3E4`
|
|
804
|
+
- _Set of Number_`1.0, 3.99E5`
|
|
805
|
+
- _Enum of String_`'String', 'Str*', 'Strin?'`
|
|
806
|
+
- _Enum of Integer_`1, 3E4`
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
The following types of attributes are not queryable:
|
|
813
|
+
|
|
814
|
+
- _Image_
|
|
815
|
+
- _HTML_
|
|
816
|
+
- _Text_
|
|
817
|
+
- _Quantity_
|
|
818
|
+
- _Password_
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
Note that some system attributes are not queryable by default, regardless of the actual value type code.
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
The **sorting** parameter is optional and may contain a comma-separated list of attribute names to sort by.
|
|
830
|
+
Each sort attribute name may be followed by an optional sort direction specifier ('asc' | 'desc'). The default
|
|
831
|
+
sorting direction is ascending, if no direction was specified.
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
Example: `age desc, name`
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
Please note that specifying a localized custom attribute as the sorting attribute is currently not supported.
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
It is strongly recommended to call the `[SeekableIterator.close()](dw.util.SeekableIterator.md#close)` on the returned
|
|
847
|
+
SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system
|
|
848
|
+
resources.
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
**This method is deprecated and will be removed in a future release.**
|
|
854
|
+
One of the following methods should be used instead:
|
|
855
|
+
[searchOrder(String, Object...)](dw.order.OrderMgr.md#searchorderstring-object), [searchOrders(Map, String)](dw.order.OrderMgr.md#searchordersmap-string), and
|
|
856
|
+
[searchOrders(String, String, Object...)](dw.order.OrderMgr.md#searchordersstring-string-object) to search for orders and
|
|
857
|
+
[processOrders(Function, String, Object...)](dw.order.OrderMgr.md#processordersfunction-string-object) to search for and process orders in jobs.
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
**Parameters:**
|
|
861
|
+
- queryAttributes - a set of key-value pairs that define the query.
|
|
862
|
+
- sortString - an optional sorting, or null if no sorting is necessary.
|
|
863
|
+
|
|
864
|
+
**Returns:**
|
|
865
|
+
- SeekableIterator containing the result set of the query.
|
|
866
|
+
|
|
867
|
+
**See Also:**
|
|
868
|
+
- [SeekableIterator.close()](dw.util.SeekableIterator.md#close)
|
|
869
|
+
|
|
870
|
+
**Deprecated:**
|
|
871
|
+
:::warning
|
|
872
|
+
Please use [searchOrders(Map, String)](dw.order.OrderMgr.md#searchordersmap-string) instead.
|
|
873
|
+
:::
|
|
874
|
+
|
|
875
|
+
---
|
|
876
|
+
|
|
877
|
+
### queryOrders(String, String, Object...)
|
|
878
|
+
- ~~static queryOrders(queryString: [String](TopLevel.String.md), sortString: [String](TopLevel.String.md), args: [Object...](TopLevel.Object.md)): [SeekableIterator](dw.util.SeekableIterator.md)~~
|
|
879
|
+
- :
|
|
880
|
+
|
|
881
|
+
Searches for order instances. Order access in the storefront can be limited; see the class description.
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
The search can be configured using a simple query language, which provides most common filter and operator
|
|
887
|
+
functionality. When implementing order history functionality, don't use the search or query methods in this
|
|
888
|
+
class. Instead, use [OrderHistory.getOrders(String, String, Object...)](dw.customer.OrderHistory.md#getordersstring-string-object).
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
The identifier for an **attribute** to use in a query condition is always the ID of the attribute as defined
|
|
894
|
+
in the type definition. For custom-defined attributes, the prefix 'custom' is required in the search term (e.g.
|
|
895
|
+
`custom.color = {1}`), while for system attributes no prefix is used (e.g. `name = {4}`).
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
Supported attribute value **types** with sample expression values:
|
|
901
|
+
|
|
902
|
+
- _String_`'String', 'Str*', 'Strin?'`
|
|
903
|
+
- _Integer_`1, 3E4`
|
|
904
|
+
- _Number_`1.0, 3.99E5`
|
|
905
|
+
- _Date_`yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC)`
|
|
906
|
+
- _DateTime_`yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00`
|
|
907
|
+
- _Boolean_`true, false`
|
|
908
|
+
- _Email_`'search@demandware.com', '*@demandware.com'`
|
|
909
|
+
- _Set of String_`'String', 'Str*', 'Strin?'`
|
|
910
|
+
- _Set of Integer_`1, 3E4`
|
|
911
|
+
- _Set of Number_`1.0, 3.99E5`
|
|
912
|
+
- _Enum of String_`'String', 'Str*', 'Strin?'`
|
|
913
|
+
- _Enum of Integer_`1, 3E4`
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
The following types of attributes are not queryable:
|
|
920
|
+
|
|
921
|
+
- _Image_
|
|
922
|
+
- _HTML_
|
|
923
|
+
- _Text_
|
|
924
|
+
- _Quantity_
|
|
925
|
+
- _Password_
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
Note that some system attributes are not queryable by default, regardless of the actual value type code.
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
The following **operators** are supported in a condition:
|
|
937
|
+
|
|
938
|
+
- `=`Equals - All types; supports NULL value (`thumbnail = NULL`)
|
|
939
|
+
- `!=`Not equals - All types; supports NULL value (`thumbnail != NULL`)
|
|
940
|
+
- `<`Less than - Integer, Number, and Date types only
|
|
941
|
+
- `>`Greater than - Integer, Number, and Date types only
|
|
942
|
+
- `<=`Less or equals than - Integer, Number, and Date types only
|
|
943
|
+
- `>=`Greater or equals than - Integer, Number, and Date types only
|
|
944
|
+
- `LIKE`Like - String types and Email only; use if leading or trailing wildcards will be used to support substring search (e.g. `custom.country LIKE 'US*'`)
|
|
945
|
+
- `ILIKE`Caseindependent Like - String types and Email only; use to support case-insensitive queries (e.g. `custom.country ILIKE 'usa'`); also supports wildcards for substring matching
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
Conditions can be combined using logical expressions 'AND', 'OR', and 'NOT', and nested using parentheses, e.g.
|
|
952
|
+
`gender = {1} AND (age >= {2} OR (NOT profession LIKE {3}))`.
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
The query language provides a placeholder syntax to pass objects as additional search parameters. Each passed
|
|
958
|
+
object is related to a placeholder in the query string. The placeholder must be an Integer that is surrounded by
|
|
959
|
+
braces. The first Integer value must be '0', the second '1', and so on, e.g.
|
|
960
|
+
`querySystemObjects("sample", "age = {0} or creationDate >= {1}", 18, date)`
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
The **sorting** parameter is optional and may contain a comma-separated list of attribute names to sort by.
|
|
966
|
+
Each sort attribute name may be followed by an optional sort direction specifier ('asc' | 'desc'). The default
|
|
967
|
+
sorting direction is ascending, if no direction was specified.
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
Example: `age desc, name`
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
Please note that specifying a localized custom attribute as the sorting attribute is currently not supported.
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
Sometimes it is desired to get all instances of a specified type with a special sorting condition. This can be
|
|
983
|
+
easily done by providing the 'type' of the custom object and the 'sortString' in combination with an empty
|
|
984
|
+
'queryString', e.g. `queryOrders("sample", "", "custom.myAttr asc")`.
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
It is strongly recommended to call `[SeekableIterator.close()](dw.util.SeekableIterator.md#close)` on the returned
|
|
990
|
+
SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system
|
|
991
|
+
resources.
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
**This method is deprecated and will be removed in a future release.**
|
|
997
|
+
One of the following methods should be used instead:
|
|
998
|
+
[searchOrder(String, Object...)](dw.order.OrderMgr.md#searchorderstring-object), [searchOrders(Map, String)](dw.order.OrderMgr.md#searchordersmap-string), and
|
|
999
|
+
[searchOrders(String, String, Object...)](dw.order.OrderMgr.md#searchordersstring-string-object) to search for orders, and
|
|
1000
|
+
[processOrders(Function, String, Object...)](dw.order.OrderMgr.md#processordersfunction-string-object) to search for and process orders in jobs.
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
**Parameters:**
|
|
1004
|
+
- queryString - the actual query.
|
|
1005
|
+
- sortString - an optional sorting, or null if no sorting is necessary.
|
|
1006
|
+
- args - one or more arguments for the query string.
|
|
1007
|
+
|
|
1008
|
+
**Returns:**
|
|
1009
|
+
- SeekableIterator containing the result set of the query.
|
|
1010
|
+
|
|
1011
|
+
**See Also:**
|
|
1012
|
+
- [SeekableIterator.close()](dw.util.SeekableIterator.md#close)
|
|
1013
|
+
|
|
1014
|
+
**Deprecated:**
|
|
1015
|
+
:::warning
|
|
1016
|
+
Please use [searchOrders(String, String, Object...)](dw.order.OrderMgr.md#searchordersstring-string-object) instead.
|
|
1017
|
+
:::
|
|
1018
|
+
|
|
1019
|
+
---
|
|
1020
|
+
|
|
1021
|
+
### searchOrder(String, Object...)
|
|
1022
|
+
- static searchOrder(queryString: [String](TopLevel.String.md), args: [Object...](TopLevel.Object.md)): [Order](dw.order.Order.md)
|
|
1023
|
+
- :
|
|
1024
|
+
|
|
1025
|
+
Searches for a single order instance. Order access in the storefront can be limited; see the class description.
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
The search can be configured using a simple query language, which provides most common filter and operator
|
|
1031
|
+
functionality.
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
The identifier for an **attribute** to use in a query condition is always the ID of the attribute as defined
|
|
1037
|
+
in the type definition. For custom-defined attributes the prefix 'custom' is required in the search term (e.g.
|
|
1038
|
+
`custom.color = {1}`), while for system attributes no prefix is used (e.g. `name = {4}`).
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
Supported attribute value **types** with sample expression values:
|
|
1044
|
+
|
|
1045
|
+
- _String_`'String', 'Str*', 'Strin?'`
|
|
1046
|
+
- _Integer_`1, 3E4`
|
|
1047
|
+
- _Number_`1.0, 3.99E5`
|
|
1048
|
+
- _Date_`yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC)`
|
|
1049
|
+
- _DateTime_`yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00`
|
|
1050
|
+
- _Boolean_`true, false`
|
|
1051
|
+
- _Email_`'search@demandware.com', '*@demandware.com'`
|
|
1052
|
+
- _Set of String_`'String', 'Str*', 'Strin?'`
|
|
1053
|
+
- _Set of Integer_`1, 3E4`
|
|
1054
|
+
- _Set of Number_`1.0, 3.99E5`
|
|
1055
|
+
- _Enum of String_`'String', 'Str*', 'Strin?'`
|
|
1056
|
+
- _Enum of Integer_`1, 3E4`
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
The following types of attributes are not queryable:
|
|
1063
|
+
|
|
1064
|
+
- _Image_
|
|
1065
|
+
- _HTML_
|
|
1066
|
+
- _Text_
|
|
1067
|
+
- _Quantity_
|
|
1068
|
+
- _Password_
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
Note that some system attributes are not queryable by default, regardless of the actual value type code.
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
The following **operators** are supported in a condition:
|
|
1080
|
+
|
|
1081
|
+
- `=`Equals - All types; supports NULL value (`thumbnail = NULL`)
|
|
1082
|
+
- `!=`Not equals - All types; supports NULL value (`thumbnail != NULL`)
|
|
1083
|
+
- `<`Less than - Integer, Number, and Date types only
|
|
1084
|
+
- `>`Greater than - Integer, Number, and Date types only
|
|
1085
|
+
- `<=`Less or equals than - Integer, Number, and Date types only
|
|
1086
|
+
- `>=`Greater or equals than - Integer, Number, and Date types only
|
|
1087
|
+
- `LIKE`Like - String types and Email only; use if leading or trailing wildcards will be used to support substring search (e.g. `custom.country LIKE 'US*'`)
|
|
1088
|
+
- `ILIKE`Caseindependent Like - String types and Email only; use to support case-insensitive queries (e.g. `custom.country ILIKE 'usa'`), also supports wildcards for substring matching
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
Conditions can be combined using logical expressions 'AND', 'OR', and 'NOT', and nested using parentheses, e.g.
|
|
1095
|
+
`gender = {1} AND (age >= {2} OR (NOT profession LIKE {3}))`.
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
The query language provides a placeholder syntax to pass objects as additional search parameters. Each passed
|
|
1101
|
+
object is related to a placeholder in the query string. The placeholder must be an Integer that is surrounded by
|
|
1102
|
+
braces. The first Integer value must be '0', the second '1', and so on, e.g.
|
|
1103
|
+
`querySystemObjects("sample", "age = {0} or creationDate >= {1}", 18, date)`.
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
If there is more than one object matching the specified query criteria, the result is not deterministic. In order
|
|
1109
|
+
to retrieve a single object from a sorted result set, it is recommended to use the following code:
|
|
1110
|
+
`queryOrders("", "custom.myAttr asc", null).first()`. The method `first()` returns only the
|
|
1111
|
+
next element and closes the iterator.
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
If the order search API is configured to use the new Search Service, these differences apply:
|
|
1117
|
+
|
|
1118
|
+
- Search may match and return documents with missing (NULL) values in search fields, depending on how the query is structured, potentially leading to broader result sets. For example, a query like `custom.searchField != "some value"`also returns documents where `custom.searchField`is NULL — whereas in relational databases, such documents are excluded.
|
|
1119
|
+
- Wildcards are filtered from the query (\*, %, +) and replaced by spaces
|
|
1120
|
+
- LIKE and ILIKE queries are executed as fulltext queries (working on whole words), not as substring searches
|
|
1121
|
+
- LIKE queries are always case-insensitive
|
|
1122
|
+
- Using logical operators may change the execution of LIKE/ILIKE clauses to exact string comparison, depending on how they are combined
|
|
1123
|
+
- Using logical operators may result in degraded performance, depending on how they are combined
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
Order search index updates are asynchronous, triggered only by committing changes to the underlying system.
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
**Parameters:**
|
|
1133
|
+
- queryString - the query string that is used to locate the order.
|
|
1134
|
+
- args - one or more arguments to apply.
|
|
1135
|
+
|
|
1136
|
+
**Returns:**
|
|
1137
|
+
- the order that was found when executing the `queryString`.
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
---
|
|
1141
|
+
|
|
1142
|
+
### searchOrders(Map, String)
|
|
1143
|
+
- static searchOrders(queryAttributes: [Map](dw.util.Map.md), sortString: [String](TopLevel.String.md)): [SeekableIterator](dw.util.SeekableIterator.md)
|
|
1144
|
+
- :
|
|
1145
|
+
|
|
1146
|
+
Searches for order instances. Order access in the storefront can be limited; see the class description.
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
The search can be configured with a map, which converts key-value pairs into a query expression. The key-value
|
|
1152
|
+
pairs are turned into a sequence of '=' or 'like' conditions, which are combined with AND statements.
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
Example:
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
A map with the key/value pairs: _'name'/'tom\*', 'age'/66_ will be converted as follows:
|
|
1163
|
+
`"name like 'tom*' and age = 66"` Note that wildcards are not supported by Search Service.
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
The identifier for an **attribute** to use in a query condition is always the ID of the attribute as defined
|
|
1169
|
+
in the type definition. For custom-defined attributes, the prefix 'custom' is required in the search term (e.g.
|
|
1170
|
+
`custom.color = {1}`), while for system attributes no prefix is used (e.g. `name = {4}`).
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
Supported attribute value **types** with sample expression values:
|
|
1176
|
+
|
|
1177
|
+
- _String_`'String', 'Str*', 'Strin?'`
|
|
1178
|
+
- _Integer_`1, 3E4`
|
|
1179
|
+
- _Number_`1.0, 3.99E5`
|
|
1180
|
+
- _Date_`yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC)`
|
|
1181
|
+
- _DateTime_`yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00`
|
|
1182
|
+
- _Boolean_`true, false`
|
|
1183
|
+
- _Email_`'search@demandware.com', '*@demandware.com'`
|
|
1184
|
+
- _Set of String_`'String', 'Str*', 'Strin?'`
|
|
1185
|
+
- _Set of Integer_`1, 3E4`
|
|
1186
|
+
- _Set of Number_`1.0, 3.99E5`
|
|
1187
|
+
- _Enum of String_`'String', 'Str*', 'Strin?'`
|
|
1188
|
+
- _Enum of Integer_`1, 3E4`
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
The following types of attributes are not queryable:
|
|
1195
|
+
|
|
1196
|
+
- _Image_
|
|
1197
|
+
- _HTML_
|
|
1198
|
+
- _Text_
|
|
1199
|
+
- _Quantity_
|
|
1200
|
+
- _Password_
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
Note that some system attributes are not queryable by default, regardless of the actual value type code.
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
The **sorting** parameter is optional and may contain a comma-separated list of attribute names to sort by.
|
|
1212
|
+
Each sort attribute name may be followed by an optional sort direction specifier ('asc' | 'desc'). The default
|
|
1213
|
+
sorting direction is ascending, if no direction was specified.
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
Example: `age desc, name`
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
Please note that specifying a localized custom attribute as the sorting attribute is currently not supported.
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
It is strongly recommended to call `[SeekableIterator.close()](dw.util.SeekableIterator.md#close)` on the returned
|
|
1229
|
+
SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system
|
|
1230
|
+
resources.
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
If the order search API is configured to use the new Search Service, these differences apply:
|
|
1236
|
+
|
|
1237
|
+
- Search may match and return documents with missing (NULL) values in search fields, depending on how the query is structured, potentially leading to broader result sets. For example, a query like `custom.searchField != "some value"`also returns documents where `custom.searchField`is NULL — whereas in relational databases, such documents are excluded.
|
|
1238
|
+
- Wildcards are filtered from the query (\*, %, +) and replaced by spaces
|
|
1239
|
+
- LIKE and ILIKE queries are executed as fulltext queries (working on whole words), not as substring searches
|
|
1240
|
+
- LIKE queries are always case-insensitive
|
|
1241
|
+
- Using logical operators may change the execution of LIKE/ILIKE clauses to exact string comparison, depending on how they are combined
|
|
1242
|
+
- Using logical operators may result in degraded performance, depending on how they are combined
|
|
1243
|
+
- The result is limited to a maximum of 1000 orders
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
Order search index updates are asynchronous, triggered only by committing changes to the underlying system.
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
**Parameters:**
|
|
1253
|
+
- queryAttributes - a set of key-value pairs that define the query.
|
|
1254
|
+
- sortString - an optional sorting or null if no sorting is necessary.
|
|
1255
|
+
|
|
1256
|
+
**Returns:**
|
|
1257
|
+
- SeekableIterator containing the result set of the query.
|
|
1258
|
+
|
|
1259
|
+
**See Also:**
|
|
1260
|
+
- [SeekableIterator.close()](dw.util.SeekableIterator.md#close)
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
---
|
|
1264
|
+
|
|
1265
|
+
### searchOrders(String, String, Object...)
|
|
1266
|
+
- static searchOrders(queryString: [String](TopLevel.String.md), sortString: [String](TopLevel.String.md), args: [Object...](TopLevel.Object.md)): [SeekableIterator](dw.util.SeekableIterator.md)
|
|
1267
|
+
- :
|
|
1268
|
+
|
|
1269
|
+
Searches for order instances. Order access in the storefront can be limited; see the class description.
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
The search can be configured using a simple query language, which provides most common filter and operator
|
|
1275
|
+
functionality. When implementing order history functionality, don't use the search or query methods in this
|
|
1276
|
+
class. Instead, use [OrderHistory.getOrders(String, String, Object...)](dw.customer.OrderHistory.md#getordersstring-string-object).
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
The identifier for an **attribute** to use in a query condition is always the ID of the attribute as defined
|
|
1282
|
+
in the type definition. For custom-defined attributes the prefix 'custom' is required in the search term (e.g.
|
|
1283
|
+
`custom.color = {1}`), while for system attributes no prefix is used (e.g. `name = {4}`).
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
Supported attribute value **types** with sample expression values:
|
|
1289
|
+
|
|
1290
|
+
- _String_`'String', 'Str*', 'Strin?'`
|
|
1291
|
+
- _Integer_`1, 3E4`
|
|
1292
|
+
- _Number_`1.0, 3.99E5`
|
|
1293
|
+
- _Date_`yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC)`
|
|
1294
|
+
- _DateTime_`yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00`
|
|
1295
|
+
- _Boolean_`true, false`
|
|
1296
|
+
- _Email_`'search@demandware.com', '*@demandware.com'`
|
|
1297
|
+
- _Set of String_`'String', 'Str*', 'Strin?'`
|
|
1298
|
+
- _Set of Integer_`1, 3E4`
|
|
1299
|
+
- _Set of Number_`1.0, 3.99E5`
|
|
1300
|
+
- _Enum of String_`'String', 'Str*', 'Strin?'`
|
|
1301
|
+
- _Enum of Integer_`1, 3E4`
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
The following types of attributes are not queryable:
|
|
1308
|
+
|
|
1309
|
+
- _Image_
|
|
1310
|
+
- _HTML_
|
|
1311
|
+
- _Text_
|
|
1312
|
+
- _Quantity_
|
|
1313
|
+
- _Password_
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
Note that some system attributes are not queryable by default, regardless of the actual value type code.
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
The following **operators** are supported in a condition:
|
|
1325
|
+
|
|
1326
|
+
- `=`Equals - All types; supports NULL value (`thumbnail = NULL`)
|
|
1327
|
+
- `!=`Not equals - All types; supports NULL value (`thumbnail != NULL`)
|
|
1328
|
+
- `<`Less than - Integer, Number, and Date types only
|
|
1329
|
+
- `>`Greater than - Integer, Number, and Date types only
|
|
1330
|
+
- `<=`Less or equals than - Integer, Number, and Date types only
|
|
1331
|
+
- `>=`Greater or equals than - Integer, Number, and Date types only
|
|
1332
|
+
- `LIKE`Like - String types and Email only; use if leading or trailing wildcards will be used to support substring search (e.g. `custom.country LIKE 'US*'`)
|
|
1333
|
+
- `ILIKE`Caseindependent Like - String types and Email only; use to support case-insensitive queries (e.g. `custom.country ILIKE 'usa'`); also supports wildcards for substring matching
|
|
1334
|
+
|
|
1335
|
+
Note that wildcards are not supported by Search Service.
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
Conditions can be combined using logical expressions 'AND', 'OR', and 'NOT', and nested using parentheses, e.g.
|
|
1341
|
+
`gender = {1} AND (age >= {2} OR (NOT profession LIKE {3}))`.
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
The query language provides a placeholder syntax to pass objects as additional search parameters. Each passed
|
|
1347
|
+
object is related to a placeholder in the query string. The placeholder must be an Integer that is surrounded by
|
|
1348
|
+
braces. The first Integer value must be '0', the second '1', and so on, e.g.
|
|
1349
|
+
`querySystemObjects("sample", "age = {0} or creationDate >= {1}", 18, date)`.
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
The **sorting** parameter is optional and may contain a comma-separated list of attribute names to sort by.
|
|
1355
|
+
Each sort attribute name may be followed by an optional sort direction specifier ('asc' | 'desc'). The default
|
|
1356
|
+
sorting direction is ascending, if no direction was specified.
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
Example: `age desc, name`
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
Please note that specifying a localized custom attribute as the sorting attribute is currently not supported.
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
Sometimes it is desired to get all instances of a specified type with a special sorting condition. This can be
|
|
1372
|
+
easily done by providing the 'type' of the custom object and the 'sortString' in combination with an empty
|
|
1373
|
+
'queryString', e.g. `queryOrders("sample", "", "custom.myAttr asc")`.
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
It is strongly recommended to call `[SeekableIterator.close()](dw.util.SeekableIterator.md#close)` on the returned
|
|
1379
|
+
SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system
|
|
1380
|
+
resources.
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
If the order search API is configured to use the new Search Service, these differences apply:
|
|
1386
|
+
|
|
1387
|
+
- Search may match and return documents with missing (NULL) values in search fields, depending on how the query is structured, potentially leading to broader result sets. For example, a query like `custom.searchField != "some value"`also returns documents where `custom.searchField`is NULL — whereas in relational databases, such documents are excluded.
|
|
1388
|
+
- Wildcards are filtered from the query (\*, %, +) and replaced by spaces
|
|
1389
|
+
- LIKE and ILIKE queries are executed as fulltext queries (working on whole words), not as substring searches
|
|
1390
|
+
- LIKE queries are always case-insensitive
|
|
1391
|
+
- Using logical operators may change the execution of LIKE/ILIKE clauses to exact string comparison, depending on how they are combined
|
|
1392
|
+
- Using logical operators may result in degraded performance, depending on how they are combined
|
|
1393
|
+
- The result is limited to a maximum of 1000 orders
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
Order search index updates are asynchronous, triggered only by committing changes to the underlying system.
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
**Parameters:**
|
|
1403
|
+
- queryString - the actual query.
|
|
1404
|
+
- sortString - an optional sorting or null if no sorting is necessary.
|
|
1405
|
+
- args - one or more arguments for the query string.
|
|
1406
|
+
|
|
1407
|
+
**Returns:**
|
|
1408
|
+
- SeekableIterator containing the result set of the query.
|
|
1409
|
+
|
|
1410
|
+
**See Also:**
|
|
1411
|
+
- [SeekableIterator.close()](dw.util.SeekableIterator.md#close)
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
---
|
|
1415
|
+
|
|
1416
|
+
### undoCancelOrder(Order)
|
|
1417
|
+
- static undoCancelOrder(order: [Order](dw.order.Order.md)): [Status](dw.system.Status.md)
|
|
1418
|
+
- :
|
|
1419
|
+
|
|
1420
|
+
This method is used to turn a CANCELLED order into an OPEN order.
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
The specified order must be a cancelled order ([Order.ORDER_STATUS_CANCELLED](dw.order.Order.md#order_status_cancelled)). The method will
|
|
1426
|
+
reserve inventory for all product line items, and create redemptions for all coupons. If successful, the status
|
|
1427
|
+
of the order will be changed to [Order.ORDER_STATUS_OPEN](dw.order.Order.md#order_status_open). If the order contains product or gift
|
|
1428
|
+
certificate line items associated with product list items, records of the purchase of the product list items will
|
|
1429
|
+
be recreated.
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
If the undoCancelOrder call fails, the transaction is marked as ‘rollback only’ – all changes in the associated
|
|
1435
|
+
transaction will no longer be committed.
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
Possible error status codes are:
|
|
1441
|
+
|
|
1442
|
+
- [OrderProcessStatusCodes.COUPON_INVALID](dw.order.OrderProcessStatusCodes.md#coupon_invalid)- coupon is not active anymore or maximum amount of redemptions is reached
|
|
1443
|
+
- [OrderProcessStatusCodes.ORDER_NOT_CANCELLED](dw.order.OrderProcessStatusCodes.md#order_not_cancelled)- order is not in status [Order.ORDER_STATUS_CANCELLED](dw.order.Order.md#order_status_cancelled)
|
|
1444
|
+
- [OrderProcessStatusCodes.INVENTORY_RESERVATION_FAILED](dw.order.OrderProcessStatusCodes.md#inventory_reservation_failed)- Inventory reservation for the order failed. In cases when availability is too low then undoCancel or undoFail results in a reservation failure. This can be avoided using the order site preferences to specifically allow overselling. See order site preferences under "Constraints for Undoing Failed/Cancelled Orders".
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
**Parameters:**
|
|
1448
|
+
- order - the order on which to undo the cancel [cancelOrder(Order)](dw.order.OrderMgr.md#cancelorderorder)
|
|
1449
|
+
|
|
1450
|
+
**Returns:**
|
|
1451
|
+
- Status 'OK' or 'ERROR' with one of the error codes described above
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
---
|
|
1455
|
+
|
|
1456
|
+
### undoFailOrder(Order)
|
|
1457
|
+
- static undoFailOrder(order: [Order](dw.order.Order.md)): [Status](dw.system.Status.md)
|
|
1458
|
+
- :
|
|
1459
|
+
|
|
1460
|
+
This method is used to turn a FAILED order into a CREATED order.
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
The specified order must be a failed order ([Order.ORDER_STATUS_FAILED](dw.order.Order.md#order_status_failed)). The method will reserve
|
|
1466
|
+
inventory for all product line items, and create redemptions for all coupons. If successful, the status of the
|
|
1467
|
+
order will be changed to [Order.ORDER_STATUS_CREATED](dw.order.Order.md#order_status_created).
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
If the undoFailOrder call fails, the transaction is marked as ‘rollback only’ – all changes in the associated
|
|
1473
|
+
transaction will no longer be committed.
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
Possible error status codes are:
|
|
1479
|
+
|
|
1480
|
+
- [OrderProcessStatusCodes.COUPON_INVALID](dw.order.OrderProcessStatusCodes.md#coupon_invalid)- coupon is not active anymore or maximum amount of redemptions is reached
|
|
1481
|
+
- [OrderProcessStatusCodes.ORDER_NOT_FAILED](dw.order.OrderProcessStatusCodes.md#order_not_failed)- order is not in status [Order.ORDER_STATUS_FAILED](dw.order.Order.md#order_status_failed)
|
|
1482
|
+
- [OrderProcessStatusCodes.INVENTORY_RESERVATION_FAILED](dw.order.OrderProcessStatusCodes.md#inventory_reservation_failed)- Inventory reservation for the order failed. In cases when availability is too low then undoCancel or undoFail results in a reservation failure. This can be avoided using the order site preferences to specifically allow overselling. See order site preferences under "Constraints for Undoing Failed/Cancelled Orders".
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
**Parameters:**
|
|
1486
|
+
- order - the order on which to undo the fail [failOrder(Order)](dw.order.OrderMgr.md#failorderorder)
|
|
1487
|
+
|
|
1488
|
+
**Returns:**
|
|
1489
|
+
- Status 'OK' or 'ERROR' with one of the error codes described above
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
---
|
|
1493
|
+
|
|
1494
|
+
<!-- prettier-ignore-end -->
|