Package com.stripe.model
Class TransferReversal
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.TransferReversal
-
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<TransferReversal>
,StripeObjectInterface
public class TransferReversal extends ApiResource implements MetadataStore<TransferReversal>, BalanceTransactionSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description TransferReversal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Long
getAmount()
Amount, in %s.java.lang.String
getBalanceTransaction()
Get ID of expandablebalanceTransaction
object.BalanceTransaction
getBalanceTransactionObject()
Get expandedbalanceTransaction
.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCurrency()
Three-letter ISO currency code, in lowercase.java.lang.String
getDestinationPaymentRefund()
Get ID of expandabledestinationPaymentRefund
object.Refund
getDestinationPaymentRefundObject()
Get expandeddestinationPaymentRefund
.java.lang.String
getId()
Unique identifier for the object.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
getSourceRefund()
Get ID of expandablesourceRefund
object.Refund
getSourceRefundObject()
Get expandedsourceRefund
.java.lang.String
getTransfer()
Get ID of expandabletransfer
object.Transfer
getTransferObject()
Get expandedtransfer
.int
hashCode()
void
setAmount(java.lang.Long amount)
Amount, in %s.void
setBalanceTransaction(java.lang.String id)
void
setBalanceTransactionObject(BalanceTransaction expandableObject)
void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase.void
setDestinationPaymentRefund(java.lang.String id)
void
setDestinationPaymentRefundObject(Refund expandableObject)
void
setId(java.lang.String id)
Unique identifier for the object.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
setSourceRefund(java.lang.String id)
void
setSourceRefundObject(Refund expandableObject)
void
setTransfer(java.lang.String id)
void
setTransferObject(Transfer expandableObject)
TransferReversal
update(TransferReversalUpdateParams params)
Updates the specified reversal by setting the values of the parameters passed.TransferReversal
update(TransferReversalUpdateParams params, RequestOptions options)
Updates the specified reversal by setting the values of the parameters passed.TransferReversal
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified reversal by setting the values of the parameters passed.TransferReversal
update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Updates the specified reversal by setting the values of the parameters passed.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
-
-
-
Method Detail
-
getBalanceTransaction
public java.lang.String getBalanceTransaction()
Get ID of expandablebalanceTransaction
object.
-
setBalanceTransaction
public void setBalanceTransaction(java.lang.String id)
-
getBalanceTransactionObject
public BalanceTransaction getBalanceTransactionObject()
Get expandedbalanceTransaction
.
-
setBalanceTransactionObject
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
-
getDestinationPaymentRefund
public java.lang.String getDestinationPaymentRefund()
Get ID of expandabledestinationPaymentRefund
object.
-
setDestinationPaymentRefund
public void setDestinationPaymentRefund(java.lang.String id)
-
getDestinationPaymentRefundObject
public Refund getDestinationPaymentRefundObject()
Get expandeddestinationPaymentRefund
.
-
setDestinationPaymentRefundObject
public void setDestinationPaymentRefundObject(Refund expandableObject)
-
getSourceRefund
public java.lang.String getSourceRefund()
Get ID of expandablesourceRefund
object.
-
setSourceRefund
public void setSourceRefund(java.lang.String id)
-
getSourceRefundObject
public Refund getSourceRefundObject()
Get expandedsourceRefund
.
-
setSourceRefundObject
public void setSourceRefundObject(Refund expandableObject)
-
getTransfer
public java.lang.String getTransfer()
Get ID of expandabletransfer
object.
-
setTransfer
public void setTransfer(java.lang.String id)
-
getTransferObject
public Transfer getTransferObject()
Get expandedtransfer
.
-
setTransferObject
public void setTransferObject(Transfer expandableObject)
-
update
public TransferReversal update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata and description as arguments.
- Specified by:
update
in interfaceMetadataStore<TransferReversal>
- Throws:
StripeException
-
update
public TransferReversal update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata and description as arguments.
- Specified by:
update
in interfaceMetadataStore<TransferReversal>
- Throws:
StripeException
-
update
public TransferReversal update(TransferReversalUpdateParams params) throws StripeException
Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata and description as arguments.
- Throws:
StripeException
-
update
public TransferReversal update(TransferReversalUpdateParams params, RequestOptions options) throws StripeException
Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata and description as arguments.
- Throws:
StripeException
-
getAmount
public java.lang.Long getAmount()
Amount, in %s.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
transfer_reversal
.
-
setAmount
public void setAmount(java.lang.Long amount)
Amount, in %s.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
transfer_reversal
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<TransferReversal>
-
-