| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /GiftCard/Reissue |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GiftCardReissueRequest
{
public Integer giftCardId = null;
public Integer issuerOwnerId = null;
public Boolean issuerIsPlatformAdmin = null;
public String operatorLabel = null;
public String deliveredTo = null;
public Integer getGiftCardId() { return giftCardId; }
public GiftCardReissueRequest setGiftCardId(Integer value) { this.giftCardId = value; return this; }
public Integer getIssuerOwnerId() { return issuerOwnerId; }
public GiftCardReissueRequest setIssuerOwnerId(Integer value) { this.issuerOwnerId = value; return this; }
public Boolean getIssuerIsPlatformAdmin() { return issuerIsPlatformAdmin; }
public GiftCardReissueRequest setIssuerIsPlatformAdmin(Boolean value) { this.issuerIsPlatformAdmin = value; return this; }
public String getOperatorLabel() { return operatorLabel; }
public GiftCardReissueRequest setOperatorLabel(String value) { this.operatorLabel = value; return this; }
public String getDeliveredTo() { return deliveredTo; }
public GiftCardReissueRequest setDeliveredTo(String value) { this.deliveredTo = value; return this; }
}
public static class GiftCardIssueResult
{
public Boolean success = null;
public Integer giftCardId = null;
public String code = null;
public String codeLast4 = null;
public String status = null;
public Date expiresAt = null;
public String paymentId = null;
public Integer statusCode = null;
public String message = null;
public Boolean isSuccess() { return success; }
public GiftCardIssueResult setSuccess(Boolean value) { this.success = value; return this; }
public Integer getGiftCardId() { return giftCardId; }
public GiftCardIssueResult setGiftCardId(Integer value) { this.giftCardId = value; return this; }
public String getCode() { return code; }
public GiftCardIssueResult setCode(String value) { this.code = value; return this; }
public String getCodeLast4() { return codeLast4; }
public GiftCardIssueResult setCodeLast4(String value) { this.codeLast4 = value; return this; }
public String getStatus() { return status; }
public GiftCardIssueResult setStatus(String value) { this.status = value; return this; }
public Date getExpiresAt() { return expiresAt; }
public GiftCardIssueResult setExpiresAt(Date value) { this.expiresAt = value; return this; }
public String getPaymentId() { return paymentId; }
public GiftCardIssueResult setPaymentId(String value) { this.paymentId = value; return this; }
public Integer getStatusCode() { return statusCode; }
public GiftCardIssueResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public GiftCardIssueResult setMessage(String value) { this.message = value; return this; }
}
}
Java GiftCardReissueRequest 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 /GiftCard/Reissue HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GiftCardReissueRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<DeliveredTo>String</DeliveredTo>
<GiftCardId>0</GiftCardId>
<IssuerIsPlatformAdmin>false</IssuerIsPlatformAdmin>
<IssuerOwnerId>0</IssuerOwnerId>
<OperatorLabel>String</OperatorLabel>
</GiftCardReissueRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GiftCardIssueResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Code>String</Code> <CodeLast4>String</CodeLast4> <ExpiresAt>0001-01-01T00:00:00</ExpiresAt> <GiftCardId>0</GiftCardId> <Message>String</Message> <PaymentId>String</PaymentId> <Status>String</Status> <StatusCode>0</StatusCode> <Success>false</Success> </GiftCardIssueResult>