Ниже приведен пример моей текущей структуры данных в формате JSON:
Код: Выделить всё
{
"productId":"product_id_example",
"type":"subs",
"title":"title",
"name":"name",
"description":"product description",
"localizedIn":[
"en-US"
],
"skuDetailsToken":"sku_details_token_example",
"subscriptionOfferDetails":[
{
"offerIdToken":"offer_id_token_example",
"basePlanId":"yearly",
"pricingPhases":[
{
"priceAmountMicros":49990000,
"priceCurrencyCode":"EUR",
"formattedPrice":"€49.99",
"billingPeriod":"P1Y",
"recurrenceMode":1
}
],
"offerTags":[
]
}
]
}
Вопрос:
Какая будет новая версия JSON, если я добавлю 7-дневную бесплатную пробную версию к своему базовому плану?
Ниже я думаю, ч т о э т о м о ж е т б ы т ь . < / p > < b r / > < c o d e > J S O N 1 : < b r / > { < b r / > & q u o t ; p r o d u c t I d & q u o t ; : & q u o t ; p r o d u c t _ i d _ e x a m p l e & q u o t ; , < b r / > & q u o t ; t y p e & q u o t ; : & q u o t ; s u b s & q u o t ; , < b r / > & q u o t ; t i t l e & q u o t ; : & q u o t ; t i t l e & q u o t ; , < b r / > & q u o t ; n a m e & q u o t ; : & q u o t ; n a m e & q u o t ; , < b r / > & q u o t ; d e s c r i p t i o n & q u o t ; : & q u o t ; p r o d u c t d e s c r i p t i o n & q u o t ; , < b r / > & q u o t ; l o c a l i z e d I n & q u o t ; : [ < b r / > & q u o t ;en-US"
],
"skuDetailsToken":"sku_details_token_example",
"subscriptionOfferDetails":[
{
"offerIdToken":"offer_id_token_example",
"basePlanId":"yearly",
"pricingPhases":[
{
"priceAmountMicros":0,
"priceCurrencyCode":"",
"formattedPrice":"",
"billingPeriod":"P1W",
"recurrenceMode":2
},
{
"priceAmountMicros":49990000,
"priceCurrencyCode":"EUR",
"formattedPrice":"€49.99",
"billingPeriod":"P1Y",
"recurrenceMode":1
}
],
"offerTags":[
]
}
]
}
JSON2:
{
"productId":"product_id_example",
"type":"subs",
"title":"title",
"name":"name",
"description":"product description",
"localizedIn":[
"en-US"
],
"skuDetailsToken":"sku_details_token_example",
"subscriptionOfferDetails":[
{
"offerIdToken":"offer_id_token_example",
"basePlanId":"yearly",
"pricingPhases":[
{
"priceAmountMicros":0,
"priceCurrencyCode":"",
"formattedPrice":"",
"billingPeriod":"P1W",
"recurrenceMode":2
},
{
"priceAmountMicros":49990000,
"priceCurrencyCode":"EUR",
"formattedPrice":"€49.99",
"billingPeriod":"P1Y",
"recurrenceMode":1
}
],
"offerTags":[
]
}
{
"offerIdToken":"offer_id_token_example",
"basePlanId":"yearly",
"pricingPhases":[
{
"priceAmountMicros":49990000,
"priceCurrencyCode":"EUR",
"formattedPrice":"€49.99",
"billingPeriod":"P1Y",
"recurrenceMode":1
}
],
"offerTags":[
]
}
]
}
JSON3:
{
"productId":"product_id_example",
"type":"subs",
"title":"title",
"name":"name",
"description":"product description",
"localizedIn":[
"en-US"
],
"skuDetailsToken":"sku_details_token_example",
"subscriptionOfferDetails":[
{
"offerIdToken":"offer_id_token_example",
"basePlanId":"yearly",
"pricingPhases":[
{
"priceAmountMicros":0,
"priceCurrencyCode":"",
"formattedPrice":"",
"billingPeriod":"P1W",
"recurrenceMode":2
}
],
"offerTags":[
]
}
{
"offerIdToken":"offer_id_token_example",
"basePlanId":"yearly",
"pricingPhases":[
{
"priceAmountMicros":49990000,
"priceCurrencyCode":"EUR",
"formattedPrice":"€49.99",
"billingPeriod":"P1Y",
"recurrenceMode":1
}
],
"offerTags":[
]
}
]
}
У вас есть идеи?
Подробнее здесь: https://stackoverflow.com/questions/798 ... at-if-i-ad
Мобильная версия