diff --git a/src/BusinessProfile/index.ts b/src/BusinessProfile/index.ts index 764de3a..dd9e98f 100644 --- a/src/BusinessProfile/index.ts +++ b/src/BusinessProfile/index.ts @@ -21,7 +21,7 @@ export default class BusinessProfile { return encodeURIComponent(phoneNumberID) + "/whatsapp_business_profile"; } - public getBusinessProfile({ + public getBusinessProfile({ phoneNumberID, fields, request, diff --git a/src/types/BusinessProfile/index.ts b/src/types/BusinessProfile/index.ts index 02a4e83..f94d9d5 100644 --- a/src/types/BusinessProfile/index.ts +++ b/src/types/BusinessProfile/index.ts @@ -18,12 +18,12 @@ export type GetBusinessProfileFields = { vertical?: boolean; }; -export type GetBusinessProfileOptions = { +export type GetBusinessProfileOptions = { phoneNumberID: PhoneNumberID; fields?: Fields; } -export type GetBusinessProfilePayload = { +export type GetBusinessProfilePayload = { data: [{ about: Fields extends { about: true } ? string : undefined; address: Fields extends { address: true } ? string : undefined;