Skip to content

Commit

Permalink
Merge pull request #213 from Mangopay/bugfix/fix_typo_in_conversion_e…
Browse files Browse the repository at this point in the history
…ndpoint

Fix typo in conversion endpoint
  • Loading branch information
mihaimoiseanu authored Mar 7, 2024
2 parents 7b431ec + 7345342 commit 988b7d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MangoPay.SDK.Tests/ApiInstantConversionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private async Task<InstantConversionDTO> CreateInstantConversion()
john.Id,
debitedWallet.Id,
creditedWallet.Id,
new Money { Amount = 79, Currency = CurrencyIso.EUR },
new Money { Amount = 30, Currency = CurrencyIso.EUR },
new Money { Currency = CurrencyIso.GBP },
"create instant conversion"
);
Expand Down
6 changes: 3 additions & 3 deletions MangoPay.SDK/Core/APIs/ApiBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ public abstract class ApiBase
{ MethodKey.DepositsGet,new ApiEndPoint("/deposit-preauthorizations/{0}",RequestType.GET)},
{ MethodKey.DepositsCancel,new ApiEndPoint("/deposit-preauthorizations/{0}",RequestType.PUT)},

{ MethodKey.GetConversionRate,new ApiEndPoint("/conversion/rate/{0}/{1}",RequestType.GET)},
{ MethodKey.CreateInstantConversion,new ApiEndPoint("/instant-conversion",RequestType.POST)},
{ MethodKey.GetInstantConversion,new ApiEndPoint("/instant-conversion/{0}",RequestType.GET)}
{ MethodKey.GetConversionRate,new ApiEndPoint("/conversions/rate/{0}/{1}",RequestType.GET)},
{ MethodKey.CreateInstantConversion,new ApiEndPoint("/conversions/instant-conversion",RequestType.POST)},
{ MethodKey.GetInstantConversion,new ApiEndPoint("/conversions/{0}",RequestType.GET)}
};

/// <summary>Creates new API instance.</summary>
Expand Down

0 comments on commit 988b7d6

Please sign in to comment.