public override CustomFieldRef[] GetAddressCustomFields(LocationDTO location)
 {
     return new CustomFieldRef[]
     {
         new StringCustomFieldRef
         {
             scriptId="custrecord_l56_comuna",
             value = this.getComuna(location?.State ?? "Aisén")
         }
     };
 }
 public override CustomFieldRef[] GetAddressCustomFields(LocationDTO location)
 {
     return new CustomFieldRef[]
     {
         new StringCustomFieldRef
         {
             scriptId = "custrecord_l54_provincia",
             value = this.getProvincia(location?.State ?? "Capital Federal")
         }
     };
 }
 public abstract CustomFieldRef[] GetAddressCustomFields(LocationDTO location);
 public void TransformAddress(Address netSuiteAddress, LocationDTO location, NetSuiteApi api)
 {
     netSuiteAddress.addr1 = location.StreetName + " " + location.StreetNumber;
     netSuiteAddress.country = getCountry(api).Country;
     netSuiteAddress.countrySpecified = true;
     netSuiteAddress.customFieldList = getCountry(api).GetAddressCustomFields(location);
     netSuiteAddress.attention = null;
     netSuiteAddress.addr2 = location.AddressNotes;
 }
 public override CustomFieldRef[] GetAddressCustomFields(LocationDTO location)
 {
     return new CustomFieldRef[] {};
 }
 public void TransformAddress(Address netSuiteAddress, LocationDTO location, NetSuiteApi api)
 {
     netSuiteAddress.state = location.State;
     netSuiteAddress.country = Country._mexico;
     netSuiteAddress.countrySpecified = true;
 }