Offer

向用户延期的优惠中的流量方案的详细信息。

JSON 表示法
{
  "planName": string,
  "planId": string,
  "planDescription": string,
  "promoMessage": string,
  "overusagePolicy": enum (OverUsagePolicy),
  "maxRateKbps": string,
  "cost": {
    object (Money)
  },
  "duration": string,
  "offerContext": string,
  "trafficCategories": [
    enum (PlanModuleTrafficCategory)
  ],
  "connectionType": enum (ConnectionType),
  "refreshPeriod": enum (RefreshPeriod),
  "offerType": enum (OfferType),

  // Union field quota can be only one of the following:
  "quotaBytes": string,
  "quotaMinutes": integer
  // End of list of possible types for union field quota.
}
字段
planName

string

必需。一个字符串,用于向用户标识相应优惠。

planId

string

必需。一个唯一字符串,可用于唯一标识相应优惠,以便用户随后购买。

planDescription

string

必需。向用户描述优惠的较长字符串。

promoMessage

string

描述促销活动的字符串。

overusagePolicy

enum (OverUsagePolicy)

确定用户最终使用的流量超出所提供流量时会发生什么情况。目前支持的选项包括:限制、屏蔽和按需付费(从用户账号中扣除余额)。

maxRateKbps

string (int64 format)

相应方案可为用户提供的最大带宽。系统可以在展示优惠时向用户显示这些信息。

cost

object (Money)

必需。相应方案的费用。

duration

string (Duration format)

相应方案在激活后有效的时间(以秒为单位)。

该持续时间以秒为单位,最多包含九个小数位,以“s”结尾。示例:"3.5s"

offerContext

string

在 TransactionRequest 消息中使用的优惠上下文。

trafficCategories[]

enum (PlanModuleTrafficCategory)

将根据相应方案模块收费的流量类别列表。

connectionType

enum (ConnectionType)

作为此优惠的一部分而延长的连接类型。

refreshPeriod

enum (RefreshPeriod)

相应方案优惠的刷新周期,如果方案不刷新配额,则为 REFRESH_PERIOD_NONE。如果方案会重置配额,则会在每个重置周期重置一次。

offerType

enum (OfferType)

指明优惠类型。根据优惠类型,客户可以自定义优惠购买的用户体验。

联合字段 quota。方案配额信息,应为以下值之一:quota_bytes、quota_minutes。quota 只能是下列其中一项:
quotaBytes

string (int64 format)

软件包配额(以字节为单位)。

quotaMinutes

integer

套餐配额(以分钟为单位)。