Bridge

<back to all web services

EnquiryCreate

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

public class dtos
{

    public static class EnquiryCreate
    {
        public Integer AccountId = null;
        public String Agent = null;
        public String BuyerEmailAddress = null;
        public String BuyerCompany = null;
        public Integer CreditTermDays = null;
        public Date DateFrom = null;
        public Date DateTo = null;
        public Integer DeliveryMethodId = null;
        public String GeneralComments = null;
        public Integer PortId = null;
        public String RequestedTermsType = null;
        public Integer VesselId = null;
        public Integer SupplyDeskEntityContactId = null;
        public ArrayList<String> SelectedEntityContactIds = null;
        public ArrayList<CreateEnquiryGradesViewModel> EnquiryGrades = null;
        
        public Integer getAccountId() { return AccountId; }
        public EnquiryCreate setAccountId(Integer value) { this.AccountId = value; return this; }
        public String getAgent() { return Agent; }
        public EnquiryCreate setAgent(String value) { this.Agent = value; return this; }
        public String getBuyerEmailAddress() { return BuyerEmailAddress; }
        public EnquiryCreate setBuyerEmailAddress(String value) { this.BuyerEmailAddress = value; return this; }
        public String getBuyerCompany() { return BuyerCompany; }
        public EnquiryCreate setBuyerCompany(String value) { this.BuyerCompany = value; return this; }
        public Integer getCreditTermDays() { return CreditTermDays; }
        public EnquiryCreate setCreditTermDays(Integer value) { this.CreditTermDays = value; return this; }
        public Date getDateFrom() { return DateFrom; }
        public EnquiryCreate setDateFrom(Date value) { this.DateFrom = value; return this; }
        public Date getDateTo() { return DateTo; }
        public EnquiryCreate setDateTo(Date value) { this.DateTo = value; return this; }
        public Integer getDeliveryMethodId() { return DeliveryMethodId; }
        public EnquiryCreate setDeliveryMethodId(Integer value) { this.DeliveryMethodId = value; return this; }
        public String getGeneralComments() { return GeneralComments; }
        public EnquiryCreate setGeneralComments(String value) { this.GeneralComments = value; return this; }
        public Integer getPortId() { return PortId; }
        public EnquiryCreate setPortId(Integer value) { this.PortId = value; return this; }
        public String getRequestedTermsType() { return RequestedTermsType; }
        public EnquiryCreate setRequestedTermsType(String value) { this.RequestedTermsType = value; return this; }
        public Integer getVesselId() { return VesselId; }
        public EnquiryCreate setVesselId(Integer value) { this.VesselId = value; return this; }
        public Integer getSupplyDeskEntityContactId() { return SupplyDeskEntityContactId; }
        public EnquiryCreate setSupplyDeskEntityContactId(Integer value) { this.SupplyDeskEntityContactId = value; return this; }
        public ArrayList<String> getSelectedEntityContactIds() { return SelectedEntityContactIds; }
        public EnquiryCreate setSelectedEntityContactIds(ArrayList<String> value) { this.SelectedEntityContactIds = value; return this; }
        public ArrayList<CreateEnquiryGradesViewModel> getEnquiryGrades() { return EnquiryGrades; }
        public EnquiryCreate setEnquiryGrades(ArrayList<CreateEnquiryGradesViewModel> value) { this.EnquiryGrades = value; return this; }
    }

    public static class CreateEnquiryGradesViewModel
    {
        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 CreateEnquiryGradesViewModel setId(Integer value) { this.Id = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public CreateEnquiryGradesViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
        public Integer getProductId() { return ProductId; }
        public CreateEnquiryGradesViewModel setProductId(Integer value) { this.ProductId = value; return this; }
        public Integer getVersionId() { return VersionId; }
        public CreateEnquiryGradesViewModel setVersionId(Integer value) { this.VersionId = value; return this; }
        public Integer getGradeId() { return GradeId; }
        public CreateEnquiryGradesViewModel setGradeId(Integer value) { this.GradeId = value; return this; }
        public String getSpecificationComments() { return SpecificationComments; }
        public CreateEnquiryGradesViewModel setSpecificationComments(String value) { this.SpecificationComments = value; return this; }
        public Integer getVolumeFrom() { return VolumeFrom; }
        public CreateEnquiryGradesViewModel setVolumeFrom(Integer value) { this.VolumeFrom = value; return this; }
        public Integer getVolumeTo() { return VolumeTo; }
        public CreateEnquiryGradesViewModel setVolumeTo(Integer value) { this.VolumeTo = value; return this; }
        public Integer getUnitId() { return UnitId; }
        public CreateEnquiryGradesViewModel setUnitId(Integer value) { this.UnitId = value; return this; }
    }

    public static class SavingResult
    {
        public Integer Id = null;
        public UUID GuidId = null;
        public SavingResultStatus Status = null;
        public ArrayList<SavingResultErrors> Errors = null;
        
        public Integer getId() { return Id; }
        public SavingResult setId(Integer value) { this.Id = value; return this; }
        public UUID getGuidId() { return GuidId; }
        public SavingResult setGuidId(UUID value) { this.GuidId = value; return this; }
        public SavingResultStatus getStatus() { return Status; }
        public SavingResult setStatus(SavingResultStatus value) { this.Status = value; return this; }
        public ArrayList<SavingResultErrors> getErrors() { return Errors; }
        public SavingResult setErrors(ArrayList<SavingResultErrors> value) { this.Errors = value; return this; }
    }

    public static enum SavingResultStatus
    {
        Success,
        Error;
    }

    public static class SavingResultErrors
    {
        public String Error = null;
        
        public String getError() { return Error; }
        public SavingResultErrors setError(String value) { this.Error = value; return this; }
    }

}

Java EnquiryCreate DTOs

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

HTTP + OTHER

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

POST /Enquiries/Create HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"AccountId":0,"Agent":"String","BuyerEmailAddress":"String","BuyerCompany":"String","CreditTermDays":0,"DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","DeliveryMethodId":0,"GeneralComments":"String","PortId":0,"RequestedTermsType":"String","VesselId":0,"SupplyDeskEntityContactId":0,"SelectedEntityContactIds":["String"],"EnquiryGrades":[{"Id":0,"Deleted":false,"ProductId":0,"VersionId":0,"GradeId":0,"SpecificationComments":"String","VolumeFrom":0,"VolumeTo":0,"UnitId":0}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Id":0,"GuidId":"00000000000000000000000000000000","Status":"Success","Errors":[{"Error":"String"}]}