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

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

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

import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.carts.TaxedPrice;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.models.Address;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;

import javax.annotation.Nullable;
import javax.money.MonetaryAmount;
import java.time.ZonedDateTime;
import java.util.List;

final class OrderImportDraftImpl extends Base implements OrderImportDraft {
    @Nullable
    private final String orderNumber;
    @Nullable
    private final String customerId;
    @Nullable
    private final String customerEmail;
    private final List lineItems;
    private final List customLineItems;
    private final MonetaryAmount totalPrice;
    @Nullable
    private final TaxedPrice taxedPrice;
    @Nullable
    private final Address shippingAddress;
    @Nullable
    private final Address billingAddress;
    @Nullable
    private final Reference customerGroup;
    @Nullable
    private final CountryCode country;
    private final OrderState orderState;
    @Nullable
    private final ShipmentState shipmentState;
    @Nullable
    private final PaymentState paymentState;
    @Nullable
    private final OrderShippingInfo shippingInfo;
    @Nullable
    private final ZonedDateTime completedAt;

    public OrderImportDraftImpl(final Address billingAddress, final String orderNumber, final String customerId, final String customerEmail, final List lineItems, final List customLineItems, final MonetaryAmount totalPrice, final TaxedPrice taxedPrice, final Address shippingAddress, final Reference customerGroup, final CountryCode country, final OrderState orderState, final ShipmentState shipmentState, final PaymentState paymentState, final OrderShippingInfo shippingInfo, final ZonedDateTime completedAt) {
        this.billingAddress = billingAddress;
        this.orderNumber = orderNumber;
        this.customerId = customerId;
        this.customerEmail = customerEmail;
        this.lineItems = lineItems;
        this.customLineItems = customLineItems;
        this.totalPrice = totalPrice;
        this.taxedPrice = taxedPrice;
        this.shippingAddress = shippingAddress;
        this.customerGroup = customerGroup;
        this.country = country;
        this.orderState = orderState;
        this.shipmentState = shipmentState;
        this.paymentState = paymentState;
        this.shippingInfo = shippingInfo;
        this.completedAt = completedAt;
    }

    @Override
    @Nullable
    public Address getBillingAddress() {
        return billingAddress;
    }

    @Override
    public ZonedDateTime getCompletedAt() {
        return completedAt;
    }

    @Override
    @Nullable
    public CountryCode getCountry() {
        return country;
    }

    @Override
    @Nullable
    public String getCustomerEmail() {
        return customerEmail;
    }

    @Override
    @Nullable
    public Reference getCustomerGroup() {
        return customerGroup;
    }

    @Override
    @Nullable
    public String getCustomerId() {
        return customerId;
    }

    @Override
    public List getCustomLineItems() {
        return customLineItems;
    }

    @Override
    public List getLineItems() {
        return lineItems;
    }

    @Override
    @Nullable
    public String getOrderNumber() {
        return orderNumber;
    }

    @Override
    public OrderState getOrderState() {
        return orderState;
    }

    @Override
    @Nullable
    public PaymentState getPaymentState() {
        return paymentState;
    }

    @Override
    @Nullable
    public ShipmentState getShipmentState() {
        return shipmentState;
    }

    @Override
    @Nullable
    public Address getShippingAddress() {
        return shippingAddress;
    }

    @Override
    @Nullable
    public OrderShippingInfo getShippingInfo() {
        return shippingInfo;
    }

    @Override
    @Nullable
    public TaxedPrice getTaxedPrice() {
        return taxedPrice;
    }

    @Override
    public MonetaryAmount getTotalPrice() {
        return totalPrice;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy