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

io.sphere.sdk.carts.CartDraft Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.carts;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.models.Address;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.types.CustomDraft;
import io.sphere.sdk.types.CustomFieldsDraft;

import javax.annotation.Nullable;
import javax.money.CurrencyUnit;
import java.util.List;

/**
 * 

Draft for {@link Cart} creation.

* * @see io.sphere.sdk.carts.commands.CartCreateCommand * @see CartDraftBuilder */ @JsonDeserialize(as = CartDraftDsl.class) public interface CartDraft extends CustomDraft { CurrencyUnit getCurrency(); @Nullable String getCustomerId(); @Nullable CountryCode getCountry(); @Nullable InventoryMode getInventoryMode(); @Nullable String getCustomerEmail(); @Nullable Address getBillingAddress(); @Nullable List getCustomLineItems(); @Nullable List getLineItems(); @Nullable Address getShippingAddress(); @Nullable Reference getShippingMethod(); @Nullable CustomFieldsDraft getCustom(); static CartDraftDsl of(final CurrencyUnit currency) { return CartDraftDsl.of(currency); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy