Class: Google::Apis::CesV1::WhatsAppCredentials

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

Ephemeral Meta credentials for WhatsApp native integration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WhatsAppCredentials

Returns a new instance of WhatsAppCredentials.



8565
8566
8567
# File 'lib/google/apis/ces_v1/classes.rb', line 8565

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

Instance Attribute Details

#auth_codeString

Required. The Meta auth code provided by the embedded signup flow. Corresponds to the JSON property authCode

Returns:

  • (String)


8538
8539
8540
# File 'lib/google/apis/ces_v1/classes.rb', line 8538

def auth_code
  @auth_code
end

#business_account_idString

Required. The Business Account ID to use for the phone number. Corresponds to the JSON property businessAccountId

Returns:

  • (String)


8543
8544
8545
# File 'lib/google/apis/ces_v1/classes.rb', line 8543

def 
  @business_account_id
end

#conversation_profile_idString

Optional. The Conversation Profile ID to use for the deployment. Corresponds to the JSON property conversationProfileId

Returns:

  • (String)


8548
8549
8550
# File 'lib/google/apis/ces_v1/classes.rb', line 8548

def conversation_profile_id
  @conversation_profile_id
end

#phone_numberString

Required. The phone number to register with WhatsApp. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


8553
8554
8555
# File 'lib/google/apis/ces_v1/classes.rb', line 8553

def phone_number
  @phone_number
end

#pinString

Required. The 6-digit PIN created by the user for two-step verification. Corresponds to the JSON property pin

Returns:

  • (String)


8558
8559
8560
# File 'lib/google/apis/ces_v1/classes.rb', line 8558

def pin
  @pin
end

#waba_idString

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

Returns:

  • (String)


8563
8564
8565
# File 'lib/google/apis/ces_v1/classes.rb', line 8563

def waba_id
  @waba_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8570
8571
8572
8573
8574
8575
8576
8577
# File 'lib/google/apis/ces_v1/classes.rb', line 8570

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