Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, ReadData |
All Verbs | /ksiCards/Card |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class KsiCardsSingleCardRequest
{
public KsiCards card = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public KsiCards getCard() { return card; }
public KsiCardsSingleCardRequest setCard(KsiCards value) { this.card = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public KsiCardsSingleCardRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public KsiCardsSingleCardRequest setSignature(RequestSignature value) { this.signature = 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; }
}
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; }
}
}
Java KsiCardsSingleCardRequest 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 /ksiCards/Card HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"card":{"id":0,"creationDate":"0001-01-01T00:00:00.0000000","phoneFullVerificationNumber":"String","deviceId":"String","ksiCardTypeId":"String","ksiClubId":"String","holderName":"String","canTransferToPhoneFullNumber":"String","canTransferToNName":"String","expYear":"String","expMonth":"String"},"requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"cards":[{"id":0,"creationDate":"0001-01-01T00:00:00.0000000","lastTokenDate":"0001-01-01T00:00:00.0000000","isDebit":false,"phoneVerificationNumber":"String","deviceId":"String","virtualCardNumber":"String","panLastFour":"String","expYear":"String","expMonth":"String","token":"String","cardType":"String","deletedByUser":false,"deletedFromOrigin":false,"dateDeletedByUser":"0001-01-01T00:00:00.0000000","dateDeletedFromOrigin":"0001-01-01T00:00:00.0000000","isDeleted":false,"dateDeletedBySystem":"0001-01-01T00:00:00.0000000","deletedBySystem":false}],"ksiCards":[{"id":0,"creationDate":"0001-01-01T00:00:00.0000000","phoneFullVerificationNumber":"String","deviceId":"String","ksiCardTypeId":"String","ksiClubId":"String","holderName":"String","canTransferToPhoneFullNumber":"String","canTransferToNName":"String","expYear":"String","expMonth":"String"}],"statusCode":0,"message":"String"}