public class InvoiceItem extends PaymentsObject
authentication
Modifier | Constructor and Description |
---|---|
protected |
InvoiceItem() |
protected |
InvoiceItem(java.util.Map m) |
protected |
InvoiceItem(PaymentsObject o) |
Modifier and Type | Method and Description |
---|---|
static InvoiceItem |
create(Authentication auth,
java.util.Map map)
Creates an
InvoiceItem object |
static InvoiceItem |
create(java.util.Map map)
Creates an
InvoiceItem object using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively. |
static InvoiceItem |
create(java.lang.String publicKey,
java.lang.String privateKey,
java.util.Map map)
Deprecated.
As of release 1.1, replaced by
create(Authentication, Map) |
InvoiceItem |
delete()
Deletes an
InvoiceItem object. |
static InvoiceItem |
find(Authentication auth,
java.lang.String id)
Retrieve a
InvoiceItem object. |
static InvoiceItem |
find(java.lang.String id)
Retrieve a
InvoiceItem object using the static properties PaymentsApi.PUBLIC_KEY and
PaymentsApi.PRIVATE_KEY as the default public and private API keys respectively. |
static InvoiceItem |
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() |
InvoiceItem |
update()
Updates an
InvoiceItem 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 InvoiceItem()
protected InvoiceItem(PaymentsObject o)
protected InvoiceItem(java.util.Map m)
protected java.lang.String getObjectType()
getObjectType
in class PaymentsObject
public static InvoiceItem create(java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
InvoiceItem
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 description
java.lang.String invoice
java.lang.String product
java.lang.Long quantity
java.lang.String reference
java.lang.String tax
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
@Deprecated public static InvoiceItem create(java.lang.String publicKey, java.lang.String privateKey, java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
create(Authentication, Map)
InvoiceItem
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 description
java.lang.String invoice
java.lang.String product
java.lang.Long quantity
java.lang.String reference
java.lang.String tax
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
public static InvoiceItem create(Authentication auth, java.util.Map map) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, NotAllowedException, SystemException
InvoiceItem
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 description
java.lang.String invoice
java.lang.String product
java.lang.Long quantity
java.lang.String reference
java.lang.String tax
ApiCommunicationException
AuthenticationException
InvalidRequestException
NotAllowedException
SystemException
public InvoiceItem delete() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
InvoiceItem
object.ApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public static InvoiceItem find(java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
InvoiceItem
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 InvoiceItem object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
@Deprecated public static InvoiceItem find(java.lang.String publicKey, java.lang.String privateKey, java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
find(Authentication, String)
InvoiceItem
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 InvoiceItem
object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public static InvoiceItem find(Authentication auth, java.lang.String id) throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
InvoiceItem
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 InvoiceItem
object to retrieveApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException
public InvoiceItem update() throws ApiCommunicationException, AuthenticationException, InvalidRequestException, ObjectNotFoundException, NotAllowedException, SystemException
InvoiceItem
object.
The properties that can be updated:
ApiCommunicationException
AuthenticationException
InvalidRequestException
ObjectNotFoundException
NotAllowedException
SystemException