Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class PlaceOrderRequest.
Request message for ConsumerProcurementService.PlaceOrder.
Generated from protobuf message google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest
Namespace
Google \ Cloud \ Commerce \ Consumer \ Procurement \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The resource name of the parent resource. This field has the form |
↳ display_name |
string
Required. The user-specified name of the order being placed. |
↳ line_item_info |
array<LineItemInfo>
Optional. Places order for offer. Required when an offer-based order is being placed. |
↳ request_id |
string
Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 24 hours after the first request. The request ID must be a valid UUID. |
getParent
Required. The resource name of the parent resource.
This field has the form billingAccounts/{billing-account-id}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The resource name of the parent resource.
This field has the form billingAccounts/{billing-account-id}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
Required. The user-specified name of the order being placed.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
Required. The user-specified name of the order being placed.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLineItemInfo
Optional. Places order for offer. Required when an offer-based order is being placed.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setLineItemInfo
Optional. Places order for offer. Required when an offer-based order is being placed.
| Parameter | |
|---|---|
| Name | Description |
var |
array<LineItemInfo>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRequestId
Optional. A unique identifier for this request.
The server will ignore subsequent requests that provide a duplicate request ID for at least 24 hours after the first request. The request ID must be a valid UUID.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRequestId
Optional. A unique identifier for this request.
The server will ignore subsequent requests that provide a duplicate request ID for at least 24 hours after the first request. The request ID must be a valid UUID.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|