Skip to content

Commit

Permalink
Update all links from api.mollie.nl to api.mollie.com (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt authored Aug 17, 2024
1 parent b41461e commit 56894df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Mollie.Api/Client/ConnectClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Mollie.Api.Client {
public class ConnectClient : BaseMollieClient, IConnectClient {
private const string AuthorizeEndPoint = "https://my.mollie.com/oauth2/authorize";
private const string TokenEndPoint = "https://api.mollie.nl/oauth2/";
private const string TokenEndPoint = "https://api.mollie.com/oauth2/";

private readonly string _clientId;
private readonly string _clientSecret;
Expand Down
4 changes: 2 additions & 2 deletions tests/Mollie.Tests.Unit/Client/ConnectClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task GetAccessTokenAsync_WithRefreshToken_ResponseIsDeserializedInE
{
// Arrange
var mockHttp = new MockHttpMessageHandler();
mockHttp.Expect(HttpMethod.Post, "https://api.mollie.nl/oauth2/tokens")
mockHttp.Expect(HttpMethod.Post, "https://api.mollie.com/oauth2/tokens")
.Respond("application/json", defaultGetTokenResponse);
HttpClient httpClient = mockHttp.ToHttpClient();
ConnectClient connectClient = new ConnectClient(ClientId, ClientSecret, httpClient);
Expand All @@ -64,7 +64,7 @@ public async Task RevokeTokenAsync_SendsRequest()
{
// Arrange
var mockHttp = new MockHttpMessageHandler();
mockHttp.Expect(HttpMethod.Delete, "https://api.mollie.nl/oauth2/tokens")
mockHttp.Expect(HttpMethod.Delete, "https://api.mollie.com/oauth2/tokens")
.Respond(HttpStatusCode.NoContent);
HttpClient httpClient = mockHttp.ToHttpClient();
ConnectClient connectClient = new ConnectClient(ClientId, ClientSecret, httpClient);
Expand Down
10 changes: 5 additions & 5 deletions tests/Mollie.Tests.Unit/Client/InvoiceClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public async Task GetInvoiceAsync_DefaultBehaviour_ResponseIsParsed()
.Respond("application/json", defaultInvoice);
HttpClient httpClient = mockHttp.ToHttpClient();
using InvoiceClient invoiceClient = new InvoiceClient("access_abcde", httpClient);

// When
var result = await invoiceClient.GetInvoiceAsync(invoiceId);

Expand All @@ -32,7 +32,7 @@ public async Task GetInvoiceAsync_DefaultBehaviour_ResponseIsParsed()
result.VatNumber.Should().Be("NL001234567B01");
result.Status.Should().Be("open");
}

[Theory]
[InlineData(null, null, null, null, "")]
[InlineData("my-reference", null, null, null, "?reference=my-reference")]
Expand Down Expand Up @@ -158,12 +158,12 @@ public async Task GetInvoiceListAsync_WithVariousParameters_QueryStringMatchesEx
},
""_links"": {
""self"": {
""href"": ""https://api.mollie.nl/v2/invoices?limit=5"",
""href"": ""https://api.mollie.com/v2/invoices?limit=5"",
""type"": ""application/hal+json""
},
""previous"": null,
""next"": {
""href"": ""https://api.mollie.nl/v2/invoices?from=inv_xBEbP9rvAq&limit=5"",
""href"": ""https://api.mollie.com/v2/invoices?from=inv_xBEbP9rvAq&limit=5"",
""type"": ""application/hal+json""
},
""documentation"": {
Expand All @@ -172,4 +172,4 @@ public async Task GetInvoiceListAsync_WithVariousParameters_QueryStringMatchesEx
}
}
}";
}
}

0 comments on commit 56894df

Please sign in to comment.