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

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

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

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.carts.CartShippingInfoImpl;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.shippingmethods.ShippingRate;
import io.sphere.sdk.taxcategories.TaxCategory;
import io.sphere.sdk.taxcategories.TaxRate;

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

final class OrderShippingInfoImpl extends CartShippingInfoImpl implements OrderShippingInfo {
    private final List deliveries;

    @JsonCreator
    OrderShippingInfoImpl(final String shippingMethodName, final MonetaryAmount price, final ShippingRate shippingRate, final TaxRate taxRate, final Reference taxCategory, final Reference shippingMethod, final List deliveries) {
        super(shippingMethodName, price, shippingRate, taxRate, taxCategory, shippingMethod);
        this.deliveries = deliveries;
    }

    @Override
    public List getDeliveries() {
        return deliveries;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy