Mercedes.Agency.Orchestration.API

<back to all web services

LinkedBackOrderCommAudit

Requires Authentication
The following routes are available for this service:
POST/v1/BackOrderLinkedCommsGet the audit for back orders linked comms
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class LinkedBackOrderCommAudit
    {
        public ArrayList<String> GssnIds = null;
        public BackOrderLinkedCommsAuditDateCriteria DateCriteria = null;
        
        public ArrayList<String> getGssnIds() { return GssnIds; }
        public LinkedBackOrderCommAudit setGssnIds(ArrayList<String> value) { this.GssnIds = value; return this; }
        public BackOrderLinkedCommsAuditDateCriteria getDateCriteria() { return DateCriteria; }
        public LinkedBackOrderCommAudit setDateCriteria(BackOrderLinkedCommsAuditDateCriteria value) { this.DateCriteria = value; return this; }
    }

    public static class BackOrderLinkedCommsAuditDateCriteria
    {
        public Date From = null;
        public Date To = null;
        
        public Date getFrom() { return From; }
        public BackOrderLinkedCommsAuditDateCriteria setFrom(Date value) { this.From = value; return this; }
        public Date getTo() { return To; }
        public BackOrderLinkedCommsAuditDateCriteria setTo(Date value) { this.To = value; return this; }
    }

    public static class LinkedBackOrderCommAuditResponse
    {
        public ArrayList<BackOrderLinkedCommsAudit> Audits = new ArrayList<BackOrderLinkedCommsAudit>();
        
        public ArrayList<BackOrderLinkedCommsAudit> getAudits() { return Audits; }
        public LinkedBackOrderCommAuditResponse setAudits(ArrayList<BackOrderLinkedCommsAudit> value) { this.Audits = value; return this; }
    }

    public static class BackOrderLinkedCommsAudit
    {
        public String Guid = null;
        public String BackOrderReference = null;
        public String UserId = null;
        public String Showroom = null;
        public String CommLinked = null;
        public String SalesDescription = null;
        public String Colour = null;
        public String Upholstery = null;
        public Boolean Sellable = null;
        public String LinkedDate = null;
        public BackOrderStatus Status = null;
        
        public String getGuid() { return Guid; }
        public BackOrderLinkedCommsAudit setGuid(String value) { this.Guid = value; return this; }
        public String getBackOrderReference() { return BackOrderReference; }
        public BackOrderLinkedCommsAudit setBackOrderReference(String value) { this.BackOrderReference = value; return this; }
        public String getUserId() { return UserId; }
        public BackOrderLinkedCommsAudit setUserId(String value) { this.UserId = value; return this; }
        public String getShowroom() { return Showroom; }
        public BackOrderLinkedCommsAudit setShowroom(String value) { this.Showroom = value; return this; }
        public String getCommLinked() { return CommLinked; }
        public BackOrderLinkedCommsAudit setCommLinked(String value) { this.CommLinked = value; return this; }
        public String getSalesDescription() { return SalesDescription; }
        public BackOrderLinkedCommsAudit setSalesDescription(String value) { this.SalesDescription = value; return this; }
        public String getColour() { return Colour; }
        public BackOrderLinkedCommsAudit setColour(String value) { this.Colour = value; return this; }
        public String getUpholstery() { return Upholstery; }
        public BackOrderLinkedCommsAudit setUpholstery(String value) { this.Upholstery = value; return this; }
        public Boolean isSellable() { return Sellable; }
        public BackOrderLinkedCommsAudit setSellable(Boolean value) { this.Sellable = value; return this; }
        public String getLinkedDate() { return LinkedDate; }
        public BackOrderLinkedCommsAudit setLinkedDate(String value) { this.LinkedDate = value; return this; }
        public BackOrderStatus getStatus() { return Status; }
        public BackOrderLinkedCommsAudit setStatus(BackOrderStatus value) { this.Status = value; return this; }
    }

    public static enum BackOrderStatus
    {
        Submitted(1),
        Acknowledged(2),
        Cancelled(3),
        Completed(4),
        Confirmed(5);

        private final int value;
        BackOrderStatus(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

}

Java LinkedBackOrderCommAudit DTOs

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

HTTP + CSV

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

POST /v1/BackOrderLinkedComms HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"GssnIds":["String"],"DateCriteria":{"From":"\/Date(-62135596800000-0000)\/","To":"\/Date(-62135596800000-0000)\/"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Audits":[{"Guid":"String","BackOrderReference":"String","UserId":"String","Showroom":"String","CommLinked":"String","SalesDescription":"String","Colour":"String","Upholstery":"String","Sellable":false,"LinkedDate":"String","Status":"Submitted"}]}