TicketUserServices

<back to all web services

OwnerCardsQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, ReadData
The following routes are available for this service:
POST/OrderOwnerCards/quote
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class OwnerCardsQuoteRequest
    {
        public ArrayList<Integer> ownerCardTypeIds = null;
        public Boolean isSubscription = null;
        public String discountCode = null;
        public ArrayList<OrderTender> tenders = null;
        public Integer donationAmount = null;
        public String phoneVerificationNumber = null;
        
        public ArrayList<Integer> getOwnerCardTypeIds() { return ownerCardTypeIds; }
        public OwnerCardsQuoteRequest setOwnerCardTypeIds(ArrayList<Integer> value) { this.ownerCardTypeIds = value; return this; }
        public Boolean getIsSubscription() { return isSubscription; }
        public OwnerCardsQuoteRequest setIsSubscription(Boolean value) { this.isSubscription = value; return this; }
        public String getDiscountCode() { return discountCode; }
        public OwnerCardsQuoteRequest setDiscountCode(String value) { this.discountCode = value; return this; }
        public ArrayList<OrderTender> getTenders() { return tenders; }
        public OwnerCardsQuoteRequest setTenders(ArrayList<OrderTender> value) { this.tenders = value; return this; }
        public Integer getDonationAmount() { return donationAmount; }
        public OwnerCardsQuoteRequest setDonationAmount(Integer value) { this.donationAmount = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public OwnerCardsQuoteRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
    }

    public static class OrderTender
    {
        public String kind = null;
        public String code = null;
        public Integer amountMinor = null;
        public String idempotencyKey = null;
        public Integer holdId = null;
        public Integer appliedMinor = null;
        
        public String getKind() { return kind; }
        public OrderTender setKind(String value) { this.kind = value; return this; }
        public String getCode() { return code; }
        public OrderTender setCode(String value) { this.code = value; return this; }
        public Integer getAmountMinor() { return amountMinor; }
        public OrderTender setAmountMinor(Integer value) { this.amountMinor = value; return this; }
        public String getIdempotencyKey() { return idempotencyKey; }
        public OrderTender setIdempotencyKey(String value) { this.idempotencyKey = value; return this; }
        public Integer getHoldId() { return holdId; }
        public OrderTender setHoldId(Integer value) { this.holdId = value; return this; }
        public Integer getAppliedMinor() { return appliedMinor; }
        public OrderTender setAppliedMinor(Integer value) { this.appliedMinor = value; return this; }
    }

    public static class OwnerCardsQuoteResult
    {
        public Integer statusCode = null;
        public String message = null;
        public String reason = null;
        public Boolean isSubscription = null;
        public Integer priceTotal = null;
        public Integer discountAmount = null;
        public Integer giftCardAmount = null;
        public Integer donationAmount = null;
        public Integer transactionFee = null;
        public Integer chargedAmount = null;
        public Integer chargedAmountMinor = null;
        public Boolean fullyCovered = null;
        
        public Integer getStatusCode() { return statusCode; }
        public OwnerCardsQuoteResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public OwnerCardsQuoteResult setMessage(String value) { this.message = value; return this; }
        public String getReason() { return reason; }
        public OwnerCardsQuoteResult setReason(String value) { this.reason = value; return this; }
        public Boolean getIsSubscription() { return isSubscription; }
        public OwnerCardsQuoteResult setIsSubscription(Boolean value) { this.isSubscription = value; return this; }
        public Integer getPriceTotal() { return priceTotal; }
        public OwnerCardsQuoteResult setPriceTotal(Integer value) { this.priceTotal = value; return this; }
        public Integer getDiscountAmount() { return discountAmount; }
        public OwnerCardsQuoteResult setDiscountAmount(Integer value) { this.discountAmount = value; return this; }
        public Integer getGiftCardAmount() { return giftCardAmount; }
        public OwnerCardsQuoteResult setGiftCardAmount(Integer value) { this.giftCardAmount = value; return this; }
        public Integer getDonationAmount() { return donationAmount; }
        public OwnerCardsQuoteResult setDonationAmount(Integer value) { this.donationAmount = value; return this; }
        public Integer getTransactionFee() { return transactionFee; }
        public OwnerCardsQuoteResult setTransactionFee(Integer value) { this.transactionFee = value; return this; }
        public Integer getChargedAmount() { return chargedAmount; }
        public OwnerCardsQuoteResult setChargedAmount(Integer value) { this.chargedAmount = value; return this; }
        public Integer getChargedAmountMinor() { return chargedAmountMinor; }
        public OwnerCardsQuoteResult setChargedAmountMinor(Integer value) { this.chargedAmountMinor = value; return this; }
        public Boolean isFullyCovered() { return fullyCovered; }
        public OwnerCardsQuoteResult setFullyCovered(Boolean value) { this.fullyCovered = value; return this; }
    }

}

Java OwnerCardsQuoteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /OrderOwnerCards/quote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ownerCardTypeIds: 
	[
		0
	],
	isSubscription: False,
	discountCode: String,
	tenders: 
	[
		{
			kind: String,
			code: String,
			amountMinor: 0,
			idempotencyKey: String,
			holdId: 0,
			appliedMinor: 0
		}
	],
	donationAmount: 0,
	phoneVerificationNumber: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	statusCode: 0,
	message: String,
	reason: String,
	isSubscription: False,
	priceTotal: 0,
	discountAmount: 0,
	giftCardAmount: 0,
	donationAmount: 0,
	transactionFee: 0,
	chargedAmount: 0,
	chargedAmountMinor: 0,
	fullyCovered: False
}