Domain Model
Quote Payment
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| quoteId | string | Yes | — | ID of the associated quote |
| milestoneId | unknown | Yes | — | ID of the associated milestone |
| amount | number | Yes | — | Amount |
| surchargeAmount | number | Yes | — | Surcharge amount |
| totalAmount | number | Yes | — | Total amount |
| paymentMethod | enum(credit_card, ach, wire, check) | Yes | — | Payment method |
| status | enum(pending, processing, succeeded, failed, refunded) | Yes | — | Status |
| stripePaymentIntentId | unknown | Yes | — | ID of the associated stripe payment intent |
| stripePaymentMethodType | unknown | Yes | — | Stripe payment method type |
| paidAt | unknown | Yes | — | Paid at |
| failedAt | unknown | Yes | — | Failed at |
| failureReason | unknown | Yes | — | Failure reason |
| notes | unknown | Yes | — | Notes |
| recordedByUserId | unknown | Yes | — | ID of the associated recorded by user |
| workspaceId | string | Yes | — | ID of the associated workspace |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| quoteId | string | Yes | — | ID of the associated quote |
| milestoneId | string.uuid | No | — | ID of the associated milestone |
| amount | number | Yes | — | Amount |
| surchargeAmount | number | Yes | 0 | Surcharge amount |
| totalAmount | number | Yes | — | Total amount |
| paymentMethod | enum(credit_card, ach, wire, check) | Yes | — | Payment method |
| stripePaymentIntentId | string | No | — | ID of the associated stripe payment intent |
| stripePaymentMethodType | string | No | — | Stripe payment method type |
| workspaceId | string | Yes | — | ID of the associated workspace |