Skip to content

Commit 1b8459c

Browse files
committed
Alexander's Anointed Automated Git Helper
1 parent 96e049c commit 1b8459c

21 files changed

+3388
-27
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright © Anointed Automation, LLC., 2024. All Rights Reserved. Created by Alexander Fields https://www.alexanderfields.me on 2024-01-16 19:19:01
2+
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
3+
//Created by Alexander Fields
4+
5+
namespace AnointedAutomation.Enums
6+
{
7+
/// <summary>
8+
/// Defines the types of credit/debit cards.
9+
/// </summary>
10+
public enum CardType : int
11+
{
12+
/// <summary>
13+
/// Unknown or unrecognized card type.
14+
/// </summary>
15+
Unknown = 0,
16+
/// <summary>
17+
/// Visa card (starts with 4).
18+
/// </summary>
19+
Visa = 1,
20+
/// <summary>
21+
/// MasterCard (starts with 51-55 or 2221-2720).
22+
/// </summary>
23+
MasterCard = 2,
24+
/// <summary>
25+
/// American Express (starts with 34 or 37).
26+
/// </summary>
27+
AmericanExpress = 3,
28+
/// <summary>
29+
/// Discover card (starts with 6011, 644-649, or 65).
30+
/// </summary>
31+
Discover = 4,
32+
/// <summary>
33+
/// Diners Club card (starts with 300-305, 36, or 38).
34+
/// </summary>
35+
DinersClub = 5,
36+
/// <summary>
37+
/// JCB card (starts with 3528-3589).
38+
/// </summary>
39+
JCB = 6,
40+
/// <summary>
41+
/// UnionPay card (starts with 62).
42+
/// </summary>
43+
UnionPay = 7,
44+
/// <summary>
45+
/// Maestro card (starts with 5018, 5020, 5038, 6304, 6759, 6761, 6763).
46+
/// </summary>
47+
Maestro = 8
48+
}
49+
}
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
// Copyright © Anointed Automation, LLC., 2024. All Rights Reserved. Created by Alexander Fields https://www.alexanderfields.me on 2024-01-16 19:19:01
2+
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
3+
//Created by Alexander Fields
4+
5+
namespace AnointedAutomation.Enums
6+
{
7+
/// <summary>
8+
/// Defines the types of operations that can be performed with a payment processor.
9+
/// Used for audit logging and tracking payment processor communications.
10+
/// </summary>
11+
public enum PaymentOperation : int
12+
{
13+
/// <summary>
14+
/// Unknown or unspecified operation.
15+
/// </summary>
16+
Unknown = 0,
17+
/// <summary>
18+
/// Create a new payment charge.
19+
/// </summary>
20+
CreateCharge = 1,
21+
/// <summary>
22+
/// Create a refund for a previous charge.
23+
/// </summary>
24+
CreateRefund = 2,
25+
/// <summary>
26+
/// Create a new customer in the payment system.
27+
/// </summary>
28+
CreateCustomer = 3,
29+
/// <summary>
30+
/// Retrieve customer details.
31+
/// </summary>
32+
GetCustomer = 4,
33+
/// <summary>
34+
/// Update customer information.
35+
/// </summary>
36+
UpdateCustomer = 5,
37+
/// <summary>
38+
/// Delete a customer from the payment system.
39+
/// </summary>
40+
DeleteCustomer = 6,
41+
/// <summary>
42+
/// Create a new subscription.
43+
/// </summary>
44+
CreateSubscription = 7,
45+
/// <summary>
46+
/// Update an existing subscription.
47+
/// </summary>
48+
UpdateSubscription = 8,
49+
/// <summary>
50+
/// Cancel a subscription.
51+
/// </summary>
52+
CancelSubscription = 9,
53+
/// <summary>
54+
/// Pause a subscription.
55+
/// </summary>
56+
PauseSubscription = 10,
57+
/// <summary>
58+
/// Resume a paused subscription.
59+
/// </summary>
60+
ResumeSubscription = 11,
61+
/// <summary>
62+
/// Retrieve transaction details.
63+
/// </summary>
64+
GetTransaction = 12,
65+
/// <summary>
66+
/// Verify a webhook signature.
67+
/// </summary>
68+
VerifyWebhook = 13,
69+
/// <summary>
70+
/// Handle an incoming webhook event.
71+
/// </summary>
72+
HandleWebhookEvent = 14,
73+
/// <summary>
74+
/// Create a payment intent for future payment.
75+
/// </summary>
76+
CreatePaymentIntent = 15,
77+
/// <summary>
78+
/// Confirm a payment intent.
79+
/// </summary>
80+
ConfirmPaymentIntent = 16,
81+
/// <summary>
82+
/// Cancel a payment intent.
83+
/// </summary>
84+
CancelPaymentIntent = 17,
85+
/// <summary>
86+
/// Capture a previously authorized payment.
87+
/// </summary>
88+
CapturePayment = 18,
89+
/// <summary>
90+
/// Void a previously authorized payment.
91+
/// </summary>
92+
VoidPayment = 19,
93+
/// <summary>
94+
/// Add a payment method to a customer.
95+
/// </summary>
96+
AddPaymentMethod = 20,
97+
/// <summary>
98+
/// Remove a payment method from a customer.
99+
/// </summary>
100+
RemovePaymentMethod = 21,
101+
/// <summary>
102+
/// Set the default payment method for a customer.
103+
/// </summary>
104+
SetDefaultPaymentMethod = 22,
105+
/// <summary>
106+
/// Create an invoice.
107+
/// </summary>
108+
CreateInvoice = 23,
109+
/// <summary>
110+
/// Pay an invoice.
111+
/// </summary>
112+
PayInvoice = 24,
113+
/// <summary>
114+
/// Void an invoice.
115+
/// </summary>
116+
VoidInvoice = 25
117+
}
118+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright © Anointed Automation, LLC., 2024. All Rights Reserved. Created by Alexander Fields https://www.alexanderfields.me on 2024-01-16 19:19:01
2+
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
3+
//Created by Alexander Fields
4+
5+
namespace AnointedAutomation.Enums
6+
{
7+
/// <summary>
8+
/// Defines supported payment gateway providers.
9+
/// </summary>
10+
public enum PaymentProvider : int
11+
{
12+
/// <summary>
13+
/// No provider specified.
14+
/// </summary>
15+
None = 0,
16+
/// <summary>
17+
/// Stripe payment gateway.
18+
/// </summary>
19+
Stripe = 1,
20+
/// <summary>
21+
/// PayPal payment gateway.
22+
/// </summary>
23+
PayPal = 2,
24+
/// <summary>
25+
/// Braintree payment gateway (owned by PayPal).
26+
/// </summary>
27+
Braintree = 3,
28+
/// <summary>
29+
/// Checkout.com payment gateway.
30+
/// </summary>
31+
Checkout = 4,
32+
/// <summary>
33+
/// Square payment gateway.
34+
/// </summary>
35+
Square = 5,
36+
/// <summary>
37+
/// Adyen payment gateway.
38+
/// </summary>
39+
Adyen = 6,
40+
/// <summary>
41+
/// Authorize.Net payment gateway.
42+
/// </summary>
43+
AuthorizeNet = 7
44+
}
45+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Copyright © Anointed Automation, LLC., 2024. All Rights Reserved. Created by Alexander Fields https://www.alexanderfields.me on 2024-01-16 19:19:01
2+
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
3+
//Created by Alexander Fields
4+
5+
namespace AnointedAutomation.Enums
6+
{
7+
/// <summary>
8+
/// Represents the status of a subscription.
9+
/// </summary>
10+
public enum SubscriptionStatus : int
11+
{
12+
/// <summary>
13+
/// No status specified or unknown.
14+
/// </summary>
15+
None = 0,
16+
/// <summary>
17+
/// Subscription is active and in good standing.
18+
/// </summary>
19+
Active = 1,
20+
/// <summary>
21+
/// Subscription is in a trial period.
22+
/// </summary>
23+
Trialing = 2,
24+
/// <summary>
25+
/// Payment is past due but subscription is still accessible.
26+
/// </summary>
27+
PastDue = 3,
28+
/// <summary>
29+
/// Subscription has been cancelled (may still be active until period end).
30+
/// </summary>
31+
Cancelled = 4,
32+
/// <summary>
33+
/// Subscription has been suspended due to payment issues or policy violations.
34+
/// </summary>
35+
Suspended = 5,
36+
/// <summary>
37+
/// Subscription is temporarily paused at customer request.
38+
/// </summary>
39+
Paused = 6,
40+
/// <summary>
41+
/// Subscription has expired and is no longer active.
42+
/// </summary>
43+
Expired = 7,
44+
/// <summary>
45+
/// Subscription is pending activation (e.g., awaiting payment confirmation).
46+
/// </summary>
47+
Pending = 8,
48+
/// <summary>
49+
/// Subscription was not renewed and has ended.
50+
/// </summary>
51+
NotRenewed = 9
52+
}
53+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Copyright © Anointed Automation, LLC., 2024. All Rights Reserved. Created by Alexander Fields https://www.alexanderfields.me on 2024-01-16 19:19:01
2+
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
3+
//Created by Alexander Fields
4+
5+
namespace AnointedAutomation.Enums
6+
{
7+
/// <summary>
8+
/// Represents the status of a payment transaction across various payment providers.
9+
/// Common statuses used by Stripe, PayPal, Braintree, and Checkout.com.
10+
/// </summary>
11+
public enum TransactionStatus : int
12+
{
13+
/// <summary>
14+
/// No status specified or unknown.
15+
/// </summary>
16+
None = 0,
17+
/// <summary>
18+
/// Transaction is pending and awaiting processing.
19+
/// </summary>
20+
Pending = 1,
21+
/// <summary>
22+
/// Transaction is currently being processed.
23+
/// </summary>
24+
Processing = 2,
25+
/// <summary>
26+
/// Transaction requires additional action (e.g., 3D Secure authentication).
27+
/// </summary>
28+
RequiresAction = 3,
29+
/// <summary>
30+
/// Transaction requires payment method to be attached.
31+
/// </summary>
32+
RequiresPaymentMethod = 4,
33+
/// <summary>
34+
/// Transaction requires confirmation before processing.
35+
/// </summary>
36+
RequiresConfirmation = 5,
37+
/// <summary>
38+
/// Transaction requires capture after authorization.
39+
/// </summary>
40+
RequiresCapture = 6,
41+
/// <summary>
42+
/// Transaction completed successfully.
43+
/// </summary>
44+
Succeeded = 7,
45+
/// <summary>
46+
/// Transaction failed to process.
47+
/// </summary>
48+
Failed = 8,
49+
/// <summary>
50+
/// Transaction was canceled before completion.
51+
/// </summary>
52+
Canceled = 9,
53+
/// <summary>
54+
/// Transaction amount was refunded fully.
55+
/// </summary>
56+
Refunded = 10,
57+
/// <summary>
58+
/// Transaction amount was partially refunded.
59+
/// </summary>
60+
PartiallyRefunded = 11,
61+
/// <summary>
62+
/// Transaction is disputed by the customer.
63+
/// </summary>
64+
Disputed = 12,
65+
/// <summary>
66+
/// Transaction expired before completion.
67+
/// </summary>
68+
Expired = 13,
69+
/// <summary>
70+
/// Transaction is authorized but not yet captured.
71+
/// </summary>
72+
Authorized = 14,
73+
/// <summary>
74+
/// Transaction has been voided.
75+
/// </summary>
76+
Voided = 15
77+
}
78+
}

0 commit comments

Comments
 (0)