fix: correct isDownloadable docs to match impl (#18720)
This commit is contained in:
parent
5317211b0b
commit
292a240e1b
4 changed files with 4 additions and 6 deletions
|
@ -61,7 +61,7 @@ struct Converter<in_app_purchase::Product> {
|
||||||
dict.Set("formattedPrice", val.formattedPrice);
|
dict.Set("formattedPrice", val.formattedPrice);
|
||||||
|
|
||||||
// Downloadable Content Information
|
// Downloadable Content Information
|
||||||
dict.Set("isDownloadable", val.downloadable);
|
dict.Set("isDownloadable", val.isDownloadable);
|
||||||
|
|
||||||
return dict.GetHandle();
|
return dict.GetHandle();
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ struct Product {
|
||||||
std::string formattedPrice;
|
std::string formattedPrice;
|
||||||
|
|
||||||
// Downloadable Content Information
|
// Downloadable Content Information
|
||||||
bool downloadable = false;
|
bool isDownloadable = false;
|
||||||
|
|
||||||
Product(const Product&);
|
Product(const Product&);
|
||||||
Product();
|
Product();
|
||||||
|
|
|
@ -150,9 +150,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Downloadable Content Information
|
// Downloadable Content Information
|
||||||
if (product.downloadable == true) {
|
productStruct.isDownloadable = [product downloadable];
|
||||||
productStruct.downloadable = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return productStruct;
|
return productStruct;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
* `contentLengths` Number[] - The total size of the content, in bytes.
|
* `contentLengths` Number[] - The total size of the content, in bytes.
|
||||||
* `price` Number - The cost of the product in the local currency.
|
* `price` Number - The cost of the product in the local currency.
|
||||||
* `formattedPrice` String - The locale formatted price of the product.
|
* `formattedPrice` String - The locale formatted price of the product.
|
||||||
* `downloadable` Boolean - A Boolean value that indicates whether the App Store has downloadable content for this product.
|
* `isDownloadable` Boolean - A Boolean value that indicates whether the App Store has downloadable content for this product. `true` if at least one file has been associated with the product.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue