REST Resource: genericclass
资源:GenericClass
JSON 表示法 |
{
"id": string,
"classTemplateInfo": {
object (ClassTemplateInfo )
},
"imageModulesData": [
{
object (ImageModuleData )
}
],
"textModulesData": [
{
object (TextModuleData )
}
],
"linksModuleData": {
object (LinksModuleData )
},
"enableSmartTap": boolean,
"redemptionIssuers": [
string
],
"securityAnimation": {
object (SecurityAnimation )
},
"multipleDevicesAndHoldersAllowedStatus": enum (MultipleDevicesAndHoldersAllowedStatus ),
"callbackOptions": {
object (CallbackOptions )
},
"viewUnlockRequirement": enum (ViewUnlockRequirement ),
"messages": [
{
object (Message )
}
],
"appLinkData": {
object (AppLinkData )
},
"valueAddedModuleData": [
{
object (ValueAddedModuleData )
}
]
} |
字段 |
id |
string
必需。类的唯一标识符。此 ID 在一个发卡机构的所有对象中必须是唯一的。此值需要遵循以下格式:issuerID.identifier ,其中 issuerID 由 Google 提供,identifier 由您选择。唯一标识符只能包含字母数字字符、. 、_ 或 - 。
|
classTemplateInfo |
object (ClassTemplateInfo )
有关应如何显示类的模板信息。如果未设置,Google 将回退为显示默认字段集。
|
imageModulesData[] |
object (ImageModuleData )
图片模块数据。如果还在对象中定义了 imageModulesData ,则将一并显示这两项数据。如果同时设置了类级和对象级图片,系统只会渲染其中一个图片。
|
textModulesData[] |
object (TextModuleData )
文本模块数据。如果还在对象中定义了 textModulesData ,则将一并显示这两项内容。从类开始,显示的字段数量上限为 10;对于对象,上限也为 10。
|
linksModuleData |
object (LinksModuleData )
链接模块数据。如果还在对象中定义了 linksModuleData ,则将一并显示这两项内容。从类开始,显示的字段数量上限为 10;对于对象,上限也为 10。
|
enableSmartTap |
boolean
仅适用于支持智能触碰技术的合作伙伴。如需更多指导,请与支持人员联系。
|
redemptionIssuers[] |
string (int64 format)
用于标识哪些兑换发卡机构可以通过智能感应功能兑换卡券。兑换发卡机构通过发卡机构 ID 进行标识。兑换发卡机构必须至少配置一个智能触碰密钥。 此外,还必须正确设置 enableSmartTap 和对象级 smartTapRedemptionLevel 字段,才能支持智能感应式付款。
|
securityAnimation |
object (SecurityAnimation )
有关安全动画的可选信息。如果设置此属性,系统会在卡券详情中呈现安全动画。
|
multipleDevicesAndHoldersAllowedStatus |
enum (MultipleDevicesAndHoldersAllowedStatus )
指明是否允许多个用户和设备保存引用该类的同一对象。
|
callbackOptions |
object (CallbackOptions )
回调选项,用于在最终用户每次保存/删除此类的对象时回调发卡机构。此类的所有对象都可进行回调。
|
viewUnlockRequirement |
enum (ViewUnlockRequirement )
查看通用卡券的“解锁要求”选项。
|
messages[] |
object (Message )
在应用中显示的一组消息。此对象的所有用户都将收到其关联消息。这些字段的数量上限为 10。
|
appLinkData |
object (AppLinkData )
可选的应用或网站链接,将以按钮的形式显示在卡券正面。如果为相应对象提供了 AppLinkData,则系统会改用该对象。
|
valueAddedModuleData[] |
object (ValueAddedModuleData )
添加了可选值模块数据。课程最多可以有 10 个。对于一次传递,系统只会显示 10 个错误,并优先显示来自对象的错误。
|
方法 |
|
向指定类 ID 引用的泛型类添加消息。 |
|
返回具有指定类 ID 的通用类。 |
|
插入具有指定 ID 和属性的通用类。 |
|
返回指定发卡机构 ID 的所有通用类的列表。 |
|
更新指定类 ID 引用的泛型类。 |
|
更新指定类 ID 引用的通用类。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-13。
[null,null,["最后更新时间 (UTC):2024-11-13。"],[[["The Generic Class resource allows you to create and manage generic passes within Google Wallet."],["It provides fields for customizing the pass's appearance, content, and functionality, such as images, text modules, links, and smart tap capabilities."],["Developers can utilize various methods to interact with Generic Class resources, including adding messages, retrieving class details, inserting new classes, listing existing classes, and updating class information."],["Each Generic Class is identified by a unique ID and leverages JSON for data representation and communication with the Google Wallet API."]]],["The `GenericClass` resource defines a structure for generic passes, including data like `id`, `classTemplateInfo`, `imageModulesData`, and `textModulesData`. It supports features like `enableSmartTap`, `securityAnimation`, and `appLinkData`. The resource contains multiple optional field for various purposes. It allows for multiple redemption issuers and callback options. Methods include managing messages (`addmessage`), retrieving (`get`), creating (`insert`), listing (`list`), and updating (`patch`, `update`) generic classes.\n"]]