-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from Mangopay/feature/quoted_conversion
Quoted conversion
- Loading branch information
Showing
6 changed files
with
85 additions
and
1 deletion.
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
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
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,11 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class QuotedConversionDTO : TransactionDTO | ||
{ | ||
/// <summary>The unique identifier of the active quote which guaranteed the rate for the conversion.</summary> | ||
public string QuoteId { get; set; } | ||
|
||
/// <summary>Information about the conversion rate used during the transaction.</summary> | ||
public ConversionRateDTO ConversionRateResponse { 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,34 @@ | ||
namespace MangoPay.SDK.Entities.POST | ||
{ | ||
public class QuotedConversionPostDTO : EntityPostBase | ||
{ | ||
public QuotedConversionPostDTO( | ||
string quoteId, | ||
string authorId, | ||
string debitedWalletId, | ||
string creditedWalletId, | ||
string tag | ||
) | ||
{ | ||
QuoteId = quoteId; | ||
AuthorId = authorId; | ||
DebitedWalletId = debitedWalletId; | ||
CreditedWalletId = creditedWalletId; | ||
Tag = tag; | ||
} | ||
|
||
/// <summary>The unique identifier of the active quote which guaranteed | ||
/// the rate for the conversion.</summary> | ||
public string QuoteId { get; set; } | ||
|
||
/// <summary>The unique identifier of the user at the source of the | ||
/// transaction. In a conversion, both the debited and credited wallets are owned by the author.</summary> | ||
public string AuthorId { get; set; } | ||
|
||
/// <summary>The unique identifier of the debited wallet (in the sell currency).</summary> | ||
public string DebitedWalletId { get; set; } | ||
|
||
/// <summary>The unique identifier of the credited wallet (in the buy currency).</summary> | ||
public string CreditedWalletId { get; set; } | ||
} | ||
} |