Google Cloud Commerce Consumer Procurement V1 Client - Class Order (0.1.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
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ display_name string

Required. The user-specified name of the order.

↳ line_items array<Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem>

Output only. The items being purchased.

↳ cancelled_line_items array<Google\Cloud\Commerce\Consumer\Procurement\V1\LineItem>

Output only. Line items that were cancelled.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation timestamp.

↳ update_time Google\Protobuf\Timestamp

Output only. The last update timestamp.

↳ etag string

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
var string
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
var string
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
var array<Google\Cloud\Commerce\Consumer\Procurement\V1\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
var array<Google\Cloud\Commerce\Consumer\Procurement\V1\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
var Google\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
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEtag

The weak etag of the order.

Returns
TypeDescription
string

setEtag

The weak etag of the order.

Parameter
NameDescription
var string
Returns
TypeDescription
$this