public class CardToken extends PaymentsObject
authentication
Modifier | Constructor and Description |
---|---|
protected |
CardToken() |
protected |
CardToken(java.util.Map m) |
protected |
CardToken(PaymentsObject o) |
Modifier and Type | Method and Description |
---|---|
static CardToken |
create(Authentication auth,
java.util.Map map)
Creates an
CardToken object |
static CardToken |
create(java.util.Map map)
Creates an
CardToken object using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively. |
static CardToken |
create(java.lang.String publicKey,
java.lang.String privateKey,
java.util.Map map)
Deprecated.
As of release 1.1, replaced by
create(Authentication, Map) |
static CardToken |
find(Authentication auth,
java.lang.String id)
Retrieve a
CardToken object. |
static CardToken |
find(java.lang.String id)
Retrieve a
CardToken object using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively. |
static CardToken |
find(java.lang.String publicKey,
java.lang.String privateKey,
java.lang.String id)
Deprecated.
As of release 1.1, replaced by
find(Authentication, String) |
protected java.lang.String |
getObjectType() |
CardToken |
update()
Updates an
CardToken object. |
createObject, deleteObject, findObject, getAuthentication, listObjects, listObjects, updateObject
containsKey, get, normalize, put, remove, set
clear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, size
protected CardToken()
protected CardToken(PaymentsObject o)
protected CardToken(java.util.Map m)
protected java.lang.String getObjectType()
getObjectType
in class PaymentsObject
public static CardToken create(java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
CardToken
object using the static properties PaymentsApi.PUBLIC_KEY
and
PaymentsApi.PRIVATE_KEY
as the default public and private API keys respectively.map
- a map of parameters, valid keys and types:java.lang.Boolean authenticatePayer
java.lang.String callback
payments.command.api.APICardCommand card
java.lang.String card.addressCity
java.lang.String card.addressCountry
java.lang.String card.addressLine1
java.lang.String card.addressLine2
java.lang.String card.addressState
java.lang.String card.addressZip
java.lang.String card.cvc
java.lang.Integer card.expMonth
java.lang.Integer card.expYear
java.lang.String card.name
java.lang.String card.number
java.lang.String key
payments.command.api.APISecure3DRequestCommand secure3DRequestData
java.lang.Long secure3DRequestData.amount
java.lang.Boolean secure3DRequestData.authOnly
java.lang.String secure3DRequestData.currency
java.lang.String secure3DRequestData.description
java.lang.String secure3DRequestData.id
java.lang.String source
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
@Deprecated public static CardToken create(java.lang.String publicKey, java.lang.String privateKey, java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
create(Authentication, Map)
CardToken
objectpublicKey
- Public API key. If null, the value of static PaymentsApi.PUBLIC_KEY
will be usedprivateKey
- Private API key. If null, the value of static PaymentsApi.PRIVATE_KEY
will be usedmap
- a map of parameters, valid keys and types:java.lang.Boolean authenticatePayer
java.lang.String callback
payments.command.api.APICardCommand card
java.lang.String card.addressCity
java.lang.String card.addressCountry
java.lang.String card.addressLine1
java.lang.String card.addressLine2
java.lang.String card.addressState
java.lang.String card.addressZip
java.lang.String card.cvc
java.lang.Integer card.expMonth
java.lang.Integer card.expYear
java.lang.String card.name
java.lang.String card.number
java.lang.String key
payments.command.api.APISecure3DRequestCommand secure3DRequestData
java.lang.Long secure3DRequestData.amount
java.lang.Boolean secure3DRequestData.authOnly
java.lang.String secure3DRequestData.currency
java.lang.String secure3DRequestData.description
java.lang.String secure3DRequestData.id
java.lang.String source
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
public static CardToken create(Authentication auth, java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
CardToken
objectauth
- Authentication object representing overrides for PaymentsApi.PRIVATE_KEY
and PaymentsApi.PUBLIC_KEY
and/or passing an access token in for operations using OAuth.privateKey
- Private API key. If null, the value of static PaymentsApi.PRIVATE_KEY
will be usedmap
- a map of parameters, valid keys and types: java.lang.Boolean authenticatePayer
java.lang.String callback
payments.command.api.APICardCommand card
java.lang.String card.addressCity
java.lang.String card.addressCountry
java.lang.String card.addressLine1
java.lang.String card.addressLine2
java.lang.String card.addressState
java.lang.String card.addressZip
java.lang.String card.cvc
java.lang.Integer card.expMonth
java.lang.Integer card.expYear
java.lang.String card.name
java.lang.String card.number
java.lang.String key
payments.command.api.APISecure3DRequestCommand secure3DRequestData
java.lang.Long secure3DRequestData.amount
java.lang.Boolean secure3DRequestData.authOnly
java.lang.String secure3DRequestData.currency
java.lang.String secure3DRequestData.description
java.lang.String secure3DRequestData.id
java.lang.String source
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
public static CardToken find(java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
CardToken
object using the static properties PaymentsApi.PUBLIC_KEY
and
PaymentsApi.PRIVATE_KEY
as the default public and private API keys respectively.id
- the id of the CardToken object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
@Deprecated public static CardToken find(java.lang.String publicKey, java.lang.String privateKey, java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
find(Authentication, String)
CardToken
object.publicKey
- Public API key. If null, the value of static PaymentsApi.PUBLIC_KEY
will be usedprivateKey
- Private API key. If null, the value of static PaymentsApi.PRIVATE_KEY
will be usedid
- the id of the CardToken
object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public static CardToken find(Authentication auth, java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
CardToken
object.auth
- Authentication object representing overrides for PaymentsApi.PRIVATE_KEY
and PaymentsApi.PUBLIC_KEY
and/or passing an access token in for operations using OAuth.id
- the id of the CardToken
object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public CardToken update() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
CardToken
object.
The properties that can be updated:
ApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException