target.apidocs.com.google.api.services.paymentsresellersubscription.v1.PaymentsResellerSubscription.Partners.Promotions.html Maven / Gradle / Ivy
PaymentsResellerSubscription.Partners.Promotions (Payments Reseller Subscription API v1-rev20241105-2.0.0)
com.google.api.services.paymentsresellersubscription.v1
Class PaymentsResellerSubscription.Partners.Promotions
- java.lang.Object
-
- com.google.api.services.paymentsresellersubscription.v1.PaymentsResellerSubscription.Partners.Promotions
-
- Enclosing class:
- PaymentsResellerSubscription.Partners
public class PaymentsResellerSubscription.Partners.Promotions
extends Object
The "promotions" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
PaymentsResellerSubscription.Partners.Promotions.FindEligible
class
PaymentsResellerSubscription.Partners.Promotions.List
-
Constructor Summary
Constructors
Constructor and Description
Promotions()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PaymentsResellerSubscription.Partners.Promotions.FindEligible
findEligible(String parent,
GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest content)
To find eligible promotions for the current user.
PaymentsResellerSubscription.Partners.Promotions.List
list(String parent)
Retrieves the promotions, such as free trial, that can be used by the partner.
-
-
Method Detail
-
findEligible
public PaymentsResellerSubscription.Partners.Promotions.FindEligible findEligible(String parent,
GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest content)
throws IOException
To find eligible promotions for the current user. The API requires user authorization via OAuth.
The bare minimum oauth scope `openid` is sufficient, which will skip the consent screen.
Create a request for the method "promotions.findEligible".
This request holds the parameters needed by the paymentsresellersubscription server. After
setting any optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the
remote operation.
- Parameters:
parent
- Required. The parent, the partner that can resell. Format: partners/{partner}
content
- the GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest
- Returns:
- the request
- Throws:
IOException
-
list
public PaymentsResellerSubscription.Partners.Promotions.List list(String parent)
throws IOException
Retrieves the promotions, such as free trial, that can be used by the partner. - This API doesn't
apply to YouTube promotions currently. It should be autenticated with a service account.
Create a request for the method "promotions.list".
This request holds the parameters needed by the paymentsresellersubscription server. After
setting any optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
parent
- Required. The parent, the partner that can resell. Format: partners/{partner}
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy