UNPKG

@mollie/api-client

Version:
28 lines (27 loc) 1.48 kB
import type TransformingNetworkClient from '../../communication/TransformingNetworkClient'; import { type OnboardingData } from '../../data/onboarding/data'; import type Onboarding from '../../data/onboarding/Onboarding'; import type Callback from '../../types/Callback'; import Binder from '../Binder'; import { type SubmitParameters } from './parameters'; export default class OnboardingBinder extends Binder<OnboardingData, Onboarding> { protected readonly networkClient: TransformingNetworkClient; constructor(networkClient: TransformingNetworkClient); /** * Get the status of onboarding of the authenticated organization. * * @since 3.2.0 * @see https://docs.mollie.com/reference/get-onboarding-status */ get(): Promise<Onboarding>; get(callback: Callback<Onboarding>): void; /** * Submit data that will be prefilled in the merchant's onboarding. The data you submit will only be processed when the onboarding status is `needs-data`. Information that the merchant has entered in their dashboard will not be overwritten. * * @since 3.2.0 * @deprecated Implementing this endpoint is no longer recommended. Use the Client Links API instead to kick off the onboarding process for your merchants. * @see https://docs.mollie.com/reference/submit-onboarding-data */ submit(parameters?: SubmitParameters): Promise<true>; submit(parameters: SubmitParameters, callback: Callback<true>): void; }