io.sphere.sdk.orders.OrderImpl Maven / Gradle / Ivy
package io.sphere.sdk.orders;
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.DefaultModelImpl;
import io.sphere.sdk.models.Reference;
import javax.money.MonetaryAmount;
import java.time.Instant;
import java.util.List;
import java.util.Optional;
import java.util.Set;
final class OrderImpl extends DefaultModelImpl implements Order {
private final Optional billingAddress;
private final Optional country;
private final Optional customerEmail;
private final Optional> customerGroup;
private final Optional customerId;
private final List customLineItems;
private final InventoryMode inventoryMode;
private final long lastMessageSequenceNumber;
private final List lineItems;
private final Optional orderNumber;
private final OrderState orderState;
private final List returnInfo;
private final Optional shipmentState;
private final Optional shippingAddress;
private final Optional shippingInfo;
private final Set syncInfo;
private final Optional taxedPrice;
private final MonetaryAmount totalPrice;
private final Optional paymentState;
protected OrderImpl(final String id, final long version, final Instant createdAt, final Instant lastModifiedAt, final Optional billingAddress, final Optional country, final Optional customerEmail, final Optional> customerGroup, final Optional customerId, final List customLineItems, final InventoryMode inventoryMode, final long lastMessageSequenceNumber, final List lineItems, final Optional orderNumber, final OrderState orderState, final List returnInfo, final Optional shipmentState, final Optional shippingAddress, final Optional shippingInfo, final Set syncInfo, final Optional taxedPrice, final MonetaryAmount totalPrice, final Optional paymentState) {
super(id, version, createdAt, lastModifiedAt);
this.billingAddress = billingAddress;
this.country = country;
this.customerEmail = customerEmail;
this.customerGroup = customerGroup;
this.customerId = customerId;
this.customLineItems = customLineItems;
this.inventoryMode = inventoryMode;
this.lastMessageSequenceNumber = lastMessageSequenceNumber;
this.lineItems = lineItems;
this.orderNumber = orderNumber;
this.orderState = orderState;
this.returnInfo = returnInfo;
this.shipmentState = shipmentState;
this.shippingAddress = shippingAddress;
this.shippingInfo = shippingInfo;
this.syncInfo = syncInfo;
this.taxedPrice = taxedPrice;
this.totalPrice = totalPrice;
this.paymentState = paymentState;
}
@Override
public Optional getBillingAddress() {
return billingAddress;
}
@Override
public Optional getCountry() {
return country;
}
@Override
public Optional getCustomerEmail() {
return customerEmail;
}
@Override
public Optional> getCustomerGroup() {
return customerGroup;
}
@Override
public Optional getCustomerId() {
return customerId;
}
@Override
public List getCustomLineItems() {
return customLineItems;
}
@Override
public InventoryMode getInventoryMode() {
return inventoryMode;
}
@Override
public long getLastMessageSequenceNumber() {
return lastMessageSequenceNumber;
}
@Override
public List getLineItems() {
return lineItems;
}
@Override
public Optional getOrderNumber() {
return orderNumber;
}
@Override
public OrderState getOrderState() {
return orderState;
}
@Override
public List getReturnInfo() {
return returnInfo;
}
@Override
public Optional getShipmentState() {
return shipmentState;
}
@Override
public Optional getShippingAddress() {
return shippingAddress;
}
@Override
public Optional getShippingInfo() {
return shippingInfo;
}
@Override
public Set getSyncInfo() {
return syncInfo;
}
@Override
public Optional getTaxedPrice() {
return taxedPrice;
}
@Override
public MonetaryAmount getTotalPrice() {
return totalPrice;
}
@Override
public Optional getPaymentState() {
return paymentState;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy