Class: Google::Apis::MerchantapiAccountsV1beta::InStock
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::InStock
- 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
-
#state ⇒ String
Output only.
-
#uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InStock
constructor
A new instance of InStock.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InStock
Returns a new instance of InStock.
1961 1962 1963 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1961 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
Output only. The state of the in-stock serving.
Corresponds to the JSON property state
1951 1952 1953 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1951 def state @state end |
#uri ⇒ String
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
1959 1960 1961 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1959 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1966 1967 1968 1969 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1966 def update!(**args) @state = args[:state] if args.key?(:state) @uri = args[:uri] if args.key?(:uri) end |