-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
CurrencyValue.cs
38 lines (33 loc) · 1.14 KB
/
CurrencyValue.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
namespace Azure.AI.FormRecognizer.DocumentAnalysis
{
public readonly partial struct CurrencyValue
{
/// <summary> Initializes a new instance of CurrencyValue. </summary>
/// <param name="amount"> Currency amount. </param>
/// <param name="symbol"> Currency symbol label, if any. </param>
/// <param name="code"> Resolved currency code (ISO 4217), if any. </param>
internal CurrencyValue(double amount, string symbol, string code)
{
Amount = amount;
Symbol = symbol;
Code = code;
}
/// <summary>
/// Currency amount.
/// </summary>
public double Amount { get; }
/// <summary>
/// Currency symbol label, if any.
/// </summary>
[CodeGenMember("CurrencySymbol")]
public string Symbol { get; }
/// <summary>
/// Resolved currency code (ISO 4217), if any.
/// </summary>
[CodeGenMember("CurrencyCode")]
public string Code { get; }
}
}