Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
All Verbs | /ksiCards/Card/Delete | ||
---|---|---|---|
All Verbs | /ksiCards/Card/Delete/{Id} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class KsiCardsDeleteCardRequest
{
public Integer id = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public Integer getId() { return id; }
public KsiCardsDeleteCardRequest setId(Integer value) { this.id = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public KsiCardsDeleteCardRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public KsiCardsDeleteCardRequest setSignature(RequestSignature value) { this.signature = value; return this; }
}
public static class RequestSignature
{
public String systemId = null;
public String systemSecret = null;
public String signature = null;
public String getSystemId() { return systemId; }
public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
public String getSystemSecret() { return systemSecret; }
public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
public String getSignature() { return signature; }
public RequestSignature setSignature(String value) { this.signature = value; return this; }
}
public static class KsiPaymentCardsResult
{
public ArrayList<BorgunSavedCards> cards = null;
public ArrayList<KsiCards> ksiCards = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<BorgunSavedCards> getCards() { return cards; }
public KsiPaymentCardsResult setCards(ArrayList<BorgunSavedCards> value) { this.cards = value; return this; }
public ArrayList<KsiCards> getKsiCards() { return ksiCards; }
public KsiPaymentCardsResult setKsiCards(ArrayList<KsiCards> value) { this.ksiCards = value; return this; }
public Integer getStatusCode() { return statusCode; }
public KsiPaymentCardsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public KsiPaymentCardsResult setMessage(String value) { this.message = value; return this; }
}
public static class BorgunSavedCards
{
public Integer id = null;
public Date creationDate = null;
public Date lastTokenDate = null;
public Boolean isDebit = null;
public String phoneVerificationNumber = null;
public String deviceId = null;
public String virtualCardNumber = null;
public String panLastFour = null;
public String expYear = null;
public String expMonth = null;
public String token = null;
public String cardType = null;
public Boolean deletedByUser = null;
public Boolean deletedFromOrigin = null;
public Date dateDeletedByUser = null;
public Date dateDeletedFromOrigin = null;
public Boolean isDeleted = null;
public Date dateDeletedBySystem = null;
public Boolean deletedBySystem = null;
public Integer getId() { return id; }
public BorgunSavedCards setId(Integer value) { this.id = value; return this; }
public Date getCreationDate() { return creationDate; }
public BorgunSavedCards setCreationDate(Date value) { this.creationDate = value; return this; }
public Date getLastTokenDate() { return lastTokenDate; }
public BorgunSavedCards setLastTokenDate(Date value) { this.lastTokenDate = value; return this; }
public Boolean getIsDebit() { return isDebit; }
public BorgunSavedCards setIsDebit(Boolean value) { this.isDebit = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public BorgunSavedCards setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public BorgunSavedCards setDeviceId(String value) { this.deviceId = value; return this; }
public String getVirtualCardNumber() { return virtualCardNumber; }
public BorgunSavedCards setVirtualCardNumber(String value) { this.virtualCardNumber = value; return this; }
public String getPanLastFour() { return panLastFour; }
public BorgunSavedCards setPanLastFour(String value) { this.panLastFour = value; return this; }
public String getExpYear() { return expYear; }
public BorgunSavedCards setExpYear(String value) { this.expYear = value; return this; }
public String getExpMonth() { return expMonth; }
public BorgunSavedCards setExpMonth(String value) { this.expMonth = value; return this; }
public String getToken() { return token; }
public BorgunSavedCards setToken(String value) { this.token = value; return this; }
public String getCardType() { return cardType; }
public BorgunSavedCards setCardType(String value) { this.cardType = value; return this; }
public Boolean isDeletedByUser() { return deletedByUser; }
public BorgunSavedCards setDeletedByUser(Boolean value) { this.deletedByUser = value; return this; }
public Boolean isDeletedFromOrigin() { return deletedFromOrigin; }
public BorgunSavedCards setDeletedFromOrigin(Boolean value) { this.deletedFromOrigin = value; return this; }
public Date getDateDeletedByUser() { return dateDeletedByUser; }
public BorgunSavedCards setDateDeletedByUser(Date value) { this.dateDeletedByUser = value; return this; }
public Date getDateDeletedFromOrigin() { return dateDeletedFromOrigin; }
public BorgunSavedCards setDateDeletedFromOrigin(Date value) { this.dateDeletedFromOrigin = value; return this; }
public Boolean getIsDeleted() { return isDeleted; }
public BorgunSavedCards setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
public Date getDateDeletedBySystem() { return dateDeletedBySystem; }
public BorgunSavedCards setDateDeletedBySystem(Date value) { this.dateDeletedBySystem = value; return this; }
public Boolean isDeletedBySystem() { return deletedBySystem; }
public BorgunSavedCards setDeletedBySystem(Boolean value) { this.deletedBySystem = value; return this; }
}
public static class KsiCards
{
public Integer id = null;
public Date creationDate = null;
public String phoneFullVerificationNumber = null;
public String deviceId = null;
public String ksiCardTypeId = null;
public String ksiClubId = null;
public String holderName = null;
public String canTransferToPhoneFullNumber = null;
public String canTransferToNName = null;
public String expYear = null;
public String expMonth = null;
public Integer getId() { return id; }
public KsiCards setId(Integer value) { this.id = value; return this; }
public Date getCreationDate() { return creationDate; }
public KsiCards setCreationDate(Date value) { this.creationDate = value; return this; }
public String getPhoneFullVerificationNumber() { return phoneFullVerificationNumber; }
public KsiCards setPhoneFullVerificationNumber(String value) { this.phoneFullVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public KsiCards setDeviceId(String value) { this.deviceId = value; return this; }
public String getKsiCardTypeId() { return ksiCardTypeId; }
public KsiCards setKsiCardTypeId(String value) { this.ksiCardTypeId = value; return this; }
public String getKsiClubId() { return ksiClubId; }
public KsiCards setKsiClubId(String value) { this.ksiClubId = value; return this; }
public String getHolderName() { return holderName; }
public KsiCards setHolderName(String value) { this.holderName = value; return this; }
public String getCanTransferToPhoneFullNumber() { return canTransferToPhoneFullNumber; }
public KsiCards setCanTransferToPhoneFullNumber(String value) { this.canTransferToPhoneFullNumber = value; return this; }
public String getCanTransferToNName() { return canTransferToNName; }
public KsiCards setCanTransferToNName(String value) { this.canTransferToNName = value; return this; }
public String getExpYear() { return expYear; }
public KsiCards setExpYear(String value) { this.expYear = value; return this; }
public String getExpMonth() { return expMonth; }
public KsiCards setExpMonth(String value) { this.expMonth = value; return this; }
}
}
Java KsiCardsDeleteCardRequest 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 /ksiCards/Card/Delete HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<KsiCardsDeleteCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Id>0</Id>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</KsiCardsDeleteCardRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <KsiPaymentCardsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:BorgunSavedCards> <d2p1:CardType>String</d2p1:CardType> <d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate> <d2p1:DateDeletedBySystem>0001-01-01T00:00:00</d2p1:DateDeletedBySystem> <d2p1:DateDeletedByUser>0001-01-01T00:00:00</d2p1:DateDeletedByUser> <d2p1:DateDeletedFromOrigin>0001-01-01T00:00:00</d2p1:DateDeletedFromOrigin> <d2p1:DeletedBySystem>false</d2p1:DeletedBySystem> <d2p1:DeletedByUser>false</d2p1:DeletedByUser> <d2p1:DeletedFromOrigin>false</d2p1:DeletedFromOrigin> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:ExpMonth>String</d2p1:ExpMonth> <d2p1:ExpYear>String</d2p1:ExpYear> <d2p1:Id>0</d2p1:Id> <d2p1:IsDeleted>false</d2p1:IsDeleted> <d2p1:LastTokenDate>0001-01-01T00:00:00</d2p1:LastTokenDate> <d2p1:PanLastFour>String</d2p1:PanLastFour> <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber> <d2p1:Token>String</d2p1:Token> <d2p1:VirtualCardNumber>String</d2p1:VirtualCardNumber> <d2p1:isDebit>false</d2p1:isDebit> </d2p1:BorgunSavedCards> </Cards> <KsiCards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:KsiCards> <d2p1:CanTransferToNName>String</d2p1:CanTransferToNName> <d2p1:CanTransferToPhoneFullNumber>String</d2p1:CanTransferToPhoneFullNumber> <d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:ExpMonth>String</d2p1:ExpMonth> <d2p1:ExpYear>String</d2p1:ExpYear> <d2p1:HolderName>String</d2p1:HolderName> <d2p1:Id>0</d2p1:Id> <d2p1:KsiCardTypeId>String</d2p1:KsiCardTypeId> <d2p1:KsiClubId>String</d2p1:KsiClubId> <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber> </d2p1:KsiCards> </KsiCards> <Message>String</Message> <StatusCode>0</StatusCode> </KsiPaymentCardsResult>