TicketUserServices

<back to all web services

OwnerCardPurchaseConfirmRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<OwnerCardPurchaseConfirmRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <DeviceId>String</DeviceId>
  <GiftCardCode>String</GiftCardCode>
  <GiftHoldId>0</GiftHoldId>
  <HolderEmail>String</HolderEmail>
  <HolderId>String</HolderId>
  <HolderName>String</HolderName>
  <IdempotencyKey>String</IdempotencyKey>
  <OwnerCardTypeId>0</OwnerCardTypeId>
  <PaymentId>String</PaymentId>
  <PaymentReference>String</PaymentReference>
  <PhoneVerificationNumber>String</PhoneVerificationNumber>
</OwnerCardPurchaseConfirmRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OwnerCardPurchaseConfirmResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <CardPaidMinor>0</CardPaidMinor>
  <GiftRedeemedMinor>0</GiftRedeemedMinor>
  <Message>String</Message>
  <OwnerCardId>0</OwnerCardId>
  <PaymentMethodId>String</PaymentMethodId>
  <StatusCode>0</StatusCode>
</OwnerCardPurchaseConfirmResult>