Bridge

<back to all web services

ConfirmationCreate

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

public class dtos
{

    public static class ConfirmationCreate
    {
        public String IMONumberOrMMSI = null;
        public Integer VesselId = null;
        public Date DateFrom = null;
        public Date DateTo = null;
        public Integer PortId = null;
        public Integer DeliveryMethodId = null;
        public String Agent = null;
        public Integer SellingAccountId = null;
        public Integer BuyingAccountId = null;
        public String RequestedTermsType = null;
        public Integer CreditTermDays = null;
        public String VesselType = null;
        public String RecapComments = null;
        public String AgentDetails = null;
        public String AdditionalCosts = null;
        public String BuyerCompany = null;
        public String BuyerEmailAddress = null;
        public ArrayList<ConfirmationGradesViewModel> ConfirmationGrades = null;
        
        public String getImoNumberOrMMSI() { return IMONumberOrMMSI; }
        public ConfirmationCreate setImoNumberOrMMSI(String value) { this.IMONumberOrMMSI = value; return this; }
        public Integer getVesselId() { return VesselId; }
        public ConfirmationCreate setVesselId(Integer value) { this.VesselId = value; return this; }
        public Date getDateFrom() { return DateFrom; }
        public ConfirmationCreate setDateFrom(Date value) { this.DateFrom = value; return this; }
        public Date getDateTo() { return DateTo; }
        public ConfirmationCreate setDateTo(Date value) { this.DateTo = value; return this; }
        public Integer getPortId() { return PortId; }
        public ConfirmationCreate setPortId(Integer value) { this.PortId = value; return this; }
        public Integer getDeliveryMethodId() { return DeliveryMethodId; }
        public ConfirmationCreate setDeliveryMethodId(Integer value) { this.DeliveryMethodId = value; return this; }
        public String getAgent() { return Agent; }
        public ConfirmationCreate setAgent(String value) { this.Agent = value; return this; }
        public Integer getSellingAccountId() { return SellingAccountId; }
        public ConfirmationCreate setSellingAccountId(Integer value) { this.SellingAccountId = value; return this; }
        public Integer getBuyingAccountId() { return BuyingAccountId; }
        public ConfirmationCreate setBuyingAccountId(Integer value) { this.BuyingAccountId = value; return this; }
        public String getRequestedTermsType() { return RequestedTermsType; }
        public ConfirmationCreate setRequestedTermsType(String value) { this.RequestedTermsType = value; return this; }
        public Integer getCreditTermDays() { return CreditTermDays; }
        public ConfirmationCreate setCreditTermDays(Integer value) { this.CreditTermDays = value; return this; }
        public String getVesselType() { return VesselType; }
        public ConfirmationCreate setVesselType(String value) { this.VesselType = value; return this; }
        public String getRecapComments() { return RecapComments; }
        public ConfirmationCreate setRecapComments(String value) { this.RecapComments = value; return this; }
        public String getAgentDetails() { return AgentDetails; }
        public ConfirmationCreate setAgentDetails(String value) { this.AgentDetails = value; return this; }
        public String getAdditionalCosts() { return AdditionalCosts; }
        public ConfirmationCreate setAdditionalCosts(String value) { this.AdditionalCosts = value; return this; }
        public String getBuyerCompany() { return BuyerCompany; }
        public ConfirmationCreate setBuyerCompany(String value) { this.BuyerCompany = value; return this; }
        public String getBuyerEmailAddress() { return BuyerEmailAddress; }
        public ConfirmationCreate setBuyerEmailAddress(String value) { this.BuyerEmailAddress = value; return this; }
        public ArrayList<ConfirmationGradesViewModel> getConfirmationGrades() { return ConfirmationGrades; }
        public ConfirmationCreate setConfirmationGrades(ArrayList<ConfirmationGradesViewModel> value) { this.ConfirmationGrades = value; return this; }
    }

    public static class ConfirmationGradesViewModel
    {
        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 VolumeUnitId = null;
        public Double UnitPrice = null;
        public Integer CurrencyId = null;
        
        public Integer getId() { return Id; }
        public ConfirmationGradesViewModel setId(Integer value) { this.Id = value; return this; }
        public Boolean isDeleted() { return Deleted; }
        public ConfirmationGradesViewModel setDeleted(Boolean value) { this.Deleted = value; return this; }
        public Integer getProductId() { return ProductId; }
        public ConfirmationGradesViewModel setProductId(Integer value) { this.ProductId = value; return this; }
        public Integer getVersionId() { return VersionId; }
        public ConfirmationGradesViewModel setVersionId(Integer value) { this.VersionId = value; return this; }
        public Integer getGradeId() { return GradeId; }
        public ConfirmationGradesViewModel setGradeId(Integer value) { this.GradeId = value; return this; }
        public String getSpecificationComments() { return SpecificationComments; }
        public ConfirmationGradesViewModel setSpecificationComments(String value) { this.SpecificationComments = value; return this; }
        public Integer getVolumeFrom() { return VolumeFrom; }
        public ConfirmationGradesViewModel setVolumeFrom(Integer value) { this.VolumeFrom = value; return this; }
        public Integer getVolumeTo() { return VolumeTo; }
        public ConfirmationGradesViewModel setVolumeTo(Integer value) { this.VolumeTo = value; return this; }
        public Integer getUnitId() { return UnitId; }
        public ConfirmationGradesViewModel setUnitId(Integer value) { this.UnitId = value; return this; }
        public Integer getVolumeUnitId() { return VolumeUnitId; }
        public ConfirmationGradesViewModel setVolumeUnitId(Integer value) { this.VolumeUnitId = value; return this; }
        public Double getUnitPrice() { return UnitPrice; }
        public ConfirmationGradesViewModel setUnitPrice(Double value) { this.UnitPrice = value; return this; }
        public Integer getCurrencyId() { return CurrencyId; }
        public ConfirmationGradesViewModel setCurrencyId(Integer value) { this.CurrencyId = 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 ConfirmationCreate DTOs

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

HTTP + JSV

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

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

{
	IMONumberOrMMSI: String,
	VesselId: 0,
	DateFrom: 0001-01-01,
	DateTo: 0001-01-01,
	PortId: 0,
	DeliveryMethodId: 0,
	Agent: String,
	SellingAccountId: 0,
	BuyingAccountId: 0,
	RequestedTermsType: String,
	CreditTermDays: 0,
	VesselType: String,
	RecapComments: String,
	AgentDetails: String,
	AdditionalCosts: String,
	BuyerCompany: String,
	BuyerEmailAddress: String,
	ConfirmationGrades: 
	[
		{
			Id: 0,
			Deleted: False,
			ProductId: 0,
			VersionId: 0,
			GradeId: 0,
			SpecificationComments: String,
			VolumeFrom: 0,
			VolumeTo: 0,
			UnitId: 0,
			VolumeUnitId: 0,
			UnitPrice: 0,
			CurrencyId: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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