Class: Google::Apis::MerchantapiAccountsV1beta::TermsOfService

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

A TermsOfService.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TermsOfService

Returns a new instance of TermsOfService.



2705
2706
2707
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2705

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

Instance Attribute Details

#externalBoolean Also known as: external?

Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API. Corresponds to the JSON property external

Returns:

  • (Boolean)


2676
2677
2678
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2676

def external
  @external
end

#file_uriString

URI for terms of service file that needs to be displayed to signing users. Corresponds to the JSON property fileUri

Returns:

  • (String)


2682
2683
2684
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2682

def file_uri
  @file_uri
end

#kindString

The Kind this terms of service version applies to. Corresponds to the JSON property kind

Returns:

  • (String)


2687
2688
2689
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2687

def kind
  @kind
end

#nameString

Identifier. The resource name of the terms of service version. Format: termsOfService/version` Corresponds to the JSON propertyname`

Returns:

  • (String)


2693
2694
2695
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2693

def name
  @name
end

#region_codeString

Region code as defined by CLDR. This is either a country where the ToS applies specifically to that country or 001 when the same TermsOfService can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation). Corresponds to the JSON property regionCode

Returns:

  • (String)


2703
2704
2705
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2703

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2710
2711
2712
2713
2714
2715
2716
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2710

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