|
431 | 431 | ]
|
432 | 432 | }
|
433 | 433 | }
|
| 434 | + }, |
| 435 | + "userSessions": { |
| 436 | + "methods": { |
| 437 | + "generate": { |
| 438 | + "description": "This API replaces user authorized OAuth consent based APIs (Create, Entitle). Generates a short-lived token for a user session based on the user intent. You can use the session token to redirect the user to Google to finish the signup flow. You can re-generate new session token repeatedly for the same request if necessary, regardless of the previous tokens being expired or not.", |
| 439 | + "flatPath": "v1/partners/{partnersId}/userSessions:generate", |
| 440 | + "httpMethod": "POST", |
| 441 | + "id": "paymentsresellersubscription.partners.userSessions.generate", |
| 442 | + "parameterOrder": [ |
| 443 | + "parent" |
| 444 | + ], |
| 445 | + "parameters": { |
| 446 | + "parent": { |
| 447 | + "description": "Required. The parent, the partner that can resell. Format: partners/{partner}", |
| 448 | + "location": "path", |
| 449 | + "pattern": "^partners/[^/]+$", |
| 450 | + "required": true, |
| 451 | + "type": "string" |
| 452 | + } |
| 453 | + }, |
| 454 | + "path": "v1/{+parent}/userSessions:generate", |
| 455 | + "request": { |
| 456 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest" |
| 457 | + }, |
| 458 | + "response": { |
| 459 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse" |
| 460 | + }, |
| 461 | + "scopes": [ |
| 462 | + "openid" |
| 463 | + ] |
| 464 | + } |
| 465 | + } |
434 | 466 | }
|
435 | 467 | }
|
436 | 468 | }
|
437 | 469 | },
|
438 |
| - "revision": "20240922", |
| 470 | + "revision": "20241211", |
439 | 471 | "rootUrl": "https://paymentsresellersubscription.googleapis.com/",
|
440 | 472 | "schemas": {
|
441 | 473 | "GoogleCloudPaymentsResellerSubscriptionV1Amount": {
|
|
506 | 538 | },
|
507 | 539 | "type": "object"
|
508 | 540 | },
|
| 541 | + "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent": { |
| 542 | + "description": "Intent message for creating a Subscription resource.", |
| 543 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent", |
| 544 | + "properties": { |
| 545 | + "parent": { |
| 546 | + "description": "Required. The parent resource name, which is the identifier of the partner.", |
| 547 | + "type": "string" |
| 548 | + }, |
| 549 | + "subscription": { |
| 550 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", |
| 551 | + "description": "Required. The Subscription to be created." |
| 552 | + }, |
| 553 | + "subscriptionId": { |
| 554 | + "description": "Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.", |
| 555 | + "type": "string" |
| 556 | + } |
| 557 | + }, |
| 558 | + "type": "object" |
| 559 | + }, |
509 | 560 | "GoogleCloudPaymentsResellerSubscriptionV1Duration": {
|
510 | 561 | "description": "Describes the length of a period of a time.",
|
511 | 562 | "id": "GoogleCloudPaymentsResellerSubscriptionV1Duration",
|
|
534 | 585 | },
|
535 | 586 | "type": "object"
|
536 | 587 | },
|
| 588 | + "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent": { |
| 589 | + "description": "Intent for entitling the previously provisioned subscription to an end user.", |
| 590 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent", |
| 591 | + "properties": { |
| 592 | + "name": { |
| 593 | + "description": "Required. The name of the subscription resource that is entitled to the current end user.", |
| 594 | + "type": "string" |
| 595 | + } |
| 596 | + }, |
| 597 | + "type": "object" |
| 598 | + }, |
537 | 599 | "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest": {
|
538 |
| - "description": "LINT.IfChange Partner request for entitling the previously provisioned subscription to an end user. The end user identity is inferred from the request OAuth context.", |
| 600 | + "description": "Partner request for entitling the previously provisioned subscription to an end user. The end user identity is inferred from the request OAuth context.", |
539 | 601 | "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest",
|
540 | 602 | "properties": {
|
541 | 603 | "lineItemEntitlementDetails": {
|
|
681 | 743 | },
|
682 | 744 | "type": "object"
|
683 | 745 | },
|
| 746 | + "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest": { |
| 747 | + "description": "[Preview only] Request to generate a user session.", |
| 748 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest", |
| 749 | + "properties": { |
| 750 | + "intentPayload": { |
| 751 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload", |
| 752 | + "description": "The user intent to generate the user session." |
| 753 | + } |
| 754 | + }, |
| 755 | + "type": "object" |
| 756 | + }, |
| 757 | + "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse": { |
| 758 | + "description": "[Preview only] Response that contains the details for generated user session.", |
| 759 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse", |
| 760 | + "properties": { |
| 761 | + "userSession": { |
| 762 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UserSession", |
| 763 | + "description": "The generated user session. The token size is proportional to the size of the intent payload." |
| 764 | + } |
| 765 | + }, |
| 766 | + "type": "object" |
| 767 | + }, |
684 | 768 | "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload": {
|
685 | 769 | "description": "Payload specific to Google One products.",
|
686 | 770 | "id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload",
|
|
735 | 819 | },
|
736 | 820 | "type": "object"
|
737 | 821 | },
|
| 822 | + "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload": { |
| 823 | + "description": "The payload that describes the user intent.", |
| 824 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload", |
| 825 | + "properties": { |
| 826 | + "createIntent": { |
| 827 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent", |
| 828 | + "description": "The request to create a subscription." |
| 829 | + }, |
| 830 | + "entitleIntent": { |
| 831 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent", |
| 832 | + "description": "The request to entitle a subscription." |
| 833 | + } |
| 834 | + }, |
| 835 | + "type": "object" |
| 836 | + }, |
738 | 837 | "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse": {
|
739 | 838 | "description": "Response that contains the products.",
|
740 | 839 | "id": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse",
|
|
1062 | 1161 | },
|
1063 | 1162 | "type": "array"
|
1064 | 1163 | },
|
| 1164 | + "migrationDetails": { |
| 1165 | + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails", |
| 1166 | + "description": "Output only. Describes the details of the migrated subscription. Only populated if this subscription is migrated from another system.", |
| 1167 | + "readOnly": true |
| 1168 | + }, |
1065 | 1169 | "name": {
|
1066 | 1170 | "description": "Identifier. Resource name of the subscription. It will have the format of \"partners/{partner_id}/subscriptions/{subscription_id}\". This is available for authorizeAddon, but otherwise is response only.",
|
1067 | 1171 | "type": "string"
|
|
1328 | 1432 | },
|
1329 | 1433 | "type": "object"
|
1330 | 1434 | },
|
| 1435 | + "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails": { |
| 1436 | + "description": "Describes the details of the migrated subscription.", |
| 1437 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails", |
| 1438 | + "properties": { |
| 1439 | + "migratedSubscriptionId": { |
| 1440 | + "description": "Output only. The migrated subscription id in the legacy system.", |
| 1441 | + "readOnly": true, |
| 1442 | + "type": "string" |
| 1443 | + } |
| 1444 | + }, |
| 1445 | + "type": "object" |
| 1446 | + }, |
1331 | 1447 | "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec": {
|
1332 | 1448 | "description": "Describes the spec for one promotion.",
|
1333 | 1449 | "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec",
|
|
1406 | 1522 | },
|
1407 | 1523 | "type": "object"
|
1408 | 1524 | },
|
| 1525 | + "GoogleCloudPaymentsResellerSubscriptionV1UserSession": { |
| 1526 | + "description": "A user session contains a short-lived token that includes information required to interact with Google Payments Reseller Platform using the following web endpoints. - A user session token should be generated dynamically for an authenticated user. You should refrain from sharing a token directly with a user in an unauthenticated context, such as SMS, or email. - You can re-generate new session tokens repeatedly for same `generate` request if necessary, regardless of the previous tokens being expired or not. You don't need to worry about multiple sessions resulting in duplicate fulfillments as guaranteed by the same subscription id. Please refer to the [Google Managed Signup](/payments/reseller/subscription/reference/index/User.Signup.Integration/Google.Managed.Signup.\\(In.Preview\\)) documentation for additional integration details.", |
| 1527 | + "id": "GoogleCloudPaymentsResellerSubscriptionV1UserSession", |
| 1528 | + "properties": { |
| 1529 | + "expireTime": { |
| 1530 | + "description": "Output only. The time at which the user session expires.", |
| 1531 | + "format": "google-datetime", |
| 1532 | + "readOnly": true, |
| 1533 | + "type": "string" |
| 1534 | + }, |
| 1535 | + "token": { |
| 1536 | + "description": "Output only. The encrypted token of the user session, including the information of the user's intent and request. This token should be provided when redirecting the user to Google.", |
| 1537 | + "readOnly": true, |
| 1538 | + "type": "string" |
| 1539 | + } |
| 1540 | + }, |
| 1541 | + "type": "object" |
| 1542 | + }, |
1409 | 1543 | "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload": {
|
1410 | 1544 | "description": "Payload specific to Youtube products.",
|
1411 | 1545 | "id": "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload",
|
|
0 commit comments