| Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, ReadData |
| POST | /OrderOwnerCards/quote |
|---|
import Foundation
import ServiceStack
public class OwnerCardsQuoteRequest : Codable
{
public var ownerCardTypeIds:[Int] = []
public var isSubscription:Bool?
public var discountCode:String?
public var tenders:[OrderTender] = []
public var donationAmount:Int?
public var phoneVerificationNumber:String?
required public init(){}
}
public class OrderTender : Codable
{
public var kind:String?
public var code:String?
public var amountMinor:Int?
public var idempotencyKey:String?
public var holdId:Int?
public var appliedMinor:Int?
required public init(){}
}
public class OwnerCardsQuoteResult : Codable
{
public var statusCode:Int?
public var message:String?
public var reason:String?
public var isSubscription:Bool?
public var priceTotal:Int?
public var discountAmount:Int?
public var giftCardAmount:Int?
public var donationAmount:Int?
public var transactionFee:Int?
public var chargedAmount:Int?
public var chargedAmountMinor:Int?
public var fullyCovered:Bool?
required public init(){}
}
Swift OwnerCardsQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
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: application/json
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}