-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update payment response post and get with account holder and payment …
…plan. Add payment context sources (#433)
- Loading branch information
1 parent
da32d63
commit 23b08a2
Showing
14 changed files
with
215 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Checkout.Payments | ||
{ | ||
public enum AccountUpdateStatus | ||
{ | ||
[EnumMember(Value = "card_updated")] | ||
CardUpdated, | ||
|
||
[EnumMember(Value = "card_expiry_updated")] | ||
CardExpiryUpdated, | ||
|
||
[EnumMember(Value = "card_closed")] | ||
CardClosed, | ||
|
||
[EnumMember(Value = "contact_cardholder")] | ||
ContactCardholder | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Checkout.Payments | ||
{ | ||
public enum AmountVariabilityType | ||
{ | ||
[EnumMember(Value = "Fixed")] | ||
Fixed, | ||
|
||
[EnumMember(Value = "Variable")] | ||
Variable | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
|
||
namespace Checkout.Payments | ||
{ | ||
public class PaymentPlan | ||
{ | ||
// Recurring | ||
public AmountVariabilityType? AmountVariability { get; set; } | ||
|
||
// Installment | ||
public bool? Financing { get; set; } | ||
|
||
public string Amount { get; set; } | ||
|
||
// Common properties | ||
public int? DaysBetweenPayments { get; set; } | ||
|
||
public int? TotalNumberOfPayments { get; set; } | ||
|
||
public int? CurrentPaymentNumber { get; set; } | ||
|
||
public DateTime Expiry { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/CheckoutSdk/Payments/Request/Source/Contexts/PaymentContextsStcpaySource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Checkout.Common; | ||
|
||
namespace Checkout.Payments.Request.Source.Contexts | ||
{ | ||
public class PaymentContextsStcpaySource : AbstractRequestSource | ||
{ | ||
public PaymentContextsStcpaySource() : base(PaymentSourceType.Stcpay) | ||
{ | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/CheckoutSdk/Payments/Request/Source/Contexts/PaymentContextsTabbySource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Checkout.Common; | ||
|
||
namespace Checkout.Payments.Request.Source.Contexts | ||
{ | ||
public class PaymentContextsTabbySource : AbstractRequestSource | ||
{ | ||
public PaymentContextsTabbySource() : base(PaymentSourceType.Tabby) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/CheckoutSdk/Payments/Response/Source/Contexts/PaymentContextsStcpayResponseSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Checkout.Common; | ||
|
||
namespace Checkout.Payments.Response.Source.Contexts | ||
{ | ||
public class PaymentContextsStcpayResponseSource : AbstractPaymentContextsResponseSource, IResponseSource | ||
{ | ||
public new PaymentSourceType? Type() | ||
{ | ||
return base.Type; | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/CheckoutSdk/Payments/Response/Source/Contexts/PaymentContextsTabbyResponseSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Checkout.Common; | ||
|
||
namespace Checkout.Payments.Response.Source.Contexts | ||
{ | ||
public class PaymentContextsTabbyResponseSource : AbstractPaymentContextsResponseSource, IResponseSource | ||
{ | ||
public new PaymentSourceType? Type() | ||
{ | ||
return base.Type; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters