Builder

class Builder(chargeId: String, amount: Long, currency: String)

Functions

Link copied to clipboard
fun build(): RefundParameters

Create a final instance of RefundParameters with the parameters that have been set with this builder.

Link copied to clipboard
fun setMetadata(value: Map<String, String>): RefundParameters.Builder

Set of key-value pairs that you can attach to an object.

Link copied to clipboard
fun setRefundApplicationFee(value: Boolean): RefundParameters.Builder

Connect only: Nullable boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded.

Link copied to clipboard
fun setReverseTransfer(value: Boolean): RefundParameters.Builder

Connect only: Nullable boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).