Class: Google::Apis::MerchantapiAccountsV1beta::Required

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

Describes the terms of service which are required to be accepted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Required

Returns a new instance of Required.



2176
2177
2178
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2176

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

Instance Attribute Details

#terms_of_serviceString

The termsOfService that need to be accepted. Corresponds to the JSON property termsOfService

Returns:

  • (String)


2167
2168
2169
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2167

def terms_of_service
  @terms_of_service
end

#tos_file_uriString

Full URL to the terms of service file. This field is the same as TermsOfService.file_uri, it is added here for convenience only. Corresponds to the JSON property tosFileUri

Returns:

  • (String)


2174
2175
2176
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2174

def tos_file_uri
  @tos_file_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2181
2182
2183
2184
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2181

def update!(**args)
  @terms_of_service = args[:terms_of_service] if args.key?(:terms_of_service)
  @tos_file_uri = args[:tos_file_uri] if args.key?(:tos_file_uri)
end