Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public AccountMemberBuilder WithAddress( AddressBuilder builder ) {
     return WithAddress(builder.Build());
 }
Exemplo n.º 3
0
 public AccountMemberBuilder WithAddress(AddressBuilder builder)
 {
     return(WithAddress(builder.Build()));
 }