| POST | /Enquiries/Edit/Result |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiryEditResult
{
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 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 EnquiryEditResult setId(Integer value) { this.Id = value; return this; }
public UUID getGuid() { return Guid; }
public EnquiryEditResult setGuid(UUID value) { this.Guid = value; return this; }
public Date getDateFrom() { return DateFrom; }
public EnquiryEditResult setDateFrom(Date value) { this.DateFrom = value; return this; }
public Date getDateTo() { return DateTo; }
public EnquiryEditResult setDateTo(Date value) { this.DateTo = value; return this; }
public String getAgent() { return Agent; }
public EnquiryEditResult setAgent(String value) { this.Agent = value; return this; }
public String getGeneralComments() { return GeneralComments; }
public EnquiryEditResult setGeneralComments(String value) { this.GeneralComments = value; return this; }
public Integer getDeliveryMethodId() { return DeliveryMethodId; }
public EnquiryEditResult setDeliveryMethodId(Integer value) { this.DeliveryMethodId = value; return this; }
public Integer getAccountId() { return AccountId; }
public EnquiryEditResult setAccountId(Integer value) { this.AccountId = value; return this; }
public String getRequestedTermsType() { return RequestedTermsType; }
public EnquiryEditResult setRequestedTermsType(String value) { this.RequestedTermsType = value; return this; }
public Integer getCreditTermDays() { return CreditTermDays; }
public EnquiryEditResult setCreditTermDays(Integer value) { this.CreditTermDays = value; return this; }
public Integer getVesselId() { return VesselId; }
public EnquiryEditResult setVesselId(Integer value) { this.VesselId = value; return this; }
public String getImoNumberOrMMSI() { return IMONumberOrMMSI; }
public EnquiryEditResult setImoNumberOrMMSI(String value) { this.IMONumberOrMMSI = value; return this; }
public ArrayList<GetProductsViewModel> getGetProducts() { return GetProducts; }
public EnquiryEditResult setGetProducts(ArrayList<GetProductsViewModel> value) { this.GetProducts = value; return this; }
public ArrayList<GetVersionsViewModel> getGetVersions() { return GetVersions; }
public EnquiryEditResult setGetVersions(ArrayList<GetVersionsViewModel> value) { this.GetVersions = value; return this; }
public ArrayList<GetGradesViewModel> getGetGrades() { return GetGrades; }
public EnquiryEditResult setGetGrades(ArrayList<GetGradesViewModel> value) { this.GetGrades = value; return this; }
public ArrayList<GetUnitsViewModel> getGetUnits() { return GetUnits; }
public EnquiryEditResult setGetUnits(ArrayList<GetUnitsViewModel> value) { this.GetUnits = value; return this; }
public ArrayList<GetDeliveryMethodsViewModel> getGetDeliveryMethods() { return GetDeliveryMethods; }
public EnquiryEditResult setGetDeliveryMethods(ArrayList<GetDeliveryMethodsViewModel> value) { this.GetDeliveryMethods = value; return this; }
public ArrayList<EntityAccountsViewModel> getGetEntityAccounts() { return GetEntityAccounts; }
public EnquiryEditResult setGetEntityAccounts(ArrayList<EntityAccountsViewModel> value) { this.GetEntityAccounts = value; return this; }
public ArrayList<EnquiryGradesEditViewModel> getEnquiryGradesEdit() { return EnquiryGradesEdit; }
public EnquiryEditResult 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; }
}
public static class EditEnquiryResultViewModel
{
public SavingResultStatus Status = null;
public String MessageFromBridge = null;
public SavingResultStatus getStatus() { return Status; }
public EditEnquiryResultViewModel setStatus(SavingResultStatus value) { this.Status = value; return this; }
public String getMessageFromBridge() { return MessageFromBridge; }
public EditEnquiryResultViewModel setMessageFromBridge(String value) { this.MessageFromBridge = value; return this; }
}
public static enum SavingResultStatus
{
Success,
Error;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Enquiries/Edit/Result HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"Guid":"00000000000000000000000000000000","DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","Agent":"String","GeneralComments":"String","DeliveryMethodId":0,"AccountId":0,"RequestedTermsType":"String","CreditTermDays":0,"VesselId":0,"IMONumberOrMMSI":"String","GetProducts":[{"Id":0,"Index":0,"Name":"String","Deleted":false,"ETSMultiplication":0}],"GetVersions":[{"Id":0,"Index":0,"Name":"String","Deleted":false}],"GetGrades":[{"Id":0,"Index":0,"Name":"String","Deleted":false}],"GetUnits":[{"Id":0,"Code":"String","Deleted":false}],"GetDeliveryMethods":[{"Id":0,"Name":"String"}],"GetEntityAccounts":[{"Id":0,"Type":"String","Name":"String","LinkedVesselId":0}],"EnquiryGradesEdit":[{"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: application/json
Content-Length: length
{"Status":"Success","MessageFromBridge":"String"}