Skip to content

Commit e0cd840

Browse files
WIP before tests
1 parent b8160e2 commit e0cd840

File tree

88 files changed

+346
-290
lines changed

Some content is hidden

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

88 files changed

+346
-290
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses
2+
{
3+
public class RequestAPaymentOrPayoutResponse
4+
{
5+
public RequestAPaymentOrPayoutResponseAccepted.RequestAPaymentOrPayoutResponseAccepted Accepted { get; set; }
6+
public RequestAPaymentOrPayoutResponseCreated.RequestAPaymentOrPayoutResponseCreated Created { get; set; }
7+
8+
public RequestAPaymentOrPayoutResponse(RequestAPaymentOrPayoutResponseAccepted.RequestAPaymentOrPayoutResponseAccepted accepted)
9+
{
10+
Accepted = accepted;
11+
}
12+
13+
public RequestAPaymentOrPayoutResponse(RequestAPaymentOrPayoutResponseCreated.RequestAPaymentOrPayoutResponseCreated created)
14+
{
15+
Created = created;
16+
}
17+
}
18+
}

src/CheckoutSdk/HandlePaymentsAndPayouts/Payments/POSTPayments/Responses/RequestAPaymentOrPayoutResponseAccept/RequestAPaymentOrPayoutResponseAccept.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseAccepted.
2+
Destination.AccountHolder
3+
{
4+
public class AccountHolder
5+
{
6+
/// <summary>
7+
/// The payment destination identifier (e.g., a card source identifier)
8+
/// = 30 characters ^(src)_(\w{26})$
9+
/// </summary>
10+
public string Id { get; set; }
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseAccepted.
2+
Destination
3+
{
4+
public class Destination
5+
{
6+
/// <summary>
7+
/// The account holder details.
8+
/// </summary>
9+
public AccountHolder.AccountHolder AccountHolder { get; set; }
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
3+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseAccepted.
4+
Instruction
5+
{
6+
public class Instruction
7+
{
8+
/// <summary>
9+
/// The date (in ISO 8601 format) and time at which the recipient's account will be credited.
10+
/// <date-time>
11+
/// </summary>
12+
public DateTime? ValueDate { get; set; }
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using Checkout.Common;
2+
3+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseAccepted
4+
{
5+
/// <summary>
6+
/// Request a payment or payout Response 202
7+
/// Payment asynchronous or further action required
8+
/// </summary>
9+
public class RequestAPaymentOrPayoutResponseAccepted : Resource
10+
{
11+
/// <summary>
12+
/// The payment's unique identifier.
13+
/// = 30 characters ^(pay)_(\w{26})$
14+
/// </summary>
15+
public string Id { get; set; }
16+
17+
/// <summary>
18+
/// The refund status.
19+
/// Enum: "Accepted" "Rejected" "Pending"
20+
/// </summary>
21+
public StatusType Status { get; set; }
22+
23+
/// <summary>
24+
/// The payment's unique identifier.
25+
/// The reference you provided in the refund request.
26+
/// <= 50 characters
27+
/// </summary>
28+
public string Reference { get; set; }
29+
30+
/// <summary>
31+
/// Instruction details for payouts to bank accounts.
32+
/// </summary>
33+
public Instruction.Instruction Instruction { get; set; }
34+
35+
/// <summary>
36+
/// The refund destination.
37+
/// </summary>
38+
public Destination.Destination Destination { get; set; }
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseAccepted
4+
{
5+
public enum StatusType
6+
{
7+
[EnumMember(Value = "Accepted")]
8+
Accepted,
9+
10+
[EnumMember(Value = "Rejected")]
11+
Rejected,
12+
13+
[EnumMember(Value = "Pending")]
14+
Pending,
15+
}
16+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseOk.Balances
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseCreated.
2+
Balances
23
{
34
/// <summary>
45
/// balances
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseOk.Customer
1+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseCreated.
2+
Customer
23
{
34
/// <summary>
45
/// customer
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Checkout.Common;
22

3-
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseOk.Customer.
3+
namespace Checkout.HandlePaymentsAndPayouts.Payments.POSTPayments.Responses.RequestAPaymentOrPayoutResponseCreated.
4+
Customer.
45
Phone
56
{
67
/// <summary>

0 commit comments

Comments
 (0)