Skip to content

Commit 87708ae

Browse files
Add type property to items in payment context
1 parent 1430cfd commit 87708ae

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Checkout.Payments.Contexts
4+
{
5+
public enum PaymentContextItemType
6+
{
7+
[EnumMember(Value = "physical")]
8+
Physical,
9+
10+
[EnumMember(Value = "digital")]
11+
Digital,
12+
}
13+
}

src/CheckoutSdk/Payments/Contexts/PaymentContextsItems.cs

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

78
public int Quantity { get; set; }

0 commit comments

Comments
 (0)