Reference documentation and code samples for the Google Shopping Merchant Order Tracking V1 Client class LineItemDetails.
The line items of the order.
Generated from protobuf message google.shopping.merchant.ordertracking.v1.OrderTrackingSignal.LineItemDetails
Namespace
Google \ Shopping \ Merchant \ OrderTracking \ V1 \ 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. |
↳ gtins |
array
Optional. The Global Trade Item Numbers. |
↳ 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 |
|
getGtins
Optional. The Global Trade Item Numbers.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setGtins
Optional. The Global Trade Item Numbers.
| 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 |
|