Skip to content

Commit 34122ad

Browse files
1 parent 3ea39c9 commit 34122ad

4 files changed

Lines changed: 52 additions & 28 deletions

File tree

src/AndroidPublisher/Resource/MonetizationSubscriptions.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,14 @@ public function batchUpdate($packageName, BatchUpdateSubscriptionsRequest $postB
105105
* field on the Subscription resource.
106106
* @opt_param string regionsVersion.version Required. A string representing the
107107
* version of available regions being used for the specified resource. Regional
108-
* prices for the resource have to be specified according to the information
109-
* published in [this article](https://support.google.com/googleplay/android-
108+
* prices and latest supported version for the resource have to be specified
109+
* according to the information published in [this
110+
* article](https://support.google.com/googleplay/android-
110111
* developer/answer/10532353). Each time the supported locations substantially
111-
* change, the version will be incremented. The latest supported version is
112-
* available in this article. Using this field will ensure that creating and
113-
* updating the resource with an older region's version and set of regional
114-
* prices and currencies will succeed even though a new version is available.
112+
* change, the version will be incremented. Using this field will ensure that
113+
* creating and updating the resource with an older region's version and set of
114+
* regional prices and currencies will succeed even though a new version is
115+
* available.
115116
* @return Subscription
116117
* @throws \Google\Service\Exception
117118
*/
@@ -201,13 +202,14 @@ public function listMonetizationSubscriptions($packageName, $optParams = [])
201202
* propagation of this product update. Defaults to latency-sensitive.
202203
* @opt_param string regionsVersion.version Required. A string representing the
203204
* version of available regions being used for the specified resource. Regional
204-
* prices for the resource have to be specified according to the information
205-
* published in [this article](https://support.google.com/googleplay/android-
205+
* prices and latest supported version for the resource have to be specified
206+
* according to the information published in [this
207+
* article](https://support.google.com/googleplay/android-
206208
* developer/answer/10532353). Each time the supported locations substantially
207-
* change, the version will be incremented. The latest supported version is
208-
* available in this article. Using this field will ensure that creating and
209-
* updating the resource with an older region's version and set of regional
210-
* prices and currencies will succeed even though a new version is available.
209+
* change, the version will be incremented. Using this field will ensure that
210+
* creating and updating the resource with an older region's version and set of
211+
* regional prices and currencies will succeed even though a new version is
212+
* available.
211213
* @opt_param string updateMask Required. The list of fields to be updated.
212214
* @return Subscription
213215
* @throws \Google\Service\Exception

src/AndroidPublisher/Resource/MonetizationSubscriptionsBasePlansOffers.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,14 @@ public function batchUpdateStates($packageName, $productId, $basePlanId, BatchUp
156156
* the SubscriptionOffer resource.
157157
* @opt_param string regionsVersion.version Required. A string representing the
158158
* version of available regions being used for the specified resource. Regional
159-
* prices for the resource have to be specified according to the information
160-
* published in [this article](https://support.google.com/googleplay/android-
159+
* prices and latest supported version for the resource have to be specified
160+
* according to the information published in [this
161+
* article](https://support.google.com/googleplay/android-
161162
* developer/answer/10532353). Each time the supported locations substantially
162-
* change, the version will be incremented. The latest supported version is
163-
* available in this article. Using this field will ensure that creating and
164-
* updating the resource with an older region's version and set of regional
165-
* prices and currencies will succeed even though a new version is available.
163+
* change, the version will be incremented. Using this field will ensure that
164+
* creating and updating the resource with an older region's version and set of
165+
* regional prices and currencies will succeed even though a new version is
166+
* available.
166167
* @return SubscriptionOffer
167168
* @throws \Google\Service\Exception
168169
*/
@@ -290,13 +291,14 @@ public function listMonetizationSubscriptionsBasePlansOffers($packageName, $prod
290291
* propagation of this product update. Defaults to latency-sensitive.
291292
* @opt_param string regionsVersion.version Required. A string representing the
292293
* version of available regions being used for the specified resource. Regional
293-
* prices for the resource have to be specified according to the information
294-
* published in [this article](https://support.google.com/googleplay/android-
294+
* prices and latest supported version for the resource have to be specified
295+
* according to the information published in [this
296+
* article](https://support.google.com/googleplay/android-
295297
* developer/answer/10532353). Each time the supported locations substantially
296-
* change, the version will be incremented. The latest supported version is
297-
* available in this article. Using this field will ensure that creating and
298-
* updating the resource with an older region's version and set of regional
299-
* prices and currencies will succeed even though a new version is available.
298+
* change, the version will be incremented. Using this field will ensure that
299+
* creating and updating the resource with an older region's version and set of
300+
* regional prices and currencies will succeed even though a new version is
301+
* available.
300302
* @opt_param string updateMask Required. The list of fields to be updated.
301303
* @return SubscriptionOffer
302304
* @throws \Google\Service\Exception

src/AndroidPublisher/Resource/PurchasesSubscriptions.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ class PurchasesSubscriptions extends \Google\Service\Resource
3737
*
3838
* @param string $packageName The package name of the application for which this
3939
* subscription was purchased (for example, 'com.some.thing').
40-
* @param string $subscriptionId The purchased subscription ID (for example,
41-
* 'monthly001').
40+
* @param string $subscriptionId Note: Since May 21, 2025, subscription_id is
41+
* not required, and not recommended for subscription with add-ons. The
42+
* purchased subscription ID (for example, 'monthly001').
4243
* @param string $token The token provided to the user's device when the
4344
* subscription was purchased.
4445
* @param SubscriptionPurchasesAcknowledgeRequest $postBody
@@ -57,8 +58,9 @@ public function acknowledge($packageName, $subscriptionId, $token, SubscriptionP
5758
*
5859
* @param string $packageName The package name of the application for which this
5960
* subscription was purchased (for example, 'com.some.thing').
60-
* @param string $subscriptionId The purchased subscription ID (for example,
61-
* 'monthly001').
61+
* @param string $subscriptionId Note: Since May 21, 2025, subscription_id is
62+
* not required, and not recommended for subscription with add-ons. The
63+
* purchased subscription ID (for example, 'monthly001').
6264
* @param string $token The token provided to the user's device when the
6365
* subscription was purchased.
6466
* @param array $optParams Optional parameters.

src/AndroidPublisher/SubscriptionPurchaseLineItem.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class SubscriptionPurchaseLineItem extends \Google\Model
2727
* @var string
2828
*/
2929
public $expiryTime;
30+
/**
31+
* @var string
32+
*/
33+
public $latestSuccessfulOrderId;
3034
protected $offerDetailsType = OfferDetails::class;
3135
protected $offerDetailsDataType = '';
3236
protected $prepaidPlanType = PrepaidPlan::class;
@@ -80,6 +84,20 @@ public function getExpiryTime()
8084
{
8185
return $this->expiryTime;
8286
}
87+
/**
88+
* @param string
89+
*/
90+
public function setLatestSuccessfulOrderId($latestSuccessfulOrderId)
91+
{
92+
$this->latestSuccessfulOrderId = $latestSuccessfulOrderId;
93+
}
94+
/**
95+
* @return string
96+
*/
97+
public function getLatestSuccessfulOrderId()
98+
{
99+
return $this->latestSuccessfulOrderId;
100+
}
83101
/**
84102
* @param OfferDetails
85103
*/

0 commit comments

Comments
 (0)