-
Notifications
You must be signed in to change notification settings - Fork 2
BillingModule.Interface.BillingTransaction
tgreyuk edited this page Apr 25, 2024
·
1 revision
github-wiki-example / BillingModule / BillingTransaction
Interface representing a billing transaction. This structure encapsulates all key details of a financial transaction within the system.
Property | Type | Description |
---|---|---|
amount |
number |
The total amount of money involved in the transaction. This is usually in the smallest unit of the currency, such as cents in USD. |
orderId |
string |
Identifier for the order associated with this transaction. Helps link the transaction to specific goods or services purchased. |
paymentMethod |
PaymentMethod |
The method of payment used for the transaction, as defined by the PaymentMethod enum. This indicates how the customer chose to pay (e.g., Credit Card, PayPal, Bank Transfer). |
status |
TransactionStatus |
The current status of the transaction, categorized by the TransactionStatus enum. Indicates whether the transaction is pending, completed, or has failed. |
transactionId |
string |
Unique identifier for the transaction. This ID is used to track and reference the transaction throughout the billing process. |