Skip to content

Commit

Permalink
feat: add amex payment type
Browse files Browse the repository at this point in the history
  • Loading branch information
rosvik committed Dec 19, 2024
1 parent 4c455a0 commit 615e954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion schema-definitions/paymentTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"enum": [
"vipps",
"visa",
"mastercard"
"mastercard",
"amex"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/payment-types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {z} from 'zod';

export const PaymentType = z.enum(["vipps", "visa", "mastercard"])
export const PaymentType = z.enum(["vipps", "visa", "mastercard", "amex"])

export const PaymentTypes = z.object({
app: z.array(PaymentType).optional(),
Expand Down

0 comments on commit 615e954

Please sign in to comment.