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)
  },
  "cpidState": enum (CpidState)
}
字段
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:23Z""2014-10-02T15:01:23.045123456Z"

updateTime

string (Timestamp format)

必需。流量套餐代理 (DPA) 从后端系统提取方案状态信息的时间。可用于确定方案状态信息的时效性。更新时间必须是过去的时间,但不能超过 30 天。

时间戳采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,分辨率为纳秒级,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

title

string

用户与运营商签订的合同的标题。此信息将显示在界面标头中。

subscriberId

string

运营商系统中的唯一稳定标识符,用于标识用户。

accountInfo

object (AccountInfo)

预付费用户必需。有关用户帐号余额的信息。

uiCompatibility

enum (UiCompatibility)

确定是否可以在界面中向用户显示 PlanStatus。设置为 UI_INCOMPATIBLE 时,PlanStatus 可用于向用户发送通知,但不会用于向用户显示方案信息。

notifications[]

enum (NotificationType)

包含 GTAF 向用户发送的通知类型的列表。如果调用方填充了此字段,GTAF 会忽略此字段。

planInfoPerClient

object (PlanInfoPerClient)

与特定 Google 客户相关的流量套餐信息。

cpidState

enum (CpidState)

与此方案状态相关联的 CPID 的状态。

方法

create

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