/** * @example * { * id: "id" * } */ export interface RefundPaymentsRequest { /** The payment to refund, prefixed `pay_`. */ id: string; /** Your own key-value data to attach to the refund, returned on it and on its `refund.created` and `refund.updated` webhooks. At most 50 keys; keys up to 100 characters and values up to 500. */ metadata?: Record | null; /** The amount to refund, stated in this payment's `currency` like every other amount on it. When the buyer was billed in a different currency, it is converted at the payment's own exchange rate before the refund is issued. An amount that covers everything still refundable refunds the rest of the payment — omit it to refund the rest without having to work out what that is. */ partial_amount?: number | null; }