-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaymentAttempt.entity.ts
More file actions
34 lines (31 loc) · 949 Bytes
/
Copy pathpaymentAttempt.entity.ts
File metadata and controls
34 lines (31 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {Prisma,PaymentProvider,PaymentMethod,PaymentSelection,PaymentStatus} from '@prisma/client'
export class PaymentAttempt {
id: string ;
invoiceIdentifier: string ;
provider: PaymentProvider ;
method: PaymentMethod ;
selection: PaymentSelection ;
status: PaymentStatus ;
currency: string ;
amountCents: number ;
invoiceTotalCents: number ;
invoiceBalanceCents: number ;
clientName: string | null;
clientFirm: string | null;
clientAddress: string | null;
stripePaymentIntentId: string | null;
stripePaymentMethodId: string | null;
stripeChargeId: string | null;
receiptUrl: string | null;
cardBrand: string | null;
cardLast4: string | null;
billingPostalCode: string | null;
failureCode: string | null;
failureMessage: string | null;
requestPayload: Prisma.JsonValue | null;
invoiceSnapshot: Prisma.JsonValue | null;
providerResponse: Prisma.JsonValue | null;
finalizedAt: Date | null;
createdAt: Date ;
updatedAt: Date ;
}