| GET | /Enquiries/History |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiriesHistory
{
public Boolean JustMyEnquiries = null;
public Boolean CanViewCompanyEnquiries = null;
public Integer VesselId = null;
public Integer PortOfSupplyId = null;
public Boolean ClosedDealsOnly = null;
public Integer SupplierId = null;
public Date DateFrom = null;
public Date DateTo = null;
public String Status = null;
public Boolean isJustMyEnquiries() { return JustMyEnquiries; }
public EnquiriesHistory setJustMyEnquiries(Boolean value) { this.JustMyEnquiries = value; return this; }
public Boolean isCanViewCompanyEnquiries() { return CanViewCompanyEnquiries; }
public EnquiriesHistory setCanViewCompanyEnquiries(Boolean value) { this.CanViewCompanyEnquiries = value; return this; }
public Integer getVesselId() { return VesselId; }
public EnquiriesHistory setVesselId(Integer value) { this.VesselId = value; return this; }
public Integer getPortOfSupplyId() { return PortOfSupplyId; }
public EnquiriesHistory setPortOfSupplyId(Integer value) { this.PortOfSupplyId = value; return this; }
public Boolean isClosedDealsOnly() { return ClosedDealsOnly; }
public EnquiriesHistory setClosedDealsOnly(Boolean value) { this.ClosedDealsOnly = value; return this; }
public Integer getSupplierId() { return SupplierId; }
public EnquiriesHistory setSupplierId(Integer value) { this.SupplierId = value; return this; }
public Date getDateFrom() { return DateFrom; }
public EnquiriesHistory setDateFrom(Date value) { this.DateFrom = value; return this; }
public Date getDateTo() { return DateTo; }
public EnquiriesHistory setDateTo(Date value) { this.DateTo = value; return this; }
public String getStatus() { return Status; }
public EnquiriesHistory setStatus(String value) { this.Status = value; return this; }
}
public static class EnquiryHistoryViewModel
{
public GetEnquiryHistoryForContactFiltersViewModel GetEnquiryHistoryForContactFilters = null;
public ArrayList<GetEnquiryHistoryForContactViewModel> GetEnquiryHistoryForContact = null;
public GetEnquiryHistoryForContactFiltersViewModel getGetEnquiryHistoryForContactFilters() { return GetEnquiryHistoryForContactFilters; }
public EnquiryHistoryViewModel setGetEnquiryHistoryForContactFilters(GetEnquiryHistoryForContactFiltersViewModel value) { this.GetEnquiryHistoryForContactFilters = value; return this; }
public ArrayList<GetEnquiryHistoryForContactViewModel> getGetEnquiryHistoryForContact() { return GetEnquiryHistoryForContact; }
public EnquiryHistoryViewModel setGetEnquiryHistoryForContact(ArrayList<GetEnquiryHistoryForContactViewModel> value) { this.GetEnquiryHistoryForContact = value; return this; }
}
public static class GetEnquiryHistoryForContactFiltersViewModel
{
public Boolean JustMyEnquiries = null;
public Boolean CanViewCompanyEnquiries = null;
public Integer VesselId = null;
public Integer PortOfSupplyId = null;
public Boolean ClosedDealsOnly = null;
public Integer SupplierId = null;
public Date DateFrom = null;
public Date DateTo = null;
public String Status = null;
public ArrayList<GetFilterValuesForContactEntityViewModel> Filters = null;
public ArrayList<SelectListItem> VesselsList = null;
public ArrayList<SelectListItem> PortOfSuppliesList = null;
public ArrayList<SelectListItem> EnquiriesWithList = null;
public ArrayList<SelectListItem> EnquiryStatusesList = null;
public Boolean isJustMyEnquiries() { return JustMyEnquiries; }
public GetEnquiryHistoryForContactFiltersViewModel setJustMyEnquiries(Boolean value) { this.JustMyEnquiries = value; return this; }
public Boolean isCanViewCompanyEnquiries() { return CanViewCompanyEnquiries; }
public GetEnquiryHistoryForContactFiltersViewModel setCanViewCompanyEnquiries(Boolean value) { this.CanViewCompanyEnquiries = value; return this; }
public Integer getVesselId() { return VesselId; }
public GetEnquiryHistoryForContactFiltersViewModel setVesselId(Integer value) { this.VesselId = value; return this; }
public Integer getPortOfSupplyId() { return PortOfSupplyId; }
public GetEnquiryHistoryForContactFiltersViewModel setPortOfSupplyId(Integer value) { this.PortOfSupplyId = value; return this; }
public Boolean isClosedDealsOnly() { return ClosedDealsOnly; }
public GetEnquiryHistoryForContactFiltersViewModel setClosedDealsOnly(Boolean value) { this.ClosedDealsOnly = value; return this; }
public Integer getSupplierId() { return SupplierId; }
public GetEnquiryHistoryForContactFiltersViewModel setSupplierId(Integer value) { this.SupplierId = value; return this; }
public Date getDateFrom() { return DateFrom; }
public GetEnquiryHistoryForContactFiltersViewModel setDateFrom(Date value) { this.DateFrom = value; return this; }
public Date getDateTo() { return DateTo; }
public GetEnquiryHistoryForContactFiltersViewModel setDateTo(Date value) { this.DateTo = value; return this; }
public String getStatus() { return Status; }
public GetEnquiryHistoryForContactFiltersViewModel setStatus(String value) { this.Status = value; return this; }
public ArrayList<GetFilterValuesForContactEntityViewModel> getFilters() { return Filters; }
public GetEnquiryHistoryForContactFiltersViewModel setFilters(ArrayList<GetFilterValuesForContactEntityViewModel> value) { this.Filters = value; return this; }
public ArrayList<SelectListItem> getVesselsList() { return VesselsList; }
public GetEnquiryHistoryForContactFiltersViewModel setVesselsList(ArrayList<SelectListItem> value) { this.VesselsList = value; return this; }
public ArrayList<SelectListItem> getPortOfSuppliesList() { return PortOfSuppliesList; }
public GetEnquiryHistoryForContactFiltersViewModel setPortOfSuppliesList(ArrayList<SelectListItem> value) { this.PortOfSuppliesList = value; return this; }
public ArrayList<SelectListItem> getEnquiriesWithList() { return EnquiriesWithList; }
public GetEnquiryHistoryForContactFiltersViewModel setEnquiriesWithList(ArrayList<SelectListItem> value) { this.EnquiriesWithList = value; return this; }
public ArrayList<SelectListItem> getEnquiryStatusesList() { return EnquiryStatusesList; }
public GetEnquiryHistoryForContactFiltersViewModel setEnquiryStatusesList(ArrayList<SelectListItem> value) { this.EnquiryStatusesList = value; return this; }
}
public static class GetFilterValuesForContactEntityViewModel
{
public Integer Id = null;
public String Type = null;
public String Text = null;
public Integer getId() { return Id; }
public GetFilterValuesForContactEntityViewModel setId(Integer value) { this.Id = value; return this; }
public String getType() { return Type; }
public GetFilterValuesForContactEntityViewModel setType(String value) { this.Type = value; return this; }
public String getText() { return Text; }
public GetFilterValuesForContactEntityViewModel setText(String value) { this.Text = value; return this; }
}
public static class GetEnquiryHistoryForContactViewModel
{
public Integer EnquiryId = null;
public UUID EnquiryGuid = null;
public byte[] FlagRound = null;
public String CountryName = null;
public String PortName = null;
public Double Latitude = null;
public Double Longitude = null;
public String VesselName = null;
public Integer IMONumber = null;
public String DeliveryDate = null;
public Boolean RecapAccepted = null;
public String RecapFromCompany = null;
public String RecapFromName = null;
public UUID RecapFromEntityContactGuid = null;
public String RecapToCompany = null;
public String RecapToName = null;
public UUID RecapToEntityContactGuid = null;
public String DealWithCompanyAndContact = null;
public UUID RecapGuid = null;
public UUID RecapFromEntityContactImageGuid = null;
public UUID RecapToEntityContactImageGuid = null;
public ArrayList<GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel> WorkedOnBy = null;
public Integer getEnquiryId() { return EnquiryId; }
public GetEnquiryHistoryForContactViewModel setEnquiryId(Integer value) { this.EnquiryId = value; return this; }
public UUID getEnquiryGuid() { return EnquiryGuid; }
public GetEnquiryHistoryForContactViewModel setEnquiryGuid(UUID value) { this.EnquiryGuid = value; return this; }
public byte[] getFlagRound() { return FlagRound; }
public GetEnquiryHistoryForContactViewModel setFlagRound(byte[] value) { this.FlagRound = value; return this; }
public String getCountryName() { return CountryName; }
public GetEnquiryHistoryForContactViewModel setCountryName(String value) { this.CountryName = value; return this; }
public String getPortName() { return PortName; }
public GetEnquiryHistoryForContactViewModel setPortName(String value) { this.PortName = value; return this; }
public Double getLatitude() { return Latitude; }
public GetEnquiryHistoryForContactViewModel setLatitude(Double value) { this.Latitude = value; return this; }
public Double getLongitude() { return Longitude; }
public GetEnquiryHistoryForContactViewModel setLongitude(Double value) { this.Longitude = value; return this; }
public String getVesselName() { return VesselName; }
public GetEnquiryHistoryForContactViewModel setVesselName(String value) { this.VesselName = value; return this; }
public Integer getImoNumber() { return IMONumber; }
public GetEnquiryHistoryForContactViewModel setImoNumber(Integer value) { this.IMONumber = value; return this; }
public String getDeliveryDate() { return DeliveryDate; }
public GetEnquiryHistoryForContactViewModel setDeliveryDate(String value) { this.DeliveryDate = value; return this; }
public Boolean isRecapAccepted() { return RecapAccepted; }
public GetEnquiryHistoryForContactViewModel setRecapAccepted(Boolean value) { this.RecapAccepted = value; return this; }
public String getRecapFromCompany() { return RecapFromCompany; }
public GetEnquiryHistoryForContactViewModel setRecapFromCompany(String value) { this.RecapFromCompany = value; return this; }
public String getRecapFromName() { return RecapFromName; }
public GetEnquiryHistoryForContactViewModel setRecapFromName(String value) { this.RecapFromName = value; return this; }
public UUID getRecapFromEntityContactGuid() { return RecapFromEntityContactGuid; }
public GetEnquiryHistoryForContactViewModel setRecapFromEntityContactGuid(UUID value) { this.RecapFromEntityContactGuid = value; return this; }
public String getRecapToCompany() { return RecapToCompany; }
public GetEnquiryHistoryForContactViewModel setRecapToCompany(String value) { this.RecapToCompany = value; return this; }
public String getRecapToName() { return RecapToName; }
public GetEnquiryHistoryForContactViewModel setRecapToName(String value) { this.RecapToName = value; return this; }
public UUID getRecapToEntityContactGuid() { return RecapToEntityContactGuid; }
public GetEnquiryHistoryForContactViewModel setRecapToEntityContactGuid(UUID value) { this.RecapToEntityContactGuid = value; return this; }
public String getDealWithCompanyAndContact() { return DealWithCompanyAndContact; }
public GetEnquiryHistoryForContactViewModel setDealWithCompanyAndContact(String value) { this.DealWithCompanyAndContact = value; return this; }
public UUID getRecapGuid() { return RecapGuid; }
public GetEnquiryHistoryForContactViewModel setRecapGuid(UUID value) { this.RecapGuid = value; return this; }
public UUID getRecapFromEntityContactImageGuid() { return RecapFromEntityContactImageGuid; }
public GetEnquiryHistoryForContactViewModel setRecapFromEntityContactImageGuid(UUID value) { this.RecapFromEntityContactImageGuid = value; return this; }
public UUID getRecapToEntityContactImageGuid() { return RecapToEntityContactImageGuid; }
public GetEnquiryHistoryForContactViewModel setRecapToEntityContactImageGuid(UUID value) { this.RecapToEntityContactImageGuid = value; return this; }
public ArrayList<GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel> getWorkedOnBy() { return WorkedOnBy; }
public GetEnquiryHistoryForContactViewModel setWorkedOnBy(ArrayList<GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel> value) { this.WorkedOnBy = value; return this; }
}
public static class GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel
{
public String HandlingEnquiryName = null;
public String getHandlingEnquiryName() { return HandlingEnquiryName; }
public GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel setHandlingEnquiryName(String value) { this.HandlingEnquiryName = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Enquiries/History HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
GetEnquiryHistoryForContactFilters:
{
JustMyEnquiries: False,
CanViewCompanyEnquiries: False,
VesselId: 0,
PortOfSupplyId: 0,
ClosedDealsOnly: False,
SupplierId: 0,
DateFrom: 0001-01-01,
DateTo: 0001-01-01,
Status: String,
Filters:
[
{
Id: 0,
Type: String,
Text: String
}
],
VesselsList:
[
{
Disabled: False,
Group:
{
Disabled: False,
Name: String
},
Selected: False,
Text: String,
Value: String
}
],
PortOfSuppliesList:
[
{
Disabled: False,
Group:
{
Disabled: False,
Name: String
},
Selected: False,
Text: String,
Value: String
}
],
EnquiriesWithList:
[
{
Disabled: False,
Group:
{
Disabled: False,
Name: String
},
Selected: False,
Text: String,
Value: String
}
],
EnquiryStatusesList:
[
{
Disabled: False,
Group:
{
Disabled: False,
Name: String
},
Selected: False,
Text: String,
Value: String
}
]
},
GetEnquiryHistoryForContact:
[
{
EnquiryId: 0,
EnquiryGuid: 00000000000000000000000000000000,
FlagRound: AA==,
CountryName: String,
PortName: String,
Latitude: 0,
Longitude: 0,
VesselName: String,
IMONumber: 0,
DeliveryDate: String,
RecapAccepted: False,
RecapFromCompany: String,
RecapFromName: String,
RecapFromEntityContactGuid: 00000000000000000000000000000000,
RecapToCompany: String,
RecapToName: String,
RecapToEntityContactGuid: 00000000000000000000000000000000,
DealWithCompanyAndContact: String,
RecapGuid: 00000000000000000000000000000000,
RecapFromEntityContactImageGuid: 00000000000000000000000000000000,
RecapToEntityContactImageGuid: 00000000000000000000000000000000,
WorkedOnBy:
[
{
HandlingEnquiryName: String
}
]
}
]
}