io.sphere.sdk.shippingmethods.ShippingMethodImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.shippingmethods;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.taxcategories.TaxCategory;
import io.sphere.sdk.types.CustomFields;
import java.lang.Boolean;
import java.lang.Deprecated;
import java.lang.Long;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated(
value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
comments = "Generated from: io.sphere.sdk.shippingmethods.ShippingMethod"
)
final class ShippingMethodImpl extends Base implements ShippingMethod {
@JsonProperty("isDefault")
private Boolean _default;
private ZonedDateTime createdAt;
@Nullable
private CustomFields custom;
@Nullable
private String description;
private String id;
@Nullable
private String key;
private ZonedDateTime lastModifiedAt;
@Nullable
private LocalizedString localizedDescription;
@Nullable
private LocalizedString localizedName;
private String name;
@Nullable
private String predicate;
private Reference taxCategory;
private Long version;
private List zoneRates;
@JsonCreator
ShippingMethodImpl(@JsonProperty("isDefault") final Boolean _default,
final ZonedDateTime createdAt, @Nullable final CustomFields custom,
@Nullable final String description, final String id, @Nullable final String key,
final ZonedDateTime lastModifiedAt, @Nullable final LocalizedString localizedDescription,
@Nullable final LocalizedString localizedName, final String name,
@Nullable final String predicate, final Reference taxCategory,
final Long version, final List zoneRates) {
this._default = _default;
this.createdAt = createdAt;
this.custom = custom;
this.description = description;
this.id = id;
this.key = key;
this.lastModifiedAt = lastModifiedAt;
this.localizedDescription = localizedDescription;
this.localizedName = localizedName;
this.name = name;
this.predicate = predicate;
this.taxCategory = taxCategory;
this.version = version;
this.zoneRates = zoneRates;
}
@JsonProperty("isDefault")
public Boolean isDefault() {
return _default;
}
public ZonedDateTime getCreatedAt() {
return createdAt;
}
@Nullable
public CustomFields getCustom() {
return custom;
}
/**
*
* @deprecated This method will be removed with the next major SDK update.
*/
@Nullable
@Deprecated
public String getDescription() {
return description;
}
public String getId() {
return id;
}
@Nullable
public String getKey() {
return key;
}
public ZonedDateTime getLastModifiedAt() {
return lastModifiedAt;
}
@Nullable
public LocalizedString getLocalizedDescription() {
return localizedDescription;
}
@Nullable
public LocalizedString getLocalizedName() {
return localizedName;
}
public String getName() {
return name;
}
@Nullable
public String getPredicate() {
return predicate;
}
public Reference getTaxCategory() {
return taxCategory;
}
public Long getVersion() {
return version;
}
public List getZoneRates() {
return zoneRates;
}
}