Home > @poq/sdk-sfcc > CartContractMigrator
Migrator aims to align the salesforce contracts with the Poq contracts.
Signature:
export declare class CartContractMigrator implements ICartContractMigrator
Implements: ICartContractMigrator
Constructor | Modifiers | Description |
---|---|---|
(constructor)(productClient) | Constructs a new instance of the CartContractMigrator class |
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. |