-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
InAppBillingProduct.cs
65 lines (53 loc) · 2.16 KB
/
InAppBillingProduct.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
namespace Plugin.InAppBilling.Abstractions
{
/// <summary>
/// Product being offered
/// </summary>
public class InAppBillingProduct
{
/// <summary>
/// Name of the product
/// </summary>
public string Name { get; set; }
/// <summary>
/// Description of the product
/// </summary>
public string Description { get; set; }
/// <summary>
/// Product ID or sku
/// </summary>
public string ProductId { get; set; }
/// <summary>
/// Localized Price (not including tax)
/// </summary>
public string LocalizedPrice { get; set; }
/// <summary>
/// ISO 4217 currency code for price. For example, if price is specified in British pounds sterling is "GBP".
/// </summary>
public string CurrencyCode { get; set; }
/// <summary>
/// Price in micro-units, where 1,000,000 micro-units equal one unit of the
/// currency. For example, if price is "€7.99", price_amount_micros is "7990000".
/// This value represents the localized, rounded price for a particular currency.
/// </summary>
public Int64 MicrosPrice { get; set; }
/// <summary>
/// Gets or sets the localized introductory price.
/// </summary>
/// <value>The localized introductory price.</value>
public string LocalizedIntroductoryPrice { get; set; }
/// <summary>
/// Introductory price of the product in micor-units
/// </summary>
/// <value>The introductory price.</value>
public Int64 MicrosIntroductoryPrice { get; set; }
/// <summary>
/// Gets a value indicating whether this <see cref="T:Plugin.InAppBilling.Abstractions.InAppBillingProduct"/>
/// has introductory price. This is an optional value in the answer from the server, requires a boolean to check if this exists
/// </summary>
/// <value><c>true</c> if has introductory price; otherwise, <c>false</c>.</value>
public bool HasIntroductoryPrice => !string.IsNullOrEmpty(LocalizedIntroductoryPrice);
}
}