public Address ToSDKAddress() { if (sdkAddress != null) { return(sdkAddress); } else if (apiAddress != null) { AddressBuilder builder = AddressBuilder.NewAddress() .WithAddress1(apiAddress.Address1) .WithAddress2(apiAddress.Address2) .WithCity(apiAddress.City) .WithCountry(apiAddress.Country) .WithState(apiAddress.State) .WithZipCode(apiAddress.Zipcode); return(builder.Build()); } else { return(null); } }
public AccountMemberBuilder WithAddress(AddressBuilder builder) { return(WithAddress(builder.Build())); }