import type * as Square from "../index"; /** * Represents a refund processed for a Square transaction. */ export interface Refund { /** The refund's unique ID. */ id: string; /** The ID of the refund's associated location. */ locationId: string; /** The ID of the transaction that the refunded tender is part of. */ transactionId?: string | null; /** The ID of the refunded tender. */ tenderId?: string | null; /** The timestamp for when the refund was created, in RFC 3339 format. */ createdAt?: string; /** The reason for the refund being issued. */ reason: string; /** The amount of money refunded to the buyer. */ amountMoney: Square.Money; /** * The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, * or `FAILED`). * See [RefundStatus](#type-refundstatus) for possible values */ status: Square.RefundStatus; /** The amount of Square processing fee money refunded to the *merchant*. */ processingFeeMoney?: Square.Money; /** * Additional recipients (other than the merchant) receiving a portion of this refund. * For example, fees assessed on a refund of a purchase by a third party integration. */ additionalRecipients?: Square.AdditionalRecipient[] | null; }