package ca.canadapost.core.data.db.cupboard.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import qa.d;

@JsonIgnoreProperties(ignoreUnknown = true)
/* loaded from: classes.dex */
public class OutletAddress {
    public String city;
    public String latitude;
    public String longitude;
    public String postalCode;
    public String province;
    public String streetFullListing;

    public String addressLine1() {
        StringBuilder sb2 = new StringBuilder();
        String str = this.streetFullListing;
        if (str != null) {
            sb2.append(d.b(str.trim()));
        }
        return sb2.toString();
    }

    public String addressLine2() {
        StringBuilder sb2 = new StringBuilder();
        String str = this.city;
        if (str != null) {
            sb2.append(d.b(str.trim()));
            sb2.append(", ");
        }
        String str2 = this.province;
        if (str2 != null) {
            sb2.append(str2.trim());
            sb2.append(", ");
        }
        String str3 = this.postalCode;
        if (str3 != null) {
            sb2.append(str3.trim());
        }
        return sb2.toString();
    }

    public String toString() {
        StringBuilder sb2 = new StringBuilder();
        String str = this.streetFullListing;
        if (str != null) {
            sb2.append(d.b(str.trim()));
            sb2.append("\n");
        }
        String str2 = this.city;
        if (str2 != null) {
            sb2.append(d.b(str2.trim()));
            sb2.append(", ");
        }
        String str3 = this.province;
        if (str3 != null) {
            sb2.append(str3.trim());
            sb2.append(", ");
        }
        String str4 = this.postalCode;
        if (str4 != null) {
            sb2.append(str4.trim());
        }
        return sb2.toString();
    }

    public String toStringUpperCase() {
        StringBuilder sb2 = new StringBuilder();
        String str = this.streetFullListing;
        if (str != null) {
            sb2.append(str.trim());
            sb2.append("\n");
        }
        String str2 = this.city;
        if (str2 != null) {
            sb2.append(d.b(str2.trim()));
            sb2.append(", ");
        }
        String str3 = this.province;
        if (str3 != null) {
            sb2.append(str3.trim());
            sb2.append(", ");
        }
        String str4 = this.postalCode;
        if (str4 != null) {
            sb2.append(str4.trim());
        }
        return sb2.toString();
    }
}
