/** * NOTE: This file is auto generated by Xendit. * Do not edit the class manually. * Improvements? Share your ideas at https://github.com/xendit/xendit-node */ /** * * @export * @interface CreateRefund */ export interface CreateRefund { /** * * @type {string} * @memberof CreateRefund */ paymentRequestId?: string; /** * * @type {string} * @memberof CreateRefund */ invoiceId?: string; /** * * @type {string} * @memberof CreateRefund */ referenceId?: string; /** * * @type {number} * @memberof CreateRefund */ amount?: number; /** * * @type {string} * @memberof CreateRefund */ currency?: string; /** * * @type {string} * @memberof CreateRefund */ reason?: CreateRefundReasonEnum; /** * * @type {object} * @memberof CreateRefund */ metadata?: object | null; } /** * @export */ export declare const CreateRefundReasonEnum: { readonly Fraudulent: "FRAUDULENT"; readonly Duplicate: "DUPLICATE"; readonly RequestedByCustomer: "REQUESTED_BY_CUSTOMER"; readonly Cancellation: "CANCELLATION"; readonly Others: "OTHERS"; }; export type CreateRefundReasonEnum = typeof CreateRefundReasonEnum[keyof typeof CreateRefundReasonEnum]; /** * Check if a given object implements the CreateRefund interface. */ export declare function instanceOfCreateRefund(value: object): boolean; export declare function CreateRefundFromJSON(json: any): CreateRefund; export declare function CreateRefundFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRefund; export declare function CreateRefundToJSON(value?: CreateRefund | null): any;