Reference documentation and code samples for the Google Shopping Merchant Order Tracking V1beta Client class LineItemDetails.
The line items of the order.
Generated from protobuf message google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails
Namespace
Google \ Shopping \ Merchant \ OrderTracking \ V1beta \ OrderTrackingSignalMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ line_item_id |
string
Required. The ID for this line item. |
↳ product_id |
string
Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId. |
↳ gtin |
string
Optional. The Global Trade Item Number. |
↳ mpn |
string
Optional. The manufacturer part number. |
↳ product_title |
string
Optional. Plain text title of this product. |
↳ brand |
string
Optional. Brand of the product. |
↳ quantity |
int|string
Required. The quantity of the line item in the order. |
getLineItemId
Required. The ID for this line item.
Returns | |
---|---|
Type | Description |
string |
setLineItemId
Required. The ID for this line item.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getProductId
Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
Returns | |
---|---|
Type | Description |
string |
setProductId
Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getGtin
Optional. The Global Trade Item Number.
Returns | |
---|---|
Type | Description |
string |
setGtin
Optional. The Global Trade Item Number.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getMpn
Optional. The manufacturer part number.
Returns | |
---|---|
Type | Description |
string |
setMpn
Optional. The manufacturer part number.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getProductTitle
Optional. Plain text title of this product.
Returns | |
---|---|
Type | Description |
string |
hasProductTitle
clearProductTitle
setProductTitle
Optional. Plain text title of this product.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getBrand
Optional. Brand of the product.
Returns | |
---|---|
Type | Description |
string |
hasBrand
clearBrand
setBrand
Optional. Brand of the product.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getQuantity
Required. The quantity of the line item in the order.
Returns | |
---|---|
Type | Description |
int|string |
setQuantity
Required. The quantity of the line item in the order.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |