UpdateCartShippingAddress Method (String, String, Address, String, String, CalculationModes)

Updates the cart shipping address.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Client
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Client (in Microsoft.Dynamics.Commerce.Runtime.Client.dll)

public Cart UpdateCartShippingAddress(
	string cartId,
	string customerAccountNumber,
	Address shippingAddress,
	string deliveryMode,
	string warehouseId,
	CalculationModes modes
)

Parameters

cartId
Type: System.String
customerAccountNumber
Type: System.String
shippingAddress
Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Address
deliveryMode
Type: System.String
warehouseId
Type: System.String
modes
Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.CalculationModes

Return Value

Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Cart
The updated cart.

This method clears the delivery mode, shipping address and warehouse information from the cart lines.

Community Additions

Show: