REST Resource: operators.planStatuses
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:PlanStatus
PlanStatus 包含用户购买的所有顶级移动服务套餐的详细信息。
JSON 表示法 |
{
"name": string,
"plans": [
{
object (Plan )
}
],
"languageCode": string,
"expireTime": string,
"updateTime": string,
"title": string,
"subscriberId": string,
"accountInfo": {
object (AccountInfo )
},
"uiCompatibility": enum (UiCompatibility ),
"notifications": [
enum (NotificationType )
],
"planInfoPerClient": {
object (PlanInfoPerClient )
}
} |
字段 |
name |
string
PlanStatus 的资源名称,格式如下:operators/{asn_id}/planStatuses/{userKey} 。创建 PlanStatus 条目时,系统会忽略该名称。
|
plans[] |
object (Plan )
相应用户拥有的方案的列表。
|
languageCode |
string
必需。BCP-47 语言代码,例如“en-US”或“sr-Latn”。如需了解详情,请参阅 http://www.unicode.org/reports/tr35/#Unicode_locale_identifier。
|
expireTime |
string (Timestamp format)
必需。共享方案组信息过时的时间。在此时间之后,系统将不会再向应用提供 PlanStatus。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒。示例:"2014-10-02T15:01:23.045123456Z" 。
|
updateTime |
string (Timestamp format)
必需。数据流量方案代理 (DPA) 从后端系统提取方案状态信息的时间。可用于确定方案状态信息的最新程度。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒。示例:"2014-10-02T15:01:23.045123456Z" 。
|
title |
string
用户与运营商签订的合同的标题。此名称将显示在界面标题中。
|
subscriberId |
string
运营商系统中的唯一稳定标识符,用于标识用户。
|
accountInfo |
object (AccountInfo )
预付费用户必须提供此信息。与用户账号余额相关的信息。
|
uiCompatibility |
enum (UiCompatibility )
确定是否可以在界面中向用户显示 PlanStatus。如果设置为 UI_INCOMPATIBLE,PlanStatus 可用于向用户发送通知,但不会用于向用户显示方案信息。
|
notifications[] |
enum (NotificationType )
已向用户发送的通知类型。
|
planInfoPerClient |
object (PlanInfoPerClient )
|
方法 |
|
允许移动运营商(通过其唯一的自治系统编号 (ASN) 标识)添加新的 PlanStatus 条目。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["PlanStatus provides details of all top-level mobile service packages purchased by a user, including plan information, account balance (for prepaid users), and notification types."],["It includes fields like `name`, `plans`, `languageCode`, `expireTime`, `updateTime`, `title`, `subscriberId`, `accountInfo`, `uiCompatibility`, `notifications`, and `planInfoPerClient`, providing comprehensive data about the user's mobile service package."],["PlanStatus resources are identified by a unique name in the format `operators/{asn_id}/planStatuses/{userKey}` and have a JSON representation for data exchange."],["Mobile operators can create new PlanStatus entries using the `create` method, allowing them to manage and update user plan information."]]],["PlanStatus details mobile service packages purchased by a user. Key data includes the user's `name`, associated `plans`, `languageCode`, and `subscriberId`. It specifies `expireTime` and `updateTime` for the data's validity. `accountInfo` is required for prepaid users. `uiCompatibility` determines display status, and `notifications` lists sent alerts. A mobile operator can use the `create` method to add new PlanStatus entries, as identified by their unique Autonomous System Number.\n"]]