Esquemas de datos para productos de Store
Cuando envías un producto como una aplicación o un complemento a la Tienda, la Tienda mantiene un conjunto completo de datos para el producto y sus licencias. En el código de la aplicación, puedes acceder mediante programación a algunos de estos datos mediante propiedades del espacio de nombres Windows.Services.Store . Por ejemplo, puedes recuperar la descripción y el precio de la aplicación actual o un complemento para la aplicación actual mediante las propiedades StoreProduct.Description y StoreProduct.Price .
Sin embargo, gran parte de los datos de los productos de la Tienda no se expone mediante propiedades predefinidas en el espacio de nombres Windows.Services.Store . Para acceder a los datos completos de un producto en el código, puede usar las siguientes propiedades generales en su lugar:
- StoreProduct.ExtendedJsonData
- StoreSku.ExtendedJsonData
- StoreAvailability.ExtendedJsonData
- StoreCollectionData.ExtendedJsonData
- StoreAppLicense.ExtendedJsonData
- StoreLicense.ExtendedJsonData
- StorePurchaseProperties.ExtendedJsonData
Estas propiedades devuelven los datos completos del objeto correspondiente como una cadena con formato JSON. En este artículo se proporciona el esquema completo de los datos devueltos por estas propiedades.
Nota:
Los productos de la Tienda se organizan en una jerarquía de objetos de producto, SKU y disponibilidad . Para obtener más información, consulte Productos, SKU y disponibilidad.
Esquema para StoreProduct, StoreSku, StoreAvailability y StoreCollectionData
En el esquema siguiente se describe la cadena con formato JSON devuelta por StoreProduct.ExtendedJsonData. Las propiedades StoreSku.ExtendedJsonData, StoreAvailability.ExtendedJsonData y StoreCollectionData.ExtendedJsonData devuelven solo las partes del esquema que se definen en las DisplaySkuAvailabilities\Sku
rutas de acceso , DisplaySkuAvailabilities\Availabilities
y DisplaySkuAvailabilities\Sku\CollectionData
, respectivamente.
Para obtener un ejemplo de una cadena con formato JSON devuelta por StoreProduct.ExtendedJsonData, consulte esta sección.
{
"type": "object",
"properties": {
"ProductId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}$"
},
"ProductKind": {
"type": "string"
},
"LocalizedProperties": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "object",
"properties": {
"DeveloperName": {
"type": [ "string", "null" ]
},
"PublisherName": {
"type": [ "string", "null" ]
},
"PublisherWebsiteUri": {
"type": [ "string", "null" ]
},
"SupportUri": {
"type": [ "string", "null" ]
},
"EligibilityProperties": {
"type": [ "object", "null" ],
"properties": {
"Affirmations": {
"type": "array",
"items": {
"$ref": "#/definitions/affirmationDescription"
}
},
"Remediations": {
"type": "array",
"items": {
"$ref": "#/definitions/remediationDescription"
}
}
},
"additionalProperties": false
},
"ProductTitle": {
"type": "string"
},
"ProductDescription": {
"type": [ "string", "null" ]
},
"Language": {
"type": "string"
},
"Images": {
"type": [ "array", "null" ],
"items": {
"$ref": "#/definitions/image"
}
},
"Videos": {
"type": [ "array", "null" ],
"items": {
"$ref": "#/definitions/video"
}
},
"SearchTitles": {
"type": [ "array", "null" ],
"items": {
"type": "object",
"properties": {
"SearchTitleType": {
"type": "string"
},
"SearchTitleString": {
"type": "string"
}
},
"required": [
"SearchTitleType",
"SearchTitleString"
]
}
}
},
"required": [
"ProductTitle",
"Language"
],
"additionalProperties": false
}
},
"MarketProperties": {
"type": [ "array", "null" ],
"minItems": 0,
"maxItems": 1,
"items": {
"type": "object",
"properties": {
"RelatedProducts": {
"type": [ "array", "null" ],
"items": {
"type": "object",
"properties": {
"RelationshipType": {
"type": "string"
},
"RelatedProductId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}$"
}
},
"required": [
"RelationshipType",
"RelatedProductId"
]
}
}
},
"additionalProperties": false
}
},
"Properties": {
"type": [ "object", "null" ],
"properties": {
"InAppOfferToken": {
"type": "string"
},
"PackageFamilyName": {
"type": [
"string",
"null"
]
},
"Category": {
"type": "string"
},
"IsAwardable": {
"type": "boolean"
},
"IsColorizable": {
"type": "boolean"
},
"Is3DExportable": {
"type": "boolean"
}
},
"additionalProperties": false
},
"DisplaySkuAvailabilities": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/sku"
}
}
},
"required": [
"ProductId",
"ProductKind",
"LocalizedProperties",
"DisplaySkuAvailabilities"
],
"format": "Product",
"definitions": {
"sku": {
"type": "object",
"properties": {
"Sku": {
"type": "object",
"properties": {
"SkuId": {
"type": "string",
"pattern": "^[0-9A-Z]{4}$"
},
"Properties": {
"type": "object",
"properties": {
"FulfillmentType": {
"type": [ "string", "null" ]
},
"CustomDeveloperData": {
"type": [ "string", "null" ]
},
"IsTrial": {
"type": [ "boolean", "null" ]
},
"SkuDisplayRank": {
"type": [ "integer", "null" ]
},
"BundledSkus": {
"type": [ "array", "null" ],
"items": {
"type": "object",
"properties": {
"BigId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}(?:/[0-9A-Z]{4})?$"
}
},
"additionalProperties": false
}
},
"ConsumableQuantity": {
"type": "integer",
"minimum": 1,
"format": "ConsumableQuantity"
},
"IsRepurchasable": {
"type": "boolean"
},
"Packages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"PackageUri": {
"type": "string"
}
},
"required": [ "PackageUri" ],
"additionalProperties": false
}
}
},
"additionalProperties": false,
"format": "SkuProperties"
},
"LocalizedProperties": {
"type": "array",
"minItems": 0,
"maxItems": 1,
"items": {
"type": "object",
"properties": {
"SkuTitle": {
"type": [ "string", "null" ]
},
"SkuDescription": {
"type": [ "string", "null" ]
},
"SkuButtonTitle": {
"type": [ "string", "null" ]
},
"Language": {
"type": "string"
},
"Images": {
"type": [ "array", "null" ],
"items": {
"$ref": "#/definitions/image"
}
},
"Videos": {
"type": [ "array", "null" ],
"items": {
"$ref": "#/definitions/video"
}
},
"LegalText": {
"type": [ "object", "null" ],
"properties": {
"Tou": {
"type": [ "string", "null" ]
},
"TouUri": {
"type": [ "string", "null" ]
},
"Copyright": {
"type": [ "string", "null" ]
},
"CopyrightUri": {
"type": [ "string", "null" ]
},
"PrivacyPolicy": {
"type": [ "string", "null" ]
},
"PrivacyPolicyUri": {
"type": [ "string", "null" ]
},
"AdditionalLicenseTerms": {
"type": [ "string", "null" ]
}
},
"additionalProperties": false
},
"SkuDisplayRank": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Dimension": {
"type": "string"
},
"Rank": {
"type": "integer"
}
},
"additionalProperties": false
}
}
},
"required": [
"Language"
],
"additionalProperties": false
}
},
"RecurrencePolicy": {
"type": [
"object",
"null"
],
"properties": {
"InitialDuration": {
"$ref": "#/definitions/duration"
},
"Duration": {
"$ref": "#/definitions/duration"
},
"IsRecurring": {
"type": [ "boolean", "null" ]
},
"HasTrial": {
"type": [ "boolean", "null" ]
}
},
"required": [ "InitialDuration", "Duration" ],
"additionalProperties": false
},
"CollectionData": {
"$ref": "#/definitions/collectionData"
}
},
"required": [
"SkuId",
"Properties",
"LocalizedProperties"
],
"additionalProperties": false
},
"Availabilities": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/availability"
}
}
},
"format": "SKU",
"required": [
"Sku",
"Availabilities"
],
"additionalProperties": false
},
"availability": {
"type": "object",
"properties": {
"Conditions": {
"type": "object",
"properties": {
"EndDate": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?$"
}
},
"required": [ "EndDate" ],
"additionalProperties": false
},
"OrderManagementData": {
"type": [ "object", "null" ],
"properties": {
"Price": {
"type": "object",
"properties": {
"ListPrice": {
"type": "number"
},
"CurrencyCode": {
"enum": [ "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "USS", "UYI", "UYU", "UZS", "VEF", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XFU", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW" ]
},
"MSRP": {
"type": "number"
},
"RecurrencePrice": {
"type": [ "number", "null" ]
}
},
"required": [
"ListPrice",
"CurrencyCode",
"MSRP"
],
"additionalProperties": false
}
},
"required": [ "Price" ],
"additionalProperties": false
},
"AvailabilityId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}$"
},
"DisplayRank": {
"type": "integer"
},
"RemediationRequired": {
"type": "boolean"
},
"Remediations": {
"type": "array",
"items": {
"$ref": "#/definitions/remediation"
}
},
"AffirmationId": {
"type": "string"
},
"Actions": {
"type": "array",
"items": {
"type": "string"
}
}
},
"format": "Availability",
"required": [
"Conditions",
"AvailabilityId",
"DisplayRank",
"Actions"
],
"additionalProperties": false
},
"duration": {
"type": "object",
"properties": {
"UnitType": {
"enum": [ "Year", "Month", "Week", "Day", "Hour", "Minute" ]
},
"Units": {
"type": "integer"
}
},
"format": "Duration",
"required": [ "Units" ],
"additionalProperties": false
},
"collectionData": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}$"
},
"skuId": {
"type": "string",
"pattern": "^[0-9A-Z]{4}$"
},
"isTrial": {
"type": [ "boolean", "null" ]
},
"campaignId": {
"type": [ "string", "null" ]
},
"devOfferId": {
"type": [ "string", "null" ]
},
"acquiredDate": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?$"
},
"endDate": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?$"
},
"startDate": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?$"
},
"modifiedDate": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?$"
},
"autoRenew": {
"type": "boolean"
},
"additionalIds": {
"type": "array",
"items": {
"type": "object"
}
},
"fulfillmentData": {
"type": "array",
"items": {
"type": "string"
}
},
"inAppOfferToken": {
"type": "string"
},
"isCacheable": {
"type": "boolean"
},
"itemId": {
"type": "string"
},
"localTicketReference": {
"type": "string"
},
"musicTracksInfo": {
"type": "array",
"items": {
"type": "object"
}
},
"orderId": {
"type": "string",
"pattern": "^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}?$"
},
"orderLineItemId": {
"type": "string",
"pattern": "^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}?$"
},
"ownershipType": {
"type": "string"
},
"productFamily": {
"type": "string"
},
"productKind": {
"type": "string"
},
"productTitleId": {
"type": "string"
},
"purchasedCountry": {
"type": "string"
},
"quantity": {
"type": "integer"
},
"skuType": {
"type": "string"
},
"status": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"transactionId": {
"type": "string",
"pattern": "^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}?$"
}
},
"required": [
"acquiredDate",
"autoRenew",
"additionalIds",
"endDate",
"fulfillmentData",
"isCacheable",
"itemId",
"localTicketReference",
"modifiedDate",
"musicTracksInfo",
"orderId",
"orderLineItemId",
"ownershipType",
"productFamily",
"productId",
"productKind",
"productTitleId",
"purchasedCountry",
"skuId",
"skuType",
"startDate",
"status",
"tags",
"transactionId"
],
"additionalProperties": false
},
"video": {
"properties": {
"Uri": {
"type": "string"
},
"BackgroundColor": {
"type": [
"string",
"null"
]
},
"ForegroundColor": {
"type": [
"string",
"null"
]
},
"Caption": {
"type": [
"string",
"null"
]
},
"Width": {
"type": "integer"
},
"Height": {
"type": "integer"
},
"VideoPurpose": {
"type": [ "string", "null" ]
},
"PreviewImage": {
"$ref": "#/definitions/image"
}
},
"required": [
"Uri",
"Width",
"Height"
],
"additionalProperties": false
},
"image": {
"properties": {
"Uri": {
"type": "string"
},
"ImagePurpose": {
"type": [
"string",
"null"
]
},
"BackgroundColor": {
"type": [
"string",
"null"
]
},
"ForegroundColor": {
"type": [
"string",
"null"
]
},
"Caption": {
"type": [
"string",
"null"
]
},
"Width": {
"type": "integer"
},
"Height": {
"type": "integer"
}
},
"required": [
"Uri",
"Width",
"Height"
],
"additionalProperties": false
},
"remediationDescription": {
"type": "object",
"properties": {
"RemediationId": {
"type": "string"
},
"Description": {
"type": "string"
}
},
"required": [ "RemediationId", "Description" ],
"additionalProperties": false
},
"remediation": {
"type": "object",
"properties": {
"RemediationId": {
"type": "string"
},
"Url": {
"type": "string"
},
"BigId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}(?:/[0-9A-Z]{4})?$"
}
},
"required": [
"RemediationId"
],
"additionalProperties": false
},
"affirmationDescription": {
"type": "object",
"properties": {
"AffirmationId": {
"type": "string"
},
"AffirmationProductId": {
"type": [ "string", "null" ],
"pattern": "^[0-9A-Z]{12}$"
},
"Description": {
"type": "string"
}
},
"required": [ "AffirmationId", "Description" ],
"additionalProperties": false
}
},
"additionalProperties": false
}
Ejemplo
En el ejemplo siguiente se muestra una cadena con formato JSON devuelta por la propiedad StoreProduct.ExtendedJsonData para la aplicación.
{
"LocalizedProperties": [
{
"DeveloperName": "Contoso developer",
"PublisherName": "Contoso",
"PublisherWebsiteUri": "http://www.contoso.com",
"SupportUri": "mailto:support@contoso.com",
"EligibilityProperties": null,
"Images": [
{
"BackgroundColor": "transparent",
"Caption": "",
"ForegroundColor": "",
"Height": 300,
"ImagePurpose": "tile",
"Uri": "//store-images.s-contoso.com/image/apps.40735.14525693010133175.0aff34d4-9b25-4671-b5fc-0d13efd28147.c23ea293-a138-42a0-a615-d03c41409169",
"Width": 300
},
{
"BackgroundColor": "transparent",
"Caption": "",
"ForegroundColor": "",
"Height": 88,
"ImagePurpose": "tile",
"Uri": "//store-images.s-contoso.com/image/apps.25013.14525693010133175.40f2a63d-463b-49f6-8953-b2d9cc4abeba.baa4030d-5d37-4965-8039-72158df22c42",
"Width": 88
},
{
"BackgroundColor": "transparent",
"Caption": "",
"ForegroundColor": "",
"Height": 300,
"ImagePurpose": "tile",
"Uri": "//store-images.s-contoso.com/image/apps.61404.14525693010133175.b9fde0dd-bab8-49a1-acfb-35d897b02bda.c0a07eff-ce1b-47c8-a4b5-5c83337911f9",
"Width": 620
},
{
"BackgroundColor": "transparent",
"Caption": "",
"ForegroundColor": "",
"Height": 50,
"ImagePurpose": "logo",
"Uri": "//store-images.s-contoso.com/image/apps.53845.14525693010133175.f907b7fa-6bd3-4d9e-af7d-33f19e170d33.07b372ce-4514-4f71-832f-745cad63c78e",
"Width": 50
},
{
"BackgroundColor": "transparent",
"Caption": "",
"ForegroundColor": "",
"Height": 300,
"ImagePurpose": "Logo",
"Uri": "//store-images.s-contoso.com/image/apps.27529.14525693010133175.f7574c79-bdda-4684-9929-25f7e1d370b7.a16a54ee-c3b1-4311-9d36-5fee7ac23639",
"Width": 300
},
{
"BackgroundColor": "transparent",
"Caption": "",
"ForegroundColor": "",
"Height": 768,
"ImagePurpose": "Screenshot",
"Uri": "//store-images.s-contoso.com/image/apps.39690.14525693010133175.47a548ec-c651-4b73-b937-7953a8714ddd.b2724431-1470-419e-aa4b-74830aba9e1b",
"Width": 1366
}
],
"Videos": [],
"ProductDescription": "This is a sample app for developement tasks",
"ProductTitle": "Contoso Sample App",
"SearchTitles": [],
"Language": "en-us"
}
],
"MarketProperties": [
{
"RelatedProducts": []
}
],
"ProductId": "9NBLGGH4R315",
"Properties": {
"PackageFamilyName": "30321Contoso.ContosoSampleApp_sv9ybgxvtektj"
},
"ProductKind": "Application",
"DisplaySkuAvailabilities": [
{
"Sku": {
"LocalizedProperties": [
{
"LegalText": {
"Copyright": "",
"CopyrightUri": "",
"PrivacyPolicy": "",
"PrivacyPolicyUri": "",
"Tou": "",
"TouUri": ""
},
"SkuDescription": "This is a sample app for developement tasks",
"SkuTitle": "Contoso Sample App",
"SkuDisplayRank": [],
"Language": "en-us"
}
],
"Properties": {
"FulfillmentType": "WindowsUpdate",
"BundledSkus": [],
"IsRepurchasable": false,
"IsTrial": false
},
"SkuId": "0010",
"RecurrencePolicy": null,
"CollectionData": {
"acquiredDate": "2017-02-27T13:34:57.6680551-08:00",
"additionalIds": [],
"beneficiary": {
"identityType": "msa",
"identityValue": "949157616400113"
},
"endDate": "9999-12-31T15:59:59.9999999-08:00",
"fulfillmentData": [],
"isCacheable": true,
"itemId": "0ae08fb4326a413a890c957b52aeda88",
"localTicketReference": "0",
"modifiedDate": "2017-02-27T13:34:57.6616413-08:00",
"musicTracksInfo": [],
"orderId": "9c54da93-5b1d-4afe-ac45-dd0c19bb3e8f",
"orderLineItemId": "88043dae-9cca-4497-aaac-e85f6cf018aa",
"ownershipType": "OwnedByBeneficiary",
"productFamily": "Apps",
"productId": "9NBLGGH4R315",
"productKind": "Application",
"productTitleId": "-129071",
"purchasedCountry": "US",
"purchaser": {
"identityType": "msa",
"identityValue": "985157600400620"
},
"quantity": 1,
"skuId": "0010",
"skuType": "Full",
"startDate": "2017-02-27T13:19:57.6680551-08:00",
"status": "Active",
"tags": [],
"transactionId": "9c54da93-5b1d-4afe-ac45-dd0c19bb3e8f"
}
},
"Availabilities": [
{
"Actions": [
"Details",
"Fulfill",
"License",
"Purchase",
"Redeem"
],
"AvailabilityId": "9XJKQMZ5M9NX",
"Conditions": {
"EndDate": "9998-12-30T00:00:00Z"
},
"OrderManagementData": {
"Price": {
"CurrencyCode": "USD",
"ListPrice": 0,
"MSRP": 0
}
},
"DisplayRank": 0,
"RemediationRequired": false
}
]
},
{
"Sku": {
"LocalizedProperties": [
{
"LegalText": {
"Copyright": "",
"CopyrightUri": "",
"PrivacyPolicy": "",
"PrivacyPolicyUri": "",
"Tou": "",
"TouUri": ""
},
"SkuDescription": "This is a sample app for developement tasks",
"SkuTitle": "Contoso Sample App",
"SkuDisplayRank": [],
"Language": "en-us"
}
],
"Properties": {
"FulfillmentType": "WindowsUpdate",
"BundledSkus": [],
"IsRepurchasable": false,
"IsTrial": false
},
"SkuId": "0017",
"RecurrencePolicy": null
},
"Availabilities": [
{
"Actions": [
"Details"
],
"AvailabilityId": "9ZFNZ00M33HF",
"Conditions": {
"EndDate": "9998-12-30T00:00:00Z"
},
"OrderManagementData": {
"Price": {
"CurrencyCode": "USD",
"ListPrice": 0,
"MSRP": 0
}
},
"DisplayRank": 0,
"RemediationRequired": false
}
]
},
{
"Sku": {
"LocalizedProperties": [
{
"LegalText": {
"Copyright": "",
"CopyrightUri": "",
"PrivacyPolicy": "",
"PrivacyPolicyUri": "",
"Tou": "",
"TouUri": ""
},
"SkuDescription": "This is a sample app for developement tasks",
"SkuTitle": "Contoso Sample App",
"SkuDisplayRank": [],
"Language": "en-us"
}
],
"Properties": {
"FulfillmentType": "WindowsUpdate",
"BundledSkus": [],
"IsRepurchasable": false,
"IsTrial": true
},
"SkuId": "0011",
"RecurrencePolicy": null
},
"Availabilities": [
{
"Actions": [
"Details",
"License",
"Fulfill"
],
"AvailabilityId": "9QVHW1D0B4QB",
"Conditions": {
"EndDate": "9998-12-30T00:00:00Z"
},
"OrderManagementData": {
"Price": {
"CurrencyCode": "USD",
"ListPrice": 0,
"MSRP": 0
}
},
"DisplayRank": 0,
"RemediationRequired": false
}
]
}
]
}
Esquema para StoreAppLicense y StoreLicense
En el esquema siguiente se describe la cadena con formato JSON devuelta por StoreAppLicense.ExtendedJsonData. La propiedad StoreLicense.ExtendedJsonData devuelve solo las partes del esquema que se definen en la ruta de productAddOns
acceso.
Para obtener un ejemplo de una cadena con formato JSON devuelta por StoreAppLicense.ExtendedJsonData, consulta esta sección.
{
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}$"
},
"skuId": {
"type": "string",
"pattern": "^[0-9A-Z]{4}$"
},
"expiration": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d(\\.\\d+)?$"
},
"isActive": {
"type": "boolean"
},
"isTrial": {
"type": "boolean"
},
"isTrialOwnedByThisUser": {
"type": "boolean"
},
"trialTimeRemaining": {
"type": "string"
},
"productAddOns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"inAppOfferToken": {
"type": "string"
},
"productId": {
"type": "string",
"pattern": "^[0-9A-Z]{12}$"
},
"productType": {
"type": "string"
},
"skuId": {
"type": "string",
"pattern": "^[0-9A-Z]{4}$"
},
"skuType": {
"type": "string"
},
"expiration": {
"type": "string",
"pattern": "^\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d(\\.\\d+)?$"
},
"isActive": {
"type": "boolean"
}
},
"required": [
"inAppOfferToken",
"productType",
"skuType",
"expiration",
"isActive"
],
"additionalProperties": false
}
}
},
"required": [
"productAddOns",
"productId",
"skuId",
"expiration",
"isActive",
"isTrial",
"isTrialOwnedByThisUser",
"trialTimeRemaining"
],
"additionalProperties": false
}
Ejemplo
En el ejemplo siguiente se muestra una cadena con formato JSON devuelta por la propiedad StoreAppLicense.ExtendedJsonData para la aplicación.
{
"productAddOns": [
{
"inAppOfferToken": "Durable test add-on",
"productId": "9NBLGGH4TNMP",
"productType": "Durable",
"skuId": "0010",
"skuType": "Full",
"expiration": "9999-12-31 00:00:00",
"isActive": true
},
{
"inAppOfferToken": "Consumable test add-on",
"productId": "9NBLGGH4TNMN",
"productType": "Consumable",
"skuId": "0020",
"skuType": "Full",
"expiration": "9999-12-31 00:00:00",
"isActive": true
}
],
"productId": "9NBLGGH4R315",
"skuId": "0010",
"isActive": true,
"isTrial": false,
"isTrialOwnedByThisUser": false,
"expiration": "9999-12-31 00:00:00"
}
Esquema para StorePurchaseProperties
En el esquema siguiente se describe la cadena con formato JSON devuelta por StorePurchaseProperties.ExtendedJsonData.
{
"type": "object",
"properties": {
"Name": {
"type": "string"
}
},
"required": [
"Name"
],
"additionalProperties": false
}
Temas relacionados
- Pruebas y compras desde la aplicación
- Obtener información de producto para aplicaciones y complementos
- Obtener información de licencia para aplicaciones y complementos
- Habilitación de compras desde la aplicación para aplicaciones y complementos
- Habilitar compras de complementos consumibles
- Implementación de una versión de prueba de una aplicación