Bridge

<back to all web services

EnquiryEdit

Enquiries
The following routes are available for this service:
GET/Enquiries/Edit
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EnquiryEdit
    {
        public UUID EnquiryGuid = null;
        
        public UUID getEnquiryGuid() { return EnquiryGuid; }
        public EnquiryEdit setEnquiryGuid(UUID value) { this.EnquiryGuid = value; return this; }
    }

    public static class APIEditEnquiryViewModel
    {
        public Integer Id = null;
        public UUID Guid = null;
        public Date DateFrom = null;
        public Date DateTo = null;
        public String Agent = null;
        public String GeneralComments = null;
        public Integer DeliveryMethodId = null;
        public Integer AccountId = null;
        public String RequestedTermsType = null;
        public Integer CreditTermDays = null;
        public Integer VesselId = null;
        public String VesselName = null;
        public Integer IMONumber = null;
        public String IMONumberOrMMSI = null;
        public ArrayList<GetProductsViewModel> GetProducts = null;
        public ArrayList<GetVersionsViewModel> GetVersions = null;
        public ArrayList<GetGradesViewModel> GetGrades = null;
        public ArrayList<GetUnitsViewModel> GetUnits = null;
        public ArrayList<GetDeliveryMethodsViewModel> GetDeliveryMethods = null;
        public ArrayList<EntityAccountsViewModel> GetEntityAccounts = null;
        public ArrayList<EnquiryGradesEditViewModel> EnquiryGradesEdit = null;
        
        public Integer getId() { return Id; }
        public APIEditEnquiryViewModel setId(Integer value) { this.Id = value; return this; }
        public UUID getGuid() { return Guid; }
        public APIEditEnquiryViewModel setGuid(UUID value) { this.Guid = value; return this; }
        public Date getDateFrom() { return DateFrom; }
        public APIEditEnquiryViewModel setDateFrom(Date value) { this.DateFrom = value; return this; }
        public Date getDateTo() { return DateTo; }
        public APIEditEnquiryViewModel setDateTo(Date value) { this.DateTo = value; return this; }
        public String getAgent() { return Agent; }
        public APIEditEnquiryViewModel setAgent(String value) { this.Agent = value; return this; }
        public String getGeneralComments() { return GeneralComments; }
        public APIEditEnquiryViewModel setGeneralComments(String value) { this.GeneralComments = value; return this; }
        public Integer getDeliveryMethodId() { return DeliveryMethodId; }
        public APIEditEnquiryViewModel setDeliveryMethodId(Integer value) { this.DeliveryMethodId = value; return this; }
        public Integer getAccountId() { return AccountId; }
        public APIEditEnquiryViewModel setAccountId(Integer value) { this.AccountId = value; return this; }
        public String getRequestedTermsType() { return RequestedTermsType; }
        public APIEditEnquiryViewModel setRequestedTermsType(String value) { this.RequestedTermsType = value; return this; }
        public Integer getCreditTermDays() { return CreditTermDays; }
        public APIEditEnquiryViewModel setCreditTermDays(Integer value) { this.CreditTermDays = value; return this; }
        public Integer getVesselId() { return VesselId; }
        public APIEditEnquiryViewModel setVesselId(Integer value) { this.VesselId = value; return this; }
        public String getVesselName() { return VesselName; }
        public APIEditEnquiryViewModel setVesselName(String value) { this.VesselName = value; return this; }
        public Integer getImoNumber() { return IMONumber; }
        public APIEditEnquiryViewModel setImoNumber(Integer value) { this.IMONumber = value; return this; }
        public String getImoNumberOrMMSI() { return IMONumberOrMMSI; }
        public APIEditEnquiryViewModel setImoNumberOrMMSI(String value) { this.IMONumberOrMMSI = value; return this; }
        public ArrayList<GetProductsViewModel> getGetProducts() { return GetProducts; }
        public APIEditEnquiryViewModel setGetProducts(ArrayList<GetProductsViewModel> value) { this.GetProducts = value; return this; }
        public ArrayList<GetVersionsViewModel> getGetVersions() { return GetVersions; }
        public APIEditEnquiryViewModel setGetVersions(ArrayList<GetVersionsViewModel> value) { this.GetVersions = value; return this; }
        public ArrayList<GetGradesViewModel> getGetGrades() { return GetGrades; }
        public APIEditEnquiryViewModel setGetGrades(ArrayList<GetGradesViewModel> value) { this.GetGrades = value; return this; }
        public ArrayList<GetUnitsViewModel> getGetUnits() { return GetUnits; }
        public APIEditEnquiryViewModel setGetUnits(ArrayList<GetUnitsViewModel> value) { this.GetUnits = value; return this; }
        public ArrayList<GetDeliveryMethodsViewModel> getGetDeliveryMethods() { return GetDeliveryMethods; }
        public APIEditEnquiryViewModel setGetDeliveryMethods(ArrayList<GetDeliveryMethodsViewModel> value) { this.GetDeliveryMethods = value; return this; }
        public ArrayList<EntityAccountsViewModel> getGetEntityAccounts() { return GetEntityAccounts; }
        public APIEditEnquiryViewModel setGetEntityAccounts(ArrayList<EntityAccountsViewModel> value) { this.GetEntityAccounts = value; return this; }
        public ArrayList<EnquiryGradesEditViewModel> getEnquiryGradesEdit() { return EnquiryGradesEdit; }
        public APIEditEnquiryViewModel setEnquiryGradesEdit(ArrayList<EnquiryGradesEditViewModel> value) { this.EnquiryGradesEdit = value; return this; }
    }

    public static class GetProductsViewModel
    {
        public Integer Id = null;
        public Integer Index = null;
        public String Name = null;
        public Boolean Deleted = null;
        public Double ETSMultiplication = null;
        
        public Integer getId() { return Id; }
        public GetProductsViewModel setId(Integer value) { this.Id = value; return this; }
        public Integer getIndex() { return Index; }
        public GetProductsViewModel setIndex(Integer value) { this.Index = value; return this; }
        public String getName() { return Name; }
        public GetProductsViewModel setName(String value) { this.Name = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public GetProductsViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
        public Double getEtsMultiplication() { return ETSMultiplication; }
        public GetProductsViewModel setEtsMultiplication(Double value) { this.ETSMultiplication = value; return this; }
    }

    public static class GetVersionsViewModel
    {
        public Integer Id = null;
        public Integer Index = null;
        public String Name = null;
        public Boolean Deleted = null;
        
        public Integer getId() { return Id; }
        public GetVersionsViewModel setId(Integer value) { this.Id = value; return this; }
        public Integer getIndex() { return Index; }
        public GetVersionsViewModel setIndex(Integer value) { this.Index = value; return this; }
        public String getName() { return Name; }
        public GetVersionsViewModel setName(String value) { this.Name = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public GetVersionsViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
    }

    public static class GetGradesViewModel
    {
        public Integer Id = null;
        public Integer Index = null;
        public String Name = null;
        public Boolean Deleted = null;
        
        public Integer getId() { return Id; }
        public GetGradesViewModel setId(Integer value) { this.Id = value; return this; }
        public Integer getIndex() { return Index; }
        public GetGradesViewModel setIndex(Integer value) { this.Index = value; return this; }
        public String getName() { return Name; }
        public GetGradesViewModel setName(String value) { this.Name = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public GetGradesViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
    }

    public static class GetUnitsViewModel
    {
        public Integer Id = null;
        public String Code = null;
        public Boolean Deleted = null;
        
        public Integer getId() { return Id; }
        public GetUnitsViewModel setId(Integer value) { this.Id = value; return this; }
        public String getCode() { return Code; }
        public GetUnitsViewModel setCode(String value) { this.Code = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public GetUnitsViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
    }

    public static class GetDeliveryMethodsViewModel
    {
        public Integer Id = null;
        public String Name = null;
        
        public Integer getId() { return Id; }
        public GetDeliveryMethodsViewModel setId(Integer value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public GetDeliveryMethodsViewModel setName(String value) { this.Name = value; return this; }
    }

    public static class EntityAccountsViewModel
    {
        public Integer Id = null;
        public String Type = null;
        public String Name = null;
        public Integer LinkedVesselId = null;
        
        public Integer getId() { return Id; }
        public EntityAccountsViewModel setId(Integer value) { this.Id = value; return this; }
        public String getType() { return Type; }
        public EntityAccountsViewModel setType(String value) { this.Type = value; return this; }
        public String getName() { return Name; }
        public EntityAccountsViewModel setName(String value) { this.Name = value; return this; }
        public Integer getLinkedVesselId() { return LinkedVesselId; }
        public EntityAccountsViewModel setLinkedVesselId(Integer value) { this.LinkedVesselId = value; return this; }
    }

    public static class EnquiryGradesEditViewModel
    {
        public Integer Id = null;
        public Boolean Deleted = null;
        public Integer ProductId = null;
        public Integer VersionId = null;
        public Integer GradeId = null;
        public String SpecificationComments = null;
        public Integer VolumeFrom = null;
        public Integer VolumeTo = null;
        public Integer UnitId = null;
        
        public Integer getId() { return Id; }
        public EnquiryGradesEditViewModel setId(Integer value) { this.Id = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public EnquiryGradesEditViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
        public Integer getProductId() { return ProductId; }
        public EnquiryGradesEditViewModel setProductId(Integer value) { this.ProductId = value; return this; }
        public Integer getVersionId() { return VersionId; }
        public EnquiryGradesEditViewModel setVersionId(Integer value) { this.VersionId = value; return this; }
        public Integer getGradeId() { return GradeId; }
        public EnquiryGradesEditViewModel setGradeId(Integer value) { this.GradeId = value; return this; }
        public String getSpecificationComments() { return SpecificationComments; }
        public EnquiryGradesEditViewModel setSpecificationComments(String value) { this.SpecificationComments = value; return this; }
        public Integer getVolumeFrom() { return VolumeFrom; }
        public EnquiryGradesEditViewModel setVolumeFrom(Integer value) { this.VolumeFrom = value; return this; }
        public Integer getVolumeTo() { return VolumeTo; }
        public EnquiryGradesEditViewModel setVolumeTo(Integer value) { this.VolumeTo = value; return this; }
        public Integer getUnitId() { return UnitId; }
        public EnquiryGradesEditViewModel setUnitId(Integer value) { this.UnitId = value; return this; }
    }

}

Java EnquiryEdit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Enquiries/Edit HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<APIEditEnquiryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
  <AccountId>0</AccountId>
  <Agent>String</Agent>
  <CreditTermDays>0</CreditTermDays>
  <DateFrom>0001-01-01T00:00:00</DateFrom>
  <DateTo>0001-01-01T00:00:00</DateTo>
  <DeliveryMethodId>0</DeliveryMethodId>
  <EnquiryGradesEdit>
    <EnquiryGradesEditViewModel>
      <Deleted>false</Deleted>
      <GradeId>0</GradeId>
      <Id>0</Id>
      <ProductId>0</ProductId>
      <SpecificationComments>String</SpecificationComments>
      <UnitId>0</UnitId>
      <VersionId>0</VersionId>
      <VolumeFrom>0</VolumeFrom>
      <VolumeTo>0</VolumeTo>
    </EnquiryGradesEditViewModel>
  </EnquiryGradesEdit>
  <GeneralComments>String</GeneralComments>
  <GetDeliveryMethods>
    <GetDeliveryMethodsViewModel>
      <Id>0</Id>
      <Name>String</Name>
    </GetDeliveryMethodsViewModel>
  </GetDeliveryMethods>
  <GetEntityAccounts>
    <EntityAccountsViewModel>
      <Id>0</Id>
      <LinkedVesselId>0</LinkedVesselId>
      <Name>String</Name>
      <Type>String</Type>
    </EntityAccountsViewModel>
  </GetEntityAccounts>
  <GetGrades>
    <GetGradesViewModel>
      <Deleted>false</Deleted>
      <Id>0</Id>
      <Index>0</Index>
      <Name>String</Name>
    </GetGradesViewModel>
  </GetGrades>
  <GetProducts>
    <GetProductsViewModel>
      <Deleted>false</Deleted>
      <ETSMultiplication>0</ETSMultiplication>
      <Id>0</Id>
      <Index>0</Index>
      <Name>String</Name>
    </GetProductsViewModel>
  </GetProducts>
  <GetUnits>
    <GetUnitsViewModel>
      <Code>String</Code>
      <Deleted>false</Deleted>
      <Id>0</Id>
    </GetUnitsViewModel>
  </GetUnits>
  <GetVersions>
    <GetVersionsViewModel>
      <Deleted>false</Deleted>
      <Id>0</Id>
      <Index>0</Index>
      <Name>String</Name>
    </GetVersionsViewModel>
  </GetVersions>
  <Guid>00000000-0000-0000-0000-000000000000</Guid>
  <IMONumber>0</IMONumber>
  <IMONumberOrMMSI>String</IMONumberOrMMSI>
  <Id>0</Id>
  <RequestedTermsType>String</RequestedTermsType>
  <VesselId>0</VesselId>
  <VesselName>String</VesselName>
</APIEditEnquiryViewModel>