|
| 1 | +using System; |
| 2 | +using System.Text.Json.Serialization; |
| 3 | + |
| 4 | +namespace XUMM.NET.SDK.Models.Payload.XRPL |
| 5 | +{ |
| 6 | + public class XrplPaymentPathSpecification |
| 7 | + { |
| 8 | + /// <summary> |
| 9 | + /// (Optional) If present, this path step represents rippling through the specified address. MUST NOT be provided if this step specifies the currency or issuer fields. |
| 10 | + /// </summary> |
| 11 | + [JsonPropertyName("account")] |
| 12 | + public string? Account { get; set; } |
| 13 | + |
| 14 | + /// <summary> |
| 15 | + /// (Optional) If present, this path step represents changing currencies through an order book. The currency specified indicates the new currency. MUST NOT be provided if this step specifies the account field. |
| 16 | + /// </summary> |
| 17 | + [JsonPropertyName("currency")] |
| 18 | + public string? Currency { get; set; } |
| 19 | + |
| 20 | + /// <summary> |
| 21 | + /// (Optional) If present, this path step represents changing currencies and this address defines the issuer of the new currency. |
| 22 | + /// If omitted in a step with a non-XRP currency, a previous step of the path defines the issuer. If present when currency is omitted, |
| 23 | + /// indicates a path step that uses an order book between same-named currencies with different issuers. MUST be omitted if the currency is XRP. |
| 24 | + /// MUST NOT be provided if this step specifies the account field. |
| 25 | + /// </summary> |
| 26 | + [JsonPropertyName("issuer")] |
| 27 | + public string? Issuer { get; set; } |
| 28 | + |
| 29 | + /// <summary> |
| 30 | + /// DEPRECATED (Optional) An indicator of which other fields are present. |
| 31 | + /// </summary> |
| 32 | + [Obsolete] |
| 33 | + [JsonPropertyName("type")] |
| 34 | + public int? Type { get; set; } |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// DEPRECATED: (Optional) A hexadecimal representation of the type field. |
| 38 | + /// </summary> |
| 39 | + [Obsolete] |
| 40 | + [JsonPropertyName("type_hex")] |
| 41 | + public string? TypeHex { get; set; } |
| 42 | + } |
| 43 | +} |
0 commit comments