Poq.SDK.Node

Home > @poq/sdk-sfcc > CartContractMigrator

CartContractMigrator class

Migrator aims to align the salesforce contracts with the Poq contracts.

Signature:

export declare class CartContractMigrator implements ICartContractMigrator 

Implements: ICartContractMigrator

Constructors

Constructor Modifiers Description
(constructor)(productClient)   Constructs a new instance of the CartContractMigrator class

Methods

Method Modifiers Description
generateCartResponse(_authInfo, _customerId, appIdentifier, _poqUserId, basket, currencyCode, _isGuest, _locale)   Method transforms the salesforce basket object into Cart with Products contract of the Poq.
generateSfccProductItem(_appIdentifier, addToCartParam)   Method transform cart request into product item.