@paybyrd/ai-agent-toolkit
Version:
Toolkit for building AI agents with various models
64 lines (63 loc) • 1.96 kB
TypeScript
import { z } from 'zod';
import { createPaymentLinkParameters, createRefundParameters, retrieveOrderParameters } from './parameters.js';
interface AuthInfo {
apiKey: string;
}
export declare const createPaymentLink: (auth: AuthInfo, baseUrl: string, params: z.infer<typeof createPaymentLinkParameters>) => Promise<string | {
checkoutUrl: any;
orderId: any;
}>;
export declare const createRefund: (auth: AuthInfo, baseUrl: string, params: z.infer<typeof createRefundParameters>) => Promise<string | {
refundTransactionId: any;
success: boolean;
code: any;
description: any;
} | {
success: boolean;
code: any;
description: any;
refundTransactionId?: undefined;
}>;
export declare const retrieveOrder: (auth: AuthInfo, baseUrl: string, params: z.infer<typeof retrieveOrderParameters>) => Promise<string | {
orderDate: string;
expiresAt: string;
status: string;
checkoutUrl: string;
transactions: any[];
orderId: string;
amount: string;
currency: string;
orderRef: string;
shopper: {
firstName: string | null;
lastName: string | null;
email: string | null;
phoneCountryCode: number | null;
phoneNumber: string | null;
} | null;
orderOptions: {
redirectUrl: string | null;
culture: string;
expiresIn: string | null;
notifyBy: {
email: {
address: string;
} | null;
whatsApp: {
firstName: string | null;
lastName: string | null;
phoneCountryCode: number;
phoneNumber: string;
} | null;
sms: {
firstName: string | null;
lastName: string | null;
phoneCountryCode: number;
phoneNumber: string;
} | null;
} | null;
};
code: string;
description: string;
}>;
export {};