| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
giftCardId: 0,
issuerOwnerId: 0,
issuerIsPlatformAdmin: False,
operatorLabel: String,
deliveredTo: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
success: False,
giftCardId: 0,
code: String,
codeLast4: String,
status: String,
expiresAt: 0001-01-01,
paymentId: String,
statusCode: 0,
message: String
}