public class CustomerBalanceTransaction extends ApiResource implements HasId, MetadataStore<CustomerBalanceTransaction>
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
CustomerBalanceTransaction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
The amount of the transaction.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCreditNote()
Get ID of expandable
creditNote object. |
CreditNote |
getCreditNoteObject()
Get expanded
creditNote . |
java.lang.String |
getCurrency()
Three-letter ISO currency code,
in lowercase.
|
java.lang.String |
getCustomer()
Get ID of expandable
customer object. |
Customer |
getCustomerObject()
Get expanded
customer . |
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.Long |
getEndingBalance()
The customer's
balance after the transaction was applied. |
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.String |
getInvoice()
Get ID of expandable
invoice object. |
Invoice |
getInvoiceObject()
Get expanded
invoice . |
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getType()
Transaction type:
adjustment , applied_to_invoice , credit_note , initial , invoice_too_large , invoice_too_small , unspent_receiver_credit , or unapplied_from_invoice . |
int |
hashCode() |
void |
setAmount(java.lang.Long amount)
The amount of the transaction.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCreditNote(java.lang.String id) |
void |
setCreditNoteObject(CreditNote expandableObject) |
void |
setCurrency(java.lang.String currency)
Three-letter ISO currency code,
in lowercase.
|
void |
setCustomer(java.lang.String id) |
void |
setCustomerObject(Customer expandableObject) |
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setEndingBalance(java.lang.Long endingBalance)
The customer's
balance after the transaction was applied. |
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setInvoice(java.lang.String id) |
void |
setInvoiceObject(Invoice expandableObject) |
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setType(java.lang.String type)
Transaction type:
adjustment , applied_to_invoice , credit_note , initial , invoice_too_large , invoice_too_small , unspent_receiver_credit , or unapplied_from_invoice . |
CustomerBalanceTransaction |
update(CustomerBalanceTransactionUpdateParams params)
Most customer balance transaction fields are immutable, but you may update its
description and metadata . |
CustomerBalanceTransaction |
update(CustomerBalanceTransactionUpdateParams params,
RequestOptions options)
Most customer balance transaction fields are immutable, but you may update its
description and metadata . |
CustomerBalanceTransaction |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Most customer balance transaction fields are immutable, but you may update its
description and metadata . |
CustomerBalanceTransaction |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Most customer balance transaction fields are immutable, but you may update its
description and metadata . |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCreditNote()
creditNote
object.public void setCreditNote(java.lang.String id)
public CreditNote getCreditNoteObject()
creditNote
.public void setCreditNoteObject(CreditNote expandableObject)
public java.lang.String getCustomer()
customer
object.public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
customer
.public void setCustomerObject(Customer expandableObject)
public java.lang.String getInvoice()
invoice
object.public void setInvoice(java.lang.String id)
public Invoice getInvoiceObject()
invoice
.public void setInvoiceObject(Invoice expandableObject)
public CustomerBalanceTransaction update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
description
and metadata
.update
in interface MetadataStore<CustomerBalanceTransaction>
StripeException
public CustomerBalanceTransaction update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
description
and metadata
.update
in interface MetadataStore<CustomerBalanceTransaction>
StripeException
public CustomerBalanceTransaction update(CustomerBalanceTransactionUpdateParams params) throws StripeException
description
and metadata
.StripeException
public CustomerBalanceTransaction update(CustomerBalanceTransactionUpdateParams params, RequestOptions options) throws StripeException
description
and metadata
.StripeException
public java.lang.Long getAmount()
balance
.public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.Long getEndingBalance()
balance
after the transaction was applied. A negative value decreases
the amount due on the customer's next invoice. A positive value increases the amount due on the
customer's next invoice.public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to customer_balance_transaction
.
public java.lang.String getType()
adjustment
, applied_to_invoice
, credit_note
, initial
, invoice_too_large
, invoice_too_small
, unspent_receiver_credit
, or unapplied_from_invoice
. See the Customer Balance page to
learn more about transaction types.
One of adjustment
, applied_to_invoice
, credit_note
, initial
,
invoice_too_large
, invoice_too_small
, migration
, unapplied_from_invoice
, or unspent_receiver_credit
.
public void setAmount(java.lang.Long amount)
balance
.public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setEndingBalance(java.lang.Long endingBalance)
balance
after the transaction was applied. A negative value decreases
the amount due on the customer's next invoice. A positive value increases the amount due on the
customer's next invoice.public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to customer_balance_transaction
.
public void setType(java.lang.String type)
adjustment
, applied_to_invoice
, credit_note
, initial
, invoice_too_large
, invoice_too_small
, unspent_receiver_credit
, or unapplied_from_invoice
. See the Customer Balance page to
learn more about transaction types.
One of adjustment
, applied_to_invoice
, credit_note
, initial
,
invoice_too_large
, invoice_too_small
, migration
, unapplied_from_invoice
, or unspent_receiver_credit
.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<CustomerBalanceTransaction>