| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| POST | /OwnerCards/Purchase/Quote |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardPurchaseQuoteRequest
{
public Integer ownerCardTypeId = null;
public String giftCardCode = null;
public String idempotencyKey = null;
public Boolean isRecurring = null;
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public OwnerCardPurchaseQuoteRequest setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public String getGiftCardCode() { return giftCardCode; }
public OwnerCardPurchaseQuoteRequest setGiftCardCode(String value) { this.giftCardCode = value; return this; }
public String getIdempotencyKey() { return idempotencyKey; }
public OwnerCardPurchaseQuoteRequest setIdempotencyKey(String value) { this.idempotencyKey = value; return this; }
public Boolean getIsRecurring() { return isRecurring; }
public OwnerCardPurchaseQuoteRequest setIsRecurring(Boolean value) { this.isRecurring = value; return this; }
}
public static class OwnerCardPurchaseQuoteResult
{
public Integer ownerCardTypeId = null;
public Integer ownerId = null;
public String currency = null;
public Integer priceMinor = null;
public Integer giftAppliedMinor = null;
public Integer remainingMinor = null;
public Integer giftHoldId = null;
public Boolean fullyCoveredByGiftCard = null;
public Boolean requiresCardMandate = null;
public String giftRejectedReason = null;
public LocalizedMessage giftMessage = null;
public Integer statusCode = null;
public String message = null;
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public OwnerCardPurchaseQuoteResult setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public Integer getOwnerId() { return ownerId; }
public OwnerCardPurchaseQuoteResult setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getCurrency() { return currency; }
public OwnerCardPurchaseQuoteResult setCurrency(String value) { this.currency = value; return this; }
public Integer getPriceMinor() { return priceMinor; }
public OwnerCardPurchaseQuoteResult setPriceMinor(Integer value) { this.priceMinor = value; return this; }
public Integer getGiftAppliedMinor() { return giftAppliedMinor; }
public OwnerCardPurchaseQuoteResult setGiftAppliedMinor(Integer value) { this.giftAppliedMinor = value; return this; }
public Integer getRemainingMinor() { return remainingMinor; }
public OwnerCardPurchaseQuoteResult setRemainingMinor(Integer value) { this.remainingMinor = value; return this; }
public Integer getGiftHoldId() { return giftHoldId; }
public OwnerCardPurchaseQuoteResult setGiftHoldId(Integer value) { this.giftHoldId = value; return this; }
public Boolean isFullyCoveredByGiftCard() { return fullyCoveredByGiftCard; }
public OwnerCardPurchaseQuoteResult setFullyCoveredByGiftCard(Boolean value) { this.fullyCoveredByGiftCard = value; return this; }
public Boolean isRequiresCardMandate() { return requiresCardMandate; }
public OwnerCardPurchaseQuoteResult setRequiresCardMandate(Boolean value) { this.requiresCardMandate = value; return this; }
public String getGiftRejectedReason() { return giftRejectedReason; }
public OwnerCardPurchaseQuoteResult setGiftRejectedReason(String value) { this.giftRejectedReason = value; return this; }
public LocalizedMessage getGiftMessage() { return giftMessage; }
public OwnerCardPurchaseQuoteResult setGiftMessage(LocalizedMessage value) { this.giftMessage = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OwnerCardPurchaseQuoteResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerCardPurchaseQuoteResult setMessage(String value) { this.message = value; return this; }
}
public static class LocalizedMessage
{
public String is = null;
public String en = null;
public String getIs() { return is; }
public LocalizedMessage setIs(String value) { this.is = value; return this; }
public String getEn() { return en; }
public LocalizedMessage setEn(String value) { this.en = value; return this; }
}
}
Java OwnerCardPurchaseQuoteRequest 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 /OwnerCards/Purchase/Quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardPurchaseQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<GiftCardCode>String</GiftCardCode>
<IdempotencyKey>String</IdempotencyKey>
<IsRecurring>false</IsRecurring>
<OwnerCardTypeId>0</OwnerCardTypeId>
</OwnerCardPurchaseQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardPurchaseQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Currency>String</Currency>
<FullyCoveredByGiftCard>false</FullyCoveredByGiftCard>
<GiftAppliedMinor>0</GiftAppliedMinor>
<GiftHoldId>0</GiftHoldId>
<GiftMessage>
<En>String</En>
<Is>String</Is>
</GiftMessage>
<GiftRejectedReason>String</GiftRejectedReason>
<Message>String</Message>
<OwnerCardTypeId>0</OwnerCardTypeId>
<OwnerId>0</OwnerId>
<PriceMinor>0</PriceMinor>
<RemainingMinor>0</RemainingMinor>
<RequiresCardMandate>false</RequiresCardMandate>
<StatusCode>0</StatusCode>
</OwnerCardPurchaseQuoteResult>