Mds.Api

<back to all web services

DiagramSingle

Requires Authentication
Requires any of the roles:dealer-api-mds, dealer-api-nop
The following routes are available for this service:
All Verbs/diagram-single/{DiagramId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class DiagramSingle
    {
        public Integer DiagramId = null;
        
        public Integer getDiagramId() { return DiagramId; }
        public DiagramSingle setDiagramId(Integer value) { this.DiagramId = value; return this; }
    }

    public static class DiagramSingleResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<MyobStockItemMapping> Parts = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DiagramSingleResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<MyobStockItemMapping> getParts() { return Parts; }
        public DiagramSingleResponse setParts(ArrayList<MyobStockItemMapping> value) { this.Parts = value; return this; }
    }

    public static class MyobStockItemMapping
    {
        public Integer StockItemId = null;
        public Integer Id = null;
        public Integer Number = null;
        public String InventoryId = null;
        public Integer GroupId = null;
        public String Name = null;
        public BigDecimal RetailPrice = null;
        public BigDecimal DealerPrice = null;
        public BigDecimal TradePrice = null;
        public BigDecimal RetailPriceNz = null;
        public BigDecimal TradePriceNz = null;
        public BigDecimal DealerPriceNz = null;
        public String SalesUom = null;
        public String StockingIndicator = null;
        public String Color = null;
        public String ColorCode = null;
        public String NoteText = null;
        public ArrayList<Coordinate> Coordinates = null;
        public Integer PartQuantity = null;
        public Integer AvaiableQuantity = null;
        public Boolean ShowAvailabilityPopUp = null;
        public Boolean IsFd = null;
        
        public Integer getStockItemId() { return StockItemId; }
        public MyobStockItemMapping setStockItemId(Integer value) { this.StockItemId = value; return this; }
        public Integer getId() { return Id; }
        public MyobStockItemMapping setId(Integer value) { this.Id = value; return this; }
        public Integer getNumber() { return Number; }
        public MyobStockItemMapping setNumber(Integer value) { this.Number = value; return this; }
        public String getInventoryId() { return InventoryId; }
        public MyobStockItemMapping setInventoryId(String value) { this.InventoryId = value; return this; }
        public Integer getGroupId() { return GroupId; }
        public MyobStockItemMapping setGroupId(Integer value) { this.GroupId = value; return this; }
        public String getName() { return Name; }
        public MyobStockItemMapping setName(String value) { this.Name = value; return this; }
        public BigDecimal getRetailPrice() { return RetailPrice; }
        public MyobStockItemMapping setRetailPrice(BigDecimal value) { this.RetailPrice = value; return this; }
        public BigDecimal getDealerPrice() { return DealerPrice; }
        public MyobStockItemMapping setDealerPrice(BigDecimal value) { this.DealerPrice = value; return this; }
        public BigDecimal getTradePrice() { return TradePrice; }
        public MyobStockItemMapping setTradePrice(BigDecimal value) { this.TradePrice = value; return this; }
        public BigDecimal getRetailPriceNz() { return RetailPriceNz; }
        public MyobStockItemMapping setRetailPriceNz(BigDecimal value) { this.RetailPriceNz = value; return this; }
        public BigDecimal getTradePriceNz() { return TradePriceNz; }
        public MyobStockItemMapping setTradePriceNz(BigDecimal value) { this.TradePriceNz = value; return this; }
        public BigDecimal getDealerPriceNz() { return DealerPriceNz; }
        public MyobStockItemMapping setDealerPriceNz(BigDecimal value) { this.DealerPriceNz = value; return this; }
        public String getSalesUom() { return SalesUom; }
        public MyobStockItemMapping setSalesUom(String value) { this.SalesUom = value; return this; }
        public String getStockingIndicator() { return StockingIndicator; }
        public MyobStockItemMapping setStockingIndicator(String value) { this.StockingIndicator = value; return this; }
        public String getColor() { return Color; }
        public MyobStockItemMapping setColor(String value) { this.Color = value; return this; }
        public String getColorCode() { return ColorCode; }
        public MyobStockItemMapping setColorCode(String value) { this.ColorCode = value; return this; }
        public String getNoteText() { return NoteText; }
        public MyobStockItemMapping setNoteText(String value) { this.NoteText = value; return this; }
        public ArrayList<Coordinate> getCoordinates() { return Coordinates; }
        public MyobStockItemMapping setCoordinates(ArrayList<Coordinate> value) { this.Coordinates = value; return this; }
        public Integer getPartQuantity() { return PartQuantity; }
        public MyobStockItemMapping setPartQuantity(Integer value) { this.PartQuantity = value; return this; }
        public Integer getAvaiableQuantity() { return AvaiableQuantity; }
        public MyobStockItemMapping setAvaiableQuantity(Integer value) { this.AvaiableQuantity = value; return this; }
        public Boolean isShowAvailabilityPopUp() { return ShowAvailabilityPopUp; }
        public MyobStockItemMapping setShowAvailabilityPopUp(Boolean value) { this.ShowAvailabilityPopUp = value; return this; }
        public Boolean getIsFd() { return IsFd; }
        public MyobStockItemMapping setIsFd(Boolean value) { this.IsFd = value; return this; }
    }

    public static class Coordinate
    {
        public Integer x1 = null;
        public Integer y1 = null;
        public Integer x2 = null;
        public Integer y2 = null;
        
        public Integer getX1() { return x1; }
        public Coordinate setX1(Integer value) { this.x1 = value; return this; }
        public Integer getY1() { return y1; }
        public Coordinate setY1(Integer value) { this.y1 = value; return this; }
        public Integer getX2() { return x2; }
        public Coordinate setX2(Integer value) { this.x2 = value; return this; }
        public Integer getY2() { return y2; }
        public Coordinate setY2(Integer value) { this.y2 = value; return this; }
    }

}

Java DiagramSingle 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 /diagram-single/{DiagramId} HTTP/1.1 
Host: mds-api.mojomotorcycles.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DiagramSingle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mds.Api.ServiceModel">
  <DiagramId>0</DiagramId>
</DiagramSingle>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DiagramSingleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mds.Api.ServiceModel">
  <Parts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tiptopweb.MojoPortal.Shared.Poco">
    <d2p1:MyobStockItemMapping>
      <d2p1:AvaiableQuantity>0</d2p1:AvaiableQuantity>
      <d2p1:Color>String</d2p1:Color>
      <d2p1:ColorCode>String</d2p1:ColorCode>
      <d2p1:Coordinates>
        <d2p1:Coordinate>
          <d2p1:x1>0</d2p1:x1>
          <d2p1:x2>0</d2p1:x2>
          <d2p1:y1>0</d2p1:y1>
          <d2p1:y2>0</d2p1:y2>
        </d2p1:Coordinate>
      </d2p1:Coordinates>
      <d2p1:DealerPrice>0</d2p1:DealerPrice>
      <d2p1:DealerPriceNz>0</d2p1:DealerPriceNz>
      <d2p1:GroupId>0</d2p1:GroupId>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:InventoryId>String</d2p1:InventoryId>
      <d2p1:IsFd>false</d2p1:IsFd>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:NoteText>String</d2p1:NoteText>
      <d2p1:Number>0</d2p1:Number>
      <d2p1:PartQuantity>0</d2p1:PartQuantity>
      <d2p1:RetailPrice>0</d2p1:RetailPrice>
      <d2p1:RetailPriceNz>0</d2p1:RetailPriceNz>
      <d2p1:SalesUom>String</d2p1:SalesUom>
      <d2p1:ShowAvailabilityPopUp>false</d2p1:ShowAvailabilityPopUp>
      <d2p1:StockItemId>0</d2p1:StockItemId>
      <d2p1:StockingIndicator>String</d2p1:StockingIndicator>
      <d2p1:TradePrice>0</d2p1:TradePrice>
      <d2p1:TradePriceNz>0</d2p1:TradePriceNz>
    </d2p1:MyobStockItemMapping>
  </Parts>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</DiagramSingleResponse>