DCOfferConfigDetails

DCOfferConfigDetails

c-dc-offer-config-details is a web component that displays config details of an offer.

Constructor

new DCOfferConfigDetails()

Properties:
Name Type Description
catalog-code String Catalog code.
offer-code String Offer code.
Example
Sample Usage -

Include the component in your template simply by adding c-dc-offer-config-details HTML tag
<c-dc-offer-config-details catalog-code={catalogCode} offer-code={offer.offerCode}></c-dc-offer-config-details>

| Attribute Name    | Type Expected                                                                   | Required |
|-------------------|---------------------------------------------------------------------------------|----------|
| catalog-code      | It expects Catalog code as a string value.                                      | required |
|                   |                                                                                 |          |
| offer-code        | It expects Offer code as a string value.                                        | required |
--------------------------------------------------------------------------------------------------------------------------------------------------------------
 KEY INFO -

 events fired : none


 events registered : none

 Dependency - c-dc-offer-config-details is an independent component and is commonly used as a child component of c-dc-offer-config. Moreover, it could also be a parent component for multiple child components.

               | Parent Component                 | Child Components                      |
               |----------------------------------|---------------------------------------|
               |                                  | c-dc-offer-configurations             |
               |                                  | c-dc-offer-color-config               |
               | c-dc-offer-config                | c-dc-offer-attribute-config           |
               |                                  | c-dc-offer-input-config               |
               |                                  | c-dc-offer-payment-config             |
Sample with slots -

<c-dc-offer-config-details>
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</c-dc-offer-config-details>

List of available slots -

| Slot names                 | Dynamic     | Description                 | Impact               |
|----------------------------|-------------|----------------------------------------------------|
| dc-offer-title             | -           | Offer Title                 | Replaces DOM         |
| dc-offer-details           | -           | Wrapper for Offer Details   | Replaces DOM         |

Extends

Members

(static) catalogCode

setter for catalogCode.

(static) catalogCode

getter for catalogCode.

(static) currentOffer

getter for currentOffer.

(static) currentOffer

setter for currentOffer.

(static) offerCode

getter for offerCode.

(static) offerCode

setter for offerCode.

Methods

(static) connectedCallback()

Invoked when c-dc-offer-config-details component is added to the DOM.

(static) getOffer()

This function get Offer details by calling getOffer method of sdk.

(static) getSDKInstance()

This function gets digital commerce sdk instance

(static) processAttributes()

Method to get offer attributes