Google Cloud Commerce Consumer Procurement V1 Client - Class Order (1.2.1)

Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class Order.

Represents a purchase made by a customer on Cloud Marketplace.

Creating an order makes sure that both the Google backend systems as well as external service provider's systems (if needed) allow use of purchased products and ensures the appropriate billing events occur. An Order can be made against one Product with multiple add-ons (optional) or one Quote which might reference multiple products. Customers typically choose a price plan for each Product purchased when they create an order and can change their plan later, if the product allows.

Generated from protobuf message google.cloud.commerce.consumer.procurement.v1.Order

Namespace

Google \ Cloud \ Commerce \ Consumer \ Procurement \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. The resource name of the order. Has the form billingAccounts/{billing_account}/orders/{order}.

↳ display_namestring

Required. The user-specified name of the order.

↳ line_itemsarray<LineItem>

Output only. The items being purchased.

↳ cancelled_line_itemsarray<LineItem>

Output only. Line items that were cancelled.

↳ create_timeGoogle\Protobuf\Timestamp

Output only. The creation timestamp.

↳ update_timeGoogle\Protobuf\Timestamp

Output only. The last update timestamp.

↳ etagstring

The weak etag of the order.

getName

Output only. The resource name of the order.

Has the form billingAccounts/{billing_account}/orders/{order}.

Returns
TypeDescription
string

setName

Output only. The resource name of the order.

Has the form billingAccounts/{billing_account}/orders/{order}.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDisplayName

Required. The user-specified name of the order.

Returns
TypeDescription
string

setDisplayName

Required. The user-specified name of the order.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getLineItems

Output only. The items being purchased.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLineItems

Output only. The items being purchased.

Parameter
NameDescription
vararray<LineItem>
Returns
TypeDescription
$this

getCancelledLineItems

Output only. Line items that were cancelled.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCancelledLineItems

Output only. Line items that were cancelled.

Parameter
NameDescription
vararray<LineItem>
Returns
TypeDescription
$this

getCreateTime

Output only. The creation timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation timestamp.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The last update timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last update timestamp.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getEtag

The weak etag of the order.

Returns
TypeDescription
string

setEtag

The weak etag of the order.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this