Methods
addToCartProcessResponse(response)
This function is used to process addToCart response
Parameters:
Name | Type | Description |
---|---|---|
response |
object | Response Object from SDK call. |
Type Definitions
ColorSelectedEventResultObject :Object
Properties:
Name | Type | Description |
---|---|---|
detail |
String | indicates color selected by user. |
ConfiguredChildOfferObject :Object
Properties:
Name | Type | Description |
---|---|---|
attachments |
Array.<OfferAttachmentObject> | indicates attribute id. |
attributes |
Array.<OfferAttributeObject> | indicates input type. |
description |
String | offer description. |
id |
String | offer id. |
name |
String | offer name. |
offerCode |
String | offer code. |
priceInfo |
OfferPriceInfoObject | |
productGroups |
Array.<OfferProductGroupObject> | |
productHierarchyPath |
String | |
quantity |
Number | |
seoMetaData |
String |
ConfigureOfferObject :Object
Properties:
Name | Type | Description |
---|---|---|
field |
String | name of the field that is being configured. |
value |
any | field value to be configured. |
Offer :Object
Properties:
Name | Type | Description |
---|---|---|
Attachments |
Array | media attachments of offer. |
id |
String | offer unique id. |
name |
String | offer name. |
maxQuantity |
Number | indicates max cardinality of an offer. |
lineNumber |
String | line number of an offer. |
bundleTotal |
Object | total prices for offer bundle including child offers. eg:{oneTimeCharge:100, recurringCharge:10} |
productGroups |
Array | child offer groups. |
priceInfo |
Object | total prices for this offer only. eg: {oneTimeCharge:100, recurringCharge:10} |
offerCode |
String | offer code of an offer. |
productHierarchyPath |
String | indicates the path from parent to child separated by symbol '>'. |
productId |
String | unique id of an offer. |
Quantity |
Number | quantity of an offer. |
OfferAttachmentObject :Object
Properties:
Name | Type | Description |
---|---|---|
contentType |
String | indicates content type. |
defaultAttachment |
Boolean | indicates default attachment. |
description |
String | indicates attachment description. |
displayConditionsData |
String | conditions to indicate data. |
url |
String | attachment url. |
offerAttachmentsObject :Object
Properties:
Name | Type | Description |
---|---|---|
contentType |
String | indicates type of content i.e. image or video. |
description |
String | indicates description of image. |
url |
String | indicates url of the media resource. |
OfferAttributeObject :Object
Properties:
Name | Type | Description |
---|---|---|
attributeId |
String | indicates attribute id. |
inputType |
String | indicates input type. |
label |
String | indicates attribute label. |
multiselect |
Boolean | |
userValues |
String | |
values |
Array |
OfferAttributeObject :Object
Properties:
Name | Type | Description |
---|---|---|
attributeId |
String | indicates attribute id. |
inputType |
String | indicates input type. |
label |
String | indicates attribute label. |
multiselect |
Boolean | |
userValues |
String | |
values |
Array.<OfferAttributeValueObject> |
OfferAttributeObject :Object
Properties:
Name | Type | Description |
---|---|---|
attributeId |
String | indicates attribute id. |
inputType |
String | indicates input type. |
label |
String | indicates attribute label. |
multiselect |
Boolean | |
userValues |
String | |
values |
Array.<OfferAttributeValueObject> |
OfferAttributeObject :Object
Properties:
Name | Type | Description |
---|---|---|
attributeId |
String | indicates attribute id. |
inputType |
String | indicates input type. |
label |
String | indicates attribute label. |
multiselect |
Boolean | |
userValues |
String | |
values |
Array |
OfferAttributeValueObject :Object
Properties:
Name | Type | Description |
---|---|---|
Offer |
Offer | details of the offer that is being added to cart. |
defaultValue |
String | attribute default value. |
disabled |
Boolean | is attribute disabled. |
readonly |
Boolean | indicates if attribute is read only. |
value |
String | indicates attrbiute value. |
OfferAttributeValueObject :Object
Properties:
Name | Type | Description |
---|---|---|
defaultValue |
String | attribute default value. |
disabled |
Boolean | is attribute disabled. |
readonly |
Boolean | indicates if attribute is read only. |
value |
String | indicates attrbiute value. |
OfferObject :Object
Properties:
Name | Type | Description |
---|---|---|
attachments |
Array.<OfferAttachmentObject> | indicates attribute id. |
attributes |
Array.<OfferAttributeObject> | indicates input type. |
description |
String | offer description. |
id |
String | offer id. |
name |
String | offer name. |
offerCode |
String | offer code. |
priceInfo |
OfferPriceInfoObject | |
productGroups |
Array.<OfferProductGroupObject> | |
productHierarchyPath |
String | |
quantity |
Number | |
seoMetaData |
String |
OfferObject :Object
Properties:
Name | Type | Description |
---|---|---|
attachments |
Array.<OfferAttachmentObject> | indicates attribute id. |
attributes |
Array.<OfferAttributeObject> | indicates input type. |
description |
String | offer description. |
id |
String | offer id. |
name |
String | offer name. |
offerCode |
String | offer code. |
priceInfo |
OfferPriceInfoObject | |
productGroups |
Array.<OfferProductGroupObject> | |
productHierarchyPath |
String | |
quantity |
Number | |
seoMetaData |
String |
OfferObject :Object
Properties:
Name | Type | Description |
---|---|---|
attachments |
Array.<OfferAttachmentObject> | indicates attribute id. |
attributes |
Array.<OfferAttributeObject> | indicates input type. |
description |
String | offer description. |
id |
String | offer id. |
name |
String | offer name. |
offerCode |
String | offer code. |
priceInfo |
OfferPriceInfoObject | |
productGroups |
Array.<OfferProductGroupObject> | |
productHierarchyPath |
String | |
quantity |
Number | |
seoMetaData |
String |
OfferPriceInfoObject :Object
Properties:
Name | Type | Description |
---|---|---|
oneTimeCharge |
Number | Offer one time charge value. |
recurringCharge |
Number | Offer recurring charge value. |
OfferProductGroupObject :Object
Properties:
Name | Type | Description |
---|---|---|
childProducts |
Array.<ConfiguredChildOfferObject> | indicates child offer object. |
description |
String | indicates product group description. |
id |
String | indicates product group id. |
maxQuantity |
String | |
name |
String | indicates product group name. |
PriceInfoObject :Object
Properties:
Name | Type | Description |
---|---|---|
oneTimeCharge |
Number | Offer one time charge value. |
recurringCharge |
Number | Offer recurring charge value. |