/** * NOTE: This file is auto generated by Xendit. * Do not edit the class manually. * Improvements? Share your ideas at https://github.com/xendit/xendit-node */ import * as runtime from '../../runtime'; import type { PaymentMethod, PaymentMethodAuthParameters, PaymentMethodExpireParameters, PaymentMethodList, PaymentMethodParameters, PaymentMethodReusability, PaymentMethodStatus, PaymentMethodType, PaymentMethodUpdateParameters, SimulatePaymentRequest } from '../models'; export interface CreatePaymentMethodRequest { forUserId?: string; data?: PaymentMethodParameters; } export interface GetPaymentMethodByIDRequest { paymentMethodId: string; forUserId?: string; } export interface GetPaymentsByPaymentMethodIdRequest { paymentMethodId: string; forUserId?: string; paymentRequestId?: Array; paymentMethodId2?: Array; referenceId?: Array; paymentMethodType?: Array; channelCode?: Array; status?: Array; currency?: Array; createdGte?: Date; createdLte?: Date; updatedGte?: Date; updatedLte?: Date; limit?: number; } export interface PatchPaymentMethodRequest { paymentMethodId: string; forUserId?: string; data?: PaymentMethodUpdateParameters; } export interface GetAllPaymentMethodsRequest { forUserId?: string; id?: Array; type?: Array; status?: Array; reusability?: PaymentMethodReusability; customerId?: string; referenceId?: string; afterId?: string; beforeId?: string; limit?: number; } export interface ExpirePaymentMethodRequest { paymentMethodId: string; forUserId?: string; data?: PaymentMethodExpireParameters | null; } export interface AuthPaymentMethodRequest { paymentMethodId: string; forUserId?: string; data?: PaymentMethodAuthParameters; } export interface SimulatePaymentOperationRequest { paymentMethodId: string; data?: SimulatePaymentRequest; } /** * */ export declare class PaymentMethodApi extends runtime.BaseAPI { secretKey: string; xenditURL: string; constructor({ secretKey, xenditURL }: { secretKey: string; xenditURL?: string; }); /** * This endpoint initiates creation of payment method * Creates payment method */ private createPaymentMethodRaw; /** * This endpoint initiates creation of payment method * Creates payment method */ createPaymentMethod(requestParameters?: CreatePaymentMethodRequest): Promise; /** * Get payment method by ID * Get payment method by ID */ private getPaymentMethodByIDRaw; /** * Get payment method by ID * Get payment method by ID */ getPaymentMethodByID(requestParameters: GetPaymentMethodByIDRequest): Promise; /** * Returns payments with matching PaymentMethodID. * Returns payments with matching PaymentMethodID. */ private getPaymentsByPaymentMethodIdRaw; /** * Returns payments with matching PaymentMethodID. * Returns payments with matching PaymentMethodID. */ getPaymentsByPaymentMethodId(requestParameters: GetPaymentsByPaymentMethodIdRequest): Promise; /** * This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. * Patch payment methods */ private patchPaymentMethodRaw; /** * This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. * Patch payment methods */ patchPaymentMethod(requestParameters: PatchPaymentMethodRequest): Promise; /** * Get all payment methods by filters * Get all payment methods by filters */ private getAllPaymentMethodsRaw; /** * Get all payment methods by filters * Get all payment methods by filters */ getAllPaymentMethods(requestParameters?: GetAllPaymentMethodsRequest): Promise; /** * This endpoint expires a payment method and performs unlinking if necessary * Expires a payment method */ private expirePaymentMethodRaw; /** * This endpoint expires a payment method and performs unlinking if necessary * Expires a payment method */ expirePaymentMethod(requestParameters: ExpirePaymentMethodRequest): Promise; /** * This endpoint validates a payment method linking OTP * Validate a payment method\'s linking OTP */ private authPaymentMethodRaw; /** * This endpoint validates a payment method linking OTP * Validate a payment method\'s linking OTP */ authPaymentMethod(requestParameters: AuthPaymentMethodRequest): Promise; /** * Makes payment with matching PaymentMethodID. * Makes payment with matching PaymentMethodID. */ private simulatePaymentRaw; /** * Makes payment with matching PaymentMethodID. * Makes payment with matching PaymentMethodID. */ simulatePayment(requestParameters: SimulatePaymentOperationRequest): Promise; }