Class: Google::Apis::MerchantapiAccountsV1beta::Requirement

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

Defines a requirement specified for participation in the program.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Requirement

Returns a new instance of Requirement.



2209
2210
2211
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2209

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

Instance Attribute Details

#affected_region_codesArray<String>

Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally. Corresponds to the JSON property affectedRegionCodes

Returns:

  • (Array<String>)


2197
2198
2199
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2197

def affected_region_codes
  @affected_region_codes
end

#documentation_uriString

Output only. The URL of a help page describing the requirement. Corresponds to the JSON property documentationUri

Returns:

  • (String)


2202
2203
2204
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2202

def documentation_uri
  @documentation_uri
end

#titleString

Output only. Name of the requirement. Corresponds to the JSON property title

Returns:

  • (String)


2207
2208
2209
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2207

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2214
2215
2216
2217
2218
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2214

def update!(**args)
  @affected_region_codes = args[:affected_region_codes] if args.key?(:affected_region_codes)
  @documentation_uri = args[:documentation_uri] if args.key?(:documentation_uri)
  @title = args[:title] if args.key?(:title)
end