- 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}" |
partnerUserToken |
Required. Identifier of the end-user in partner’s system. |
lineItems[] |
Required. Purchase order line items. |
subscriptionDetails |
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. |
servicePeriod |
Optional. Service period this purchase order line item is being delivered over. |
chargedDetails |
Optional. Details about units that are charged. |
refundedDetails |
Optional. Details about units that are refunded. |
lineItemIndex |
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 | |
---|---|
priceDetails |
Optional. The pricing details about units in a given process. |
PriceDetails
A wrapper message containing various prices.
JSON representation |
---|
{ "pretaxAmount": { object ( |
Fields | |
---|---|
pretaxAmount |
Optional. The tax-exclusive amount. |
taxAmount |
Optional. The amount of tax to collect. |
totalAmount |
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}" |
purchaseOrderType |
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. |