All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.orders.Order Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.orders;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.carts.CustomLineItem;
import io.sphere.sdk.carts.InventoryMode;
import io.sphere.sdk.carts.LineItem;
import io.sphere.sdk.carts.TaxedPrice;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.models.Address;
import io.sphere.sdk.models.Reference;

import javax.money.MonetaryAmount;
import java.util.List;
import java.util.Optional;
import java.util.Set;

@JsonDeserialize(as=OrderImpl.class)
public interface Order extends OrderLike {
    public static String typeId(){
        return "order";
    }

    public static TypeReference typeReference() {
        return new TypeReference() {
            @Override
            public String toString() {
                return "TypeReference";
            }
        };
    }

    @Override
    default Reference toReference() {
        return Reference.of(typeId(), getId(), this);
    }

    Optional getOrderNumber();

    InventoryMode getInventoryMode();

    OrderState getOrderState();

    Optional getShipmentState();

    Optional getPaymentState();

    Optional getShippingInfo();

    Set getSyncInfo();

    List getReturnInfo();

    long getLastMessageSequenceNumber();

    @Override
    Optional
getBillingAddress(); @Override Optional getCountry(); @Override Optional getCustomerEmail(); @Override Optional> getCustomerGroup(); @Override Optional getCustomerId(); @Override List getCustomLineItems(); @Override List getLineItems(); @Override Optional
getShippingAddress(); @Override Optional getTaxedPrice(); @Override MonetaryAmount getTotalPrice(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy