class
CurrentCart extends AnyRef
Instance Constructors
-
new
CurrentCart(cartService: CartService, orderService: OrderService, cartCurrency: Currency, inventoryMode: InventoryMode)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
addCustomLineItem(name: LocalizedString, money: Money, slug: String, taxCategory: ReferenceId[TaxCategory], quantity: Int): Cart
-
def
addCustomLineItem(name: LocalizedString, money: Money, slug: String, taxCategory: ReferenceId[TaxCategory]): Cart
-
def
addCustomLineItemAsync(name: LocalizedString, money: Money, slug: String, taxCategory: ReferenceId[TaxCategory], quantity: Int): Promise[SphereResult[Cart]]
-
def
addCustomLineItemAsync(name: LocalizedString, money: Money, slug: String, taxCategory: ReferenceId[TaxCategory]): Promise[SphereResult[Cart]]
-
def
addLineItem(productId: String, quantity: Int): Cart
-
def
addLineItem(productId: String, variantId: Int, quantity: Int): Cart
-
def
addLineItemAsync(productId: String, quantity: Int): Promise[SphereResult[Cart]]
-
def
addLineItemAsync(productId: String, variantId: Int, quantity: Int): Promise[SphereResult[Cart]]
-
final
def
asInstanceOf[T0]: T0
-
def
clearCustomerId(): Cart
-
def
clearCustomerIdAsync(): Promise[SphereResult[Cart]]
-
def
clearShippingAddress(): Cart
-
def
clearShippingAddressAsync(): Promise[SphereResult[Cart]]
-
def
clone(): AnyRef
-
def
createCartSnapshotId(): String
-
def
createOrder(createOrderBuilder: CreateOrderBuilder): Order
-
def
createOrder(paymentState: PaymentState): Order
-
def
createOrder(cartSnapshotId: String, paymentState: PaymentState): Order
-
def
createOrderAsync(createOrderBuilder: CreateOrderBuilder): Promise[SphereResult[Order]]
-
def
createOrderAsync(paymentState: PaymentState): Promise[SphereResult[Order]]
-
def
createOrderAsync(cartSnapshotId: String, paymentState: PaymentState): Promise[SphereResult[Order]]
-
def
decreaseLineItemQuantity(lineItemId: String, quantity: Int): Cart
-
def
decreaseLineItemQuantityAsync(lineItemId: String, quantity: Int): Promise[SphereResult[Cart]]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
fetch(): Cart
-
def
fetchAsync(): Promise[Cart]
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
getQuantity(): Int
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
isSafeToCreateOrder(cartSnapshotId: String): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
recalculate(): Cart
-
def
recalculateAsync(): Promise[SphereResult[Cart]]
-
def
removeLineItem(lineItemId: String): Cart
-
def
removeLineItemAsync(lineItemId: String): Promise[SphereResult[Cart]]
-
def
setBillingAddress(address: Address): Cart
-
def
setBillingAddressAsync(address: Address): Promise[SphereResult[Cart]]
-
def
setCountry(country: CountryCode): Cart
-
def
setCountryAsync(country: CountryCode): Promise[SphereResult[Cart]]
-
def
setCustomShippingMethod(shippingMethodName: String, shippingRate: ShippingRate, taxCategory: ReferenceId[TaxCategory]): Cart
-
def
setCustomShippingMethodAsync(shippingMethodName: String, shippingRate: ShippingRate, taxCategory: ReferenceId[TaxCategory]): Promise[SphereResult[Cart]]
-
def
setCustomerEmail(email: String): Cart
-
def
setCustomerEmailAsync(email: String): Promise[SphereResult[Cart]]
-
def
setCustomerId(customerId: String): Cart
-
def
setCustomerIdAsync(customerId: String): Promise[SphereResult[Cart]]
-
def
setLineItemQuantity(lineItemId: String, quantity: Int): Cart
-
def
setLineItemQuantityAsync(lineItemId: String, quantity: Int): Promise[SphereResult[Cart]]
-
def
setShippingAddress(address: Address): Cart
-
def
setShippingAddressAsync(address: Address): Promise[SphereResult[Cart]]
-
def
setShippingMethod(shippingMethod: ReferenceId[ShippingMethod]): Cart
-
def
setShippingMethodAsync(shippingMethod: ReferenceId[ShippingMethod]): Promise[SphereResult[Cart]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
update(update: CartUpdate): Cart
-
def
updateAsync(update: CartUpdate): Promise[SphereResult[Cart]]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any