Class: Google::Apis::CesV1::WhatsAppCredentials
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::WhatsAppCredentials
- 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
Ephemeral Meta credentials for WhatsApp native integration.
Instance Attribute Summary collapse
-
#auth_code ⇒ String
Required.
-
#business_account_id ⇒ String
Required.
-
#conversation_profile_id ⇒ String
Optional.
-
#phone_number ⇒ String
Required.
-
#pin ⇒ String
Required.
-
#waba_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WhatsAppCredentials
constructor
A new instance of WhatsAppCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WhatsAppCredentials
Returns a new instance of WhatsAppCredentials.
8591 8592 8593 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_code ⇒ String
Required. The Meta auth code provided by the embedded signup flow.
Corresponds to the JSON property authCode
8564 8565 8566 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8564 def auth_code @auth_code end |
#business_account_id ⇒ String
Required. The Business Account ID to use for the phone number.
Corresponds to the JSON property businessAccountId
8569 8570 8571 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8569 def business_account_id @business_account_id end |
#conversation_profile_id ⇒ String
Optional. The Conversation Profile ID to use for the deployment.
Corresponds to the JSON property conversationProfileId
8574 8575 8576 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8574 def conversation_profile_id @conversation_profile_id end |
#phone_number ⇒ String
Required. The phone number to register with WhatsApp.
Corresponds to the JSON property phoneNumber
8579 8580 8581 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8579 def phone_number @phone_number end |
#pin ⇒ String
Required. The 6-digit PIN created by the user for two-step verification.
Corresponds to the JSON property pin
8584 8585 8586 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8584 def pin @pin end |
#waba_id ⇒ String
Required. The WhatsApp Business Account ID.
Corresponds to the JSON property wabaId
8589 8590 8591 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8589 def waba_id @waba_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8596 8597 8598 8599 8600 8601 8602 8603 |
# File 'lib/google/apis/ces_v1/classes.rb', line 8596 def update!(**args) @auth_code = args[:auth_code] if args.key?(:auth_code) @business_account_id = args[:business_account_id] if args.key?(:business_account_id) @conversation_profile_id = args[:conversation_profile_id] if args.key?(:conversation_profile_id) @phone_number = args[:phone_number] if args.key?(:phone_number) @pin = args[:pin] if args.key?(:pin) @waba_id = args[:waba_id] if args.key?(:waba_id) end |