Class: Google::Apis::MerchantapiAccountsV1beta::TermsOfService
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::TermsOfService
- 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
-
#external ⇒ Boolean
(also: #external?)
Whether this terms of service version is external.
-
#file_uri ⇒ String
URI for terms of service file that needs to be displayed to signing users.
-
#kind ⇒ String
The Kind this terms of service version applies to.
-
#name ⇒ String
Identifier.
-
#region_code ⇒ String
Region code as defined by CLDR.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TermsOfService
constructor
A new instance of TermsOfService.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#external ⇒ Boolean 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
2676 2677 2678 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2676 def external @external end |
#file_uri ⇒ String
URI for terms of service file that needs to be displayed to signing users.
Corresponds to the JSON property fileUri
2682 2683 2684 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2682 def file_uri @file_uri end |
#kind ⇒ String
The Kind this terms of service version applies to.
Corresponds to the JSON property kind
2687 2688 2689 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2687 def kind @kind end |
#name ⇒ String
Identifier. The resource name of the terms of service version. Format:
termsOfService/
version`
Corresponds to the JSON property
name`
2693 2694 2695 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2693 def name @name end |
#region_code ⇒ String
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
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 |