regis

<back to all web services

SyncAddressRequest

Requires Authentication
Required permission:SyncBioAndAddresses
The following routes are available for this service:
POST/Sync/Address
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SyncAddressRequest
    {
        public Integer regent_id = null;
        public String addr1 = null;
        public String addr2 = null;
        public String city = null;
        public String state = null;
        public String country = null;
        public String code = null;
        public String email = null;
        public String phone_home = null;
        public String phone_bus = null;
        public String phone_cell = null;
        public String queued_by_username = null;
        public Boolean queued_by_CRM = null;
        public Boolean queued_by_RE = null;
        public Boolean queued_by_Sugar = null;
        public Boolean queued_by_REGIS = null;
        
        public Integer getRegentId() { return regent_id; }
        public SyncAddressRequest setRegentId(Integer value) { this.regent_id = value; return this; }
        public String getAddr1() { return addr1; }
        public SyncAddressRequest setAddr1(String value) { this.addr1 = value; return this; }
        public String getAddr2() { return addr2; }
        public SyncAddressRequest setAddr2(String value) { this.addr2 = value; return this; }
        public String getCity() { return city; }
        public SyncAddressRequest setCity(String value) { this.city = value; return this; }
        public String getState() { return state; }
        public SyncAddressRequest setState(String value) { this.state = value; return this; }
        public String getCountry() { return country; }
        public SyncAddressRequest setCountry(String value) { this.country = value; return this; }
        public String getCode() { return code; }
        public SyncAddressRequest setCode(String value) { this.code = value; return this; }
        public String getEmail() { return email; }
        public SyncAddressRequest setEmail(String value) { this.email = value; return this; }
        public String getPhoneHome() { return phone_home; }
        public SyncAddressRequest setPhoneHome(String value) { this.phone_home = value; return this; }
        public String getPhoneBus() { return phone_bus; }
        public SyncAddressRequest setPhoneBus(String value) { this.phone_bus = value; return this; }
        public String getPhoneCell() { return phone_cell; }
        public SyncAddressRequest setPhoneCell(String value) { this.phone_cell = value; return this; }
        public String getQueuedByUsername() { return queued_by_username; }
        public SyncAddressRequest setQueuedByUsername(String value) { this.queued_by_username = value; return this; }
        public Boolean isQueuedByCrm() { return queued_by_CRM; }
        public SyncAddressRequest setQueuedByCrm(Boolean value) { this.queued_by_CRM = value; return this; }
        public Boolean isQueuedByRe() { return queued_by_RE; }
        public SyncAddressRequest setQueuedByRe(Boolean value) { this.queued_by_RE = value; return this; }
        public Boolean isQueuedBySugar() { return queued_by_Sugar; }
        public SyncAddressRequest setQueuedBySugar(Boolean value) { this.queued_by_Sugar = value; return this; }
        public Boolean isQueuedByRegis() { return queued_by_REGIS; }
        public SyncAddressRequest setQueuedByRegis(Boolean value) { this.queued_by_REGIS = value; return this; }
    }

    public static class SyncBioAndAddressResponse
    {
        public ResponseStatus responseStatus = null;
        public Boolean successfull = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public SyncBioAndAddressResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public Boolean isSuccessfull() { return successfull; }
        public SyncBioAndAddressResponse setSuccessfull(Boolean value) { this.successfull = value; return this; }
    }

}

Java SyncAddressRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Sync/Address HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"regent_id":0,"addr1":"String","addr2":"String","city":"String","state":"String","country":"String","code":"String","email":"String","phone_home":"String","phone_bus":"String","phone_cell":"String","queued_by_username":"String","queued_by_CRM":false,"queued_by_RE":false,"queued_by_Sugar":false,"queued_by_REGIS":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"successfull":false}