Skip to content

Commit

Permalink
chore: add dynamic fields support for multiple vouchers
Browse files Browse the repository at this point in the history
  • Loading branch information
aritro2002 committed Nov 11, 2024
1 parent 13f3c7e commit 39568b4
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/Payments/PaymentMethodsRecord.res
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,62 @@ let paymentMethodsFields = [
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "seven_eleven",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Seven Eleven",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "lawson",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Lawson",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "mini_stop",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Mini Stop",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "family_mart",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Family Mart",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "seicomart",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Seicomart",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "pay_easy",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Pay Easy",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "alfamart",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Alfamart",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "indomaret",
icon: Some(icon("boleto", ~size=21, ~width=25)),
displayName: "Indomaret",
fields: [InfoElement],
miniIcon: None,
},
{
paymentMethodName: "local_bank_transfer_transfer",
fields: [InfoElement],
Expand Down
8 changes: 8 additions & 0 deletions src/Utilities/DynamicFieldsUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ let dynamicFieldsEnabledPaymentMethods = [
"bacs",
"pay_bright",
"multibanco_transfer",
"seven_eleven",
"mini_stop",
"family_mart",
"seicomart",
"pay_easy",
"lawson",
"alfamart",
"indomaret",
]

let getName = (item: PaymentMethodsRecord.required_fields, field: RecoilAtomTypes.field) => {
Expand Down

0 comments on commit 39568b4

Please sign in to comment.