-
Notifications
You must be signed in to change notification settings - Fork 24
Adds docs to StoreProduct
#521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,23 +10,83 @@ public partial class Purchases | |
| /// </summary> | ||
| public class StoreProduct | ||
| { | ||
| /// <summary> | ||
| /// Title of the product. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| public readonly string Title; | ||
|
|
||
| /// <summary> | ||
| /// Product Id. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| public readonly string Identifier; | ||
|
|
||
| /// <summary> | ||
| /// Description of the product. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| public readonly string Description; | ||
|
|
||
| /// <summary> | ||
| /// Price of the product in the local currency. | ||
| /// Contains the price value of DefaultOption for Google Play. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| public readonly float Price; | ||
|
|
||
| /// <summary> | ||
| /// Formatted price of the item, including its currency sign. | ||
| /// Contains the formatted price value of DefaultOption for Google Play. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| public readonly string PriceString; | ||
|
|
||
| /// <summary> | ||
| /// Currency code for price and original price. | ||
| /// Contains the currency code of DefaultOption for Google Play. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| [CanBeNull] public readonly string CurrencyCode; | ||
|
|
||
| /// <summary> | ||
| /// Introductory price of the product. Null if no introductory price is available. | ||
| /// It contains the free trial if available and user is eligible for it. | ||
| /// Otherwise, it contains the introductory price of the product if the user is eligible for it. | ||
| /// This will be null for non-subscription products. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This docs will make sense after RevenueCat/purchases-hybrid-common#952 |
||
| public IntroductoryPrice IntroductoryPrice; | ||
|
|
||
| /// <summary> | ||
| /// Product category of the product. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| [CanBeNull] public readonly ProductCategory ProductCategory; | ||
|
|
||
| /// <summary> | ||
| /// Default subscription option for a product. Google Play only. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| [CanBeNull] public readonly SubscriptionOption DefaultOption; | ||
|
|
||
| /// <summary> | ||
| /// Collection of subscription options for a product. Google Play only. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| [CanBeNull] public readonly SubscriptionOption[] SubscriptionOptions; | ||
|
|
||
| /// <summary> | ||
| /// Offering context this package belongs to. | ||
| /// Null if not using offerings or if fetched directly from store via GetProducts. | ||
| /// </summary> | ||
| [CanBeNull] public readonly PresentedOfferingContext PresentedOfferingContext; | ||
|
|
||
| [Obsolete("Deprecated, use PresentedOfferingContext instead.", false)] | ||
| [CanBeNull] public readonly string PresentedOfferingIdentifier; | ||
|
|
||
| /// <summary> | ||
| /// Collection of iOS promotional offers for a product. Null for Android. | ||
| /// Collection of iOS promotional offers for a product. Null for Android and Amazon. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| [CanBeNull] public readonly Discount[] Discounts; | ||
|
|
@@ -111,11 +171,12 @@ public override string ToString() | |
| $"{nameof(Price)}: {Price}\n" + | ||
| $"{nameof(PriceString)}: {PriceString}\n" + | ||
| $"{nameof(CurrencyCode)}: {CurrencyCode}\n" + | ||
| $"{nameof(ProductCategory)}: {ProductCategory}\n" + | ||
| $"{nameof(ProductCategory)}: {ProductCategory}\n" + | ||
| $"{nameof(PresentedOfferingIdentifier)}: {PresentedOfferingIdentifier}\n" + | ||
| $"{DefaultOption}\n" + | ||
| $"{SubscriptionOptions}\n" + | ||
| $"{IntroductoryPrice}\n" + | ||
| $"{nameof(PresentedOfferingContext)}: {PresentedOfferingContext}\n" + | ||
| $"{nameof(DefaultOption)}: {DefaultOption}\n" + | ||
| $"{nameof(SubscriptionOptions)}: {SubscriptionOptions}\n" + | ||
| $"{nameof(IntroductoryPrice)}: {IntroductoryPrice}\n" + | ||
| $"{nameof(Discounts)}: {Discounts}\n" + | ||
| $"{nameof(SubscriptionPeriod)}: {SubscriptionPeriod}"; | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just printing that it was an array, not printing the content