Skip to content

Commit 9d7a39b

Browse files
Add unreferenced refund support (#497)
1 parent fbae619 commit 9d7a39b

File tree

112 files changed

+4447
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+4447
-15
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source
2+
{
3+
/// <summary>
4+
/// Abstract source Class
5+
/// The source of the payment
6+
/// </summary>
7+
public abstract class AbstractSource
8+
{
9+
public SourceType? Type;
10+
11+
protected AbstractSource(SourceType type)
12+
{
13+
Type = type;
14+
}
15+
}
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
AfterpaySource
3+
{
4+
/// <summary>
5+
/// afterpay source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class AfterpaySource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the AfterpaySource class.
12+
/// </summary>
13+
public AfterpaySource() : base(SourceType.Afterpay)
14+
{
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
AlipayCnSource
3+
{
4+
/// <summary>
5+
/// alipay_cn source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class AlipayCnSource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the AlipayCnSource class.
12+
/// </summary>
13+
public AlipayCnSource() : base(SourceType.AlipayCn)
14+
{
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
AlipayHkSource
3+
{
4+
/// <summary>
5+
/// alipay_hk source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class AlipayHkSource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the AlipayHkSource class.
12+
/// </summary>
13+
public AlipayHkSource() : base(SourceType.AlipayHk)
14+
{
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
AlipayPlusSource
3+
{
4+
/// <summary>
5+
/// alipay_plus source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class AlipayPlusSource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the AlipayPlusSource class.
12+
/// </summary>
13+
public AlipayPlusSource() : base(SourceType.AlipayPlus)
14+
{
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
AlmaSource
3+
{
4+
/// <summary>
5+
/// alma source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class AlmaSource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the AlmaSource class.
12+
/// </summary>
13+
public AlmaSource() : base(SourceType.Alma)
14+
{
15+
}
16+
}
17+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
BancontactSource
3+
{
4+
/// <summary>
5+
/// bancontact source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class BancontactSource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the BancontactSource class.
12+
/// </summary>
13+
public BancontactSource() : base(SourceType.Bancontact)
14+
{
15+
}
16+
17+
/// <summary>
18+
/// The IBAN of the Consumer Bank account used for payment (if applicable).
19+
/// [Optional]
20+
/// <= 34
21+
/// </summary>
22+
public string Iban { get; set; }
23+
}
24+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.
2+
BenefitSource
3+
{
4+
/// <summary>
5+
/// benefit source Class
6+
/// The source of the payment
7+
/// </summary>
8+
public class BenefitSource : AbstractSource
9+
{
10+
/// <summary>
11+
/// Initializes a new instance of the BenefitSource class.
12+
/// </summary>
13+
public BenefitSource() : base(SourceType.Benefit)
14+
{
15+
}
16+
}
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.CardSource.AccountHolder
2+
{
3+
/// <summary>
4+
/// Abstract account_holder Class
5+
/// Information about the account holder of the card
6+
/// </summary>
7+
public abstract class AbstractAccountHolder
8+
{
9+
public AccountHolderType Type;
10+
11+
protected AbstractAccountHolder(AccountHolderType type)
12+
{
13+
Type = type;
14+
}
15+
}
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Checkout.HandlePaymentsAndPayouts.Payments.Common.Source.CardSource.AccountHolder
4+
{
5+
public enum AccountHolderType
6+
{
7+
[EnumMember(Value = "individual")]
8+
Individual,
9+
10+
[EnumMember(Value = "corporate")]
11+
Corporate,
12+
13+
[EnumMember(Value = "government")]
14+
Government,
15+
16+
}
17+
}

0 commit comments

Comments
 (0)