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

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

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.customergroups;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.FactoryMethod;
import io.sphere.sdk.annotations.ResourceDraftValue;
import io.sphere.sdk.models.WithKey;
import io.sphere.sdk.types.CustomDraft;
import io.sphere.sdk.types.CustomFieldsDraft;

import javax.annotation.Nullable;

/**
 * 

Draft for a customer group.

* * @see io.sphere.sdk.customergroups.commands.CustomerGroupCreateCommand * @see CustomerGroup */ @JsonDeserialize(as = CustomerGroupDraftDsl.class) @ResourceDraftValue( factoryMethods = @FactoryMethod(parameterNames = "groupName")) public interface CustomerGroupDraft extends WithKey ,CustomDraft{ @Override @Nullable String getKey(); String getGroupName(); @Nullable @Override CustomFieldsDraft getCustom(); static CustomerGroupDraft of(final String groupName) { return CustomerGroupDraftDsl.of(groupName); } static CustomerGroupDraft of(final String groupName, @Nullable final String key) { return CustomerGroupDraftDsl.of(groupName).withKey(key); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy