{"openapi":"3.0.0","info":{"version":"1.0.0","title":"API"},"host":"mtc-mobile-api-test.azurewebsites.net","schemes":["https"],"paths":{"/api/Account/ChangeUserName":{"put":{"tags":["Account"],"summary":"Change the account username [allowed for authorized]","operationId":"Account_ChangeUsername","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with required field email and if is not yours username add account id field","required":true,"schema":{"$ref":"#/definitions/ChangeUsernameModel"}}],"responses":{"200":{"description":"User data has been successfully changed.","schema":{"$ref":"#/definitions/ChangeUsernameModel"},"examples":{"application/json":{"accountId":1001,"email":"newemail@gmail.com"}}},"400":{"description":"Bad request."},"403":{"description":"Forbidden to change another account."},"500":{"description":"Internal server error."}}}},"/api/Account/ChangePassword":{"put":{"tags":["Account"],"summary":"Change the account password [allowed for authorized]","operationId":"Account_ChangePassword","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with password and confirm password fields","required":true,"schema":{"$ref":"#/definitions/ChangePasswordModel"}}],"responses":{"200":{"description":"User password has been successfully changed."},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Account/ResetPassword":{"post":{"tags":["Account"],"summary":"Reset password using existing user email","operationId":"Account_ResetPassword","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with email and username fields","required":true,"schema":{"$ref":"#/definitions/ForgotPasswordModel"}}],"responses":{"200":{"description":"The reset link is sent to a user mail."},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Account":{"get":{"tags":["Account"],"summary":"Gets account info like userid, accountid, type, etc [allowed for authorized]","operationId":"Account_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"responses":{"200":{"description":"The current account should be shown.","schema":{"$ref":"#/definitions/AccountViewModel"},"examples":{"application/json":{"userId":123,"contactId":456,"roles":["Traveler","Client"],"travelerType":"STUDENT","travelerActiveTripId":1167}}},"404":{"description":"Account not found."},"500":{"description":"Internal server error."}}},"put":{"tags":["Account"],"summary":"Put new account data [allowed for authorized]","operationId":"Account_UpdateContactInformation","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with account id and user account fields","required":true,"schema":{"$ref":"#/definitions/UpdateContactInformationModel"}}],"responses":{"200":{"description":"Account data has been successfully updated.","schema":{"$ref":"#/definitions/UpdateContactInformationModel"},"examples":{"application/json":{"accountId":1001,"firstName":"Test","lastName":"Test","salutation":"Ms","primaryPhone":"123-4567-897","alternatePhone1":"555-4444-555","alternatePhone2":"555-4444-555","fax":"1111","addressLine1":"Otter Ln Middleberge FL 32068","addressLine2":"Carly Jean Rohrig 6762 33 Ave N","city":"St. Petersburg","state":"AB","zipCode":"36000"}}},"400":{"description":"Bad request."},"403":{"description":"Forbidden to change another account."},"500":{"description":"Internal server error."}}},"post":{"tags":["Account"],"summary":"This method creates WebUser and Contact","operationId":"Account_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with new user account fields","required":true,"schema":{"$ref":"#/definitions/CreateAccountRequestModel"}}],"responses":{"201":{"description":"User successfully created.","schema":{"$ref":"#/definitions/CreateAccountResponseModel"},"examples":{"application/json":{"accountId":1001,"email":"someemail@gmail.com","password":"123456","firstName":"Test","lastName":"Test","salutation":"Ms","primaryPhone":"123-4567-897","alternatePhone1":"555-4444-555","alternatePhone2":"555-4444-555","fax":"1111","addressLine1":"Otter Ln Middleberge FL 32068","addressLine2":"Carly Jean Rohrig 6762 33 Ave N","city":"St. Petersburg","state":"AB","zipCode":"36000"}}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Message/Feed/{tripId}/{messageTypeId}":{"get":{"tags":["Message"],"summary":"Get feed by message type for current trip [allowed for authorized]","operationId":"Message_GetFeed","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"messageTypeId","in":"path","description":"Message type id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of messages for current trip and message type.","schema":{"type":"array","items":{"$ref":"#/definitions/TripUserMessageViewModel"}},"examples":{"application/json":[{"messageId":1234,"senderId":0,"senderFirstName":null,"senderLastName":null,"imageUrl":"/userfiles/test-image.jpg","videoUrl":"/userfiles/test-video.mp4","text":"i'm ready for a trip","messageType":3,"sentOn":"2018-09-21T23:20:50","formattedSentOn":"2018-09-21T23:20:50Z","isReportedByUser":false,"isActive":true,"point":{"latitude":49.589542,"longitude":34.551273},"conversationId":null},{"messageId":4321,"senderId":0,"senderFirstName":null,"senderLastName":null,"imageUrl":"/userfiles/test-image.jpg","videoUrl":"/userfiles/test-video.mp4","text":"i'm ready for a trip","messageType":3,"sentOn":"2018-09-21T23:20:50","formattedSentOn":"2018-09-21T23:20:50Z","isReportedByUser":true,"isActive":true,"point":{"latitude":49.589542,"longitude":34.551273},"conversationId":null}]}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/{tripId}":{"post":{"tags":["Message"],"summary":"Create message for current trip [allowed for authorized]","operationId":"Message_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with new message fields","required":true,"schema":{"$ref":"#/definitions/TripUserMessageCreateViewModel"}},{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Message is posted successfully.","schema":{"$ref":"#/definitions/TripUserMessageViewModel"},"examples":{"application/json":{"messageId":1234,"senderId":0,"senderFirstName":null,"senderLastName":null,"imageUrl":"/userfiles/test-image.jpg","videoUrl":"userfiles/test-video.mp4","text":"i'm ready for a trip","messageType":3,"sentOn":"2018-09-21T23:20:50","formattedSentOn":"2018-09-21T23:20:50Z","isReportedByUser":false,"isActive":true,"point":{"latitude":49.589542,"longitude":34.551273},"conversationId":null}}},"400":{"description":"Bad request."},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/Count/{userId}/{messageTypeId}":{"get":{"tags":["Message"],"summary":"Get message count by message type which create current user [allowed for authorized]","operationId":"Message_GetMessageCount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userId","in":"path","description":"User id","required":true,"type":"integer","format":"int32"},{"name":"messageTypeId","in":"path","description":"Message type id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Count of messages by user id and message type.","schema":{"$ref":"#/definitions/TripUserMessageCountResponseModel"},"examples":{"application/json":{"count":10}}},"400":{"description":"Entered message type id is invalid."},"404":{"description":"Entered user id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/{messageId}/ReportAbuse":{"post":{"tags":["Message"],"summary":"Create abuse request for current message [allowed for authorized]","operationId":"Message_ReportAbuseAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"messageId","in":"path","description":"Message id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Abuse report is created successfully."},"400":{"description":"Bad request."},"404":{"description":"Entered message id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/{messageId}/Reenable":{"put":{"tags":["Message"],"summary":"Reenable reported item for current message [allowed for authorized]","operationId":"Message_ReenableAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"messageId","in":"path","description":"Message id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Abuse report is rejected successfully."},"404":{"description":"Entered message id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/{messageId}/ApproveReportAbuse":{"delete":{"tags":["Message"],"summary":"Approve abuse report for current message [allowed for authorized]","operationId":"Message_ApproveReportAbuseAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"messageId","in":"path","description":"Message id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Abuse report is approved successfully."},"404":{"description":"Entered message id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/Get/{messageId}":{"get":{"tags":["Message"],"summary":"Get message by id [allowed for authorized]","operationId":"Message_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"messageId","in":"path","description":"Message id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The message should be shown.","schema":{"$ref":"#/definitions/TripUserMessageViewModel"},"examples":{"application/json":{"messageId":1234,"senderId":0,"senderFirstName":null,"senderLastName":null,"imageUrl":"/userfiles/test-image.jpg","videoUrl":"userfiles/test-video.mp4","text":"i'm ready for a trip","messageType":3,"sentOn":"2018-09-21T23:20:50","formattedSentOn":"2018-09-21T23:20:50Z","isReportedByUser":false,"isActive":true,"point":{"latitude":49.589542,"longitude":34.551273},"conversationId":null}}},"404":{"description":"Entered message id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/Delete/{messageId}":{"delete":{"tags":["Message"],"summary":"Delete message by id [allowed for authorized]","operationId":"Message_DeleteAsync","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"messageId","in":"path","description":"Message id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The message is deleted successfully."},"404":{"description":"Entered message id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/GetReported/{tripId}":{"get":{"tags":["Message"],"summary":"Get reported messages for current trip [allowed for authorized]","operationId":"Message_GetReported","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of reported messages."},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Message/GetImages/{tripId}/{messageTypeId}":{"get":{"tags":["Message"],"summary":"Get images by message type for supplied trip [allowed for authorized]","operationId":"Message_GetImagesByTripId","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"messageTypeId","in":"path","description":"Message type id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of images for trip and message type.","schema":{"$ref":"#/definitions/TripUserMessageImagesByTripIdResponseModel"}},"404":{"description":"Entered tripId and messageTypeId are invalid."},"500":{"description":"Internal server error."}}}},"/api/PaymentTravelers/{tripId}":{"get":{"tags":["Payment"],"summary":"Get registered traveler by payer by trip [allowed for authorized]","operationId":"Payment_GetTravelersByIndividualPayerForTrip","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of travelers by individual payer for trip.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerPayResponseModel"}},"examples":{"application/json":[{"travelerId":1,"displayName":"Smith, Dave","fullName":"Dave John Smith","isActive":true,"isPendingCancellation":false},{"travelerId":1,"displayName":"Wayne, John","fullName":"John Wayne","isActive":true,"isPendingCancellation":true},{"travelerId":2,"displayName":"Test, Test","fullName":"Test Test","isActive":false,"isPendingCancellation":false}]}},"404":{"description":"Trip not found."},"500":{"description":"Internal server error."}}}},"/api/PaymentSchedule/{tripId}":{"get":{"tags":["Payment"],"summary":"Get payment schedule by trip Id [allowed for authorized]","operationId":"Payment_PaymentSchedule","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The payments schedule linked to the appropriate traveler should be shown.","schema":{"type":"array","items":{"$ref":"#/definitions/PaymentScheduleResponseModel"}},"examples":{"application/json":[{"id":100,"totalDue":500.45,"type":"Non-refundable Deposit","dueDate":"2000-01-01T00:00:00"},{"id":101,"totalDue":50,"type":"Confirm","dueDate":"2001-01-01T00:00:00"}]}},"404":{"description":"Not found."},"500":{"description":"Internal server error."}}}},"/api/PaymentHistory/{tripId}/{travelerId}":{"get":{"tags":["Payment"],"summary":"Get payment schedule by trip Id [allowed for authorized]","operationId":"Payment_PaymentHistory","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"travelerId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The payments linked to the appropriate traveler should be shown.","schema":{"type":"array","items":{"$ref":"#/definitions/PaymentHistoryResponseModel"}},"examples":{"application/json":[{"id":100,"totalPaid":500.45,"type":"Non-refundable Deposit","paidOn":"2000-01-01T00:00:00"},{"id":101,"totalPaid":50,"type":"Confirm","paidOn":"2001-01-01T00:00:00"}]}},"404":{"description":"Not found."},"500":{"description":"Internal server error."}}}},"/api/Payment/{tripId}/CreditCard":{"post":{"tags":["Payment"],"summary":"Make a payment by credit card [allowed for authorized]","operationId":"Payment_PaymentCreditCard","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"Model which include payer info","required":true,"schema":{"$ref":"#/definitions/CreditCardPaymentRequestModel"}}],"responses":{"200":{"description":"Payment successfuly.","schema":{"$ref":"#/definitions/CreditCardPaymentReceiptResponseModel"},"examples":{"application/json":{"tripId":1001,"tripNumber":"Trip-number","tripDescription":"Description","cardNumber":"*************1111","paymentDate":"2000-01-01T00:00:00","transactionAmount":1,"transactionConfirmationNumber":"1001"}}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Payment/{tripId}/ECheck":{"post":{"tags":["Payment"],"summary":"Make a payment by e-check [allowed for authorized]","operationId":"Payment_PaymentECheck","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"Model which include payer info","required":true,"schema":{"$ref":"#/definitions/ECheckPaymentRequestModel"}}],"responses":{"200":{"description":"Payment successfuly.","schema":{"$ref":"#/definitions/ECheckPaymentReceiptResponseModel"},"examples":{"application/json":{"tripId":1001,"tripNumber":"Trip-number","tripDescription":"Description","bankName":"Bank of Earth","bankRoutingNumber":"121042882","accountNumber":"123456789123","nameOnBankAccount":"Jane Doe","paymentDate":"2000-01-01T00:00:00","transactionAmount":1,"transactionConfirmationNumber":"1001"}}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Payment/{tripId}/CreateCreditCardPayment":{"post":{"tags":["Payment"],"summary":"Create a payment by credit card [allowed for authorized]","operationId":"Payment_CreateCreditCardPayment","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"Model which include payer info","required":true,"schema":{"$ref":"#/definitions/CreditCardPaymentRequestModel"}}],"responses":{"200":{"description":"Payment created successfuly.","schema":{"format":"int32","type":"integer"}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Payment/{tourLedgerTransactionId}/CompletePaymentCreditCard":{"post":{"tags":["Payment"],"summary":"Complete payment transaction [allowed for authorized]","operationId":"Payment_CompletePaymentCreditCard","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tourLedgerTransactionId","in":"path","description":"Tour Ledger Transaction Id","required":true,"type":"integer","format":"int32"},{"name":"model","in":"body","description":"Model which Authorize.Net response data","required":true,"schema":{"$ref":"#/definitions/CompleteTransactionModel"}}],"responses":{"200":{"description":"Transaction completed successfuly.","schema":{"$ref":"#/definitions/CompleteTransactionResponseModel"},"examples":{"application/json":{"transactionAmount":1.02,"paymentDate":"2000-01-01T00:00:00","transactionConfirmationNumber":"123456789"}}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Register/{tripId}":{"post":{"tags":["Traveler"],"summary":"Create traveler by trip id [allowed for authorized]","operationId":"Traveler_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Traveler model","required":true,"schema":{"$ref":"#/definitions/TravelerViewModelRequest"}},{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"201":{"description":"The traveler successfully created.","schema":{"$ref":"#/definitions/TravelerViewModel"},"examples":{"application/json":{"travelerId":16064,"travelerTypeDescription":"Adult","instrument":"Amplifier, Bass","genderText":"Male","hasSpecialNeeds":"Y","firstName":"John","lastName":"Smith","middleName":"J","travelerType":"ADULT","instrumentId":1,"disneyCardNumber":"4266 1234 5678 9112","birthday":"2000-08-29T23:20:50","gender":"M","cellPhone":"380665478456","specialNeeds":"A bottle of water every day"}}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/{travelerId}":{"delete":{"tags":["Traveler"],"summary":"Сancel traveler (delete from traveler list) [allowed for authorized]","operationId":"Traveler_CancelTraveler","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"travelerId","in":"path","description":"Traveler id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The traveler was found and successfully canceled."},"404":{"description":"The traveler id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Traveler/ByTripId/{tripId}":{"get":{"tags":["Traveler"],"summary":"Get contacts of the chosen trip [allowed for authorized]","operationId":"Traveler_GetTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip Id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of travelers for current trip should be shown.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Search/{tripId}/{roomListId}/{roomNumber}":{"get":{"tags":["Traveler"],"summary":"Search travelers by the user's entry [allowed for authorized]","operationId":"Traveler_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"roomListId","in":"path","description":"Room list id","required":true,"type":"integer","format":"int32"},{"name":"roomNumber","in":"path","description":"Room number","required":true,"type":"string"},{"name":"search","in":"query","description":"Search string","required":false,"type":"string"}],"responses":{"200":{"description":"The list of travelers, filtered by the user's entry in the search bar.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Checklist/All/{tripId}":{"get":{"tags":["Traveler"],"summary":"Get checklist all travelers by trip [allowed for authorized]","operationId":"Traveler_GetChecklistAllTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The checklist of travelers in current trip.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Checklist/Coach/{tripId}/{coachId}":{"get":{"tags":["Traveler"],"summary":"Get checklist all travelers by trip and coach id [allowed for authorized]","operationId":"Traveler_GetChecklistCoachTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"coachId","in":"path","description":"Coach id (bus id)","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The checklist of travelers in current bus.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Checklist/Chaperone/{tripId}/{chaperoneId}":{"get":{"tags":["Traveler"],"summary":"Get checklist all travelers by trip and chaperone id [allowed for authorized]","operationId":"Traveler_GetChecklistChaperoneTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"chaperoneId","in":"path","description":"Chaperone id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The checklist of travelers for chaperone.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Leaders/{tripId}":{"get":{"tags":["Traveler"],"summary":"Get leader travelers [allowed for authorized]","operationId":"Traveler_GeLeaderTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The list of leader travelers.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/InstrumentList":{"get":{"tags":["Traveler"],"summary":"Get instrument list ordered by name","operationId":"Traveler_GetInstruments","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"responses":{"200":{"description":"The list of instruments.","schema":{"type":"array","items":{"$ref":"#/definitions/InstrumentViewModel"}},"examples":{"application/json":[{"id":1,"name":"Flute"},{"id":2,"name":"Violin"}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Checklist/Flight/{tripId}/{flightGroupId}":{"get":{"tags":["Traveler"],"summary":"Get checklist all travelers by trip and coach id [allowed for authorized]","operationId":"Traveler_GetChecklistFlightGroupTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"flightGroupId","in":"path","description":"Flight group id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The checklist of travelers in current flight group.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Checklist/Roommate/{tripId}/{roomListId}/{roomNumber}":{"get":{"tags":["Traveler"],"summary":"Get checklist roommate travelers by trip and coach id [allowed for authorized]","operationId":"Traveler_GetChecklistRoommateTravelers","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"roomListId","in":"path","description":"Room list id","required":true,"type":"integer","format":"int32"},{"name":"roomNumber","in":"path","description":"Room number","required":true,"type":"string"}],"responses":{"200":{"description":"The checklist of travelers in current room.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerListItemViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","travelerType":"STUFF","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","travelerType":"ADULT","cellPhoneNumber":null,"hotelRoom":null,"busName":null,"flightGroupName":null}]}},"400":{"description":"Bad request."},"500":{"description":"Internal server error."}}}},"/api/Traveler/Contact/{userId}":{"get":{"tags":["Traveler"],"summary":"Get contact information [allowed for authorized]","operationId":"Traveler_GetContactInformation","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"userId","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Contact information","schema":{"$ref":"#/definitions/TravelerContactInformationResponseModel"},"examples":{"application/json":{"accountId":1001,"firstName":"Test","lastName":"Test","salutation":"Ms","primaryPhone":"123-4567-897","alternatePhone1":"555-4444-555","alternatePhone2":"555-4444-555","fax":"1111","addressLine1":"Otter Ln Middleberge FL 32068","addressLine2":"Carly Jean Rohrig 6762 33 Ave N","city":"St. Petersburg","state":"AB","zipCode":"36000"}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}}}},"/api/Traveler/Location/{tripId}":{"get":{"tags":["Traveler"],"summary":"Get recent locations [allowed for authorized]","operationId":"Traveler_LogRecentLocation","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of recent locations","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerLocationResponseExtendedModel"}},"examples":{"application/json":[{"firstName":"Test1","lastName":"Test1","travelerLocationId":100001,"userId":100,"tripId":6565,"latitude":50.5,"longitude":-50.5,"accuracy":10,"altitude":100,"speed":0,"odometer":100,"heading":0,"event":"motionchange","isMoving":false,"batteryLevel":95,"batteryIsCharging":false,"geofence":null,"provider":null,"createdDate":"2000-01-01T10:01:00","recordedDate":"2000-01-01T10:00:30","createdByUserId":100},{"firstName":"Test2","lastName":"Test2","travelerLocationId":100002,"userId":101,"tripId":6565,"latitude":51.5,"longitude":-51.5,"accuracy":10,"altitude":100,"speed":0,"odometer":100,"heading":0,"event":"motionchange","isMoving":false,"batteryLevel":95,"batteryIsCharging":false,"geofence":null,"provider":null,"createdDate":"2000-01-01T10:01:00","recordedDate":"2000-01-01T10:00:30","createdByUserId":101}]}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}}}},"/api/Traveler/Location":{"post":{"tags":["Traveler"],"summary":"Log recent location [allowed for authorized]","operationId":"Traveler_LogRecentLocation","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","required":true,"schema":{"$ref":"#/definitions/TravelerLocationRequestModel"}}],"responses":{"201":{"description":"Successfully Created","schema":{"$ref":"#/definitions/TravelerLocationResponseModel"},"examples":{"application/json":{"travelerLocationId":100001,"userId":100,"tripId":6565,"latitude":50.5,"longitude":-50.5,"accuracy":10,"altitude":100,"speed":0,"odometer":100,"heading":0,"event":"motionchange","isMoving":false,"batteryLevel":95,"batteryIsCharging":false,"geofence":null,"provider":null,"createdDate":"2000-01-01T10:01:00","recordedDate":"2000-01-01T10:00:30","createdByUserId":100}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}}}},"/api/Traveler/Location/Bulk":{"post":{"tags":["Traveler"],"summary":"Log recent locations [allowed for authorized]","operationId":"Traveler_LogRecentLocationsBulk","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","required":true,"schema":{"$ref":"#/definitions/TravelerLocationBulkRequestModel"}}],"responses":{"201":{"description":"Successfully Created","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerLocationResponseModel"}},"examples":{"application/json":[{"travelerLocationId":100001,"userId":100,"tripId":6565,"latitude":50.5,"longitude":-50.5,"accuracy":10,"altitude":100,"speed":0,"odometer":100,"heading":0,"event":"motionchange","isMoving":false,"batteryLevel":95,"batteryIsCharging":false,"geofence":null,"provider":null,"createdDate":"2000-01-01T10:01:00","recordedDate":"2000-01-01T10:00:30","createdByUserId":100},{"travelerLocationId":100002,"userId":101,"tripId":6565,"latitude":51.5,"longitude":-51.5,"accuracy":10,"altitude":100,"speed":0,"odometer":100,"heading":0,"event":"motionchange","isMoving":false,"batteryLevel":95,"batteryIsCharging":false,"geofence":null,"provider":null,"createdDate":"2000-01-01T10:01:00","recordedDate":"2000-01-01T10:00:30","createdByUserId":101}]}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}}}},"/api/Trip/GetByAccount":{"get":{"tags":["Trip"],"summary":"Get trip by user id [allowed for authorized]","operationId":"Trip_GetByAccount","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"id","in":"query","description":"User id","required":false,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of user trips.","schema":{"type":"array","items":{"$ref":"#/definitions/TripResponseModel"}},"examples":{"application/json":[{"tripId":1234,"briefingDate":"1999-12-25T00:00:00","start":"2000-01-01T00:00:00","end":"2001-01-01T00:00:00","lastDayToCancel":"2000-01-01T00:00:00","tripName":"Ohio Meeting","travelConsultantName":"Nansy Smith","travelConsultantId":56,"location":"USA","past":true,"imageUrl":"/directName/imageName.jpg"},{"tripId":1235,"briefingDate":null,"start":"2000-01-01T00:00:00","end":"2001-01-01T00:00:00","lastDayToCancel":"2000-01-01T00:00:00","tripName":"NewTrip1","travelConsultantName":"Nansy Smith","travelConsultantId":56,"location":"USA","past":true,"imageUrl":"/directName/imageName.jpg"}]}},"404":{"description":"User account not found."},"500":{"description":"Internal server error."}}}},"/api/Trip/{tripNumber}":{"get":{"tags":["Trip"],"summary":"Search for trip by trip number","operationId":"Trip_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripNumber","in":"path","description":"Trip number","required":true,"type":"string"}],"responses":{"200":{"description":"The current trip should be shown.","schema":{"$ref":"#/definitions/TripResponseModel"},"examples":{"application/json":{"tripId":1234,"briefingDate":"1999-12-25T00:00:00","start":"2000-01-01T00:00:00","end":"2001-01-01T00:00:00","lastDayToCancel":"2000-01-01T00:00:00","tripName":"Ohio Meeting","travelConsultantName":"Nansy Smith","travelConsultantId":56,"location":"USA","past":true,"imageUrl":"/directName/imageName.jpg"}}},"404":{"description":"Entered trip number is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/GetById/{tripId}":{"get":{"tags":["Trip"],"summary":"Search for trip by trip id [allowed for authorized]","operationId":"Trip_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The current trip should be shown.","schema":{"$ref":"#/definitions/TripResponseModel"},"examples":{"application/json":{"tripId":1234,"briefingDate":"1999-12-25T00:00:00","start":"2000-01-01T00:00:00","end":"2001-01-01T00:00:00","lastDayToCancel":"2000-01-01T00:00:00","tripName":"Ohio Meeting","travelConsultantName":"Nansy Smith","travelConsultantId":56,"location":"USA","past":true,"imageUrl":"/directName/imageName.jpg"}}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/Details/{tripId}/{travelerId}":{"get":{"tags":["Trip"],"summary":"Get trip details by trip id and by traveler id [allowed for authorized]","operationId":"Trip_GetDetailsByTripIdAndTravelerId","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"},{"name":"travelerId","in":"path","description":"Traveler id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The current trip should be shown.","schema":{"$ref":"#/definitions/TripDetailsViewModel"},"examples":{"application/json":{"tripId":123,"travelerId":16064,"fullName":"John J Smith","tripName":"Aortic Music Festival","tripStartDate":"2018-09-22T23:20:50","tripEndDate":"2018-12-25T12:21:50","briefingDate":null,"hotelInfo":[{"hotelId":4353453,"hotelName":"Aortic Hotel","hotelAddress":"Otter Ln Middleberge FL 32068","hotelPhone":"380505478456","longitude":18.885498,"latitude":11.777344}],"roomInfo":[{"roomListId":21312313,"roomName":"A01"}],"assignedChaperoneInfo":{"chaperoneTravelerId":1234,"chaperoneUserId":4321,"chaperoneName":"Mike J Johnson"},"flightInfo":{"flightGroupId":4345,"flightGroupName":"Flight #A"},"busInfo":{"busId":4323,"busName":"Bus #1"},"itinierary":[{"dayDate":"2018-09-21T23:20:50","itineraryActivity":[{"time":"8:00 PM","title":"Visit museum 1","description":"Will be visiting the national history museum.","sequenceNumber":0},{"time":"9:00 AM","title":"Visit stadium 1","description":"Will be visiting the national stadium.","sequenceNumber":0}]},{"dayDate":"2018-09-22T23:20:50","itineraryActivity":[{"time":"8:00 PM","title":"Visit museum 2","description":"Will be visiting the national history museum.","sequenceNumber":0},{"time":"9:00 AM","title":"Visit stadium 2","description":"Will be visiting the national stadium.","sequenceNumber":0}]}],"tourDirectors":null}}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/Details":{"get":{"tags":["Trip"],"summary":"Get trip details by logged in traveler [allowed for authorized]","operationId":"Trip_GetDetails","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"responses":{"200":{"description":"The current trip should be shown.","schema":{"$ref":"#/definitions/TripDetailsViewModel"},"examples":{"application/json":{"tripId":123,"travelerId":16064,"fullName":"John J Smith","tripName":"Aortic Music Festival","tripStartDate":"2018-09-22T23:20:50","tripEndDate":"2018-12-25T12:21:50","briefingDate":null,"hotelInfo":[{"hotelId":4353453,"hotelName":"Aortic Hotel","hotelAddress":"Otter Ln Middleberge FL 32068","hotelPhone":"380505478456","longitude":18.885498,"latitude":11.777344}],"roomInfo":[{"roomListId":21312313,"roomName":"A01"}],"assignedChaperoneInfo":{"chaperoneTravelerId":1234,"chaperoneUserId":4321,"chaperoneName":"Mike J Johnson"},"flightInfo":{"flightGroupId":4345,"flightGroupName":"Flight #A"},"busInfo":{"busId":4323,"busName":"Bus #1"},"itinierary":[{"dayDate":"2018-09-21T23:20:50","itineraryActivity":[{"time":"8:00 PM","title":"Visit museum 1","description":"Will be visiting the national history museum.","sequenceNumber":0},{"time":"9:00 AM","title":"Visit stadium 1","description":"Will be visiting the national stadium.","sequenceNumber":0}]},{"dayDate":"2018-09-22T23:20:50","itineraryActivity":[{"time":"8:00 PM","title":"Visit museum 2","description":"Will be visiting the national history museum.","sequenceNumber":0},{"time":"9:00 AM","title":"Visit stadium 2","description":"Will be visiting the national stadium.","sequenceNumber":0}]}],"tourDirectors":null}}},"400":{"description":"Only a traveler can use this."},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/{tripId}/Lists":{"get":{"tags":["Trip"],"summary":"Get trip lists [allowed for authorized]","operationId":"Trip_GetTripLists","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip Id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The current trip lists should be shown.","schema":{"$ref":"#/definitions/TripDetailsListsViewModel"},"examples":{"application/json":{"flightGroups":[{"flightGroupId":4345,"flightGroupName":"Flight #A"},{"flightGroupId":4312,"flightGroupName":"Flight #B"}],"hotels":[{"hotelId":4353453,"hotelName":"Aortic Hotel","hotelAddress":"Otter Ln Middleberge FL 32068","hotelPhone":"380505478456","longitude":18.885498,"latitude":11.777344},{"hotelId":7014123,"hotelName":"America's Best Value Inn St.Louis/Westport","hotelAddress":"Via Tonale 22","hotelPhone":"380505412346","longitude":48.885498,"latitude":21.777344}],"rooms":[{"roomListId":1,"roomNumbers":["A02","A01","A03","A03"]},{"roomListId":2,"roomNumbers":["A02","A01","A03","A03"]}],"groundTransports":[{"groundTransportId":1,"groundTransportName":"5 Star Coach","busses":[{"busId":45515,"busName":"Bus #2"},{"busId":455115,"busName":"Bus #3"}]}],"chaperones":[{"chaperoneTravelerId":1234,"chaperoneUserId":4321,"chaperoneName":"Mike J Johnson"},{"chaperoneTravelerId":12324,"chaperoneUserId":4321,"chaperoneName":"Smith J Johnson"}]}}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/{tripId}/SpecialNeeds":{"get":{"tags":["Trip"],"summary":"Get list of travelers with special needs for current trip [allowed for authorized]","operationId":"Trip_GetSpecialNeeds","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The list of travelers with special needs for current trip.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerSpecialNeedsViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","specialNeeds":"a bottle of water every day"},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","specialNeeds":"a bottle of water every day"}]}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/Itinerary/{tripId}":{"get":{"tags":["Trip"],"summary":"Get itinerary activities by trip id","operationId":"Trip_GetTripItinerary","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of itinerary activities for current trip grouped by date.","schema":{"type":"array","items":{"$ref":"#/definitions/TripItineraryResponseModel"}},"examples":{"application/json":[{"dayDate":"2018-09-21T23:20:50","itineraryActivity":[{"time":"8:00 PM","title":"Visit museum 1","description":"Will be visiting the national history museum.","sequenceNumber":1},{"time":"9:00 AM","title":"Visit stadium 1","description":"Will be visiting the national stadium.","sequenceNumber":3}]},{"dayDate":"2018-09-22T23:20:50","itineraryActivity":[{"time":"8:00 PM","title":"Visit museum 2","description":"Will be visiting the national history museum.","sequenceNumber":1},{"time":"9:00 AM","title":"Visit stadium 2","description":"Will be visiting the national stadium.","sequenceNumber":2}]}]}},"404":{"description":"Trip not found."},"500":{"description":"Internal server error."}}}},"/api/Trip/{tripId}/Cost":{"get":{"tags":["Trip"],"summary":"Get list of the estimated cost for a traveler given the selected room size and varying numbers of total travelers [allowed for authorized]","operationId":"Trip_GetTripCost","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Model with list of the estimated cost for a traveler given the selected room size and varying numbers of total travelers for actual date.","schema":{"$ref":"#/definitions/TripCostViewModel"},"examples":{"application/json":{"actualDate":"2017-05-24T00:00:00","rooms":[{"roomSize":0,"prices":[{"paxCount":50,"salesSellingPricePerPax":300.5},{"paxCount":100,"salesSellingPricePerPax":250.1}]},{"roomSize":1,"prices":[{"paxCount":50,"salesSellingPricePerPax":500.5},{"paxCount":100,"salesSellingPricePerPax":450.1}]}]}}},"404":{"description":"Trip not found."},"500":{"description":"Internal server error."}}}},"/api/Trip/Traveler/{tripId}":{"get":{"tags":["Trip"],"summary":"Get registered traveler by payer and by trip [allowed for authorized]","operationId":"Trip_GetRegisteredTravelersByTripId","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of travelers for current trip.","schema":{"type":"array","items":{"$ref":"#/definitions/TravelerWithBalanceViewModel"}},"examples":{"application/json":[{"travelerId":16064,"tripId":12485,"fullName":"John J Smith","firstName":"John","lastName":"Smith","totalPaid":333.52,"totalDue":555.32,"status":1},{"travelerId":16061,"tripId":12345,"fullName":"John J Week","firstName":"John","lastName":"Week","totalPaid":1.5,"totalDue":0,"status":2}]}},"404":{"description":"Trip not found."},"500":{"description":"Internal server error."}}}},"/api/Trip/{tripId}/Contacts":{"get":{"tags":["Trip"],"summary":"Get contacts of the chosen trip [allowed for authorized]","operationId":"Trip_GetTripContacts","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip Id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"List of contacts for current trip should be shown.","schema":{"type":"array","items":{"$ref":"#/definitions/TripContactResponseModel"}},"examples":{"application/json":[{"travelerId":1,"userId":2,"firstName":"Dave","lastName":"Smith","fullName":"Dave John Smith","travelerType":"ADULT","cellPhoneNumber":"111-222-3334","isActive":true},{"travelerId":10,"userId":null,"firstName":"Test","lastName":"Smith","fullName":"Test John Smith","travelerType":"CHAPERON","cellPhoneNumber":null,"isActive":false}]}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/{tripId}/EmergencyInfo":{"get":{"tags":["Trip"],"summary":"Get Emergency Info by trip id [allowed for authorized]","operationId":"Trip_GetTripEmergencyInfo","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip Id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Emergency Info should be shown.","schema":{"$ref":"#/definitions/TripEmergencyInfoResponseModel"},"examples":{"application/json":{"tripOwnerOfficePhoneNumber":"111-111-1111","tripOwnerHomePhoneNumber":"111-111-1111","tripOwnerCellPhoneNumber":"111-111-1111","tripOwnerPrimaryEmail":"trip-owner@test.test","tripOwnerSecondaryEmail":"trip-owner2@test.test","tripOwnerFirstName":"Test","tripOwnerLastName":"Test","clientPrimaryPhoneNumber":"111-111-1111","clientSecondaryPhoneNumber":"111-111-1111","clientName":"Test Test","groupLeaderOfficePhoneNumber":"111-111-1111","groupLeaderHomePhoneNumber":"111-111-1111","groupLeaderCellPhoneNumber":"111-111-1111","groupLeaderPrimaryEmail":"group-leader@test.test","groupLeaderSecondaryEmail":"group-leader2@test.test","groupLeaderFirstName":"Test","groupLeaderLastName":"Test","tourDirectorEmergencyOfficePhoneNumber":null,"tourDirectorEmergencyHomePhoneNumber":null,"tourDirectorEmergencyCellPhoneNumber":null,"emergencyPhoneNumber":null,"hotels":[{"hotelId":123,"hotelName":"AmeriSuites Orlando Universal","hotelAddress":null,"hotelPhone":"111.111.2222","longitude":null,"latitude":null},{"hotelId":456,"hotelName":"Test","hotelAddress":null,"hotelPhone":"111.111.1111","longitude":null,"latitude":null}]}}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/EnableDisableGroupMessaging/{tripId}":{"put":{"tags":["Trip"],"summary":"Enable/Disable Group Messaging for current trip [allowed for authorized]","operationId":"Trip_EnableDisableGroupMessaging","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with enabled parameter","required":true,"schema":{"$ref":"#/definitions/TripEnableDisableGroupMessagingViewModel"}},{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Group messaging setting changed successfully.","schema":{"$ref":"#/definitions/TripEnableDisableGroupMessagingViewModel"},"examples":{"application/json":{"enable":true}}},"400":{"description":"Bad request."},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/EnableDisableGroupMediaSharing/{tripId}":{"put":{"tags":["Trip"],"summary":"Enable/Disable Group Media Sharing for current trip [allowed for authorized]","operationId":"Trip_EnableDisableGroupMediaSharing","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"model","in":"body","description":"Model with enabled parameter","required":true,"schema":{"$ref":"#/definitions/TripEnableDisableGroupMessagingViewModel"}},{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Group media sharing setting changed successfully.","schema":{"$ref":"#/definitions/TripEnableDisableGroupMessagingViewModel"},"examples":{"application/json":{"enable":true}}},"400":{"description":"Bad request."},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/TourConditions/{tripNumber}":{"get":{"tags":["Trip"],"summary":"Get tour conditions by trip id","operationId":"Trip_GetTourConditions","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripNumber","in":"path","description":"Trip number","required":true,"type":"string"}],"responses":{"200":{"description":"The trip tour conditions should be shown.","schema":{"$ref":"#/definitions/TripTourConditionsResponseModel"},"examples":{"application/json":{"tariffEffectiveDate":"2000-01-01T00:00:00","tourPricesSpecialMessage":"This is a special message","hotelNightsIncluded":2,"mealsIncluded":4,"exclusionParagraph":"This is an exclusion paragraph.","cancellationParagraph":"This is a cancellation paragraph.","responsibilityParagraph":"This is a responsibility paragraph."}}},"404":{"description":"Entered trip number is invalid."},"500":{"description":"Internal server error."}}}},"/api/Trip/TourConditions/{tripId}":{"get":{"tags":["Trip"],"summary":"Get tour conditions by trip id","operationId":"Trip_GetTourConditions","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"tripId","in":"path","description":"Trip id","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"The trip tour conditions should be shown.","schema":{"$ref":"#/definitions/TripTourConditionsResponseModel"},"examples":{"application/json":{"tariffEffectiveDate":"2000-01-01T00:00:00","tourPricesSpecialMessage":"This is a special message","hotelNightsIncluded":2,"mealsIncluded":4,"exclusionParagraph":"This is an exclusion paragraph.","cancellationParagraph":"This is a cancellation paragraph.","responsibilityParagraph":"This is a responsibility paragraph."}}},"404":{"description":"Entered trip id is invalid."},"500":{"description":"Internal server error."}}}},"/api/VersionTest":{"get":{"tags":["VersionTest"],"operationId":"VersionTest_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"type":"string"}}}}},"post":{"tags":["VersionTest"],"operationId":"VersionTest_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":[],"parameters":[{"name":"value","in":"body","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}}}},"/api/VersionTest/{id}":{"put":{"tags":["VersionTest"],"operationId":"VersionTest_Put","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":[],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"},{"name":"value","in":"body","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}}},"delete":{"tags":["VersionTest"],"operationId":"VersionTest_Delete","consumes":[],"produces":[],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"204":{"description":"No Content"}}}},"/token":{"post":{"tags":["Authentication"],"summary":"Authorization endpoint","consumes":["application/x-www-form-urlencoded"],"parameters":[{"name":"grant_type","in":"formData","required":true,"type":"string","default":"password"},{"name":"username","in":"formData","required":true,"type":"string","default":""},{"name":"password","in":"formData","required":true,"type":"string","default":""}],"responses":{"200":{"description":"Success","schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"default":"bearer","type":"string"},"expires_in":{"default":86399,"type":"int"}}}},"400":{"description":"The user name or password is incorrect","schema":{"type":"object","properties":{"error":{"default":"invalid_grant","type":"string"},"error_description":{"default":"The user name or password is incorrect.","type":"string"}}}}}}}},"definitions":{"ChangeUsernameModel":{"required":["email"],"type":"object","properties":{"accountId":{"format":"int32","description":"User id fom database","type":"integer"},"email":{"description":"User name and primary email","pattern":"^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$","type":"string"}},"example":{"accountId":1001,"email":"newemail@gmail.com"}},"ChangePasswordModel":{"required":["password","confirmPassword"],"type":"object","properties":{"password":{"description":"New password","maxLength":100,"minLength":0,"type":"string"},"confirmPassword":{"description":"Confirm new password","type":"string"}},"example":{"password":"123456abcde","confirmPassword":"123456abcde"}},"ForgotPasswordModel":{"required":["email"],"type":"object","properties":{"email":{"description":"Pass an email to reset the password","pattern":"^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$","type":"string"},"userName":{"description":"Pass an Username to reset the password","type":"string"}},"example":{"email":"newemail@gmail.com","userName":"username123"}},"AccountViewModel":{"type":"object","properties":{"userId":{"format":"int32","type":"integer"},"contactId":{"format":"int32","type":"integer"},"roles":{"type":"array","items":{"type":"string"}},"travelerType":{"type":"string"},"travelerActiveTripId":{"format":"int32","type":"integer"}}},"CreateAccountRequestModel":{"required":["email","password","firstName","lastName","addressLine1","city","state","zipCode"],"type":"object","properties":{"email":{"description":"User email","pattern":"^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$","type":"string"},"password":{"description":"User password","maxLength":100,"minLength":0,"type":"string"},"firstName":{"description":"User first name","maxLength":30,"minLength":0,"type":"string"},"lastName":{"description":"User last name","maxLength":30,"minLength":0,"type":"string"},"salutation":{"description":"User salutation","maxLength":30,"minLength":0,"type":"string"},"primaryPhone":{"description":"User primary phone number","maxLength":30,"minLength":0,"type":"string"},"alternatePhone1":{"description":"User alternative phone number 1","maxLength":30,"minLength":0,"type":"string"},"alternatePhone2":{"description":"User alternative phone number 2","maxLength":30,"minLength":0,"type":"string"},"fax":{"description":"User fax","maxLength":30,"minLength":0,"type":"string"},"addressLine1":{"description":"User primary address","maxLength":40,"minLength":0,"type":"string"},"addressLine2":{"description":"User alternative address","maxLength":40,"minLength":0,"type":"string"},"city":{"description":"User city","maxLength":30,"minLength":0,"type":"string"},"state":{"description":"User's location state","maxLength":2,"minLength":0,"type":"string"},"zipCode":{"description":"User's location zip code","maxLength":11,"minLength":0,"type":"string"}},"example":{"email":"someemail@gmail.com","password":"123456","firstName":"Test","lastName":"Test","salutation":"Ms","primaryPhone":"123-4567-897","alternatePhone1":"555-4444-555","alternatePhone2":"555-4444-555","fax":"1111","addressLine1":"Otter Ln Middleberge FL 32068","addressLine2":"Carly Jean Rohrig 6762 33 Ave N","city":"St. Petersburg","state":"AB","zipCode":"36000"}},"CreateAccountResponseModel":{"required":["email","password","firstName","lastName","addressLine1","city","state","zipCode"],"type":"object","properties":{"accountId":{"format":"int32","description":"User id","type":"integer"},"email":{"description":"User email","pattern":"^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$","type":"string"},"password":{"description":"User password","maxLength":100,"minLength":0,"type":"string"},"firstName":{"description":"User first name","maxLength":30,"minLength":0,"type":"string"},"lastName":{"description":"User last name","maxLength":30,"minLength":0,"type":"string"},"salutation":{"description":"User salutation","maxLength":30,"minLength":0,"type":"string"},"primaryPhone":{"description":"User primary phone number","maxLength":30,"minLength":0,"type":"string"},"alternatePhone1":{"description":"User alternative phone number 1","maxLength":30,"minLength":0,"type":"string"},"alternatePhone2":{"description":"User alternative phone number 2","maxLength":30,"minLength":0,"type":"string"},"fax":{"description":"User fax","maxLength":30,"minLength":0,"type":"string"},"addressLine1":{"description":"User primary address","maxLength":40,"minLength":0,"type":"string"},"addressLine2":{"description":"User alternative address","maxLength":40,"minLength":0,"type":"string"},"city":{"description":"User city","maxLength":30,"minLength":0,"type":"string"},"state":{"description":"User's location state","maxLength":2,"minLength":0,"type":"string"},"zipCode":{"description":"User's location zip code","maxLength":11,"minLength":0,"type":"string"}}},"UpdateContactInformationModel":{"required":["firstName","lastName","primaryPhone","addressLine1","city","state","zipCode"],"type":"object","properties":{"accountId":{"format":"int32","description":"User id","type":"integer"},"firstName":{"description":"User first name","maxLength":30,"minLength":0,"type":"string"},"lastName":{"description":"User last name","maxLength":30,"minLength":0,"type":"string"},"salutation":{"description":"User salutation","maxLength":30,"minLength":0,"type":"string"},"primaryPhone":{"description":"User primary phone number","maxLength":30,"minLength":0,"type":"string"},"alternatePhone1":{"description":"User alternative phone number 1","maxLength":30,"minLength":0,"type":"string"},"alternatePhone2":{"description":"User alternative phone number 2","maxLength":30,"minLength":0,"type":"string"},"fax":{"description":"User fax","maxLength":30,"minLength":0,"type":"string"},"addressLine1":{"description":"User primary address","maxLength":40,"minLength":0,"type":"string"},"addressLine2":{"description":"User alternative address","maxLength":40,"minLength":0,"type":"string"},"city":{"description":"User city","maxLength":30,"minLength":0,"type":"string"},"state":{"description":"User's location state","maxLength":2,"minLength":0,"type":"string"},"zipCode":{"description":"User's location zip code","maxLength":11,"minLength":0,"type":"string"}},"example":{"accountId":1001,"firstName":"Test","lastName":"Test","salutation":"Ms","primaryPhone":"123-4567-897","alternatePhone1":"555-4444-555","alternatePhone2":"555-4444-555","fax":"1111","addressLine1":"Otter Ln Middleberge FL 32068","addressLine2":"Carly Jean Rohrig 6762 33 Ave N","city":"St. Petersburg","state":"AB","zipCode":"36000"}},"TripUserMessageViewModel":{"type":"object","properties":{"messageId":{"format":"int32","type":"integer"},"senderId":{"format":"int32","type":"integer"},"senderFirstName":{"type":"string"},"senderLastName":{"type":"string"},"imageUrl":{"type":"string"},"videoUrl":{"type":"string"},"text":{"type":"string"},"messageType":{"format":"int32","type":"integer"},"sentOn":{"format":"date-time","type":"string"},"formattedSentOn":{"type":"string","readOnly":true},"isReportedByUser":{"type":"boolean"},"isActive":{"type":"boolean"},"point":{"$ref":"#/definitions/TripUserMessageCreatePointViewModel"},"conversationId":{"type":"string"}}},"TripUserMessageCreatePointViewModel":{"type":"object","properties":{"latitude":{"format":"double","type":"number"},"longitude":{"format":"double","type":"number"}}},"TripUserMessageCreateViewModel":{"type":"object","properties":{"text":{"type":"string"},"messageType":{"format":"int32","type":"integer"},"chaperoneId":{"format":"int32","type":"integer"},"sentOn":{"format":"date-time","type":"string"},"image":{"format":"byte","type":"string"},"imageFileName":{"type":"string"},"video":{"format":"byte","type":"string"},"videoFileName":{"type":"string"},"point":{"$ref":"#/definitions/TripUserMessageCreatePointViewModel"},"conversationId":{"type":"string"}},"example":{"text":"i'm ready for a trip","messageType":4,"chaperoneId":123,"sentOn":"2018-09-21T23:20:50","image":"AAAAAAAAAAAAAAAAAAAAAAA=","imageFileName":"test-image.jpg","video":"AAAAAAAAAAAAAAAAAAAAAAA=","videoFileName":"test-video.mp4","point":{"latitude":49.589542,"longitude":34.551273},"conversationId":null}},"TripUserMessageCountResponseModel":{"type":"object","properties":{"count":{"format":"int32","description":"Count of messages","type":"integer"}}},"TripUserMessageImagesByTripIdResponseModel":{"type":"object","properties":{"images":{"type":"array","items":{"$ref":"#/definitions/TripUserMessageImage"}}}},"TripUserMessageImage":{"type":"object","properties":{"messageId":{"format":"int32","type":"integer"},"imageUrl":{"type":"string"}}},"TripUserMessageImagesByTripIdResponseModelExample":{"type":"object","properties":{}},"TravelerPayResponseModel":{"type":"object","properties":{"travelerId":{"format":"int32","description":"Traveler id","type":"integer"},"displayName":{"description":"Traveler name to display","type":"string"},"fullName":{"description":"Traveler full name","type":"string"},"isActive":{"description":"Traveler status","type":"boolean"},"isPendingCancellation":{"description":"Is traveler pending cancellation","type":"boolean"}}},"PaymentScheduleResponseModel":{"type":"object","properties":{"id":{"format":"int32","description":"Schedule id of the trip payments","type":"integer"},"totalDue":{"format":"double","description":"Total due amount","type":"number"},"type":{"description":"Payment type","type":"string"},"dueDate":{"format":"date-time","description":"Due date of payment","type":"string"}}},"PaymentHistoryResponseModel":{"type":"object","properties":{"id":{"format":"int32","description":"Payment id","type":"integer"},"totalPaid":{"format":"double","description":"Amount of payment","type":"number"},"type":{"description":"Payment type","type":"string"},"paidOn":{"format":"date-time","description":"Date when payment was made","type":"string"}}},"CreditCardPaymentRequestModel":{"required":["firstName","lastName","email","phone"],"type":"object","properties":{"travelerPays":{"type":"array","items":{"$ref":"#/definitions/TravelerPay"}},"firstName":{"description":"Payer first name","maxLength":30,"minLength":0,"type":"string"},"lastName":{"description":"Payer last name","maxLength":30,"minLength":0,"type":"string"},"email":{"description":"Payer Email","pattern":"^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$","type":"string"},"phone":{"description":"Payer phone number","maxLength":30,"minLength":0,"type":"string"}},"example":{"travelerPays":[{"travelerId":1,"amount":1.02},{"travelerId":2,"amount":1}],"firstName":"Test","lastName":"LastName","email":"test@test.test","phone":"1234567890"}},"TravelerPay":{"required":["travelerId"],"type":"object","properties":{"travelerId":{"format":"int32","description":"Traveler id","type":"integer"},"amount":{"format":"double","description":"Total amount of payment for traveler","minimum":0,"type":"number"}}},"CreditCardPaymentReceiptResponseModel":{"type":"object","properties":{"tripId":{"format":"int32","type":"integer"},"tripNumber":{"type":"string"},"tripDescription":{"type":"string"},"cardNumber":{"type":"string"},"paymentDate":{"format":"date-time","type":"string"},"transactionAmount":{"format":"double","type":"number"},"transactionConfirmationNumber":{"type":"string"}}},"ECheckPaymentRequestModel":{"required":["bankName","bankRoutingNumber","accountNumber","accountType","nameOnBankAccount","email"],"type":"object","properties":{"travelerPays":{"type":"array","items":{"$ref":"#/definitions/TravelerPay"}},"bankName":{"description":"Bank name","type":"string"},"bankRoutingNumber":{"description":"ABA code of the bank","maxLength":9,"minLength":9,"type":"string"},"accountNumber":{"description":"Bank account number","type":"string"},"accountType":{"description":"Bank account type id from database","type":"string"},"nameOnBankAccount":{"description":"Payer full name","type":"string"},"email":{"description":"Payer Email","pattern":"^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$","type":"string"}},"example":{"travelerPays":[{"travelerId":1,"amount":1.02},{"travelerId":2,"amount":1}],"bankName":"Bank of Earth","bankRoutingNumber":"121042882","accountNumber":"123456789123","accountType":"CHECKING","nameOnBankAccount":"Jane Doe","email":"test@test.test"}},"ECheckPaymentReceiptResponseModel":{"type":"object","properties":{"tripId":{"format":"int32","type":"integer"},"tripNumber":{"type":"string"},"tripDescription":{"type":"string"},"bankName":{"type":"string"},"bankRoutingNumber":{"type":"string"},"accountNumber":{"type":"string"},"nameOnBankAccount":{"type":"string"},"paymentDate":{"format":"date-time","type":"string"},"transactionAmount":{"format":"double","type":"number"},"transactionConfirmationNumber":{"type":"string"}}},"CompleteTransactionModel":{"description":"CompleteTransactionModel","type":"object","properties":{"xTransId":{"description":"Authorize.Net Transaction Id","type":"string"},"xResponseCode":{"description":"Authorize.Net Response Code","type":"string"},"xResponseReasonCode":{"description":"Authorize.Net Response Reason Code","type":"string"},"xResponseReasonText":{"description":"Authorize.Net Response Reason Text","type":"string"},"xesponseResult":{"description":"Authorize.Net Response Result","type":"string"},"travelerPays":{"description":"List of Travelers Payments","type":"array","items":{"$ref":"#/definitions/TravelerPay"}}},"example":{"xTransId":"400000000000","xResponseCode":"1","xResponseReasonCode":"1","xResponseReasonText":"This transaction has been approved.","xesponseResult":"Approved","travelerPays":[{"travelerId":1,"amount":1.02},{"travelerId":2,"amount":1}]}},"CompleteTransactionResponseModel":{"description":"CompleteTransactionResponseModel","type":"object","properties":{"transactionAmount":{"format":"double","description":"Total amount of payment","type":"number"},"paymentDate":{"format":"date-time","description":"Payment Date","type":"string"},"transactionConfirmationNumber":{"description":"Authorize.Net Transaction Number","type":"string"}}},"TravelerViewModelRequest":{"required":["firstName","lastName","travelerType"],"type":"object","properties":{"firstName":{"maxLength":20,"minLength":0,"type":"string"},"lastName":{"maxLength":30,"minLength":0,"type":"string"},"middleName":{"maxLength":20,"minLength":0,"type":"string"},"travelerType":{"type":"string"},"instrumentId":{"format":"int32","type":"integer"},"disneyCardNumber":{"maxLength":20,"minLength":0,"type":"string"},"birthday":{"format":"date-time","type":"string"},"gender":{"maxLength":1,"minLength":0,"type":"string"},"cellPhone":{"maxLength":20,"minLength":0,"type":"string"},"specialNeeds":{"type":"string"}},"example":{"firstName":"John","lastName":"Smith","middleName":"J","travelerType":"ADULT","instrumentId":1,"disneyCardNumber":"4266 1234 5678 9112","birthday":"2000-08-29T23:20:50","gender":"M","cellPhone":"380665478456","specialNeeds":"A bottle of water every day"}},"TravelerViewModel":{"required":["firstName","lastName","travelerType"],"type":"object","properties":{"travelerId":{"format":"int32","type":"integer"},"travelerTypeDescription":{"type":"string"},"instrument":{"type":"string"},"genderText":{"type":"string"},"hasSpecialNeeds":{"type":"string"},"firstName":{"maxLength":20,"minLength":0,"type":"string"},"lastName":{"maxLength":30,"minLength":0,"type":"string"},"middleName":{"maxLength":20,"minLength":0,"type":"string"},"travelerType":{"type":"string"},"instrumentId":{"format":"int32","type":"integer"},"disneyCardNumber":{"maxLength":20,"minLength":0,"type":"string"},"birthday":{"format":"date-time","type":"string"},"gender":{"maxLength":1,"minLength":0,"type":"string"},"cellPhone":{"maxLength":20,"minLength":0,"type":"string"},"specialNeeds":{"type":"string"}}},"TravelerListItemViewModel":{"type":"object","properties":{"travelerId":{"format":"int32","type":"integer"},"tripId":{"format":"int32","type":"integer"},"fullName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"travelerType":{"type":"string"},"cellPhoneNumber":{"type":"string"},"hotelRoom":{"type":"string"},"busName":{"type":"string"},"flightGroupName":{"type":"string"}}},"InstrumentViewModel":{"type":"object","properties":{"id":{"format":"int32","type":"integer"},"name":{"type":"string"}}},"TravelerContactInformationResponseModel":{"type":"object","properties":{"accountId":{"format":"int32","description":"User id","type":"integer"},"firstName":{"description":"User first name","type":"string"},"lastName":{"description":"User last name","type":"string"},"salutation":{"description":"User salutation","type":"string"},"primaryPhone":{"description":"User office primary number","type":"string"},"alternatePhone1":{"description":"User alternate phone number","type":"string"},"alternatePhone2":{"description":"User alternate phone number","type":"string"},"fax":{"description":"User fax","type":"string"},"addressLine1":{"description":"User primary address","type":"string"},"addressLine2":{"description":"User alternative address","type":"string"},"city":{"description":"User city","type":"string"},"state":{"description":"User's location state","type":"string"},"zipCode":{"description":"User's location zip code","type":"string"}}},"TravelerLocationResponseExtendedModel":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"travelerLocationId":{"format":"int64","type":"integer"},"userId":{"format":"int32","type":"integer"},"tripId":{"format":"int32","type":"integer"},"latitude":{"format":"double","type":"number"},"longitude":{"format":"double","type":"number"},"accuracy":{"format":"int32","type":"integer"},"altitude":{"format":"double","type":"number"},"speed":{"format":"double","type":"number"},"odometer":{"format":"double","type":"number"},"heading":{"format":"double","type":"number"},"event":{"type":"string"},"isMoving":{"type":"boolean"},"batteryLevel":{"format":"double","type":"number"},"batteryIsCharging":{"type":"boolean"},"geofence":{"type":"string"},"provider":{"type":"string"},"createdDate":{"format":"date-time","type":"string"},"recordedDate":{"format":"date-time","type":"string"},"createdByUserId":{"format":"int32","type":"integer"}}},"TravelerLocationRequestModel":{"required":["location"],"type":"object","properties":{"location":{"$ref":"#/definitions/TravelerLocationModel"}},"example":{"location":{"timestamp":"2000-01-01T10:00:30","coords":{"latitude":50.5,"longitude":-50.5,"accuracy":10,"altitude":100,"speed":0,"heading":0},"extras":{"tripId":6565},"battery":{"level":95,"is_Charging":false},"odometer":100,"event":"motionchange","is_Moving":false}}},"TravelerLocationModel":{"required":["timestamp","coords","extras"],"type":"object","properties":{"timestamp":{"format":"date-time","type":"string"},"coords":{"$ref":"#/definitions/LocationCoordinatesModel"},"extras":{"$ref":"#/definitions/LocationExtraDataModel"},"battery":{"$ref":"#/definitions/BatteryDataModel"},"odometer":{"format":"double","type":"number"},"event":{"type":"string"},"is_Moving":{"type":"boolean"}}},"LocationCoordinatesModel":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"format":"double","type":"number"},"longitude":{"format":"double","type":"number"},"accuracy":{"format":"int32","type":"integer"},"altitude":{"format":"double","type":"number"},"speed":{"format":"double","type":"number"},"heading":{"format":"double","type":"number"}}},"LocationExtraDataModel":{"required":["tripId"],"type":"object","properties":{"tripId":{"format":"int32","description":"Trip id from database","type":"integer"}}},"BatteryDataModel":{"type":"object","properties":{"level":{"format":"double","type":"number"},"is_Charging":{"type":"boolean"}}},"TravelerLocationResponseModel":{"type":"object","properties":{"travelerLocationId":{"format":"int64","type":"integer"},"userId":{"format":"int32","type":"integer"},"tripId":{"format":"int32","type":"integer"},"latitude":{"format":"double","type":"number"},"longitude":{"format":"double","type":"number"},"accuracy":{"format":"int32","type":"integer"},"altitude":{"format":"double","type":"number"},"speed":{"format":"double","type":"number"},"odometer":{"format":"double","type":"number"},"heading":{"format":"double","type":"number"},"event":{"type":"string"},"isMoving":{"type":"boolean"},"batteryLevel":{"format":"double","type":"number"},"batteryIsCharging":{"type":"boolean"},"geofence":{"type":"string"},"provider":{"type":"string"},"createdDate":{"format":"date-time","type":"string"},"recordedDate":{"format":"date-time","type":"string"},"createdByUserId":{"format":"int32","type":"integer"}}},"TravelerLocationBulkRequestModel":{"required":["location"],"type":"object","properties":{"location":{"type":"array","items":{"$ref":"#/definitions/TravelerLocationModel"}}},"example":{"location":[{"timestamp":"2000-01-01T10:00:30","coords":{"latitude":50.5,"longitude":-50.5,"accuracy":10,"altitude":100,"speed":0,"heading":0},"extras":{"tripId":6565},"battery":{"level":95,"is_Charging":false},"odometer":100,"event":"motionchange","is_Moving":false},{"timestamp":"2000-01-01T10:01:30","coords":{"latitude":50.6,"longitude":-50.6,"accuracy":10,"altitude":100,"speed":0,"heading":0},"extras":{"tripId":6565},"battery":{"level":95,"is_Charging":false},"odometer":100,"event":"motionchange","is_Moving":false}]}},"TripResponseModel":{"type":"object","properties":{"tripId":{"format":"int32","description":"Trip id from database","type":"integer"},"briefingDate":{"format":"date-time","description":"The trip briefing date","type":"string"},"start":{"format":"date-time","description":"The day trip should start","type":"string"},"end":{"format":"date-time","description":"The day trip should be ended","type":"string"},"lastDayToCancel":{"format":"date-time","description":"The day when a user can cancel trip visitation request","type":"string"},"tripName":{"description":"Trip name","type":"string"},"travelConsultantName":{"description":"Name of the consultant assigned to the trip","type":"string"},"travelConsultantId":{"format":"int32","description":"Assigned consultant id from database","type":"integer"},"location":{"description":"Trip location address","type":"string"},"past":{"description":"Marker that indicates status of the trip","type":"boolean"},"imageUrl":{"description":"The image files repository url","type":"string"}}},"TripDetailsViewModel":{"type":"object","properties":{"tripId":{"format":"int32","type":"integer"},"travelerId":{"format":"int32","type":"integer"},"fullName":{"type":"string"},"tripName":{"type":"string"},"tripStartDate":{"format":"date-time","type":"string"},"tripEndDate":{"format":"date-time","type":"string"},"briefingDate":{"format":"date-time","type":"string"},"hotelInfo":{"type":"array","items":{"$ref":"#/definitions/TripDetailsHotelInfo"}},"roomInfo":{"type":"array","items":{"$ref":"#/definitions/TripDetailsRoomInfo"}},"assignedChaperoneInfo":{"$ref":"#/definitions/TripDetailsChaperoneInfo"},"flightInfo":{"$ref":"#/definitions/TripDetailsFlightInfo"},"busInfo":{"$ref":"#/definitions/TripDetailsBusInfo"},"itinierary":{"type":"array","items":{"$ref":"#/definitions/TripItineraryResponseModel"}},"tourDirectors":{"type":"array","items":{"$ref":"#/definitions/TripDetailsTourDirectorInfo"}}}},"TripDetailsHotelInfo":{"type":"object","properties":{"hotelId":{"format":"int32","type":"integer"},"hotelName":{"type":"string"},"hotelAddress":{"type":"string"},"hotelPhone":{"type":"string"},"longitude":{"format":"double","type":"number"},"latitude":{"format":"double","type":"number"}}},"TripDetailsRoomInfo":{"type":"object","properties":{"roomListId":{"format":"int32","type":"integer"},"roomName":{"type":"string"}}},"TripDetailsChaperoneInfo":{"type":"object","properties":{"chaperoneTravelerId":{"format":"int32","type":"integer"},"chaperoneUserId":{"format":"int32","type":"integer"},"chaperoneName":{"type":"string"}}},"TripDetailsFlightInfo":{"type":"object","properties":{"flightGroupId":{"format":"int32","type":"integer"},"flightGroupName":{"type":"string"}}},"TripDetailsBusInfo":{"type":"object","properties":{"busId":{"format":"int32","type":"integer"},"busName":{"type":"string"}}},"TripItineraryResponseModel":{"type":"object","properties":{"dayDate":{"format":"date-time","type":"string"},"itineraryActivity":{"type":"array","items":{"$ref":"#/definitions/TripItineraryActivityResponseModel"}}}},"TripDetailsTourDirectorInfo":{"type":"object","properties":{"tourDirectorTravelerId":{"format":"int32","type":"integer"},"tourDirectorUserId":{"format":"int32","type":"integer"},"tourDirectorName":{"type":"string"}}},"TripItineraryActivityResponseModel":{"type":"object","properties":{"time":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"sequenceNumber":{"format":"int32","type":"integer"}}},"TripDetailsListsViewModel":{"type":"object","properties":{"flightGroups":{"type":"array","items":{"$ref":"#/definitions/TripDetailsFlightInfo"}},"hotels":{"type":"array","items":{"$ref":"#/definitions/TripDetailsHotelInfo"}},"rooms":{"type":"array","items":{"$ref":"#/definitions/TripDetailsRoomListInfo"}},"groundTransports":{"type":"array","items":{"$ref":"#/definitions/TripDetailsGroundTransportInfo"}},"chaperones":{"type":"array","items":{"$ref":"#/definitions/TripDetailsChaperoneInfo"}}}},"TripDetailsRoomListInfo":{"type":"object","properties":{"roomListId":{"format":"int32","type":"integer"},"roomNumbers":{"type":"array","items":{"type":"string"}}}},"TripDetailsGroundTransportInfo":{"type":"object","properties":{"groundTransportId":{"format":"int32","type":"integer"},"groundTransportName":{"type":"string"},"busses":{"type":"array","items":{"$ref":"#/definitions/TripDetailsBusInfo"}}}},"TravelerSpecialNeedsViewModel":{"type":"object","properties":{"travelerId":{"format":"int32","type":"integer"},"tripId":{"format":"int32","type":"integer"},"fullName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"specialNeeds":{"type":"string"}}},"TripCostViewModel":{"type":"object","properties":{"actualDate":{"format":"date-time","type":"string"},"rooms":{"type":"array","items":{"$ref":"#/definitions/TripCostPerRoomViewModel"}}}},"TripCostPerRoomViewModel":{"type":"object","properties":{"roomSize":{"format":"int32","type":"integer"},"prices":{"type":"array","items":{"$ref":"#/definitions/TripCostPerRoomAndPaxViewModel"}}}},"TripCostPerRoomAndPaxViewModel":{"type":"object","properties":{"paxCount":{"format":"int32","type":"integer"},"salesSellingPricePerPax":{"format":"double","type":"number"}}},"TravelerWithBalanceViewModel":{"type":"object","properties":{"travelerId":{"format":"int32","type":"integer"},"tripId":{"format":"int32","type":"integer"},"fullName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"totalPaid":{"format":"double","type":"number"},"totalDue":{"format":"double","type":"number"},"status":{"format":"int32","type":"integer"}}},"TripContactResponseModel":{"type":"object","properties":{"travelerId":{"format":"int32","description":"Traveler id","type":"integer"},"userId":{"format":"int32","description":"Web user id","type":"integer"},"firstName":{"description":"Traveler first name","type":"string"},"lastName":{"description":"Traveler last name","type":"string"},"fullName":{"description":"Traveler full name","type":"string"},"travelerType":{"description":"Traveler type (ADULT, CHAPERON, CHILD, DRIVER, ESCORT, STAFF, STUDENT)","type":"string"},"cellPhoneNumber":{"description":"Traveler cell phone number","type":"string"},"isActive":{"description":"Traveler status","type":"boolean"}}},"TripEmergencyInfoResponseModel":{"type":"object","properties":{"tripOwnerOfficePhoneNumber":{"type":"string"},"tripOwnerHomePhoneNumber":{"type":"string"},"tripOwnerCellPhoneNumber":{"type":"string"},"tripOwnerPrimaryEmail":{"type":"string"},"tripOwnerSecondaryEmail":{"type":"string"},"tripOwnerFirstName":{"type":"string"},"tripOwnerLastName":{"type":"string"},"clientPrimaryPhoneNumber":{"type":"string"},"clientSecondaryPhoneNumber":{"type":"string"},"clientName":{"type":"string"},"groupLeaderOfficePhoneNumber":{"type":"string"},"groupLeaderHomePhoneNumber":{"type":"string"},"groupLeaderCellPhoneNumber":{"type":"string"},"groupLeaderPrimaryEmail":{"type":"string"},"groupLeaderSecondaryEmail":{"type":"string"},"groupLeaderFirstName":{"type":"string"},"groupLeaderLastName":{"type":"string"},"tourDirectorEmergencyOfficePhoneNumber":{"type":"string"},"tourDirectorEmergencyHomePhoneNumber":{"type":"string"},"tourDirectorEmergencyCellPhoneNumber":{"type":"string"},"emergencyPhoneNumber":{"type":"string"},"hotels":{"type":"array","items":{"$ref":"#/definitions/TripDetailsHotelInfo"}}}},"TripEnableDisableGroupMessagingViewModel":{"type":"object","properties":{"enable":{"type":"boolean"}},"example":{"enable":true}},"TripTourConditionsResponseModel":{"type":"object","properties":{"tariffEffectiveDate":{"format":"date-time","type":"string"},"tourPricesSpecialMessage":{"type":"string"},"hotelNightsIncluded":{"format":"int32","type":"integer"},"mealsIncluded":{"format":"int32","type":"integer"},"exclusionParagraph":{"type":"string"},"cancellationParagraph":{"type":"string"},"responsibilityParagraph":{"type":"string"}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/IM8KAPPS4U/123/1.0.0"}]}