| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| POST | /OwnerCards/Purchase/Confirm |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardPurchaseConfirmRequest
{
public Integer ownerCardTypeId = null;
public Integer giftHoldId = null;
public String giftCardCode = null;
public String idempotencyKey = null;
public String paymentReference = null;
public String paymentId = null;
public String phoneVerificationNumber = null;
public String holderName = null;
public String holderEmail = null;
public String holderId = null;
public String deviceId = null;
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public OwnerCardPurchaseConfirmRequest setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public Integer getGiftHoldId() { return giftHoldId; }
public OwnerCardPurchaseConfirmRequest setGiftHoldId(Integer value) { this.giftHoldId = value; return this; }
public String getGiftCardCode() { return giftCardCode; }
public OwnerCardPurchaseConfirmRequest setGiftCardCode(String value) { this.giftCardCode = value; return this; }
public String getIdempotencyKey() { return idempotencyKey; }
public OwnerCardPurchaseConfirmRequest setIdempotencyKey(String value) { this.idempotencyKey = value; return this; }
public String getPaymentReference() { return paymentReference; }
public OwnerCardPurchaseConfirmRequest setPaymentReference(String value) { this.paymentReference = value; return this; }
public String getPaymentId() { return paymentId; }
public OwnerCardPurchaseConfirmRequest setPaymentId(String value) { this.paymentId = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public OwnerCardPurchaseConfirmRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getHolderName() { return holderName; }
public OwnerCardPurchaseConfirmRequest setHolderName(String value) { this.holderName = value; return this; }
public String getHolderEmail() { return holderEmail; }
public OwnerCardPurchaseConfirmRequest setHolderEmail(String value) { this.holderEmail = value; return this; }
public String getHolderId() { return holderId; }
public OwnerCardPurchaseConfirmRequest setHolderId(String value) { this.holderId = value; return this; }
public String getDeviceId() { return deviceId; }
public OwnerCardPurchaseConfirmRequest setDeviceId(String value) { this.deviceId = value; return this; }
}
public static class OwnerCardPurchaseConfirmResult
{
public Integer ownerCardId = null;
public Integer giftRedeemedMinor = null;
public Integer cardPaidMinor = null;
public String paymentMethodId = null;
public Integer statusCode = null;
public String message = null;
public Integer getOwnerCardId() { return ownerCardId; }
public OwnerCardPurchaseConfirmResult setOwnerCardId(Integer value) { this.ownerCardId = value; return this; }
public Integer getGiftRedeemedMinor() { return giftRedeemedMinor; }
public OwnerCardPurchaseConfirmResult setGiftRedeemedMinor(Integer value) { this.giftRedeemedMinor = value; return this; }
public Integer getCardPaidMinor() { return cardPaidMinor; }
public OwnerCardPurchaseConfirmResult setCardPaidMinor(Integer value) { this.cardPaidMinor = value; return this; }
public String getPaymentMethodId() { return paymentMethodId; }
public OwnerCardPurchaseConfirmResult setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OwnerCardPurchaseConfirmResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerCardPurchaseConfirmResult setMessage(String value) { this.message = value; return this; }
}
}
Java OwnerCardPurchaseConfirmRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /OwnerCards/Purchase/Confirm HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ownerCardTypeId":0,"giftHoldId":0,"giftCardCode":"String","idempotencyKey":"String","paymentReference":"String","paymentId":"String","phoneVerificationNumber":"String","holderName":"String","holderEmail":"String","holderId":"String","deviceId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ownerCardId":0,"giftRedeemedMinor":0,"cardPaidMinor":0,"paymentMethodId":"String","statusCode":0,"message":"String"}