|
378 | 378 | "parent" |
379 | 379 | ], |
380 | 380 | "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 | + }, |
381 | 404 | "parent": { |
382 | 405 | "description": "Required. The parent resource name, which is the identifier of the partner. It will have the format of \"partners/{partner_id}\".", |
383 | 406 | "location": "path", |
|
486 | 509 | "https://www.googleapis.com/auth/sdm.service" |
487 | 510 | ] |
488 | 511 | } |
| 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 | + } |
489 | 552 | } |
490 | 553 | }, |
491 | 554 | "userSessions": { |
|
523 | 586 | } |
524 | 587 | } |
525 | 588 | }, |
526 | | - "revision": "20251005", |
| 589 | + "revision": "20251012", |
527 | 590 | "rootUrl": "https://paymentsresellersubscription.googleapis.com/", |
528 | 591 | "schemas": { |
529 | 592 | "Amount": { |
|
615 | 678 | }, |
616 | 679 | "type": "object" |
617 | 680 | }, |
| 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 | + }, |
618 | 692 | "Duration": { |
619 | 693 | "description": "Describes the length of a period of a time.", |
620 | 694 | "id": "Duration", |
|
1233 | 1307 | "ResumeSubscriptionRequest": { |
1234 | 1308 | "description": "Request to resume a suspended subscription.", |
1235 | 1309 | "id": "ResumeSubscriptionRequest", |
1236 | | - "properties": {}, |
| 1310 | + "properties": { |
| 1311 | + "cycleOptions": { |
| 1312 | + "$ref": "CycleOptions", |
| 1313 | + "description": "Optional. The cycle options for the subscription." |
| 1314 | + } |
| 1315 | + }, |
1237 | 1316 | "type": "object" |
1238 | 1317 | }, |
1239 | 1318 | "ResumeSubscriptionResponse": { |
|
0 commit comments