Resource: Product
A Product resource that defines a subscription service that can be resold.
JSON representation |
---|
{ "name": string, "titles": [ { object ( |
Fields | |
---|---|
name |
Identifier. Response only. Resource name of the product. It will have the format of "partners/{partner_id}/products/{productId}" |
titles[] |
Output only. Localized human readable name of the product. |
subscriptionBillingCycleDuration |
Output only. Specifies the length of the billing cycle of the subscription. |
regionCodes[] |
Output only. 2-letter ISO region code where the product is available in. Ex. "US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1 |
priceConfigs[] |
Output only. Price configs for the product in the available regions. |
productType |
Output only. Output Only. Specifies the type of the product. |
bundleDetails |
Output only. Output Only. Specifies the details for a bundle product. |
finiteBillingCycleDetails |
Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely. |
PriceConfig
Configs the prices in an available region.
JSON representation |
---|
{
"regionCode": string,
"amount": {
object ( |
Fields | |
---|---|
regionCode |
Output only. 2-letter ISO region code where the product is available in. Ex. "US". |
amount |
Output only. The price in the region. |
ProductType
The type of product.
Enums | |
---|---|
PRODUCT_TYPE_UNSPECIFIED |
Unspecified. It's reserved as an unexpected value, should not be used. |
PRODUCT_TYPE_SUBSCRIPTION |
The product is a subscription. |
PRODUCT_TYPE_BUNDLE_SUBSCRIPTION |
The product is a bundled subscription plan, which includes multiple subscription elements. |
BundleDetails
Details for a bundle product.
JSON representation |
---|
{ "bundleElements": [ { object ( |
Fields | |
---|---|
bundleElements[] |
The individual products that are included in the bundle. |
entitlementMode |
The entitlement mode of the bundle product. |
BundleElement
The individual product that is included in the bundle.
JSON representation |
---|
{ "product": string } |
Fields | |
---|---|
product |
Required. Output only. Product resource name that identifies the bundle element. The format is 'partners/{partner_id}/products/{productId}'. |
EntitlementMode
The entitlement mode of a bundle product.
Enums | |
---|---|
ENTITLEMENT_MODE_UNSPECIFIED |
Unspecified. It's reserved as an unexpected value, should not be used. |
ENTITLEMENT_MODE_FULL |
All the bundle elements must be fully activated in a single request. |
ENTITLEMENT_MODE_INCREMENTAL |
The bundle elements could be incrementally activated. |
Methods |
|
---|---|
|
To retrieve the products that can be resold by the partner. |