Skip to content

Commit 7d1d1dc

Browse files
feat(paymentsresellersubscription): update the API
#### paymentsresellersubscription:v1 The following keys were added: - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.count.description - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.count.format - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.count.location - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.count.type - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.unit.description - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.unit.enum - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.unit.enumDescriptions - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.unit.location - resources.partners.resources.subscriptions.methods.provision.parameters.cycleOptions.initialCycleDuration.unit.type - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.description - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.flatPath - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.httpMethod - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.id - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameterOrder - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.name.description - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.name.location - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.name.pattern - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.name.required - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.name.type - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.updateMask.description - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.updateMask.format - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.updateMask.location - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.parameters.updateMask.type - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.path - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.request.$ref - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.response.$ref - resources.partners.resources.subscriptions.resources.lineItems.methods.patch.scopes - schemas.CycleOptions.description - schemas.CycleOptions.id - schemas.CycleOptions.properties.initialCycleDuration.$ref - schemas.CycleOptions.properties.initialCycleDuration.description - schemas.CycleOptions.type - schemas.ResumeSubscriptionRequest.properties.cycleOptions.$ref - schemas.ResumeSubscriptionRequest.properties.cycleOptions.description
1 parent 355a0e1 commit 7d1d1dc

File tree

2 files changed

+312
-4
lines changed

2 files changed

+312
-4
lines changed

discovery/paymentsresellersubscription-v1.json

Lines changed: 81 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,29 @@
378378
"parent"
379379
],
380380
"parameters": {
381+
"cycleOptions.initialCycleDuration.count": {
382+
"description": "number of duration units to be included.",
383+
"format": "int32",
384+
"location": "query",
385+
"type": "integer"
386+
},
387+
"cycleOptions.initialCycleDuration.unit": {
388+
"description": "The unit used for the duration",
389+
"enum": [
390+
"UNIT_UNSPECIFIED",
391+
"MONTH",
392+
"DAY",
393+
"HOUR"
394+
],
395+
"enumDescriptions": [
396+
"Default value, reserved as an invalid or an unexpected value.",
397+
"Unit of a calendar month.",
398+
"Unit of a day.",
399+
"Unit of an hour. It is used for testing."
400+
],
401+
"location": "query",
402+
"type": "string"
403+
},
381404
"parent": {
382405
"description": "Required. The parent resource name, which is the identifier of the partner. It will have the format of \"partners/{partner_id}\".",
383406
"location": "path",
@@ -486,6 +509,46 @@
486509
"https://www.googleapis.com/auth/sdm.service"
487510
]
488511
}
512+
},
513+
"resources": {
514+
"lineItems": {
515+
"methods": {
516+
"patch": {
517+
"description": "Updates a line item of a subscription. It should be autenticated with a service account.",
518+
"flatPath": "v1/partners/{partnersId}/subscriptions/{subscriptionsId}/lineItems/{lineItemsId}",
519+
"httpMethod": "PATCH",
520+
"id": "paymentsresellersubscription.partners.subscriptions.lineItems.patch",
521+
"parameterOrder": [
522+
"name"
523+
],
524+
"parameters": {
525+
"name": {
526+
"description": "Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}",
527+
"location": "path",
528+
"pattern": "^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$",
529+
"required": true,
530+
"type": "string"
531+
},
532+
"updateMask": {
533+
"description": "Required. The list of fields to update. Only a limited set of fields can be updated. The allowed fields are the following: - `product_payload.googleHomePayload.googleStructureId`",
534+
"format": "google-fieldmask",
535+
"location": "query",
536+
"type": "string"
537+
}
538+
},
539+
"path": "v1/{+name}",
540+
"request": {
541+
"$ref": "SubscriptionLineItem"
542+
},
543+
"response": {
544+
"$ref": "SubscriptionLineItem"
545+
},
546+
"scopes": [
547+
"https://www.googleapis.com/auth/sdm.service"
548+
]
549+
}
550+
}
551+
}
489552
}
490553
},
491554
"userSessions": {
@@ -523,7 +586,7 @@
523586
}
524587
}
525588
},
526-
"revision": "20251005",
589+
"revision": "20251012",
527590
"rootUrl": "https://paymentsresellersubscription.googleapis.com/",
528591
"schemas": {
529592
"Amount": {
@@ -615,6 +678,17 @@
615678
},
616679
"type": "object"
617680
},
681+
"CycleOptions": {
682+
"description": "The cycle options when starting and resuming a subscription.",
683+
"id": "CycleOptions",
684+
"properties": {
685+
"initialCycleDuration": {
686+
"$ref": "Duration",
687+
"description": "Optional. The duration of the initial cycle. Only `DAY` is supported. If set, Google will start the subscription with this initial cycle duration starting at the request time (see available methods below). A prorated charge will be applied. This option is available to the following methods: - partners.subscriptions.provision - partners.subscriptions.resume - partners.userSessions.generate "
688+
}
689+
},
690+
"type": "object"
691+
},
618692
"Duration": {
619693
"description": "Describes the length of a period of a time.",
620694
"id": "Duration",
@@ -1233,7 +1307,12 @@
12331307
"ResumeSubscriptionRequest": {
12341308
"description": "Request to resume a suspended subscription.",
12351309
"id": "ResumeSubscriptionRequest",
1236-
"properties": {},
1310+
"properties": {
1311+
"cycleOptions": {
1312+
"$ref": "CycleOptions",
1313+
"description": "Optional. The cycle options for the subscription."
1314+
}
1315+
},
12371316
"type": "object"
12381317
},
12391318
"ResumeSubscriptionResponse": {

0 commit comments

Comments
 (0)