Class: Google::Apis::CesV1::ChannelProfileWhatsAppConfig

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

Configuration specific to WhatsApp deployments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelProfileWhatsAppConfig

Returns a new instance of ChannelProfileWhatsAppConfig.



1676
1677
1678
# File 'lib/google/apis/ces_v1/classes.rb', line 1676

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

Instance Attribute Details

#descriptionString

Output only. The description of the Meta business page or profile. Corresponds to the JSON property description

Returns:

  • (String)


1649
1650
1651
# File 'lib/google/apis/ces_v1/classes.rb', line 1649

def description
  @description
end

#display_nameString

Output only. The fetched Meta business page name. Corresponds to the JSON property displayName

Returns:

  • (String)


1654
1655
1656
# File 'lib/google/apis/ces_v1/classes.rb', line 1654

def display_name
  @display_name
end

#phone_numberString

Optional. The phone number in E.164 format. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


1659
1660
1661
# File 'lib/google/apis/ces_v1/classes.rb', line 1659

def phone_number
  @phone_number
end

#phone_number_idString

Required. The Meta phone number ID. Corresponds to the JSON property phoneNumberId

Returns:

  • (String)


1664
1665
1666
# File 'lib/google/apis/ces_v1/classes.rb', line 1664

def phone_number_id
  @phone_number_id
end

#thumbnail_urlString

Output only. The fetched Meta business profile thumbnail URL. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


1669
1670
1671
# File 'lib/google/apis/ces_v1/classes.rb', line 1669

def thumbnail_url
  @thumbnail_url
end

#waba_idString

Required. The WhatsApp Business Account ID. Corresponds to the JSON property wabaId

Returns:

  • (String)


1674
1675
1676
# File 'lib/google/apis/ces_v1/classes.rb', line 1674

def waba_id
  @waba_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1681
1682
1683
1684
1685
1686
1687
1688
# File 'lib/google/apis/ces_v1/classes.rb', line 1681

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @phone_number_id = args[:phone_number_id] if args.key?(:phone_number_id)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
  @waba_id = args[:waba_id] if args.key?(:waba_id)
end