@@ -16,20 +16,102 @@ Defines supported payment methods.
1616- ` Visa ` (3)
1717- ` ACH ` (4)
1818
19- ### MessageType
20- Defines log message severity levels.
21- - ` Info ` (0)
22- - ` Warning ` (1)
23- - ` Error ` (2)
24- - ` Debug ` (3)
19+ ### TransactionStatus
20+ Represents the status of a payment transaction across various payment providers.
21+ - ` None ` (0) - No status specified or unknown
22+ - ` Pending ` (1) - Awaiting processing
23+ - ` Processing ` (2) - Currently being processed
24+ - ` RequiresAction ` (3) - Requires additional action (e.g., 3D Secure)
25+ - ` RequiresPaymentMethod ` (4) - Requires payment method to be attached
26+ - ` RequiresConfirmation ` (5) - Requires confirmation before processing
27+ - ` RequiresCapture ` (6) - Requires capture after authorization
28+ - ` Succeeded ` (7) - Completed successfully
29+ - ` Failed ` (8) - Failed to process
30+ - ` Canceled ` (9) - Canceled before completion
31+ - ` Refunded ` (10) - Fully refunded
32+ - ` PartiallyRefunded ` (11) - Partially refunded
33+ - ` Disputed ` (12) - Disputed by customer
34+ - ` Expired ` (13) - Expired before completion
35+ - ` Authorized ` (14) - Authorized but not yet captured
36+ - ` Voided ` (15) - Voided
37+
38+ ### PaymentProvider
39+ Defines supported payment providers.
40+ - ` None ` (0)
41+ - ` Stripe ` (1)
42+ - ` PayPal ` (2)
43+ - ` Braintree ` (3)
44+ - ` CheckoutDotCom ` (4)
45+
46+ ### SubscriptionStatus
47+ Represents the status of a subscription.
48+ - ` None ` (0)
49+ - ` Active ` (1)
50+ - ` PastDue ` (2)
51+ - ` Canceled ` (3)
52+ - ` Unpaid ` (4)
53+ - ` Trialing ` (5)
54+ - ` Paused ` (6)
55+ - ` Incomplete ` (7)
56+ - ` IncompleteExpired ` (8)
57+
58+ ### PaymentOperation
59+ Defines types of payment operations for audit logging.
60+ - ` None ` (0)
61+ - ` Charge ` (1)
62+ - ` Authorize ` (2)
63+ - ` Capture ` (3)
64+ - ` Refund ` (4)
65+ - ` Void ` (5)
66+ - ` Dispute ` (6)
67+ - ` DisputeResponse ` (7)
68+ - ` Chargeback ` (8)
69+ - ` SubscriptionCreate ` (9)
70+ - ` SubscriptionUpdate ` (10)
71+ - ` SubscriptionCancel ` (11)
72+ - ` SubscriptionRenew ` (12)
73+ - ` PaymentMethodAdd ` (13)
74+ - ` PaymentMethodRemove ` (14)
75+ - ` PaymentMethodUpdate ` (15)
76+
77+ ### CardType
78+ Defines credit/debit card types.
79+ - ` Unknown ` (0)
80+ - ` Visa ` (1)
81+ - ` MasterCard ` (2)
82+ - ` AmericanExpress ` (3)
83+ - ` Discover ` (4)
84+ - ` DinersClub ` (5)
85+ - ` JCB ` (6)
86+ - ` UnionPay ` (7)
87+
88+ ### WebhookEventType
89+ Defines webhook event types from payment providers.
90+ - ` Unknown ` (0)
91+ - ` PaymentSucceeded ` (1)
92+ - ` PaymentFailed ` (2)
93+ - ` PaymentRefunded ` (3)
94+ - ` SubscriptionCreated ` (4)
95+ - ` SubscriptionUpdated ` (5)
96+ - ` SubscriptionCanceled ` (6)
97+ - ` SubscriptionRenewed ` (7)
98+ - ` DisputeCreated ` (8)
99+ - ` DisputeUpdated ` (9)
100+ - ` DisputeClosed ` (10)
101+ - ` CustomerCreated ` (11)
102+ - ` CustomerUpdated ` (12)
103+ - ` InvoiceCreated ` (13)
104+ - ` InvoicePaid ` (14)
105+ - ` InvoicePaymentFailed ` (15)
25106
26107## Usage
27108
28109``` csharp
29110using AnointedAutomation .Enums ;
30111
31- var paymentMethod = PaymentType .Visa ;
32- var logLevel = MessageType .Info ;
112+ PaymentType paymentMethod = PaymentType .Visa ;
113+ TransactionStatus status = TransactionStatus .Succeeded ;
114+ PaymentProvider provider = PaymentProvider .Stripe ;
33115```
34116
35117## License
0 commit comments