-
Notifications
You must be signed in to change notification settings - Fork 0
Add Stripe links ACH option #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
eb2d8f1
e8aee93
bca6cae
c94377d
01a46ca
66f89e8
21c1155
c1f46f8
3ce2a5e
5f93ee7
de6b240
3271500
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,8 @@ export const invoiceLinkPostRequestSchema = z.object({ | |||||||
| invoiceId: z.string().min(1), | ||||||||
| invoiceAmountUsd: z.number().min(50), | ||||||||
| contactName: z.string().min(1), | ||||||||
| contactEmail: z.string().email() | ||||||||
| contactEmail: z.string().email(), | ||||||||
| achPaymentsEnabled: z.optional(z.boolean()).default(false), | ||||||||
| }); | ||||||||
|
|
||||||||
| export type PostInvoiceLinkRequest = z.infer< | ||||||||
|
|
@@ -33,4 +34,4 @@ export const invoiceLinkGetResponseSchema = z.array( | |||||||
| ); | ||||||||
|
|
||||||||
| export type GetInvoiceLinksResponse = z.infer< | ||||||||
| typeof invoiceLinkGetResponseSchema>; | ||||||||
| typeof invoiceLinkGetResponseSchema>; | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix formatting issue flagged by ESLint. Apply this diff: - typeof invoiceLinkGetResponseSchema>;
+ typeof invoiceLinkGetResponseSchema
+>;📝 Committable suggestion
Suggested change
🧰 Tools🪛 ESLint[error] 37-37: Insert (prettier/prettier) 🤖 Prompt for AI Agents |
||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Schema mismatch with frontend validation.
The backend schema enforces a minimum of 50 (dollars) for
invoiceAmountUsd, but the frontend validation inCreateLink.tsx(line 52) allows amounts as low as $0.50. This mismatch will cause the backend to reject valid frontend submissions, resulting in runtime errors and poor UX.Apply this diff to align the backend schema with the frontend validation:
Alternatively, if $50 is the correct minimum, update the frontend validation:
In
src/ui/pages/stripe/CreateLink.tsx:And update the placeholder:
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashleyyli please reconcile now that we're here. We want it to be 50 cents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.