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

io.sphere.sdk.shippingmethods.ZoneRateImpl Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.zones.Zone;

import java.util.List;

/**
 * Defines shipping rates (prices) for a specific zone.
 *
 * @see ShippingMethod#getZoneRates()
 * @see ShippingMethodDraft#getZoneRates()
 */
final class ZoneRateImpl extends Base implements ZoneRate {
    private final Reference zone;
    private final List shippingRates;

    @JsonCreator
    ZoneRateImpl(final Reference zone, final List shippingRates) {
        this.zone = zone;
        this.shippingRates = shippingRates;
    }

    public Reference getZone() {
        return zone;
    }

    public List getShippingRates() {
        return shippingRates;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy