Class: Google::Apis::CesV1::OmnichannelIntegrationConfigWhatsappConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

How Omnichannel should receive/reply events from WhatsApp.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OmnichannelIntegrationConfigWhatsappConfig

Returns a new instance of OmnichannelIntegrationConfigWhatsappConfig.



5158
5159
5160
# File 'lib/google/apis/ces_v1/classes.rb', line 5158

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#meta_business_portfolio_idString

The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/ 1710077379203657 Corresponds to the JSON property metaBusinessPortfolioId

Returns:

  • (String)


5129
5130
5131
# File 'lib/google/apis/ces_v1/classes.rb', line 5129

def meta_business_portfolio_id
  @meta_business_portfolio_id
end

#phone_numberString

The phone number used for sending/receiving messages. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


5134
5135
5136
# File 'lib/google/apis/ces_v1/classes.rb', line 5134

def phone_number
  @phone_number
end

#phone_number_idString

The Phone Number ID associated with the WhatsApp Business Account. Corresponds to the JSON property phoneNumberId

Returns:

  • (String)


5139
5140
5141
# File 'lib/google/apis/ces_v1/classes.rb', line 5139

def phone_number_id
  @phone_number_id
end

#webhook_verify_tokenString

The verify token configured in the Meta App Dashboard for webhook verification. Corresponds to the JSON property webhookVerifyToken

Returns:

  • (String)


5144
5145
5146
# File 'lib/google/apis/ces_v1/classes.rb', line 5144

def webhook_verify_token
  @webhook_verify_token
end

#whatsapp_business_account_idString

The customer's WhatsApp Business Account (WABA) ID. Corresponds to the JSON property whatsappBusinessAccountId

Returns:

  • (String)


5149
5150
5151
# File 'lib/google/apis/ces_v1/classes.rb', line 5149

def 
  @whatsapp_business_account_id
end

#whatsapp_business_tokenString

The access token for authenticating API calls to the WhatsApp Cloud API. https: //developers.facebook.com/docs/whatsapp/business-management-api/get-started/# business-integration-system-user-access-tokens Corresponds to the JSON property whatsappBusinessToken

Returns:

  • (String)


5156
5157
5158
# File 'lib/google/apis/ces_v1/classes.rb', line 5156

def whatsapp_business_token
  @whatsapp_business_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5163
5164
5165
5166
5167
5168
5169
5170
# File 'lib/google/apis/ces_v1/classes.rb', line 5163

def update!(**args)
  @meta_business_portfolio_id = args[:meta_business_portfolio_id] if args.key?(:meta_business_portfolio_id)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @phone_number_id = args[:phone_number_id] if args.key?(:phone_number_id)
  @webhook_verify_token = args[:webhook_verify_token] if args.key?(:webhook_verify_token)
  @whatsapp_business_account_id = args[:whatsapp_business_account_id] if args.key?(:whatsapp_business_account_id)
  @whatsapp_business_token = args[:whatsapp_business_token] if args.key?(:whatsapp_business_token)
end