diff --git a/Directory.Build.props b/Directory.Build.props index 73f6fbb2..56d46017 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 4.8.1 + 4.9.0 diff --git a/test/CheckoutSdkTest/Metadata/MetadataIntegrationTest.cs b/test/CheckoutSdkTest/Metadata/MetadataIntegrationTest.cs index cbb054c7..66231ced 100644 --- a/test/CheckoutSdkTest/Metadata/MetadataIntegrationTest.cs +++ b/test/CheckoutSdkTest/Metadata/MetadataIntegrationTest.cs @@ -25,7 +25,18 @@ private async Task ShouldRequestCardMetadataForCardNumber() Source = new CardMetadataCardSource { Number = CardNumberConstant }, Format = CardMetadataFormatType.Basic }; - await MakeCardMetadataRequest(request); + CardMetadataResponse response = await DefaultApi.MetadataClient().RequestCardMetadata(request); + + response.ShouldNotBeNull(); + response.Bin.ShouldBe(TestCardSource.Visa.Number[..11]); + response.Scheme.ShouldNotBeNull(); + response.CardType.ShouldBeOfType(); + response.CardCategory.ShouldBeOfType(); + response.IssuerCountry.ShouldBeOfType(); + response.IssuerCountryName.ShouldNotBeNull(); + response.ProductId.ShouldNotBeNull(); + response.ProductType.ShouldNotBeNull(); + response.HttpStatusCode.ShouldBe(200); } [Fact(Skip = "unavailable")]