Skip to content

Commit 8ef3ed9

Browse files
Add ItemType and ItemSubType enums; update ProcessingSettings and Product classes (#501)
1 parent 8703a88 commit 8ef3ed9

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

src/CheckoutSdk/Payments/ProcessingSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,12 @@ public class ProcessingSettings
7979

8080
[JsonProperty(PropertyName = "senderInformation")]
8181
public string SenderInformation { get; set; }
82+
83+
public CardType? CardType { get; set; }
84+
85+
public string AffiliateId { get; set; }
86+
87+
public string AffiliateUrl { get; set; }
88+
8289
}
8390
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Checkout.Payments.Request
4+
{
5+
public enum ItemSubType
6+
{
7+
[EnumMember(Value = "blockchain")]
8+
Blockchain,
9+
10+
[EnumMember(Value = "cbdc")]
11+
Cbdc,
12+
13+
[EnumMember(Value = "cryptocurrency")]
14+
Cryptocurrency,
15+
16+
[EnumMember(Value = "nft")]
17+
Nft,
18+
19+
[EnumMember(Value = "stablecoin")]
20+
Stablecoin,
21+
22+
}
23+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Checkout.Payments.Request
4+
{
5+
public enum ItemType
6+
{
7+
[EnumMember(Value = "digital")]
8+
Digital,
9+
10+
[EnumMember(Value = "discount")]
11+
Discount,
12+
13+
[EnumMember(Value = "physical")]
14+
Physical,
15+
}
16+
}

src/CheckoutSdk/Payments/Request/Product.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
{
33
public class Product
44
{
5+
public ItemType Type { get; set; }
6+
7+
public ItemSubType SubType { get; set; }
58
public string Name { get; set; }
69

710
public long? Quantity { get; set; }

0 commit comments

Comments
 (0)