import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CaptureStatus } from "./capturestatus.js"; import { CartItem } from "./cartitem.js"; import { Tracking } from "./tracking.js"; export type Capture = { /** * Always `capture`. */ type: "capture"; /** * The unique identifier for the capture. */ id: string; /** * The merchant account this capture belongs to. */ merchantAccountId: string; /** * The ID of the transaction associated with this capture. */ transactionId: string; /** * The payment service's unique ID for the capture. */ xid?: string | null | undefined; /** * The ISO 4217 currency code for this capture. */ currency: string; /** * The capture amount in the smallest currency unit. */ amount: number; status: CaptureStatus; /** * Whether this is marked as the final capture for the associated transaction. */ final: boolean; /** * The date and time this capture was created. */ createdAt: Date; /** * The date and time this capture was last updated. */ updatedAt: Date; /** * The date and time the capture was completed. */ capturedAt?: Date | null | undefined; /** * An external identifier that can be used to match the capture against your own records. */ externalIdentifier?: string | null | undefined; /** * The standardized error code set by Gr4vy. */ errorCode?: string | null | undefined; /** * The ISO response code. */ isoResponseCode?: string | null | undefined; /** * This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services. */ rawResponseCode?: string | null | undefined; /** * This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services. */ rawResponseDescription?: string | null | undefined; /** * The external identifier of the associated transaction. */ transactionExternalIdentifier?: string | null | undefined; /** * An array of cart items that represents the line items of this capture. */ cartItems?: Array | null | undefined; /** * The shipment tracking details associated with the capture. */ tracking?: Array | null | undefined; }; /** @internal */ export declare const Capture$inboundSchema: z.ZodType; export declare function captureFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=capture.d.ts.map