Skip to content

Commit 9b10acb

Browse files
Release 4.9.0 (#470)
- Knet updates, refactor and custom response
1 parent 3eb76d8 commit 9b10acb

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>4.8.1</Version>
3+
<Version>4.9.0</Version>
44
</PropertyGroup>
55
</Project>

test/CheckoutSdkTest/Metadata/MetadataIntegrationTest.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,18 @@ private async Task ShouldRequestCardMetadataForCardNumber()
2525
Source = new CardMetadataCardSource { Number = CardNumberConstant },
2626
Format = CardMetadataFormatType.Basic
2727
};
28-
await MakeCardMetadataRequest(request);
28+
CardMetadataResponse response = await DefaultApi.MetadataClient().RequestCardMetadata(request);
29+
30+
response.ShouldNotBeNull();
31+
response.Bin.ShouldBe(TestCardSource.Visa.Number[..11]);
32+
response.Scheme.ShouldNotBeNull();
33+
response.CardType.ShouldBeOfType<CardMetadataType>();
34+
response.CardCategory.ShouldBeOfType<CardCategory>();
35+
response.IssuerCountry.ShouldBeOfType<CountryCode>();
36+
response.IssuerCountryName.ShouldNotBeNull();
37+
response.ProductId.ShouldNotBeNull();
38+
response.ProductType.ShouldNotBeNull();
39+
response.HttpStatusCode.ShouldBe(200);
2940
}
3041

3142
[Fact(Skip = "unavailable")]

0 commit comments

Comments
 (0)