TicketUserServices

<back to all web services

SaveCreditCardRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/cardTokens/saveCard
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SaveCreditCardRequest
    {
        public String pan = null;
        public String expYear = null;
        public String expMonth = null;
        public String cvc = null;
        public String phoneVerificationNumber = null;
        public String deviceId = null;
        public RequestSignature signature = null;
        
        public String getPan() { return pan; }
        public SaveCreditCardRequest setPan(String value) { this.pan = value; return this; }
        public String getExpYear() { return expYear; }
        public SaveCreditCardRequest setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public SaveCreditCardRequest setExpMonth(String value) { this.expMonth = value; return this; }
        public String getCvc() { return cvc; }
        public SaveCreditCardRequest setCvc(String value) { this.cvc = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public SaveCreditCardRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public String getDeviceId() { return deviceId; }
        public SaveCreditCardRequest setDeviceId(String value) { this.deviceId = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public SaveCreditCardRequest 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 SaveCreditCardResult
    {
        public Integer statusCode = null;
        public Boolean success = null;
        public String message = null;
        public String token = null;
        
        public Integer getStatusCode() { return statusCode; }
        public SaveCreditCardResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public Boolean isSuccess() { return success; }
        public SaveCreditCardResult setSuccess(Boolean value) { this.success = value; return this; }
        public String getMessage() { return message; }
        public SaveCreditCardResult setMessage(String value) { this.message = value; return this; }
        public String getToken() { return token; }
        public SaveCreditCardResult setToken(String value) { this.token = value; return this; }
    }

}

Java SaveCreditCardRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /cardTokens/saveCard HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"pan":"String","expYear":"String","expMonth":"String","cvc":"String","phoneVerificationNumber":"String","deviceId":"String","signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"statusCode":0,"success":false,"message":"String","token":"String"}