com.shopify.model.Metafield Maven / Gradle / Ivy
package com.shopify.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.joda.time.DateTime;
import com.shopify.model.adapters.DateTimeAdapter;
import com.shopify.model.adapters.MetafieldValueTypeAdapter;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Metafield {
private String id;
private String key;
private String value;
@XmlElement(name = "value_type")
@XmlJavaTypeAdapter(MetafieldValueTypeAdapter.class)
private MetafieldValueType valueType;
private String namespace;
@XmlElement(name = "owner_id")
private String ownerId;
@XmlElement(name = "owner_resource")
private String ownerResource;
@XmlElement(name = "created_at")
@XmlJavaTypeAdapter(DateTimeAdapter.class)
private DateTime createdAt;
@XmlElement(name = "updated_at")
@XmlJavaTypeAdapter(DateTimeAdapter.class)
private DateTime updatedAt;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public MetafieldValueType getValueType() {
return valueType;
}
public void setValueType(MetafieldValueType valueType) {
this.valueType = valueType;
}
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public String getOwnerId() {
return ownerId;
}
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
public String getOwnerResource() {
return ownerResource;
}
public void setOwnerResource(String ownerResource) {
this.ownerResource = ownerResource;
}
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(DateTime createdAt) {
this.createdAt = createdAt;
}
public DateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy