| Requires the role: | Admin |
| POST | /eventowner/{EventOwnerId}/outstanding |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EventOwnerOutstandingCreateRequest
{
public Integer eventOwnerId = null;
public Long amount = null;
public String reason = null;
public Integer relatedEventId = null;
public Integer relatedTicketId = null;
public Integer getEventOwnerId() { return eventOwnerId; }
public EventOwnerOutstandingCreateRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Long getAmount() { return amount; }
public EventOwnerOutstandingCreateRequest setAmount(Long value) { this.amount = value; return this; }
public String getReason() { return reason; }
public EventOwnerOutstandingCreateRequest setReason(String value) { this.reason = value; return this; }
public Integer getRelatedEventId() { return relatedEventId; }
public EventOwnerOutstandingCreateRequest setRelatedEventId(Integer value) { this.relatedEventId = value; return this; }
public Integer getRelatedTicketId() { return relatedTicketId; }
public EventOwnerOutstandingCreateRequest setRelatedTicketId(Integer value) { this.relatedTicketId = value; return this; }
}
public static class EventOwnerOutstandingResult
{
public EventOwnerOutstanding item = null;
public Integer statusCode = null;
public String message = null;
public EventOwnerOutstanding getItem() { return item; }
public EventOwnerOutstandingResult setItem(EventOwnerOutstanding value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public EventOwnerOutstandingResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public EventOwnerOutstandingResult setMessage(String value) { this.message = value; return this; }
}
public static class EventOwnerOutstanding
{
public Integer id = null;
@References(EventOwner.class)
public Integer eventOwnerId = null;
public Long amount = null;
public String reason = null;
public Integer relatedEventId = null;
public Integer relatedTicketId = null;
@References(EventPayout.class)
public Integer appliedToEventPayoutId = null;
public Date createdAt = null;
public Date appliedAt = null;
public Integer getId() { return id; }
public EventOwnerOutstanding setId(Integer value) { this.id = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public EventOwnerOutstanding setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Long getAmount() { return amount; }
public EventOwnerOutstanding setAmount(Long value) { this.amount = value; return this; }
public String getReason() { return reason; }
public EventOwnerOutstanding setReason(String value) { this.reason = value; return this; }
public Integer getRelatedEventId() { return relatedEventId; }
public EventOwnerOutstanding setRelatedEventId(Integer value) { this.relatedEventId = value; return this; }
public Integer getRelatedTicketId() { return relatedTicketId; }
public EventOwnerOutstanding setRelatedTicketId(Integer value) { this.relatedTicketId = value; return this; }
public Integer getAppliedToEventPayoutId() { return appliedToEventPayoutId; }
public EventOwnerOutstanding setAppliedToEventPayoutId(Integer value) { this.appliedToEventPayoutId = value; return this; }
public Date getCreatedAt() { return createdAt; }
public EventOwnerOutstanding setCreatedAt(Date value) { this.createdAt = value; return this; }
public Date getAppliedAt() { return appliedAt; }
public EventOwnerOutstanding setAppliedAt(Date value) { this.appliedAt = value; return this; }
}
}
Java EventOwnerOutstandingCreateRequest 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.
POST /eventowner/{EventOwnerId}/outstanding HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EventOwnerOutstandingCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Amount>0</Amount>
<EventOwnerId>0</EventOwnerId>
<Reason>String</Reason>
<RelatedEventId>0</RelatedEventId>
<RelatedTicketId>0</RelatedTicketId>
</EventOwnerOutstandingCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EventOwnerOutstandingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types.Payouts">
<d2p1:Amount>0</d2p1:Amount>
<d2p1:AppliedAt>0001-01-01T00:00:00</d2p1:AppliedAt>
<d2p1:AppliedToEventPayoutId>0</d2p1:AppliedToEventPayoutId>
<d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
<d2p1:EventOwnerId>0</d2p1:EventOwnerId>
<d2p1:Id>0</d2p1:Id>
<d2p1:Reason>String</d2p1:Reason>
<d2p1:RelatedEventId>0</d2p1:RelatedEventId>
<d2p1:RelatedTicketId>0</d2p1:RelatedTicketId>
</Item>
<Message>String</Message>
<StatusCode>0</StatusCode>
</EventOwnerOutstandingResult>