| GET | /Enquiries/Details |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiriesDetails
{
public UUID Id = null;
public UUID getId() { return Id; }
public EnquiriesDetails setId(UUID value) { this.Id = value; return this; }
}
public static class GetEnquiryDetailsViewModel
{
public Integer Id = null;
public Integer AccessCode = null;
public Integer EntityContactId = null;
public UUID Guid = null;
public String PortCode = null;
public String PortName = null;
public String CountryName = null;
public byte[] FlagRound = null;
public Date DateFrom = null;
public Date DateTo = null;
public String AgentName = null;
public String BuyerAccountName = null;
public String RequestTerms = null;
public String GeneralComments = null;
public String VesselName = null;
public Integer IMONumber = null;
public Integer ScratchpadId = null;
public String Scratchpad = null;
public String DeliveryMethod = null;
public UUID SingleChatGuid = null;
public Integer SingleChatEntityId = null;
public Integer TotalChats = null;
public ArrayList<UUID> ChatIds = null;
public Boolean RiskRatingSubscriptionStatus = null;
public Boolean WindwardReportLive = null;
public Date WindwardReportExpiryDateTime = null;
public String LatestRAGStatus = null;
public String VesselWindwardUrl = null;
public Integer PortId = null;
public Boolean CanForwardEnquiry = null;
public Integer VesselId = null;
public Integer DeliveryMethodId = null;
public Integer CreditTermDays = null;
public String RequestedTermsType = null;
public String ButtonGroup = null;
public Boolean CanSendBroadcastChat = null;
public Integer AccountId = null;
public String ChatList = null;
public EntityContactViewModel EntityContact = null;
public ArrayList<GetEnquiryGradesViewModel> GetEnquiryGrades = null;
public Integer getId() { return Id; }
public GetEnquiryDetailsViewModel setId(Integer value) { this.Id = value; return this; }
public Integer getAccessCode() { return AccessCode; }
public GetEnquiryDetailsViewModel setAccessCode(Integer value) { this.AccessCode = value; return this; }
public Integer getEntityContactId() { return EntityContactId; }
public GetEnquiryDetailsViewModel setEntityContactId(Integer value) { this.EntityContactId = value; return this; }
public UUID getGuid() { return Guid; }
public GetEnquiryDetailsViewModel setGuid(UUID value) { this.Guid = value; return this; }
public String getPortCode() { return PortCode; }
public GetEnquiryDetailsViewModel setPortCode(String value) { this.PortCode = value; return this; }
public String getPortName() { return PortName; }
public GetEnquiryDetailsViewModel setPortName(String value) { this.PortName = value; return this; }
public String getCountryName() { return CountryName; }
public GetEnquiryDetailsViewModel setCountryName(String value) { this.CountryName = value; return this; }
public byte[] getFlagRound() { return FlagRound; }
public GetEnquiryDetailsViewModel setFlagRound(byte[] value) { this.FlagRound = value; return this; }
public Date getDateFrom() { return DateFrom; }
public GetEnquiryDetailsViewModel setDateFrom(Date value) { this.DateFrom = value; return this; }
public Date getDateTo() { return DateTo; }
public GetEnquiryDetailsViewModel setDateTo(Date value) { this.DateTo = value; return this; }
public String getAgentName() { return AgentName; }
public GetEnquiryDetailsViewModel setAgentName(String value) { this.AgentName = value; return this; }
public String getBuyerAccountName() { return BuyerAccountName; }
public GetEnquiryDetailsViewModel setBuyerAccountName(String value) { this.BuyerAccountName = value; return this; }
public String getRequestTerms() { return RequestTerms; }
public GetEnquiryDetailsViewModel setRequestTerms(String value) { this.RequestTerms = value; return this; }
public String getGeneralComments() { return GeneralComments; }
public GetEnquiryDetailsViewModel setGeneralComments(String value) { this.GeneralComments = value; return this; }
public String getVesselName() { return VesselName; }
public GetEnquiryDetailsViewModel setVesselName(String value) { this.VesselName = value; return this; }
public Integer getImoNumber() { return IMONumber; }
public GetEnquiryDetailsViewModel setImoNumber(Integer value) { this.IMONumber = value; return this; }
public Integer getScratchpadId() { return ScratchpadId; }
public GetEnquiryDetailsViewModel setScratchpadId(Integer value) { this.ScratchpadId = value; return this; }
public String getScratchpad() { return Scratchpad; }
public GetEnquiryDetailsViewModel setScratchpad(String value) { this.Scratchpad = value; return this; }
public String getDeliveryMethod() { return DeliveryMethod; }
public GetEnquiryDetailsViewModel setDeliveryMethod(String value) { this.DeliveryMethod = value; return this; }
public UUID getSingleChatGuid() { return SingleChatGuid; }
public GetEnquiryDetailsViewModel setSingleChatGuid(UUID value) { this.SingleChatGuid = value; return this; }
public Integer getSingleChatEntityId() { return SingleChatEntityId; }
public GetEnquiryDetailsViewModel setSingleChatEntityId(Integer value) { this.SingleChatEntityId = value; return this; }
public Integer getTotalChats() { return TotalChats; }
public GetEnquiryDetailsViewModel setTotalChats(Integer value) { this.TotalChats = value; return this; }
public ArrayList<UUID> getChatIds() { return ChatIds; }
public GetEnquiryDetailsViewModel setChatIds(ArrayList<UUID> value) { this.ChatIds = value; return this; }
public Boolean isRiskRatingSubscriptionStatus() { return RiskRatingSubscriptionStatus; }
public GetEnquiryDetailsViewModel setRiskRatingSubscriptionStatus(Boolean value) { this.RiskRatingSubscriptionStatus = value; return this; }
public Boolean isWindwardReportLive() { return WindwardReportLive; }
public GetEnquiryDetailsViewModel setWindwardReportLive(Boolean value) { this.WindwardReportLive = value; return this; }
public Date getWindwardReportExpiryDateTime() { return WindwardReportExpiryDateTime; }
public GetEnquiryDetailsViewModel setWindwardReportExpiryDateTime(Date value) { this.WindwardReportExpiryDateTime = value; return this; }
public String getLatestRAGStatus() { return LatestRAGStatus; }
public GetEnquiryDetailsViewModel setLatestRAGStatus(String value) { this.LatestRAGStatus = value; return this; }
public String getVesselWindwardUrl() { return VesselWindwardUrl; }
public GetEnquiryDetailsViewModel setVesselWindwardUrl(String value) { this.VesselWindwardUrl = value; return this; }
public Integer getPortId() { return PortId; }
public GetEnquiryDetailsViewModel setPortId(Integer value) { this.PortId = value; return this; }
public Boolean isCanForwardEnquiry() { return CanForwardEnquiry; }
public GetEnquiryDetailsViewModel setCanForwardEnquiry(Boolean value) { this.CanForwardEnquiry = value; return this; }
public Integer getVesselId() { return VesselId; }
public GetEnquiryDetailsViewModel setVesselId(Integer value) { this.VesselId = value; return this; }
public Integer getDeliveryMethodId() { return DeliveryMethodId; }
public GetEnquiryDetailsViewModel setDeliveryMethodId(Integer value) { this.DeliveryMethodId = value; return this; }
public Integer getCreditTermDays() { return CreditTermDays; }
public GetEnquiryDetailsViewModel setCreditTermDays(Integer value) { this.CreditTermDays = value; return this; }
public String getRequestedTermsType() { return RequestedTermsType; }
public GetEnquiryDetailsViewModel setRequestedTermsType(String value) { this.RequestedTermsType = value; return this; }
public String getButtonGroup() { return ButtonGroup; }
public GetEnquiryDetailsViewModel setButtonGroup(String value) { this.ButtonGroup = value; return this; }
public Boolean isCanSendBroadcastChat() { return CanSendBroadcastChat; }
public GetEnquiryDetailsViewModel setCanSendBroadcastChat(Boolean value) { this.CanSendBroadcastChat = value; return this; }
public Integer getAccountId() { return AccountId; }
public GetEnquiryDetailsViewModel setAccountId(Integer value) { this.AccountId = value; return this; }
public String getChatList() { return ChatList; }
public GetEnquiryDetailsViewModel setChatList(String value) { this.ChatList = value; return this; }
public EntityContactViewModel getEntityContact() { return EntityContact; }
public GetEnquiryDetailsViewModel setEntityContact(EntityContactViewModel value) { this.EntityContact = value; return this; }
public ArrayList<GetEnquiryGradesViewModel> getGetEnquiryGrades() { return GetEnquiryGrades; }
public GetEnquiryDetailsViewModel setGetEnquiryGrades(ArrayList<GetEnquiryGradesViewModel> value) { this.GetEnquiryGrades = value; return this; }
}
public static class EntityContactViewModel
{
public Integer Id = null;
public UUID Guid = null;
public Integer EntityId = null;
public String FirstName = null;
public String LastName = null;
public String Initials = null;
public String Password = null;
public String EmailAddress = null;
public Boolean DarkMode = null;
public EntityViewModel Entity = null;
public Date LastActive = null;
public UUID ImageGuid = null;
public Integer DialingCodeCountryId = null;
public String TelephoneNumber = null;
public Boolean IsBridgeClient = null;
public ArrayList<GetAllAccessLevelsForEntityContactIdViewModel> AccessLevels = null;
public Integer getId() { return Id; }
public EntityContactViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getGuid() { return Guid; }
public EntityContactViewModel setGuid(UUID value) { this.Guid = value; return this; }
public Integer getEntityId() { return EntityId; }
public EntityContactViewModel setEntityId(Integer value) { this.EntityId = value; return this; }
public String getFirstName() { return FirstName; }
public EntityContactViewModel setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public EntityContactViewModel setLastName(String value) { this.LastName = value; return this; }
public String getInitials() { return Initials; }
public EntityContactViewModel setInitials(String value) { this.Initials = value; return this; }
public String getPassword() { return Password; }
public EntityContactViewModel setPassword(String value) { this.Password = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public EntityContactViewModel setEmailAddress(String value) { this.EmailAddress = value; return this; }
public Boolean isDarkMode() { return DarkMode; }
public EntityContactViewModel setDarkMode(Boolean value) { this.DarkMode = value; return this; }
public EntityViewModel getEntity() { return Entity; }
public EntityContactViewModel setEntity(EntityViewModel value) { this.Entity = value; return this; }
public Date getLastActive() { return LastActive; }
public EntityContactViewModel setLastActive(Date value) { this.LastActive = value; return this; }
public UUID getImageGuid() { return ImageGuid; }
public EntityContactViewModel setImageGuid(UUID value) { this.ImageGuid = value; return this; }
public Integer getDialingCodeCountryId() { return DialingCodeCountryId; }
public EntityContactViewModel setDialingCodeCountryId(Integer value) { this.DialingCodeCountryId = value; return this; }
public String getTelephoneNumber() { return TelephoneNumber; }
public EntityContactViewModel setTelephoneNumber(String value) { this.TelephoneNumber = value; return this; }
public Boolean getIsBridgeClient() { return IsBridgeClient; }
public EntityContactViewModel setIsBridgeClient(Boolean value) { this.IsBridgeClient = value; return this; }
public ArrayList<GetAllAccessLevelsForEntityContactIdViewModel> getAccessLevels() { return AccessLevels; }
public EntityContactViewModel setAccessLevels(ArrayList<GetAllAccessLevelsForEntityContactIdViewModel> value) { this.AccessLevels = value; return this; }
}
public static class EntityViewModel
{
public Integer Id = null;
public UUID Guid = null;
public String Type = null;
public String Name = null;
public Boolean SuperTrader = null;
public String CompanyDomain = null;
public Integer KYCStartedBy = null;
public Integer KYCCompletedBy = null;
public String ETSMOHAAccount = null;
public Integer getId() { return Id; }
public EntityViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getGuid() { return Guid; }
public EntityViewModel setGuid(UUID value) { this.Guid = value; return this; }
public String getType() { return Type; }
public EntityViewModel setType(String value) { this.Type = value; return this; }
public String getName() { return Name; }
public EntityViewModel setName(String value) { this.Name = value; return this; }
public Boolean isSuperTrader() { return SuperTrader; }
public EntityViewModel setSuperTrader(Boolean value) { this.SuperTrader = value; return this; }
public String getCompanyDomain() { return CompanyDomain; }
public EntityViewModel setCompanyDomain(String value) { this.CompanyDomain = value; return this; }
public Integer getKycStartedBy() { return KYCStartedBy; }
public EntityViewModel setKycStartedBy(Integer value) { this.KYCStartedBy = value; return this; }
public Integer getKycCompletedBy() { return KYCCompletedBy; }
public EntityViewModel setKycCompletedBy(Integer value) { this.KYCCompletedBy = value; return this; }
public String getEtsmohaAccount() { return ETSMOHAAccount; }
public EntityViewModel setEtsmohaAccount(String value) { this.ETSMOHAAccount = value; return this; }
}
public static class GetAllAccessLevelsForEntityContactIdViewModel
{
public Integer Id = null;
public Boolean Allowed = null;
public String Name = null;
public String Description = null;
public String PrettyText = null;
public Integer getId() { return Id; }
public GetAllAccessLevelsForEntityContactIdViewModel setId(Integer value) { this.Id = value; return this; }
public Boolean isAllowed() { return Allowed; }
public GetAllAccessLevelsForEntityContactIdViewModel setAllowed(Boolean value) { this.Allowed = value; return this; }
public String getName() { return Name; }
public GetAllAccessLevelsForEntityContactIdViewModel setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public GetAllAccessLevelsForEntityContactIdViewModel setDescription(String value) { this.Description = value; return this; }
public String getPrettyText() { return PrettyText; }
public GetAllAccessLevelsForEntityContactIdViewModel setPrettyText(String value) { this.PrettyText = value; return this; }
}
public static class GetEnquiryGradesViewModel
{
public Integer Id = null;
public Integer QuantityFrom = null;
public Integer QuantityTo = null;
public String Quantity = null;
public String Comments = null;
public String Grade = null;
public Integer ProductId = null;
public Integer VersionId = null;
public Integer GradeId = null;
public Integer UnitId = null;
public Integer getId() { return Id; }
public GetEnquiryGradesViewModel setId(Integer value) { this.Id = value; return this; }
public Integer getQuantityFrom() { return QuantityFrom; }
public GetEnquiryGradesViewModel setQuantityFrom(Integer value) { this.QuantityFrom = value; return this; }
public Integer getQuantityTo() { return QuantityTo; }
public GetEnquiryGradesViewModel setQuantityTo(Integer value) { this.QuantityTo = value; return this; }
public String getQuantity() { return Quantity; }
public GetEnquiryGradesViewModel setQuantity(String value) { this.Quantity = value; return this; }
public String getComments() { return Comments; }
public GetEnquiryGradesViewModel setComments(String value) { this.Comments = value; return this; }
public String getGrade() { return Grade; }
public GetEnquiryGradesViewModel setGrade(String value) { this.Grade = value; return this; }
public Integer getProductId() { return ProductId; }
public GetEnquiryGradesViewModel setProductId(Integer value) { this.ProductId = value; return this; }
public Integer getVersionId() { return VersionId; }
public GetEnquiryGradesViewModel setVersionId(Integer value) { this.VersionId = value; return this; }
public Integer getGradeId() { return GradeId; }
public GetEnquiryGradesViewModel setGradeId(Integer value) { this.GradeId = value; return this; }
public Integer getUnitId() { return UnitId; }
public GetEnquiryGradesViewModel setUnitId(Integer value) { this.UnitId = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Enquiries/Details HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Id":0,"AccessCode":0,"EntityContactId":0,"Guid":"00000000000000000000000000000000","PortCode":"String","PortName":"String","CountryName":"String","FlagRound":"AA==","DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","AgentName":"String","BuyerAccountName":"String","RequestTerms":"String","GeneralComments":"String","VesselName":"String","IMONumber":0,"ScratchpadId":0,"Scratchpad":"String","DeliveryMethod":"String","SingleChatGuid":"00000000000000000000000000000000","SingleChatEntityId":0,"TotalChats":0,"ChatIds":["00000000000000000000000000000000"],"RiskRatingSubscriptionStatus":false,"WindwardReportLive":false,"WindwardReportExpiryDateTime":"0001-01-01T00:00:00.0000000","LatestRAGStatus":"String","VesselWindwardUrl":"String","PortId":0,"CanForwardEnquiry":false,"VesselId":0,"DeliveryMethodId":0,"CreditTermDays":0,"RequestedTermsType":"String","ButtonGroup":"String","CanSendBroadcastChat":false,"AccountId":0,"ChatList":"String","EntityContact":{"Id":0,"Guid":"00000000000000000000000000000000","EntityId":0,"FirstName":"String","LastName":"String","Initials":"String","Password":"String","EmailAddress":"String","DarkMode":false,"Entity":{"Id":0,"Guid":"00000000000000000000000000000000","Type":"String","Name":"String","SuperTrader":false,"CompanyDomain":"String","KYCStartedBy":0,"KYCCompletedBy":0,"ETSMOHAAccount":"String"},"LastActive":"0001-01-01T00:00:00.0000000","ImageGuid":"00000000000000000000000000000000","DialingCodeCountryId":0,"TelephoneNumber":"String","IsBridgeClient":false,"AccessLevels":[{"Id":0,"Allowed":false,"Name":"String","Description":"String","PrettyText":"String"}]},"GetEnquiryGrades":[{"Id":0,"QuantityFrom":0,"QuantityTo":0,"Quantity":"String","Comments":"String","Grade":"String","ProductId":0,"VersionId":0,"GradeId":0,"UnitId":0}]}