Skip to content

Commit

Permalink
feat(paymentsresellersubscription): update the API
Browse files Browse the repository at this point in the history
#### paymentsresellersubscription:v1

The following keys were added:
- resources.partners.resources.userSessions.methods.generate.description
- resources.partners.resources.userSessions.methods.generate.flatPath
- resources.partners.resources.userSessions.methods.generate.httpMethod
- resources.partners.resources.userSessions.methods.generate.id
- resources.partners.resources.userSessions.methods.generate.parameterOrder
- resources.partners.resources.userSessions.methods.generate.parameters.parent.description
- resources.partners.resources.userSessions.methods.generate.parameters.parent.location
- resources.partners.resources.userSessions.methods.generate.parameters.parent.pattern
- resources.partners.resources.userSessions.methods.generate.parameters.parent.required
- resources.partners.resources.userSessions.methods.generate.parameters.parent.type
- resources.partners.resources.userSessions.methods.generate.path
- resources.partners.resources.userSessions.methods.generate.request.$ref
- resources.partners.resources.userSessions.methods.generate.response.$ref
- resources.partners.resources.userSessions.methods.generate.scopes
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.properties.parent.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.properties.parent.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.properties.subscription.$ref
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.properties.subscription.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.properties.subscriptionId.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.properties.subscriptionId.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.properties.name.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.properties.name.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.properties.intentPayload.$ref
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.properties.intentPayload.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.properties.userSession.$ref
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.properties.userSession.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.properties.createIntent.$ref
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.properties.createIntent.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.properties.entitleIntent.$ref
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.properties.entitleIntent.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1Subscription.properties.migrationDetails.$ref
- schemas.GoogleCloudPaymentsResellerSubscriptionV1Subscription.properties.migrationDetails.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1Subscription.properties.migrationDetails.readOnly
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.properties.migratedSubscriptionId.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.properties.migratedSubscriptionId.readOnly
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.properties.migratedSubscriptionId.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.id
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.expireTime.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.expireTime.format
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.expireTime.readOnly
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.expireTime.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.token.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.token.readOnly
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.properties.token.type
- schemas.GoogleCloudPaymentsResellerSubscriptionV1UserSession.type

The following keys were changed:
- schemas.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 29, 2025
1 parent f67b1fe commit 5ee9638
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 3 deletions.
138 changes: 136 additions & 2 deletions discovery/paymentsresellersubscription-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,43 @@
]
}
}
},
"userSessions": {
"methods": {
"generate": {
"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.",
"flatPath": "v1/partners/{partnersId}/userSessions:generate",
"httpMethod": "POST",
"id": "paymentsresellersubscription.partners.userSessions.generate",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The parent, the partner that can resell. Format: partners/{partner}",
"location": "path",
"pattern": "^partners/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/userSessions:generate",
"request": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest"
},
"response": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse"
},
"scopes": [
"openid"
]
}
}
}
}
}
},
"revision": "20240922",
"revision": "20241211",
"rootUrl": "https://paymentsresellersubscription.googleapis.com/",
"schemas": {
"GoogleCloudPaymentsResellerSubscriptionV1Amount": {
Expand Down Expand Up @@ -506,6 +538,25 @@
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent": {
"description": "Intent message for creating a Subscription resource.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent",
"properties": {
"parent": {
"description": "Required. The parent resource name, which is the identifier of the partner.",
"type": "string"
},
"subscription": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription",
"description": "Required. The Subscription to be created."
},
"subscriptionId": {
"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.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1Duration": {
"description": "Describes the length of a period of a time.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1Duration",
Expand Down Expand Up @@ -534,8 +585,19 @@
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent": {
"description": "Intent for entitling the previously provisioned subscription to an end user.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent",
"properties": {
"name": {
"description": "Required. The name of the subscription resource that is entitled to the current end user.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest": {
"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.",
"description": "Partner request for entitling the previously provisioned subscription to an end user. The end user identity is inferred from the request OAuth context.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest",
"properties": {
"lineItemEntitlementDetails": {
Expand Down Expand Up @@ -681,6 +743,28 @@
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest": {
"description": "[Preview only] Request to generate a user session.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest",
"properties": {
"intentPayload": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload",
"description": "The user intent to generate the user session."
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse": {
"description": "[Preview only] Response that contains the details for generated user session.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse",
"properties": {
"userSession": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1UserSession",
"description": "The generated user session. The token size is proportional to the size of the intent payload."
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload": {
"description": "Payload specific to Google One products.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload",
Expand Down Expand Up @@ -735,6 +819,21 @@
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1IntentPayload": {
"description": "The payload that describes the user intent.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload",
"properties": {
"createIntent": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent",
"description": "The request to create a subscription."
},
"entitleIntent": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent",
"description": "The request to entitle a subscription."
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse": {
"description": "Response that contains the products.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse",
Expand Down Expand Up @@ -1062,6 +1161,11 @@
},
"type": "array"
},
"migrationDetails": {
"$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails",
"description": "Output only. Describes the details of the migrated subscription. Only populated if this subscription is migrated from another system.",
"readOnly": true
},
"name": {
"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.",
"type": "string"
Expand Down Expand Up @@ -1328,6 +1432,18 @@
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails": {
"description": "Describes the details of the migrated subscription.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails",
"properties": {
"migratedSubscriptionId": {
"description": "Output only. The migrated subscription id in the legacy system.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec": {
"description": "Describes the spec for one promotion.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec",
Expand Down Expand Up @@ -1406,6 +1522,24 @@
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1UserSession": {
"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.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1UserSession",
"properties": {
"expireTime": {
"description": "Output only. The time at which the user session expires.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"token": {
"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.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload": {
"description": "Payload specific to Youtube products.",
"id": "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload",
Expand Down
Loading

0 comments on commit 5ee9638

Please sign in to comment.