Skip to content

Instantly share code, notes, and snippets.

View isatimur's full-sized avatar
⛰️
Remotely

Timur Isachenko isatimur

⛰️
Remotely
View GitHub Profile
package ru.atc.communication;
import java.time.LocalDate;
public class ATCCompanySendWishes {
enum Looks {
AWFUL("не очень"), USUALL("как обычно"), EXCELLENT("отлично");
private String name;
Looks(String name) {
this.name = name;
}
}
[
{
"knum": "33:05:080101:550",
"connum": "(У33:03:00 00 00:0016)",
"objtype": "Земельный участок",
"objstatus": "Учтенный",
"address": "обл. Владимирская, р-н Суздальский, с. Павловское, ул. Школьная, дом 1-2",
"registration_date":"1992-07-16",
"dateremove": "",
"category": "Земли населенных пунктов",
{"PointOfSale":{"Location":{"CountryCode":{"value":"US"},"CityCode":{"value":"WAS"}},"RequestTime":{"value":"2015-10-14T00:00:00.000+0000","Zone":"EST"},"TouchPoint":{"Device":{"Position":{"Latitude":{"value":"38.89756"},"Longitude":{"value":"-77.03650"},"NAC":"8KD7V PGGM0"},"Code":"2","Definition":"Web Browser"},"Event":{"Code":"1","Definition":"Order or buy"}}},"Document":{"Name":"KRONOS NDC GATEWAY","ReferenceVersion":"1.0"},"Party":{"Sender":{"TravelAgencySender":{"Contact":[{"EmailContact":{"Address":{"value":"ndc@usdtravel.com"}}}],"PseudoCity":{"value":"A4A"},"IATA_Number":"98417900","AgencyID":{"value":"C9","Owner":"C9"},"AgentUser":{"AgentUserID":{"value":"ramesh@jrt.com"},"UserRole":"ADMIN","Name":"ksmith"}}}},"Query":{"Passengers":{"Passenger":[{"ObjectKey":"PAX1","PTC":{"value":"ADT","Quantity":1},"ResidenceCode":{"value":"US"},"Age":{"BirthDate":{"value":"1985-09-04T20:00:00.000+0000"}},"Name":{"Surname":{"value":"Patel"},"Given":[{"value":"Ramesh"}],"Middle":[{"value":"N"}]},"Contact":[{"Address
@Bean
public WebMvcConfigurerAdapter webMvcConfigurerAdapter() {
return new WebMvcConfigurerAdapter() {
@Override
public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
super.configureMessageConverters(converters);
converters.stream()
.filter(converter -> converter instanceof MappingJackson2HttpMessageConverter)
.map(converter -> (MappingJackson2HttpMessageConverter) converter)
{"pointOfSale":{"location":{"countryCode":{"value":"RU"},"cityCode":{"value":"77"}},"requestTime":{"value":"2017-02-17T08:52:51.000+0000","zone":"MSK"},"touchPoint":{"device":{"code":"2","definition":"Web Browser","position":{"latitude":{"value":"38.89756"},"longitude":{"value":"-77.03650"},"nac":"8KD7V PGGM0"}},"event":{"code":"2","definition":"Document Issue"}}},"document":{"name":"Aeroflot NDC Gateway","referenceVersion":"0.1"},"party":{"sender":{"agentUserSender":{"contacts":[{"emailContact":{"address":{"value":"test-agency@aeroflot.com"}}}],"pseudoCity":{"value":"A4A"},"agentUserID":{"value":"ksmith","owner":"SU"},"userRole":"ADMIN","iatanumber":"98417900"}},"participants":{"name":"{http://www.iata.org/IATA/EDIST}Participants","declaredType":"org.iata.iata.edist.MsgPartiesType$Participants","scope":"org.iata.iata.edist.MsgPartiesType","value":{},"nil":false,"globalScope":false,"typeSubstituted":false},"recipient":{"name":"{http://www.iata.org/IATA/EDIST}Recipient","declaredType":"org.iata.iata.edist.MsgP
{
"document": {
"name": "AEROFLOT NDC GATEWAY",
"referenceVersion": "1.0"
},
"party": {
"sender": {
"travelAgencySender": {
"contacts": [
{
{
"pointOfSale": {
"location": {
"countryCode": {
"value": "RU"
},
"cityCode": {
"value": "MOW"
}
},
{
"pointOfSale": {
"location": {
"countryCode": {
"value": "RU"
},
"cityCode": {
"value": "MOW"
}
},
{
"id":1037,
"name": "New questions",
"objectIds": [
2,3
],
"operationIds": [
3,1
],
"answers": [
{"pointOfSale":{"location":{"countryCode":{"value":"RU"}},"requestTime":{"value":"2017-02-17T08:52:51.000+0000","zone":"MSK"},"touchPoint":{"device":{"code":"2","definition":"Web Browser","position":{"latitude":{"value":"38.89756"},"longitude":{"value":"-77.03650"},"nac":"8KD7V PGGM0"}},"event":{"code":"2","definition":"Document Issue"}}},"document":{"name":"AEROFLOT NDC GATEWAY","referenceVersion":"0.1"},"party":{"sender":{"travelAgencySender":{"contacts":[{"emailContact":{"address":{"value":"test-agency@gmail.com"}}}],"pseudoCity":{"value":"A4A"},"agencyID":{"value":"C9","owner":"C9"},"agentUser":{"name":"ksmith","agentUserID":{"value":"ksmith@gmail.com"},"userRole":"ADMIN"},"iatanumber":"98417900"}}},"query":{"ticketDocQuantity":2,"ticketDocInfo":[{"travelerInfo":{"surname":{"value":"Macready"},"given":{"value":"Damon"},"ptc":"ADT","fqtv":[{"airlineID":{"value":"SU"},"account":{"number":{"value":"89043361"}},"programID":"Aeroflot Bonus"}],"birthDate":"1980-09-03T21:00:00.000+0000","infantOnLapInd":false,"e