Method | Description | |
---|---|---|
AddItem ( int cartId, int productVariantId, int quantity ) : int | ||
ApplyCoupon ( int cartId, string coupon ) : bool | ||
ChangeBillingAddress ( int cartId, |
||
ChangeItemQuantity ( int cartId, int itemId, int newQuantity ) : void | ||
ChangeShippingAddress ( int cartId, |
||
ChangeShippingMethod ( int cartId, int shippingMethodId ) : void | ||
ExpireCart ( int cartId ) : void | ||
GetCartIdByCustomer ( string email ) : int | ||
GetCartIdBySessionId ( string sessionId ) : int | ||
MigrateCart ( int customerId, string session ) : void | ||
Query ( ) : Query |
||
RemoveItem ( int cartId, int itemId ) : bool | ||
ShoppingCartApi ( LocalApiContext context, ICustomerApi customerApi ) : System.Linq |
Method | Description | |
---|---|---|
GetOrCreateAddress ( int customerId, |
public AddItem ( int cartId, int productVariantId, int quantity ) : int | ||
cartId | int | |
productVariantId | int | |
quantity | int | |
return | int |
public ApplyCoupon ( int cartId, string coupon ) : bool | ||
cartId | int | |
coupon | string | |
return | bool |
public ChangeBillingAddress ( int cartId, |
||
cartId | int | |
address | ||
return | void |
public ChangeItemQuantity ( int cartId, int itemId, int newQuantity ) : void | ||
cartId | int | |
itemId | int | |
newQuantity | int | |
return | void |
public ChangeShippingAddress ( int cartId, |
||
cartId | int | |
address | ||
return | void |
public ChangeShippingMethod ( int cartId, int shippingMethodId ) : void | ||
cartId | int | |
shippingMethodId | int | |
return | void |
public GetCartIdByCustomer ( string email ) : int | ||
string | ||
return | int |
public GetCartIdBySessionId ( string sessionId ) : int | ||
sessionId | string | |
return | int |
public MigrateCart ( int customerId, string session ) : void | ||
customerId | int | |
session | string | |
return | void |
public RemoveItem ( int cartId, int itemId ) : bool | ||
cartId | int | |
itemId | int | |
return | bool |
public ShoppingCartApi ( LocalApiContext context, ICustomerApi customerApi ) : System.Linq | ||
context | LocalApiContext | |
customerApi | ICustomerApi | |
return | System.Linq |