import { CredifyClass } from "./common"; import { MessageInfo, Terms } from "./type"; import { OrderCreationRequest } from "@credify/api-docs/apiClients/integration-v2"; export declare class Bnpl extends CredifyClass { /** * DEPRECATED * Create a Bnpl order * @param referenceId - ID of the order * @param totalAmount - Total amount of the order * @param orderLines - Order's orderLines * @param paymentRecipient - The bank account's information of the payment recipient * @returns order object */ /** * DEPRECATED * Get Bnpl orders * @param credifyId - CredifyId of the user * @returns List of orders associated with the CredifyId */ /** * Gets order's information * @param orderId - Id of the Order * @returns order object */ getOrder(orderId: string): Promise; /** * Acknowledge the bnpl order * @param transactionId - ID of the transaction * @param orderId - ID of the order */ acknowledgeOrder(transactionId: string, orderId: string): Promise; /** * Approve the bnpl order * @param orderId - ID of the order * @param messageInfo - Notification information */ approveOrder(orderId: string, messageInfo: MessageInfo): Promise; /** * Complete the bnpl signing * @param orderId - ID of the order * @param terms - Terms of the order put into a contract */ completeSigning(orderId: string, terms: Terms): Promise; /** * Complete the bnpl order * @param orderId - Id of the Order * @param valueDate - The date when the contract begins to be effective. */ completeOrder(orderId: string, valueDate: string): Promise; /** * Revert the BNPL payment * @param orderId - Id of the Order * @param failedReason - failed reason */ revertPayment(orderId: string, failedReason: string): Promise; /** * Disbursement * @param orderId - Id of the Order */ disbursement(orderId: string): Promise; /** * get order detail * @param orderId - order id */ getOrderDetail(orderId: string): Promise; }