io.sphere.sdk.customergroups.CustomerGroup Maven / Gradle / Ivy
package io.sphere.sdk.customergroups;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.models.DefaultModel;
import io.sphere.sdk.models.Reference;
import java.util.Optional;
@JsonDeserialize(as = CustomerGroupImpl.class)
public interface CustomerGroup extends DefaultModel {
String getName();
@Override
default Reference toReference() {
return Reference.of(typeId(), getId(), this);
}
public static String typeId(){
return "customer-group";
}
public static TypeReference typeReference(){
return new TypeReference() {
@Override
public String toString() {
return "TypeReference";
}
};
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy