Class: Google::Shopping::Merchant::Lfp::V1beta::LfpSale
- Inherits:
-
Object
- Object
- Google::Shopping::Merchant::Lfp::V1beta::LfpSale
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb
Overview
A sale for the merchant.
Instance Attribute Summary collapse
-
#content_language ⇒ ::String
Required.
-
#feed_label ⇒ ::String
Optional.
-
#gtin ⇒ ::String
Required.
-
#name ⇒ ::String
readonly
Output only.
-
#offer_id ⇒ ::String
Required.
-
#price ⇒ ::Google::Shopping::Type::Price
Required.
-
#quantity ⇒ ::Integer
Required.
-
#region_code ⇒ ::String
Required.
-
#sale_time ⇒ ::Google::Protobuf::Timestamp
Required.
-
#store_code ⇒ ::String
Required.
-
#target_account ⇒ ::Integer
Required.
-
#uid ⇒ ::String
readonly
Output only.
Instance Attribute Details
#content_language ⇒ ::String
Returns Required. The two-letter ISO 639-1 language code for the item.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#feed_label ⇒ ::String
Returns Optional. The feed
label
for the product. If this is not set, it will default to regionCode
.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#gtin ⇒ ::String
Returns Required. The Global Trade Item Number of the sold product.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String (readonly)
Returns Output only. Identifier. The name of the LfpSale
resource.
Format:
accounts/{account}/lfpSales/{sale}
.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#offer_id ⇒ ::String
Returns Required. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product.
Note: if the merchant sells the same product new and used, they should have different IDs.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#price ⇒ ::Google::Shopping::Type::Price
Returns Required. The unit price of the product.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#quantity ⇒ ::Integer
Required. The relative change of the available quantity. Negative for items returned.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#region_code ⇒ ::String
Returns Required. The CLDR territory code for the country where the product is sold.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#sale_time ⇒ ::Google::Protobuf::Timestamp
Returns Required. The timestamp for the sale.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#store_code ⇒ ::String
Returns Required. The identifier of the merchant's store. Either a storeCode
inserted through the API or the code of the store in the Business Profile.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#target_account ⇒ ::Integer
Returns Required. The Merchant Center ID of the merchant to submit the sale for.
75 76 77 78 |
# File 'proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb', line 75 class LfpSale include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |