import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BillingDetails } from "./billingdetails.js"; import { CaptureStatus } from "./capturestatus.js"; import { ShippingDetails } from "./shippingdetails.js"; import { Tracking } from "./tracking.js"; import { Transaction } from "./transaction.js"; export type TransactionCapture = { /** * Always `transaction-capture`. */ type: "transaction-capture"; status: CaptureStatus; /** * The standardized error code set by Gr4vy. */ code: string | null; /** * 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; /** * 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; /** * A full transaction resource. */ transaction: Transaction; /** * The ID of the capture resource created for this capture. */ captureId?: string | null | undefined; /** * The payment service's unique ID for the capture. */ paymentServiceCaptureId?: string | null | undefined; /** * The external identifier for the capture. */ externalIdentifier?: string | null | undefined; /** * The billing details associated with the capture. */ billingDetails?: BillingDetails | null | undefined; /** * The shipping details associated with the catpure. */ shippingDetails?: ShippingDetails | null | undefined; /** * The shipment tracking details associated with the capture. */ tracking?: Array | null | undefined; }; /** @internal */ export declare const TransactionCapture$inboundSchema: z.ZodType; export declare function transactionCaptureFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=transactioncapture.d.ts.map