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

io.sphere.sdk.products.ProductVariantAvailabilityImpl Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.products;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.sphere.sdk.models.Base;

import java.util.Optional;

class ProductVariantAvailabilityImpl extends Base implements ProductVariantAvailability {
    @JsonProperty("isOnStock")
    private final boolean isOnStock;
    private final Optional restockableInDays;

    ProductVariantAvailabilityImpl(final boolean isOnStock, final Optional restockableInDays) {
        this.isOnStock = isOnStock;
        this.restockableInDays = restockableInDays;
    }

    public boolean isOnStock() {
        return isOnStock;
    }

    public Optional getRestockableInDays() {
        return restockableInDays;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy