Reference documentation and code samples for the Google Shopping Merchant Lfp V1beta Client class LfpSale.
A sale for the merchant.
Generated from protobuf message google.shopping.merchant.lfp.v1beta.LfpSale
Namespace
Google \ Shopping \ Merchant \ Lfp \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. The name of the LfpSale
resource. Format: accounts/{account}/lfpSales/{sale}
↳ target_account
int|string
Required. The Merchant Center ID of the merchant to submit the sale for.
↳ store_code
string
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.
↳ offer_id
string
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.
↳ region_code
↳ content_language
string
Required. The two-letter ISO 639-1 language code for the item.
↳ gtin
string
Required. The Global Trade Item Number of the sold product.
↳ price
↳ quantity
int|string
Required. The relative change of the available quantity. Negative for items returned.
↳ sale_time
↳ uid
string
Output only. System generated globally unique ID for the LfpSale
.
↳ feed_label
string
Optional. The feed label
for the product. If this is not set, it will default to regionCode
.
getName
Output only. Identifier. The name of the LfpSale
resource.
Format: accounts/{account}/lfpSales/{sale}
string
setName
Output only. Identifier. The name of the LfpSale
resource.
Format: accounts/{account}/lfpSales/{sale}
var
string
$this
getTargetAccount
Required. The Merchant Center ID of the merchant to submit the sale for.
int|string
setTargetAccount
Required. The Merchant Center ID of the merchant to submit the sale for.
var
int|string
$this
getStoreCode
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.
string
setStoreCode
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.
var
string
$this
getOfferId
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.
string
setOfferId
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.
var
string
$this
getRegionCode
Required. The CLDR territory code for the country where the product is sold.
string
setRegionCode
Required. The CLDR territory code for the country where the product is sold.
var
string
$this
getContentLanguage
Required. The two-letter ISO 639-1 language code for the item.
string
setContentLanguage
Required. The two-letter ISO 639-1 language code for the item.
var
string
$this
getGtin
Required. The Global Trade Item Number of the sold product.
string
setGtin
Required. The Global Trade Item Number of the sold product.
var
string
$this
getPrice
Required. The unit price of the product.
hasPrice
clearPrice
setPrice
Required. The unit price of the product.
$this
getQuantity
Required. The relative change of the available quantity. Negative for items returned.
int|string
setQuantity
Required. The relative change of the available quantity. Negative for items returned.
var
int|string
$this
getSaleTime
Required. The timestamp for the sale.
hasSaleTime
clearSaleTime
setSaleTime
Required. The timestamp for the sale.
$this
getUid
Output only. System generated globally unique ID for the LfpSale
.
string
hasUid
clearUid
setUid
Output only. System generated globally unique ID for the LfpSale
.
var
string
$this
getFeedLabel
Optional. The feed
label
for the product. If this is not set, it will default to regionCode
.
string
hasFeedLabel
clearFeedLabel
setFeedLabel
Optional. The feed
label
for the product. If this is not set, it will default to regionCode
.
var
string
$this