Advertisement
mmalikov_stellar

patch crew passports bugs

Jun 27th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.82 KB | None | 0 0
  1. {
  2.   "_embedded" : {
  3.     "legs" : [ {
  4.       "id" : "8a80bb766b82ffe2016b894940a01221",
  5.       "createdDate" : "2019-06-24T11:40:08Z",
  6.       "updatedDate" : "2019-06-27T08:15:50Z",
  7.       "createdByUser" : "vince@vrm.com",
  8.       "updatedByUser" : "vince@vrm.com",
  9.       "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  10.       "flightNumber" : null,
  11.       "tripLegNumber" : 0,
  12.       "requestedGroundDuration" : null,
  13.       "requesterLegPurpose" : null,
  14.       "departureTimeTentative" : false,
  15.       "arrivalTimeTentative" : false,
  16.       "legNoTax" : false,
  17.       "billable" : false,
  18.       "cancelled" : false,
  19.       "deleted" : false,
  20.       "locked" : false,
  21.       "international" : false,
  22.       "revenueLeg" : false,
  23.       "deadHeadLeg" : null,
  24.       "deadHeadPriceFloor" : null,
  25.       "departureCrewChange" : false,
  26.       "expensesComplete" : false,
  27.       "techStop" : false,
  28.       "fetTaxabilityType" : "DEFAULT",
  29.       "arincLegId" : null,
  30.       "apisNumber" : null,
  31.       "apisFlight" : null,
  32.       "offAirportDeparture" : null,
  33.       "offAirportArrival" : null,
  34.       "departureDescription" : null,
  35.       "arrivalDescription" : null,
  36.       "originAirportId" : "8a80bd4f643d6f4701643da7c5302835",
  37.       "destinationAirportId" : "8a80bd4f643d6f4701643da802b063dc",
  38.       "departureInstant" : "2020-01-02T17:00:00Z",
  39.       "arrivalInstant" : "2020-01-02T18:12:00Z",
  40.       "departureLocalAirportTime" : "2020-01-02T09:00:00",
  41.       "arrivalLocalAirportTime" : "2020-01-02T10:12:00",
  42.       "requesterId" : null,
  43.       "aircraftId" : "8a80b273653a492b01653ad794930074",
  44.       "regulationType" : "PART_91",
  45.       "paxCount" : 15,
  46.       "crewCount" : 2,
  47.       "legType" : "LIVE",
  48.       "scheduleBy" : "DEPART_TIME",
  49.       "fosId" : null,
  50.       "legServices" : [ ],
  51.       "legCrewMembers" : [ {
  52.         "id" : "8a80bb766b82ffe2016b894940a11223",
  53.         "createdDate" : "2019-06-24T11:40:08Z",
  54.         "updatedDate" : "2019-06-24T11:40:08Z",
  55.         "createdByUser" : "vince@vrm.com",
  56.         "updatedByUser" : "vince@vrm.com",
  57.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  58.         "fosId" : null,
  59.         "position" : "SECOND_IN_COMMAND",
  60.         "personId" : "8a80c5bb67983d8e01679992dcc60411",
  61.         "attributes" : [ ],
  62.         "training" : false,
  63.         "lead" : false,
  64.         "includeAllLegs" : true,
  65.         "flewLeg" : false,
  66.         "arrivalPassportNumber" : null,
  67.         "departurePassportNumber" : null,
  68.         "arrivalVisaNumber" : null,
  69.         "departureVisaNumber" : null,
  70.         "crewNote" : null,
  71.         "passports" : [ {
  72.           "passportId" : "8a80df436b2c1270016b2d0196ff027d",
  73.           "assignment" : "NOT_ASSIGNED"
  74.         } ],
  75.         "positionAcronym" : "SIC",
  76.         "positionFullName" : "Second in Command"
  77.       }, {
  78.         "id" : "8a80b1db6b93fe50016b940d20fa0416",
  79.         "createdDate" : "2019-06-26T13:50:17Z",
  80.         "updatedDate" : "2019-06-26T13:51:05Z",
  81.         "createdByUser" : "vince@vrm.com",
  82.         "updatedByUser" : "vince@vrm.com",
  83.         "tenantId" : null,
  84.         "fosId" : null,
  85.         "position" : "PILOT_PROFICIENCY_EXAMINER",
  86.         "personId" : "8a80d26b66fa9608016701ec3cff0660",
  87.         "attributes" : [ ],
  88.         "training" : false,
  89.         "lead" : false,
  90.         "includeAllLegs" : false,
  91.         "flewLeg" : false,
  92.         "arrivalPassportNumber" : null,
  93.         "departurePassportNumber" : null,
  94.         "arrivalVisaNumber" : null,
  95.         "departureVisaNumber" : null,
  96.         "crewNote" : null,
  97.         "passports" : [ ],
  98.         "positionAcronym" : "PPE",
  99.         "positionFullName" : "Pilot Proficiency Examiner"
  100.       }, {
  101.         "id" : "8a80bb766b82ffe2016b894940a21224",
  102.         "createdDate" : "2019-06-24T11:40:08Z",
  103.         "updatedDate" : "2019-06-27T08:11:43Z",
  104.         "createdByUser" : "vince@vrm.com",
  105.         "updatedByUser" : "vince@vrm.com",
  106.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  107.         "fosId" : null,
  108.         "position" : "PILOT_IN_COMMAND",
  109.         "personId" : "8a80bb836b2c1275016b31587aa114e7",
  110.         "attributes" : [ ],
  111.         "training" : false,
  112.         "lead" : false,
  113.         "includeAllLegs" : true,
  114.         "flewLeg" : true,
  115.         "arrivalPassportNumber" : null,
  116.         "departurePassportNumber" : null,
  117.         "arrivalVisaNumber" : null,
  118.         "departureVisaNumber" : null,
  119.         "crewNote" : null,
  120.         "passports" : [ {
  121.           "passportId" : "8a80ca1f6b743071016b74cd8cf100b5",
  122.           "assignment" : "NOT_ASSIGNED"
  123.         }, {
  124.           "passportId" : "8a80ca1f6b743071016b74cd8cf100b5",
  125.           "assignment" : "NOT_ASSIGNED"
  126.         } ],
  127.         "positionAcronym" : "PIC",
  128.         "positionFullName" : "Pilot in Command"
  129.       } ],
  130.       "specifiedFlightDuration" : null,
  131.       "specifiedNumTechStops" : null,
  132.       "specifiedLegTaxiDuration" : null,
  133.       "specifiedNumOvernightsAfter" : null,
  134.       "tripLegPassengers" : [ {
  135.         "createdDate" : "2019-06-24T11:40:08Z",
  136.         "updatedDate" : "2019-06-24T11:40:08Z",
  137.         "createdByUser" : "vince@vrm.com",
  138.         "updatedByUser" : "vince@vrm.com",
  139.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  140.         "fosId" : null,
  141.         "personId" : "8a80d856675584960167560d315f0071",
  142.         "hostPersonId" : null,
  143.         "bagCount" : null,
  144.         "bagWeight" : null,
  145.         "paxWeight" : null,
  146.         "entertainment" : false,
  147.         "lobbying" : false,
  148.         "includeAllLegs" : true,
  149.         "pet" : false,
  150.         "childType" : null,
  151.         "firstName" : "Pablo",
  152.         "middleName" : null,
  153.         "lastName" : "Piloto",
  154.         "paxEmail" : null,
  155.         "paxPhone" : null,
  156.         "seatCount" : null,
  157.         "paxPriorityNumber" : null,
  158.         "paxGroup" : null,
  159.         "paxNote" : null,
  160.         "paxStatusType" : null,
  161.         "paxReasonType" : null,
  162.         "paxDepartmentType" : null,
  163.         "paxDivisionType" : null,
  164.         "arrivalPassportNumber" : null,
  165.         "departurePassportNumber" : null,
  166.         "departureVisaNumber" : null,
  167.         "arrivalVisaNumber" : null,
  168.         "lead" : false,
  169.         "useType" : "PERSONAL",
  170.         "attrs" : [ ],
  171.         "passports" : [ ],
  172.         "transient" : false,
  173.         "_links" : {
  174.           "leg" : {
  175.             "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221{?projection}",
  176.             "templated" : true
  177.           }
  178.         }
  179.       }, {
  180.         "createdDate" : "2019-06-24T11:40:08Z",
  181.         "updatedDate" : "2019-06-24T11:40:08Z",
  182.         "createdByUser" : "vince@vrm.com",
  183.         "updatedByUser" : "vince@vrm.com",
  184.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  185.         "fosId" : null,
  186.         "personId" : "8a80c0cb66c603290166c6739a1d05f0",
  187.         "hostPersonId" : null,
  188.         "bagCount" : null,
  189.         "bagWeight" : null,
  190.         "paxWeight" : null,
  191.         "entertainment" : false,
  192.         "lobbying" : false,
  193.         "includeAllLegs" : true,
  194.         "pet" : false,
  195.         "childType" : null,
  196.         "firstName" : "New Person",
  197.         "middleName" : null,
  198.         "lastName" : "Test",
  199.         "paxEmail" : null,
  200.         "paxPhone" : null,
  201.         "seatCount" : null,
  202.         "paxPriorityNumber" : null,
  203.         "paxGroup" : null,
  204.         "paxNote" : null,
  205.         "paxStatusType" : null,
  206.         "paxReasonType" : null,
  207.         "paxDepartmentType" : null,
  208.         "paxDivisionType" : null,
  209.         "arrivalPassportNumber" : null,
  210.         "departurePassportNumber" : null,
  211.         "departureVisaNumber" : null,
  212.         "arrivalVisaNumber" : null,
  213.         "lead" : true,
  214.         "useType" : "PERSONAL",
  215.         "attrs" : [ ],
  216.         "passports" : [ ],
  217.         "transient" : false,
  218.         "_links" : {
  219.           "leg" : {
  220.             "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221{?projection}",
  221.             "templated" : true
  222.           }
  223.         }
  224.       } ],
  225.       "usage" : {
  226.         "content" : null
  227.       },
  228.       "cancellationReason" : null,
  229.       "active" : true,
  230.       "flightLogVerified" : false,
  231.       "flightLogAvailable" : true,
  232.       "confirmedDeadHeadLeg" : false,
  233.       "_links" : {
  234.         "self" : {
  235.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221"
  236.         },
  237.         "leg" : {
  238.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221{?projection}",
  239.           "templated" : true
  240.         },
  241.         "enclosingTrip" : {
  242.           "href" : "https://localhost/trip-service/api/trips/8a80debd6b2687fd016b26e7ff6117a0{?projection}",
  243.           "templated" : true
  244.         },
  245.         "legNotes" : {
  246.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221/legNotes"
  247.         },
  248.         "flightLog" : {
  249.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221/flightLog{?projection}",
  250.           "templated" : true
  251.         },
  252.         "trip" : {
  253.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a01221/trip{?projection}",
  254.           "templated" : true
  255.         }
  256.       }
  257.     }, {
  258.       "id" : "8a80bb766b82ffe2016b894940a31228",
  259.       "createdDate" : "2019-06-24T11:40:08Z",
  260.       "updatedDate" : "2019-06-27T08:15:50Z",
  261.       "createdByUser" : "vince@vrm.com",
  262.       "updatedByUser" : "vince@vrm.com",
  263.       "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  264.       "flightNumber" : null,
  265.       "tripLegNumber" : 1,
  266.       "requestedGroundDuration" : null,
  267.       "requesterLegPurpose" : null,
  268.       "departureTimeTentative" : false,
  269.       "arrivalTimeTentative" : false,
  270.       "legNoTax" : false,
  271.       "billable" : false,
  272.       "cancelled" : false,
  273.       "deleted" : false,
  274.       "locked" : false,
  275.       "international" : false,
  276.       "revenueLeg" : false,
  277.       "deadHeadLeg" : null,
  278.       "deadHeadPriceFloor" : null,
  279.       "departureCrewChange" : false,
  280.       "expensesComplete" : false,
  281.       "techStop" : false,
  282.       "fetTaxabilityType" : "DEFAULT",
  283.       "arincLegId" : null,
  284.       "apisNumber" : null,
  285.       "apisFlight" : null,
  286.       "offAirportDeparture" : null,
  287.       "offAirportArrival" : null,
  288.       "departureDescription" : null,
  289.       "arrivalDescription" : null,
  290.       "originAirportId" : "8a80bd4f643d6f4701643da802b063dc",
  291.       "destinationAirportId" : "8a80bd4f643d6f4701643da7c5302835",
  292.       "departureInstant" : "2020-01-02T19:12:00Z",
  293.       "arrivalInstant" : "2020-01-02T21:17:00Z",
  294.       "departureLocalAirportTime" : "2020-01-02T11:12:00",
  295.       "arrivalLocalAirportTime" : "2020-01-02T13:17:00",
  296.       "requesterId" : null,
  297.       "aircraftId" : "8a80b273653a492b01653ad794930074",
  298.       "regulationType" : "PART_91",
  299.       "paxCount" : 15,
  300.       "crewCount" : 2,
  301.       "legType" : "LIVE",
  302.       "scheduleBy" : "MIN_GROUND_DUR",
  303.       "fosId" : null,
  304.       "legServices" : [ ],
  305.       "legCrewMembers" : [ {
  306.         "id" : "8a80bb766b82ffe2016b894940a4122a",
  307.         "createdDate" : "2019-06-24T11:40:08Z",
  308.         "updatedDate" : "2019-06-24T11:40:08Z",
  309.         "createdByUser" : "vince@vrm.com",
  310.         "updatedByUser" : "vince@vrm.com",
  311.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  312.         "fosId" : null,
  313.         "position" : "SECOND_IN_COMMAND",
  314.         "personId" : "8a80c5bb67983d8e01679992dcc60411",
  315.         "attributes" : [ ],
  316.         "training" : false,
  317.         "lead" : false,
  318.         "includeAllLegs" : true,
  319.         "flewLeg" : false,
  320.         "arrivalPassportNumber" : null,
  321.         "departurePassportNumber" : null,
  322.         "arrivalVisaNumber" : null,
  323.         "departureVisaNumber" : null,
  324.         "crewNote" : null,
  325.         "passports" : [ {
  326.           "passportId" : "8a80df436b2c1270016b2d0196ff027d",
  327.           "assignment" : "NOT_ASSIGNED"
  328.         } ],
  329.         "positionAcronym" : "SIC",
  330.         "positionFullName" : "Second in Command"
  331.       }, {
  332.         "id" : "8a80bb766b82ffe2016b894940a4122b",
  333.         "createdDate" : "2019-06-24T11:40:08Z",
  334.         "updatedDate" : "2019-06-27T08:11:43Z",
  335.         "createdByUser" : "vince@vrm.com",
  336.         "updatedByUser" : "vince@vrm.com",
  337.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  338.         "fosId" : null,
  339.         "position" : "PILOT_IN_COMMAND",
  340.         "personId" : "8a80bb836b2c1275016b31587aa114e7",
  341.         "attributes" : [ ],
  342.         "training" : false,
  343.         "lead" : false,
  344.         "includeAllLegs" : true,
  345.         "flewLeg" : false,
  346.         "arrivalPassportNumber" : null,
  347.         "departurePassportNumber" : null,
  348.         "arrivalVisaNumber" : null,
  349.         "departureVisaNumber" : null,
  350.         "crewNote" : null,
  351.         "passports" : [ {
  352.           "passportId" : "8a80ca1f6b743071016b74cd8cf100b5",
  353.           "assignment" : "NOT_ASSIGNED"
  354.         }, {
  355.           "passportId" : "8a80ca1f6b743071016b74cd8cf100b5",
  356.           "assignment" : "NOT_ASSIGNED"
  357.         } ],
  358.         "positionAcronym" : "PIC",
  359.         "positionFullName" : "Pilot in Command"
  360.       } ],
  361.       "specifiedFlightDuration" : null,
  362.       "specifiedNumTechStops" : null,
  363.       "specifiedLegTaxiDuration" : null,
  364.       "specifiedNumOvernightsAfter" : null,
  365.       "tripLegPassengers" : [ {
  366.         "createdDate" : "2019-06-24T11:40:08Z",
  367.         "updatedDate" : "2019-06-24T11:40:08Z",
  368.         "createdByUser" : "vince@vrm.com",
  369.         "updatedByUser" : "vince@vrm.com",
  370.         "tenantId" : "8a80ba6e65399d2101653a40cb5e00d4",
  371.         "fosId" : null,
  372.         "personId" : "8a80c0cb66c603290166c6739a1d05f0",
  373.         "hostPersonId" : null,
  374.         "bagCount" : null,
  375.         "bagWeight" : null,
  376.         "paxWeight" : null,
  377.         "entertainment" : false,
  378.         "lobbying" : false,
  379.         "includeAllLegs" : true,
  380.         "pet" : false,
  381.         "childType" : null,
  382.         "firstName" : "New Person",
  383.         "middleName" : null,
  384.         "lastName" : "Test",
  385.         "paxEmail" : null,
  386.         "paxPhone" : null,
  387.         "seatCount" : null,
  388.         "paxPriorityNumber" : null,
  389.         "paxGroup" : null,
  390.         "paxNote" : null,
  391.         "paxStatusType" : null,
  392.         "paxReasonType" : null,
  393.         "paxDepartmentType" : null,
  394.         "paxDivisionType" : null,
  395.         "arrivalPassportNumber" : null,
  396.         "departurePassportNumber" : null,
  397.         "departureVisaNumber" : null,
  398.         "arrivalVisaNumber" : null,
  399.         "lead" : true,
  400.         "useType" : "PERSONAL",
  401.         "attrs" : [ ],
  402.         "passports" : [ ],
  403.         "transient" : false,
  404.         "_links" : {
  405.           "leg" : {
  406.             "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a31228{?projection}",
  407.             "templated" : true
  408.           }
  409.         }
  410.       } ],
  411.       "usage" : {
  412.         "content" : null
  413.       },
  414.       "cancellationReason" : null,
  415.       "active" : true,
  416.       "flightLogVerified" : false,
  417.       "flightLogAvailable" : false,
  418.       "confirmedDeadHeadLeg" : false,
  419.       "_links" : {
  420.         "self" : {
  421.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a31228"
  422.         },
  423.         "leg" : {
  424.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a31228{?projection}",
  425.           "templated" : true
  426.         },
  427.         "enclosingTrip" : {
  428.           "href" : "https://localhost/trip-service/api/trips/8a80debd6b2687fd016b26e7ff6117a0{?projection}",
  429.           "templated" : true
  430.         },
  431.         "legNotes" : {
  432.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a31228/legNotes"
  433.         },
  434.         "flightLog" : {
  435.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a31228/flightLog{?projection}",
  436.           "templated" : true
  437.         },
  438.         "trip" : {
  439.           "href" : "https://localhost/trip-service/api/legs/8a80bb766b82ffe2016b894940a31228/trip{?projection}",
  440.           "templated" : true
  441.         }
  442.       }
  443.     } ]
  444.   }
  445. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement