-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failed authentication. Estimate price for pairs.
- Loading branch information
Showing
7 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace NowPayments.Net.Objects | ||
{ | ||
public class AuthenticationStatus | ||
{ | ||
[JsonPropertyName("isAuthenticated")] | ||
public bool IsAuthenticated { get; set; } | ||
[JsonPropertyName("message")] | ||
public string? Message { get; set; } | ||
} | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace NowPayments.Net.Objects | ||
{ | ||
public class EstimatedPrice | ||
{ | ||
[JsonPropertyName("currency_from")] | ||
public string? CurrencyFrom { get; set; } | ||
[JsonPropertyName("currency_to")] | ||
public string? CurrencyTo { get; set; } | ||
[JsonPropertyName("amount_from")] | ||
public decimal AmountFrom { get; set; } | ||
[JsonPropertyName("estimated_amount")] | ||
public decimal EstimatedAmount { get; set; } | ||
} | ||
} |
This file contains 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 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
15 changes: 15 additions & 0 deletions
15
NowPayments.Net.Objects/RequestPayload/EstimatePriceRequestPayload.cs
This file contains 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace NowPayments.Net.Objects.RequestPayload | ||
{ | ||
public class EstimatePriceRequestPayload | ||
{ | ||
[JsonPropertyName("amount")] | ||
public decimal Amount { get; set; } | ||
[JsonPropertyName("currency_from")] | ||
public string CurrencyFrom { get; set; } = string.Empty; | ||
[JsonPropertyName("currency_to")] | ||
public string CurrencyTo { get; set; } = string.Empty; | ||
public string ToQueryString => $"amount={Amount}¤cy_from={CurrencyFrom}¤cy_to={CurrencyTo}"; | ||
} | ||
} |
5 changes: 1 addition & 4 deletions
5
NowPayments.Net.Objects/RequestPayload/PaymentRequestPayload.cs
This file contains 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