Skip to content

Commit fc68368

Browse files
Update LocalType to nullable (#457)
1 parent bb48674 commit fc68368

24 files changed

+383
-37
lines changed

src/CheckoutSdk/Accounts/Entities/Common/Company/EntityRoles.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public enum EntityRoles
1717
ControlPerson,
1818

1919
[EnumMember(Value = "legal_representative")]
20-
LegalRepresentative,
20+
LegalRepresentative
2121
}
2222
}

src/CheckoutSdk/Payments/Contexts/PaymentContextsItems.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace Checkout.Payments.Contexts
33
public class PaymentContextsItems
44
{
55
public PaymentContextItemType? Type { get; set; }
6+
67
public string Name { get; set; }
78

89
public int? Quantity { get; set; }

src/CheckoutSdk/Payments/Hosted/HostedPaymentRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class HostedPaymentRequest
2020
public string CancelUrl { get; set; }
2121

2222
public string FailureUrl { get; set; }
23+
2324
public long? Amount { get; set; }
2425

2526
public PaymentType? PaymentType { get; set; }

src/CheckoutSdk/Payments/Links/PaymentLinkRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class PaymentLinkRequest
6060

6161
public string ReturnUrl { get; set; }
6262

63-
public LocaleType Locale { get; set; }
63+
public LocaleType? Locale { get; set; }
6464

6565
public bool? Capture { get; set; }
6666

@@ -70,4 +70,4 @@ public class PaymentLinkRequest
7070

7171
public PaymentMethodConfiguration PaymentMethodConfiguration { get; set; }
7272
}
73-
}
73+
}

src/CheckoutSdk/Payments/PaymentInstruction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ namespace Checkout.Payments
44
{
55
public class PaymentInstruction
66
{
7-
public PaymentPurposeType Purpose { get; set; }
7+
public PaymentPurposeType? Purpose { get; set; }
88
}
99
}

src/CheckoutSdk/Payments/Hosted/PaymentPurposeType.cs renamed to src/CheckoutSdk/Payments/PaymentPurposeType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Runtime.Serialization;
22

3-
namespace Checkout.Payments.Hosted
3+
namespace Checkout.Payments
44
{
55
public enum PaymentPurposeType
66
{

src/CheckoutSdk/Payments/RefundRequest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public class RefundRequest
1212

1313
public IDictionary<string, object> Metadata { get; set; } = new Dictionary<string, object>();
1414

15-
// Not available on Previous
1615
public IList<AmountAllocations> AmountAllocations { get; set; }
1716

1817
public string CaptureActionId { get; set; }

src/CheckoutSdk/Payments/Response/GetPaymentResponse.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Checkout.Common;
2-
using Checkout.Payments.Request;
32
using Checkout.Payments.Response.Destination;
43
using Checkout.Payments.Response.Source;
54
using Checkout.Payments.Sender;

test/CheckoutSdkTest/Apm/Ideal/IdealIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private async Task ShouldGetInfo()
2323
idealInfo.Links.Curies.Count.ShouldBePositive();
2424
}
2525

26-
[Fact]
26+
[Fact(Skip = "unavailable")]
2727
private async Task ShouldGetIssuers()
2828
{
2929
var idealInfo = await PreviousApi.IdealClient().GetIssuers();

test/CheckoutSdkTest/Apm/Previous/Klarna/KlarnaIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public KlarnaIntegrationTest() : base(PlatformType.Previous)
1212
{
1313
}
1414

15-
[Fact]
15+
[Fact(Skip = "unavailable")]
1616
private async Task ShouldCreateAndGetKlarnaSession()
1717
{
1818
var creditSessionRequest = new CreditSessionRequest()

0 commit comments

Comments
 (0)