Class: Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfService

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

Reference to a Terms of Service resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcceptTermsOfService

Returns a new instance of AcceptTermsOfService.



41
42
43
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 41

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

Instance Attribute Details

#nameString

Required. The resource name of the terms of service version. Corresponds to the JSON property name

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 32

def name
  @name
end

#region_codeString

Required. Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally. Corresponds to the JSON property regionCode

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 39

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 46

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