Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /OwnerCardType |
---|
import Foundation
import ServiceStack
public class OwnerCardTypeCreateRequest : Codable
{
public var item:OwnerCardType?
required public init(){}
}
public class OwnerCardType : Codable
{
public var id:Int?
public var ownerId:Int?
public var maxTickets:Int?
public var timeStampCreatedUTC:Date?
public var timeStampLastChangedUTC:Date?
public var saleStartDateUTC:Date?
public var saleEndDateUTC:Date?
public var validStartDateForNewCardsUTC:Date?
public var validEndDateForNewCardsUTC:Date?
public var hasStoreCredit:Bool?
public var isActive:Bool?
public var onlyForTeamUse:Bool?
public var price:Double?
public var initialStoreCredit:Double?
public var Description:String?
public var name:String?
public var imageUrl:String?
public var currency:String?
public var maxTicketsPerEvent:Int?
public var backgroundImageUrl:String?
public var validForConnectedOwners:Bool?
public var superOwnerId:Int?
required public init(){}
}
public class OwnerCardTypeResult : Codable
{
public var item:OwnerCardType?
public var statusCode:Int?
public var message:String?
required public init(){}
}
Swift OwnerCardTypeCreateRequest 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 /OwnerCardType HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardTypeCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:BackgroundImageUrl>String</d2p1:BackgroundImageUrl>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:Description>String</d2p1:Description>
<d2p1:HasStoreCredit>false</d2p1:HasStoreCredit>
<d2p1:ID>0</d2p1:ID>
<d2p1:ImageUrl>String</d2p1:ImageUrl>
<d2p1:InitialStoreCredit>0</d2p1:InitialStoreCredit>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:MaxTickets>0</d2p1:MaxTickets>
<d2p1:MaxTicketsPerEvent>0</d2p1:MaxTicketsPerEvent>
<d2p1:Name>String</d2p1:Name>
<d2p1:OnlyForTeamUse>false</d2p1:OnlyForTeamUse>
<d2p1:OwnerId>0</d2p1:OwnerId>
<d2p1:Price>0</d2p1:Price>
<d2p1:SaleEndDateUTC>0001-01-01T00:00:00</d2p1:SaleEndDateUTC>
<d2p1:SaleStartDateUTC>0001-01-01T00:00:00</d2p1:SaleStartDateUTC>
<d2p1:SuperOwnerId>0</d2p1:SuperOwnerId>
<d2p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d2p1:TimeStampCreatedUTC>
<d2p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d2p1:TimeStampLastChangedUTC>
<d2p1:ValidEndDateForNewCardsUTC>0001-01-01T00:00:00</d2p1:ValidEndDateForNewCardsUTC>
<d2p1:ValidForConnectedOwners>false</d2p1:ValidForConnectedOwners>
<d2p1:ValidStartDateForNewCardsUTC>0001-01-01T00:00:00</d2p1:ValidStartDateForNewCardsUTC>
</Item>
</OwnerCardTypeCreateRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerCardTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:BackgroundImageUrl>String</d2p1:BackgroundImageUrl> <d2p1:Currency>String</d2p1:Currency> <d2p1:Description>String</d2p1:Description> <d2p1:HasStoreCredit>false</d2p1:HasStoreCredit> <d2p1:ID>0</d2p1:ID> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:InitialStoreCredit>0</d2p1:InitialStoreCredit> <d2p1:IsActive>false</d2p1:IsActive> <d2p1:MaxTickets>0</d2p1:MaxTickets> <d2p1:MaxTicketsPerEvent>0</d2p1:MaxTicketsPerEvent> <d2p1:Name>String</d2p1:Name> <d2p1:OnlyForTeamUse>false</d2p1:OnlyForTeamUse> <d2p1:OwnerId>0</d2p1:OwnerId> <d2p1:Price>0</d2p1:Price> <d2p1:SaleEndDateUTC>0001-01-01T00:00:00</d2p1:SaleEndDateUTC> <d2p1:SaleStartDateUTC>0001-01-01T00:00:00</d2p1:SaleStartDateUTC> <d2p1:SuperOwnerId>0</d2p1:SuperOwnerId> <d2p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d2p1:TimeStampCreatedUTC> <d2p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d2p1:TimeStampLastChangedUTC> <d2p1:ValidEndDateForNewCardsUTC>0001-01-01T00:00:00</d2p1:ValidEndDateForNewCardsUTC> <d2p1:ValidForConnectedOwners>false</d2p1:ValidForConnectedOwners> <d2p1:ValidStartDateForNewCardsUTC>0001-01-01T00:00:00</d2p1:ValidStartDateForNewCardsUTC> </Item> <Message>String</Message> <StatusCode>0</StatusCode> </OwnerCardTypeResult>