Skip to content

Commit 4276bda

Browse files
yoshi-automationsofisl
authored andcommitted
feat(androidpublisher): update the API
#### androidpublisher:v3 The following keys were added: - schemas.AutoRenewingPlan.properties.recurringPrice.$ref - schemas.AutoRenewingPlan.properties.recurringPrice.description - schemas.DeviceSelector.properties.systemOnChips.description - schemas.DeviceSelector.properties.systemOnChips.items.$ref - schemas.DeviceSelector.properties.systemOnChips.type - schemas.OneTimeCode.description - schemas.OneTimeCode.id - schemas.OneTimeCode.type - schemas.SignupPromotion.description - schemas.SignupPromotion.id - schemas.SignupPromotion.properties.oneTimeCode.$ref - schemas.SignupPromotion.properties.oneTimeCode.description - schemas.SignupPromotion.properties.vanityCode.$ref - schemas.SignupPromotion.properties.vanityCode.description - schemas.SignupPromotion.type - schemas.SubscriptionPurchaseLineItem.properties.signupPromotion.$ref - schemas.SubscriptionPurchaseLineItem.properties.signupPromotion.description - schemas.SystemOnChip.description - schemas.SystemOnChip.id - schemas.SystemOnChip.properties.manufacturer.description - schemas.SystemOnChip.properties.manufacturer.type - schemas.SystemOnChip.properties.model.description - schemas.SystemOnChip.properties.model.type - schemas.SystemOnChip.type - schemas.VanityCode.description - schemas.VanityCode.id - schemas.VanityCode.properties.promotionCode.description - schemas.VanityCode.properties.promotionCode.type - schemas.VanityCode.type The following keys were changed: - schemas.AutoRenewingBasePlanType.properties.accountHoldDuration.description - schemas.AutoRenewingBasePlanType.properties.gracePeriodDuration.description - schemas.InstallmentsBasePlanType.properties.accountHoldDuration.description - schemas.InstallmentsBasePlanType.properties.gracePeriodDuration.description - schemas.OfferTag.description
1 parent 8b40261 commit 4276bda

File tree

2 files changed

+124
-11
lines changed

2 files changed

+124
-11
lines changed

‎discovery/androidpublisher-v3.json

Lines changed: 68 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4732,7 +4732,7 @@
47324732
}
47334733
}
47344734
},
4735-
"revision": "20241003",
4735+
"revision": "20250102",
47364736
"rootUrl": "https://androidpublisher.googleapis.com/",
47374737
"schemas": {
47384738
"Abi": {
@@ -5249,15 +5249,15 @@
52495249
"id": "AutoRenewingBasePlanType",
52505250
"properties": {
52515251
"accountHoldDuration": {
5252-
"description": "Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in DAYS and in the range P0D (zero days) to P30D (30 days). If not specified, the default value is P30D (30 days).",
5252+
"description": "Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. If not specified, the default value is P30D. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.",
52535253
"type": "string"
52545254
},
52555255
"billingPeriodDuration": {
52565256
"description": "Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.",
52575257
"type": "string"
52585258
},
52595259
"gracePeriodDuration": {
5260-
"description": "Grace period of the subscription, specified in ISO 8601 format. Acceptable values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and P30D (30 days). If not specified, a default value will be used based on the recurring period duration.",
5260+
"description": "Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.",
52615261
"type": "string"
52625262
},
52635263
"legacyCompatible": {
@@ -5314,6 +5314,10 @@
53145314
"priceChangeDetails": {
53155315
"$ref": "SubscriptionItemPriceChangeDetails",
53165316
"description": "The information of the last price change for the item since subscription signup."
5317+
},
5318+
"recurringPrice": {
5319+
"$ref": "Money",
5320+
"description": "The current recurring price of the auto renewing plan."
53175321
}
53185322
},
53195323
"type": "object"
@@ -6086,6 +6090,13 @@
60866090
"$ref": "SystemFeature"
60876091
},
60886092
"type": "array"
6093+
},
6094+
"systemOnChips": {
6095+
"description": "Optional. The SoCs included by this selector. Only works for Android S+ devices.",
6096+
"items": {
6097+
"$ref": "SystemOnChip"
6098+
},
6099+
"type": "array"
60896100
}
60906101
},
60916102
"type": "object"
@@ -7066,7 +7077,7 @@
70667077
"id": "InstallmentsBasePlanType",
70677078
"properties": {
70687079
"accountHoldDuration": {
7069-
"description": "Optional. Account hold period of the subscription, specified exclusively in days and in ISO 8601 format. Acceptable values are P0D (zero days) to P30D (30days). If not specified, the default value is P30D (30 days).",
7080+
"description": "Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. If not specified, the default value is P30D. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.",
70707081
"type": "string"
70717082
},
70727083
"billingPeriodDuration": {
@@ -7079,7 +7090,7 @@
70797090
"type": "integer"
70807091
},
70817092
"gracePeriodDuration": {
7082-
"description": "Grace period of the subscription, specified in ISO 8601 format. Acceptable values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and P30D (30 days). If not specified, a default value will be used based on the recurring period duration.",
7093+
"description": "Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.",
70837094
"type": "string"
70847095
},
70857096
"prorationMode": {
@@ -7571,7 +7582,7 @@
75717582
"type": "object"
75727583
},
75737584
"OfferTag": {
7574-
"description": "Represents a custom tag specified for base plans and subscription offers.",
7585+
"description": "Represents a custom tag specified for a product offer.",
75757586
"id": "OfferTag",
75767587
"properties": {
75777588
"tag": {
@@ -7581,6 +7592,12 @@
75817592
},
75827593
"type": "object"
75837594
},
7595+
"OneTimeCode": {
7596+
"description": "A single use promotion code.",
7597+
"id": "OneTimeCode",
7598+
"properties": {},
7599+
"type": "object"
7600+
},
75847601
"OneTimeExternalTransaction": {
75857602
"description": "Represents a one-time transaction.",
75867603
"id": "OneTimeExternalTransaction",
@@ -8399,6 +8416,21 @@
83998416
},
84008417
"type": "object"
84018418
},
8419+
"SignupPromotion": {
8420+
"description": "The promotion applied on this item when purchased.",
8421+
"id": "SignupPromotion",
8422+
"properties": {
8423+
"oneTimeCode": {
8424+
"$ref": "OneTimeCode",
8425+
"description": "A one-time code was applied."
8426+
},
8427+
"vanityCode": {
8428+
"$ref": "VanityCode",
8429+
"description": "A vanity code was applied."
8430+
}
8431+
},
8432+
"type": "object"
8433+
},
84028434
"SplitApkMetadata": {
84038435
"description": "Holds data specific to Split APKs.",
84048436
"id": "SplitApkMetadata",
@@ -8916,6 +8948,10 @@
89168948
"productId": {
89178949
"description": "The purchased product ID (for example, 'monthly001').",
89188950
"type": "string"
8951+
},
8952+
"signupPromotion": {
8953+
"$ref": "SignupPromotion",
8954+
"description": "Promotion details about this item. Only set if a promotion was applied during signup."
89198955
}
89208956
},
89218957
"type": "object"
@@ -9131,6 +9167,21 @@
91319167
"properties": {},
91329168
"type": "object"
91339169
},
9170+
"SystemOnChip": {
9171+
"description": "Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices.",
9172+
"id": "SystemOnChip",
9173+
"properties": {
9174+
"manufacturer": {
9175+
"description": "Required. The designer of the SoC, eg. \"Google\" Value of build property \"ro.soc.manufacturer\" https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER Required.",
9176+
"type": "string"
9177+
},
9178+
"model": {
9179+
"description": "Required. The model of the SoC, eg. \"Tensor\" Value of build property \"ro.soc.model\" https://developer.android.com/reference/android/os/Build#SOC_MODEL Required.",
9180+
"type": "string"
9181+
}
9182+
},
9183+
"type": "object"
9184+
},
91349185
"Targeting": {
91359186
"description": "Targeting details for a recovery action such as regions, android sdk levels, app versions etc.",
91369187
"id": "Targeting",
@@ -9883,6 +9934,17 @@
98839934
},
98849935
"type": "object"
98859936
},
9937+
"VanityCode": {
9938+
"description": "A multiple use, predefined promotion code.",
9939+
"id": "VanityCode",
9940+
"properties": {
9941+
"promotionCode": {
9942+
"description": "The promotion code.",
9943+
"type": "string"
9944+
}
9945+
},
9946+
"type": "object"
9947+
},
98869948
"Variant": {
98879949
"description": "APK that is suitable for inclusion in a system image. The resource of SystemApksService.",
98889950
"id": "Variant",

‎src/apis/androidpublisher/v3.ts

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,15 +517,15 @@ export namespace androidpublisher_v3 {
517517
*/
518518
export interface Schema$AutoRenewingBasePlanType {
519519
/**
520-
* Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in DAYS and in the range P0D (zero days) to P30D (30 days). If not specified, the default value is P30D (30 days).
520+
* Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. If not specified, the default value is P30D. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
521521
*/
522522
accountHoldDuration?: string | null;
523523
/**
524524
* Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.
525525
*/
526526
billingPeriodDuration?: string | null;
527527
/**
528-
* Grace period of the subscription, specified in ISO 8601 format. Acceptable values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and P30D (30 days). If not specified, a default value will be used based on the recurring period duration.
528+
* Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
529529
*/
530530
gracePeriodDuration?: string | null;
531531
/**
@@ -561,6 +561,10 @@ export namespace androidpublisher_v3 {
561561
* The information of the last price change for the item since subscription signup.
562562
*/
563563
priceChangeDetails?: Schema$SubscriptionItemPriceChangeDetails;
564+
/**
565+
* The current recurring price of the auto renewing plan.
566+
*/
567+
recurringPrice?: Schema$Money;
564568
}
565569
/**
566570
* A single base plan for a subscription.
@@ -1108,6 +1112,10 @@ export namespace androidpublisher_v3 {
11081112
* A device needs to have all these system features to be included by the selector.
11091113
*/
11101114
requiredSystemFeatures?: Schema$SystemFeature[];
1115+
/**
1116+
* Optional. The SoCs included by this selector. Only works for Android S+ devices.
1117+
*/
1118+
systemOnChips?: Schema$SystemOnChip[];
11111119
}
11121120
/**
11131121
* The device spec used to generate a system APK.
@@ -1780,7 +1788,7 @@ export namespace androidpublisher_v3 {
17801788
*/
17811789
export interface Schema$InstallmentsBasePlanType {
17821790
/**
1783-
* Optional. Account hold period of the subscription, specified exclusively in days and in ISO 8601 format. Acceptable values are P0D (zero days) to P30D (30days). If not specified, the default value is P30D (30 days).
1791+
* Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. If not specified, the default value is P30D. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
17841792
*/
17851793
accountHoldDuration?: string | null;
17861794
/**
@@ -1792,7 +1800,7 @@ export namespace androidpublisher_v3 {
17921800
*/
17931801
committedPaymentsCount?: number | null;
17941802
/**
1795-
* Grace period of the subscription, specified in ISO 8601 format. Acceptable values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and P30D (30 days). If not specified, a default value will be used based on the recurring period duration.
1803+
* Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.
17961804
*/
17971805
gracePeriodDuration?: string | null;
17981806
/**
@@ -2122,14 +2130,18 @@ export namespace androidpublisher_v3 {
21222130
offerTags?: string[] | null;
21232131
}
21242132
/**
2125-
* Represents a custom tag specified for base plans and subscription offers.
2133+
* Represents a custom tag specified for a product offer.
21262134
*/
21272135
export interface Schema$OfferTag {
21282136
/**
21292137
* Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
21302138
*/
21312139
tag?: string | null;
21322140
}
2141+
/**
2142+
* A single use promotion code.
2143+
*/
2144+
export interface Schema$OneTimeCode {}
21332145
/**
21342146
* Represents a one-time transaction.
21352147
*/
@@ -2720,6 +2732,19 @@ export namespace androidpublisher_v3 {
27202732
*/
27212733
value?: Schema$SdkVersion[];
27222734
}
2735+
/**
2736+
* The promotion applied on this item when purchased.
2737+
*/
2738+
export interface Schema$SignupPromotion {
2739+
/**
2740+
* A one-time code was applied.
2741+
*/
2742+
oneTimeCode?: Schema$OneTimeCode;
2743+
/**
2744+
* A vanity code was applied.
2745+
*/
2746+
vanityCode?: Schema$VanityCode;
2747+
}
27232748
/**
27242749
* Holds data specific to Split APKs.
27252750
*/
@@ -3126,6 +3151,10 @@ export namespace androidpublisher_v3 {
31263151
* The purchased product ID (for example, 'monthly001').
31273152
*/
31283153
productId?: string | null;
3154+
/**
3155+
* Promotion details about this item. Only set if a promotion was applied during signup.
3156+
*/
3157+
signupPromotion?: Schema$SignupPromotion;
31293158
}
31303159
/**
31313160
* Request for the purchases.subscriptions.acknowledge API.
@@ -3269,6 +3298,19 @@ export namespace androidpublisher_v3 {
32693298
* Information specific to cancellations initiated by Google system.
32703299
*/
32713300
export interface Schema$SystemInitiatedCancellation {}
3301+
/**
3302+
* Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices.
3303+
*/
3304+
export interface Schema$SystemOnChip {
3305+
/**
3306+
* Required. The designer of the SoC, eg. "Google" Value of build property "ro.soc.manufacturer" https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER Required.
3307+
*/
3308+
manufacturer?: string | null;
3309+
/**
3310+
* Required. The model of the SoC, eg. "Tensor" Value of build property "ro.soc.model" https://developer.android.com/reference/android/os/Build#SOC_MODEL Required.
3311+
*/
3312+
model?: string | null;
3313+
}
32723314
/**
32733315
* Targeting details for a recovery action such as regions, android sdk levels, app versions etc.
32743316
*/
@@ -3744,6 +3786,15 @@ export namespace androidpublisher_v3 {
37443786
*/
37453787
name?: string | null;
37463788
}
3789+
/**
3790+
* A multiple use, predefined promotion code.
3791+
*/
3792+
export interface Schema$VanityCode {
3793+
/**
3794+
* The promotion code.
3795+
*/
3796+
promotionCode?: string | null;
3797+
}
37473798
/**
37483799
* APK that is suitable for inclusion in a system image. The resource of SystemApksService.
37493800
*/

0 commit comments

Comments
 (0)