-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type of supported payment components
- Loading branch information
1 parent
edf78de
commit 2d586c2
Showing
5 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { Static, Type } from '@sinclair/typebox'; | ||
|
||
export const SupportedPaymentMethodData = Type.String(); | ||
export const SupportedPaymentComponentsData = Type.Object({ | ||
type: Type.String(), | ||
}); | ||
|
||
export const SupportedPaymentMethodsSchema = Type.Array(SupportedPaymentMethodData); | ||
export const SupportedPaymentComponentsSchema = Type.Object({ | ||
components: Type.Array(SupportedPaymentComponentsData), | ||
}); | ||
|
||
export type SupportedPaymentMethodsDTO = Static<typeof SupportedPaymentMethodsSchema>; | ||
export type SupportedPaymentComponentsSchemaDTO = Static<typeof SupportedPaymentComponentsSchema>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters