Skip to content

Commit

Permalink
feat(types): Add service_links and payment_methods (flags) to set…
Browse files Browse the repository at this point in the history
…tings content type

Should be moved from layout content for better reusability
  • Loading branch information
leomp12 committed Aug 17, 2023
1 parent 75ce9c9 commit 390be9d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ type AppModuleBody = {
application: Applications,
};

type PaymentMethodFlag = 'pix'
| 'visa'
| 'mastercard'
| 'elo'
| 'amex'
| 'hipercard'
| 'boleto'
| 'diners'
| 'discover';

type SettingsContent = {
domain: string,
name: string,
Expand All @@ -106,6 +116,12 @@ type SettingsContent = {
youtube?: string,
tiktok?: string,
pinterest?: string,
threads?: string,
service_links?: Array<{
title: string,
href: string,
}>,
payment_methods?: PaymentMethodFlag[],
modules?: {
list_payments?: {
installments_option?: Partial<ListPaymentsResponse['installments_option']>,
Expand Down

0 comments on commit 390be9d

Please sign in to comment.