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)

方法

create

允许移动运营商(通过其唯一的自治系统编号 (ASN) 标识)添加新的 PlanStatus 条目。