@@ -16640,6 +16640,180 @@ public Get set(String parameterName, Object value) {
16640
16640
}
16641
16641
}
16642
16642
16643
+ }
16644
+ /**
16645
+ * An accessor for creating requests from the Productsv2 collection.
16646
+ *
16647
+ * <p>The typical use is:</p>
16648
+ * <pre>
16649
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
16650
+ * {@code AndroidPublisher.Productsv2.List request = androidpublisher.productsv2().list(parameters ...)}
16651
+ * </pre>
16652
+ *
16653
+ * @return the resource collection
16654
+ */
16655
+ public Productsv2 productsv2() {
16656
+ return new Productsv2();
16657
+ }
16658
+
16659
+ /**
16660
+ * The "productsv2" collection of methods.
16661
+ */
16662
+ public class Productsv2 {
16663
+
16664
+ /**
16665
+ * Checks the purchase and consumption status of an inapp item.
16666
+ *
16667
+ * Create a request for the method "productsv2.getproductpurchasev2".
16668
+ *
16669
+ * This request holds the parameters needed by the androidpublisher server. After setting any
16670
+ * optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the remote
16671
+ * operation.
16672
+ *
16673
+ * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
16674
+ * @param token The token provided to the user's device when the inapp product was purchased.
16675
+ * @return the request
16676
+ */
16677
+ public Getproductpurchasev2 getproductpurchasev2(java.lang.String packageName, java.lang.String token) throws java.io.IOException {
16678
+ Getproductpurchasev2 result = new Getproductpurchasev2(packageName, token);
16679
+ initialize(result);
16680
+ return result;
16681
+ }
16682
+
16683
+ public class Getproductpurchasev2 extends AndroidPublisherRequest<com.google.api.services.androidpublisher.model.ProductPurchaseV2> {
16684
+
16685
+ private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}";
16686
+
16687
+ /**
16688
+ * Checks the purchase and consumption status of an inapp item.
16689
+ *
16690
+ * Create a request for the method "productsv2.getproductpurchasev2".
16691
+ *
16692
+ * This request holds the parameters needed by the the androidpublisher server. After setting any
16693
+ * optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the
16694
+ * remote operation. <p> {@link Getproductpurchasev2#initialize(com.google.api.client.googleapis.s
16695
+ * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
16696
+ * after invoking the constructor. </p>
16697
+ *
16698
+ * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
16699
+ * @param token The token provided to the user's device when the inapp product was purchased.
16700
+ * @since 1.13
16701
+ */
16702
+ protected Getproductpurchasev2(java.lang.String packageName, java.lang.String token) {
16703
+ super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ProductPurchaseV2.class);
16704
+ this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified.");
16705
+ this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified.");
16706
+ }
16707
+
16708
+ @Override
16709
+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
16710
+ return super.executeUsingHead();
16711
+ }
16712
+
16713
+ @Override
16714
+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
16715
+ return super.buildHttpRequestUsingHead();
16716
+ }
16717
+
16718
+ @Override
16719
+ public Getproductpurchasev2 set$Xgafv(java.lang.String $Xgafv) {
16720
+ return (Getproductpurchasev2) super.set$Xgafv($Xgafv);
16721
+ }
16722
+
16723
+ @Override
16724
+ public Getproductpurchasev2 setAccessToken(java.lang.String accessToken) {
16725
+ return (Getproductpurchasev2) super.setAccessToken(accessToken);
16726
+ }
16727
+
16728
+ @Override
16729
+ public Getproductpurchasev2 setAlt(java.lang.String alt) {
16730
+ return (Getproductpurchasev2) super.setAlt(alt);
16731
+ }
16732
+
16733
+ @Override
16734
+ public Getproductpurchasev2 setCallback(java.lang.String callback) {
16735
+ return (Getproductpurchasev2) super.setCallback(callback);
16736
+ }
16737
+
16738
+ @Override
16739
+ public Getproductpurchasev2 setFields(java.lang.String fields) {
16740
+ return (Getproductpurchasev2) super.setFields(fields);
16741
+ }
16742
+
16743
+ @Override
16744
+ public Getproductpurchasev2 setKey(java.lang.String key) {
16745
+ return (Getproductpurchasev2) super.setKey(key);
16746
+ }
16747
+
16748
+ @Override
16749
+ public Getproductpurchasev2 setOauthToken(java.lang.String oauthToken) {
16750
+ return (Getproductpurchasev2) super.setOauthToken(oauthToken);
16751
+ }
16752
+
16753
+ @Override
16754
+ public Getproductpurchasev2 setPrettyPrint(java.lang.Boolean prettyPrint) {
16755
+ return (Getproductpurchasev2) super.setPrettyPrint(prettyPrint);
16756
+ }
16757
+
16758
+ @Override
16759
+ public Getproductpurchasev2 setQuotaUser(java.lang.String quotaUser) {
16760
+ return (Getproductpurchasev2) super.setQuotaUser(quotaUser);
16761
+ }
16762
+
16763
+ @Override
16764
+ public Getproductpurchasev2 setUploadType(java.lang.String uploadType) {
16765
+ return (Getproductpurchasev2) super.setUploadType(uploadType);
16766
+ }
16767
+
16768
+ @Override
16769
+ public Getproductpurchasev2 setUploadProtocol(java.lang.String uploadProtocol) {
16770
+ return (Getproductpurchasev2) super.setUploadProtocol(uploadProtocol);
16771
+ }
16772
+
16773
+ /**
16774
+ * The package name of the application the inapp product was sold in (for example,
16775
+ * 'com.some.thing').
16776
+ */
16777
+ @com.google.api.client.util.Key
16778
+ private java.lang.String packageName;
16779
+
16780
+ /** The package name of the application the inapp product was sold in (for example, 'com.some.thing').
16781
+ */
16782
+ public java.lang.String getPackageName() {
16783
+ return packageName;
16784
+ }
16785
+
16786
+ /**
16787
+ * The package name of the application the inapp product was sold in (for example,
16788
+ * 'com.some.thing').
16789
+ */
16790
+ public Getproductpurchasev2 setPackageName(java.lang.String packageName) {
16791
+ this.packageName = packageName;
16792
+ return this;
16793
+ }
16794
+
16795
+ /** The token provided to the user's device when the inapp product was purchased. */
16796
+ @com.google.api.client.util.Key
16797
+ private java.lang.String token;
16798
+
16799
+ /** The token provided to the user's device when the inapp product was purchased.
16800
+ */
16801
+ public java.lang.String getToken() {
16802
+ return token;
16803
+ }
16804
+
16805
+ /** The token provided to the user's device when the inapp product was purchased. */
16806
+ public Getproductpurchasev2 setToken(java.lang.String token) {
16807
+ this.token = token;
16808
+ return this;
16809
+ }
16810
+
16811
+ @Override
16812
+ public Getproductpurchasev2 set(String parameterName, Object value) {
16813
+ return (Getproductpurchasev2) super.set(parameterName, value);
16814
+ }
16815
+ }
16816
+
16643
16817
}
16644
16818
/**
16645
16819
* An accessor for creating requests from the Subscriptions collection.
0 commit comments