ByPaymentIntentId   
  Parameters
id
The ID of the Payment Intent to be refunded.
clientSecret 
The client secret of the Payment Intent to be refunded.
amount
The amount to be refunded, provided in the currency's smallest unit.
currency
Three-letter ISO currency code. Must be a supported currency.