Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, ReadData |
POST | /OrderOwnerCards |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardsOrderRequest
{
public ArrayList<Integer> ownerCardTypeIds = null;
public String paymentMethodId = null;
public PaymentRequestCreditCard cardInfo = null;
public BorgunApplePayFinalInfo applePayInfo = null;
public Borgun3DFinalRequest borgun3DFinalInfo = null;
public String paymentPhoneNumber = null;
public String appMetaData = null;
public String holderId = null;
public String holderName = null;
public String holderEmail = null;
public Boolean returnCards = null;
public String phoneVerificationNumber = null;
public String deviceId = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public ArrayList<Integer> getOwnerCardTypeIds() { return ownerCardTypeIds; }
public OwnerCardsOrderRequest setOwnerCardTypeIds(ArrayList<Integer> value) { this.ownerCardTypeIds = value; return this; }
public String getPaymentMethodId() { return paymentMethodId; }
public OwnerCardsOrderRequest setPaymentMethodId(String value) { this.paymentMethodId = value; return this; }
public PaymentRequestCreditCard getCardInfo() { return cardInfo; }
public OwnerCardsOrderRequest setCardInfo(PaymentRequestCreditCard value) { this.cardInfo = value; return this; }
public BorgunApplePayFinalInfo getApplePayInfo() { return applePayInfo; }
public OwnerCardsOrderRequest setApplePayInfo(BorgunApplePayFinalInfo value) { this.applePayInfo = value; return this; }
public Borgun3DFinalRequest getBorgun3DFinalInfo() { return borgun3DFinalInfo; }
public OwnerCardsOrderRequest setBorgun3DFinalInfo(Borgun3DFinalRequest value) { this.borgun3DFinalInfo = value; return this; }
public String getPaymentPhoneNumber() { return paymentPhoneNumber; }
public OwnerCardsOrderRequest setPaymentPhoneNumber(String value) { this.paymentPhoneNumber = value; return this; }
public String getAppMetaData() { return appMetaData; }
public OwnerCardsOrderRequest setAppMetaData(String value) { this.appMetaData = value; return this; }
public String getHolderId() { return holderId; }
public OwnerCardsOrderRequest setHolderId(String value) { this.holderId = value; return this; }
public String getHolderName() { return holderName; }
public OwnerCardsOrderRequest setHolderName(String value) { this.holderName = value; return this; }
public String getHolderEmail() { return holderEmail; }
public OwnerCardsOrderRequest setHolderEmail(String value) { this.holderEmail = value; return this; }
public Boolean isReturnCards() { return returnCards; }
public OwnerCardsOrderRequest setReturnCards(Boolean value) { this.returnCards = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public OwnerCardsOrderRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public OwnerCardsOrderRequest setDeviceId(String value) { this.deviceId = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public OwnerCardsOrderRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public OwnerCardsOrderRequest setSignature(RequestSignature value) { this.signature = value; return this; }
}
public static class PaymentRequestCreditCard
{
public PaymentMethodCreditCardInfo paymentMethod = null;
public BigDecimal amount = null;
public String currency = null;
public String orderId = null;
public Date transActionDate = null;
public Boolean saveCardToToken = null;
public PaymentMethodCreditCardInfo getPaymentMethod() { return paymentMethod; }
public PaymentRequestCreditCard setPaymentMethod(PaymentMethodCreditCardInfo value) { this.paymentMethod = value; return this; }
public BigDecimal getAmount() { return amount; }
public PaymentRequestCreditCard setAmount(BigDecimal value) { this.amount = value; return this; }
public String getCurrency() { return currency; }
public PaymentRequestCreditCard setCurrency(String value) { this.currency = value; return this; }
public String getOrderId() { return orderId; }
public PaymentRequestCreditCard setOrderId(String value) { this.orderId = value; return this; }
public Date getTransActionDate() { return transActionDate; }
public PaymentRequestCreditCard setTransActionDate(Date value) { this.transActionDate = value; return this; }
public Boolean isSaveCardToToken() { return saveCardToToken; }
public PaymentRequestCreditCard setSaveCardToToken(Boolean value) { this.saveCardToToken = value; return this; }
}
public static class PaymentMethodCreditCardInfo
{
public String paymentType = null;
public String token = null;
public String pan = null;
public String expYear = null;
public String expMonth = null;
public String cvc = null;
public String getPaymentType() { return paymentType; }
public PaymentMethodCreditCardInfo setPaymentType(String value) { this.paymentType = value; return this; }
public String getToken() { return token; }
public PaymentMethodCreditCardInfo setToken(String value) { this.token = value; return this; }
public String getPan() { return pan; }
public PaymentMethodCreditCardInfo setPan(String value) { this.pan = value; return this; }
public String getExpYear() { return expYear; }
public PaymentMethodCreditCardInfo setExpYear(String value) { this.expYear = value; return this; }
public String getExpMonth() { return expMonth; }
public PaymentMethodCreditCardInfo setExpMonth(String value) { this.expMonth = value; return this; }
public String getCvc() { return cvc; }
public PaymentMethodCreditCardInfo setCvc(String value) { this.cvc = value; return this; }
}
public static class BorgunApplePayFinalInfo
{
public String orderId = null;
public BorgunApplePayThreeDSecureInfo threeDSecure = null;
public String getOrderId() { return orderId; }
public BorgunApplePayFinalInfo setOrderId(String value) { this.orderId = value; return this; }
public BorgunApplePayThreeDSecureInfo getThreeDSecure() { return threeDSecure; }
public BorgunApplePayFinalInfo setThreeDSecure(BorgunApplePayThreeDSecureInfo value) { this.threeDSecure = value; return this; }
}
public static class BorgunApplePayThreeDSecureInfo
{
public String dataType = null;
public String securityLevelInd = null;
public String cavv = null;
public String ucaf = null;
public String getDataType() { return dataType; }
public BorgunApplePayThreeDSecureInfo setDataType(String value) { this.dataType = value; return this; }
public String getSecurityLevelInd() { return securityLevelInd; }
public BorgunApplePayThreeDSecureInfo setSecurityLevelInd(String value) { this.securityLevelInd = value; return this; }
public String getCavv() { return cavv; }
public BorgunApplePayThreeDSecureInfo setCavv(String value) { this.cavv = value; return this; }
public String getUcaf() { return ucaf; }
public BorgunApplePayThreeDSecureInfo setUcaf(String value) { this.ucaf = value; return this; }
}
public static class Borgun3DFinalRequest
{
public String transactionType = null;
public Integer amount = null;
public String currency = null;
public Date transactionDate = null;
public String orderId = null;
public Borgun3DFinalPaymentMethodInfo paymentMethod = null;
public Borgun3DFinal3DSecureInfo threeDSecure = null;
public String getTransactionType() { return transactionType; }
public Borgun3DFinalRequest setTransactionType(String value) { this.transactionType = value; return this; }
public Integer getAmount() { return amount; }
public Borgun3DFinalRequest setAmount(Integer value) { this.amount = value; return this; }
public String getCurrency() { return currency; }
public Borgun3DFinalRequest setCurrency(String value) { this.currency = value; return this; }
public Date getTransactionDate() { return transactionDate; }
public Borgun3DFinalRequest setTransactionDate(Date value) { this.transactionDate = value; return this; }
public String getOrderId() { return orderId; }
public Borgun3DFinalRequest setOrderId(String value) { this.orderId = value; return this; }
public Borgun3DFinalPaymentMethodInfo getPaymentMethod() { return paymentMethod; }
public Borgun3DFinalRequest setPaymentMethod(Borgun3DFinalPaymentMethodInfo value) { this.paymentMethod = value; return this; }
public Borgun3DFinal3DSecureInfo getThreeDSecure() { return threeDSecure; }
public Borgun3DFinalRequest setThreeDSecure(Borgun3DFinal3DSecureInfo value) { this.threeDSecure = value; return this; }
}
public static class Borgun3DFinalPaymentMethodInfo
{
public String paymentType = null;
public String token = null;
public String getPaymentType() { return paymentType; }
public Borgun3DFinalPaymentMethodInfo setPaymentType(String value) { this.paymentType = value; return this; }
public String getToken() { return token; }
public Borgun3DFinalPaymentMethodInfo setToken(String value) { this.token = value; return this; }
}
public static class Borgun3DFinal3DSecureInfo
{
public String dataType = null;
public String mpiToken = null;
public String getDataType() { return dataType; }
public Borgun3DFinal3DSecureInfo setDataType(String value) { this.dataType = value; return this; }
public String getMpiToken() { return mpiToken; }
public Borgun3DFinal3DSecureInfo setMpiToken(String value) { this.mpiToken = value; return this; }
}
public static class RequestSignature
{
public String systemId = null;
public String systemSecret = null;
public String signature = null;
public String getSystemId() { return systemId; }
public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
public String getSystemSecret() { return systemSecret; }
public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
public String getSignature() { return signature; }
public RequestSignature setSignature(String value) { this.signature = value; return this; }
}
public static class OwnerCardsOrderResult extends GeneralOrderResponse
{
public ArrayList<OwnerCards> cards = null;
public ArrayList<OwnerCards> getCards() { return cards; }
public OwnerCardsOrderResult setCards(ArrayList<OwnerCards> value) { this.cards = value; return this; }
}
public static class GeneralOrderResponse
{
public Integer statusCode = null;
public String message = null;
public Boolean success = null;
public Boolean paymentIsPending = null;
public String orderTokenId = null;
public Integer getStatusCode() { return statusCode; }
public GeneralOrderResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public GeneralOrderResponse setMessage(String value) { this.message = value; return this; }
public Boolean isSuccess() { return success; }
public GeneralOrderResponse setSuccess(Boolean value) { this.success = value; return this; }
public Boolean isPaymentIsPending() { return paymentIsPending; }
public GeneralOrderResponse setPaymentIsPending(Boolean value) { this.paymentIsPending = value; return this; }
public String getOrderTokenId() { return orderTokenId; }
public GeneralOrderResponse setOrderTokenId(String value) { this.orderTokenId = 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; }
}
}
Java OwnerCardsOrderRequest 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 /OrderOwnerCards HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardsOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<AppMetaData>String</AppMetaData>
<ApplePayInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
<d2p1:OrderId>String</d2p1:OrderId>
<d2p1:ThreeDSecure>
<d2p1:CAVV>String</d2p1:CAVV>
<d2p1:DataType>String</d2p1:DataType>
<d2p1:SecurityLevelInd>String</d2p1:SecurityLevelInd>
<d2p1:UCAF>String</d2p1:UCAF>
</d2p1:ThreeDSecure>
</ApplePayInfo>
<Borgun3DFinalInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
<d2p1:Amount>0</d2p1:Amount>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:OrderId>String</d2p1:OrderId>
<d2p1:PaymentMethod>
<d2p1:PaymentType>String</d2p1:PaymentType>
<d2p1:Token>String</d2p1:Token>
</d2p1:PaymentMethod>
<d2p1:ThreeDSecure>
<d2p1:DataType>String</d2p1:DataType>
<d2p1:MpiToken>String</d2p1:MpiToken>
</d2p1:ThreeDSecure>
<d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
<d2p1:TransactionType>String</d2p1:TransactionType>
</Borgun3DFinalInfo>
<CardInfo>
<Amount>0</Amount>
<Currency>String</Currency>
<OrderId>String</OrderId>
<PaymentMethod>
<CVC>String</CVC>
<ExpMonth>String</ExpMonth>
<ExpYear>String</ExpYear>
<PAN>String</PAN>
<PaymentType>String</PaymentType>
<Token>String</Token>
</PaymentMethod>
<SaveCardToToken>false</SaveCardToToken>
<TransActionDate>0001-01-01T00:00:00</TransActionDate>
</CardInfo>
<DeviceId>String</DeviceId>
<HolderEmail>String</HolderEmail>
<HolderId>String</HolderId>
<HolderName>String</HolderName>
<OwnerCardTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</OwnerCardTypeIds>
<PaymentMethodId>String</PaymentMethodId>
<PaymentPhoneNumber>String</PaymentPhoneNumber>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<ReturnCards>false</ReturnCards>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</OwnerCardsOrderRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerCardsOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <OrderTokenId>String</OrderTokenId> <PaymentIsPending>false</PaymentIsPending> <StatusCode>0</StatusCode> <Success>false</Success> <Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:OwnerCards> <d2p1:BackgroundImageUrl>String</d2p1:BackgroundImageUrl> <d2p1:CardPrice>0</d2p1:CardPrice> <d2p1:CardPriceCurrency>String</d2p1:CardPriceCurrency> <d2p1:CardValidFromUTC>0001-01-01T00:00:00</d2p1:CardValidFromUTC> <d2p1:CardValidToUTC>0001-01-01T00:00:00</d2p1:CardValidToUTC> <d2p1:CurrentAvailableTickets>0</d2p1:CurrentAvailableTickets> <d2p1:CurrentStoreCredit>0</d2p1:CurrentStoreCredit> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:HasStoreCredit>false</d2p1:HasStoreCredit> <d2p1:HolderEmail>String</d2p1:HolderEmail> <d2p1:HolderId>String</d2p1:HolderId> <d2p1:HolderName>String</d2p1:HolderName> <d2p1:ID>0</d2p1:ID> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:InitialMaxTickets>0</d2p1:InitialMaxTickets> <d2p1:InitialStoreCredit>0</d2p1:InitialStoreCredit> <d2p1:MaxTicketsPerEvent>0</d2p1:MaxTicketsPerEvent> <d2p1:MultiplePaymentsId>String</d2p1:MultiplePaymentsId> <d2p1:OwnerCardTypeId>0</d2p1:OwnerCardTypeId> <d2p1:OwnerId>0</d2p1:OwnerId> <d2p1:PaymentId>String</d2p1:PaymentId> <d2p1:PaymentMethodId>String</d2p1:PaymentMethodId> <d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber> <d2p1:PaymentReference>String</d2p1:PaymentReference> <d2p1:PaymentStatus>String</d2p1:PaymentStatus> <d2p1:PaymentTokenId>String</d2p1:PaymentTokenId> <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber> <d2p1:PhoneVerificationId>0</d2p1:PhoneVerificationId> <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber> <d2p1:PricePaid>0</d2p1:PricePaid> <d2p1:PricePaidCurrency>String</d2p1:PricePaidCurrency> <d2p1:TimeStampBoughtUTC>0001-01-01T00:00:00</d2p1:TimeStampBoughtUTC> <d2p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d2p1:TimeStampCreatedUTC> <d2p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d2p1:TimeStampLastChangedUTC> <d2p1:TimeStampOrderedUTC>0001-01-01T00:00:00</d2p1:TimeStampOrderedUTC> </d2p1:OwnerCards> </Cards> </OwnerCardsOrderResult>