/** * 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 */ import type { PaymentMethod } from './PaymentMethod'; /** * * @export * @interface Capture */ export interface Capture { /** * * @type {string} * @memberof Capture */ id: string; /** * * @type {string} * @memberof Capture */ paymentRequestId: string; /** * * @type {string} * @memberof Capture */ paymentId: string; /** * * @type {string} * @memberof Capture */ referenceId: string; /** * * @type {string} * @memberof Capture */ currency: string; /** * * @type {number} * @memberof Capture */ authorizedAmount: number; /** * * @type {number} * @memberof Capture */ capturedAmount: number; /** * * @type {string} * @memberof Capture */ status: CaptureStatusEnum; /** * * @type {PaymentMethod} * @memberof Capture */ paymentMethod: PaymentMethod; /** * * @type {string} * @memberof Capture */ failureCode: string | null; /** * * @type {string} * @memberof Capture */ customerId: string | null; /** * * @type {object} * @memberof Capture */ metadata: object | null; /** * * @type {object} * @memberof Capture */ channelProperties: object | null; /** * * @type {string} * @memberof Capture */ created: string; /** * * @type {string} * @memberof Capture */ updated: string; } /** * @export */ export declare const CaptureStatusEnum: { readonly Succeeded: "SUCCEEDED"; readonly Failed: "FAILED"; }; export type CaptureStatusEnum = typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum]; /** * Check if a given object implements the Capture interface. */ export declare function instanceOfCapture(value: object): boolean; export declare function CaptureFromJSON(json: any): Capture; export declare function CaptureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capture; export declare function CaptureToJSON(value?: Capture | null): any;