@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
12 lines (11 loc) • 926 B
TypeScript
import type { ExtractStrict } from 'type-fest';
import type { ServiceAgreementSignResponse } from '../../core/models/api/contracts';
import type { EndpointFromPaths } from '../types';
import type { components, paths } from './termsOfService.contract';
type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>;
export type AcceptedTermsOfServiceEndpoint = ExtractStrict<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/acceptedTermsOfServiceDocument/${string}`>;
export type AcceptedTermsOfServiceResponse = components['schemas']['GetAcceptedTermsOfServiceDocumentResponse'];
export type AcceptTermsOfServiceAcceptEndpoint = ExtractStrict<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/accept`>;
export type AcceptTermsOfServiceAcceptRequest = components['schemas']['AcceptTermsOfServiceRequest'];
export type AcceptTermsOfServiceAcceptResponse = ServiceAgreementSignResponse;
export {};