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 .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.

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

<ConfirmationCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
  <AdditionalCosts>String</AdditionalCosts>
  <Agent>String</Agent>
  <AgentDetails>String</AgentDetails>
  <BuyerCompany>String</BuyerCompany>
  <BuyerEmailAddress>String</BuyerEmailAddress>
  <BuyingAccountId>0</BuyingAccountId>
  <ConfirmationGrades xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
    <d2p1:ConfirmationGradesViewModel>
      <d2p1:CurrencyId>0</d2p1:CurrencyId>
      <d2p1:Deleted>false</d2p1:Deleted>
      <d2p1:GradeId>0</d2p1:GradeId>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:ProductId>0</d2p1:ProductId>
      <d2p1:SpecificationComments>String</d2p1:SpecificationComments>
      <d2p1:UnitId>0</d2p1:UnitId>
      <d2p1:UnitPrice>0</d2p1:UnitPrice>
      <d2p1:VersionId>0</d2p1:VersionId>
      <d2p1:VolumeFrom>0</d2p1:VolumeFrom>
      <d2p1:VolumeTo>0</d2p1:VolumeTo>
      <d2p1:VolumeUnitId>0</d2p1:VolumeUnitId>
    </d2p1:ConfirmationGradesViewModel>
  </ConfirmationGrades>
  <CreditTermDays>0</CreditTermDays>
  <DateFrom>0001-01-01T00:00:00</DateFrom>
  <DateTo>0001-01-01T00:00:00</DateTo>
  <DeliveryMethodId>0</DeliveryMethodId>
  <IMONumberOrMMSI>String</IMONumberOrMMSI>
  <PortId>0</PortId>
  <RecapComments>String</RecapComments>
  <RequestedTermsType>String</RequestedTermsType>
  <SellingAccountId>0</SellingAccountId>
  <VesselId>0</VesselId>
  <VesselType>String</VesselType>
</ConfirmationCreate>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SavingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.Results">
  <Errors>
    <SavingResultErrors>
      <Error>String</Error>
    </SavingResultErrors>
  </Errors>
  <GuidId>00000000-0000-0000-0000-000000000000</GuidId>
  <Id>0</Id>
  <Status>Success</Status>
</SavingResult>