RefundParameters 
    class RefundParameters
The RefundParameters object allows you to set the options you need to create a refund for an existing charge. For more information, see:
https://stripe.com/docs/api/refunds/create
To create an instance of this class, use the provided Builder.
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
Types
Link copied to clipboard
                  Use this builder to create a RefundParameters instance when you have a Charge ID.
Link copied to clipboard
                  class ByPaymentIntentId(val id: String, val clientSecret: String, val amount: Long, val currency: String) : RefundParameters.Builder
Use this builder to create a RefundParameters instance when you have a Payment Intent ID and Client Secret.