@salesforce/b2c-tooling-sdk 1.19.1 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (577) hide show
  1. package/data/help/index.json +9685 -0
  2. package/data/script-api/index.json +1 -528
  3. package/data/tooling/index.json +4 -4
  4. package/data/xsd/index.json +1 -1
  5. package/dist/esm/cli/base-command.js +5 -0
  6. package/dist/esm/cli/base-command.js.map +1 -1
  7. package/dist/esm/clients/index.d.ts +2 -0
  8. package/dist/esm/clients/index.js +1 -0
  9. package/dist/esm/clients/index.js.map +1 -1
  10. package/dist/esm/clients/middleware-registry.d.ts +1 -1
  11. package/dist/esm/clients/middleware-registry.js.map +1 -1
  12. package/dist/esm/clients/preferences.d.ts +83 -0
  13. package/dist/esm/clients/preferences.generated.d.ts +1651 -0
  14. package/dist/esm/clients/preferences.generated.js +6 -0
  15. package/dist/esm/clients/preferences.generated.js.map +1 -0
  16. package/dist/esm/clients/preferences.js +64 -0
  17. package/dist/esm/clients/preferences.js.map +1 -0
  18. package/dist/esm/config/dw-json.d.ts +2 -0
  19. package/dist/esm/config/dw-json.js.map +1 -1
  20. package/dist/esm/config/mapping.js +4 -0
  21. package/dist/esm/config/mapping.js.map +1 -1
  22. package/dist/esm/config/sources/dw-json-source.js +17 -4
  23. package/dist/esm/config/sources/dw-json-source.js.map +1 -1
  24. package/dist/esm/config/sources/env-source.js +2 -0
  25. package/dist/esm/config/sources/env-source.js.map +1 -1
  26. package/dist/esm/config/types.d.ts +14 -0
  27. package/dist/esm/docs/content-cache.d.ts +70 -0
  28. package/dist/esm/docs/content-cache.js +186 -0
  29. package/dist/esm/docs/content-cache.js.map +1 -0
  30. package/dist/esm/docs/index.d.ts +1 -0
  31. package/dist/esm/docs/index.js +2 -0
  32. package/dist/esm/docs/index.js.map +1 -1
  33. package/dist/esm/docs/search.js +34 -6
  34. package/dist/esm/docs/search.js.map +1 -1
  35. package/dist/esm/docs/types.d.ts +6 -1
  36. package/dist/esm/docs/types.js +1 -0
  37. package/dist/esm/docs/types.js.map +1 -1
  38. package/dist/esm/index.d.ts +2 -2
  39. package/dist/esm/index.js +1 -1
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/operations/jobs/discover.d.ts +46 -0
  42. package/dist/esm/operations/jobs/discover.js +87 -0
  43. package/dist/esm/operations/jobs/discover.js.map +1 -0
  44. package/dist/esm/operations/jobs/index.d.ts +2 -0
  45. package/dist/esm/operations/jobs/index.js +2 -0
  46. package/dist/esm/operations/jobs/index.js.map +1 -1
  47. package/dist/esm/operations/jobs/run.js +4 -3
  48. package/dist/esm/operations/jobs/run.js.map +1 -1
  49. package/package.json +5 -3
  50. package/specs/preferences-v1.yaml +2095 -0
  51. package/data/script-api/TopLevel.APIException.md +0 -119
  52. package/data/script-api/TopLevel.Array.md +0 -732
  53. package/data/script-api/TopLevel.ArrayBuffer.md +0 -97
  54. package/data/script-api/TopLevel.BigInt.md +0 -154
  55. package/data/script-api/TopLevel.Boolean.md +0 -83
  56. package/data/script-api/TopLevel.ConversionError.md +0 -51
  57. package/data/script-api/TopLevel.DataView.md +0 -271
  58. package/data/script-api/TopLevel.Date.md +0 -688
  59. package/data/script-api/TopLevel.ES6Iterator.md +0 -47
  60. package/data/script-api/TopLevel.Error.md +0 -124
  61. package/data/script-api/TopLevel.EvalError.md +0 -47
  62. package/data/script-api/TopLevel.Fault.md +0 -133
  63. package/data/script-api/TopLevel.Float32Array.md +0 -186
  64. package/data/script-api/TopLevel.Float64Array.md +0 -186
  65. package/data/script-api/TopLevel.Function.md +0 -114
  66. package/data/script-api/TopLevel.Generator.md +0 -132
  67. package/data/script-api/TopLevel.IOError.md +0 -98
  68. package/data/script-api/TopLevel.Int16Array.md +0 -186
  69. package/data/script-api/TopLevel.Int32Array.md +0 -186
  70. package/data/script-api/TopLevel.Int8Array.md +0 -186
  71. package/data/script-api/TopLevel.InternalError.md +0 -47
  72. package/data/script-api/TopLevel.Iterable.md +0 -44
  73. package/data/script-api/TopLevel.Iterator.md +0 -89
  74. package/data/script-api/TopLevel.JSON.md +0 -173
  75. package/data/script-api/TopLevel.Map.md +0 -189
  76. package/data/script-api/TopLevel.Math.md +0 -948
  77. package/data/script-api/TopLevel.Module.md +0 -152
  78. package/data/script-api/TopLevel.Namespace.md +0 -152
  79. package/data/script-api/TopLevel.Number.md +0 -404
  80. package/data/script-api/TopLevel.Object.md +0 -472
  81. package/data/script-api/TopLevel.QName.md +0 -147
  82. package/data/script-api/TopLevel.RangeError.md +0 -47
  83. package/data/script-api/TopLevel.ReferenceError.md +0 -47
  84. package/data/script-api/TopLevel.RegExp.md +0 -155
  85. package/data/script-api/TopLevel.Set.md +0 -150
  86. package/data/script-api/TopLevel.StopIteration.md +0 -36
  87. package/data/script-api/TopLevel.String.md +0 -1060
  88. package/data/script-api/TopLevel.Symbol.md +0 -196
  89. package/data/script-api/TopLevel.SyntaxError.md +0 -47
  90. package/data/script-api/TopLevel.SystemError.md +0 -99
  91. package/data/script-api/TopLevel.TypeError.md +0 -47
  92. package/data/script-api/TopLevel.URIError.md +0 -47
  93. package/data/script-api/TopLevel.Uint16Array.md +0 -186
  94. package/data/script-api/TopLevel.Uint32Array.md +0 -186
  95. package/data/script-api/TopLevel.Uint8Array.md +0 -186
  96. package/data/script-api/TopLevel.Uint8ClampedArray.md +0 -186
  97. package/data/script-api/TopLevel.WeakMap.md +0 -135
  98. package/data/script-api/TopLevel.WeakSet.md +0 -96
  99. package/data/script-api/TopLevel.XML.md +0 -922
  100. package/data/script-api/TopLevel.XMLList.md +0 -418
  101. package/data/script-api/TopLevel.XMLStreamError.md +0 -115
  102. package/data/script-api/TopLevel.arguments.md +0 -56
  103. package/data/script-api/TopLevel.global.md +0 -539
  104. package/data/script-api/TopLevel.md +0 -58
  105. package/data/script-api/dw.alert.Alert.md +0 -175
  106. package/data/script-api/dw.alert.Alerts.md +0 -256
  107. package/data/script-api/dw.alert.md +0 -7
  108. package/data/script-api/dw.campaign.ABTest.md +0 -63
  109. package/data/script-api/dw.campaign.ABTestMgr.md +0 -76
  110. package/data/script-api/dw.campaign.ABTestSegment.md +0 -107
  111. package/data/script-api/dw.campaign.AmountDiscount.md +0 -70
  112. package/data/script-api/dw.campaign.ApproachingDiscount.md +0 -157
  113. package/data/script-api/dw.campaign.BonusChoiceDiscount.md +0 -190
  114. package/data/script-api/dw.campaign.BonusDiscount.md +0 -59
  115. package/data/script-api/dw.campaign.Campaign.md +0 -346
  116. package/data/script-api/dw.campaign.CampaignMgr.md +0 -436
  117. package/data/script-api/dw.campaign.CampaignStatusCodes.md +0 -103
  118. package/data/script-api/dw.campaign.Coupon.md +0 -324
  119. package/data/script-api/dw.campaign.CouponMgr.md +0 -137
  120. package/data/script-api/dw.campaign.CouponRedemption.md +0 -87
  121. package/data/script-api/dw.campaign.CouponStatusCodes.md +0 -130
  122. package/data/script-api/dw.campaign.Discount.md +0 -271
  123. package/data/script-api/dw.campaign.DiscountPlan.md +0 -322
  124. package/data/script-api/dw.campaign.FixedPriceDiscount.md +0 -74
  125. package/data/script-api/dw.campaign.FixedPriceShippingDiscount.md +0 -74
  126. package/data/script-api/dw.campaign.FreeDiscount.md +0 -24
  127. package/data/script-api/dw.campaign.FreeShippingDiscount.md +0 -24
  128. package/data/script-api/dw.campaign.PercentageDiscount.md +0 -74
  129. package/data/script-api/dw.campaign.PercentageOptionDiscount.md +0 -59
  130. package/data/script-api/dw.campaign.PriceBookPriceDiscount.md +0 -56
  131. package/data/script-api/dw.campaign.Promotion.md +0 -939
  132. package/data/script-api/dw.campaign.PromotionMgr.md +0 -478
  133. package/data/script-api/dw.campaign.PromotionPlan.md +0 -378
  134. package/data/script-api/dw.campaign.SlotContent.md +0 -131
  135. package/data/script-api/dw.campaign.SourceCodeGroup.md +0 -83
  136. package/data/script-api/dw.campaign.SourceCodeInfo.md +0 -167
  137. package/data/script-api/dw.campaign.SourceCodeStatusCodes.md +0 -61
  138. package/data/script-api/dw.campaign.TotalFixedPriceDiscount.md +0 -56
  139. package/data/script-api/dw.campaign.md +0 -36
  140. package/data/script-api/dw.catalog.Catalog.md +0 -158
  141. package/data/script-api/dw.catalog.CatalogMgr.md +0 -161
  142. package/data/script-api/dw.catalog.Category.md +0 -1212
  143. package/data/script-api/dw.catalog.CategoryAssignment.md +0 -179
  144. package/data/script-api/dw.catalog.CategoryLink.md +0 -142
  145. package/data/script-api/dw.catalog.PriceBook.md +0 -215
  146. package/data/script-api/dw.catalog.PriceBookMgr.md +0 -176
  147. package/data/script-api/dw.catalog.Product.md +0 -2492
  148. package/data/script-api/dw.catalog.ProductActiveData.md +0 -1244
  149. package/data/script-api/dw.catalog.ProductAttributeModel.md +0 -409
  150. package/data/script-api/dw.catalog.ProductAvailabilityLevels.md +0 -125
  151. package/data/script-api/dw.catalog.ProductAvailabilityModel.md +0 -516
  152. package/data/script-api/dw.catalog.ProductInventoryList.md +0 -136
  153. package/data/script-api/dw.catalog.ProductInventoryMgr.md +0 -132
  154. package/data/script-api/dw.catalog.ProductInventoryRecord.md +0 -638
  155. package/data/script-api/dw.catalog.ProductLink.md +0 -166
  156. package/data/script-api/dw.catalog.ProductMgr.md +0 -136
  157. package/data/script-api/dw.catalog.ProductOption.md +0 -189
  158. package/data/script-api/dw.catalog.ProductOptionModel.md +0 -209
  159. package/data/script-api/dw.catalog.ProductOptionValue.md +0 -132
  160. package/data/script-api/dw.catalog.ProductPriceInfo.md +0 -170
  161. package/data/script-api/dw.catalog.ProductPriceModel.md +0 -988
  162. package/data/script-api/dw.catalog.ProductPriceTable.md +0 -121
  163. package/data/script-api/dw.catalog.ProductSearchHit.md +0 -702
  164. package/data/script-api/dw.catalog.ProductSearchModel.md +0 -1894
  165. package/data/script-api/dw.catalog.ProductSearchRefinementDefinition.md +0 -99
  166. package/data/script-api/dw.catalog.ProductSearchRefinementValue.md +0 -80
  167. package/data/script-api/dw.catalog.ProductSearchRefinements.md +0 -265
  168. package/data/script-api/dw.catalog.ProductVariationAttribute.md +0 -107
  169. package/data/script-api/dw.catalog.ProductVariationAttributeValue.md +0 -215
  170. package/data/script-api/dw.catalog.ProductVariationModel.md +0 -1010
  171. package/data/script-api/dw.catalog.Recommendation.md +0 -327
  172. package/data/script-api/dw.catalog.SearchModel.md +0 -769
  173. package/data/script-api/dw.catalog.SearchRefinementDefinition.md +0 -145
  174. package/data/script-api/dw.catalog.SearchRefinementValue.md +0 -194
  175. package/data/script-api/dw.catalog.SearchRefinements.md +0 -238
  176. package/data/script-api/dw.catalog.SortingOption.md +0 -120
  177. package/data/script-api/dw.catalog.SortingRule.md +0 -53
  178. package/data/script-api/dw.catalog.Store.md +0 -484
  179. package/data/script-api/dw.catalog.StoreGroup.md +0 -95
  180. package/data/script-api/dw.catalog.StoreInventoryFilter.md +0 -112
  181. package/data/script-api/dw.catalog.StoreInventoryFilterValue.md +0 -111
  182. package/data/script-api/dw.catalog.StoreMgr.md +0 -223
  183. package/data/script-api/dw.catalog.Variant.md +0 -1000
  184. package/data/script-api/dw.catalog.VariationGroup.md +0 -869
  185. package/data/script-api/dw.catalog.md +0 -50
  186. package/data/script-api/dw.content.Content.md +0 -481
  187. package/data/script-api/dw.content.ContentMgr.md +0 -147
  188. package/data/script-api/dw.content.ContentSearchModel.md +0 -618
  189. package/data/script-api/dw.content.ContentSearchRefinementDefinition.md +0 -61
  190. package/data/script-api/dw.content.ContentSearchRefinementValue.md +0 -22
  191. package/data/script-api/dw.content.ContentSearchRefinements.md +0 -218
  192. package/data/script-api/dw.content.Folder.md +0 -432
  193. package/data/script-api/dw.content.Library.md +0 -124
  194. package/data/script-api/dw.content.MarkupText.md +0 -150
  195. package/data/script-api/dw.content.MediaFile.md +0 -367
  196. package/data/script-api/dw.content.md +0 -15
  197. package/data/script-api/dw.crypto.CertificateRef.md +0 -59
  198. package/data/script-api/dw.crypto.CertificateUtils.md +0 -162
  199. package/data/script-api/dw.crypto.Cipher.md +0 -1234
  200. package/data/script-api/dw.crypto.Encoding.md +0 -193
  201. package/data/script-api/dw.crypto.JWE.md +0 -245
  202. package/data/script-api/dw.crypto.JWEHeader.md +0 -147
  203. package/data/script-api/dw.crypto.JWS.md +0 -260
  204. package/data/script-api/dw.crypto.JWSHeader.md +0 -128
  205. package/data/script-api/dw.crypto.KeyRef.md +0 -77
  206. package/data/script-api/dw.crypto.Mac.md +0 -191
  207. package/data/script-api/dw.crypto.MessageDigest.md +0 -243
  208. package/data/script-api/dw.crypto.SecureRandom.md +0 -161
  209. package/data/script-api/dw.crypto.Signature.md +0 -241
  210. package/data/script-api/dw.crypto.WeakCipher.md +0 -725
  211. package/data/script-api/dw.crypto.WeakMac.md +0 -163
  212. package/data/script-api/dw.crypto.WeakMessageDigest.md +0 -220
  213. package/data/script-api/dw.crypto.WeakSignature.md +0 -208
  214. package/data/script-api/dw.crypto.X509Certificate.md +0 -180
  215. package/data/script-api/dw.crypto.md +0 -23
  216. package/data/script-api/dw.customer.AddressBook.md +0 -158
  217. package/data/script-api/dw.customer.AgentUserMgr.md +0 -94
  218. package/data/script-api/dw.customer.AgentUserStatusCodes.md +0 -164
  219. package/data/script-api/dw.customer.AuthenticationStatus.md +0 -157
  220. package/data/script-api/dw.customer.Credentials.md +0 -524
  221. package/data/script-api/dw.customer.Customer.md +0 -488
  222. package/data/script-api/dw.customer.CustomerActiveData.md +0 -563
  223. package/data/script-api/dw.customer.CustomerAddress.md +0 -666
  224. package/data/script-api/dw.customer.CustomerCDPData.md +0 -70
  225. package/data/script-api/dw.customer.CustomerContextMgr.md +0 -62
  226. package/data/script-api/dw.customer.CustomerGroup.md +0 -146
  227. package/data/script-api/dw.customer.CustomerList.md +0 -76
  228. package/data/script-api/dw.customer.CustomerMgr.md +0 -1046
  229. package/data/script-api/dw.customer.CustomerPasswordConstraints.md +0 -125
  230. package/data/script-api/dw.customer.CustomerPaymentInstrument.md +0 -161
  231. package/data/script-api/dw.customer.CustomerStatusCodes.md +0 -55
  232. package/data/script-api/dw.customer.EncryptedObject.md +0 -34
  233. package/data/script-api/dw.customer.ExternalProfile.md +0 -154
  234. package/data/script-api/dw.customer.OrderHistory.md +0 -167
  235. package/data/script-api/dw.customer.ProductList.md +0 -870
  236. package/data/script-api/dw.customer.ProductListItem.md +0 -469
  237. package/data/script-api/dw.customer.ProductListItemPurchase.md +0 -139
  238. package/data/script-api/dw.customer.ProductListMgr.md +0 -350
  239. package/data/script-api/dw.customer.ProductListRegistrant.md +0 -165
  240. package/data/script-api/dw.customer.Profile.md +0 -940
  241. package/data/script-api/dw.customer.Wallet.md +0 -136
  242. package/data/script-api/dw.customer.consent.ConsentStatusEntry.md +0 -92
  243. package/data/script-api/dw.customer.consent.MarketingConsentSubscription.md +0 -247
  244. package/data/script-api/dw.customer.consent.ShopperConsentErrorCodes.md +0 -74
  245. package/data/script-api/dw.customer.consent.ShopperConsentException.md +0 -63
  246. package/data/script-api/dw.customer.consent.ShopperConsentMgr.md +0 -152
  247. package/data/script-api/dw.customer.consent.md +0 -10
  248. package/data/script-api/dw.customer.md +0 -31
  249. package/data/script-api/dw.customer.oauth.OAuthAccessTokenResponse.md +0 -171
  250. package/data/script-api/dw.customer.oauth.OAuthFinalizedResponse.md +0 -75
  251. package/data/script-api/dw.customer.oauth.OAuthLoginFlowMgr.md +0 -165
  252. package/data/script-api/dw.customer.oauth.OAuthUserInfoResponse.md +0 -84
  253. package/data/script-api/dw.customer.oauth.md +0 -9
  254. package/data/script-api/dw.customer.shoppercontext.ShopperContext.md +0 -369
  255. package/data/script-api/dw.customer.shoppercontext.ShopperContextErrorCodes.md +0 -111
  256. package/data/script-api/dw.customer.shoppercontext.ShopperContextException.md +0 -77
  257. package/data/script-api/dw.customer.shoppercontext.ShopperContextMgr.md +0 -209
  258. package/data/script-api/dw.customer.shoppercontext.md +0 -9
  259. package/data/script-api/dw.experience.AspectAttributeValidationException.md +0 -25
  260. package/data/script-api/dw.experience.Component.md +0 -166
  261. package/data/script-api/dw.experience.ComponentRenderSettings.md +0 -130
  262. package/data/script-api/dw.experience.ComponentScriptContext.md +0 -148
  263. package/data/script-api/dw.experience.CustomEditor.md +0 -146
  264. package/data/script-api/dw.experience.CustomEditorResources.md +0 -100
  265. package/data/script-api/dw.experience.Page.md +0 -467
  266. package/data/script-api/dw.experience.PageMgr.md +0 -549
  267. package/data/script-api/dw.experience.PageScriptContext.md +0 -200
  268. package/data/script-api/dw.experience.Region.md +0 -119
  269. package/data/script-api/dw.experience.RegionRenderSettings.md +0 -207
  270. package/data/script-api/dw.experience.cms.CMSRecord.md +0 -125
  271. package/data/script-api/dw.experience.cms.md +0 -6
  272. package/data/script-api/dw.experience.image.FocalPoint.md +0 -71
  273. package/data/script-api/dw.experience.image.Image.md +0 -101
  274. package/data/script-api/dw.experience.image.ImageMetaData.md +0 -71
  275. package/data/script-api/dw.experience.image.md +0 -8
  276. package/data/script-api/dw.experience.md +0 -16
  277. package/data/script-api/dw.extensions.applepay.ApplePayHookResult.md +0 -254
  278. package/data/script-api/dw.extensions.applepay.ApplePayHooks.md +0 -572
  279. package/data/script-api/dw.extensions.applepay.md +0 -7
  280. package/data/script-api/dw.extensions.facebook.FacebookFeedHooks.md +0 -102
  281. package/data/script-api/dw.extensions.facebook.FacebookProduct.md +0 -1343
  282. package/data/script-api/dw.extensions.facebook.md +0 -7
  283. package/data/script-api/dw.extensions.paymentapi.PaymentApiHooks.md +0 -136
  284. package/data/script-api/dw.extensions.paymentapi.md +0 -6
  285. package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHookResult.md +0 -149
  286. package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHooks.md +0 -356
  287. package/data/script-api/dw.extensions.paymentrequest.md +0 -7
  288. package/data/script-api/dw.extensions.payments.SalesforceAdyenPaymentIntent.md +0 -134
  289. package/data/script-api/dw.extensions.payments.SalesforceAdyenSavedPaymentMethod.md +0 -283
  290. package/data/script-api/dw.extensions.payments.SalesforceBancontactPaymentDetails.md +0 -88
  291. package/data/script-api/dw.extensions.payments.SalesforceCardPaymentDetails.md +0 -107
  292. package/data/script-api/dw.extensions.payments.SalesforceEpsPaymentDetails.md +0 -63
  293. package/data/script-api/dw.extensions.payments.SalesforceIdealPaymentDetails.md +0 -63
  294. package/data/script-api/dw.extensions.payments.SalesforceKlarnaPaymentDetails.md +0 -63
  295. package/data/script-api/dw.extensions.payments.SalesforcePayPalOrder.md +0 -263
  296. package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderAddress.md +0 -171
  297. package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderPayer.md +0 -110
  298. package/data/script-api/dw.extensions.payments.SalesforcePayPalPaymentDetails.md +0 -88
  299. package/data/script-api/dw.extensions.payments.SalesforcePaymentDetails.md +0 -83
  300. package/data/script-api/dw.extensions.payments.SalesforcePaymentIntent.md +0 -273
  301. package/data/script-api/dw.extensions.payments.SalesforcePaymentMethod.md +0 -368
  302. package/data/script-api/dw.extensions.payments.SalesforcePaymentRequest.md +0 -1077
  303. package/data/script-api/dw.extensions.payments.SalesforcePaymentsHooks.md +0 -190
  304. package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccount.md +0 -151
  305. package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccountPaymentMethod.md +0 -98
  306. package/data/script-api/dw.extensions.payments.SalesforcePaymentsMgr.md +0 -989
  307. package/data/script-api/dw.extensions.payments.SalesforcePaymentsSiteConfiguration.md +0 -202
  308. package/data/script-api/dw.extensions.payments.SalesforcePaymentsZone.md +0 -393
  309. package/data/script-api/dw.extensions.payments.SalesforceSepaDebitPaymentDetails.md +0 -63
  310. package/data/script-api/dw.extensions.payments.SalesforceVenmoPaymentDetails.md +0 -88
  311. package/data/script-api/dw.extensions.payments.md +0 -28
  312. package/data/script-api/dw.extensions.pinterest.PinterestAvailability.md +0 -85
  313. package/data/script-api/dw.extensions.pinterest.PinterestFeedHooks.md +0 -118
  314. package/data/script-api/dw.extensions.pinterest.PinterestOrder.md +0 -263
  315. package/data/script-api/dw.extensions.pinterest.PinterestOrderHooks.md +0 -89
  316. package/data/script-api/dw.extensions.pinterest.PinterestProduct.md +0 -677
  317. package/data/script-api/dw.extensions.pinterest.md +0 -10
  318. package/data/script-api/dw.io.CSVStreamReader.md +0 -128
  319. package/data/script-api/dw.io.CSVStreamWriter.md +0 -92
  320. package/data/script-api/dw.io.File.md +0 -729
  321. package/data/script-api/dw.io.FileReader.md +0 -70
  322. package/data/script-api/dw.io.FileWriter.md +0 -159
  323. package/data/script-api/dw.io.InputStream.md +0 -35
  324. package/data/script-api/dw.io.OutputStream.md +0 -38
  325. package/data/script-api/dw.io.PrintWriter.md +0 -66
  326. package/data/script-api/dw.io.RandomAccessFileReader.md +0 -183
  327. package/data/script-api/dw.io.Reader.md +0 -284
  328. package/data/script-api/dw.io.StringWriter.md +0 -89
  329. package/data/script-api/dw.io.Writer.md +0 -96
  330. package/data/script-api/dw.io.XMLIndentingStreamWriter.md +0 -121
  331. package/data/script-api/dw.io.XMLStreamConstants.md +0 -172
  332. package/data/script-api/dw.io.XMLStreamReader.md +0 -1181
  333. package/data/script-api/dw.io.XMLStreamWriter.md +0 -478
  334. package/data/script-api/dw.io.md +0 -21
  335. package/data/script-api/dw.job.JobExecution.md +0 -111
  336. package/data/script-api/dw.job.JobStepExecution.md +0 -136
  337. package/data/script-api/dw.job.md +0 -7
  338. package/data/script-api/dw.net.FTPClient.md +0 -621
  339. package/data/script-api/dw.net.FTPFileInfo.md +0 -132
  340. package/data/script-api/dw.net.HTTPClient.md +0 -775
  341. package/data/script-api/dw.net.HTTPClientLoggingConfig.md +0 -363
  342. package/data/script-api/dw.net.HTTPRequestPart.md +0 -296
  343. package/data/script-api/dw.net.Mail.md +0 -487
  344. package/data/script-api/dw.net.SFTPClient.md +0 -535
  345. package/data/script-api/dw.net.SFTPFileInfo.md +0 -128
  346. package/data/script-api/dw.net.WebDAVClient.md +0 -762
  347. package/data/script-api/dw.net.WebDAVFileInfo.md +0 -163
  348. package/data/script-api/dw.net.md +0 -15
  349. package/data/script-api/dw.object.ActiveData.md +0 -86
  350. package/data/script-api/dw.object.CustomAttributes.md +0 -165
  351. package/data/script-api/dw.object.CustomObject.md +0 -82
  352. package/data/script-api/dw.object.CustomObjectMgr.md +0 -478
  353. package/data/script-api/dw.object.Extensible.md +0 -71
  354. package/data/script-api/dw.object.ExtensibleObject.md +0 -85
  355. package/data/script-api/dw.object.Note.md +0 -118
  356. package/data/script-api/dw.object.ObjectAttributeDefinition.md +0 -542
  357. package/data/script-api/dw.object.ObjectAttributeGroup.md +0 -160
  358. package/data/script-api/dw.object.ObjectAttributeValueDefinition.md +0 -78
  359. package/data/script-api/dw.object.ObjectTypeDefinition.md +0 -239
  360. package/data/script-api/dw.object.PersistentObject.md +0 -92
  361. package/data/script-api/dw.object.SimpleExtensible.md +0 -53
  362. package/data/script-api/dw.object.SystemObjectMgr.md +0 -520
  363. package/data/script-api/dw.object.md +0 -19
  364. package/data/script-api/dw.order.AbstractItem.md +0 -220
  365. package/data/script-api/dw.order.AbstractItemCtnr.md +0 -219
  366. package/data/script-api/dw.order.Appeasement.md +0 -398
  367. package/data/script-api/dw.order.AppeasementItem.md +0 -104
  368. package/data/script-api/dw.order.Basket.md +0 -868
  369. package/data/script-api/dw.order.BasketMgr.md +0 -673
  370. package/data/script-api/dw.order.BonusDiscountLineItem.md +0 -309
  371. package/data/script-api/dw.order.CouponLineItem.md +0 -289
  372. package/data/script-api/dw.order.CreateAgentBasketLimitExceededException.md +0 -35
  373. package/data/script-api/dw.order.CreateBasketFromOrderException.md +0 -54
  374. package/data/script-api/dw.order.CreateCouponLineItemException.md +0 -67
  375. package/data/script-api/dw.order.CreateOrderException.md +0 -23
  376. package/data/script-api/dw.order.CreateTemporaryBasketLimitExceededException.md +0 -35
  377. package/data/script-api/dw.order.GiftCertificate.md +0 -530
  378. package/data/script-api/dw.order.GiftCertificateLineItem.md +0 -292
  379. package/data/script-api/dw.order.GiftCertificateMgr.md +0 -228
  380. package/data/script-api/dw.order.GiftCertificateStatusCodes.md +0 -108
  381. package/data/script-api/dw.order.Invoice.md +0 -571
  382. package/data/script-api/dw.order.InvoiceItem.md +0 -199
  383. package/data/script-api/dw.order.LineItem.md +0 -577
  384. package/data/script-api/dw.order.LineItemCtnr.md +0 -2429
  385. package/data/script-api/dw.order.LineItemTax.md +0 -142
  386. package/data/script-api/dw.order.Order.md +0 -2770
  387. package/data/script-api/dw.order.OrderAddress.md +0 -624
  388. package/data/script-api/dw.order.OrderItem.md +0 -613
  389. package/data/script-api/dw.order.OrderMgr.md +0 -1502
  390. package/data/script-api/dw.order.OrderPaymentInstrument.md +0 -231
  391. package/data/script-api/dw.order.OrderProcessStatusCodes.md +0 -146
  392. package/data/script-api/dw.order.PaymentCard.md +0 -220
  393. package/data/script-api/dw.order.PaymentInstrument.md +0 -1416
  394. package/data/script-api/dw.order.PaymentMethod.md +0 -257
  395. package/data/script-api/dw.order.PaymentMgr.md +0 -138
  396. package/data/script-api/dw.order.PaymentProcessor.md +0 -106
  397. package/data/script-api/dw.order.PaymentStatusCodes.md +0 -70
  398. package/data/script-api/dw.order.PaymentTransaction.md +0 -291
  399. package/data/script-api/dw.order.PriceAdjustment.md +0 -745
  400. package/data/script-api/dw.order.PriceAdjustmentLimitTypes.md +0 -61
  401. package/data/script-api/dw.order.ProductLineItem.md +0 -1749
  402. package/data/script-api/dw.order.ProductShippingCost.md +0 -101
  403. package/data/script-api/dw.order.ProductShippingLineItem.md +0 -336
  404. package/data/script-api/dw.order.ProductShippingModel.md +0 -143
  405. package/data/script-api/dw.order.Return.md +0 -396
  406. package/data/script-api/dw.order.ReturnCase.md +0 -463
  407. package/data/script-api/dw.order.ReturnCaseItem.md +0 -372
  408. package/data/script-api/dw.order.ReturnItem.md +0 -335
  409. package/data/script-api/dw.order.Shipment.md +0 -1132
  410. package/data/script-api/dw.order.ShipmentShippingCost.md +0 -54
  411. package/data/script-api/dw.order.ShipmentShippingModel.md +0 -203
  412. package/data/script-api/dw.order.ShippingLineItem.md +0 -315
  413. package/data/script-api/dw.order.ShippingLocation.md +0 -313
  414. package/data/script-api/dw.order.ShippingMethod.md +0 -251
  415. package/data/script-api/dw.order.ShippingMgr.md +0 -173
  416. package/data/script-api/dw.order.ShippingOrder.md +0 -630
  417. package/data/script-api/dw.order.ShippingOrderItem.md +0 -425
  418. package/data/script-api/dw.order.SumItem.md +0 -158
  419. package/data/script-api/dw.order.TaxGroup.md +0 -128
  420. package/data/script-api/dw.order.TaxItem.md +0 -74
  421. package/data/script-api/dw.order.TaxMgr.md +0 -314
  422. package/data/script-api/dw.order.TrackingInfo.md +0 -261
  423. package/data/script-api/dw.order.TrackingRef.md +0 -108
  424. package/data/script-api/dw.order.hooks.BasketMergeHooks.md +0 -87
  425. package/data/script-api/dw.order.hooks.CalculateHooks.md +0 -139
  426. package/data/script-api/dw.order.hooks.CheckoutHooks.md +0 -88
  427. package/data/script-api/dw.order.hooks.OrderHooks.md +0 -96
  428. package/data/script-api/dw.order.hooks.PaymentHooks.md +0 -325
  429. package/data/script-api/dw.order.hooks.ReturnHooks.md +0 -395
  430. package/data/script-api/dw.order.hooks.ShippingOrderHooks.md +0 -426
  431. package/data/script-api/dw.order.hooks.TaxHooks.md +0 -495
  432. package/data/script-api/dw.order.hooks.md +0 -13
  433. package/data/script-api/dw.order.md +0 -65
  434. package/data/script-api/dw.rpc.SOAPUtil.md +0 -736
  435. package/data/script-api/dw.rpc.Stub.md +0 -373
  436. package/data/script-api/dw.rpc.WebReference.md +0 -133
  437. package/data/script-api/dw.rpc.md +0 -8
  438. package/data/script-api/dw.sitemap.SitemapFile.md +0 -137
  439. package/data/script-api/dw.sitemap.SitemapMgr.md +0 -165
  440. package/data/script-api/dw.sitemap.md +0 -7
  441. package/data/script-api/dw.suggest.BrandSuggestions.md +0 -34
  442. package/data/script-api/dw.suggest.CategorySuggestions.md +0 -76
  443. package/data/script-api/dw.suggest.ContentSuggestions.md +0 -76
  444. package/data/script-api/dw.suggest.CustomSuggestions.md +0 -34
  445. package/data/script-api/dw.suggest.ProductSuggestions.md +0 -76
  446. package/data/script-api/dw.suggest.SearchPhraseSuggestions.md +0 -126
  447. package/data/script-api/dw.suggest.SuggestModel.md +0 -471
  448. package/data/script-api/dw.suggest.SuggestedCategory.md +0 -51
  449. package/data/script-api/dw.suggest.SuggestedContent.md +0 -51
  450. package/data/script-api/dw.suggest.SuggestedPhrase.md +0 -70
  451. package/data/script-api/dw.suggest.SuggestedProduct.md +0 -55
  452. package/data/script-api/dw.suggest.SuggestedTerm.md +0 -143
  453. package/data/script-api/dw.suggest.SuggestedTerms.md +0 -144
  454. package/data/script-api/dw.suggest.Suggestions.md +0 -206
  455. package/data/script-api/dw.suggest.md +0 -19
  456. package/data/script-api/dw.svc.FTPService.md +0 -140
  457. package/data/script-api/dw.svc.FTPServiceDefinition.md +0 -97
  458. package/data/script-api/dw.svc.HTTPFormService.md +0 -32
  459. package/data/script-api/dw.svc.HTTPFormServiceDefinition.md +0 -36
  460. package/data/script-api/dw.svc.HTTPService.md +0 -370
  461. package/data/script-api/dw.svc.HTTPServiceDefinition.md +0 -290
  462. package/data/script-api/dw.svc.LocalServiceRegistry.md +0 -63
  463. package/data/script-api/dw.svc.Result.md +0 -320
  464. package/data/script-api/dw.svc.SOAPService.md +0 -104
  465. package/data/script-api/dw.svc.SOAPServiceDefinition.md +0 -32
  466. package/data/script-api/dw.svc.Service.md +0 -276
  467. package/data/script-api/dw.svc.ServiceCallback.md +0 -282
  468. package/data/script-api/dw.svc.ServiceConfig.md +0 -114
  469. package/data/script-api/dw.svc.ServiceCredential.md +0 -162
  470. package/data/script-api/dw.svc.ServiceDefinition.md +0 -211
  471. package/data/script-api/dw.svc.ServiceProfile.md +0 -152
  472. package/data/script-api/dw.svc.ServiceRegistry.md +0 -118
  473. package/data/script-api/dw.svc.md +0 -22
  474. package/data/script-api/dw.system.AgentUserStatusCodes.md +0 -41
  475. package/data/script-api/dw.system.Cache.md +0 -126
  476. package/data/script-api/dw.system.CacheMgr.md +0 -70
  477. package/data/script-api/dw.system.HookMgr.md +0 -78
  478. package/data/script-api/dw.system.InternalObject.md +0 -47
  479. package/data/script-api/dw.system.JobProcessMonitor.md +0 -103
  480. package/data/script-api/dw.system.Log.md +0 -198
  481. package/data/script-api/dw.system.LogNDC.md +0 -75
  482. package/data/script-api/dw.system.Logger.md +0 -216
  483. package/data/script-api/dw.system.OrganizationPreferences.md +0 -53
  484. package/data/script-api/dw.system.Pipeline.md +0 -94
  485. package/data/script-api/dw.system.PipelineDictionary.md +0 -42
  486. package/data/script-api/dw.system.RESTErrorResponse.md +0 -102
  487. package/data/script-api/dw.system.RESTResponseMgr.md +0 -243
  488. package/data/script-api/dw.system.RESTSuccessResponse.md +0 -62
  489. package/data/script-api/dw.system.RemoteInclude.md +0 -146
  490. package/data/script-api/dw.system.Request.md +0 -785
  491. package/data/script-api/dw.system.RequestHooks.md +0 -112
  492. package/data/script-api/dw.system.Response.md +0 -612
  493. package/data/script-api/dw.system.SearchStatus.md +0 -187
  494. package/data/script-api/dw.system.Session.md +0 -469
  495. package/data/script-api/dw.system.Site.md +0 -570
  496. package/data/script-api/dw.system.SitePreferences.md +0 -90
  497. package/data/script-api/dw.system.Status.md +0 -330
  498. package/data/script-api/dw.system.StatusItem.md +0 -273
  499. package/data/script-api/dw.system.System.md +0 -224
  500. package/data/script-api/dw.system.Transaction.md +0 -107
  501. package/data/script-api/dw.system.md +0 -32
  502. package/data/script-api/dw.template.ISML.md +0 -127
  503. package/data/script-api/dw.template.Velocity.md +0 -168
  504. package/data/script-api/dw.template.md +0 -7
  505. package/data/script-api/dw.util.ArrayList.md +0 -99
  506. package/data/script-api/dw.util.Assert.md +0 -370
  507. package/data/script-api/dw.util.BigInteger.md +0 -283
  508. package/data/script-api/dw.util.Bytes.md +0 -278
  509. package/data/script-api/dw.util.Calendar.md +0 -1051
  510. package/data/script-api/dw.util.Collection.md +0 -272
  511. package/data/script-api/dw.util.Currency.md +0 -147
  512. package/data/script-api/dw.util.DateUtils.md +0 -82
  513. package/data/script-api/dw.util.Decimal.md +0 -386
  514. package/data/script-api/dw.util.FilteringCollection.md +0 -140
  515. package/data/script-api/dw.util.Geolocation.md +0 -293
  516. package/data/script-api/dw.util.HashMap.md +0 -50
  517. package/data/script-api/dw.util.HashSet.md +0 -65
  518. package/data/script-api/dw.util.Iterator.md +0 -86
  519. package/data/script-api/dw.util.LinkedHashMap.md +0 -52
  520. package/data/script-api/dw.util.LinkedHashSet.md +0 -68
  521. package/data/script-api/dw.util.List.md +0 -429
  522. package/data/script-api/dw.util.Locale.md +0 -277
  523. package/data/script-api/dw.util.Map.md +0 -251
  524. package/data/script-api/dw.util.MapEntry.md +0 -68
  525. package/data/script-api/dw.util.MappingKey.md +0 -96
  526. package/data/script-api/dw.util.MappingMgr.md +0 -113
  527. package/data/script-api/dw.util.PropertyComparator.md +0 -122
  528. package/data/script-api/dw.util.SecureEncoder.md +0 -582
  529. package/data/script-api/dw.util.SecureFilter.md +0 -572
  530. package/data/script-api/dw.util.SeekableIterator.md +0 -187
  531. package/data/script-api/dw.util.Set.md +0 -39
  532. package/data/script-api/dw.util.SortedMap.md +0 -148
  533. package/data/script-api/dw.util.SortedSet.md +0 -173
  534. package/data/script-api/dw.util.StringUtils.md +0 -655
  535. package/data/script-api/dw.util.Template.md +0 -141
  536. package/data/script-api/dw.util.UUIDUtils.md +0 -34
  537. package/data/script-api/dw.util.md +0 -37
  538. package/data/script-api/dw.value.EnumValue.md +0 -105
  539. package/data/script-api/dw.value.MimeEncodedText.md +0 -131
  540. package/data/script-api/dw.value.Money.md +0 -526
  541. package/data/script-api/dw.value.Quantity.md +0 -299
  542. package/data/script-api/dw.value.md +0 -9
  543. package/data/script-api/dw.web.CSRFProtection.md +0 -105
  544. package/data/script-api/dw.web.ClickStream.md +0 -177
  545. package/data/script-api/dw.web.ClickStreamEntry.md +0 -255
  546. package/data/script-api/dw.web.Cookie.md +0 -431
  547. package/data/script-api/dw.web.Cookies.md +0 -59
  548. package/data/script-api/dw.web.Form.md +0 -84
  549. package/data/script-api/dw.web.FormAction.md +0 -195
  550. package/data/script-api/dw.web.FormElement.md +0 -211
  551. package/data/script-api/dw.web.FormElementValidationResult.md +0 -170
  552. package/data/script-api/dw.web.FormField.md +0 -642
  553. package/data/script-api/dw.web.FormFieldOption.md +0 -211
  554. package/data/script-api/dw.web.FormFieldOptions.md +0 -49
  555. package/data/script-api/dw.web.FormGroup.md +0 -222
  556. package/data/script-api/dw.web.FormList.md +0 -134
  557. package/data/script-api/dw.web.FormListItem.md +0 -57
  558. package/data/script-api/dw.web.Forms.md +0 -25
  559. package/data/script-api/dw.web.HttpParameter.md +0 -462
  560. package/data/script-api/dw.web.HttpParameterMap.md +0 -194
  561. package/data/script-api/dw.web.LoopIterator.md +0 -231
  562. package/data/script-api/dw.web.PageMetaData.md +0 -197
  563. package/data/script-api/dw.web.PageMetaTag.md +0 -173
  564. package/data/script-api/dw.web.PagingModel.md +0 -407
  565. package/data/script-api/dw.web.Resource.md +0 -147
  566. package/data/script-api/dw.web.URL.md +0 -174
  567. package/data/script-api/dw.web.URLAction.md +0 -95
  568. package/data/script-api/dw.web.URLParameter.md +0 -52
  569. package/data/script-api/dw.web.URLRedirect.md +0 -72
  570. package/data/script-api/dw.web.URLRedirectMgr.md +0 -86
  571. package/data/script-api/dw.web.URLUtils.md +0 -1357
  572. package/data/script-api/dw.web.md +0 -34
  573. package/data/script-api/dw.ws.Port.md +0 -126
  574. package/data/script-api/dw.ws.WSUtil.md +0 -728
  575. package/data/script-api/dw.ws.WebReference2.md +0 -137
  576. package/data/script-api/dw.ws.md +0 -8
  577. package/data/script-api/index.md +0 -40
@@ -1,2429 +0,0 @@
1
- <!-- prettier-ignore-start -->
2
- # Class LineItemCtnr
3
-
4
- - [TopLevel.Object](TopLevel.Object.md)
5
- - [dw.object.PersistentObject](dw.object.PersistentObject.md)
6
- - [dw.object.ExtensibleObject](dw.object.ExtensibleObject.md)
7
- - [dw.order.LineItemCtnr](dw.order.LineItemCtnr.md)
8
-
9
- A container for line items, such as ProductLineItems, CouponLineItems, GiftCertificateLineItems. This container also
10
- provides access to shipments, shipping adjustments (promotions), and payment instruments (credit cards).
11
-
12
-
13
- LineItemCtnr also contains a set of methods for creating line items and adjustments, and for accessing various price
14
- values. There are three types of price-related methods:
15
-
16
-
17
-
18
- - _Net-based_methods represent the amount of a category **before tax has been calculated**. For example, the getMerchandizeTotalNetPrice() returns the price of all merchandise in the container whereas getShippingTotalNetPrice() returns the price of all shipments in the container.
19
- - _Tax-based_methods return the amount of tax on a category. For example, the getMerchandizeTotalTax() returns the total tax for all merchandise and the getShippingTotalTax() returns the tax applied to all shipments.
20
- - _Gross-based_methods represent the amount of a category **after tax has been calculated**. For example, the getMerchandizeTotalGrossPrice() returns the price of all merchandise in the container, including tax on the merchandise, whereas getShippingTotalGrossPrice() returns the price of all shipments in the container, including tax on the shipments in the container.
21
-
22
- There are also a set of methods that provide access to 'adjusted' values. The adjusted-based methods return values
23
- where promotions have been applied. For example, the getAdjustedMerchandizeTotalNetPrice() method returns the net
24
- price of all merchandise after product-level and order-level promotions have been applied. Whereas the
25
- getAdjustedMerchandizeTotalGrossPrice() method returns the price of all merchandise after product-level and
26
- order-level promotions have been applied and includes the amount of merchandise-related tax.
27
-
28
-
29
- Finally, there are a set of methods that return the aggregate values representing the line items in the container.
30
- These are the total-based methods getTotalNetPrice(), getTotalTax() and getTotalGrossPrice(). These methods return
31
- the totals of all items in the container and include any order-level promotions.
32
-
33
-
34
- Note that all merchandise-related methods do not include 'gift certificates' values in the values they return. Gift
35
- certificates are not considered merchandise as they do not represent a product.
36
-
37
-
38
-
39
- ## All Known Subclasses
40
- [Basket](dw.order.Basket.md), [Order](dw.order.Order.md)
41
- ## Constant Summary
42
-
43
- | Constant | Description |
44
- | --- | --- |
45
- | [BUSINESS_TYPE_B2B](#business_type_b2b): [Number](TopLevel.Number.md) = 2 | constant for Business Type B2B |
46
- | [BUSINESS_TYPE_B2C](#business_type_b2c): [Number](TopLevel.Number.md) = 1 | constant for Business Type B2C |
47
- | [CHANNEL_TYPE_CALLCENTER](#channel_type_callcenter): [Number](TopLevel.Number.md) = 2 | constant for Channel Type CallCenter |
48
- | [CHANNEL_TYPE_CHATGPT](#channel_type_chatgpt): [Number](TopLevel.Number.md) = 18 | constant for Channel Type ChatGPT |
49
- | [CHANNEL_TYPE_CUSTOMERSERVICECENTER](#channel_type_customerservicecenter): [Number](TopLevel.Number.md) = 11 | constant for Channel Type Customer Service Center |
50
- | [CHANNEL_TYPE_DSS](#channel_type_dss): [Number](TopLevel.Number.md) = 4 | constant for Channel Type DSS |
51
- | [CHANNEL_TYPE_FACEBOOKADS](#channel_type_facebookads): [Number](TopLevel.Number.md) = 8 | constant for Channel Type Facebook Ads |
52
- | [CHANNEL_TYPE_GEMINI](#channel_type_gemini): [Number](TopLevel.Number.md) = 19 | constant for Channel Type Gemini |
53
- | [CHANNEL_TYPE_GOOGLE](#channel_type_google): [Number](TopLevel.Number.md) = 13 | constant for Channel Type Google |
54
- | [CHANNEL_TYPE_INSTAGRAMCOMMERCE](#channel_type_instagramcommerce): [Number](TopLevel.Number.md) = 12 | constant for Channel Type Instagram Commerce |
55
- | [CHANNEL_TYPE_MARKETPLACE](#channel_type_marketplace): [Number](TopLevel.Number.md) = 3 | constant for Channel Type Marketplace |
56
- | [CHANNEL_TYPE_ONLINERESERVATION](#channel_type_onlinereservation): [Number](TopLevel.Number.md) = 10 | constant for Channel Type Online Reservation |
57
- | [CHANNEL_TYPE_PINTEREST](#channel_type_pinterest): [Number](TopLevel.Number.md) = 6 | constant for Channel Type Pinterest |
58
- | [CHANNEL_TYPE_SNAPCHAT](#channel_type_snapchat): [Number](TopLevel.Number.md) = 15 | constant for Channel Type Snapchat |
59
- | [CHANNEL_TYPE_STORE](#channel_type_store): [Number](TopLevel.Number.md) = 5 | constant for Channel Type Store |
60
- | [CHANNEL_TYPE_STOREFRONT](#channel_type_storefront): [Number](TopLevel.Number.md) = 1 | constant for Channel Type Storefront |
61
- | [CHANNEL_TYPE_SUBSCRIPTIONS](#channel_type_subscriptions): [Number](TopLevel.Number.md) = 9 | constant for Channel Type Subscriptions |
62
- | [CHANNEL_TYPE_TIKTOK](#channel_type_tiktok): [Number](TopLevel.Number.md) = 14 | constant for Channel Type TikTok |
63
- | [CHANNEL_TYPE_TWITTER](#channel_type_twitter): [Number](TopLevel.Number.md) = 7 | constant for Channel Type Twitter |
64
- | [CHANNEL_TYPE_WHATSAPP](#channel_type_whatsapp): [Number](TopLevel.Number.md) = 16 | constant for Channel Type WhatsApp |
65
- | [CHANNEL_TYPE_YOUTUBE](#channel_type_youtube): [Number](TopLevel.Number.md) = 17 | constant for Channel Type YouTube |
66
-
67
- ## Property Summary
68
-
69
- | Property | Description |
70
- | --- | --- |
71
- | [adjustedMerchandizeTotalGrossPrice](#adjustedmerchandizetotalgrossprice): [Money](dw.value.Money.md) `(read-only)` | Returns the adjusted total gross price (including tax) in purchase currency. |
72
- | [adjustedMerchandizeTotalNetPrice](#adjustedmerchandizetotalnetprice): [Money](dw.value.Money.md) `(read-only)` | Returns the total net price (excluding tax) in purchase currency. |
73
- | [adjustedMerchandizeTotalPrice](#adjustedmerchandizetotalprice): [Money](dw.value.Money.md) `(read-only)` | Returns the adjusted merchandize total price including product-level and order-level adjustments. |
74
- | [adjustedMerchandizeTotalTax](#adjustedmerchandizetotaltax): [Money](dw.value.Money.md) `(read-only)` | Returns the subtotal tax in purchase currency. |
75
- | [adjustedShippingTotalGrossPrice](#adjustedshippingtotalgrossprice): [Money](dw.value.Money.md) `(read-only)` | Returns the adjusted sum of all shipping line items of the line item container, including tax after shipping adjustments have been applied. |
76
- | [adjustedShippingTotalNetPrice](#adjustedshippingtotalnetprice): [Money](dw.value.Money.md) `(read-only)` | Returns the sum of all shipping line items of the line item container, excluding tax after shipping adjustments have been applied. |
77
- | [adjustedShippingTotalPrice](#adjustedshippingtotalprice): [Money](dw.value.Money.md) `(read-only)` | Returns the adjusted shipping total price. |
78
- | [adjustedShippingTotalTax](#adjustedshippingtotaltax): [Money](dw.value.Money.md) `(read-only)` | Returns the tax of all shipping line items of the line item container after shipping adjustments have been applied. |
79
- | ~~[allGiftCertificateLineItems](#allgiftcertificatelineitems): [Collection](dw.util.Collection.md)~~ `(read-only)` | Returns all gift certificate line items of the container. |
80
- | [allLineItems](#alllineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns all product, shipping, price adjustment, and gift certificate line items of the line item container. |
81
- | [allProductLineItems](#allproductlineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns all product line items of the container, no matter if they are dependent or independent. |
82
- | [allProductQuantities](#allproductquantities): [HashMap](dw.util.HashMap.md) `(read-only)` | Returns a hash mapping all products in the line item container to their total quantities. |
83
- | [allShippingPriceAdjustments](#allshippingpriceadjustments): [Collection](dw.util.Collection.md) `(read-only)` | Returns the collection of all shipping price adjustments applied somewhere in the container. |
84
- | [billingAddress](#billingaddress): [OrderAddress](dw.order.OrderAddress.md) `(read-only)` | Returns the billing address defined for the container. |
85
- | [bonusDiscountLineItems](#bonusdiscountlineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns an unsorted collection of the the bonus discount line items associated with this container. |
86
- | [bonusLineItems](#bonuslineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns the collection of product line items that are bonus items (where [ProductLineItem.isBonusProductLineItem()](dw.order.ProductLineItem.md#isbonusproductlineitem) is true). |
87
- | [businessType](#businesstype): [EnumValue](dw.value.EnumValue.md) `(read-only)` | Returns the type of the business this order has been placed in.<br/> Possible values are [BUSINESS_TYPE_B2C](dw.order.LineItemCtnr.md#business_type_b2c) or [BUSINESS_TYPE_B2B](dw.order.LineItemCtnr.md#business_type_b2b). |
88
- | [channelType](#channeltype): [EnumValue](dw.value.EnumValue.md) `(read-only)` | The channel type defines in which sales channel this order has been created. |
89
- | [couponLineItems](#couponlineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns a sorted collection of the coupon line items in the container. |
90
- | [currencyCode](#currencycode): [String](TopLevel.String.md) `(read-only)` | Returns the currency code for this line item container. |
91
- | [customer](#customer): [Customer](dw.customer.Customer.md) `(read-only)` | Returns the customer associated with this container. |
92
- | [customerEmail](#customeremail): [String](TopLevel.String.md) | Returns the email of the customer associated with this container. |
93
- | [customerName](#customername): [String](TopLevel.String.md) | Returns the name of the customer associated with this container. |
94
- | [customerNo](#customerno): [String](TopLevel.String.md) `(read-only)` | Returns the customer number of the customer associated with this container. |
95
- | [defaultShipment](#defaultshipment): [Shipment](dw.order.Shipment.md) `(read-only)` | Returns the default shipment of the line item container. |
96
- | [etag](#etag): [String](TopLevel.String.md) `(read-only)` | Returns the Etag of the line item container. |
97
- | [externallyTaxed](#externallytaxed): [Boolean](TopLevel.Boolean.md) `(read-only)` | Use this method to check whether the LineItemCtnr is calculated based on external tax tables. |
98
- | [giftCertificateLineItems](#giftcertificatelineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns all gift certificate line items of the container. |
99
- | [giftCertificatePaymentInstruments](#giftcertificatepaymentinstruments): [Collection](dw.util.Collection.md) `(read-only)` | Returns an unsorted collection of the PaymentInstrument instances that represent GiftCertificates in this container. |
100
- | [giftCertificateTotalGrossPrice](#giftcertificatetotalgrossprice): [Money](dw.value.Money.md) `(read-only)` | Returns the total gross price of all gift certificates in the cart. |
101
- | [giftCertificateTotalNetPrice](#giftcertificatetotalnetprice): [Money](dw.value.Money.md) `(read-only)` | Returns the total net price (excluding tax) of all gift certificates in the cart. |
102
- | [giftCertificateTotalPrice](#giftcertificatetotalprice): [Money](dw.value.Money.md) `(read-only)` | Returns the gift certificate total price. |
103
- | [giftCertificateTotalTax](#giftcertificatetotaltax): [Money](dw.value.Money.md) `(read-only)` | Returns the total tax of all gift certificates in the cart. |
104
- | [merchandizeTotalGrossPrice](#merchandizetotalgrossprice): [Money](dw.value.Money.md) `(read-only)` | Returns the total gross price (including tax) in purchase currency. |
105
- | [merchandizeTotalNetPrice](#merchandizetotalnetprice): [Money](dw.value.Money.md) `(read-only)` | Returns the total net price (excluding tax) in purchase currency. |
106
- | [merchandizeTotalPrice](#merchandizetotalprice): [Money](dw.value.Money.md) `(read-only)` | Returns the merchandize total price. |
107
- | [merchandizeTotalTax](#merchandizetotaltax): [Money](dw.value.Money.md) `(read-only)` | Returns the total tax in purchase currency. |
108
- | [notes](#notes): [List](dw.util.List.md) `(read-only)` | Returns the list of notes for this object, ordered by creation time from oldest to newest. |
109
- | ~~[paymentInstrument](#paymentinstrument): [OrderPaymentInstrument](dw.order.OrderPaymentInstrument.md)~~ `(read-only)` | Returns the payment instrument of the line item container or null. |
110
- | [paymentInstruments](#paymentinstruments): [Collection](dw.util.Collection.md) `(read-only)` | Returns an unsorted collection of the payment instruments in this container. |
111
- | [priceAdjustments](#priceadjustments): [Collection](dw.util.Collection.md) `(read-only)` | Returns the collection of price adjustments that have been applied to the totals such as promotion on the purchase value (i.e. |
112
- | [productLineItems](#productlineitems): [Collection](dw.util.Collection.md) `(read-only)` | Returns the product line items of the container that are not dependent on other product line items. |
113
- | [productQuantities](#productquantities): [HashMap](dw.util.HashMap.md) `(read-only)` | Returns a hash map of all products in the line item container and their total quantities. |
114
- | [productQuantityTotal](#productquantitytotal): [Number](TopLevel.Number.md) `(read-only)` | Returns the total quantity of all product line items. |
115
- | [shipments](#shipments): [Collection](dw.util.Collection.md) `(read-only)` | Returns all shipments of the line item container.<br/> The first shipment in the returned collection is the default shipment (shipment ID always set to "me"). |
116
- | [shippingPriceAdjustments](#shippingpriceadjustments): [Collection](dw.util.Collection.md) `(read-only)` | Returns the of shipping price adjustments applied to the shipping total of the container. |
117
- | [shippingTotalGrossPrice](#shippingtotalgrossprice): [Money](dw.value.Money.md) `(read-only)` | Returns the sum of all shipping line items of the line item container, including tax before shipping adjustments have been applied. |
118
- | [shippingTotalNetPrice](#shippingtotalnetprice): [Money](dw.value.Money.md) `(read-only)` | Returns the sum of all shipping line items of the line item container, excluding tax before shipping adjustments have been applied. |
119
- | [shippingTotalPrice](#shippingtotalprice): [Money](dw.value.Money.md) `(read-only)` | Returns the shipping total price. |
120
- | [shippingTotalTax](#shippingtotaltax): [Money](dw.value.Money.md) `(read-only)` | Returns the tax of all shipping line items of the line item container before shipping adjustments have been applied. |
121
- | [taxRoundedAtGroup](#taxroundedatgroup): [Boolean](TopLevel.Boolean.md) `(read-only)` | Use this method to check if the LineItemCtnr was calculated with grouped taxation calculation. |
122
- | [taxTotalsPerTaxRate](#taxtotalspertaxrate): [SortedMap](dw.util.SortedMap.md) `(read-only)` | This method returns a [SortedMap](dw.util.SortedMap.md) in which the keys are [Decimal](dw.util.Decimal.md) tax rates and the values are [Money](dw.value.Money.md) total tax for the tax rate. |
123
- | [totalGrossPrice](#totalgrossprice): [Money](dw.value.Money.md) `(read-only)` | Returns the grand total price gross of tax for LineItemCtnr, in purchase currency. |
124
- | [totalNetPrice](#totalnetprice): [Money](dw.value.Money.md) `(read-only)` | Returns the grand total price for LineItemCtnr net of tax, in purchase currency. |
125
- | [totalTax](#totaltax): [Money](dw.value.Money.md) `(read-only)` | Returns the grand total tax for LineItemCtnr, in purchase currency. |
126
-
127
- ## Constructor Summary
128
-
129
- This class does not have a constructor, so you cannot create it directly.
130
- ## Method Summary
131
-
132
- | Method | Description |
133
- | --- | --- |
134
- | [addNote](dw.order.LineItemCtnr.md#addnotestring-string)([String](TopLevel.String.md), [String](TopLevel.String.md)) | Adds a note to the object. |
135
- | [createBillingAddress](dw.order.LineItemCtnr.md#createbillingaddress)() | Create a billing address for the LineItemCtnr. |
136
- | [createBonusProductLineItem](dw.order.LineItemCtnr.md#createbonusproductlineitembonusdiscountlineitem-product-productoptionmodel-shipment)([BonusDiscountLineItem](dw.order.BonusDiscountLineItem.md), [Product](dw.catalog.Product.md), [ProductOptionModel](dw.catalog.ProductOptionModel.md), [Shipment](dw.order.Shipment.md)) | Creates a product line item in the container based on the passed Product and BonusDiscountLineItem. |
137
- | [createCouponLineItem](dw.order.LineItemCtnr.md#createcouponlineitemstring)([String](TopLevel.String.md)) | Creates a coupon line item that is not based on the B2C Commerce campaign system and associates it with the specified coupon code. |
138
- | [createCouponLineItem](dw.order.LineItemCtnr.md#createcouponlineitemstring-boolean)([String](TopLevel.String.md), [Boolean](TopLevel.Boolean.md)) | Creates a new CouponLineItem for this container based on the supplied coupon code. |
139
- | [createGiftCertificateLineItem](dw.order.LineItemCtnr.md#creategiftcertificatelineitemnumber-string)([Number](TopLevel.Number.md), [String](TopLevel.String.md)) | Creates a gift certificate line item. |
140
- | [createGiftCertificatePaymentInstrument](dw.order.LineItemCtnr.md#creategiftcertificatepaymentinstrumentstring-money)([String](TopLevel.String.md), [Money](dw.value.Money.md)) | Creates an OrderPaymentInstrument representing a Gift Certificate. |
141
- | [createPaymentInstrument](dw.order.LineItemCtnr.md#createpaymentinstrumentstring-money)([String](TopLevel.String.md), [Money](dw.value.Money.md)) | Creates a payment instrument using the specified payment method id and amount. |
142
- | [createPaymentInstrumentFromWallet](dw.order.LineItemCtnr.md#createpaymentinstrumentfromwalletcustomerpaymentinstrument-money)([CustomerPaymentInstrument](dw.customer.CustomerPaymentInstrument.md), [Money](dw.value.Money.md)) | Creates a payment instrument using the specified wallet payment instrument and amount. |
143
- | [createPriceAdjustment](dw.order.LineItemCtnr.md#createpriceadjustmentstring)([String](TopLevel.String.md)) | Creates an order price adjustment.<br/> The promotion id is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise an exception is thrown. |
144
- | [createPriceAdjustment](dw.order.LineItemCtnr.md#createpriceadjustmentstring-discount)([String](TopLevel.String.md), [Discount](dw.campaign.Discount.md)) | Creates an order level price adjustment for a specific discount.<br/> The promotion id is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise an exception is thrown. |
145
- | [createProductLineItem](dw.order.LineItemCtnr.md#createproductlineitemproduct-productoptionmodel-shipment)([Product](dw.catalog.Product.md), [ProductOptionModel](dw.catalog.ProductOptionModel.md), [Shipment](dw.order.Shipment.md)) | Creates a new product line item in the container and assigns it to the specified shipment. |
146
- | [createProductLineItem](dw.order.LineItemCtnr.md#createproductlineitemproductlistitem-shipment)([ProductListItem](dw.customer.ProductListItem.md), [Shipment](dw.order.Shipment.md)) | Creates a new product line item in the basket and assigns it to the specified shipment. |
147
- | [createProductLineItem](dw.order.LineItemCtnr.md#createproductlineitemstring-shipment)([String](TopLevel.String.md), [Shipment](dw.order.Shipment.md)) | Creates a new product line item in the container and assigns it to the specified shipment. |
148
- | ~~[createProductLineItem](dw.order.LineItemCtnr.md#createproductlineitemstring-quantity-shipment)([String](TopLevel.String.md), [Quantity](dw.value.Quantity.md), [Shipment](dw.order.Shipment.md))~~ | Creates a new product line item in the container and assigns it to the specified shipment. |
149
- | [createShipment](dw.order.LineItemCtnr.md#createshipmentstring)([String](TopLevel.String.md)) | Creates a standard shipment for the line item container. |
150
- | [createShippingPriceAdjustment](dw.order.LineItemCtnr.md#createshippingpriceadjustmentstring)([String](TopLevel.String.md)) | Creates a shipping price adjustment to be applied to the container. |
151
- | [getAdjustedMerchandizeTotalGrossPrice](dw.order.LineItemCtnr.md#getadjustedmerchandizetotalgrossprice)() | Returns the adjusted total gross price (including tax) in purchase currency. |
152
- | [getAdjustedMerchandizeTotalNetPrice](dw.order.LineItemCtnr.md#getadjustedmerchandizetotalnetprice)() | Returns the total net price (excluding tax) in purchase currency. |
153
- | [getAdjustedMerchandizeTotalPrice](dw.order.LineItemCtnr.md#getadjustedmerchandizetotalprice)() | Returns the adjusted merchandize total price including product-level and order-level adjustments. |
154
- | [getAdjustedMerchandizeTotalPrice](dw.order.LineItemCtnr.md#getadjustedmerchandizetotalpriceboolean)([Boolean](TopLevel.Boolean.md)) | Returns the adjusted merchandize total price including order-level adjustments if requested. |
155
- | [getAdjustedMerchandizeTotalTax](dw.order.LineItemCtnr.md#getadjustedmerchandizetotaltax)() | Returns the subtotal tax in purchase currency. |
156
- | [getAdjustedShippingTotalGrossPrice](dw.order.LineItemCtnr.md#getadjustedshippingtotalgrossprice)() | Returns the adjusted sum of all shipping line items of the line item container, including tax after shipping adjustments have been applied. |
157
- | [getAdjustedShippingTotalNetPrice](dw.order.LineItemCtnr.md#getadjustedshippingtotalnetprice)() | Returns the sum of all shipping line items of the line item container, excluding tax after shipping adjustments have been applied. |
158
- | [getAdjustedShippingTotalPrice](dw.order.LineItemCtnr.md#getadjustedshippingtotalprice)() | Returns the adjusted shipping total price. |
159
- | [getAdjustedShippingTotalTax](dw.order.LineItemCtnr.md#getadjustedshippingtotaltax)() | Returns the tax of all shipping line items of the line item container after shipping adjustments have been applied. |
160
- | ~~[getAllGiftCertificateLineItems](dw.order.LineItemCtnr.md#getallgiftcertificatelineitems)()~~ | Returns all gift certificate line items of the container. |
161
- | [getAllLineItems](dw.order.LineItemCtnr.md#getalllineitems)() | Returns all product, shipping, price adjustment, and gift certificate line items of the line item container. |
162
- | [getAllProductLineItems](dw.order.LineItemCtnr.md#getallproductlineitems)() | Returns all product line items of the container, no matter if they are dependent or independent. |
163
- | [getAllProductLineItems](dw.order.LineItemCtnr.md#getallproductlineitemsstring)([String](TopLevel.String.md)) | Returns all product line items of the container that have a product ID equal to the specified product ID, no matter if they are dependent or independent. |
164
- | [getAllProductQuantities](dw.order.LineItemCtnr.md#getallproductquantities)() | Returns a hash mapping all products in the line item container to their total quantities. |
165
- | [getAllShippingPriceAdjustments](dw.order.LineItemCtnr.md#getallshippingpriceadjustments)() | Returns the collection of all shipping price adjustments applied somewhere in the container. |
166
- | [getBillingAddress](dw.order.LineItemCtnr.md#getbillingaddress)() | Returns the billing address defined for the container. |
167
- | [getBonusDiscountLineItems](dw.order.LineItemCtnr.md#getbonusdiscountlineitems)() | Returns an unsorted collection of the the bonus discount line items associated with this container. |
168
- | [getBonusLineItems](dw.order.LineItemCtnr.md#getbonuslineitems)() | Returns the collection of product line items that are bonus items (where [ProductLineItem.isBonusProductLineItem()](dw.order.ProductLineItem.md#isbonusproductlineitem) is true). |
169
- | [getBusinessType](dw.order.LineItemCtnr.md#getbusinesstype)() | Returns the type of the business this order has been placed in.<br/> Possible values are [BUSINESS_TYPE_B2C](dw.order.LineItemCtnr.md#business_type_b2c) or [BUSINESS_TYPE_B2B](dw.order.LineItemCtnr.md#business_type_b2b). |
170
- | [getChannelType](dw.order.LineItemCtnr.md#getchanneltype)() | The channel type defines in which sales channel this order has been created. |
171
- | [getCouponLineItem](dw.order.LineItemCtnr.md#getcouponlineitemstring)([String](TopLevel.String.md)) | Returns the coupon line item representing the specified coupon code. |
172
- | [getCouponLineItems](dw.order.LineItemCtnr.md#getcouponlineitems)() | Returns a sorted collection of the coupon line items in the container. |
173
- | [getCurrencyCode](dw.order.LineItemCtnr.md#getcurrencycode)() | Returns the currency code for this line item container. |
174
- | [getCustomer](dw.order.LineItemCtnr.md#getcustomer)() | Returns the customer associated with this container. |
175
- | [getCustomerEmail](dw.order.LineItemCtnr.md#getcustomeremail)() | Returns the email of the customer associated with this container. |
176
- | [getCustomerName](dw.order.LineItemCtnr.md#getcustomername)() | Returns the name of the customer associated with this container. |
177
- | [getCustomerNo](dw.order.LineItemCtnr.md#getcustomerno)() | Returns the customer number of the customer associated with this container. |
178
- | [getDefaultShipment](dw.order.LineItemCtnr.md#getdefaultshipment)() | Returns the default shipment of the line item container. |
179
- | [getEtag](dw.order.LineItemCtnr.md#getetag)() | Returns the Etag of the line item container. |
180
- | [getGiftCertificateLineItems](dw.order.LineItemCtnr.md#getgiftcertificatelineitems)() | Returns all gift certificate line items of the container. |
181
- | [getGiftCertificateLineItems](dw.order.LineItemCtnr.md#getgiftcertificatelineitemsstring)([String](TopLevel.String.md)) | Returns all gift certificate line items of the container, no matter if they are dependent or independent. |
182
- | [getGiftCertificatePaymentInstruments](dw.order.LineItemCtnr.md#getgiftcertificatepaymentinstruments)() | Returns an unsorted collection of the PaymentInstrument instances that represent GiftCertificates in this container. |
183
- | [getGiftCertificatePaymentInstruments](dw.order.LineItemCtnr.md#getgiftcertificatepaymentinstrumentsstring)([String](TopLevel.String.md)) | Returns an unsorted collection containing all PaymentInstruments of type PaymentInstrument.METHOD\_GIFT\_CERTIFICATE where the specified code is the same code on the payment instrument. |
184
- | [getGiftCertificateTotalGrossPrice](dw.order.LineItemCtnr.md#getgiftcertificatetotalgrossprice)() | Returns the total gross price of all gift certificates in the cart. |
185
- | [getGiftCertificateTotalNetPrice](dw.order.LineItemCtnr.md#getgiftcertificatetotalnetprice)() | Returns the total net price (excluding tax) of all gift certificates in the cart. |
186
- | [getGiftCertificateTotalPrice](dw.order.LineItemCtnr.md#getgiftcertificatetotalprice)() | Returns the gift certificate total price. |
187
- | [getGiftCertificateTotalTax](dw.order.LineItemCtnr.md#getgiftcertificatetotaltax)() | Returns the total tax of all gift certificates in the cart. |
188
- | [getMerchandizeTotalGrossPrice](dw.order.LineItemCtnr.md#getmerchandizetotalgrossprice)() | Returns the total gross price (including tax) in purchase currency. |
189
- | [getMerchandizeTotalNetPrice](dw.order.LineItemCtnr.md#getmerchandizetotalnetprice)() | Returns the total net price (excluding tax) in purchase currency. |
190
- | [getMerchandizeTotalPrice](dw.order.LineItemCtnr.md#getmerchandizetotalprice)() | Returns the merchandize total price. |
191
- | [getMerchandizeTotalTax](dw.order.LineItemCtnr.md#getmerchandizetotaltax)() | Returns the total tax in purchase currency. |
192
- | [getNotes](dw.order.LineItemCtnr.md#getnotes)() | Returns the list of notes for this object, ordered by creation time from oldest to newest. |
193
- | ~~[getPaymentInstrument](dw.order.LineItemCtnr.md#getpaymentinstrument)()~~ | Returns the payment instrument of the line item container or null. |
194
- | [getPaymentInstruments](dw.order.LineItemCtnr.md#getpaymentinstruments)() | Returns an unsorted collection of the payment instruments in this container. |
195
- | [getPaymentInstruments](dw.order.LineItemCtnr.md#getpaymentinstrumentsstring)([String](TopLevel.String.md)) | Returns an unsorted collection of PaymentInstrument instances based on the specified payment method ID. |
196
- | [getPriceAdjustmentByPromotionID](dw.order.LineItemCtnr.md#getpriceadjustmentbypromotionidstring)([String](TopLevel.String.md)) | Returns the price adjustment associated to the specified promotion ID. |
197
- | [getPriceAdjustments](dw.order.LineItemCtnr.md#getpriceadjustments)() | Returns the collection of price adjustments that have been applied to the totals such as promotion on the purchase value (i.e. |
198
- | [getProductLineItems](dw.order.LineItemCtnr.md#getproductlineitems)() | Returns the product line items of the container that are not dependent on other product line items. |
199
- | [getProductLineItems](dw.order.LineItemCtnr.md#getproductlineitemsstring)([String](TopLevel.String.md)) | Returns the product line items of the container that have a product ID equal to the specified product ID and that are not dependent on other product line items. |
200
- | [getProductQuantities](dw.order.LineItemCtnr.md#getproductquantities)() | Returns a hash map of all products in the line item container and their total quantities. |
201
- | [getProductQuantities](dw.order.LineItemCtnr.md#getproductquantitiesboolean)([Boolean](TopLevel.Boolean.md)) | Returns a hash map of all products in the line item container and their total quantities. |
202
- | [getProductQuantityTotal](dw.order.LineItemCtnr.md#getproductquantitytotal)() | Returns the total quantity of all product line items. |
203
- | [getShipment](dw.order.LineItemCtnr.md#getshipmentstring)([String](TopLevel.String.md)) | Returns the shipment for the specified ID or `null` if no shipment with this ID exists in the line item container. |
204
- | [getShipments](dw.order.LineItemCtnr.md#getshipments)() | Returns all shipments of the line item container.<br/> The first shipment in the returned collection is the default shipment (shipment ID always set to "me"). |
205
- | [getShippingPriceAdjustmentByPromotionID](dw.order.LineItemCtnr.md#getshippingpriceadjustmentbypromotionidstring)([String](TopLevel.String.md)) | Returns the shipping price adjustment associated with the specified promotion ID. |
206
- | [getShippingPriceAdjustments](dw.order.LineItemCtnr.md#getshippingpriceadjustments)() | Returns the of shipping price adjustments applied to the shipping total of the container. |
207
- | [getShippingTotalGrossPrice](dw.order.LineItemCtnr.md#getshippingtotalgrossprice)() | Returns the sum of all shipping line items of the line item container, including tax before shipping adjustments have been applied. |
208
- | [getShippingTotalNetPrice](dw.order.LineItemCtnr.md#getshippingtotalnetprice)() | Returns the sum of all shipping line items of the line item container, excluding tax before shipping adjustments have been applied. |
209
- | [getShippingTotalPrice](dw.order.LineItemCtnr.md#getshippingtotalprice)() | Returns the shipping total price. |
210
- | [getShippingTotalTax](dw.order.LineItemCtnr.md#getshippingtotaltax)() | Returns the tax of all shipping line items of the line item container before shipping adjustments have been applied. |
211
- | [getTaxTotalsPerTaxRate](dw.order.LineItemCtnr.md#gettaxtotalspertaxrate)() | This method returns a [SortedMap](dw.util.SortedMap.md) in which the keys are [Decimal](dw.util.Decimal.md) tax rates and the values are [Money](dw.value.Money.md) total tax for the tax rate. |
212
- | [getTotalGrossPrice](dw.order.LineItemCtnr.md#gettotalgrossprice)() | Returns the grand total price gross of tax for LineItemCtnr, in purchase currency. |
213
- | [getTotalNetPrice](dw.order.LineItemCtnr.md#gettotalnetprice)() | Returns the grand total price for LineItemCtnr net of tax, in purchase currency. |
214
- | [getTotalTax](dw.order.LineItemCtnr.md#gettotaltax)() | Returns the grand total tax for LineItemCtnr, in purchase currency. |
215
- | [isExternallyTaxed](dw.order.LineItemCtnr.md#isexternallytaxed)() | Use this method to check whether the LineItemCtnr is calculated based on external tax tables. |
216
- | [isTaxRoundedAtGroup](dw.order.LineItemCtnr.md#istaxroundedatgroup)() | Use this method to check if the LineItemCtnr was calculated with grouped taxation calculation. |
217
- | [removeAllPaymentInstruments](dw.order.LineItemCtnr.md#removeallpaymentinstruments)() | Removes the all Payment Instruments from this container and deletes the Payment Instruments. |
218
- | [removeBonusDiscountLineItem](dw.order.LineItemCtnr.md#removebonusdiscountlineitembonusdiscountlineitem)([BonusDiscountLineItem](dw.order.BonusDiscountLineItem.md)) | Removes the specified bonus discount line item from the line item container. |
219
- | [removeCouponLineItem](dw.order.LineItemCtnr.md#removecouponlineitemcouponlineitem)([CouponLineItem](dw.order.CouponLineItem.md)) | Removes the specified coupon line item from the line item container. |
220
- | [removeGiftCertificateLineItem](dw.order.LineItemCtnr.md#removegiftcertificatelineitemgiftcertificatelineitem)([GiftCertificateLineItem](dw.order.GiftCertificateLineItem.md)) | Removes the specified gift certificate line item from the line item container. |
221
- | [removeNote](dw.order.LineItemCtnr.md#removenotenote)([Note](dw.object.Note.md)) | Removes a note from this line item container and deletes it. |
222
- | [removePaymentInstrument](dw.order.LineItemCtnr.md#removepaymentinstrumentpaymentinstrument)([PaymentInstrument](dw.order.PaymentInstrument.md)) | Removes the specified Payment Instrument from this container and deletes the Payment Instrument. |
223
- | [removePriceAdjustment](dw.order.LineItemCtnr.md#removepriceadjustmentpriceadjustment)([PriceAdjustment](dw.order.PriceAdjustment.md)) | Removes the specified price adjustment line item from the line item container. |
224
- | [removeProductLineItem](dw.order.LineItemCtnr.md#removeproductlineitemproductlineitem)([ProductLineItem](dw.order.ProductLineItem.md)) | Removes the specified product line item from the line item container. |
225
- | [removeShipment](dw.order.LineItemCtnr.md#removeshipmentshipment)([Shipment](dw.order.Shipment.md)) | Removes the specified shipment and all associated product, gift certificate, shipping and price adjustment line items from the line item container. |
226
- | [removeShippingPriceAdjustment](dw.order.LineItemCtnr.md#removeshippingpriceadjustmentpriceadjustment)([PriceAdjustment](dw.order.PriceAdjustment.md)) | Removes the specified shipping price adjustment line item from the line item container. |
227
- | [setCustomerEmail](dw.order.LineItemCtnr.md#setcustomeremailstring)([String](TopLevel.String.md)) | Sets the email address of the customer associated with this container. |
228
- | [setCustomerName](dw.order.LineItemCtnr.md#setcustomernamestring)([String](TopLevel.String.md)) | Sets the name of the customer associated with this container. |
229
- | [updateOrderLevelPriceAdjustmentTax](dw.order.LineItemCtnr.md#updateorderlevelpriceadjustmenttax)() | Calculates the tax for all shipping and order-level merchandise price adjustments in this LineItemCtnr. |
230
- | [updateTotals](dw.order.LineItemCtnr.md#updatetotals)() | Recalculates the totals of the line item container. |
231
- | [verifyPriceAdjustmentLimits](dw.order.LineItemCtnr.md#verifypriceadjustmentlimits)() | Verifies whether the manual price adjustments made for the line item container exceed the corresponding limits for the current user and the current site. |
232
-
233
- ### Methods inherited from class ExtensibleObject
234
-
235
- [describe](dw.object.ExtensibleObject.md#describe), [getCustom](dw.object.ExtensibleObject.md#getcustom)
236
- ### Methods inherited from class PersistentObject
237
-
238
- [getCreationDate](dw.object.PersistentObject.md#getcreationdate), [getLastModified](dw.object.PersistentObject.md#getlastmodified), [getUUID](dw.object.PersistentObject.md#getuuid)
239
- ### Methods inherited from class Object
240
-
241
- [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)
242
- ## Constant Details
243
-
244
- ### BUSINESS_TYPE_B2B
245
-
246
- - BUSINESS_TYPE_B2B: [Number](TopLevel.Number.md) = 2
247
- - : constant for Business Type B2B
248
-
249
-
250
- ---
251
-
252
- ### BUSINESS_TYPE_B2C
253
-
254
- - BUSINESS_TYPE_B2C: [Number](TopLevel.Number.md) = 1
255
- - : constant for Business Type B2C
256
-
257
-
258
- ---
259
-
260
- ### CHANNEL_TYPE_CALLCENTER
261
-
262
- - CHANNEL_TYPE_CALLCENTER: [Number](TopLevel.Number.md) = 2
263
- - : constant for Channel Type CallCenter
264
-
265
-
266
- ---
267
-
268
- ### CHANNEL_TYPE_CHATGPT
269
-
270
- - CHANNEL_TYPE_CHATGPT: [Number](TopLevel.Number.md) = 18
271
- - : constant for Channel Type ChatGPT
272
-
273
-
274
- ---
275
-
276
- ### CHANNEL_TYPE_CUSTOMERSERVICECENTER
277
-
278
- - CHANNEL_TYPE_CUSTOMERSERVICECENTER: [Number](TopLevel.Number.md) = 11
279
- - : constant for Channel Type Customer Service Center
280
-
281
-
282
- ---
283
-
284
- ### CHANNEL_TYPE_DSS
285
-
286
- - CHANNEL_TYPE_DSS: [Number](TopLevel.Number.md) = 4
287
- - : constant for Channel Type DSS
288
-
289
-
290
- ---
291
-
292
- ### CHANNEL_TYPE_FACEBOOKADS
293
-
294
- - CHANNEL_TYPE_FACEBOOKADS: [Number](TopLevel.Number.md) = 8
295
- - : constant for Channel Type Facebook Ads
296
-
297
-
298
- ---
299
-
300
- ### CHANNEL_TYPE_GEMINI
301
-
302
- - CHANNEL_TYPE_GEMINI: [Number](TopLevel.Number.md) = 19
303
- - : constant for Channel Type Gemini
304
-
305
-
306
- ---
307
-
308
- ### CHANNEL_TYPE_GOOGLE
309
-
310
- - CHANNEL_TYPE_GOOGLE: [Number](TopLevel.Number.md) = 13
311
- - : constant for Channel Type Google
312
-
313
-
314
- ---
315
-
316
- ### CHANNEL_TYPE_INSTAGRAMCOMMERCE
317
-
318
- - CHANNEL_TYPE_INSTAGRAMCOMMERCE: [Number](TopLevel.Number.md) = 12
319
- - : constant for Channel Type Instagram Commerce
320
-
321
-
322
- ---
323
-
324
- ### CHANNEL_TYPE_MARKETPLACE
325
-
326
- - CHANNEL_TYPE_MARKETPLACE: [Number](TopLevel.Number.md) = 3
327
- - : constant for Channel Type Marketplace
328
-
329
-
330
- ---
331
-
332
- ### CHANNEL_TYPE_ONLINERESERVATION
333
-
334
- - CHANNEL_TYPE_ONLINERESERVATION: [Number](TopLevel.Number.md) = 10
335
- - : constant for Channel Type Online Reservation
336
-
337
-
338
- ---
339
-
340
- ### CHANNEL_TYPE_PINTEREST
341
-
342
- - CHANNEL_TYPE_PINTEREST: [Number](TopLevel.Number.md) = 6
343
- - : constant for Channel Type Pinterest
344
-
345
-
346
- ---
347
-
348
- ### CHANNEL_TYPE_SNAPCHAT
349
-
350
- - CHANNEL_TYPE_SNAPCHAT: [Number](TopLevel.Number.md) = 15
351
- - : constant for Channel Type Snapchat
352
-
353
-
354
- ---
355
-
356
- ### CHANNEL_TYPE_STORE
357
-
358
- - CHANNEL_TYPE_STORE: [Number](TopLevel.Number.md) = 5
359
- - : constant for Channel Type Store
360
-
361
-
362
- ---
363
-
364
- ### CHANNEL_TYPE_STOREFRONT
365
-
366
- - CHANNEL_TYPE_STOREFRONT: [Number](TopLevel.Number.md) = 1
367
- - : constant for Channel Type Storefront
368
-
369
-
370
- ---
371
-
372
- ### CHANNEL_TYPE_SUBSCRIPTIONS
373
-
374
- - CHANNEL_TYPE_SUBSCRIPTIONS: [Number](TopLevel.Number.md) = 9
375
- - : constant for Channel Type Subscriptions
376
-
377
-
378
- ---
379
-
380
- ### CHANNEL_TYPE_TIKTOK
381
-
382
- - CHANNEL_TYPE_TIKTOK: [Number](TopLevel.Number.md) = 14
383
- - : constant for Channel Type TikTok
384
-
385
-
386
- ---
387
-
388
- ### CHANNEL_TYPE_TWITTER
389
-
390
- - CHANNEL_TYPE_TWITTER: [Number](TopLevel.Number.md) = 7
391
- - : constant for Channel Type Twitter
392
-
393
-
394
- ---
395
-
396
- ### CHANNEL_TYPE_WHATSAPP
397
-
398
- - CHANNEL_TYPE_WHATSAPP: [Number](TopLevel.Number.md) = 16
399
- - : constant for Channel Type WhatsApp
400
-
401
-
402
- ---
403
-
404
- ### CHANNEL_TYPE_YOUTUBE
405
-
406
- - CHANNEL_TYPE_YOUTUBE: [Number](TopLevel.Number.md) = 17
407
- - : constant for Channel Type YouTube
408
-
409
-
410
- ---
411
-
412
- ## Property Details
413
-
414
- ### adjustedMerchandizeTotalGrossPrice
415
- - adjustedMerchandizeTotalGrossPrice: [Money](dw.value.Money.md) `(read-only)`
416
- - : Returns the adjusted total gross price (including tax) in purchase currency. Adjusted merchandize prices
417
- represent the sum of product prices before services such as shipping, but after product-level and order-level
418
- adjustments.
419
-
420
-
421
-
422
- ---
423
-
424
- ### adjustedMerchandizeTotalNetPrice
425
- - adjustedMerchandizeTotalNetPrice: [Money](dw.value.Money.md) `(read-only)`
426
- - : Returns the total net price (excluding tax) in purchase currency. Adjusted merchandize prices represent the sum
427
- of product prices before services such as shipping, but after product-level and order-level adjustments.
428
-
429
-
430
-
431
- ---
432
-
433
- ### adjustedMerchandizeTotalPrice
434
- - adjustedMerchandizeTotalPrice: [Money](dw.value.Money.md) `(read-only)`
435
- - : Returns the adjusted merchandize total price including product-level and order-level adjustments. If the line
436
- item container is based on net pricing the adjusted merchandize total net price is returned. If the line item
437
- container is based on gross pricing the adjusted merchandize total gross price is returned.
438
-
439
-
440
-
441
- ---
442
-
443
- ### adjustedMerchandizeTotalTax
444
- - adjustedMerchandizeTotalTax: [Money](dw.value.Money.md) `(read-only)`
445
- - : Returns the subtotal tax in purchase currency. Adjusted merchandize prices represent the sum of product prices
446
- before services such as shipping have been added, but after adjustment from promotions have been added.
447
-
448
-
449
-
450
- ---
451
-
452
- ### adjustedShippingTotalGrossPrice
453
- - adjustedShippingTotalGrossPrice: [Money](dw.value.Money.md) `(read-only)`
454
- - : Returns the adjusted sum of all shipping line items of the line item container, including tax after shipping
455
- adjustments have been applied.
456
-
457
-
458
-
459
- ---
460
-
461
- ### adjustedShippingTotalNetPrice
462
- - adjustedShippingTotalNetPrice: [Money](dw.value.Money.md) `(read-only)`
463
- - : Returns the sum of all shipping line items of the line item container, excluding tax after shipping adjustments
464
- have been applied.
465
-
466
-
467
-
468
- ---
469
-
470
- ### adjustedShippingTotalPrice
471
- - adjustedShippingTotalPrice: [Money](dw.value.Money.md) `(read-only)`
472
- - : Returns the adjusted shipping total price. If the line item container is based on net pricing the adjusted
473
- shipping total net price is returned. If the line item container is based on gross pricing the adjusted shipping
474
- total gross price is returned.
475
-
476
-
477
-
478
- ---
479
-
480
- ### adjustedShippingTotalTax
481
- - adjustedShippingTotalTax: [Money](dw.value.Money.md) `(read-only)`
482
- - : Returns the tax of all shipping line items of the line item container after shipping adjustments have been
483
- applied.
484
-
485
-
486
-
487
- ---
488
-
489
- ### allGiftCertificateLineItems
490
- - ~~allGiftCertificateLineItems: [Collection](dw.util.Collection.md)~~ `(read-only)`
491
- - : Returns all gift certificate line items of the container.
492
-
493
- **Deprecated:**
494
- :::warning
495
- Use [getGiftCertificateLineItems()](dw.order.LineItemCtnr.md#getgiftcertificatelineitems) to get the collection instead.
496
- :::
497
-
498
- ---
499
-
500
- ### allLineItems
501
- - allLineItems: [Collection](dw.util.Collection.md) `(read-only)`
502
- - : Returns all product, shipping, price adjustment, and gift certificate line items of the line item container.
503
-
504
-
505
- ---
506
-
507
- ### allProductLineItems
508
- - allProductLineItems: [Collection](dw.util.Collection.md) `(read-only)`
509
- - : Returns all product line items of the container, no matter if they are dependent or independent. This includes
510
- option, bundled and bonus line items.
511
-
512
-
513
-
514
- ---
515
-
516
- ### allProductQuantities
517
- - allProductQuantities: [HashMap](dw.util.HashMap.md) `(read-only)`
518
- - : Returns a hash mapping all products in the line item container to their total quantities. The total product
519
- quantity is used chiefly to validate the availability of the items in the cart. This method is not appropriate to
520
- look up prices because it returns products such as bundled line items which are included in the price of their
521
- parent and therefore have no corresponding price.
522
-
523
-
524
- The method counts all direct product line items, plus dependent product line items that are not option line
525
- items. It also excludes product line items that are not associated to any catalog product.
526
-
527
-
528
-
529
- ---
530
-
531
- ### allShippingPriceAdjustments
532
- - allShippingPriceAdjustments: [Collection](dw.util.Collection.md) `(read-only)`
533
- - : Returns the collection of all shipping price adjustments applied somewhere in the container. This can be
534
- adjustments applied to individual shipments or to the container itself. Note that the promotions engine only
535
- applies shipping price adjustments to the the default shipping line item of shipments, and never to the
536
- container.
537
-
538
-
539
- **See Also:**
540
- - [getShippingPriceAdjustments()](dw.order.LineItemCtnr.md#getshippingpriceadjustments)
541
-
542
-
543
- ---
544
-
545
- ### billingAddress
546
- - billingAddress: [OrderAddress](dw.order.OrderAddress.md) `(read-only)`
547
- - : Returns the billing address defined for the container. Returns null if no billing address has been created yet.
548
-
549
-
550
- ---
551
-
552
- ### bonusDiscountLineItems
553
- - bonusDiscountLineItems: [Collection](dw.util.Collection.md) `(read-only)`
554
- - : Returns an unsorted collection of the the bonus discount line items associated with this container.
555
-
556
-
557
- ---
558
-
559
- ### bonusLineItems
560
- - bonusLineItems: [Collection](dw.util.Collection.md) `(read-only)`
561
- - : Returns the collection of product line items that are bonus items (where
562
- [ProductLineItem.isBonusProductLineItem()](dw.order.ProductLineItem.md#isbonusproductlineitem) is true).
563
-
564
-
565
-
566
- ---
567
-
568
- ### businessType
569
- - businessType: [EnumValue](dw.value.EnumValue.md) `(read-only)`
570
- - : Returns the type of the business this order has been placed in.
571
-
572
- Possible values are [BUSINESS_TYPE_B2C](dw.order.LineItemCtnr.md#business_type_b2c) or [BUSINESS_TYPE_B2B](dw.order.LineItemCtnr.md#business_type_b2b).
573
-
574
-
575
-
576
- ---
577
-
578
- ### channelType
579
- - channelType: [EnumValue](dw.value.EnumValue.md) `(read-only)`
580
- - : The channel type defines in which sales channel this order has been created. This can be used to distinguish
581
- order placed through Storefront, Call Center or Marketplace.
582
-
583
- Possible values are [CHANNEL_TYPE_STOREFRONT](dw.order.LineItemCtnr.md#channel_type_storefront), [CHANNEL_TYPE_CALLCENTER](dw.order.LineItemCtnr.md#channel_type_callcenter),
584
- [CHANNEL_TYPE_MARKETPLACE](dw.order.LineItemCtnr.md#channel_type_marketplace), [CHANNEL_TYPE_DSS](dw.order.LineItemCtnr.md#channel_type_dss), [CHANNEL_TYPE_STORE](dw.order.LineItemCtnr.md#channel_type_store),
585
- [CHANNEL_TYPE_PINTEREST](dw.order.LineItemCtnr.md#channel_type_pinterest), [CHANNEL_TYPE_TWITTER](dw.order.LineItemCtnr.md#channel_type_twitter), [CHANNEL_TYPE_FACEBOOKADS](dw.order.LineItemCtnr.md#channel_type_facebookads),
586
- [CHANNEL_TYPE_SUBSCRIPTIONS](dw.order.LineItemCtnr.md#channel_type_subscriptions), [CHANNEL_TYPE_ONLINERESERVATION](dw.order.LineItemCtnr.md#channel_type_onlinereservation),
587
- [CHANNEL_TYPE_CUSTOMERSERVICECENTER](dw.order.LineItemCtnr.md#channel_type_customerservicecenter), [CHANNEL_TYPE_INSTAGRAMCOMMERCE](dw.order.LineItemCtnr.md#channel_type_instagramcommerce),
588
- [CHANNEL_TYPE_GOOGLE](dw.order.LineItemCtnr.md#channel_type_google), [CHANNEL_TYPE_YOUTUBE](dw.order.LineItemCtnr.md#channel_type_youtube), [CHANNEL_TYPE_TIKTOK](dw.order.LineItemCtnr.md#channel_type_tiktok),
589
- [CHANNEL_TYPE_SNAPCHAT](dw.order.LineItemCtnr.md#channel_type_snapchat), [CHANNEL_TYPE_WHATSAPP](dw.order.LineItemCtnr.md#channel_type_whatsapp), [CHANNEL_TYPE_CHATGPT](dw.order.LineItemCtnr.md#channel_type_chatgpt),
590
- [CHANNEL_TYPE_GEMINI](dw.order.LineItemCtnr.md#channel_type_gemini)
591
-
592
-
593
-
594
- ---
595
-
596
- ### couponLineItems
597
- - couponLineItems: [Collection](dw.util.Collection.md) `(read-only)`
598
- - : Returns a sorted collection of the coupon line items in the container. The coupon line items are returned in the
599
- order they were added to container.
600
-
601
-
602
-
603
- ---
604
-
605
- ### currencyCode
606
- - currencyCode: [String](TopLevel.String.md) `(read-only)`
607
- - : Returns the currency code for this line item container. The currency code is a 3-character currency mnemonic such
608
- as 'USD' or 'EUR'. The currency code represents the currency in which the calculation is made, and in which the
609
- buyer sees all prices in the store front.
610
-
611
-
612
-
613
- ---
614
-
615
- ### customer
616
- - customer: [Customer](dw.customer.Customer.md) `(read-only)`
617
- - : Returns the customer associated with this container.
618
-
619
-
620
- ---
621
-
622
- ### customerEmail
623
- - customerEmail: [String](TopLevel.String.md)
624
- - : Returns the email of the customer associated with this container.
625
-
626
-
627
- ---
628
-
629
- ### customerName
630
- - customerName: [String](TopLevel.String.md)
631
- - : Returns the name of the customer associated with this container.
632
-
633
-
634
- ---
635
-
636
- ### customerNo
637
- - customerNo: [String](TopLevel.String.md) `(read-only)`
638
- - : Returns the customer number of the customer associated with this container.
639
-
640
-
641
- ---
642
-
643
- ### defaultShipment
644
- - defaultShipment: [Shipment](dw.order.Shipment.md) `(read-only)`
645
- - : Returns the default shipment of the line item container. Baskets always have a default shipment with ID "me".
646
- For orders, this can differ, for example: [OrderMgr.createOrder(Basket)](dw.order.OrderMgr.md#createorderbasket) removes empty
647
- shipments, so if the basket's "me" shipment was empty at order creation, the order has no "me" shipment. In
648
- that case, the shipment with the lowest ID is returned as the fallback, or `null` if the order has
649
- no shipments. See [Shipment.isDefault()](dw.order.Shipment.md#isdefault) for the matching logic.
650
-
651
-
652
- Processes that access a shipment use the default shipment when none is specified. The default shipment can't be
653
- removed. Calling [removeShipment(Shipment)](dw.order.LineItemCtnr.md#removeshipmentshipment) on it throws an exception.
654
-
655
-
656
-
657
- ---
658
-
659
- ### etag
660
- - etag: [String](TopLevel.String.md) `(read-only)`
661
- - : Returns the Etag of the line item container. The Etag is a hash that represents the overall container state
662
- including any associated objects like line items.
663
-
664
-
665
-
666
- ---
667
-
668
- ### externallyTaxed
669
- - externallyTaxed: [Boolean](TopLevel.Boolean.md) `(read-only)`
670
- - : Use this method to check whether the LineItemCtnr is calculated based on external tax tables.
671
-
672
- Note: a basket can only be created in EXTERNAL tax mode using SCAPI.
673
-
674
-
675
-
676
- ---
677
-
678
- ### giftCertificateLineItems
679
- - giftCertificateLineItems: [Collection](dw.util.Collection.md) `(read-only)`
680
- - : Returns all gift certificate line items of the container.
681
-
682
-
683
- ---
684
-
685
- ### giftCertificatePaymentInstruments
686
- - giftCertificatePaymentInstruments: [Collection](dw.util.Collection.md) `(read-only)`
687
- - : Returns an unsorted collection of the PaymentInstrument instances that represent GiftCertificates in this
688
- container.
689
-
690
-
691
-
692
- ---
693
-
694
- ### giftCertificateTotalGrossPrice
695
- - giftCertificateTotalGrossPrice: [Money](dw.value.Money.md) `(read-only)`
696
- - : Returns the total gross price of all gift certificates in the cart. Should usually be equal to total net price.
697
-
698
-
699
- ---
700
-
701
- ### giftCertificateTotalNetPrice
702
- - giftCertificateTotalNetPrice: [Money](dw.value.Money.md) `(read-only)`
703
- - : Returns the total net price (excluding tax) of all gift certificates in the cart. Should usually be equal to
704
- total gross price.
705
-
706
-
707
-
708
- ---
709
-
710
- ### giftCertificateTotalPrice
711
- - giftCertificateTotalPrice: [Money](dw.value.Money.md) `(read-only)`
712
- - : Returns the gift certificate total price. If the line item container is based on net pricing the gift certificate
713
- total net price is returned. If the line item container is based on gross pricing the gift certificate total
714
- gross price is returned.
715
-
716
-
717
-
718
- ---
719
-
720
- ### giftCertificateTotalTax
721
- - giftCertificateTotalTax: [Money](dw.value.Money.md) `(read-only)`
722
- - : Returns the total tax of all gift certificates in the cart. Should usually be 0.0.
723
-
724
-
725
- ---
726
-
727
- ### merchandizeTotalGrossPrice
728
- - merchandizeTotalGrossPrice: [Money](dw.value.Money.md) `(read-only)`
729
- - : Returns the total gross price (including tax) in purchase currency. Merchandize total prices represent the sum of
730
- product prices before services such as shipping or adjustment from promotions have been added.
731
-
732
-
733
-
734
- ---
735
-
736
- ### merchandizeTotalNetPrice
737
- - merchandizeTotalNetPrice: [Money](dw.value.Money.md) `(read-only)`
738
- - : Returns the total net price (excluding tax) in purchase currency. Merchandize total prices represent the sum of
739
- product prices before services such as shipping or adjustment from promotion have been added.
740
-
741
-
742
-
743
- ---
744
-
745
- ### merchandizeTotalPrice
746
- - merchandizeTotalPrice: [Money](dw.value.Money.md) `(read-only)`
747
- - : Returns the merchandize total price. If the line item container is based on net pricing the merchandize total net
748
- price is returned. If the line item container is based on gross pricing the merchandize total gross price is
749
- returned.
750
-
751
-
752
-
753
- ---
754
-
755
- ### merchandizeTotalTax
756
- - merchandizeTotalTax: [Money](dw.value.Money.md) `(read-only)`
757
- - : Returns the total tax in purchase currency. Merchandize total prices represent the sum of product prices before
758
- services such as shipping or adjustment from promotions have been added.
759
-
760
-
761
-
762
- ---
763
-
764
- ### notes
765
- - notes: [List](dw.util.List.md) `(read-only)`
766
- - : Returns the list of notes for this object, ordered by creation time from oldest to newest.
767
-
768
-
769
- ---
770
-
771
- ### paymentInstrument
772
- - ~~paymentInstrument: [OrderPaymentInstrument](dw.order.OrderPaymentInstrument.md)~~ `(read-only)`
773
- - : Returns the payment instrument of the line item container or null. This method is deprecated. You should use
774
- getPaymentInstruments() or getGiftCertificatePaymentInstruments() instead.
775
-
776
-
777
- **Deprecated:**
778
- :::warning
779
- Use [getPaymentInstruments()](dw.order.LineItemCtnr.md#getpaymentinstruments) or [getGiftCertificatePaymentInstruments()](dw.order.LineItemCtnr.md#getgiftcertificatepaymentinstruments) to get the
780
- set of payment instruments.
781
-
782
- :::
783
-
784
- ---
785
-
786
- ### paymentInstruments
787
- - paymentInstruments: [Collection](dw.util.Collection.md) `(read-only)`
788
- - : Returns an unsorted collection of the payment instruments in this container.
789
-
790
-
791
- ---
792
-
793
- ### priceAdjustments
794
- - priceAdjustments: [Collection](dw.util.Collection.md) `(read-only)`
795
- - : Returns the collection of price adjustments that have been applied to the totals such as promotion on the
796
- purchase value (i.e. $10 Off or 10% Off). The price adjustments are sorted by the order in which they were
797
- applied to the order by the promotions engine.
798
-
799
-
800
-
801
- ---
802
-
803
- ### productLineItems
804
- - productLineItems: [Collection](dw.util.Collection.md) `(read-only)`
805
- - : Returns the product line items of the container that are not dependent on other product line items. This includes
806
- line items representing bonus products in the container but excludes option, bundled, and bonus line items. The
807
- returned collection is sorted by the position attribute of the product line items.
808
-
809
-
810
-
811
- ---
812
-
813
- ### productQuantities
814
- - productQuantities: [HashMap](dw.util.HashMap.md) `(read-only)`
815
- - : Returns a hash map of all products in the line item container and their total quantities. The total product
816
- quantity is for example used to lookup the product price.
817
-
818
-
819
- The method counts all direct product line items, plus dependent product line items that are not bundled line
820
- items and no option line items. It also excludes product line items that are not associated to any catalog
821
- product, and bonus product line items.
822
-
823
-
824
- **See Also:**
825
- - [getProductQuantities(Boolean)](dw.order.LineItemCtnr.md#getproductquantitiesboolean)
826
-
827
-
828
- ---
829
-
830
- ### productQuantityTotal
831
- - productQuantityTotal: [Number](TopLevel.Number.md) `(read-only)`
832
- - : Returns the total quantity of all product line items. Not included are bundled line items and option line items.
833
-
834
-
835
- ---
836
-
837
- ### shipments
838
- - shipments: [Collection](dw.util.Collection.md) `(read-only)`
839
- - : Returns all shipments of the line item container.
840
-
841
- The first shipment in the returned collection is the default shipment (shipment ID always set to "me"). All other
842
- shipments are sorted ascending by shipment ID.
843
-
844
-
845
-
846
- ---
847
-
848
- ### shippingPriceAdjustments
849
- - shippingPriceAdjustments: [Collection](dw.util.Collection.md) `(read-only)`
850
- - : Returns the of shipping price adjustments applied to the shipping total of the container. Note that the
851
- promotions engine only applies shipping price adjustments to the the default shipping line item of shipments, and
852
- never to the container.
853
-
854
-
855
- **See Also:**
856
- - [getAllShippingPriceAdjustments()](dw.order.LineItemCtnr.md#getallshippingpriceadjustments)
857
-
858
-
859
- ---
860
-
861
- ### shippingTotalGrossPrice
862
- - shippingTotalGrossPrice: [Money](dw.value.Money.md) `(read-only)`
863
- - : Returns the sum of all shipping line items of the line item container, including tax before shipping adjustments
864
- have been applied.
865
-
866
-
867
-
868
- ---
869
-
870
- ### shippingTotalNetPrice
871
- - shippingTotalNetPrice: [Money](dw.value.Money.md) `(read-only)`
872
- - : Returns the sum of all shipping line items of the line item container, excluding tax before shipping adjustments
873
- have been applied.
874
-
875
-
876
-
877
- ---
878
-
879
- ### shippingTotalPrice
880
- - shippingTotalPrice: [Money](dw.value.Money.md) `(read-only)`
881
- - : Returns the shipping total price. If the line item container is based on net pricing the shipping total net price
882
- is returned. If the line item container is based on gross pricing the shipping total gross price is returned.
883
-
884
-
885
-
886
- ---
887
-
888
- ### shippingTotalTax
889
- - shippingTotalTax: [Money](dw.value.Money.md) `(read-only)`
890
- - : Returns the tax of all shipping line items of the line item container before shipping adjustments have been
891
- applied.
892
-
893
-
894
-
895
- ---
896
-
897
- ### taxRoundedAtGroup
898
- - taxRoundedAtGroup: [Boolean](TopLevel.Boolean.md) `(read-only)`
899
- - : Use this method to check if the LineItemCtnr was calculated with grouped taxation calculation.
900
-
901
-
902
- If the tax is rounded on group level, the tax is applied to the summed-up tax basis for each tax rate.
903
-
904
-
905
-
906
- ---
907
-
908
- ### taxTotalsPerTaxRate
909
- - taxTotalsPerTaxRate: [SortedMap](dw.util.SortedMap.md) `(read-only)`
910
- - : This method returns a [SortedMap](dw.util.SortedMap.md) in which the keys are [Decimal](dw.util.Decimal.md) tax rates and the values
911
- are [Money](dw.value.Money.md) total tax for the tax rate. The map is unmodifiable.
912
-
913
-
914
-
915
- ---
916
-
917
- ### totalGrossPrice
918
- - totalGrossPrice: [Money](dw.value.Money.md) `(read-only)`
919
- - : Returns the grand total price gross of tax for LineItemCtnr, in purchase currency. Total prices represent the sum
920
- of product prices, services prices and adjustments.
921
-
922
-
923
-
924
- ---
925
-
926
- ### totalNetPrice
927
- - totalNetPrice: [Money](dw.value.Money.md) `(read-only)`
928
- - : Returns the grand total price for LineItemCtnr net of tax, in purchase currency. Total prices represent the sum
929
- of product prices, services prices and adjustments.
930
-
931
-
932
-
933
- ---
934
-
935
- ### totalTax
936
- - totalTax: [Money](dw.value.Money.md) `(read-only)`
937
- - : Returns the grand total tax for LineItemCtnr, in purchase currency. Total prices represent the sum of product
938
- prices, services prices and adjustments.
939
-
940
-
941
-
942
- ---
943
-
944
- ## Method Details
945
-
946
- ### addNote(String, String)
947
- - addNote(subject: [String](TopLevel.String.md), text: [String](TopLevel.String.md)): [Note](dw.object.Note.md)
948
- - : Adds a note to the object.
949
-
950
- **Parameters:**
951
- - subject - The subject of the note.
952
- - text - The text of the note. Must be no more than 4000 characters or an exception is thrown.
953
-
954
- **Returns:**
955
- - the added note.
956
-
957
-
958
- ---
959
-
960
- ### createBillingAddress()
961
- - createBillingAddress(): [OrderAddress](dw.order.OrderAddress.md)
962
- - : Create a billing address for the LineItemCtnr. A LineItemCtnr (e.g. basket) initially has no billing address.
963
- This method creates a billing address for the LineItemCtnr and replaces an existing billing address.
964
-
965
-
966
- **Returns:**
967
- - The new billing address of the LineItemCtnr.
968
-
969
-
970
- ---
971
-
972
- ### createBonusProductLineItem(BonusDiscountLineItem, Product, ProductOptionModel, Shipment)
973
- - createBonusProductLineItem(bonusDiscountLineItem: [BonusDiscountLineItem](dw.order.BonusDiscountLineItem.md), product: [Product](dw.catalog.Product.md), optionModel: [ProductOptionModel](dw.catalog.ProductOptionModel.md), shipment: [Shipment](dw.order.Shipment.md)): [ProductLineItem](dw.order.ProductLineItem.md)
974
- - : Creates a product line item in the container based on the passed Product and BonusDiscountLineItem. The product
975
- must be assigned to the current site catalog and must also be a bonus product of the specified
976
- BonusDiscountLineItem or an exception is thrown. The line item is always created in the default shipment. If
977
- successful, the operation always creates a new ProductLineItem and never simply increments the quantity of an
978
- existing ProductLineItem. An option model can optionally be specified.
979
-
980
-
981
- **Parameters:**
982
- - bonusDiscountLineItem - Line item representing an applied BonusChoiceDiscount in the LineItemCtnr, must not be null.
983
- - product - Product The product to add to the LineItemCtnr. Must not be null and must be a bonus product of bonusDiscountLineItem.
984
- - optionModel - ProductOptionModel or null.
985
- - shipment - The shipment to add the bonus product to. If null, the product is added to the default shipment.
986
-
987
-
988
- ---
989
-
990
- ### createCouponLineItem(String)
991
- - createCouponLineItem(couponCode: [String](TopLevel.String.md)): [CouponLineItem](dw.order.CouponLineItem.md)
992
- - : Creates a coupon line item that is not based on the B2C Commerce campaign system and associates it with the
993
- specified coupon code.
994
-
995
-
996
- There may not be any other coupon line item in the container with the specific coupon code, otherwise an
997
- exception is thrown.
998
-
999
-
1000
- If you want to create a coupon line item based on the B2C Commerce campaign system, you must use
1001
- [createCouponLineItem(String, Boolean)](dw.order.LineItemCtnr.md#createcouponlineitemstring-boolean) with campaignBased = true.
1002
-
1003
-
1004
- **Parameters:**
1005
- - couponCode - couponCode represented by the coupon line item.
1006
-
1007
- **Returns:**
1008
- - New coupon line item.
1009
-
1010
-
1011
- ---
1012
-
1013
- ### createCouponLineItem(String, Boolean)
1014
- - createCouponLineItem(couponCode: [String](TopLevel.String.md), campaignBased: [Boolean](TopLevel.Boolean.md)): [CouponLineItem](dw.order.CouponLineItem.md)
1015
- - : Creates a new CouponLineItem for this container based on the supplied coupon code.
1016
-
1017
-
1018
- The created coupon line item is based on the B2C Commerce campaign system if campaignBased parameter is true. In
1019
- that case, if the supplied coupon code is not valid, APIException with type 'CreateCouponLineItemException' is
1020
- thrown.
1021
-
1022
-
1023
- If you want to create a custom coupon line item, you must call this method with campaignBased = false or to use
1024
- [createCouponLineItem(String)](dw.order.LineItemCtnr.md#createcouponlineitemstring).
1025
-
1026
-
1027
-
1028
-
1029
- Example:
1030
-
1031
-
1032
-
1033
-
1034
- ```
1035
- try {
1036
- var cli : CouponLineItem = basket.createCouponLineItem(couponCode, true);
1037
- } catch (e if e instanceof APIException && e.type === 'CreateCouponLineItemException')
1038
- if (e.errorCode == CouponStatusCodes.COUPON_CODE_ALREADY_IN_BASKET) {
1039
- ...
1040
- }
1041
- }
1042
- ```
1043
-
1044
-
1045
- An dw.order.CreateCouponLineItemException is thrown in case of campaignBased = true only. Indicates that the
1046
- provided coupon code is not a valid coupon code to create a coupon line item based on the B2C Commerce campaign
1047
- system. The error code property (CreateCouponLineItemException.errorCode) will be set to one of the following
1048
- values:
1049
-
1050
- - [CouponStatusCodes.COUPON_CODE_ALREADY_IN_BASKET](dw.campaign.CouponStatusCodes.md#coupon_code_already_in_basket)= Indicates that coupon code has already been added to basket.
1051
- - [CouponStatusCodes.COUPON_ALREADY_IN_BASKET](dw.campaign.CouponStatusCodes.md#coupon_already_in_basket)= Indicates that another code of the same MultiCode/System coupon has already been added to basket.
1052
- - [CouponStatusCodes.COUPON_CODE_ALREADY_REDEEMED](dw.campaign.CouponStatusCodes.md#coupon_code_already_redeemed)= Indicates that code of MultiCode/System coupon has already been redeemed.
1053
- - [CouponStatusCodes.COUPON_CODE_UNKNOWN](dw.campaign.CouponStatusCodes.md#coupon_code_unknown)= Indicates that coupon not found for given coupon code or that the code itself was not found.
1054
- - [CouponStatusCodes.COUPON_DISABLED](dw.campaign.CouponStatusCodes.md#coupon_disabled)= Indicates that coupon is not enabled.
1055
- - [CouponStatusCodes.REDEMPTION_LIMIT_EXCEEDED](dw.campaign.CouponStatusCodes.md#redemption_limit_exceeded)= Indicates that number of redemptions per code exceeded.
1056
- - [CouponStatusCodes.CUSTOMER_REDEMPTION_LIMIT_EXCEEDED](dw.campaign.CouponStatusCodes.md#customer_redemption_limit_exceeded)= Indicates that number of redemptions per code and customer exceeded.
1057
- - [CouponStatusCodes.TIMEFRAME_REDEMPTION_LIMIT_EXCEEDED](dw.campaign.CouponStatusCodes.md#timeframe_redemption_limit_exceeded)= Indicates that number of redemptions per code, customer and time exceeded.
1058
- - [CouponStatusCodes.NO_ACTIVE_PROMOTION](dw.campaign.CouponStatusCodes.md#no_active_promotion)= Indicates that coupon is not assigned to an active promotion.
1059
-
1060
-
1061
- **Parameters:**
1062
- - couponCode - the coupon code to be represented by the coupon line item
1063
- - campaignBased - the flag if the created coupon line item should be based on the B2C Commerce campaign system
1064
-
1065
- **Returns:**
1066
- - the created coupon line item
1067
-
1068
-
1069
- ---
1070
-
1071
- ### createGiftCertificateLineItem(Number, String)
1072
- - createGiftCertificateLineItem(amount: [Number](TopLevel.Number.md), recipientEmail: [String](TopLevel.String.md)): [GiftCertificateLineItem](dw.order.GiftCertificateLineItem.md)
1073
- - : Creates a gift certificate line item.
1074
-
1075
- **Parameters:**
1076
- - amount - the amount of the gift certificate - mandatory
1077
- - recipientEmail - the recipient's email address - mandatory
1078
-
1079
- **Returns:**
1080
- - The new gift certificate line item
1081
-
1082
-
1083
- ---
1084
-
1085
- ### createGiftCertificatePaymentInstrument(String, Money)
1086
- - createGiftCertificatePaymentInstrument(giftCertificateCode: [String](TopLevel.String.md), amount: [Money](dw.value.Money.md)): [OrderPaymentInstrument](dw.order.OrderPaymentInstrument.md)
1087
- - : Creates an OrderPaymentInstrument representing a Gift Certificate. The amount is set on a PaymentTransaction that
1088
- is accessible via the OrderPaymentInstrument. By default, the status of the PaymentTransaction is set to CREATE.
1089
- The PaymentTransaction must be processed at a later time.
1090
-
1091
-
1092
- **Parameters:**
1093
- - giftCertificateCode - the redemption code of the Gift Certificate.
1094
- - amount - the amount to set on the PaymentTransaction. If the OrderPaymentInstrument is actually redeemed, this is the amount that will be deducted from the Gift Certificate.
1095
-
1096
- **Returns:**
1097
- - the OrderPaymentInstrument.
1098
-
1099
-
1100
- ---
1101
-
1102
- ### createPaymentInstrument(String, Money)
1103
- - createPaymentInstrument(paymentMethodId: [String](TopLevel.String.md), amount: [Money](dw.value.Money.md)): [OrderPaymentInstrument](dw.order.OrderPaymentInstrument.md)
1104
- - : Creates a payment instrument using the specified payment method id and amount. The amount is set on the
1105
- [PaymentTransaction](dw.order.PaymentTransaction.md) that is attached to the payment instrument.
1106
-
1107
-
1108
- **Parameters:**
1109
- - paymentMethodId - The payment method id. See the [PaymentInstrument](dw.order.PaymentInstrument.md) class for payment method types
1110
- - amount - The payment amount or null
1111
-
1112
- **Returns:**
1113
- - The new payment instrument
1114
-
1115
-
1116
- ---
1117
-
1118
- ### createPaymentInstrumentFromWallet(CustomerPaymentInstrument, Money)
1119
- - createPaymentInstrumentFromWallet(walletPaymentInstrument: [CustomerPaymentInstrument](dw.customer.CustomerPaymentInstrument.md), amount: [Money](dw.value.Money.md)): [OrderPaymentInstrument](dw.order.OrderPaymentInstrument.md)
1120
- - : Creates a payment instrument using the specified wallet payment instrument and amount. The amount is set on the
1121
- [PaymentTransaction](dw.order.PaymentTransaction.md) that is attached to the payment instrument. All data from the wallet payment
1122
- instrument will be copied over to the created payment instrument.
1123
-
1124
-
1125
- **Parameters:**
1126
- - walletPaymentInstrument - The payment instrument from the customer's walled.
1127
- - amount - The payment amount or null
1128
-
1129
- **Returns:**
1130
- - The new payment instrument
1131
-
1132
-
1133
- ---
1134
-
1135
- ### createPriceAdjustment(String)
1136
- - createPriceAdjustment(promotionID: [String](TopLevel.String.md)): [PriceAdjustment](dw.order.PriceAdjustment.md)
1137
- - : Creates an order price adjustment.
1138
-
1139
- The promotion id is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise
1140
- an exception is thrown.
1141
-
1142
-
1143
- **Parameters:**
1144
- - promotionID - Promotion ID
1145
-
1146
- **Returns:**
1147
- - The new price adjustment
1148
-
1149
-
1150
- ---
1151
-
1152
- ### createPriceAdjustment(String, Discount)
1153
- - createPriceAdjustment(promotionID: [String](TopLevel.String.md), discount: [Discount](dw.campaign.Discount.md)): [PriceAdjustment](dw.order.PriceAdjustment.md)
1154
- - : Creates an order level price adjustment for a specific discount.
1155
-
1156
- The promotion id is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise
1157
- an exception is thrown.
1158
-
1159
- The possible discount types are supported: [PercentageDiscount](dw.campaign.PercentageDiscount.md) and
1160
- [AmountDiscount](dw.campaign.AmountDiscount.md).
1161
-
1162
- Examples:
1163
-
1164
-
1165
- `
1166
- var myOrder : dw.order.Order; // assume known
1167
-
1168
- var paTenPercent : dw.order.PriceAdjustment = myOrder.createPriceAdjustment("myPromotionID1", new dw.campaign.PercentageDiscount(10));
1169
-
1170
- var paReduceBy20 : dw.order.PriceAdjustment = myOrder.createPriceAdjustment("myPromotionID2", new dw.campaign.AmountDiscount(20);
1171
-
1172
- `
1173
-
1174
-
1175
- **Parameters:**
1176
- - promotionID - Promotion ID
1177
- - discount - The discount
1178
-
1179
- **Returns:**
1180
- - The new price adjustment
1181
-
1182
-
1183
- ---
1184
-
1185
- ### createProductLineItem(Product, ProductOptionModel, Shipment)
1186
- - createProductLineItem(product: [Product](dw.catalog.Product.md), optionModel: [ProductOptionModel](dw.catalog.ProductOptionModel.md), shipment: [Shipment](dw.order.Shipment.md)): [ProductLineItem](dw.order.ProductLineItem.md)
1187
- - : Creates a new product line item in the container and assigns it to the specified shipment. An option model can be
1188
- specified.
1189
-
1190
- Please note that the product must be assigned to the current site catalog.
1191
-
1192
-
1193
- **Parameters:**
1194
- - product - Product
1195
- - optionModel - ProductOptionModel or null
1196
- - shipment - Shipment
1197
-
1198
-
1199
- ---
1200
-
1201
- ### createProductLineItem(ProductListItem, Shipment)
1202
- - createProductLineItem(productListItem: [ProductListItem](dw.customer.ProductListItem.md), shipment: [Shipment](dw.order.Shipment.md)): [ProductLineItem](dw.order.ProductLineItem.md)
1203
- - : Creates a new product line item in the basket and assigns it to the specified shipment.
1204
-
1205
-
1206
- If the product list item references a product in the site catalog, the method will associate the product line
1207
- item with that catalog product and will copy all order-relevant information, like the quantity unit, from the
1208
- catalog product. The quantity of the product line item is initialized with 1.0 or - if defined - the minimum
1209
- order quantity of the product.
1210
-
1211
-
1212
- If the product list item references an option product, the option values are copied from the product list item.
1213
-
1214
-
1215
- If the product list item is associated with an existing product line item, and the BasketAddProductBehaviour
1216
- setting is MergeQuantities, then the product line item quantity is increased by 1.0 or, if defined, the minimum
1217
- order quantity of the product.
1218
-
1219
-
1220
- An exception is thrown if
1221
-
1222
- - the line item container is no basket.
1223
- - the type of the product list item is not PRODUCT.
1224
- - the product list item references a product which is not assigned to the site catalog.
1225
-
1226
-
1227
- **Parameters:**
1228
- - productListItem - the product list item
1229
- - shipment - the shipment the created product line item will be assigned to
1230
-
1231
- **Returns:**
1232
- - The new product line item
1233
-
1234
-
1235
- ---
1236
-
1237
- ### createProductLineItem(String, Shipment)
1238
- - createProductLineItem(productID: [String](TopLevel.String.md), shipment: [Shipment](dw.order.Shipment.md)): [ProductLineItem](dw.order.ProductLineItem.md)
1239
- - : Creates a new product line item in the container and assigns it to the specified shipment.
1240
-
1241
- If the specified productID represents a product in the site catalog, the method will associate the product line
1242
- item with that catalog product and will copy all order-relevant information, like the quantity unit, from the
1243
- catalog product. The quantity of the product line item is initialized with 1.0 or - if defined - the minimum
1244
- order quantity of the product.
1245
-
1246
- If the product represents a product in the site catalog and is an option product, the product is added with it's
1247
- default option values.
1248
-
1249
- If the specified productID does not represent a product of the site catalog, the method creates a new product
1250
- line item and initializes it with the specified product ID and with a quantity, minimum order quantity, and step
1251
- quantity value of 1.0.
1252
-
1253
- If the provided SKU references a product that is not available as described in method [ProductLineItem.isCatalogProduct()](dw.order.ProductLineItem.md#iscatalogproduct), the new product line item is considered a non-catalog product line item without a connection to a product. Such product line items are not included in reservation requests in either OCI-based inventory or eCom-based inventory when calling [Basket.reserveInventory()](dw.order.Basket.md#reserveinventory) or [OrderMgr.createOrder(Basket)](dw.order.OrderMgr.md#createorderbasket).
1254
-
1255
-
1256
- **Parameters:**
1257
- - productID - The product ID.
1258
- - shipment - Shipment
1259
-
1260
- **Returns:**
1261
- - The new product line item
1262
-
1263
-
1264
- ---
1265
-
1266
- ### createProductLineItem(String, Quantity, Shipment)
1267
- - ~~createProductLineItem(productID: [String](TopLevel.String.md), quantity: [Quantity](dw.value.Quantity.md), shipment: [Shipment](dw.order.Shipment.md)): [ProductLineItem](dw.order.ProductLineItem.md)~~
1268
- - : Creates a new product line item in the container and assigns it to the specified shipment.
1269
-
1270
- If the specified productID represents a product in the site catalog, the method will associate the product line
1271
- item with that catalog product and will copy all order-relevant information, like the quantity unit, from the
1272
- catalog product.
1273
-
1274
- If the specified productID does not represent a product of the site catalog, the method creates a new product
1275
- line item and initializes it with the specified product ID and quantity. If the passed in quantity value is not a
1276
- positive integer, it will be rounded to the nearest positive integer. The minimum order quantity and step
1277
- quantity will be set to 1.0.
1278
-
1279
- For catalog products, the method follows the configured 'Add2Basket' strategy to either increment the quantity of
1280
- an existing product line item or create a new product line item for the same product. For non-catalog products,
1281
- the method creates a new product line item no matter if the same product is already in the line item container.
1282
- If a negative quantity is specified, it is automatically changed to 1.0.
1283
-
1284
-
1285
- **Parameters:**
1286
- - productID - The product ID.
1287
- - quantity - The quantity of the product.
1288
- - shipment - Shipment
1289
-
1290
- **Returns:**
1291
- - the product line item
1292
-
1293
- **Deprecated:**
1294
- :::warning
1295
- Use [createProductLineItem(String, Shipment)](dw.order.LineItemCtnr.md#createproductlineitemstring-shipment) or
1296
- [ProductLineItem.updateQuantity(Number)](dw.order.ProductLineItem.md#updatequantitynumber) instead.
1297
-
1298
- :::
1299
-
1300
- ---
1301
-
1302
- ### createShipment(String)
1303
- - createShipment(id: [String](TopLevel.String.md)): [Shipment](dw.order.Shipment.md)
1304
- - : Creates a standard shipment for the line item container. The specified ID must not yet be in use for another
1305
- shipment of this line item container.
1306
-
1307
-
1308
- **Parameters:**
1309
- - id - ID of the shipment.
1310
-
1311
-
1312
- ---
1313
-
1314
- ### createShippingPriceAdjustment(String)
1315
- - createShippingPriceAdjustment(promotionID: [String](TopLevel.String.md)): [PriceAdjustment](dw.order.PriceAdjustment.md)
1316
- - : Creates a shipping price adjustment to be applied to the container.
1317
-
1318
- The promotion ID is mandatory and must not be the ID of any actual promotion defined in B2C Commerce; otherwise
1319
- the method will throw an exception.
1320
-
1321
- If there already exists a shipping price adjustment referring to the specified promotion ID, an exception is
1322
- thrown.
1323
-
1324
-
1325
- **Parameters:**
1326
- - promotionID - Promotion ID
1327
-
1328
- **Returns:**
1329
- - The new price adjustment
1330
-
1331
-
1332
- ---
1333
-
1334
- ### getAdjustedMerchandizeTotalGrossPrice()
1335
- - getAdjustedMerchandizeTotalGrossPrice(): [Money](dw.value.Money.md)
1336
- - : Returns the adjusted total gross price (including tax) in purchase currency. Adjusted merchandize prices
1337
- represent the sum of product prices before services such as shipping, but after product-level and order-level
1338
- adjustments.
1339
-
1340
-
1341
- **Returns:**
1342
- - the adjusted total gross price (including tax) in purchase currency.
1343
-
1344
-
1345
- ---
1346
-
1347
- ### getAdjustedMerchandizeTotalNetPrice()
1348
- - getAdjustedMerchandizeTotalNetPrice(): [Money](dw.value.Money.md)
1349
- - : Returns the total net price (excluding tax) in purchase currency. Adjusted merchandize prices represent the sum
1350
- of product prices before services such as shipping, but after product-level and order-level adjustments.
1351
-
1352
-
1353
- **Returns:**
1354
- - the total net price (excluding tax) in purchase currency.
1355
-
1356
-
1357
- ---
1358
-
1359
- ### getAdjustedMerchandizeTotalPrice()
1360
- - getAdjustedMerchandizeTotalPrice(): [Money](dw.value.Money.md)
1361
- - : Returns the adjusted merchandize total price including product-level and order-level adjustments. If the line
1362
- item container is based on net pricing the adjusted merchandize total net price is returned. If the line item
1363
- container is based on gross pricing the adjusted merchandize total gross price is returned.
1364
-
1365
-
1366
- **Returns:**
1367
- - either the adjusted merchandize total net or gross price
1368
-
1369
-
1370
- ---
1371
-
1372
- ### getAdjustedMerchandizeTotalPrice(Boolean)
1373
- - getAdjustedMerchandizeTotalPrice(applyOrderLevelAdjustments: [Boolean](TopLevel.Boolean.md)): [Money](dw.value.Money.md)
1374
- - : Returns the adjusted merchandize total price including order-level adjustments if requested. If the line item
1375
- container is based on net pricing the adjusted merchandize total net price is returned. If the line item
1376
- container is based on gross pricing the adjusted merchandize total gross price is returned.
1377
-
1378
-
1379
- **Parameters:**
1380
- - applyOrderLevelAdjustments - controls if order-level price adjustements are applied. If true, the price that is returned includes order-level price adjustments. If false, only product-level price adjustments are applied.
1381
-
1382
- **Returns:**
1383
- - a price representing the adjusted merchandize total controlled by the applyOrderLevelAdjustments
1384
- parameter.
1385
-
1386
-
1387
-
1388
- ---
1389
-
1390
- ### getAdjustedMerchandizeTotalTax()
1391
- - getAdjustedMerchandizeTotalTax(): [Money](dw.value.Money.md)
1392
- - : Returns the subtotal tax in purchase currency. Adjusted merchandize prices represent the sum of product prices
1393
- before services such as shipping have been added, but after adjustment from promotions have been added.
1394
-
1395
-
1396
- **Returns:**
1397
- - the subtotal tax in purchase currency.
1398
-
1399
-
1400
- ---
1401
-
1402
- ### getAdjustedShippingTotalGrossPrice()
1403
- - getAdjustedShippingTotalGrossPrice(): [Money](dw.value.Money.md)
1404
- - : Returns the adjusted sum of all shipping line items of the line item container, including tax after shipping
1405
- adjustments have been applied.
1406
-
1407
-
1408
- **Returns:**
1409
- - the adjusted sum of all shipping line items of the line item container, including tax after shipping
1410
- adjustments have been applied.
1411
-
1412
-
1413
-
1414
- ---
1415
-
1416
- ### getAdjustedShippingTotalNetPrice()
1417
- - getAdjustedShippingTotalNetPrice(): [Money](dw.value.Money.md)
1418
- - : Returns the sum of all shipping line items of the line item container, excluding tax after shipping adjustments
1419
- have been applied.
1420
-
1421
-
1422
- **Returns:**
1423
- - the sum of all shipping line items of the line item container, excluding tax after shipping adjustments
1424
- have been applied.
1425
-
1426
-
1427
-
1428
- ---
1429
-
1430
- ### getAdjustedShippingTotalPrice()
1431
- - getAdjustedShippingTotalPrice(): [Money](dw.value.Money.md)
1432
- - : Returns the adjusted shipping total price. If the line item container is based on net pricing the adjusted
1433
- shipping total net price is returned. If the line item container is based on gross pricing the adjusted shipping
1434
- total gross price is returned.
1435
-
1436
-
1437
- **Returns:**
1438
- - either the adjusted shipping total net or gross price
1439
-
1440
-
1441
- ---
1442
-
1443
- ### getAdjustedShippingTotalTax()
1444
- - getAdjustedShippingTotalTax(): [Money](dw.value.Money.md)
1445
- - : Returns the tax of all shipping line items of the line item container after shipping adjustments have been
1446
- applied.
1447
-
1448
-
1449
- **Returns:**
1450
- - the tax of all shipping line items of the line item container after shipping adjustments have been
1451
- applied.
1452
-
1453
-
1454
-
1455
- ---
1456
-
1457
- ### getAllGiftCertificateLineItems()
1458
- - ~~getAllGiftCertificateLineItems(): [Collection](dw.util.Collection.md)~~
1459
- - : Returns all gift certificate line items of the container.
1460
-
1461
- **Returns:**
1462
- - A collection of all GiftCertificateLineItems of the container.
1463
-
1464
- **Deprecated:**
1465
- :::warning
1466
- Use [getGiftCertificateLineItems()](dw.order.LineItemCtnr.md#getgiftcertificatelineitems) to get the collection instead.
1467
- :::
1468
-
1469
- ---
1470
-
1471
- ### getAllLineItems()
1472
- - getAllLineItems(): [Collection](dw.util.Collection.md)
1473
- - : Returns all product, shipping, price adjustment, and gift certificate line items of the line item container.
1474
-
1475
- **Returns:**
1476
- - A collection of all product, shipping, price adjustment, and gift certificate line items of the
1477
- container, in that order.
1478
-
1479
-
1480
-
1481
- ---
1482
-
1483
- ### getAllProductLineItems()
1484
- - getAllProductLineItems(): [Collection](dw.util.Collection.md)
1485
- - : Returns all product line items of the container, no matter if they are dependent or independent. This includes
1486
- option, bundled and bonus line items.
1487
-
1488
-
1489
- **Returns:**
1490
- - An unsorted collection of all ProductLineItem instances of the container.
1491
-
1492
-
1493
- ---
1494
-
1495
- ### getAllProductLineItems(String)
1496
- - getAllProductLineItems(productID: [String](TopLevel.String.md)): [Collection](dw.util.Collection.md)
1497
- - : Returns all product line items of the container that have a product ID equal to the specified product ID, no
1498
- matter if they are dependent or independent. This includes option, bundled and bonus line items.
1499
-
1500
-
1501
- **Parameters:**
1502
- - productID - The product ID used to filter the product line items.
1503
-
1504
- **Returns:**
1505
- - An unsorted collection of all ProductLineItem instances which have the specified product ID.
1506
-
1507
-
1508
- ---
1509
-
1510
- ### getAllProductQuantities()
1511
- - getAllProductQuantities(): [HashMap](dw.util.HashMap.md)
1512
- - : Returns a hash mapping all products in the line item container to their total quantities. The total product
1513
- quantity is used chiefly to validate the availability of the items in the cart. This method is not appropriate to
1514
- look up prices because it returns products such as bundled line items which are included in the price of their
1515
- parent and therefore have no corresponding price.
1516
-
1517
-
1518
- The method counts all direct product line items, plus dependent product line items that are not option line
1519
- items. It also excludes product line items that are not associated to any catalog product.
1520
-
1521
-
1522
- **Returns:**
1523
- - A map of products and their total quantities.
1524
-
1525
-
1526
- ---
1527
-
1528
- ### getAllShippingPriceAdjustments()
1529
- - getAllShippingPriceAdjustments(): [Collection](dw.util.Collection.md)
1530
- - : Returns the collection of all shipping price adjustments applied somewhere in the container. This can be
1531
- adjustments applied to individual shipments or to the container itself. Note that the promotions engine only
1532
- applies shipping price adjustments to the the default shipping line item of shipments, and never to the
1533
- container.
1534
-
1535
-
1536
- **Returns:**
1537
- - an unsorted collection of the shipping PriceAdjustment instances associated with this container.
1538
-
1539
- **See Also:**
1540
- - [getShippingPriceAdjustments()](dw.order.LineItemCtnr.md#getshippingpriceadjustments)
1541
-
1542
-
1543
- ---
1544
-
1545
- ### getBillingAddress()
1546
- - getBillingAddress(): [OrderAddress](dw.order.OrderAddress.md)
1547
- - : Returns the billing address defined for the container. Returns null if no billing address has been created yet.
1548
-
1549
- **Returns:**
1550
- - the billing address or null.
1551
-
1552
-
1553
- ---
1554
-
1555
- ### getBonusDiscountLineItems()
1556
- - getBonusDiscountLineItems(): [Collection](dw.util.Collection.md)
1557
- - : Returns an unsorted collection of the the bonus discount line items associated with this container.
1558
-
1559
- **Returns:**
1560
- - An unsorted collection of BonusDiscountLine instances in the container.
1561
-
1562
-
1563
- ---
1564
-
1565
- ### getBonusLineItems()
1566
- - getBonusLineItems(): [Collection](dw.util.Collection.md)
1567
- - : Returns the collection of product line items that are bonus items (where
1568
- [ProductLineItem.isBonusProductLineItem()](dw.order.ProductLineItem.md#isbonusproductlineitem) is true).
1569
-
1570
-
1571
- **Returns:**
1572
- - the collection of product line items that are bonus items.
1573
-
1574
-
1575
- ---
1576
-
1577
- ### getBusinessType()
1578
- - getBusinessType(): [EnumValue](dw.value.EnumValue.md)
1579
- - : Returns the type of the business this order has been placed in.
1580
-
1581
- Possible values are [BUSINESS_TYPE_B2C](dw.order.LineItemCtnr.md#business_type_b2c) or [BUSINESS_TYPE_B2B](dw.order.LineItemCtnr.md#business_type_b2b).
1582
-
1583
-
1584
- **Returns:**
1585
- - the type of the business this order has been placed in. or null, if the business type is not set
1586
-
1587
-
1588
- ---
1589
-
1590
- ### getChannelType()
1591
- - getChannelType(): [EnumValue](dw.value.EnumValue.md)
1592
- - : The channel type defines in which sales channel this order has been created. This can be used to distinguish
1593
- order placed through Storefront, Call Center or Marketplace.
1594
-
1595
- Possible values are [CHANNEL_TYPE_STOREFRONT](dw.order.LineItemCtnr.md#channel_type_storefront), [CHANNEL_TYPE_CALLCENTER](dw.order.LineItemCtnr.md#channel_type_callcenter),
1596
- [CHANNEL_TYPE_MARKETPLACE](dw.order.LineItemCtnr.md#channel_type_marketplace), [CHANNEL_TYPE_DSS](dw.order.LineItemCtnr.md#channel_type_dss), [CHANNEL_TYPE_STORE](dw.order.LineItemCtnr.md#channel_type_store),
1597
- [CHANNEL_TYPE_PINTEREST](dw.order.LineItemCtnr.md#channel_type_pinterest), [CHANNEL_TYPE_TWITTER](dw.order.LineItemCtnr.md#channel_type_twitter), [CHANNEL_TYPE_FACEBOOKADS](dw.order.LineItemCtnr.md#channel_type_facebookads),
1598
- [CHANNEL_TYPE_SUBSCRIPTIONS](dw.order.LineItemCtnr.md#channel_type_subscriptions), [CHANNEL_TYPE_ONLINERESERVATION](dw.order.LineItemCtnr.md#channel_type_onlinereservation),
1599
- [CHANNEL_TYPE_CUSTOMERSERVICECENTER](dw.order.LineItemCtnr.md#channel_type_customerservicecenter), [CHANNEL_TYPE_INSTAGRAMCOMMERCE](dw.order.LineItemCtnr.md#channel_type_instagramcommerce),
1600
- [CHANNEL_TYPE_GOOGLE](dw.order.LineItemCtnr.md#channel_type_google), [CHANNEL_TYPE_YOUTUBE](dw.order.LineItemCtnr.md#channel_type_youtube), [CHANNEL_TYPE_TIKTOK](dw.order.LineItemCtnr.md#channel_type_tiktok),
1601
- [CHANNEL_TYPE_SNAPCHAT](dw.order.LineItemCtnr.md#channel_type_snapchat), [CHANNEL_TYPE_WHATSAPP](dw.order.LineItemCtnr.md#channel_type_whatsapp), [CHANNEL_TYPE_CHATGPT](dw.order.LineItemCtnr.md#channel_type_chatgpt),
1602
- [CHANNEL_TYPE_GEMINI](dw.order.LineItemCtnr.md#channel_type_gemini)
1603
-
1604
-
1605
- **Returns:**
1606
- - the sales channel this order has been placed in or null, if the order channel is not set
1607
-
1608
-
1609
- ---
1610
-
1611
- ### getCouponLineItem(String)
1612
- - getCouponLineItem(couponCode: [String](TopLevel.String.md)): [CouponLineItem](dw.order.CouponLineItem.md)
1613
- - : Returns the coupon line item representing the specified coupon code.
1614
-
1615
- **Parameters:**
1616
- - couponCode - the coupon code.
1617
-
1618
- **Returns:**
1619
- - coupon line item or null.
1620
-
1621
-
1622
- ---
1623
-
1624
- ### getCouponLineItems()
1625
- - getCouponLineItems(): [Collection](dw.util.Collection.md)
1626
- - : Returns a sorted collection of the coupon line items in the container. The coupon line items are returned in the
1627
- order they were added to container.
1628
-
1629
-
1630
- **Returns:**
1631
- - A sorted list of the CouponLineItem instances in the container.
1632
-
1633
-
1634
- ---
1635
-
1636
- ### getCurrencyCode()
1637
- - getCurrencyCode(): [String](TopLevel.String.md)
1638
- - : Returns the currency code for this line item container. The currency code is a 3-character currency mnemonic such
1639
- as 'USD' or 'EUR'. The currency code represents the currency in which the calculation is made, and in which the
1640
- buyer sees all prices in the store front.
1641
-
1642
-
1643
- **Returns:**
1644
- - the currency code for this line item container.
1645
-
1646
-
1647
- ---
1648
-
1649
- ### getCustomer()
1650
- - getCustomer(): [Customer](dw.customer.Customer.md)
1651
- - : Returns the customer associated with this container.
1652
-
1653
- **Returns:**
1654
- - the customer associated with this container.
1655
-
1656
-
1657
- ---
1658
-
1659
- ### getCustomerEmail()
1660
- - getCustomerEmail(): [String](TopLevel.String.md)
1661
- - : Returns the email of the customer associated with this container.
1662
-
1663
- **Returns:**
1664
- - the email of the customer associated with this container.
1665
-
1666
-
1667
- ---
1668
-
1669
- ### getCustomerName()
1670
- - getCustomerName(): [String](TopLevel.String.md)
1671
- - : Returns the name of the customer associated with this container.
1672
-
1673
- **Returns:**
1674
- - the name of the customer associated with this container.
1675
-
1676
-
1677
- ---
1678
-
1679
- ### getCustomerNo()
1680
- - getCustomerNo(): [String](TopLevel.String.md)
1681
- - : Returns the customer number of the customer associated with this container.
1682
-
1683
- **Returns:**
1684
- - the customer number of the customer associated with this container.
1685
-
1686
-
1687
- ---
1688
-
1689
- ### getDefaultShipment()
1690
- - getDefaultShipment(): [Shipment](dw.order.Shipment.md)
1691
- - : Returns the default shipment of the line item container. Baskets always have a default shipment with ID "me".
1692
- For orders, this can differ, for example: [OrderMgr.createOrder(Basket)](dw.order.OrderMgr.md#createorderbasket) removes empty
1693
- shipments, so if the basket's "me" shipment was empty at order creation, the order has no "me" shipment. In
1694
- that case, the shipment with the lowest ID is returned as the fallback, or `null` if the order has
1695
- no shipments. See [Shipment.isDefault()](dw.order.Shipment.md#isdefault) for the matching logic.
1696
-
1697
-
1698
- Processes that access a shipment use the default shipment when none is specified. The default shipment can't be
1699
- removed. Calling [removeShipment(Shipment)](dw.order.LineItemCtnr.md#removeshipmentshipment) on it throws an exception.
1700
-
1701
-
1702
- **Returns:**
1703
- - the default shipment of the container, or `null` if the order has no shipments
1704
-
1705
-
1706
- ---
1707
-
1708
- ### getEtag()
1709
- - getEtag(): [String](TopLevel.String.md)
1710
- - : Returns the Etag of the line item container. The Etag is a hash that represents the overall container state
1711
- including any associated objects like line items.
1712
-
1713
-
1714
- **Returns:**
1715
- - the Etag value
1716
-
1717
-
1718
- ---
1719
-
1720
- ### getGiftCertificateLineItems()
1721
- - getGiftCertificateLineItems(): [Collection](dw.util.Collection.md)
1722
- - : Returns all gift certificate line items of the container.
1723
-
1724
- **Returns:**
1725
- - A collection of all GiftCertificateLineItems of the container.
1726
-
1727
-
1728
- ---
1729
-
1730
- ### getGiftCertificateLineItems(String)
1731
- - getGiftCertificateLineItems(giftCertificateId: [String](TopLevel.String.md)): [Collection](dw.util.Collection.md)
1732
- - : Returns all gift certificate line items of the container, no matter if they are dependent or independent.
1733
-
1734
- **Parameters:**
1735
- - giftCertificateId - the gift certificate identifier.
1736
-
1737
- **Returns:**
1738
- - A collection of all GiftCertificateLineItems of the container.
1739
-
1740
-
1741
- ---
1742
-
1743
- ### getGiftCertificatePaymentInstruments()
1744
- - getGiftCertificatePaymentInstruments(): [Collection](dw.util.Collection.md)
1745
- - : Returns an unsorted collection of the PaymentInstrument instances that represent GiftCertificates in this
1746
- container.
1747
-
1748
-
1749
- **Returns:**
1750
- - an unsorted collection containing the set of PaymentInstrument instances that represent GiftCertificates.
1751
-
1752
-
1753
- ---
1754
-
1755
- ### getGiftCertificatePaymentInstruments(String)
1756
- - getGiftCertificatePaymentInstruments(giftCertificateCode: [String](TopLevel.String.md)): [Collection](dw.util.Collection.md)
1757
- - : Returns an unsorted collection containing all PaymentInstruments of type
1758
- PaymentInstrument.METHOD\_GIFT\_CERTIFICATE where the specified code is the same code on the payment instrument.
1759
-
1760
-
1761
- **Parameters:**
1762
- - giftCertificateCode - the gift certificate code.
1763
-
1764
- **Returns:**
1765
- - an unsorted collection containing all PaymentInstruments of type
1766
- PaymentInstrument.METHOD\_GIFT\_CERTIFICATE where the specified code is the same code on the payment
1767
- instrument.
1768
-
1769
-
1770
-
1771
- ---
1772
-
1773
- ### getGiftCertificateTotalGrossPrice()
1774
- - getGiftCertificateTotalGrossPrice(): [Money](dw.value.Money.md)
1775
- - : Returns the total gross price of all gift certificates in the cart. Should usually be equal to total net price.
1776
-
1777
- **Returns:**
1778
- - the total gross price of all gift certificate line items
1779
-
1780
-
1781
- ---
1782
-
1783
- ### getGiftCertificateTotalNetPrice()
1784
- - getGiftCertificateTotalNetPrice(): [Money](dw.value.Money.md)
1785
- - : Returns the total net price (excluding tax) of all gift certificates in the cart. Should usually be equal to
1786
- total gross price.
1787
-
1788
-
1789
- **Returns:**
1790
- - the total net price of all gift certificate line items
1791
-
1792
-
1793
- ---
1794
-
1795
- ### getGiftCertificateTotalPrice()
1796
- - getGiftCertificateTotalPrice(): [Money](dw.value.Money.md)
1797
- - : Returns the gift certificate total price. If the line item container is based on net pricing the gift certificate
1798
- total net price is returned. If the line item container is based on gross pricing the gift certificate total
1799
- gross price is returned.
1800
-
1801
-
1802
- **Returns:**
1803
- - either the gift certificate total net or gross price
1804
-
1805
-
1806
- ---
1807
-
1808
- ### getGiftCertificateTotalTax()
1809
- - getGiftCertificateTotalTax(): [Money](dw.value.Money.md)
1810
- - : Returns the total tax of all gift certificates in the cart. Should usually be 0.0.
1811
-
1812
- **Returns:**
1813
- - the total tax of all gift certificate line items
1814
-
1815
-
1816
- ---
1817
-
1818
- ### getMerchandizeTotalGrossPrice()
1819
- - getMerchandizeTotalGrossPrice(): [Money](dw.value.Money.md)
1820
- - : Returns the total gross price (including tax) in purchase currency. Merchandize total prices represent the sum of
1821
- product prices before services such as shipping or adjustment from promotions have been added.
1822
-
1823
-
1824
- **Returns:**
1825
- - the total gross price (including tax) in purchase currency.
1826
-
1827
-
1828
- ---
1829
-
1830
- ### getMerchandizeTotalNetPrice()
1831
- - getMerchandizeTotalNetPrice(): [Money](dw.value.Money.md)
1832
- - : Returns the total net price (excluding tax) in purchase currency. Merchandize total prices represent the sum of
1833
- product prices before services such as shipping or adjustment from promotion have been added.
1834
-
1835
-
1836
- **Returns:**
1837
- - the total net price (excluding tax) in purchase currency.
1838
-
1839
-
1840
- ---
1841
-
1842
- ### getMerchandizeTotalPrice()
1843
- - getMerchandizeTotalPrice(): [Money](dw.value.Money.md)
1844
- - : Returns the merchandize total price. If the line item container is based on net pricing the merchandize total net
1845
- price is returned. If the line item container is based on gross pricing the merchandize total gross price is
1846
- returned.
1847
-
1848
-
1849
- **Returns:**
1850
- - either the merchandize total net or gross price
1851
-
1852
-
1853
- ---
1854
-
1855
- ### getMerchandizeTotalTax()
1856
- - getMerchandizeTotalTax(): [Money](dw.value.Money.md)
1857
- - : Returns the total tax in purchase currency. Merchandize total prices represent the sum of product prices before
1858
- services such as shipping or adjustment from promotions have been added.
1859
-
1860
-
1861
- **Returns:**
1862
- - the total tax in purchase currency.
1863
-
1864
-
1865
- ---
1866
-
1867
- ### getNotes()
1868
- - getNotes(): [List](dw.util.List.md)
1869
- - : Returns the list of notes for this object, ordered by creation time from oldest to newest.
1870
-
1871
- **Returns:**
1872
- - the list of notes for this object, ordered by creation time from oldest to newest.
1873
-
1874
-
1875
- ---
1876
-
1877
- ### getPaymentInstrument()
1878
- - ~~getPaymentInstrument(): [OrderPaymentInstrument](dw.order.OrderPaymentInstrument.md)~~
1879
- - : Returns the payment instrument of the line item container or null. This method is deprecated. You should use
1880
- getPaymentInstruments() or getGiftCertificatePaymentInstruments() instead.
1881
-
1882
-
1883
- **Returns:**
1884
- - the order payment instrument of the line item container or null.
1885
-
1886
- **Deprecated:**
1887
- :::warning
1888
- Use [getPaymentInstruments()](dw.order.LineItemCtnr.md#getpaymentinstruments) or [getGiftCertificatePaymentInstruments()](dw.order.LineItemCtnr.md#getgiftcertificatepaymentinstruments) to get the
1889
- set of payment instruments.
1890
-
1891
- :::
1892
-
1893
- ---
1894
-
1895
- ### getPaymentInstruments()
1896
- - getPaymentInstruments(): [Collection](dw.util.Collection.md)
1897
- - : Returns an unsorted collection of the payment instruments in this container.
1898
-
1899
- **Returns:**
1900
- - an unsorted collection containing the set of PaymentInstrument instances associated with this container.
1901
-
1902
-
1903
- ---
1904
-
1905
- ### getPaymentInstruments(String)
1906
- - getPaymentInstruments(paymentMethodID: [String](TopLevel.String.md)): [Collection](dw.util.Collection.md)
1907
- - : Returns an unsorted collection of PaymentInstrument instances based on the specified payment method ID.
1908
-
1909
- **Parameters:**
1910
- - paymentMethodID - the ID of the payment method used.
1911
-
1912
- **Returns:**
1913
- - an unsorted collection of OrderPaymentInstrument instances based on the payment method.
1914
-
1915
-
1916
- ---
1917
-
1918
- ### getPriceAdjustmentByPromotionID(String)
1919
- - getPriceAdjustmentByPromotionID(promotionID: [String](TopLevel.String.md)): [PriceAdjustment](dw.order.PriceAdjustment.md)
1920
- - : Returns the price adjustment associated to the specified promotion ID.
1921
-
1922
- **Parameters:**
1923
- - promotionID - Promotion id
1924
-
1925
- **Returns:**
1926
- - The price adjustment associated with the specified promotion ID or null if none was found.
1927
-
1928
-
1929
- ---
1930
-
1931
- ### getPriceAdjustments()
1932
- - getPriceAdjustments(): [Collection](dw.util.Collection.md)
1933
- - : Returns the collection of price adjustments that have been applied to the totals such as promotion on the
1934
- purchase value (i.e. $10 Off or 10% Off). The price adjustments are sorted by the order in which they were
1935
- applied to the order by the promotions engine.
1936
-
1937
-
1938
- **Returns:**
1939
- - the sorted collection of PriceAdjustment instances.
1940
-
1941
-
1942
- ---
1943
-
1944
- ### getProductLineItems()
1945
- - getProductLineItems(): [Collection](dw.util.Collection.md)
1946
- - : Returns the product line items of the container that are not dependent on other product line items. This includes
1947
- line items representing bonus products in the container but excludes option, bundled, and bonus line items. The
1948
- returned collection is sorted by the position attribute of the product line items.
1949
-
1950
-
1951
- **Returns:**
1952
- - A sorted collection of ProductLineItem instances which are not dependent on other product line items.
1953
-
1954
-
1955
- ---
1956
-
1957
- ### getProductLineItems(String)
1958
- - getProductLineItems(productID: [String](TopLevel.String.md)): [Collection](dw.util.Collection.md)
1959
- - : Returns the product line items of the container that have a product ID equal to the specified product ID and that
1960
- are not dependent on other product line items. This includes line items representing bonus products in the
1961
- container, but excludes option, bundled and bonus line items. The returned collection is sorted by the position
1962
- attribute of the product line items.
1963
-
1964
-
1965
- **Parameters:**
1966
- - productID - The Product ID used to filter the product line items.
1967
-
1968
- **Returns:**
1969
- - A sorted collection of ProductLineItem instances which have the specified product ID and are not
1970
- dependent on other product line items.
1971
-
1972
-
1973
-
1974
- ---
1975
-
1976
- ### getProductQuantities()
1977
- - getProductQuantities(): [HashMap](dw.util.HashMap.md)
1978
- - : Returns a hash map of all products in the line item container and their total quantities. The total product
1979
- quantity is for example used to lookup the product price.
1980
-
1981
-
1982
- The method counts all direct product line items, plus dependent product line items that are not bundled line
1983
- items and no option line items. It also excludes product line items that are not associated to any catalog
1984
- product, and bonus product line items.
1985
-
1986
-
1987
- **Returns:**
1988
- - a map of products and their total quantities.
1989
-
1990
- **See Also:**
1991
- - [getProductQuantities(Boolean)](dw.order.LineItemCtnr.md#getproductquantitiesboolean)
1992
-
1993
-
1994
- ---
1995
-
1996
- ### getProductQuantities(Boolean)
1997
- - getProductQuantities(includeBonusProducts: [Boolean](TopLevel.Boolean.md)): [HashMap](dw.util.HashMap.md)
1998
- - : Returns a hash map of all products in the line item container and their total quantities. The total product
1999
- quantity is for example used to lookup the product price in the cart.
2000
-
2001
-
2002
- The method counts all direct product line items, plus dependent product line items that are not bundled line
2003
- items and no option line items. It also excludes product line items that are not associated to any catalog
2004
- product.
2005
-
2006
-
2007
- If the parameter 'includeBonusProducts' is set to true, the method also counts bonus product line items.
2008
-
2009
-
2010
- **Parameters:**
2011
- - includeBonusProducts - if true also bonus product line item are counted
2012
-
2013
- **Returns:**
2014
- - A map of products and their total quantities.
2015
-
2016
-
2017
- ---
2018
-
2019
- ### getProductQuantityTotal()
2020
- - getProductQuantityTotal(): [Number](TopLevel.Number.md)
2021
- - : Returns the total quantity of all product line items. Not included are bundled line items and option line items.
2022
-
2023
- **Returns:**
2024
- - The total quantity of all line items of the container.
2025
-
2026
-
2027
- ---
2028
-
2029
- ### getShipment(String)
2030
- - getShipment(id: [String](TopLevel.String.md)): [Shipment](dw.order.Shipment.md)
2031
- - : Returns the shipment for the specified ID or `null` if no shipment with this ID exists in the line
2032
- item container. Using "me" always returns the default shipment.
2033
-
2034
-
2035
- **Parameters:**
2036
- - id - the shipment identifier
2037
-
2038
- **Returns:**
2039
- - the shipment or `null`
2040
-
2041
-
2042
- ---
2043
-
2044
- ### getShipments()
2045
- - getShipments(): [Collection](dw.util.Collection.md)
2046
- - : Returns all shipments of the line item container.
2047
-
2048
- The first shipment in the returned collection is the default shipment (shipment ID always set to "me"). All other
2049
- shipments are sorted ascending by shipment ID.
2050
-
2051
-
2052
- **Returns:**
2053
- - all shipments of the line item container
2054
-
2055
-
2056
- ---
2057
-
2058
- ### getShippingPriceAdjustmentByPromotionID(String)
2059
- - getShippingPriceAdjustmentByPromotionID(promotionID: [String](TopLevel.String.md)): [PriceAdjustment](dw.order.PriceAdjustment.md)
2060
- - : Returns the shipping price adjustment associated with the specified promotion ID.
2061
-
2062
- **Parameters:**
2063
- - promotionID - Promotion id
2064
-
2065
- **Returns:**
2066
- - The price adjustment associated with the specified promotion ID or null if none was found.
2067
-
2068
-
2069
- ---
2070
-
2071
- ### getShippingPriceAdjustments()
2072
- - getShippingPriceAdjustments(): [Collection](dw.util.Collection.md)
2073
- - : Returns the of shipping price adjustments applied to the shipping total of the container. Note that the
2074
- promotions engine only applies shipping price adjustments to the the default shipping line item of shipments, and
2075
- never to the container.
2076
-
2077
-
2078
- **Returns:**
2079
- - a collection of shipping price adjustments.
2080
-
2081
- **See Also:**
2082
- - [getAllShippingPriceAdjustments()](dw.order.LineItemCtnr.md#getallshippingpriceadjustments)
2083
-
2084
-
2085
- ---
2086
-
2087
- ### getShippingTotalGrossPrice()
2088
- - getShippingTotalGrossPrice(): [Money](dw.value.Money.md)
2089
- - : Returns the sum of all shipping line items of the line item container, including tax before shipping adjustments
2090
- have been applied.
2091
-
2092
-
2093
- **Returns:**
2094
- - the sum of all shipping line items of the line item container, including tax before shipping adjustments
2095
- have been applied.
2096
-
2097
-
2098
-
2099
- ---
2100
-
2101
- ### getShippingTotalNetPrice()
2102
- - getShippingTotalNetPrice(): [Money](dw.value.Money.md)
2103
- - : Returns the sum of all shipping line items of the line item container, excluding tax before shipping adjustments
2104
- have been applied.
2105
-
2106
-
2107
- **Returns:**
2108
- - the sum of all shipping line items of the line item container, excluding tax before shipping adjustments
2109
- have been applied.
2110
-
2111
-
2112
-
2113
- ---
2114
-
2115
- ### getShippingTotalPrice()
2116
- - getShippingTotalPrice(): [Money](dw.value.Money.md)
2117
- - : Returns the shipping total price. If the line item container is based on net pricing the shipping total net price
2118
- is returned. If the line item container is based on gross pricing the shipping total gross price is returned.
2119
-
2120
-
2121
- **Returns:**
2122
- - either the shipping total net or gross price
2123
-
2124
-
2125
- ---
2126
-
2127
- ### getShippingTotalTax()
2128
- - getShippingTotalTax(): [Money](dw.value.Money.md)
2129
- - : Returns the tax of all shipping line items of the line item container before shipping adjustments have been
2130
- applied.
2131
-
2132
-
2133
- **Returns:**
2134
- - the tax of all shipping line items of the line item container before shipping adjustments have been
2135
- applied.
2136
-
2137
-
2138
-
2139
- ---
2140
-
2141
- ### getTaxTotalsPerTaxRate()
2142
- - getTaxTotalsPerTaxRate(): [SortedMap](dw.util.SortedMap.md)
2143
- - : This method returns a [SortedMap](dw.util.SortedMap.md) in which the keys are [Decimal](dw.util.Decimal.md) tax rates and the values
2144
- are [Money](dw.value.Money.md) total tax for the tax rate. The map is unmodifiable.
2145
-
2146
-
2147
- **Returns:**
2148
- - sorted map of tax rate against total tax
2149
-
2150
-
2151
- ---
2152
-
2153
- ### getTotalGrossPrice()
2154
- - getTotalGrossPrice(): [Money](dw.value.Money.md)
2155
- - : Returns the grand total price gross of tax for LineItemCtnr, in purchase currency. Total prices represent the sum
2156
- of product prices, services prices and adjustments.
2157
-
2158
-
2159
- **Returns:**
2160
- - the grand total price.
2161
-
2162
-
2163
- ---
2164
-
2165
- ### getTotalNetPrice()
2166
- - getTotalNetPrice(): [Money](dw.value.Money.md)
2167
- - : Returns the grand total price for LineItemCtnr net of tax, in purchase currency. Total prices represent the sum
2168
- of product prices, services prices and adjustments.
2169
-
2170
-
2171
- **Returns:**
2172
- - the grand total price.
2173
-
2174
-
2175
- ---
2176
-
2177
- ### getTotalTax()
2178
- - getTotalTax(): [Money](dw.value.Money.md)
2179
- - : Returns the grand total tax for LineItemCtnr, in purchase currency. Total prices represent the sum of product
2180
- prices, services prices and adjustments.
2181
-
2182
-
2183
- **Returns:**
2184
- - the grand total tax.
2185
-
2186
-
2187
- ---
2188
-
2189
- ### isExternallyTaxed()
2190
- - isExternallyTaxed(): [Boolean](TopLevel.Boolean.md)
2191
- - : Use this method to check whether the LineItemCtnr is calculated based on external tax tables.
2192
-
2193
- Note: a basket can only be created in EXTERNAL tax mode using SCAPI.
2194
-
2195
-
2196
- **Returns:**
2197
- - `true` if the LineItemCtnr was calculated based on external tax tables.
2198
-
2199
-
2200
- ---
2201
-
2202
- ### isTaxRoundedAtGroup()
2203
- - isTaxRoundedAtGroup(): [Boolean](TopLevel.Boolean.md)
2204
- - : Use this method to check if the LineItemCtnr was calculated with grouped taxation calculation.
2205
-
2206
-
2207
- If the tax is rounded on group level, the tax is applied to the summed-up tax basis for each tax rate.
2208
-
2209
-
2210
- **Returns:**
2211
- - `true` if the LineItemCtnr was calculated with grouped taxation
2212
-
2213
-
2214
- ---
2215
-
2216
- ### removeAllPaymentInstruments()
2217
- - removeAllPaymentInstruments(): void
2218
- - : Removes the all Payment Instruments from this container and deletes the Payment Instruments.
2219
-
2220
-
2221
- ---
2222
-
2223
- ### removeBonusDiscountLineItem(BonusDiscountLineItem)
2224
- - removeBonusDiscountLineItem(bonusDiscountLineItem: [BonusDiscountLineItem](dw.order.BonusDiscountLineItem.md)): void
2225
- - : Removes the specified bonus discount line item from the line item container.
2226
-
2227
- **Parameters:**
2228
- - bonusDiscountLineItem - The bonus discount line item to remove, must not be null.
2229
-
2230
-
2231
- ---
2232
-
2233
- ### removeCouponLineItem(CouponLineItem)
2234
- - removeCouponLineItem(couponLineItem: [CouponLineItem](dw.order.CouponLineItem.md)): void
2235
- - : Removes the specified coupon line item from the line item container.
2236
-
2237
- **Parameters:**
2238
- - couponLineItem - The coupon line item to remove
2239
-
2240
-
2241
- ---
2242
-
2243
- ### removeGiftCertificateLineItem(GiftCertificateLineItem)
2244
- - removeGiftCertificateLineItem(giftCertificateLineItem: [GiftCertificateLineItem](dw.order.GiftCertificateLineItem.md)): void
2245
- - : Removes the specified gift certificate line item from the line item container.
2246
-
2247
- **Parameters:**
2248
- - giftCertificateLineItem - The gift certificate line item to remove
2249
-
2250
-
2251
- ---
2252
-
2253
- ### removeNote(Note)
2254
- - removeNote(note: [Note](dw.object.Note.md)): void
2255
- - : Removes a note from this line item container and deletes it.
2256
-
2257
- **Parameters:**
2258
- - note - The note to remove. Must not be null. Must belong to this line item container.
2259
-
2260
-
2261
- ---
2262
-
2263
- ### removePaymentInstrument(PaymentInstrument)
2264
- - removePaymentInstrument(pi: [PaymentInstrument](dw.order.PaymentInstrument.md)): void
2265
- - : Removes the specified Payment Instrument from this container and deletes the Payment Instrument.
2266
-
2267
- **Parameters:**
2268
- - pi - the Payment Instrument to remove.
2269
-
2270
-
2271
- ---
2272
-
2273
- ### removePriceAdjustment(PriceAdjustment)
2274
- - removePriceAdjustment(priceAdjustment: [PriceAdjustment](dw.order.PriceAdjustment.md)): void
2275
- - : Removes the specified price adjustment line item from the line item container.
2276
-
2277
- **Parameters:**
2278
- - priceAdjustment - The price adjustment line item to remove, must not be null.
2279
-
2280
-
2281
- ---
2282
-
2283
- ### removeProductLineItem(ProductLineItem)
2284
- - removeProductLineItem(productLineItem: [ProductLineItem](dw.order.ProductLineItem.md)): void
2285
- - : Removes the specified product line item from the line item container.
2286
-
2287
- **Parameters:**
2288
- - productLineItem - The product line item to remove, must not be null.
2289
-
2290
-
2291
- ---
2292
-
2293
- ### removeShipment(Shipment)
2294
- - removeShipment(shipment: [Shipment](dw.order.Shipment.md)): void
2295
- - : Removes the specified shipment and all associated product, gift certificate, shipping and price adjustment line
2296
- items from the line item container. It is not permissible to remove the default shipment.
2297
-
2298
-
2299
- **Parameters:**
2300
- - shipment - Shipment to be removed, must not be null.
2301
-
2302
-
2303
- ---
2304
-
2305
- ### removeShippingPriceAdjustment(PriceAdjustment)
2306
- - removeShippingPriceAdjustment(priceAdjustment: [PriceAdjustment](dw.order.PriceAdjustment.md)): void
2307
- - : Removes the specified shipping price adjustment line item from the line item container.
2308
-
2309
- **Parameters:**
2310
- - priceAdjustment - The price adjustment line item to remove, must not be null.
2311
-
2312
-
2313
- ---
2314
-
2315
- ### setCustomerEmail(String)
2316
- - setCustomerEmail(aValue: [String](TopLevel.String.md)): void
2317
- - : Sets the email address of the customer associated with this container.
2318
-
2319
- **Parameters:**
2320
- - aValue - the email address of the customer associated with this container.
2321
-
2322
-
2323
- ---
2324
-
2325
- ### setCustomerName(String)
2326
- - setCustomerName(aValue: [String](TopLevel.String.md)): void
2327
- - : Sets the name of the customer associated with this container.
2328
-
2329
- **Parameters:**
2330
- - aValue - the name of the customer associated with this container.
2331
-
2332
-
2333
- ---
2334
-
2335
- ### updateOrderLevelPriceAdjustmentTax()
2336
- - updateOrderLevelPriceAdjustmentTax(): void
2337
- - : Calculates the tax for all shipping and order-level merchandise price adjustments in this LineItemCtnr.
2338
-
2339
-
2340
- The tax on each adjustment is calculated from the taxes of the line items the adjustment applies across.
2341
-
2342
-
2343
- **This method must be invoked at the end of tax calculation of a basket or an order.**
2344
-
2345
-
2346
-
2347
- ---
2348
-
2349
- ### updateTotals()
2350
- - updateTotals(): void
2351
- - : Recalculates the totals of the line item container. It is necessary to call this method after any type of
2352
- modification to the basket.
2353
-
2354
-
2355
-
2356
- ---
2357
-
2358
- ### verifyPriceAdjustmentLimits()
2359
- - verifyPriceAdjustmentLimits(): [Status](dw.system.Status.md)
2360
- - : Verifies whether the manual price adjustments made for the line item container exceed the corresponding limits
2361
- for the current user and the current site.
2362
-
2363
-
2364
- The results of this method are based on the current values held in the [LineItemCtnr](dw.order.LineItemCtnr.md), such as the
2365
- base price of manual price adjustments. It is important the method is only called after the calculation process
2366
- has completed.
2367
-
2368
-
2369
-
2370
-
2371
- Status.OK is returned if NONE of the manual price adjustments exceed the correspondent limits.
2372
-
2373
-
2374
- Status.ERROR is returned if ANY of the manual price adjustments exceed the correspondent limits. If this case
2375
- [Status.getItems()](dw.system.Status.md#getitems) returns all price adjustment limit violations. The code of each
2376
- [StatusItem](dw.system.StatusItem.md) represents the violated price adjustment type (see
2377
- [PriceAdjustmentLimitTypes](dw.order.PriceAdjustmentLimitTypes.md)). [StatusItem.getDetails()](dw.system.StatusItem.md#getdetails) returns a
2378
- [Map](dw.util.Map.md) with the max amount and (where relevant) the item to which the violation applies.
2379
-
2380
-
2381
- Usage:
2382
-
2383
-
2384
- ```
2385
- var order : Order; // known
2386
-
2387
- var status : Status = order.verifyPriceAdjustmentLimits();
2388
- if (status.status == Status.ERROR)
2389
- {
2390
- for each (var statusItem : StatusItem in status.items)
2391
- {
2392
- var statusDetail : MapEntry = statusItem.details.entrySet().iterator().next();
2393
- var maxAllowedLimit : Number = (Number) (statusDetail.key);
2394
-
2395
- if (statusItem.code == PriceAdjustmentLimitTypes.TYPE_ORDER)
2396
- {
2397
- // fix order price adjustment considering maxAllowedLimit
2398
- }
2399
- else if (statusItem.code == PriceAdjustmentLimitTypes.TYPE_ITEM)
2400
- {
2401
- var pli : ProductLineItem = (ProductLineItem) (statusDetail.value);
2402
- // fix pli price adjustment considering maxAllowedLimit
2403
- }
2404
- else if (statusItem.code == PriceAdjustmentLimitTypes.TYPE_SHIPPING)
2405
- {
2406
- if (statusDetail.value == null)
2407
- {
2408
- // fix order level shipping price adjustment considering maxAllowedLimit
2409
- }
2410
- else
2411
- {
2412
- var sli : ShippingLineItem = (ShippingLineItem) (statusDetail.value);
2413
- // fix sli price adjustment considering maxAllowedLimit
2414
- }
2415
- }
2416
- }
2417
- }
2418
- ```
2419
-
2420
-
2421
- **Returns:**
2422
- - a Status instance with - Status.OK if all manual price adjustments do not exceed the correspondent
2423
- limits, otherwise Status.ERROR
2424
-
2425
-
2426
-
2427
- ---
2428
-
2429
- <!-- prettier-ignore-end -->