Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
PUT | /OwnerCardType |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OwnerCardTypeUpdateRequest
{
public OwnerCardType item = null;
public OwnerCardType getItem() { return item; }
public OwnerCardTypeUpdateRequest setItem(OwnerCardType value) { this.item = value; return this; }
}
public static class OwnerCardType
{
public Integer id = null;
public Integer ownerId = null;
public Integer maxTickets = null;
public Date timeStampCreatedUTC = null;
public Date timeStampLastChangedUTC = null;
public Date saleStartDateUTC = null;
public Date saleEndDateUTC = null;
public Date validStartDateForNewCardsUTC = null;
public Date validEndDateForNewCardsUTC = null;
public Boolean hasStoreCredit = null;
public Boolean isActive = null;
public Boolean onlyForTeamUse = null;
public BigDecimal price = null;
public BigDecimal initialStoreCredit = null;
public String description = null;
public String name = null;
public String imageUrl = null;
public String currency = null;
public Integer maxTicketsPerEvent = null;
public String backgroundImageUrl = null;
public Boolean validForConnectedOwners = null;
public Integer superOwnerId = null;
public Integer getId() { return id; }
public OwnerCardType setId(Integer value) { this.id = value; return this; }
public Integer getOwnerId() { return ownerId; }
public OwnerCardType setOwnerId(Integer value) { this.ownerId = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public OwnerCardType setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public Date getTimeStampCreatedUTC() { return timeStampCreatedUTC; }
public OwnerCardType setTimeStampCreatedUTC(Date value) { this.timeStampCreatedUTC = value; return this; }
public Date getTimeStampLastChangedUTC() { return timeStampLastChangedUTC; }
public OwnerCardType setTimeStampLastChangedUTC(Date value) { this.timeStampLastChangedUTC = value; return this; }
public Date getSaleStartDateUTC() { return saleStartDateUTC; }
public OwnerCardType setSaleStartDateUTC(Date value) { this.saleStartDateUTC = value; return this; }
public Date getSaleEndDateUTC() { return saleEndDateUTC; }
public OwnerCardType setSaleEndDateUTC(Date value) { this.saleEndDateUTC = value; return this; }
public Date getValidStartDateForNewCardsUTC() { return validStartDateForNewCardsUTC; }
public OwnerCardType setValidStartDateForNewCardsUTC(Date value) { this.validStartDateForNewCardsUTC = value; return this; }
public Date getValidEndDateForNewCardsUTC() { return validEndDateForNewCardsUTC; }
public OwnerCardType setValidEndDateForNewCardsUTC(Date value) { this.validEndDateForNewCardsUTC = value; return this; }
public Boolean isHasStoreCredit() { return hasStoreCredit; }
public OwnerCardType setHasStoreCredit(Boolean value) { this.hasStoreCredit = value; return this; }
public Boolean getIsActive() { return isActive; }
public OwnerCardType setIsActive(Boolean value) { this.isActive = value; return this; }
public Boolean isOnlyForTeamUse() { return onlyForTeamUse; }
public OwnerCardType setOnlyForTeamUse(Boolean value) { this.onlyForTeamUse = value; return this; }
public BigDecimal getPrice() { return price; }
public OwnerCardType setPrice(BigDecimal value) { this.price = value; return this; }
public BigDecimal getInitialStoreCredit() { return initialStoreCredit; }
public OwnerCardType setInitialStoreCredit(BigDecimal value) { this.initialStoreCredit = value; return this; }
public String getDescription() { return description; }
public OwnerCardType setDescription(String value) { this.description = value; return this; }
public String getName() { return name; }
public OwnerCardType setName(String value) { this.name = value; return this; }
public String getImageUrl() { return imageUrl; }
public OwnerCardType setImageUrl(String value) { this.imageUrl = value; return this; }
public String getCurrency() { return currency; }
public OwnerCardType setCurrency(String value) { this.currency = value; return this; }
public Integer getMaxTicketsPerEvent() { return maxTicketsPerEvent; }
public OwnerCardType setMaxTicketsPerEvent(Integer value) { this.maxTicketsPerEvent = value; return this; }
public String getBackgroundImageUrl() { return backgroundImageUrl; }
public OwnerCardType setBackgroundImageUrl(String value) { this.backgroundImageUrl = value; return this; }
public Boolean isValidForConnectedOwners() { return validForConnectedOwners; }
public OwnerCardType setValidForConnectedOwners(Boolean value) { this.validForConnectedOwners = value; return this; }
public Integer getSuperOwnerId() { return superOwnerId; }
public OwnerCardType setSuperOwnerId(Integer value) { this.superOwnerId = value; return this; }
}
public static class OwnerCardTypeResult
{
public OwnerCardType item = null;
public Integer statusCode = null;
public String message = null;
public OwnerCardType getItem() { return item; }
public OwnerCardTypeResult setItem(OwnerCardType value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OwnerCardTypeResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OwnerCardTypeResult setMessage(String value) { this.message = value; return this; }
}
}
Java OwnerCardTypeUpdateRequest 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.
PUT /OwnerCardType HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardTypeUpdateRequest 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>
</OwnerCardTypeUpdateRequest>
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>