feat: Payment module models (#6065)

This commit is contained in:
Frane Polić
2024-01-18 15:50:56 +01:00
committed by GitHub
parent 2cca3627c3
commit 844a5d990c
12 changed files with 515 additions and 1 deletions
@@ -0,0 +1,27 @@
/**
* @enum
*
* The status of a payment session.
*/
export enum PaymentSessionStatus {
/**
* The payment is authorized.
*/
AUTHORIZED = "authorized",
/**
* The payment is pending.
*/
PENDING = "pending",
/**
* The payment requires an action.
*/
REQUIRES_MORE = "requires_more",
/**
* An error occurred while processing the payment.
*/
ERROR = "error",
/**
* The payment is canceled.
*/
CANCELED = "canceled",
}