From 7345342391676db1b042ceec3c552d254fe475d6 Mon Sep 17 00:00:00 2001 From: Mihai Moiseanu Date: Thu, 22 Feb 2024 12:39:23 +0200 Subject: [PATCH] Fix typo in conversion endpoint --- MangoPay.SDK.Tests/ApiInstantConversionTest.cs | 2 +- MangoPay.SDK/Core/APIs/ApiBase.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MangoPay.SDK.Tests/ApiInstantConversionTest.cs b/MangoPay.SDK.Tests/ApiInstantConversionTest.cs index 8c81ea8..3364906 100644 --- a/MangoPay.SDK.Tests/ApiInstantConversionTest.cs +++ b/MangoPay.SDK.Tests/ApiInstantConversionTest.cs @@ -59,7 +59,7 @@ private async Task 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" ); diff --git a/MangoPay.SDK/Core/APIs/ApiBase.cs b/MangoPay.SDK/Core/APIs/ApiBase.cs index 2799d27..6172054 100644 --- a/MangoPay.SDK/Core/APIs/ApiBase.cs +++ b/MangoPay.SDK/Core/APIs/ApiBase.cs @@ -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)} }; /// Creates new API instance.