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

com.yoti.api.client.aml.AmlAddress Maven / Gradle / Ivy

The newest version!
package com.yoti.api.client.aml;

import com.fasterxml.jackson.annotation.JsonProperty;

public class AmlAddress {

    @JsonProperty("post_code")
    private final String postCode;

    @JsonProperty("country")
    private final String country;

    public AmlAddress(String postCode, String country) {
        this.postCode = postCode;
        this.country = country;
    }

    public static AmlAddress.Builder builder() {
        return new AmlAddress.Builder();
    }

    public String getPostCode() {
        return postCode;
    }

    public String getCountry() {
        return country;
    }

    public static class Builder {

        private String postCode;
        private String country;

        public Builder withPostCode(String postCode) {
            this.postCode = postCode;
            return this;
        }

        public Builder withCountry(String country) {
            this.country = country;
            return this;
        }

        public AmlAddress build() {
            return new AmlAddress(postCode, country);
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy