Skip to content

Commit 2d00f86

Browse files
Update payment contexts
1 parent 14143b2 commit 2d00f86

File tree

4 files changed

+62
-1
lines changed

4 files changed

+62
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using Checkout.Common;
2+
using System;
3+
using System.Collections.Generic;
4+
5+
namespace Checkout.Payments.Contexts
6+
{
7+
public class PaymentContextsAccommodationData
8+
{
9+
public string Name { get; set; }
10+
11+
public string BookingReference { get; set; }
12+
13+
public DateTime CheckInDate { get; set; }
14+
15+
public DateTime CheckOutDate { get; set; }
16+
17+
public Address Address { get; set; }
18+
19+
public CountryCode State { get; set; }
20+
21+
public CountryCode Country { get; set; }
22+
23+
public string City { get; set; }
24+
25+
public int? NumberOfRooms { get; set; }
26+
27+
public List<PaymentContextsGuests> Guests { get; set; }
28+
29+
public List<PaymentContextsAccommodationRoom> Room { get; set; }
30+
}
31+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Checkout.Payments.Contexts
2+
{
3+
public class PaymentContextsAccommodationRoom
4+
{
5+
public string Rate { get; set; }
6+
7+
public int? NumberOfNightsAtRoomRate { get; set; }
8+
}
9+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
3+
namespace Checkout.Payments.Contexts
4+
{
5+
public class PaymentContextsGuests
6+
{
7+
public string FirstName { get; set; }
8+
9+
public string LastName { get; set; }
10+
11+
public DateTime DateOfBirth { get; set; }
12+
}
13+
}

src/CheckoutSdk/Payments/Contexts/PaymentContextsProcessing.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ public class PaymentContextsProcessing
77
{
88
public BillingPlan Plan { get; set; }
99

10-
public int ShippingAmount { get; set; }
10+
public long? DiscountAmount { get; set; }
11+
12+
public long? ShippingAmount { get; set; }
13+
14+
public long? TaxAmount { get; set; }
1115

1216
public string InvoiceId { get; set; }
1317

@@ -20,7 +24,11 @@ public class PaymentContextsProcessing
2024
public UserAction? UserAction { get; set; }
2125

2226
public PaymentContextsPartnerCustomerRiskData PartnerCustomerRiskData { get; set; }
27+
28+
public IList<string> CustomPaymentMethodIds { get; set; }
2329

2430
public IList<PaymentContextsAirlineData> AirlineData { get; set; }
31+
32+
public IList<PaymentContextsAccommodationData> AccommodationData { get; set; }
2533
}
2634
}

0 commit comments

Comments
 (0)