Class: Google::Apis::MerchantapiAccountsV1beta::InStock

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

Collection of information related to InStock.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InStock

Returns a new instance of InStock.



1955
1956
1957
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1955

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

Instance Attribute Details

#stateString

Output only. The state of the in-stock serving. Corresponds to the JSON property state

Returns:

  • (String)


1945
1946
1947
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1945

def state
  @state
end

#uriString

Optional. Product landing page URI. It is only used for the review of MHLSF in- stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC. Corresponds to the JSON property uri

Returns:

  • (String)


1953
1954
1955
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1953

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1960
1961
1962
1963
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1960

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