SudoSOS Back-end API / stripe/payment-request / BasePaymentRequestResponse
Interface: BasePaymentRequestResponse ​
PaymentRequest is UUID-keyed. To avoid overloading the id slot (which on other responses is the numeric DB id), the UUID is exposed under a semantically named field, mirroring how QRAuthenticator exposes its UUID as sessionId. The response therefore extends BaseResponseWithoutId (timestamps + version, no id) and declares a uuid of its own.
Properties ​
amount ​
amount: DineroObjectResponse;cancelledAt ​
cancelledAt: string;ISO-8601 timestamp the request was cancelled (null if not cancelled).
cancelledBy ​
cancelledBy: BaseUserResponse;The user that cancelled the request (null if not cancelled).
createdAt? ​
optional createdAt?: string;ISO-8601 creation timestamp.
Inherited from ​
BaseResponseWithoutId.createdAtcreatedBy ​
createdBy: BaseUserResponse;description ​
description: string;Optional human-readable description.
expiresAt ​
expiresAt: string;for ​
for: BaseUserResponse;fulfilledBy ​
fulfilledBy: BaseUserResponse;The admin that marked the request paid out-of-band (null for Stripe-settled or unpaid requests).
paidAt ​
paidAt: string;ISO-8601 timestamp the request was marked paid (null if not paid).
status ​
status: PaymentRequestStatus;updatedAt? ​
optional updatedAt?: string;ISO-8601 last update timestamp.
Inherited from ​
BaseResponseWithoutId.updatedAtuuid ​
uuid: string;version? ​
optional version?: number;Optimistic-locking version.
Inherited from ​
BaseResponseWithoutId.version