Class: Google::Apis::MerchantapiAccountsV1beta::Required
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::Required
- 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
-
#terms_of_service ⇒ String
Required.
-
#tos_file_uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Required
constructor
A new instance of Required.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Required
Returns a new instance of Required.
3701 3702 3703 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3701 def initialize(**args) update!(**args) end |
Instance Attribute Details
#terms_of_service ⇒ String
Required. The TermsOfService that need to be accepted.
Corresponds to the JSON property termsOfService
3693 3694 3695 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3693 def terms_of_service @terms_of_service end |
#tos_file_uri ⇒ String
Required. 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
3699 3700 3701 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3699 def tos_file_uri @tos_file_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3706 3707 3708 3709 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3706 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 |