@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
53 lines • 1.96 kB
TypeScript
import type { PaymentsClient } from '../client';
import type { ElementPaymentParams } from '../schemas';
type ExecuteRequest = PaymentsClient['executeRequest'];
/**
* Creates the element resource methods
* OpenAPI Path: /element → element.*
* @description Legacy Element Express payment processing
* @deprecated This endpoint appears to be a legacy Element Express integration
* and may be deprecated in favor of the unified endpoints.
*/
export declare function createElementResource(executeRequest: ExecuteRequest): {
/**
* Payment Operations
*/
payment: {
/**
* Create payment account token from card data
* @fullPath api.payments.element.payment.create
* @service payments
* @domain payment-processing
* @dataMethod elementData.payment.create
* @discoverable true
* @deprecated This endpoint appears to be a legacy Element Express integration
* and may be deprecated in favor of the unified endpoints.
*/
create: (params: ElementPaymentParams) => Promise<{
params: Record<string, unknown> | unknown[];
data: {} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
};
};
/**
* Creates the elementData resource methods (data-only versions)
*/
export declare function createElementDataResource(element: ReturnType<typeof createElementResource>): {
payment: {
create: (params: ElementPaymentParams) => Promise<{} & {
[k: string]: unknown;
}>;
};
};
export type ElementResource = ReturnType<typeof createElementResource>;
export type ElementDataResource = ReturnType<typeof createElementDataResource>;
export {};
//# sourceMappingURL=element.d.ts.map