diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 05866b989..699f9594e 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -135,6 +135,24 @@ export class LegalEntitiesApi extends Service { return ObjectSerializer.deserialize(response, "LegalEntity"); } + /** + * @summary Request periodic data review. + * @param id {@link string } The unique identifier of the legal entity. + * @param requestOptions {@link IRequest.Options } + * @return {@link void } + */ + public async requestPeriodicReview(id: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/legalEntities/{id}/requestPeriodicReview` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + + await getJsonResponse( + resource, + "", + { ...requestOptions, method: "POST" } + ); + } + /** * @summary Update a legal entity * @param id {@link string } The unique identifier of the legal entity. diff --git a/src/typings/legalEntityManagement/financialReport.ts b/src/typings/legalEntityManagement/financialReport.ts index 5411aa856..58239ac6c 100644 --- a/src/typings/legalEntityManagement/financialReport.ts +++ b/src/typings/legalEntityManagement/financialReport.ts @@ -24,7 +24,7 @@ export class FinancialReport { /** * The date the financial data were provided, in YYYY-MM-DD format. */ - "dateOfFinancialData": string; + "dateOfFinancialData"?: string; /** * The number of employees of the business. */ diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts index 549581652..94e7584bc 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts @@ -10,7 +10,7 @@ export class GetTermsOfServiceDocumentRequest { /** - * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible values: **en** for English or **fr** for French. */ "language": string; /** diff --git a/src/typings/legalEntityManagement/support.ts b/src/typings/legalEntityManagement/support.ts index 0f82f5eff..526a331e6 100644 --- a/src/typings/legalEntityManagement/support.ts +++ b/src/typings/legalEntityManagement/support.ts @@ -12,7 +12,7 @@ import { PhoneNumber } from "./phoneNumber"; export class Support { /** - * The support email address of the legal entity. + * The support email address of the legal entity. Required if you have a platform setup. */ "email"?: string; "phone"?: PhoneNumber | null;