Skip to main content

type AdInteractionSourceMediaTypeEnum

type AdInteractionSourceTypeEnum

type Change

type ChannelEvent

ChannelEvent represents an event that can be published and subscribed to.

type Contact

type Conversation

type CreatePhoneNumberResponse

type DeleteQrCodeResponse

DeleteQrCodeResponse represents the response of deleting a QR code.

type Entry

type Error

type EventManager

EventManager is responsible for managing events and their subscribers.

func NewEventManager

NewEventManager creates a new instance of EventManger.

func (*EventManager) On

On registers a handler function for the specified event type. The handler function will be called whenever the event is published. It returns the event type that the handler is registered for.

func (*EventManager) Publish

Publish publishes an event to the event system and notifies all the subscribers.

func (*EventManager) Subscribe

Subscribe adds a new subscriber to the specified event type. The subscriber will be notified when the event is published.

func (*EventManager) Unsubscribe

Unsubscribe removes a subscriber from the specified event type.

type FetchPhoneNumberFilters

FetchPhoneNumberFilters holds the filters for fetching phone numbers.

type GenerateQrCodeResponse

GenerateQrCodeResponse represents the response of generating a QR code.

type GetAllQrCodesResponse

GetAllQrCodesResponse represents the response of getting all QR codes for a phone number.

type InteractiveNotificationTypeEnum

type MediaManager

MediaManager is responsible for managing media related operations.

func NewMediaManager

NewMediaManager creates a new instance of MediaManager.

func (*MediaManager) GetMediaIdByUrl

GetMediaIdByUrl retrieves the media ID by its URL.

func (*MediaManager) GetMediaUrlById

GetMediaUrlById retrieves the media URL by its ID.

type Message

type MessageManager

MessageManager is responsible for managing messages.

func NewMessageManager

NewMessageManager creates a new instance of MessageManager.

func (*MessageManager) Send

Send sends a message with the given parameters and returns the response. TODO: return the structured response from here

type MessageStatusCategoryEnum

type MessageStatusEnum

type MessageTemplateCategory

MessageTemplateCategory represents the category of a WhatsApp Business message template.
Constants representing different message template categories.

type MessageTemplateComponentFormat

MessageTemplateComponentFormat represents the format of a message template component.
Constants representing different message template component formats.

type MessageTemplateComponentType

MessageTemplateComponentType represents the type of a message template component.
Constants representing different message template component types.

type MessageTemplateCreationResponse

type MessageTemplateStatus

MessageTemplateStatus represents the status of a WhatsApp Business message template.
Constants representing different message template statuses.

type Metadata

type NotificationMessageTypeEnum

type NotificationPayloadAudioMessageSchemaType

type NotificationPayloadButtonInteractionMessageSchemaType

type NotificationPayloadButtonMessageSchemaType

type NotificationPayloadContactMessageSchemaType

type NotificationPayloadDocumentMessageSchemaType

type NotificationPayloadErrorSchemaType

type NotificationPayloadImageMessageSchemaType

type NotificationPayloadInteractionMessageSchemaType

type NotificationPayloadListInteractionMessageSchemaType

type NotificationPayloadLocationMessageSchemaType

type NotificationPayloadMessageContextSchemaType

type NotificationPayloadOrderMessageSchemaType

type NotificationPayloadReactionMessageSchemaType

type NotificationPayloadStickerMessageSchemaType

type NotificationPayloadSystemMessageSchemaType

type NotificationPayloadTextMessageSchemaType

type NotificationPayloadVideoMessageSchemaType

type NotificationReasonEnum

type Origin

type PhoneNumberManager

PhoneNumberManager is responsible for managing phone numbers for WhatsApp Business API and phone number specific operations.

func NewPhoneNumberManager

NewPhoneNumberManager creates a new instance of PhoneNumberManager.

func (*PhoneNumberManager) Create

func (*PhoneNumberManager) DeleteQrCode

DeleteQrCode deletes a QR code by its ID for the specified phone number.

func (*PhoneNumberManager) Fetch

Fetch fetches a phone number by its ID.

func (*PhoneNumberManager) FetchAll

FetchAll fetches all phone numbers based on the provided filters.

func (*PhoneNumberManager) GenerateQrCode

GenerateQrCode generates a QR code for the specified phone number with the given prefilled message.

func (*PhoneNumberManager) GetAllQrCodes

GetAllQrCodes gets all QR codes for the specified phone number.

func (*PhoneNumberManager) GetQrCodeById

GetQrCodeById gets a QR code by its ID for the specified phone number.

func (*PhoneNumberManager) RequestVerificationCode

func (*PhoneNumberManager) UpdateQrCode

UpdateQrCode updates a QR code by its ID for the specified phone number with the given prefilled message.

func (*PhoneNumberManager) VerifyCode

type PhoneNumberManagerConfig

PhoneNumberManagerConfig holds the configuration for PhoneNumberManager.

type Pricing

type Profile

type RequestVerificationCodeResponse

type Status

type SystemNotificationTypeEnum

type TemplateAnalyticsType

type TemplateManager

TemplateManager is responsible for managing WhatsApp Business message templates.

func NewTemplateManager

NewTemplateManager creates a new TemplateManager with the given configuration.

func (*TemplateManager) Create

func (*TemplateManager) Delete

func (*TemplateManager) Fetch

Fetch fetches a single WhatsApp Business message template by its ID.

func (*TemplateManager) FetchAll

FetchAll fetches all WhatsApp Business message templates.

func (*TemplateManager) FetchMessageTemplatePreviews

func (*TemplateManager) FetchPerformanceAnalytics

func (*TemplateManager) MigrateFromOtherBusinessAccount

func (*TemplateManager) Update

type TemplateManagerConfig

TemplateManagerConfig represents the configuration for creating a new TemplateManager.

type TemplateMessagePreviewEdge

type TemplateMessagePreviewNode

type TemplatePerformanceAnalytics

type Value

type VerifyCodeMethod

type VerifyCodeResponse

type WebhookManager

WebhookManager represents a manager for handling webhooks.

func NewWebhook

NewWebhook creates a new WebhookManager with the given options.

func (*WebhookManager) GetRequestHandler

GetRequestHandler handles GET requests to the webhook endpoint.

func (*WebhookManager) ListenToEvents

ListenToEvents starts listening to events and handles incoming requests.

func (*WebhookManager) PostRequestHandler

PostRequestHandler handles POST requests to the webhook endpoint.

func (*WebhookManager) createEchoHttpServer

createEchoHttpServer creates a new instance of Echo HTTP server. This function is used in case the client has not provided any custom HTTP server.

type WebhookManagerConfig

WebhookManagerConfig represents the configuration options for creating a new WebhookManager.

type WhatsAppBusinessAccountMessageTemplateDeleteRequestBody

type WhatsAppBusinessAccountMessageTemplatePreviewButton

type WhatsAppBusinessAccountMessageTemplateUpdateRequestBody

this is the request body for the message template update request

type WhatsAppBusinessHSMWhatsAppBusinessHSMQualityScoreShape

WhatsAppBusinessHSMWhatsAppBusinessHSMQualityScoreShape represents the quality score of a WhatsApp Business message template.

type WhatsAppBusinessHSMWhatsAppHSMComponent

WhatsAppBusinessHSMWhatsAppHSMComponent represents a component in a WhatsApp Business message template.

type WhatsAppBusinessHSMWhatsAppHSMComponentButton

WhatsAppBusinessHSMWhatsAppHSMComponentButton represents a button component in a WhatsApp Business message template.

type WhatsAppBusinessHSMWhatsAppHSMComponentCard

WhatsAppBusinessHSMWhatsAppHSMComponentCard represents a card component in a WhatsApp Business message template.

type WhatsAppBusinessHSMWhatsAppHSMComponentExample

WhatsAppBusinessHSMWhatsAppHSMComponentExample represents an example component in a WhatsApp Business message template.

type WhatsAppBusinessHSMWhatsAppLimitedTimeOfferParameterShape

WhatsAppBusinessHSMWhatsAppLimitedTimeOfferParameterShape represents a limited time offer parameter in a WhatsApp Business message template.

type WhatsAppBusinessMessageTemplateNode

WhatsAppBusinessMessageTemplateNode represents a WhatsApp Business message template.

type WhatsAppBusinessTemplatesFetchResponseEdge

WhatsAppBusinessTemplatesFetchResponseEdge represents the response structure for fetching WhatsApp Business message templates.

type WhatsappApiNotificationPayloadSchemaType

type WhatsappBusinessAccountPhoneNumber

WhatsappBusinessAccountPhoneNumber represents a WhatsApp Business Account phone number.

type WhatsappBusinessAccountPhoneNumberEdge

WhatsappBusinessAccountPhoneNumberEdge represents a list of WhatsApp Business Account phone numbers.

type WhatsappMessageTemplateButtonCreateRequestBody

WhatsappMessageTemplateButtonCreateRequestBody represents the request body for creating a button in a message template.

type WhatsappMessageTemplateComponentCreateOrUpdateRequestBody

WhatsappMessageTemplateComponentCreateOrUpdateRequestBody represents the request body for creating or updating a component in a message template.

func (*WhatsappMessageTemplateComponentCreateOrUpdateRequestBody) AddButton

AddButton adds a button to the component.

type WhatsappMessageTemplateCreateRequestBody

WhatsappMessageTemplateCreateRequestBody represents the request body for creating a message template.

func (*WhatsappMessageTemplateCreateRequestBody) AddComponent