import { HttpClient } from '../../client/http-client'; import { ChargeCreateInput, ChargeResponse, ChargeListQuery, ChargeListResponse, ChargeUpdateInput } from '../../types/v2/charges'; import { NoAuthResponse } from '../../types/v2/common'; import { BaseResource } from '../base.resource'; /** * Charges endpoints for API v2 * * @see {@link https://apidocs.culqi.com/#tag/Cargos Documentation}. * */ export declare class Charges extends BaseResource { constructor(http: HttpClient, apiVersion: string); /** * Create charge * * @see {@link https://github.com/iscodex/culqi-nodejs/blob/main/src/examples/charges/create.ts Usage Example} * */ create(data: ChargeCreateInput): Promise; /** * Get charges * * @see {@link https://github.com/iscodex/culqi-nodejs/blob/main/src/examples/charges/find-by.ts Usage Example} * */ findBy(params?: ChargeListQuery): Promise; /** * Get charge * * @see {@link https://github.com/iscodex/culqi-nodejs/blob/main/src/examples/charges/find.ts Usage Example} * */ find(id: string): Promise; /** * Update charge metadata * * @see {@link https://github.com/iscodex/culqi-nodejs/blob/main/src/examples/charges/update.ts Usage Example} * */ update(id: string, data: ChargeUpdateInput): Promise; /** * Capture charge * * @see {@link https://github.com/iscodex/culqi-nodejs/blob/main/src/examples/charges/capture.ts Usage Example} * */ capture(id: string): Promise; } //# sourceMappingURL=charges.resource.d.ts.map