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

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

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

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

import javax.annotation.Nullable;

class ProductVariantAvailabilityImpl extends Base implements ProductVariantAvailability {
    @JsonProperty("isOnStock")
    private final Boolean isOnStock;
    @Nullable
    private final Integer restockableInDays;

    @JsonCreator
    ProductVariantAvailabilityImpl(final Boolean isOnStock, @Nullable final Integer restockableInDays) {
        this.isOnStock = isOnStock;
        this.restockableInDays = restockableInDays;
    }

    public Boolean isOnStock() {
        return isOnStock;
    }

    @Nullable
    public Integer getRestockableInDays() {
        return restockableInDays;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy