Skip to content

Commit b7070f2

Browse files
feat(androidpublisher): update the api
#### androidpublisher:v3 The following keys were added: - schemas.OneTimeCode (Total Keys: 2) - schemas.SignupPromotion (Total Keys: 4) - schemas.SubscriptionPurchaseLineItem.properties.signupPromotion.$ref (Total Keys: 1) - schemas.VanityCode (Total Keys: 3)
1 parent 579c138 commit b7070f2

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

docs/dyn/androidpublisher_v3.purchases.subscriptionsv2.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ <h3>Method Details</h3>
165165
&quot;allowExtendAfterTime&quot;: &quot;A String&quot;, # If present, this is the time after which top up purchases are allowed for the prepaid plan. Will not be present for expired prepaid plans.
166166
},
167167
&quot;productId&quot;: &quot;A String&quot;, # The purchased product ID (for example, &#x27;monthly001&#x27;).
168+
&quot;signupPromotion&quot;: { # The promotion applied on this item when purchased. # Promotion details about this item. Only set if a promotion was applied during signup.
169+
&quot;oneTimeCode&quot;: { # A single use promotion code. # A one-time code was applied.
170+
},
171+
&quot;vanityCode&quot;: { # A multiple use, predefined promotion code. # A vanity code was applied.
172+
&quot;promotionCode&quot;: &quot;A String&quot;, # The promotion code.
173+
},
174+
},
168175
},
169176
],
170177
&quot;linkedPurchaseToken&quot;: &quot;A String&quot;, # The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription.

googleapiclient/discovery_cache/documents/androidpublisher.v3.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4732,7 +4732,7 @@
47324732
}
47334733
}
47344734
},
4735-
"revision": "20241016",
4735+
"revision": "20241125",
47364736
"rootUrl": "https://androidpublisher.googleapis.com/",
47374737
"schemas": {
47384738
"Abi": {
@@ -7588,6 +7588,12 @@ false
75887588
},
75897589
"type": "object"
75907590
},
7591+
"OneTimeCode": {
7592+
"description": "A single use promotion code.",
7593+
"id": "OneTimeCode",
7594+
"properties": {},
7595+
"type": "object"
7596+
},
75917597
"OneTimeExternalTransaction": {
75927598
"description": "Represents a one-time transaction.",
75937599
"id": "OneTimeExternalTransaction",
@@ -8406,6 +8412,21 @@ false
84068412
},
84078413
"type": "object"
84088414
},
8415+
"SignupPromotion": {
8416+
"description": "The promotion applied on this item when purchased.",
8417+
"id": "SignupPromotion",
8418+
"properties": {
8419+
"oneTimeCode": {
8420+
"$ref": "OneTimeCode",
8421+
"description": "A one-time code was applied."
8422+
},
8423+
"vanityCode": {
8424+
"$ref": "VanityCode",
8425+
"description": "A vanity code was applied."
8426+
}
8427+
},
8428+
"type": "object"
8429+
},
84098430
"SplitApkMetadata": {
84108431
"description": "Holds data specific to Split APKs.",
84118432
"id": "SplitApkMetadata",
@@ -8923,6 +8944,10 @@ false
89238944
"productId": {
89248945
"description": "The purchased product ID (for example, 'monthly001').",
89258946
"type": "string"
8947+
},
8948+
"signupPromotion": {
8949+
"$ref": "SignupPromotion",
8950+
"description": "Promotion details about this item. Only set if a promotion was applied during signup."
89268951
}
89278952
},
89288953
"type": "object"
@@ -9905,6 +9930,17 @@ false
99059930
},
99069931
"type": "object"
99079932
},
9933+
"VanityCode": {
9934+
"description": "A multiple use, predefined promotion code.",
9935+
"id": "VanityCode",
9936+
"properties": {
9937+
"promotionCode": {
9938+
"description": "The promotion code.",
9939+
"type": "string"
9940+
}
9941+
},
9942+
"type": "object"
9943+
},
99089944
"Variant": {
99099945
"description": "APK that is suitable for inclusion in a system image. The resource of SystemApksService.",
99109946
"id": "Variant",

0 commit comments

Comments
 (0)