Android Open Source - meets-android Meets Cart






From Project

Back to project page meets-android.

License

The source code is released under:

MIT License

If you think the Android project meets-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.theagilemonkeys.meets.models;
//from www.  j  av  a2  s  .c  om
import com.theagilemonkeys.meets.models.base.MeetsModel;

import java.io.Serializable;
import java.util.List;

/**
 * Android Meets SDK
 * Original work Copyright (c) 2014 [TheAgileMonkeys]
 *
 * @author ??lvaro Lpez Espinosa
 */
public interface MeetsCart extends MeetsModel<MeetsCart> {
    List<Item> getItems();
    List<Shipping> getShippingMethods();
    List<Payment> getPaymentMethods();
    double getItemsTotalQuantity();
    double getSubtotal();
    double getTotal();
    String getOrderId();

    MeetsCart create();

    MeetsCart addItem(MeetsProduct product, double quantity);
    MeetsCart addItem(Item item);
    MeetsCart addItems(List<MeetsProduct> products, List<Double> quantities);
    MeetsCart addItems(List<Item> items);

    MeetsCart removeItem(int productId, double quantity);
    /**
     * Remove all product units from the cart
     * @param productId
     * @return
     */
    MeetsCart removeItem(int productId);
    MeetsCart removeItems(List<Integer> productIds, List<Double> quantities);
    MeetsCart removeItems(List<Integer> productIds);

    MeetsCart attachCustomer(MeetsCustomer customer);
    MeetsCart attachCustomerAsGuest(MeetsCustomer customer);
    MeetsCart attachAddresses(MeetsAddress billingAddress, MeetsAddress shippingAddress);
    MeetsCart attachShippingMethod(Shipping shipping);
    MeetsCart attachPaymentMethod(Payment payment);
    MeetsCart order();

    MeetsCart fetchShippingMethods();
    MeetsCart fetchPaymentMethods();

    interface Item extends MeetsModel<Item> {
        Item fillFromProduct(MeetsProduct product);
        Item setQuantity(double quantity);
        Item incQuantity(double quantityIncrement);
        double getQuantity();
        String getName();
        String getDescription();
        double getPrice();
        int getProductId();
        String getProductSku();
        MeetsProduct getRelatedProduct();

        Item setProductId(int productId);

        Item fetchRelatedProduct();
    }

    interface Payment extends Serializable {
        String getTitle();
        String getCode();
        Payment setCode(String methodCode);
        Payment setPoNumber(String poNumber);
        Payment setCcCid(String ccCid);
        Payment setCcOwner(String ccOwner);
        Payment setCcNumber(String ccNumber);
        Payment setCcType(String ccType);
        Payment setCcExpYear(String ccExpYear);
        Payment setCcExpMonth(String ccExpMonth);
        Payment setPaymillToken(String token);
    }

    interface Shipping extends Serializable {
        String getCarrierCode();
        String getCarrierTitle();
        String getCode();
        Shipping setCode(String code);
        String getTitle();
        String getDescription();
        double getPrice();
    }
}




Java Source Code List

com.theagilemonkeys.meets.ApiMethodModelHelperInterface.java
com.theagilemonkeys.meets.ApiMethodModelHelper.java
com.theagilemonkeys.meets.ApiMethod.java
com.theagilemonkeys.meets.MeetsSpiceService.java
com.theagilemonkeys.meets.Meets.java
com.theagilemonkeys.meets.magento.RestApiMethod.java
com.theagilemonkeys.meets.magento.SoapApiMethod.java
com.theagilemonkeys.meets.magento.methods.CatalogCategoryInfo.java
com.theagilemonkeys.meets.magento.methods.CatalogCategoryLevel.java
com.theagilemonkeys.meets.magento.methods.CatalogCategoryTree.java
com.theagilemonkeys.meets.magento.methods.CatalogInventoryStockItemList.java
com.theagilemonkeys.meets.magento.methods.CatalogProductAttributeOptions.java
com.theagilemonkeys.meets.magento.methods.CatalogProductInfo.java
com.theagilemonkeys.meets.magento.methods.CatalogProductList.java
com.theagilemonkeys.meets.magento.methods.CustomerAddressCreate.java
com.theagilemonkeys.meets.magento.methods.CustomerAddressDelete.java
com.theagilemonkeys.meets.magento.methods.CustomerAddressInfo.java
com.theagilemonkeys.meets.magento.methods.CustomerAddressList.java
com.theagilemonkeys.meets.magento.methods.CustomerAddressUpdate.java
com.theagilemonkeys.meets.magento.methods.CustomerCustomerCreate.java
com.theagilemonkeys.meets.magento.methods.CustomerCustomerInfo.java
com.theagilemonkeys.meets.magento.methods.CustomerCustomerList.java
com.theagilemonkeys.meets.magento.methods.CustomerCustomerUpdate.java
com.theagilemonkeys.meets.magento.methods.Products.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartCreate.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartCustomerAddresses.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartCustomerSet.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartInfo.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartOrder.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartPaymentList.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartPaymentMethod.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartProductAdd.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartProductRemove.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartShippingList.java
com.theagilemonkeys.meets.magento.methods.ShoppingCartShippingMethod.java
com.theagilemonkeys.meets.magento.models.MageMeetsAddress.java
com.theagilemonkeys.meets.magento.models.MageMeetsCartItem.java
com.theagilemonkeys.meets.magento.models.MageMeetsCartPayment.java
com.theagilemonkeys.meets.magento.models.MageMeetsCartShipping.java
com.theagilemonkeys.meets.magento.models.MageMeetsCart.java
com.theagilemonkeys.meets.magento.models.MageMeetsCategory.java
com.theagilemonkeys.meets.magento.models.MageMeetsCustomer.java
com.theagilemonkeys.meets.magento.models.MageMeetsProduct.java
com.theagilemonkeys.meets.magento.models.MageStockInfoList.java
com.theagilemonkeys.meets.magento.models.MageStockItem.java
com.theagilemonkeys.meets.magento.models.base.MageMeetsCollectionPojos.java
com.theagilemonkeys.meets.magento.models.base.MageMeetsCollection.java
com.theagilemonkeys.meets.magento.models.base.MageMeetsFactory.java
com.theagilemonkeys.meets.magento.models.base.MageMeetsModel.java
com.theagilemonkeys.meets.models.MeetsAddress.java
com.theagilemonkeys.meets.models.MeetsCart.java
com.theagilemonkeys.meets.models.MeetsCategory.java
com.theagilemonkeys.meets.models.MeetsCustomer.java
com.theagilemonkeys.meets.models.MeetsProduct.java
com.theagilemonkeys.meets.models.MeetsStock.java
com.theagilemonkeys.meets.models.base.MeetsCollectionPojos.java
com.theagilemonkeys.meets.models.base.MeetsCollection.java
com.theagilemonkeys.meets.models.base.MeetsFactory.java
com.theagilemonkeys.meets.models.base.MeetsListener.java
com.theagilemonkeys.meets.models.base.MeetsModel.java
com.theagilemonkeys.meets.utils.Copier.java
com.theagilemonkeys.meets.utils.StringUtils.java
com.theagilemonkeys.meets.utils.soap.Serializable.java
com.theagilemonkeys.meets.utils.soap.SoapParser.java