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](https://www.iso.org/iso-4217-currency-codes.html), 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`, `unapplied_from_invoice`, or
`unspent_receiver_credit`.
|
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](https://www.iso.org/iso-4217-currency-codes.html), 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`, `unapplied_from_invoice`, or
`unspent_receiver_credit`.
|
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()
public void setCreditNote(java.lang.String id)
public CreditNote getCreditNoteObject()
public void setCreditNoteObject(CreditNote expandableObject)
public java.lang.String getCustomer()
public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
public void setCustomerObject(Customer expandableObject)
public java.lang.String getInvoice()
public void setInvoice(java.lang.String id)
public Invoice getInvoiceObject()
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()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.Long getEndingBalance()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
Equal to `customer_balance_transaction`.
public java.lang.String getType()
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)
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)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
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)
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>