Reference documentation and code samples for the Google Shopping Merchant Order Tracking V1 Client class ShipmentLineItemMapping.
Represents how many items are in the shipment for the given shipment_id and line_item_id.
Generated from protobuf message google.shopping.merchant.ordertracking.v1.OrderTrackingSignal.ShipmentLineItemMapping
Namespace
Google \ Shopping \ Merchant \ OrderTracking \ V1 \ OrderTrackingSignalMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
data | 
        
          array
          Optional. Data for populating the Message object.  | 
      
↳ shipment_id | 
        
          string
          Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.  | 
      
↳ line_item_id | 
        
          string
          Required. The line item ID.  | 
      
↳ quantity | 
        
          int|string
          Required. The line item quantity in the shipment.  | 
      
getShipmentId
Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
| Returns | |
|---|---|
| Type | Description | 
string | 
        |
setShipmentId
Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          string
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getLineItemId
Required. The line item ID.
| Returns | |
|---|---|
| Type | Description | 
string | 
        |
setLineItemId
Required. The line item ID.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          string
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getQuantity
Required. The line item quantity in the shipment.
| Returns | |
|---|---|
| Type | Description | 
int|string | 
        |
setQuantity
Required. The line item quantity in the shipment.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          int|string
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |