@salesforce/b2c-tooling-sdk 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/content-schemas/regiondefinition.json +1 -0
- package/data/job-steps/CatalogDeltaExport.md +31 -0
- package/data/job-steps/CreateSitemap.md +22 -0
- package/data/job-steps/CustomerListsDeltaExport.md +30 -0
- package/data/job-steps/DownloadActiveDataFromStorage.md +24 -0
- package/data/job-steps/ExecuteCategorizationRules.md +25 -0
- package/data/job-steps/ExecuteDataReplication.md +24 -0
- package/data/job-steps/ExecutePipeline.md +24 -0
- package/data/job-steps/ExecutePreconfiguredCodeReplicationProcess.md +24 -0
- package/data/job-steps/ExecutePreconfiguredDataReplicationProcess.md +24 -0
- package/data/job-steps/ExecuteScriptModule.md +27 -0
- package/data/job-steps/ExportABTests.md +30 -0
- package/data/job-steps/ExportAssignments.md +30 -0
- package/data/job-steps/ExportCatalog.md +37 -0
- package/data/job-steps/ExportContent.md +31 -0
- package/data/job-steps/ExportContentSlots.md +30 -0
- package/data/job-steps/ExportCouponCodes.md +33 -0
- package/data/job-steps/ExportCoupons.md +30 -0
- package/data/job-steps/ExportCustomObjects.md +31 -0
- package/data/job-steps/ExportCustomerGroups.md +30 -0
- package/data/job-steps/ExportCustomerList.md +31 -0
- package/data/job-steps/ExportCustomers.md +30 -0
- package/data/job-steps/ExportFacebookFeed.md +26 -0
- package/data/job-steps/ExportGiftCertificates.md +30 -0
- package/data/job-steps/ExportInventoryLists.md +31 -0
- package/data/job-steps/ExportMetaData.md +32 -0
- package/data/job-steps/ExportOrders.md +42 -0
- package/data/job-steps/ExportPageLocalization.md +34 -0
- package/data/job-steps/ExportPriceBook.md +31 -0
- package/data/job-steps/ExportProductLists.md +34 -0
- package/data/job-steps/ExportPromotions.md +30 -0
- package/data/job-steps/ExportShippingMethods.md +30 -0
- package/data/job-steps/ExportSourceCodeGroups.md +30 -0
- package/data/job-steps/ExportStores.md +31 -0
- package/data/job-steps/ExportTaxTable.md +30 -0
- package/data/job-steps/ImportABTests.md +34 -0
- package/data/job-steps/ImportActiveData.md +33 -0
- package/data/job-steps/ImportAssignments.md +34 -0
- package/data/job-steps/ImportCatalog.md +34 -0
- package/data/job-steps/ImportContent.md +34 -0
- package/data/job-steps/ImportContentSlots.md +34 -0
- package/data/job-steps/ImportCouponCodeRedemptions.md +34 -0
- package/data/job-steps/ImportCoupons.md +34 -0
- package/data/job-steps/ImportCustomObjects.md +34 -0
- package/data/job-steps/ImportCustomerGroups.md +34 -0
- package/data/job-steps/ImportCustomerList.md +34 -0
- package/data/job-steps/ImportCustomerLists.md +34 -0
- package/data/job-steps/ImportCustomers.md +34 -0
- package/data/job-steps/ImportGiftCertificates.md +34 -0
- package/data/job-steps/ImportInventoryLists.md +35 -0
- package/data/job-steps/ImportKeyValueMapping.md +35 -0
- package/data/job-steps/ImportPageLocalization.md +34 -0
- package/data/job-steps/ImportPriceBook.md +34 -0
- package/data/job-steps/ImportProductLists.md +34 -0
- package/data/job-steps/ImportPromotions.md +34 -0
- package/data/job-steps/ImportShippingMethods.md +34 -0
- package/data/job-steps/ImportSiteArchive.md +30 -0
- package/data/job-steps/ImportSourceCodeGroups.md +34 -0
- package/data/job-steps/ImportStores.md +34 -0
- package/data/job-steps/ImportTaxTable.md +34 -0
- package/data/job-steps/IncludeStepsFromJob.md +24 -0
- package/data/job-steps/InvalidateCache.md +26 -0
- package/data/job-steps/LibraryDeltaExport.md +30 -0
- package/data/job-steps/SearchReindex.md +27 -0
- package/data/job-steps/SiteExport.md +32 -0
- package/data/job-steps/UndoPreconfiguredCodeReplicationProcess.md +24 -0
- package/data/job-steps/UndoPreconfiguredDataReplicationProcess.md +24 -0
- package/data/job-steps/UpdateStorefrontURLs.md +22 -0
- package/data/job-steps/UploadActiveDataBackupToStorage.md +22 -0
- package/data/job-steps/UploadActiveDataToStorage.md +24 -0
- package/data/job-steps/index.json +426 -0
- package/data/job-steps/job-steps.json +2910 -0
- package/data/job-steps/job-steps.md +96 -0
- package/data/script-api/TopLevel.APIException.md +1 -1
- package/data/script-api/dw.catalog.CatalogMgr.md +8 -2
- package/data/script-api/dw.crypto.Cipher.md +5 -1
- package/data/script-api/dw.customer.Profile.md +45 -0
- package/data/script-api/dw.customer.consent.ConsentStatusEntry.md +92 -0
- package/data/script-api/dw.customer.consent.MarketingConsentSubscription.md +247 -0
- package/data/script-api/dw.customer.consent.ShopperConsentErrorCodes.md +74 -0
- package/data/script-api/dw.customer.consent.ShopperConsentException.md +63 -0
- package/data/script-api/dw.customer.consent.ShopperConsentMgr.md +152 -0
- package/data/script-api/dw.customer.consent.md +10 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsHooks.md +24 -0
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsSiteConfiguration.md +76 -0
- package/data/script-api/dw.object.CustomAttributes.md +72 -29
- package/data/script-api/dw.object.md +1 -1
- package/data/script-api/dw.order.Basket.md +3 -2
- package/data/script-api/dw.order.GiftCertificateLineItem.md +1 -1
- package/data/script-api/dw.order.LineItem.md +88 -0
- package/data/script-api/dw.order.LineItemCtnr.md +41 -11
- package/data/script-api/dw.order.LineItemTax.md +142 -0
- package/data/script-api/dw.order.OrderMgr.md +8 -0
- package/data/script-api/dw.order.PriceAdjustment.md +1 -1
- package/data/script-api/dw.order.ProductLineItem.md +1 -1
- package/data/script-api/dw.order.ProductShippingLineItem.md +1 -1
- package/data/script-api/dw.order.Shipment.md +12 -4
- package/data/script-api/dw.order.ShippingLineItem.md +1 -1
- package/data/script-api/dw.order.TaxMgr.md +54 -0
- package/data/script-api/dw.order.hooks.TaxHooks.md +495 -0
- package/data/script-api/dw.order.hooks.md +1 -0
- package/data/script-api/dw.order.md +1 -0
- package/data/script-api/dw.sitemap.SitemapFile.md +1 -1
- package/data/script-api/dw.sitemap.SitemapMgr.md +23 -0
- package/data/script-api/dw.system.Request.md +0 -1
- package/data/script-api/dw.util.Assert.md +29 -0
- package/data/script-api/dw.util.Locale.md +5 -2
- package/data/script-api/dw.web.Cookie.md +0 -6
- package/data/script-api/dw.web.PageMetaTag.md +25 -1
- package/data/script-api/dw.ws.WSUtil.md +2 -2
- package/data/script-api/index.json +49 -2
- package/data/script-api/index.md +2 -1
- package/data/xsd/commercefeaturestate.xsd +1 -0
- package/data/xsd/customer.xsd +11 -0
- package/data/xsd/eventrouting.xsd +257 -0
- package/data/xsd/index.json +6 -2
- package/data/xsd/order.xsd +53 -0
- package/data/xsd/store.xsd +8 -0
- package/data/xsd/storefronts.xsd +57 -1
- package/dist/esm/docs/search.d.ts +6 -3
- package/dist/esm/docs/search.js +39 -8
- package/dist/esm/docs/search.js.map +1 -1
- package/dist/esm/docs/types.d.ts +1 -0
- package/dist/esm/docs/types.js +1 -0
- package/dist/esm/docs/types.js.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<!-- prettier-ignore-start -->
|
|
2
|
+
# Standard Job Step Catalog
|
|
3
|
+
|
|
4
|
+
Catalog of built-in (standard / system) job step **type IDs** that the B2C Commerce platform ships for use in Business Manager job flows and `jobs.xml` site-import flows. Each step below has its own page with purpose and configuration parameters — read it with `b2c docs read <TypeID>` (for example `b2c docs read ImportCatalog`).
|
|
5
|
+
|
|
6
|
+
These are the standard counterparts to authoring your own steps (see the `b2c:b2c-custom-job-steps` skill) and to the CLI import/export commands (see the `b2c-cli:b2c-job` skill).
|
|
7
|
+
|
|
8
|
+
## Import Steps
|
|
9
|
+
|
|
10
|
+
| Type ID | Scope | Purpose |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| `ImportABTests` | Site | Imports A/B tests. |
|
|
13
|
+
| `ImportActiveData` | Site | Imports active data from the provided CSV files. |
|
|
14
|
+
| `ImportAssignments` | Organization | Imports assignments |
|
|
15
|
+
| `ImportCatalog` | Organization | Imports catalog data. |
|
|
16
|
+
| `ImportContent` | Site | Imports content. If no library-id is specified in the import file, the data is imported into the private library of the... |
|
|
17
|
+
| `ImportContentSlots` | Site | Imports content slot configurations in the specified mode. |
|
|
18
|
+
| `ImportCouponCodeRedemptions` | Site | Imports the coupon code redemptions based on the couponredemption.xsd. Note: Coupon redemptions are evaluated during... |
|
|
19
|
+
| `ImportCoupons` | Site | Imports coupons in the specified mode. |
|
|
20
|
+
| `ImportCustomerGroups` | Site | Imports customer groups in the specified mode. |
|
|
21
|
+
| `ImportCustomerList` | Organization | Deprecated. Imports customer list data. Use ImportCustomerLists instead. |
|
|
22
|
+
| `ImportCustomerLists` | Organization | Imports customer lists. |
|
|
23
|
+
| `ImportCustomers` | Site | Imports Customers based on customer.xsd |
|
|
24
|
+
| `ImportCustomObjects` | Organization & Sites | Imports Custom Objects. |
|
|
25
|
+
| `ImportGiftCertificates` | Site | Import the Gift Certificates contained in ImportFile in the specified mode. |
|
|
26
|
+
| `ImportInventoryLists` | Organization | Imports inventory data. |
|
|
27
|
+
| `ImportKeyValueMapping` | Organization | Import or delete a key/value mapping in the Generic Mapping high-performance data store. Key/value mappings are exposed... |
|
|
28
|
+
| `ImportPageLocalization` | Site | Import translated page content for localization purposes |
|
|
29
|
+
| `ImportPriceBook` | Organization | Imports price data. |
|
|
30
|
+
| `ImportProductLists` | Site | Imports product lists. |
|
|
31
|
+
| `ImportPromotions` | Site | Imports promotions in the specified mode. |
|
|
32
|
+
| `ImportShippingMethods` | Site | Imports shipping methods in the specified mode. |
|
|
33
|
+
| `ImportSiteArchive` | Organization | Imports a site import archive file into the current instance. |
|
|
34
|
+
| `ImportSourceCodeGroups` | Site | Imports source code groups in the specified mode. |
|
|
35
|
+
| `ImportStores` | Site | Imports Stores based on store.xsd |
|
|
36
|
+
| `ImportTaxTable` | Site | Imports Tax Classes, Tax Jurisdictions and Tax Rates from the given ImportFile in the specified mode. |
|
|
37
|
+
|
|
38
|
+
## Export Steps
|
|
39
|
+
|
|
40
|
+
| Type ID | Scope | Purpose |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| `CatalogDeltaExport` | Site | Creates Delta Export for Catalogs. Support must be contacted to enable delta exports. |
|
|
43
|
+
| `CustomerListsDeltaExport` | Site | Creates Delta Export for Customer Lists. Support must be contacted to enable delta exports. |
|
|
44
|
+
| `ExportABTests` | Site | Exports A/B tests. |
|
|
45
|
+
| `ExportAssignments` | Organization | Exports all assignments in the system. |
|
|
46
|
+
| `ExportCatalog` | Organization | Exports catalog data. |
|
|
47
|
+
| `ExportContent` | Organization & Sites | Exports the folders in the specified content Library. |
|
|
48
|
+
| `ExportContentSlots` | Site | Exports all content slot data. |
|
|
49
|
+
| `ExportCouponCodes` | Site | Exports the codes of a specified coupon. |
|
|
50
|
+
| `ExportCoupons` | Site | Exports coupons. |
|
|
51
|
+
| `ExportCustomerGroups` | Site | Exports all customer groups. |
|
|
52
|
+
| `ExportCustomerList` | Organization | Exports a customer list, it's preferences as well as the customers assigned to the customer list. |
|
|
53
|
+
| `ExportCustomers` | Site | Exports the customer profiles from the default customer list of the given site. |
|
|
54
|
+
| `ExportCustomObjects` | Organization & Sites | Exports custom objects of a specified type and scope. The scope of the job flow (Organization or Sites) must match the... |
|
|
55
|
+
| `ExportFacebookFeed` | Site | Exports Catalog Feed for Facebook. |
|
|
56
|
+
| `ExportGiftCertificates` | Site | Exports Gift Certificates. |
|
|
57
|
+
| `ExportInventoryLists` | Site | Exports inventory lists. |
|
|
58
|
+
| `ExportMetaData` | Organization | Export System Object Type extensions and Custom Object Type definitions. |
|
|
59
|
+
| `ExportOrders` | Site | Exports all orders matching the selected criteria using Search Service, with a maximum of 1000 orders per run. After an... |
|
|
60
|
+
| `ExportPageLocalization` | Site | Export page content for localization purposes |
|
|
61
|
+
| `ExportPriceBook` | Organization | Exports price data. |
|
|
62
|
+
| `ExportProductLists` | Site | Exports product lists of a site. If all the options are selected, all product lists that were created by anonymous or... |
|
|
63
|
+
| `ExportPromotions` | Site | Exports promotions. |
|
|
64
|
+
| `ExportShippingMethods` | Site | Exports shipping methods. |
|
|
65
|
+
| `ExportSourceCodeGroups` | Site | Exports source code groups. |
|
|
66
|
+
| `ExportStores` | Site | Exports stores. |
|
|
67
|
+
| `ExportTaxTable` | Site | Exports tax data. |
|
|
68
|
+
| `LibraryDeltaExport` | Organization | Creates Delta Export for Libraries. Support must be contacted to enable delta exports. |
|
|
69
|
+
| `SiteExport` | Organization | Exports site data. The DataUnits parameter defines which objects are included in the export. Its function is similar to... |
|
|
70
|
+
|
|
71
|
+
## Processing Steps
|
|
72
|
+
|
|
73
|
+
| Type ID | Scope | Purpose |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| `CreateSitemap` | Site | Creates Sitemap. |
|
|
76
|
+
| `DownloadActiveDataFromStorage` | Site | Download active data from storage system to current site. This step downloads active data to the new site from storage... |
|
|
77
|
+
| `ExecuteCategorizationRules` | Organization | Executes the Categorization based on the Categorization Rules and Conditions defined on a CatalogCategory. |
|
|
78
|
+
| `ExecuteDataReplication` | Organization | Replicates data to a target system. The ReplicationConfiguration parameter requires a string in JSON format that... |
|
|
79
|
+
| `ExecutePipeline` | Organization & Sites | Executes a pipeline. The name and start node of the pipeline has to be configured at parameter... |
|
|
80
|
+
| `ExecutePreconfiguredCodeReplicationProcess` | Organization | Executes the preconfigured code replication process with the ID defined at parameter 'ReplicationProcessID'. The code... |
|
|
81
|
+
| `ExecutePreconfiguredDataReplicationProcess` | Organization | Executes the preconfigured data replication process with the ID defined at parameter 'ReplicationProcessID'. The data... |
|
|
82
|
+
| `ExecuteScriptModule` | Organization & Sites | Executes a function exported by a script module. The module ID has to be configured at parameter... |
|
|
83
|
+
| `IncludeStepsFromJob` | Organization & Sites | Includes steps from another job. This step makes it easy to create a set of standard steps that you can execute in... |
|
|
84
|
+
| `InvalidateCache` | Site | Invalidate Page and Static Content Cache Invalidates the page cache and/or static content cache (images, styles, etc.)... |
|
|
85
|
+
| `SearchReindex` | Site | Rebuilds or updates search indexes. The number of search indexes that can be rebuilt or updated in parallel is globally... |
|
|
86
|
+
| `UndoPreconfiguredCodeReplicationProcess` | Organization | Undo the preconfigured code replication process with the ID defined at parameter 'ReplicationProcessID'. The given code... |
|
|
87
|
+
| `UndoPreconfiguredDataReplicationProcess` | Organization | Undo the preconfigured data replication process with the ID defined at parameter 'ReplicationProcessID'. The given data... |
|
|
88
|
+
| `UpdateStorefrontURLs` | Site | Updates the Storefront URLs for objects like categories, products, folders and content assets. This will update the... |
|
|
89
|
+
| `UploadActiveDataBackupToStorage` | Site | Upload current site's active data to storage system (as a backup). This step uploads active data as a backup to storage... |
|
|
90
|
+
| `UploadActiveDataToStorage` | Site | Upload current site's active data to storage system. This step uploads active data from an old site to storage system... |
|
|
91
|
+
|
|
92
|
+
## Provenance
|
|
93
|
+
|
|
94
|
+
Generated from the public B2C Commerce Job Step API documentation (the jobstepapi section of the Script API documentation archive obtained via `b2c docs download`). Each step lists its purpose, execution scope, and input parameters (required, description, allowed values, default) as published in that documentation.
|
|
95
|
+
|
|
96
|
+
<!-- prettier-ignore-end -->
|
|
@@ -23,7 +23,7 @@ access to some more details about this internal Java exception.
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
## All Known Subclasses
|
|
26
|
-
[AspectAttributeValidationException](dw.experience.AspectAttributeValidationException.md), [CreateAgentBasketLimitExceededException](dw.order.CreateAgentBasketLimitExceededException.md), [CreateBasketFromOrderException](dw.order.CreateBasketFromOrderException.md), [CreateCouponLineItemException](dw.order.CreateCouponLineItemException.md), [CreateOrderException](dw.order.CreateOrderException.md), [CreateTemporaryBasketLimitExceededException](dw.order.CreateTemporaryBasketLimitExceededException.md), [ShopperContextException](dw.customer.shoppercontext.ShopperContextException.md)
|
|
26
|
+
[AspectAttributeValidationException](dw.experience.AspectAttributeValidationException.md), [CreateAgentBasketLimitExceededException](dw.order.CreateAgentBasketLimitExceededException.md), [CreateBasketFromOrderException](dw.order.CreateBasketFromOrderException.md), [CreateCouponLineItemException](dw.order.CreateCouponLineItemException.md), [CreateOrderException](dw.order.CreateOrderException.md), [CreateTemporaryBasketLimitExceededException](dw.order.CreateTemporaryBasketLimitExceededException.md), [ShopperConsentException](dw.customer.consent.ShopperConsentException.md), [ShopperContextException](dw.customer.shoppercontext.ShopperContextException.md)
|
|
27
27
|
## Property Summary
|
|
28
28
|
|
|
29
29
|
| Property | Description |
|
|
@@ -44,7 +44,10 @@ This class does not have a constructor, so you cannot create it directly.
|
|
|
44
44
|
|
|
45
45
|
### sortingOptions
|
|
46
46
|
- sortingOptions: [List](dw.util.List.md) `(read-only)`
|
|
47
|
-
- : Returns a list containing the sorting options configured for this site.
|
|
47
|
+
- : Returns a list containing the sorting options configured for this site. On a Cimulate-enabled site, restricts
|
|
48
|
+
the result to the Cimulate-managed rule IDs so the storefront "Sort by" dropdown matches what the buyer
|
|
49
|
+
actually gets back from Cimulate.
|
|
50
|
+
|
|
48
51
|
|
|
49
52
|
|
|
50
53
|
---
|
|
@@ -119,7 +122,10 @@ This class does not have a constructor, so you cannot create it directly.
|
|
|
119
122
|
|
|
120
123
|
### getSortingOptions()
|
|
121
124
|
- static getSortingOptions(): [List](dw.util.List.md)
|
|
122
|
-
- : Returns a list containing the sorting options configured for this site.
|
|
125
|
+
- : Returns a list containing the sorting options configured for this site. On a Cimulate-enabled site, restricts
|
|
126
|
+
the result to the Cimulate-managed rule IDs so the storefront "Sort by" dropdown matches what the buyer
|
|
127
|
+
actually gets back from Cimulate.
|
|
128
|
+
|
|
123
129
|
|
|
124
130
|
**Returns:**
|
|
125
131
|
- a list of SortingOption objects
|
|
@@ -1213,7 +1213,11 @@ Does not use a default initialization vector.
|
|
|
1213
1213
|
- message - A string to encrypt (will be first converted with UTF-8 encoding into a byte stream)
|
|
1214
1214
|
- key - A string ready for use with the algorithm. The key's format depends on the algorithm specified and the keys are assumed to be correctly formulated for the algorithm used, for example that the lengths are correct. Keys are _not_ checked for validity. The cryptographic algorithms can be partitioned into _symmetric_ and _asymmetric_ (or public key/private key). Symmetric algorithms include _password-based_ algorithms. Symmetric keys are usually a base64-encoded array of bytes. Asymmetric keys are "key pairs" with a public key and a private key. To encrypt using asymmetric algorithms, provide the public key. To decrypt using asymmetric algorithms, provide the private key from the same pair in PKCS\#8 format, base64-encoded. See class documentation on how to generate a key pair. If the cryptographic algorithm is _symmetric_ (for example, AES) or _asymmetric_ (for example, RSA), the key needs to be passed as a base64-encoded string. The only exception is the _symmetric_ cryptographic algorithms _Password Based Encryption_ (PBE). With PBE the key needs to be passed as plain string (_without_ any encoding).
|
|
1215
1215
|
- transformation - The transformation has to be in _"algorithm/mode/padding"_ format. Symmetric or "secret key" algorithms use the same key to encrypt and to decrypt the data. Asymmetric or "public key" cryptography uses a public/private key pair, and then publishes the public key. Only the holder of the private key will be able to decrypt. The public key and private key are also known as a "key pair". Supported Symmetric transformations include: <li>"AES" or Rijndael, Advanced Encryption Standard as specified by NIST **AES with key length of 256 is the preferred choice for symmetric encryption** Keysizes: 128, 192, or 256 Modes: "GCM","ECB","CBC","PCBC","CTR","CTS","CFB","CFB8","CFB16","CFB24".."CFB64", "OFB","OFB8","OFB16","OFB24".."OFB64" Padding: "PKCS5Padding" or "NoPadding" (GCM only) </li> </ul> Note that ARCFOUR, Blowfish, DES, RC2, DESede, DESedeWrap, PBEWithMD5AndDES, PBEWithMD5AndTripleDES1, PBEWithSHA1AndDESede and PBEWithSHA1AndRC2\_40 transformations have been deprecated. PKCS5Padding is the only supported Padding for most modes. NOPADDING is only supported for GCM, and ISO10126PADDING has been deprecated. Supported Asymmetric transformations include: <li>"RSA" Mode: "ECB" Padding: "OAEPWITHSHA-256ANDMGF1PADDING", "OAEPWITHSHA-384ANDMGF1PADDING", "OAEPWITHSHA-512ANDMGF1PADDING" </li> </ul> Note that for RSA the key length should be at least 2048 bits. Also, the following Padding options have been deprecated: NOPADDING, PKCS1PADDING, OAEPWITHMD5ANDMGF1PADDING, OAEPWITHSHA1ANDMGF1PADDING and OAEPWITHSHA-1ANDMGF1PADDING.
|
|
1216
|
-
- saltOrIV - Initialization value appropriate for the algorithm, this might be a Binary Salt or AlgorithmParameter or InitializationVector. (As binary values cannot be passed, the equivalent Base64 String should be passed for any binary salt value). Should be appropriate for the algorithm being used. The same value used to Encrypt needs to be supplied to the Decrypt function for many algorithms to successfully decrypt the data, so it is best practice to specify an appropriate value. Requirements for the size and generation of DES initialization vectors (IV) are derived from FIPS 74 and FIPS 81 from the National Institute of Standards and Technology. CBC mode requires an IV with length 64 bits; CFB uses 48-64 bits; OFB uses 64 bits; GCM uses 96 bits. If the IV is to be used with DES in the OFB mode, then it is not acceptable for the IV to remain fixed for multiple encryptions, if the same key is used for those encryptions. For Block Encryption algorithms this is the encoded Base64 String equivalent to the a random number to use as a "salt" to use with the algorithm. The algorithm must contain a Feedback Mode other than ECB. This must be a binary value that is exactly the same size as the algorithm block size. RC5 uses an optional 8-byte initialization vector (IV), but only in feedback mode (see CFB above). For Password Based Encryption algorithms, the salt is the encoded Base64 String equivalent to a random number value to transform the password into a key. PBE derives an encryption key from a password. In order to make the task of getting from password to key very time-consuming for an attacker, most PBE implementations will mix in a random number, known as a salt, to create the key. The salt value and the iteration count are then combined into a PBEParameterSpecification to initialize the cipher. The PKCS\#5 spec from RSA Labs defines the parameters for password-based encryption (PBE). The RSA algorithm requires a salt with length as defined in PKCS\#1. DSA has a specific initialization that uses three integers to build a DSAParameterSpec (a prime, a sub-prime and a base). To use this algorithm you should use the JCE or another provider to supply a DSAParameterSpec and then supply the Base64 equivalent string as the "salt". Please see the documentation from the provider for additional restrictions.
|
|
1216
|
+
- saltOrIV - Initialization value appropriate for the algorithm, this might be a Binary Salt or AlgorithmParameter or InitializationVector. (As binary values cannot be passed, the equivalent Base64 String should be passed for any binary salt value). Should be appropriate for the algorithm being used. The same value used to Encrypt needs to be supplied to the Decrypt function for many algorithms to successfully decrypt the data, so it is best practice to specify an appropriate value. Requirements for the size and generation of DES initialization vectors (IV) are derived from FIPS 74 and FIPS 81 from the National Institute of Standards and Technology. CBC mode requires an IV with length 64 bits; CFB uses 48-64 bits; OFB uses 64 bits; GCM uses 96 bits. If the IV is to be used with DES in the OFB mode, then it is not acceptable for the IV to remain fixed for multiple encryptions, if the same key is used for those encryptions. For Block Encryption algorithms this is the encoded Base64 String equivalent to the a random number to use as a "salt" to use with the algorithm. The algorithm must contain a Feedback Mode other than ECB. This must be a binary value that is exactly the same size as the algorithm block size. RC5 uses an optional 8-byte initialization vector (IV), but only in feedback mode (see CFB above). For Password Based Encryption algorithms, the salt is the encoded Base64 String equivalent to a random number value to transform the password into a key. PBE derives an encryption key from a password. In order to make the task of getting from password to key very time-consuming for an attacker, most PBE implementations will mix in a random number, known as a salt, to create the key. The salt value and the iteration count are then combined into a PBEParameterSpecification to initialize the cipher. The PKCS\#5 spec from RSA Labs defines the parameters for password-based encryption (PBE). The RSA algorithm requires a salt with length as defined in PKCS\#1. DSA has a specific initialization that uses three integers to build a DSAParameterSpec (a prime, a sub-prime and a base). To use this algorithm you should use the JCE or another provider to supply a DSAParameterSpec and then supply the Base64 equivalent string as the "salt". Please see the documentation from the provider for additional restrictions. Extra algorithm parameters may be configured using this field. Each parameter is given as `<name>=<value>`, and multiple parameters may be separated by a vertical pipe. Unknown parameters will result in an error. Any parameters MUST be given after the salt, even if the salt is empty. For example, RSA does not use a salt, so to set the MGF1 digest algorithm to SHA-256, use `|MGFDigest=SHA-256` Supported Parameters: | Parameter | Type | Description |
|
|
1217
|
+
| --- |--- |--- |
|
|
1218
|
+
| `MGFDigest` | `String` | Overrides the digest algorithm used by the mask generation function when using OAEP padding. Valid values include SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512. The default value is SHA-1. |
|
|
1219
|
+
| `TagLength` | `Integer` | Overrides the tag length in bits used for GCM mode. Note if a number is given without a parameter name, it is treated as the tag length for backward compatibility. The default tag length is 128 bits. |
|
|
1220
|
+
|
|
1217
1221
|
- iterations - The number of passes to make when turning a passphrase into a key. This is only applicable for some types of algorithm. Password Based Encryption (PBE) algorithms use this parameter, and Block Encryption algorithms do not. If this value is relevant to the algorithm it would be best practice to supply it, as the same value would be needed to decrypt the data.
|
|
1218
1222
|
|
|
1219
1223
|
**Returns:**
|
|
@@ -27,6 +27,7 @@ Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
|
|
|
27
27
|
| [customer](#customer): [Customer](dw.customer.Customer.md) `(read-only)` | Returns the customer object related to this profile. |
|
|
28
28
|
| [customerNo](#customerno): [String](TopLevel.String.md) `(read-only)` | Returns the customer's number, which is a number used to identify the Customer. |
|
|
29
29
|
| [email](#email): [String](TopLevel.String.md) | Returns the customer's email address. |
|
|
30
|
+
| [emailVerified](#emailverified): [Boolean](TopLevel.Boolean.md) `(read-only)` | Returns whether the customer's email has been verified. |
|
|
30
31
|
| [fax](#fax): [String](TopLevel.String.md) | Returns the fax number to use for the customer. |
|
|
31
32
|
| [female](#female): [Boolean](TopLevel.Boolean.md) `(read-only)` | Indicates that the customer is female when set to true. |
|
|
32
33
|
| [firstName](#firstname): [String](TopLevel.String.md) | Returns the customer's first name. |
|
|
@@ -88,6 +89,7 @@ This class does not have a constructor, so you cannot create it directly.
|
|
|
88
89
|
| [getTaxIDType](dw.customer.Profile.md#gettaxidtype)() | Returns the tax ID type. |
|
|
89
90
|
| [getTitle](dw.customer.Profile.md#gettitle)() | Returns the customer's title, such as "Mrs" or "Mr". |
|
|
90
91
|
| [getWallet](dw.customer.Profile.md#getwallet)() | Returns the wallet of this customer. |
|
|
92
|
+
| [isEmailVerified](dw.customer.Profile.md#isemailverified)() | Returns whether the customer's email has been verified. |
|
|
91
93
|
| [isFemale](dw.customer.Profile.md#isfemale)() | Indicates that the customer is female when set to true. |
|
|
92
94
|
| [isMale](dw.customer.Profile.md#ismale)() | Indicates that the customer is male when set to true. |
|
|
93
95
|
| [setBirthday](dw.customer.Profile.md#setbirthdaydate)([Date](TopLevel.Date.md)) | Sets the customer's birthday as a date. |
|
|
@@ -168,6 +170,26 @@ This class does not have a constructor, so you cannot create it directly.
|
|
|
168
170
|
- : Returns the customer's email address.
|
|
169
171
|
|
|
170
172
|
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
### emailVerified
|
|
176
|
+
- emailVerified: [Boolean](TopLevel.Boolean.md) `(read-only)`
|
|
177
|
+
- : Returns whether the customer's email has been verified.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
This is a read-only field. The field value cannot be set externally and will be set in platform based on
|
|
181
|
+
following rules:
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
- If the Email Verification Site Preference under LoginPreferences is disabled: the value for this field will always be NULL;
|
|
186
|
+
- If the Email Verification Site Preference under LoginPreferences is enabled:
|
|
187
|
+
- If the incoming email value is the same as existing email and email was previously verified, the value for this field will remain unchanged as TRUE;
|
|
188
|
+
- If the incoming email value is the same as existing email and email was not previously verified, the value for this field will remain unchanged as FALSE;
|
|
189
|
+
- If the incoming email value is not the same as existing email, the value for this field will be set to FALSE no matter the previous state;
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
171
193
|
---
|
|
172
194
|
|
|
173
195
|
### fax
|
|
@@ -664,6 +686,29 @@ This class does not have a constructor, so you cannot create it directly.
|
|
|
664
686
|
- the wallet of this customer.
|
|
665
687
|
|
|
666
688
|
|
|
689
|
+
---
|
|
690
|
+
|
|
691
|
+
### isEmailVerified()
|
|
692
|
+
- isEmailVerified(): [Boolean](TopLevel.Boolean.md)
|
|
693
|
+
- : Returns whether the customer's email has been verified.
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
This is a read-only field. The field value cannot be set externally and will be set in platform based on
|
|
697
|
+
following rules:
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
- If the Email Verification Site Preference under LoginPreferences is disabled: the value for this field will always be NULL;
|
|
702
|
+
- If the Email Verification Site Preference under LoginPreferences is enabled:
|
|
703
|
+
- If the incoming email value is the same as existing email and email was previously verified, the value for this field will remain unchanged as TRUE;
|
|
704
|
+
- If the incoming email value is the same as existing email and email was not previously verified, the value for this field will remain unchanged as FALSE;
|
|
705
|
+
- If the incoming email value is not the same as existing email, the value for this field will be set to FALSE no matter the previous state;
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
**Returns:**
|
|
709
|
+
- true if the email is verified, false if not verified, or null if the verification status has not been set.
|
|
710
|
+
|
|
711
|
+
|
|
667
712
|
---
|
|
668
713
|
|
|
669
714
|
### isFemale()
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<!-- prettier-ignore-start -->
|
|
2
|
+
# Class ConsentStatusEntry
|
|
3
|
+
|
|
4
|
+
- [TopLevel.Object](TopLevel.Object.md)
|
|
5
|
+
- [dw.customer.consent.ConsentStatusEntry](dw.customer.consent.ConsentStatusEntry.md)
|
|
6
|
+
|
|
7
|
+
Represents the consent status for a specific channel and contact point.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
This class provides information about the shopper's consent status (OPT\_IN, OPT\_OUT)
|
|
11
|
+
for a particular marketing communication channel.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Property Summary
|
|
16
|
+
|
|
17
|
+
| Property | Description |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| [channel](#channel): [String](TopLevel.String.md) `(read-only)` | Returns the channel type for this consent status entry. |
|
|
20
|
+
| [contactPointValue](#contactpointvalue): [String](TopLevel.String.md) `(read-only)` | Returns the contact point value (email address or phone number) for this consent entry. |
|
|
21
|
+
| [status](#status): [String](TopLevel.String.md) `(read-only)` | Returns the consent status. |
|
|
22
|
+
|
|
23
|
+
## Constructor Summary
|
|
24
|
+
|
|
25
|
+
This class does not have a constructor, so you cannot create it directly.
|
|
26
|
+
## Method Summary
|
|
27
|
+
|
|
28
|
+
| Method | Description |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| [getChannel](dw.customer.consent.ConsentStatusEntry.md#getchannel)() | Returns the channel type for this consent status entry. |
|
|
31
|
+
| [getContactPointValue](dw.customer.consent.ConsentStatusEntry.md#getcontactpointvalue)() | Returns the contact point value (email address or phone number) for this consent entry. |
|
|
32
|
+
| [getStatus](dw.customer.consent.ConsentStatusEntry.md#getstatus)() | Returns the consent status. |
|
|
33
|
+
|
|
34
|
+
### Methods inherited from class Object
|
|
35
|
+
|
|
36
|
+
[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)
|
|
37
|
+
## Property Details
|
|
38
|
+
|
|
39
|
+
### channel
|
|
40
|
+
- channel: [String](TopLevel.String.md) `(read-only)`
|
|
41
|
+
- : Returns the channel type for this consent status entry.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### contactPointValue
|
|
47
|
+
- contactPointValue: [String](TopLevel.String.md) `(read-only)`
|
|
48
|
+
- : Returns the contact point value (email address or phone number) for this consent entry.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### status
|
|
54
|
+
- status: [String](TopLevel.String.md) `(read-only)`
|
|
55
|
+
- : Returns the consent status.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Method Details
|
|
61
|
+
|
|
62
|
+
### getChannel()
|
|
63
|
+
- getChannel(): [String](TopLevel.String.md)
|
|
64
|
+
- : Returns the channel type for this consent status entry.
|
|
65
|
+
|
|
66
|
+
**Returns:**
|
|
67
|
+
- The channel type (e.g., "EMAIL", "SMS", "WHATSAPP").
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### getContactPointValue()
|
|
73
|
+
- getContactPointValue(): [String](TopLevel.String.md)
|
|
74
|
+
- : Returns the contact point value (email address or phone number) for this consent entry.
|
|
75
|
+
|
|
76
|
+
**Returns:**
|
|
77
|
+
- The contact point value.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### getStatus()
|
|
83
|
+
- getStatus(): [String](TopLevel.String.md)
|
|
84
|
+
- : Returns the consent status.
|
|
85
|
+
|
|
86
|
+
**Returns:**
|
|
87
|
+
- The consent status (e.g., "OPT\_IN", "OPT\_OUT").
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
<!-- prettier-ignore-end -->
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
<!-- prettier-ignore-start -->
|
|
2
|
+
# Class MarketingConsentSubscription
|
|
3
|
+
|
|
4
|
+
- [TopLevel.Object](TopLevel.Object.md)
|
|
5
|
+
- [dw.customer.consent.MarketingConsentSubscription](dw.customer.consent.MarketingConsentSubscription.md)
|
|
6
|
+
|
|
7
|
+
Represents a marketing consent subscription for a shopper.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
A marketing consent subscription defines a communication preference category (e.g., "Newsletter", "Product Updates")
|
|
11
|
+
with associated channels (EMAIL, SMS, WHATSAPP) through which the shopper can receive marketing communications.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Example usage:
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
var subscriptions = dw.customer.consent.ShopperConsentMgr.getSubscriptions();
|
|
22
|
+
for each (var sub in subscriptions) {
|
|
23
|
+
trace('Subscription: ' + sub.subscriptionId + ' - ' + sub.title);
|
|
24
|
+
trace('Channels: ' + sub.channels);
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## Property Summary
|
|
31
|
+
|
|
32
|
+
| Property | Description |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| [channels](#channels): [String\[\]](TopLevel.String.md) `(read-only)` | Returns the available channels for this subscription. |
|
|
35
|
+
| [consentRequired](#consentrequired): [Boolean](TopLevel.Boolean.md) `(read-only)` | Returns whether consent is required for this subscription. |
|
|
36
|
+
| [consentStatus](#consentstatus): [Collection](dw.util.Collection.md) `(read-only)` | Returns the consent status entries for this subscription. |
|
|
37
|
+
| [consentType](#consenttype): [String](TopLevel.String.md) `(read-only)` | Returns the consent type for this subscription. |
|
|
38
|
+
| [defaultStatus](#defaultstatus): [String](TopLevel.String.md) `(read-only)` | Returns the default consent status for this subscription. |
|
|
39
|
+
| [subscriptionId](#subscriptionid): [String](TopLevel.String.md) `(read-only)` | Returns the unique identifier for this subscription. |
|
|
40
|
+
| [subtitle](#subtitle): [String](TopLevel.String.md) `(read-only)` | Returns the localized subtitle of this subscription. |
|
|
41
|
+
| [tags](#tags): [String\[\]](TopLevel.String.md) `(read-only)` | Returns the tags associated with this subscription. |
|
|
42
|
+
| [title](#title): [String](TopLevel.String.md) `(read-only)` | Returns the localized title of this subscription. |
|
|
43
|
+
|
|
44
|
+
## Constructor Summary
|
|
45
|
+
|
|
46
|
+
This class does not have a constructor, so you cannot create it directly.
|
|
47
|
+
## Method Summary
|
|
48
|
+
|
|
49
|
+
| Method | Description |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| [getChannels](dw.customer.consent.MarketingConsentSubscription.md#getchannels)() | Returns the available channels for this subscription. |
|
|
52
|
+
| [getConsentRequired](dw.customer.consent.MarketingConsentSubscription.md#getconsentrequired)() | Returns whether consent is required for this subscription. |
|
|
53
|
+
| [getConsentStatus](dw.customer.consent.MarketingConsentSubscription.md#getconsentstatus)() | Returns the consent status entries for this subscription. |
|
|
54
|
+
| [getConsentType](dw.customer.consent.MarketingConsentSubscription.md#getconsenttype)() | Returns the consent type for this subscription. |
|
|
55
|
+
| [getDefaultStatus](dw.customer.consent.MarketingConsentSubscription.md#getdefaultstatus)() | Returns the default consent status for this subscription. |
|
|
56
|
+
| [getSubscriptionId](dw.customer.consent.MarketingConsentSubscription.md#getsubscriptionid)() | Returns the unique identifier for this subscription. |
|
|
57
|
+
| [getSubtitle](dw.customer.consent.MarketingConsentSubscription.md#getsubtitle)() | Returns the localized subtitle of this subscription. |
|
|
58
|
+
| [getTags](dw.customer.consent.MarketingConsentSubscription.md#gettags)() | Returns the tags associated with this subscription. |
|
|
59
|
+
| [getTitle](dw.customer.consent.MarketingConsentSubscription.md#gettitle)() | Returns the localized title of this subscription. |
|
|
60
|
+
|
|
61
|
+
### Methods inherited from class Object
|
|
62
|
+
|
|
63
|
+
[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)
|
|
64
|
+
## Property Details
|
|
65
|
+
|
|
66
|
+
### channels
|
|
67
|
+
- channels: [String\[\]](TopLevel.String.md) `(read-only)`
|
|
68
|
+
- : Returns the available channels for this subscription.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
Channels represent the communication methods (EMAIL, SMS, WHATSAPP) available for this subscription.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
### consentRequired
|
|
78
|
+
- consentRequired: [Boolean](TopLevel.Boolean.md) `(read-only)`
|
|
79
|
+
- : Returns whether consent is required for this subscription.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### consentStatus
|
|
85
|
+
- consentStatus: [Collection](dw.util.Collection.md) `(read-only)`
|
|
86
|
+
- : Returns the consent status entries for this subscription.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
This is only populated when the 'includeConsentStatus' parameter is true in the getSubscriptions call, and the
|
|
90
|
+
customer is authenticated.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### consentType
|
|
97
|
+
- consentType: [String](TopLevel.String.md) `(read-only)`
|
|
98
|
+
- : Returns the consent type for this subscription.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### defaultStatus
|
|
104
|
+
- defaultStatus: [String](TopLevel.String.md) `(read-only)`
|
|
105
|
+
- : Returns the default consent status for this subscription.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### subscriptionId
|
|
111
|
+
- subscriptionId: [String](TopLevel.String.md) `(read-only)`
|
|
112
|
+
- : Returns the unique identifier for this subscription.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### subtitle
|
|
118
|
+
- subtitle: [String](TopLevel.String.md) `(read-only)`
|
|
119
|
+
- : Returns the localized subtitle of this subscription.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### tags
|
|
125
|
+
- tags: [String\[\]](TopLevel.String.md) `(read-only)`
|
|
126
|
+
- : Returns the tags associated with this subscription.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
Tags can be used to categorize and filter subscriptions.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### title
|
|
136
|
+
- title: [String](TopLevel.String.md) `(read-only)`
|
|
137
|
+
- : Returns the localized title of this subscription.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Method Details
|
|
143
|
+
|
|
144
|
+
### getChannels()
|
|
145
|
+
- getChannels(): [String\[\]](TopLevel.String.md)
|
|
146
|
+
- : Returns the available channels for this subscription.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
Channels represent the communication methods (EMAIL, SMS, WHATSAPP) available for this subscription.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
**Returns:**
|
|
153
|
+
- A list of channel strings (lowercase).
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### getConsentRequired()
|
|
159
|
+
- getConsentRequired(): [Boolean](TopLevel.Boolean.md)
|
|
160
|
+
- : Returns whether consent is required for this subscription.
|
|
161
|
+
|
|
162
|
+
**Returns:**
|
|
163
|
+
- True if consent is required, false otherwise.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### getConsentStatus()
|
|
169
|
+
- getConsentStatus(): [Collection](dw.util.Collection.md)
|
|
170
|
+
- : Returns the consent status entries for this subscription.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
This is only populated when the 'includeConsentStatus' parameter is true in the getSubscriptions call, and the
|
|
174
|
+
customer is authenticated.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
**Returns:**
|
|
178
|
+
- A collection of ConsentStatusEntry objects, or null if not requested.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
### getConsentType()
|
|
184
|
+
- getConsentType(): [String](TopLevel.String.md)
|
|
185
|
+
- : Returns the consent type for this subscription.
|
|
186
|
+
|
|
187
|
+
**Returns:**
|
|
188
|
+
- The consent type (e.g., "SINGLE\_OPT\_IN", "DOUBLE\_OPT\_IN").
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### getDefaultStatus()
|
|
194
|
+
- getDefaultStatus(): [String](TopLevel.String.md)
|
|
195
|
+
- : Returns the default consent status for this subscription.
|
|
196
|
+
|
|
197
|
+
**Returns:**
|
|
198
|
+
- The default status (e.g., "OPT\_IN", "OPT\_OUT").
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
### getSubscriptionId()
|
|
204
|
+
- getSubscriptionId(): [String](TopLevel.String.md)
|
|
205
|
+
- : Returns the unique identifier for this subscription.
|
|
206
|
+
|
|
207
|
+
**Returns:**
|
|
208
|
+
- The subscription ID.
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
### getSubtitle()
|
|
214
|
+
- getSubtitle(): [String](TopLevel.String.md)
|
|
215
|
+
- : Returns the localized subtitle of this subscription.
|
|
216
|
+
|
|
217
|
+
**Returns:**
|
|
218
|
+
- The subscription subtitle.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
### getTags()
|
|
224
|
+
- getTags(): [String\[\]](TopLevel.String.md)
|
|
225
|
+
- : Returns the tags associated with this subscription.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
Tags can be used to categorize and filter subscriptions.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
**Returns:**
|
|
232
|
+
- A list of tag strings.
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
### getTitle()
|
|
238
|
+
- getTitle(): [String](TopLevel.String.md)
|
|
239
|
+
- : Returns the localized title of this subscription.
|
|
240
|
+
|
|
241
|
+
**Returns:**
|
|
242
|
+
- The subscription title.
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
<!-- prettier-ignore-end -->
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!-- prettier-ignore-start -->
|
|
2
|
+
# Class ShopperConsentErrorCodes
|
|
3
|
+
|
|
4
|
+
- [TopLevel.Object](TopLevel.Object.md)
|
|
5
|
+
- [dw.customer.consent.ShopperConsentErrorCodes](dw.customer.consent.ShopperConsentErrorCodes.md)
|
|
6
|
+
|
|
7
|
+
Error codes for [ShopperConsentException](dw.customer.consent.ShopperConsentException.md).
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
These error codes indicate the reason why a shopper consent operation failed.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Constant Summary
|
|
15
|
+
|
|
16
|
+
| Constant | Description |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| [CUSTOMER_NOT_AUTHENTICATED](#customer_not_authenticated): [String](TopLevel.String.md) = "CUSTOMER_NOT_AUTHENTICATED" | Indicates that the customer is not authenticated. |
|
|
19
|
+
| [FEATURE_DISABLED](#feature_disabled): [String](TopLevel.String.md) = "FEATURE_DISABLED" | Indicates that the Marketing Consent feature is not enabled. |
|
|
20
|
+
| [INTERNAL_ERROR](#internal_error): [String](TopLevel.String.md) = "INTERNAL_ERROR" | Indicates that an internal error occurred. |
|
|
21
|
+
| [RETRIEVAL_ERROR](#retrieval_error): [String](TopLevel.String.md) = "RETRIEVAL_ERROR" | Indicates that an error occurred while retrieving consent subscriptions. |
|
|
22
|
+
| [UPDATE_ERROR](#update_error): [String](TopLevel.String.md) = "UPDATE_ERROR" | Indicates that an error occurred while updating consent subscriptions. |
|
|
23
|
+
|
|
24
|
+
## Constructor Summary
|
|
25
|
+
|
|
26
|
+
This class does not have a constructor, so you cannot create it directly.
|
|
27
|
+
## Method Summary
|
|
28
|
+
|
|
29
|
+
### Methods inherited from class Object
|
|
30
|
+
|
|
31
|
+
[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)
|
|
32
|
+
## Constant Details
|
|
33
|
+
|
|
34
|
+
### CUSTOMER_NOT_AUTHENTICATED
|
|
35
|
+
|
|
36
|
+
- CUSTOMER_NOT_AUTHENTICATED: [String](TopLevel.String.md) = "CUSTOMER_NOT_AUTHENTICATED"
|
|
37
|
+
- : Indicates that the customer is not authenticated.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### FEATURE_DISABLED
|
|
43
|
+
|
|
44
|
+
- FEATURE_DISABLED: [String](TopLevel.String.md) = "FEATURE_DISABLED"
|
|
45
|
+
- : Indicates that the Marketing Consent feature is not enabled.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### INTERNAL_ERROR
|
|
51
|
+
|
|
52
|
+
- INTERNAL_ERROR: [String](TopLevel.String.md) = "INTERNAL_ERROR"
|
|
53
|
+
- : Indicates that an internal error occurred.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### RETRIEVAL_ERROR
|
|
59
|
+
|
|
60
|
+
- RETRIEVAL_ERROR: [String](TopLevel.String.md) = "RETRIEVAL_ERROR"
|
|
61
|
+
- : Indicates that an error occurred while retrieving consent subscriptions.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### UPDATE_ERROR
|
|
67
|
+
|
|
68
|
+
- UPDATE_ERROR: [String](TopLevel.String.md) = "UPDATE_ERROR"
|
|
69
|
+
- : Indicates that an error occurred while updating consent subscriptions.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
<!-- prettier-ignore-end -->
|