Class: Google::Apis::MerchantapiAccountsV1beta::CreateAndConfigureAccountRequest

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

Overview

Request message for the CreateAndConfigureAccount method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateAndConfigureAccountRequest

Returns a new instance of CreateAndConfigureAccountRequest.



543
544
545
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 543

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

Instance Attribute Details

#accept_terms_of_serviceGoogle::Apis::MerchantapiAccountsV1beta::AcceptTermsOfService

Reference to a Terms of Service resource. Corresponds to the JSON property acceptTermsOfService



525
526
527
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 525

def accept_terms_of_service
  @accept_terms_of_service
end

#accountGoogle::Apis::MerchantapiAccountsV1beta::Account

An account. Corresponds to the JSON property account



530
531
532
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 530

def 
  @account
end

#serviceArray<Google::Apis::MerchantapiAccountsV1beta::AddAccountService>

Optional. If specified, an account service between the account to be created and the provider account is initialized as part of the creation. Corresponds to the JSON property service



536
537
538
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 536

def service
  @service
end

#usersArray<Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest>

Optional. Users to be added to the account. Corresponds to the JSON property users



541
542
543
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 541

def users
  @users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



548
549
550
551
552
553
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 548

def update!(**args)
  @accept_terms_of_service = args[:accept_terms_of_service] if args.key?(:accept_terms_of_service)
  @account = args[:account] if args.key?(:account)
  @service = args[:service] if args.key?(:service)
  @users = args[:users] if args.key?(:users)
end