Show / Hide Table of Contents

Class MonetizationResource.OnetimeproductsResource

The "onetimeproducts" collection of methods.

Inheritance
object
MonetizationResource.OnetimeproductsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class MonetizationResource.OnetimeproductsResource

Constructors

OnetimeproductsResource(IClientService)

Constructs a new resource.

Declaration
public OnetimeproductsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

PurchaseOptions

Gets the PurchaseOptions resource.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource PurchaseOptions { get; }
Property Value
Type Description
MonetizationResource.OnetimeproductsResource.PurchaseOptionsResource

Methods

BatchDelete(BatchDeleteOneTimeProductsRequest, string)

Deletes one or more one-time products.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.BatchDeleteRequest BatchDelete(BatchDeleteOneTimeProductsRequest body, string packageName)
Parameters
Type Name Description
BatchDeleteOneTimeProductsRequest body

The body of the request.

string packageName

Required. The parent app (package name) for which the one-time products should be deleted. Must be equal to the package_name field on all the OneTimeProduct resources.

Returns
Type Description
MonetizationResource.OnetimeproductsResource.BatchDeleteRequest

BatchGet(string)

Reads one or more one-time products.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.BatchGetRequest BatchGet(string packageName)
Parameters
Type Name Description
string packageName

Required. The parent app (package name) for which the products should be retrieved. Must be equal to the package_name field on all requests.

Returns
Type Description
MonetizationResource.OnetimeproductsResource.BatchGetRequest

BatchUpdate(BatchUpdateOneTimeProductsRequest, string)

Creates or updates one or more one-time products.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.BatchUpdateRequest BatchUpdate(BatchUpdateOneTimeProductsRequest body, string packageName)
Parameters
Type Name Description
BatchUpdateOneTimeProductsRequest body

The body of the request.

string packageName

Required. The parent app (package name) for which the one-time products should be updated. Must be equal to the package_name field on all the OneTimeProduct resources.

Returns
Type Description
MonetizationResource.OnetimeproductsResource.BatchUpdateRequest

Delete(string, string)

Deletes a one-time product.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.DeleteRequest Delete(string packageName, string productId)
Parameters
Type Name Description
string packageName

Required. The parent app (package name) of the one-time product to delete.

string productId

Required. The one-time product ID of the one-time product to delete.

Returns
Type Description
MonetizationResource.OnetimeproductsResource.DeleteRequest

Get(string, string)

Reads a single one-time product.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.GetRequest Get(string packageName, string productId)
Parameters
Type Name Description
string packageName

Required. The parent app (package name) of the product to retrieve.

string productId

Required. The product ID of the product to retrieve.

Returns
Type Description
MonetizationResource.OnetimeproductsResource.GetRequest

List(string)

Lists all one-time products under a given app.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.ListRequest List(string packageName)
Parameters
Type Name Description
string packageName

Required. The parent app (package name) for which the one-time product should be read.

Returns
Type Description
MonetizationResource.OnetimeproductsResource.ListRequest

Patch(OneTimeProduct, string, string)

Creates or updates a one-time product.

Declaration
public virtual MonetizationResource.OnetimeproductsResource.PatchRequest Patch(OneTimeProduct body, string packageName, string productId)
Parameters
Type Name Description
OneTimeProduct body

The body of the request.

string packageName

Required. Immutable. Package name of the parent app.

string productId

Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).

Returns
Type Description
MonetizationResource.OnetimeproductsResource.PatchRequest
In this article
Back to top Generated by DocFX