io.fruitful.ecomerce.dto.MagentoAddressDto Maven / Gradle / Ivy
package io.fruitful.ecomerce.dto;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class MagentoAddressDto {
@JsonProperty("region")
private String region;
private Long regionId;
private String regionCode;
private String countryId;
@JsonProperty("street")
private List street = new ArrayList<>();
@JsonProperty("postcode")
private String postcode;
@JsonProperty("city")
private String city;
private String firstname;
private String lastname;
private Long customerId;
@JsonProperty("email")
private String email;
@JsonProperty("telephone")
private String telephone;
private Integer sameAsBilling;
@JsonGetter("region_id")
public Long getRegionId() {
return regionId;
}
@JsonSetter("regionId")
public void setRegionId(Long regionId) {
this.regionId = regionId;
}
@JsonGetter("region_code")
public String getRegionCode() {
return regionCode;
}
@JsonSetter("regionCode")
public void setRegionCode(String regionCode) {
this.regionCode = regionCode;
}
@JsonGetter("country_id")
public String getCountryId() {
return countryId;
}
@JsonSetter("countryId")
public void setCountryId(String countryId) {
this.countryId = countryId;
}
@JsonGetter("firstname")
public String getFirstname() {
return firstname;
}
@JsonSetter("firstname")
public void setFirstname(String firstname) {
this.firstname = firstname;
}
@JsonGetter("lastname")
public String getLastname() {
return lastname;
}
@JsonSetter("lastname")
public void setLastname(String lastname) {
this.lastname = lastname;
}
@JsonGetter("customer_id")
public Long getCustomerId() {
return customerId;
}
@JsonSetter("customerId")
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
@JsonGetter("same_as_billing")
public Integer getSameAsBilling() {
return sameAsBilling;
}
@JsonSetter("sameAsBilling")
public void setSameAsBilling(Integer sameAsBilling) {
this.sameAsBilling = sameAsBilling;
}
}