Global

Methods

addToCartProcessResponse(response)

This function is used to process addToCart response
Parameters:
Name Type Description
response object Response Object from SDK call.

getOfferDetailsProcessResponse(response)

This function is used to process getOfferDetails response
Parameters:
Name Type Description
response object Response Object from SDK call.

saveAddonsProcessResponse(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.

ConfiguredOfferObject :Object

Properties:
Name Type Description
offer OfferObject Offer object.
paymentType String selected payment type.

FilterData :Object

Properties:
Name Type Description
filterSection String filter group.
filters FilterDetails adjustment value.

FilterDetails :Object

Properties:
Name Type Description
filterType String filter type checkbox/radio.
filterName String filter name value.
filterId String filter id value.
checked Boolean default value.

MediaSourceObject :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.

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}
cartItemGroups Array child product groups.
priceInfo Object total prices for this offer only. eg: {oneTimeCharge:100, recurringCharge:10}
productCode String product 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.

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>

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.

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.<OfferObject> indicates child offer object.
description String indicates product group description.
id String indicates product group id.
maxQuantity String
name String indicates product group name.

Promotion :Object

Properties:
Name Type Description
promoCode String promotion code.
adjustment Object adjustment value.