| Required role: | REGISUserRole |
| POST | /admissions/{uuid}/address/sync |
|---|
import Foundation
import ServiceStack
public class AddressSyncRequest : Codable
{
public var uuid:String
required public init(){}
}
public class AddressSyncResponse : Codable
{
public var responseStatus:ResponseStatus
public var uuid:String
public var regent_id:Int
public var sugar_address:AddressResponse
public var sugar_phone_email:PhoneEmailResponse
public var regis_address:AddressResponse
public var regis_phone_email:PhoneEmailResponse
public var re_address:AddressResponse
public var re_phone_email:PhoneEmailResponse
public var exists_in_sugar:Bool
public var exists_in_re:Bool
public var are_equal:Bool
public var addr_are_equal:Bool
public var city_are_equal:Bool
public var state_are_equal:Bool
public var country_are_equal:Bool
public var code_are_equal:Bool
public var phone_home_are_equal:Bool
public var phone_cell_are_equal:Bool
public var phone_bus_are_equal:Bool
public var email_are_equal:Bool
required public init(){}
}
public class AddressResponse : Codable
{
public var responseStatus:ResponseStatus
public var addr1:String
public var addr2:String
public var country:String
public var country_code:String
public var state:String
public var city:String
public var code:String
public var start_date:Date?
public var end_date:Date?
public var added_by:String
public var added_date:Date?
public var changed_by:String
public var changed_date:Date?
required public init(){}
}
public class PhoneEmailResponse : Codable
{
public var phone_home:String
public var phone_cell:String
public var phone_bus:String
public var email:String
public var start_date:Date?
public var end_date:Date?
public var added_by:String
public var added_date:Date?
public var changed_by:String
public var changed_date:Date?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /admissions/{uuid}/address/sync HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
uuid: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
uuid: String,
regent_id: 0,
sugar_address:
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
addr1: String,
addr2: String,
country: String,
country_code: String,
state: String,
city: String,
code: String,
start_date: 0001-01-01,
end_date: 0001-01-01,
added_by: String,
added_date: 0001-01-01,
changed_by: String,
changed_date: 0001-01-01
},
sugar_phone_email:
{
phone_home: String,
phone_cell: String,
phone_bus: String,
email: String,
start_date: 0001-01-01,
end_date: 0001-01-01,
added_by: String,
added_date: 0001-01-01,
changed_by: String,
changed_date: 0001-01-01
},
regis_address:
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
addr1: String,
addr2: String,
country: String,
country_code: String,
state: String,
city: String,
code: String,
start_date: 0001-01-01,
end_date: 0001-01-01,
added_by: String,
added_date: 0001-01-01,
changed_by: String,
changed_date: 0001-01-01
},
regis_phone_email:
{
phone_home: String,
phone_cell: String,
phone_bus: String,
email: String,
start_date: 0001-01-01,
end_date: 0001-01-01,
added_by: String,
added_date: 0001-01-01,
changed_by: String,
changed_date: 0001-01-01
},
re_address:
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
addr1: String,
addr2: String,
country: String,
country_code: String,
state: String,
city: String,
code: String,
start_date: 0001-01-01,
end_date: 0001-01-01,
added_by: String,
added_date: 0001-01-01,
changed_by: String,
changed_date: 0001-01-01
},
re_phone_email:
{
phone_home: String,
phone_cell: String,
phone_bus: String,
email: String,
start_date: 0001-01-01,
end_date: 0001-01-01,
added_by: String,
added_date: 0001-01-01,
changed_by: String,
changed_date: 0001-01-01
},
exists_in_sugar: False,
exists_in_re: False,
are_equal: False,
addr_are_equal: False,
city_are_equal: False,
state_are_equal: False,
country_are_equal: False,
code_are_equal: False,
phone_home_are_equal: False,
phone_cell_are_equal: False,
phone_bus_are_equal: False,
email_are_equal: False
}