public class Payment extends PaymentsObject
authentication
Modifier | Constructor and Description |
---|---|
protected |
Payment() |
protected |
Payment(java.util.Map m) |
protected |
Payment(PaymentsObject o) |
Modifier and Type | Method and Description |
---|---|
static Payment |
create(Authentication auth,
java.util.Map map)
Creates an
Payment object |
static Payment |
create(java.util.Map map)
Creates an
Payment object using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively. |
static Payment |
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 Payment |
find(Authentication auth,
java.lang.String id)
Retrieve a
Payment object. |
static Payment |
find(java.lang.String id)
Retrieve a
Payment object using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively. |
static Payment |
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() |
static ResourceList<Payment> |
list()
Retrieve
Payment objects using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively and the default
criteria (max 20, offset 0, default sorting and no filtering). |
static ResourceList<Payment> |
list(Authentication auth)
Retrieve
Payment objects using the default criteria (max 20, offset 0, default sorting and no filtering). |
static ResourceList<Payment> |
list(Authentication auth,
java.util.Map criteria)
Retrieve
Payment objects using the specified criteria. |
static ResourceList<Payment> |
list(java.util.Map criteria)
Retrieve
Payment objects using the specified criteria and using the static properties
PaymentsApi.PUBLIC_KEY and PaymentsApi.PRIVATE_KEY as the default public and private
API keys respectively. |
static ResourceList<Payment> |
list(java.lang.String publicKey,
java.lang.String privateKey)
Deprecated.
As of release 1.1, replaced by
list(Authentication) |
static ResourceList<Payment> |
list(java.lang.String publicKey,
java.lang.String privateKey,
java.util.Map criteria)
Deprecated.
As of release 1.1, replaced by
list(Authentication, Map) |
Payment |
update()
Updates an
Payment 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 Payment()
protected Payment(PaymentsObject o)
protected Payment(java.util.Map m)
protected java.lang.String getObjectType()
getObjectType
in class PaymentsObject
public static Payment create(java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
Payment
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.Long amount
java.lang.String authorization
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 currency
java.lang.String customer
java.lang.String description
java.lang.String invoice
java.lang.String invoiceReference
payments.command.api.APIOrderCreateCommand order
java.lang.String order.commodityCode
java.lang.String order.customer
java.lang.String order.customerEmail
java.lang.String order.customerName
java.lang.String order.customerNote
java.lang.String order.customerReference
payments.command.api.APIOrderItemCreateCommand order.items
java.lang.Long order.items.amount
java.lang.String order.items.description
java.lang.String order.items.name
java.lang.String order.items.product
java.lang.Long order.items.quantity
java.lang.String order.items.reference
java.lang.String order.items.tax
java.lang.String order.merchantNote
java.lang.String order.payment
java.lang.String order.reference
payments.command.api.APIAddressCommand order.shippingAddress
java.lang.String order.shippingAddress.city
java.lang.String order.shippingAddress.country
java.lang.String order.shippingAddress.line1
java.lang.String order.shippingAddress.line2
java.lang.String order.shippingAddress.name
java.lang.String order.shippingAddress.state
java.lang.String order.shippingAddress.zip
payments.command.api.APIAddressCommand order.shippingFromAddress
java.lang.String order.shippingFromAddress.city
java.lang.String order.shippingFromAddress.country
java.lang.String order.shippingFromAddress.line1
java.lang.String order.shippingFromAddress.line2
java.lang.String order.shippingFromAddress.name
java.lang.String order.shippingFromAddress.state
java.lang.String order.shippingFromAddress.zip
java.lang.String order.shippingName
java.lang.String order.source
java.lang.String order.status
java.lang.String reference
java.lang.String replayId
payments.command.api.APIDescriptorCommand statementDescription
java.lang.String statementDescription.name
java.lang.String statementDescription.phoneNumber
java.lang.Boolean taxExempt
java.lang.String token
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
@Deprecated public static Payment create(java.lang.String publicKey, java.lang.String privateKey, java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
create(Authentication, Map)
Payment
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.Long amount
java.lang.String authorization
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 currency
java.lang.String customer
java.lang.String description
java.lang.String invoice
java.lang.String invoiceReference
payments.command.api.APIOrderCreateCommand order
java.lang.String order.commodityCode
java.lang.String order.customer
java.lang.String order.customerEmail
java.lang.String order.customerName
java.lang.String order.customerNote
java.lang.String order.customerReference
payments.command.api.APIOrderItemCreateCommand order.items
java.lang.Long order.items.amount
java.lang.String order.items.description
java.lang.String order.items.name
java.lang.String order.items.product
java.lang.Long order.items.quantity
java.lang.String order.items.reference
java.lang.String order.items.tax
java.lang.String order.merchantNote
java.lang.String order.payment
java.lang.String order.reference
payments.command.api.APIAddressCommand order.shippingAddress
java.lang.String order.shippingAddress.city
java.lang.String order.shippingAddress.country
java.lang.String order.shippingAddress.line1
java.lang.String order.shippingAddress.line2
java.lang.String order.shippingAddress.name
java.lang.String order.shippingAddress.state
java.lang.String order.shippingAddress.zip
payments.command.api.APIAddressCommand order.shippingFromAddress
java.lang.String order.shippingFromAddress.city
java.lang.String order.shippingFromAddress.country
java.lang.String order.shippingFromAddress.line1
java.lang.String order.shippingFromAddress.line2
java.lang.String order.shippingFromAddress.name
java.lang.String order.shippingFromAddress.state
java.lang.String order.shippingFromAddress.zip
java.lang.String order.shippingName
java.lang.String order.source
java.lang.String order.status
java.lang.String reference
java.lang.String replayId
payments.command.api.APIDescriptorCommand statementDescription
java.lang.String statementDescription.name
java.lang.String statementDescription.phoneNumber
java.lang.Boolean taxExempt
java.lang.String token
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
public static Payment create(Authentication auth, java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
Payment
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.Long amount
java.lang.String authorization
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 currency
java.lang.String customer
java.lang.String description
java.lang.String invoice
java.lang.String invoiceReference
payments.command.api.APIOrderCreateCommand order
java.lang.String order.commodityCode
java.lang.String order.customer
java.lang.String order.customerEmail
java.lang.String order.customerName
java.lang.String order.customerNote
java.lang.String order.customerReference
payments.command.api.APIOrderItemCreateCommand order.items
java.lang.Long order.items.amount
java.lang.String order.items.description
java.lang.String order.items.name
java.lang.String order.items.product
java.lang.Long order.items.quantity
java.lang.String order.items.reference
java.lang.String order.items.tax
java.lang.String order.merchantNote
java.lang.String order.payment
java.lang.String order.reference
payments.command.api.APIAddressCommand order.shippingAddress
java.lang.String order.shippingAddress.city
java.lang.String order.shippingAddress.country
java.lang.String order.shippingAddress.line1
java.lang.String order.shippingAddress.line2
java.lang.String order.shippingAddress.name
java.lang.String order.shippingAddress.state
java.lang.String order.shippingAddress.zip
payments.command.api.APIAddressCommand order.shippingFromAddress
java.lang.String order.shippingFromAddress.city
java.lang.String order.shippingFromAddress.country
java.lang.String order.shippingFromAddress.line1
java.lang.String order.shippingFromAddress.line2
java.lang.String order.shippingFromAddress.name
java.lang.String order.shippingFromAddress.state
java.lang.String order.shippingFromAddress.zip
java.lang.String order.shippingName
java.lang.String order.source
java.lang.String order.status
java.lang.String reference
java.lang.String replayId
payments.command.api.APIDescriptorCommand statementDescription
java.lang.String statementDescription.name
java.lang.String statementDescription.phoneNumber
java.lang.Boolean taxExempt
java.lang.String token
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
public static ResourceList<Payment> list() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
Payment
objects using the static properties PaymentsApi.PUBLIC_KEY
and
PaymentsApi.PRIVATE_KEY
as the default public and private API keys respectively and the default
criteria (max 20, offset 0, default sorting and no filtering).ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
ResourceList
@Deprecated public static ResourceList<Payment> list(java.lang.String publicKey, java.lang.String privateKey) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
list(Authentication)
Payment
objects using the default criteria (max 20, offset 0, default sorting and no filtering).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 usedApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
ResourceList
public static ResourceList<Payment> list(Authentication auth) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
Payment
objects using the default criteria (max 20, offset 0, default sorting and no filtering).auth
- Authentication object representing overrides for PaymentsApi.PRIVATE_KEY
and PaymentsApi.PUBLIC_KEY
and/or passing an access token in for operations using OAuth.ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
ResourceList
public static ResourceList<Payment> list(java.util.Map criteria) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
Payment
objects using the specified criteria and using the static properties
PaymentsApi.PUBLIC_KEY
and PaymentsApi.PRIVATE_KEY
as the default public and private
API keys respectively.criteria
- a map of parameters; valid keys and types are:java.util.Map filter
filter.id | Filter by the payment Id |
filter.replayId | Filter by the compoundReplayId |
filter.last4 | Filter by the card number (last 4 digits) |
filter.amount | Filter by the payment amount (in the smallest unit of your currency) |
filter.text | Filter by the description of the payment |
filter.amountMin & filter.amountMax | The filter amountMin must be used with amountMax to find payments with payments amounts between the min and max figures |
filter.dateCreatedMin* | Filter by the minimum created date you are searching for - Date in UTC millis |
filter.dateCreatedMax* | Filter by the maximum created date you are searching for - Date in UTC millis |
filter.deposit | Filter by the deposit id connected to the payment |
filter.customer | Filter using the Id of the customer to find the payments for that customer |
filter.status | Filter by the payment status text |
filter.reference | Filter by the payment reference text |
filter.authCode | Filter by the payment authorization code (Not the authorization ID) |
filter.q | You can use this to filter by the Id, the authCode or the amount of the payment |
java.lang.Integer max
java.lang.Integer offset
java.util.Map sorting
asc
for ascending or desc
for descending). Sortable properties are: dateCreated
createdBy
amount
id
description
paymentDate
.ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
ResourceList
public static ResourceList<Payment> list(java.lang.String publicKey, java.lang.String privateKey, java.util.Map criteria) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
list(Authentication, Map)
Payment
objects using the specified criteria.criteria
- a map of parameters; valid keys and types are:java.util.Map filter
filter.id | Filter by the payment Id |
filter.replayId | Filter by the compoundReplayId |
filter.last4 | Filter by the card number (last 4 digits) |
filter.amount | Filter by the payment amount (in the smallest unit of your currency) |
filter.text | Filter by the description of the payment |
filter.amountMin & filter.amountMax | The filter amountMin must be used with amountMax to find payments with payments amounts between the min and max figures |
filter.dateCreatedMin* | Filter by the minimum created date you are searching for - Date in UTC millis |
filter.dateCreatedMax* | Filter by the maximum created date you are searching for - Date in UTC millis |
filter.deposit | Filter by the deposit id connected to the payment |
filter.customer | Filter using the Id of the customer to find the payments for that customer |
filter.status | Filter by the payment status text |
filter.reference | Filter by the payment reference text |
filter.authCode | Filter by the payment authorization code (Not the authorization ID) |
filter.q | You can use this to filter by the Id, the authCode or the amount of the payment |
java.lang.Integer max
java.lang.Integer offset
java.util.Map sorting
asc
for ascending or desc
for descending). Sortable properties are: dateCreated
createdBy
amount
id
description
paymentDate
.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 usedApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
ResourceList
public static ResourceList<Payment> list(Authentication auth, java.util.Map criteria) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
Payment
objects using the specified criteria.auth
- Authentication object representing overrides for PaymentsApi.PRIVATE_KEY
and PaymentsApi.PUBLIC_KEY
and/or passing an access token in for operations using OAuth.criteria
- a map of parameters; valid keys and types are: java.util.Map filter
filter.id | Filter by the payment Id |
filter.replayId | Filter by the compoundReplayId |
filter.last4 | Filter by the card number (last 4 digits) |
filter.amount | Filter by the payment amount (in the smallest unit of your currency) |
filter.text | Filter by the description of the payment |
filter.amountMin & filter.amountMax | The filter amountMin must be used with amountMax to find payments with payments amounts between the min and max figures |
filter.dateCreatedMin* | Filter by the minimum created date you are searching for - Date in UTC millis |
filter.dateCreatedMax* | Filter by the maximum created date you are searching for - Date in UTC millis |
filter.deposit | Filter by the deposit id connected to the payment |
filter.customer | Filter using the Id of the customer to find the payments for that customer |
filter.status | Filter by the payment status text |
filter.reference | Filter by the payment reference text |
filter.authCode | Filter by the payment authorization code (Not the authorization ID) |
filter.q | You can use this to filter by the Id, the authCode or the amount of the payment |
java.lang.Integer max
java.lang.Integer offset
java.util.Map sorting
asc
for ascending or desc
for descending). Sortable properties are: dateCreated
createdBy
amount
id
description
paymentDate
.ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
ResourceList
public static Payment find(java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
Payment
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 Payment object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
@Deprecated public static Payment find(java.lang.String publicKey, java.lang.String privateKey, java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
find(Authentication, String)
Payment
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 Payment
object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public static Payment find(Authentication auth, java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
Payment
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 Payment
object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public Payment update() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
Payment
object.
The properties that can be updated:
ApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException