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

io.sphere.sdk.orders.ParcelDraftImpl 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.models.Base;

import javax.annotation.Nullable;

final class ParcelDraftImpl extends Base implements ParcelDraft {
    @Nullable
    private final ParcelMeasurements measurements;
    @Nullable
    private final TrackingData trackingData;

    @JsonCreator
    ParcelDraftImpl(@Nullable final ParcelMeasurements measurements, @Nullable final TrackingData trackingData) {
        this.measurements = measurements;
        this.trackingData = trackingData;
    }

    @Override
    @Nullable
    public ParcelMeasurements getMeasurements() {
        return measurements;
    }

    @Override
    @Nullable
    public TrackingData getTrackingData() {
        return trackingData;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy