Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /OwnerCards |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardsCreateRequest
{
public OwnerCards item = null;
public OwnerCards getItem() { return item; }
public OwnerCardsCreateRequest setItem(OwnerCards value) { this.item = value; return this; }
}
public static class OwnerCards
{
public Integer id = null;
public Integer ownerId = null;
public Integer ownerCardTypeId = null;
public Integer phoneVerificationId = null;
public Integer initialMaxTickets = null;
public Integer currentAvailableTickets = null;
public Date timeStampCreatedUTC = null;
public Date timeStampLastChangedUTC = null;
public Date timeStampBoughtUTC = null;
public Date timeStampOrderedUTC = null;
public Date cardValidFromUTC = null;
public Date cardValidToUTC = null;
public Boolean hasStoreCredit = null;
public BigDecimal cardPrice = null;
public BigDecimal pricePaid = null;
public BigDecimal initialStoreCredit = null;
public BigDecimal currentStoreCredit = null;
public String phoneFullVerificationNumber = null;
public String holderId = null;
public String holderName = null;
public String holderEmail = null;
public String cardPriceCurrency = null;
public String pricePaidCurrency = null;
public String deviceId = null;
public String paymentMethodId = null;
public String paymentReference = null;
public String phoneVerificationNumber = null;
public String paymentPhoneNumber = null;
public String paymentId = null;
public String paymentStatus = null;
public String paymentTokenId = null;
public Integer maxTicketsPerEvent = null;
public String multiplePaymentsId = null;
public String imageUrl = null;
public String backgroundImageUrl = null;
public Integer getId() { return id; }
public OwnerCards setId(Integer value) { this.id = value; return this; }
public Integer getOwnerId() { return ownerId; }
public OwnerCards setOwnerId(Integer value) { this.ownerId = value; return this; }
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public OwnerCards setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public Integer getPhoneVerificationId() { return phoneVerificationId; }
public OwnerCards setPhoneVerificationId(Integer value) { this.phoneVerificationId = value; return this; }
public Integer getInitialMaxTickets() { return initialMaxTickets; }
public OwnerCards setInitialMaxTickets(Integer value) { this.initialMaxTickets = value; return this; }
public Integer getCurrentAvailableTickets() { return currentAvailableTickets; }
public OwnerCards setCurrentAvailableTickets(Integer value) { this.currentAvailableTickets = value; return this; }
public Date getTimeStampCreatedUTC() { return timeStampCreatedUTC; }
public OwnerCards setTimeStampCreatedUTC(Date value) { this.timeStampCreatedUTC = value; return this; }
public Date getTimeStampLastChangedUTC() { return timeStampLastChangedUTC; }
public OwnerCards setTimeStampLastChangedUTC(Date value) { this.timeStampLastChangedUTC = value; return this; }
public Date getTimeStampBoughtUTC() { return timeStampBoughtUTC; }
public OwnerCards setTimeStampBoughtUTC(Date value) { this.timeStampBoughtUTC = value; return this; }
public Date getTimeStampOrderedUTC() { return timeStampOrderedUTC; }
public OwnerCards setTimeStampOrderedUTC(Date value) { this.timeStampOrderedUTC = value; return this; }
public Date getCardValidFromUTC() { return cardValidFromUTC; }
public OwnerCards setCardValidFromUTC(Date value) { this.cardValidFromUTC = value; return this; }
public Date getCardValidToUTC() { return cardValidToUTC; }
public OwnerCards setCardValidToUTC(Date value) { this.cardValidToUTC = value; return this; }
public Boolean isHasStoreCredit() { return hasStoreCredit; }
public OwnerCards setHasStoreCredit(Boolean value) { this.hasStoreCredit = value; return this; }
public BigDecimal getCardPrice() { return cardPrice; }
public OwnerCards setCardPrice(BigDecimal value) { this.cardPrice = value; return this; }
public BigDecimal getPricePaid() { return pricePaid; }
public OwnerCards setPricePaid(BigDecimal value) { this.pricePaid = value; return this; }
public BigDecimal getInitialStoreCredit() { return initialStoreCredit; }
public OwnerCards setInitialStoreCredit(BigDecimal value) { this.initialStoreCredit = value; return this; }
public BigDecimal getCurrentStoreCredit() { return currentStoreCredit; }
public OwnerCards setCurrentStoreCredit(BigDecimal value) { this.currentStoreCredit = value; return this; }
public String getPhoneFullVerificationNumber() { return phoneFullVerificationNumber; }
public OwnerCards setPhoneFullVerificationNumber(String value) { this.phoneFullVerificationNumber = value; return this; }
public String getHolderId() { return holderId; }
public OwnerCards setHolderId(String value) { this.holderId = value; return this; }
public String getHolderName() { return holderName; }
public OwnerCards setHolderName(String value) { this.holderName = value; return this; }
public String getHolderEmail() { return holderEmail; }
public OwnerCards setHolderEmail(String value) { this.holderEmail = value; return this; }
public String getCardPriceCurrency() { return cardPriceCurrency; }
public OwnerCards setCardPriceCurrency(String value) { this.cardPriceCurrency = value; return this; }
public String getPricePaidCurrency() { return pricePaidCurrency; }
public OwnerCards setPricePaidCurrency(String value) { this.pricePaidCurrency = value; return this; }
public String getDeviceId() { return deviceId; }
public OwnerCards setDeviceId(String value) { this.deviceId = value; return this; }
public String getPaymentMethodId() { return paymentMethodId; }
public OwnerCards setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
public String getPaymentReference() { return paymentReference; }
public OwnerCards setPaymentReference(String value) { this.paymentReference = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public OwnerCards setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getPaymentPhoneNumber() { return paymentPhoneNumber; }
public OwnerCards setPaymentPhoneNumber(String value) { this.paymentPhoneNumber = value; return this; }
public String getPaymentId() { return paymentId; }
public OwnerCards setPaymentId(String value) { this.paymentId = value; return this; }
public String getPaymentStatus() { return paymentStatus; }
public OwnerCards setPaymentStatus(String value) { this.paymentStatus = value; return this; }
public String getPaymentTokenId() { return paymentTokenId; }
public OwnerCards setPaymentTokenId(String value) { this.paymentTokenId = value; return this; }
public Integer getMaxTicketsPerEvent() { return maxTicketsPerEvent; }
public OwnerCards setMaxTicketsPerEvent(Integer value) { this.maxTicketsPerEvent = value; return this; }
public String getMultiplePaymentsId() { return multiplePaymentsId; }
public OwnerCards setMultiplePaymentsId(String value) { this.multiplePaymentsId = value; return this; }
public String getImageUrl() { return imageUrl; }
public OwnerCards setImageUrl(String value) { this.imageUrl = value; return this; }
public String getBackgroundImageUrl() { return backgroundImageUrl; }
public OwnerCards setBackgroundImageUrl(String value) { this.backgroundImageUrl = value; return this; }
}
public static class OwnerCardsResult
{
public OwnerCards item = null;
public Integer statusCode = null;
public String message = null;
public OwnerCards getItem() { return item; }
public OwnerCardsResult setItem(OwnerCards value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OwnerCardsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerCardsResult setMessage(String value) { this.message = value; return this; }
}
}
Java OwnerCardsCreateRequest 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 /OwnerCards HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerId: 0,
ownerCardTypeId: 0,
phoneVerificationId: 0,
initialMaxTickets: 0,
currentAvailableTickets: 0,
timeStampCreatedUTC: 0001-01-01,
timeStampLastChangedUTC: 0001-01-01,
timeStampBoughtUTC: 0001-01-01,
timeStampOrderedUTC: 0001-01-01,
cardValidFromUTC: 0001-01-01,
cardValidToUTC: 0001-01-01,
hasStoreCredit: False,
cardPrice: 0,
pricePaid: 0,
initialStoreCredit: 0,
currentStoreCredit: 0,
phoneFullVerificationNumber: String,
holderId: String,
holderName: String,
holderEmail: String,
cardPriceCurrency: String,
pricePaidCurrency: String,
deviceId: String,
paymentMethodId: String,
paymentReference: String,
phoneVerificationNumber: String,
paymentPhoneNumber: String,
paymentId: String,
paymentStatus: String,
paymentTokenId: String,
maxTicketsPerEvent: 0,
multiplePaymentsId: String,
imageUrl: String,
backgroundImageUrl: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { item: { id: 0, ownerId: 0, ownerCardTypeId: 0, phoneVerificationId: 0, initialMaxTickets: 0, currentAvailableTickets: 0, timeStampCreatedUTC: 0001-01-01, timeStampLastChangedUTC: 0001-01-01, timeStampBoughtUTC: 0001-01-01, timeStampOrderedUTC: 0001-01-01, cardValidFromUTC: 0001-01-01, cardValidToUTC: 0001-01-01, hasStoreCredit: False, cardPrice: 0, pricePaid: 0, initialStoreCredit: 0, currentStoreCredit: 0, phoneFullVerificationNumber: String, holderId: String, holderName: String, holderEmail: String, cardPriceCurrency: String, pricePaidCurrency: String, deviceId: String, paymentMethodId: String, paymentReference: String, phoneVerificationNumber: String, paymentPhoneNumber: String, paymentId: String, paymentStatus: String, paymentTokenId: String, maxTicketsPerEvent: 0, multiplePaymentsId: String, imageUrl: String, backgroundImageUrl: String }, statusCode: 0, message: String }