| GET | /eaccounting/summarizedinvoice/{Id} | Get a single summarized invoice by id | Returns the summarized invoice details including associated booking ids. |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@ValidateRequest(Validator="IsAuthenticated")
public static class GetSummarizedInvoice implements ICompany
{
/**
* The summarized invoice id.
*/
@ApiMember(Description="The summarized invoice id.", IsRequired=true)
public UUID Id = null;
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
@ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
public UUID CompanyId = null;
public UUID getId() { return Id; }
public GetSummarizedInvoice setId(UUID value) { this.Id = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public GetSummarizedInvoice setCompanyId(UUID value) { this.CompanyId = value; return this; }
}
public static class SummarizedInvoiceDetailResponse
{
public UUID Id = null;
public UUID CompanyId = null;
public UUID CustomerId = null;
public String CustomerName = null;
public String EAccountingInvoiceId = null;
public Boolean Draft = null;
public Date DateFrom = null;
public Date DateTo = null;
public Integer ServiceId = null;
public Integer Status = null;
public String StatusName = null;
public String ErrorMessage = null;
public ArrayList<Integer> BookingIds = new ArrayList<Integer>();
public Date CreatedDate = null;
public Date UpdatedDate = null;
public UUID getId() { return Id; }
public SummarizedInvoiceDetailResponse setId(UUID value) { this.Id = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public SummarizedInvoiceDetailResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public UUID getCustomerId() { return CustomerId; }
public SummarizedInvoiceDetailResponse setCustomerId(UUID value) { this.CustomerId = value; return this; }
public String getCustomerName() { return CustomerName; }
public SummarizedInvoiceDetailResponse setCustomerName(String value) { this.CustomerName = value; return this; }
public String getEAccountingInvoiceId() { return EAccountingInvoiceId; }
public SummarizedInvoiceDetailResponse setEAccountingInvoiceId(String value) { this.EAccountingInvoiceId = value; return this; }
public Boolean isDraft() { return Draft; }
public SummarizedInvoiceDetailResponse setDraft(Boolean value) { this.Draft = value; return this; }
public Date getDateFrom() { return DateFrom; }
public SummarizedInvoiceDetailResponse setDateFrom(Date value) { this.DateFrom = value; return this; }
public Date getDateTo() { return DateTo; }
public SummarizedInvoiceDetailResponse setDateTo(Date value) { this.DateTo = value; return this; }
public Integer getServiceId() { return ServiceId; }
public SummarizedInvoiceDetailResponse setServiceId(Integer value) { this.ServiceId = value; return this; }
public Integer getStatus() { return Status; }
public SummarizedInvoiceDetailResponse setStatus(Integer value) { this.Status = value; return this; }
public String getStatusName() { return StatusName; }
public SummarizedInvoiceDetailResponse setStatusName(String value) { this.StatusName = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public SummarizedInvoiceDetailResponse setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public ArrayList<Integer> getBookingIds() { return BookingIds; }
public SummarizedInvoiceDetailResponse setBookingIds(ArrayList<Integer> value) { this.BookingIds = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public SummarizedInvoiceDetailResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public Date getUpdatedDate() { return UpdatedDate; }
public SummarizedInvoiceDetailResponse setUpdatedDate(Date value) { this.UpdatedDate = value; return this; }
}
}
Java GetSummarizedInvoice DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eaccounting/summarizedinvoice/{Id} HTTP/1.1
Host: api.bokamera.se
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SummarizedInvoiceDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
<BookingIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</BookingIds>
<CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<CustomerName>String</CustomerName>
<DateFrom>0001-01-01T00:00:00</DateFrom>
<DateTo>0001-01-01T00:00:00</DateTo>
<Draft>false</Draft>
<EAccountingInvoiceId>String</EAccountingInvoiceId>
<ErrorMessage>String</ErrorMessage>
<Id>00000000-0000-0000-0000-000000000000</Id>
<ServiceId>0</ServiceId>
<Status>0</Status>
<StatusName>String</StatusName>
<UpdatedDate>0001-01-01T00:00:00</UpdatedDate>
</SummarizedInvoiceDetailResponse>