Skip to content

Commit

Permalink
feat(androidpublisher)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### androidpublisher:v3

The following keys were deleted:
- schemas.ExternalOfferInitialAcquisitionDetails.description
- schemas.ExternalOfferInitialAcquisitionDetails.id
- schemas.ExternalOfferInitialAcquisitionDetails.properties.externalTransactionId.description
- schemas.ExternalOfferInitialAcquisitionDetails.properties.externalTransactionId.type
- schemas.ExternalOfferInitialAcquisitionDetails.type
- schemas.ExternalTransaction.properties.externalOfferInitialAcquisitionDetails.$ref
- schemas.ExternalTransaction.properties.externalOfferInitialAcquisitionDetails.description

The following keys were changed:
- resources.edits.resources.bundles.methods.upload.mediaUpload.maxSize
- schemas.AutoRenewingBasePlanType.properties.billingPeriodDuration.description
- schemas.InstallmentsBasePlanType.properties.billingPeriodDuration.description
- schemas.InstallmentsBasePlanType.properties.committedPaymentsCount.description
- schemas.InstallmentsBasePlanType.properties.renewalType.description
- schemas.PrepaidBasePlanType.properties.billingPeriodDuration.description
- schemas.SubscriptionOffer.properties.phases.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 10, 2024
1 parent c74b1f2 commit 011238e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 42 deletions.
31 changes: 8 additions & 23 deletions discovery/androidpublisher-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"accept": [
"application/octet-stream"
],
"maxSize": "10737418240",
"maxSize": "53687091200",
"protocols": {
"resumable": {
"multipart": true,
Expand Down Expand Up @@ -4732,7 +4732,7 @@
}
}
},
"revision": "20240821",
"revision": "20241003",
"rootUrl": "https://androidpublisher.googleapis.com/",
"schemas": {
"Abi": {
Expand Down Expand Up @@ -5253,7 +5253,7 @@
"type": "string"
},
"billingPeriodDuration": {
"description": "Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.",
"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.",
"type": "string"
},
"gracePeriodDuration": {
Expand Down Expand Up @@ -6227,17 +6227,6 @@
},
"type": "object"
},
"ExternalOfferInitialAcquisitionDetails": {
"description": "Details about the first time a user/device completed a transaction using external offers.",
"id": "ExternalOfferInitialAcquisitionDetails",
"properties": {
"externalTransactionId": {
"description": "Required. The external transaction id of the first completed purchase made by the user.",
"type": "string"
}
},
"type": "object"
},
"ExternalSubscription": {
"description": "Details of an external subscription.",
"id": "ExternalSubscription",
Expand Down Expand Up @@ -6279,10 +6268,6 @@
"description": "Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.",
"readOnly": true
},
"externalOfferInitialAcquisitionDetails": {
"$ref": "ExternalOfferInitialAcquisitionDetails",
"description": "Optional. Details about the first time a user/device completed a transaction using external offers. Not required for transactions made using user choice billing or alternative billing only."
},
"externalTransactionId": {
"description": "Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.",
"readOnly": true,
Expand Down Expand Up @@ -7085,11 +7070,11 @@
"type": "string"
},
"billingPeriodDuration": {
"description": "Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.",
"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.",
"type": "string"
},
"committedPaymentsCount": {
"description": "Required. The number of payments the user is committed to.",
"description": "Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.",
"format": "int32",
"type": "integer"
},
Expand All @@ -7112,7 +7097,7 @@
"type": "string"
},
"renewalType": {
"description": "Required. Installments base plan renewal type. Determines the behavior at the end of the initial commitment.",
"description": "Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial commitment. The renewal type is immutable after the base plan is created.",
"enum": [
"RENEWAL_TYPE_UNSPECIFIED",
"RENEWAL_TYPE_RENEWS_WITHOUT_COMMITMENT",
Expand Down Expand Up @@ -7748,7 +7733,7 @@
"id": "PrepaidBasePlanType",
"properties": {
"billingPeriodDuration": {
"description": "Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.",
"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.",
"type": "string"
},
"timeExtension": {
Expand Down Expand Up @@ -8671,7 +8656,7 @@
"type": "string"
},
"phases": {
"description": "Required. The phases of this subscription offer. Must contain at least one entry, and may contain at most five. Users will always receive all these phases in the specified order. Phases may not be added, removed, or reordered after initial creation.",
"description": "Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.",
"items": {
"$ref": "SubscriptionOfferPhase"
},
Expand Down
25 changes: 6 additions & 19 deletions src/apis/androidpublisher/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export namespace androidpublisher_v3 {
*/
accountHoldDuration?: string | null;
/**
* Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.
* 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.
*/
billingPeriodDuration?: string | null;
/**
Expand Down Expand Up @@ -1273,15 +1273,6 @@ export namespace androidpublisher_v3 {
*/
versionName?: string | null;
}
/**
* Details about the first time a user/device completed a transaction using external offers.
*/
export interface Schema$ExternalOfferInitialAcquisitionDetails {
/**
* Required. The external transaction id of the first completed purchase made by the user.
*/
externalTransactionId?: string | null;
}
/**
* Details of an external subscription.
*/
Expand All @@ -1307,10 +1298,6 @@ export namespace androidpublisher_v3 {
* Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.
*/
currentTaxAmount?: Schema$Price;
/**
* Optional. Details about the first time a user/device completed a transaction using external offers. Not required for transactions made using user choice billing or alternative billing only.
*/
externalOfferInitialAcquisitionDetails?: Schema$ExternalOfferInitialAcquisitionDetails;
/**
* Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.
*/
Expand Down Expand Up @@ -1797,11 +1784,11 @@ export namespace androidpublisher_v3 {
*/
accountHoldDuration?: string | null;
/**
* Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.
* 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.
*/
billingPeriodDuration?: string | null;
/**
* Required. The number of payments the user is committed to.
* Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created.
*/
committedPaymentsCount?: number | null;
/**
Expand All @@ -1813,7 +1800,7 @@ export namespace androidpublisher_v3 {
*/
prorationMode?: string | null;
/**
* Required. Installments base plan renewal type. Determines the behavior at the end of the initial commitment.
* Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial commitment. The renewal type is immutable after the base plan is created.
*/
renewalType?: string | null;
/**
Expand Down Expand Up @@ -2268,7 +2255,7 @@ export namespace androidpublisher_v3 {
*/
export interface Schema$PrepaidBasePlanType {
/**
* Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center.
* 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.
*/
billingPeriodDuration?: string | null;
/**
Expand Down Expand Up @@ -2923,7 +2910,7 @@ export namespace androidpublisher_v3 {
*/
packageName?: string | null;
/**
* Required. The phases of this subscription offer. Must contain at least one entry, and may contain at most five. Users will always receive all these phases in the specified order. Phases may not be added, removed, or reordered after initial creation.
* Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
*/
phases?: Schema$SubscriptionOfferPhase[];
/**
Expand Down

0 comments on commit 011238e

Please sign in to comment.