UNPKG

flexbase-client

Version:
23 lines (22 loc) 906 B
import { PayWithFlexbase, PayWithFlexbaseResponse } from '../models/Credit/PayWithFlexbase.js'; import { CompanyCredit } from '../models/Credit/CompanyCredit.js'; import { FlexbaseResponse } from '../models/FlexbaseResponse.js'; import { FlexbaseClientBase } from './FlexbaseClient.Base.js'; interface PayDebtResponse extends FlexbaseResponse { cardPayment: { amount: string; asOf: string; byUser: string; companyId: string; datePosted: string; failureReason: string | null; id: string; status: string; } | null; } export declare class FlexbaseClientCredit extends FlexbaseClientBase { getCompanyCredit(companyId?: string): Promise<CompanyCredit | null>; payDebt(companyId: string, amount: string): Promise<PayDebtResponse>; requestPayWithFlexbase(payload: PayWithFlexbase): Promise<PayWithFlexbaseResponse>; } export {};