Class: Google::Apis::MerchantapiLfpV1beta::LfpMerchantState
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiLfpV1beta::LfpMerchantState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_lfp_v1beta/classes.rb,
lib/google/apis/merchantapi_lfp_v1beta/representations.rb,
lib/google/apis/merchantapi_lfp_v1beta/representations.rb
Overview
The LFP state of a merchant.
Instance Attribute Summary collapse
-
#country_settings ⇒ Array<Google::Apis::MerchantapiLfpV1beta::CountrySettings>
Country-specific settings for the merchant.
-
#inventory_stats ⇒ Google::Apis::MerchantapiLfpV1beta::InventoryStats
The inventory statistics for a merchant.
-
#linked_gbps ⇒ Fixnum
Number of GBPs this merchant has access to.
-
#name ⇒ String
Identifier.
-
#store_states ⇒ Array<Google::Apis::MerchantapiLfpV1beta::LfpStoreState>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LfpMerchantState
constructor
A new instance of LfpMerchantState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LfpMerchantState
Returns a new instance of LfpMerchantState.
288 289 290 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_settings ⇒ Array<Google::Apis::MerchantapiLfpV1beta::CountrySettings>
Country-specific settings for the merchant.
Corresponds to the JSON property countrySettings
263 264 265 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 263 def country_settings @country_settings end |
#inventory_stats ⇒ Google::Apis::MerchantapiLfpV1beta::InventoryStats
The inventory statistics for a merchant.
Corresponds to the JSON property inventoryStats
268 269 270 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 268 def inventory_stats @inventory_stats end |
#linked_gbps ⇒ Fixnum
Number of GBPs this merchant has access to.
Corresponds to the JSON property linkedGbps
273 274 275 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 273 def linked_gbps @linked_gbps end |
#name ⇒ String
Identifier. The name of the LfpMerchantState resource. Format: accounts/
account/lfpMerchantStates/target_merchant`. For example,accounts/123456/
lfpMerchantStates/567890.
Corresponds to the JSON propertyname`
280 281 282 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 280 def name @name end |
#store_states ⇒ Array<Google::Apis::MerchantapiLfpV1beta::LfpStoreState>
Output only. The state per store from the specified merchant. The field will
be absent if the merchant has no stores submitted through LFP.
Corresponds to the JSON property storeStates
286 287 288 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 286 def store_states @store_states end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
293 294 295 296 297 298 299 |
# File 'lib/google/apis/merchantapi_lfp_v1beta/classes.rb', line 293 def update!(**args) @country_settings = args[:country_settings] if args.key?(:country_settings) @inventory_stats = args[:inventory_stats] if args.key?(:inventory_stats) @linked_gbps = args[:linked_gbps] if args.key?(:linked_gbps) @name = args[:name] if args.key?(:name) @store_states = args[:store_states] if args.key?(:store_states) end |