CompletePurchaseValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
定义发起与数字商品相关的应用内购买的规范。可能的数字商品类型:应用内购买、应用内订阅。
JSON 表示法 |
{
"skuId": {
object (SkuId )
},
"developerPayload": string
} |
字段 |
skuId |
object (SkuId )
正在购买的商品。
|
developerPayload |
string
开发者指定的不透明字符串,与购买交易相关联,并应作为购买数据的一部分返回。
|
SkuId
JSON 表示法 |
{
"skuType": enum (SkuType ),
"id": string,
"packageName": string
} |
字段 |
skuType |
enum (SkuType )
SKU 的类型。
|
id |
string
用于在开发者控制台中注册的产品 SKU 的标识符。
|
packageName |
string
注册 SKU 的 Android 软件包的名称。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eLists all the sample projects supported by the gactions CLI with pagination support through \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters.\u003c/p\u003e\n"],["\u003cp\u003eProvides the name, a hosted URL to a zip file, and a description for each sample project.\u003c/p\u003e\n"],["\u003cp\u003eUses gRPC Transcoding for HTTP requests and requires an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eReturns a JSON response containing an array of sample projects and a token for accessing the next page of results.\u003c/p\u003e\n"]]],[],null,["# CompletePurchaseValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SkuId](#SkuId)\n - [JSON representation](#SkuId.SCHEMA_REPRESENTATION)\n\nDefines specification for initiating in-app purchase related to digital goods Types of possible digital goods: in-app purchases, in-app subscriptions.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"skuId\": { object (/assistant/actionssdk/reference/rest/Shared.Types/CompletePurchaseValueSpec#SkuId) }, \"developerPayload\": string } ``` |\n\n| Fields ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `skuId` | `object (`[SkuId](/assistant/actionssdk/reference/rest/Shared.Types/CompletePurchaseValueSpec#SkuId)`)` The product being purchased. |\n| `developerPayload` | `string` An opaque string specified by developer, which would associate with the purchase and is expected to return as part of purchase data. |\n\nSkuId\n-----\n\nIdentifier of a SKU.\n\n| JSON representation ||\n|------------------------------------------------------------------------------|---|\n| ``` { \"skuType\": enum (`SkuType`), \"id\": string, \"packageName\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------|\n| `skuType` | `enum (``SkuType``)` The type of SKU. |\n| `id` | `string` The identifier of the product SKU used for registration in the developer console. |\n| `packageName` | `string` The name of the android package under which the sku was registered. |"]]