- Resource: PurchaseOrder
- PurchaseOrderLineItem
- UnitLevelDetails
- PriceDetails
- SubscriptionDetails
- PurchaseOrderType
- Methods
Resource: PurchaseOrder
A purchase order resold via a third-party reseller.
JSON representation |
---|
{ "name": string, "partnerUserToken": string, "lineItems": [ { object ( |
Fields | |
---|---|
name |
Output only. Identifier. PurchaseOrder resource name in the format of: "partners/{partner_id}/purchaseorders/{purchaseOrderId}" |
partner |
Required. Identifier of the end-user in partner’s system. |
line |
Required. Purchase order line items. |
subscription |
Optional. Only populated if this order is related to a subscription, such as renewal or proration. |
PurchaseOrderLineItem
Purchase order line item.
JSON representation |
---|
{ "product": string, "description": string, "amount": { object ( |
Fields | |
---|---|
product |
Required. Product resource name in the format of partners/{partner_id}/products/{productId}. |
description |
Required. Description of this line item. |
amount |
Required. Line item amount. |
service |
Optional. Service period this purchase order line item is being delivered over. |
charged |
Optional. Details about units that are charged. |
refunded |
Optional. Details about units that are refunded. |
line |
Output only. A unique index of the purchase order line item. |
UnitLevelDetails
Details about a subset of units in a given process.
JSON representation |
---|
{
"priceDetails": {
object ( |
Fields | |
---|---|
price |
Optional. The pricing details about units in a given process. |
PriceDetails
A wrapper message containing various prices.
JSON representation |
---|
{ "pretaxAmount": { object ( |
Fields | |
---|---|
pretax |
Optional. The tax-exclusive amount. |
tax |
Optional. The amount of tax to collect. |
total |
Optional. The total cost, including tax. |
SubscriptionDetails
Details of the subscription this charge is related to.
JSON representation |
---|
{
"subscription": string,
"purchaseOrderType": enum ( |
Fields | |
---|---|
subscription |
Required. Subscription resource name in the format of: "partners/{partner_id}/subscription/{subscriptionId}" |
purchase |
Required. The type of the purchase order. |
PurchaseOrderType
The type of the purchase order.
Enums | |
---|---|
PURCHASE_ORDER_TYPE_UNSPECIFIED |
Purchase order type is unspecified. |
PURCHASE_ORDER_TYPE_RENEWAL |
This is a renewal purchase order. |
PURCHASE_ORDER_TYPE_PRORATION |
The is a proration purchase order. |
PURCHASE_ORDER_TYPE_ONE_TIME |
The is a one-time purchase order. |
PURCHASE_ORDER_TYPE_OFF_CYCLE_CHARGE |
The is an off cycle charge purchase order. |
Methods |
|
---|---|
|
Used by Google to check with reseller whether a charge for purchase order is authorized. |