io.sphere.sdk.discountcodes.DiscountCodeInfoImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.discountcodes;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;
final class DiscountCodeInfoImpl extends Base implements DiscountCodeInfo {
private final Reference discountCode;
private final DiscountCodeState state;
@JsonCreator
DiscountCodeInfoImpl(final Reference discountCode, final DiscountCodeState state) {
this.discountCode = discountCode;
this.state = state;
}
public Reference getDiscountCode() {
return discountCode;
}
public DiscountCodeState getState() {
return state;
}
}