Class MonetizationResource.SubscriptionsResource.BasePlansResource.OffersResource.CreateRequest
Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class CreateRequest : AndroidPublisherBaseServiceRequest<SubscriptionOffer>, IClientServiceRequest<SubscriptionOffer>, IClientServiceRequest
Constructors
CreateRequest(IClientService, SubscriptionOffer, String, String, String)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, SubscriptionOffer body, string packageName, string productId, string basePlanId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
SubscriptionOffer | body | |
System.String | packageName | |
System.String | productId | |
System.String | basePlanId |
Properties
BasePlanId
Required. The parent base plan (ID) for which the offer should be created. Must be equal to the base_plan_id field on the SubscriptionOffer resource.
Declaration
[RequestParameter("basePlanId", RequestParameterType.Path)]
public virtual string BasePlanId { get; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
OfferId
Required. The ID to use for the offer. For the requirements on this format, see the documentation of the offer_id field on the SubscriptionOffer resource.
Declaration
[RequestParameter("offerId", RequestParameterType.Query)]
public virtual string OfferId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PackageName
Required. The parent app (package name) for which the offer should be created. Must be equal to the package_name field on the Subscription resource.
Declaration
[RequestParameter("packageName", RequestParameterType.Path)]
public virtual string PackageName { get; }
Property Value
Type | Description |
---|---|
System.String |
ProductId
Required. The parent subscription (ID) for which the offer should be created. Must be equal to the product_id field on the SubscriptionOffer resource.
Declaration
[RequestParameter("productId", RequestParameterType.Path)]
public virtual string ProductId { get; }
Property Value
Type | Description |
---|---|
System.String |
RegionsVersionVersion
Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/02.
Declaration
[RequestParameter("regionsVersion.version", RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()