Google Cloud Commerce Consumer Procurement V1 Client - Class PlaceOrderRequest (0.1.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the parent resource. This field has the form billingAccounts/{billing-account-id}.

↳ display_name string

Required. The user-specified name of the order being placed.

↳ line_item_info array<Google\Cloud\Commerce\Consumer\Procurement\V1\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 120 minutes 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
TypeDescription
string

setParent

Required. The resource name of the parent resource.

This field has the form billingAccounts/{billing-account-id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The user-specified name of the order being placed.

Returns
TypeDescription
string

setDisplayName

Required. The user-specified name of the order being placed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLineItemInfo

Optional. Places order for offer. Required when an offer-based order is being placed.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLineItemInfo

Optional. Places order for offer. Required when an offer-based order is being placed.

Parameter
NameDescription
var array<Google\Cloud\Commerce\Consumer\Procurement\V1\LineItemInfo>
Returns
TypeDescription
$this

getRequestId

Optional. A unique identifier for this request.

The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request. The request ID must be a valid UUID.

Returns
TypeDescription
string

setRequestId

Optional. A unique identifier for this request.

The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request. The request ID must be a valid UUID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this