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

io.sphere.sdk.customergroups.CustomerGroup Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
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