Poq.SDK.Node

Home > @poq/sdk-sfcc > CartContractMigrator > generateCartResponse

CartContractMigrator.generateCartResponse() method

Method transforms the salesforce basket object into Cart with Products contract of the Poq.

Signature:

generateCartResponse(_authInfo: AuthInfo, _customerId: string, appIdentifier: string, _poqUserId: string, basket: Basket, currencyCode: string, _isGuest: boolean, _locale?: string): Promise<PoqResponse<CartWithProductsResponse>>;

Parameters

Parameter Type Description
_authInfo AuthInfo  
_customerId string  
appIdentifier string The unique guid v4 app identifier.
_poqUserId string  
basket Basket Basket item of the salesforce platform.
currencyCode string The ISO currency code is the three-letter alphabetic code that represent the various currencies used throughout the world.
_isGuest boolean  
_locale string (Optional)

Returns:

Promise<PoqResponse<CartWithProductsResponse>>

Transformed Cart Response.