Skip to content

Commit

Permalink
chore: setup recon configuration (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
susrithasabbini authored Dec 24, 2024
1 parent e15d0a1 commit 1bb4347
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@react.component
let make = () => {
<div> {"Connect Order Data"->React.string} </div>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@react.component
let make = () => {
<div> {"Connect Processor Data"->React.string} </div>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@react.component
let make = () => {
<div> {"Connect Settlement Data"->React.string} </div>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@react.component
let make = () => {
<div> {"Schedule Recon Reports"->React.string} </div>
}
5 changes: 4 additions & 1 deletion src/screens/Connectors/FraudAndRisk/FRMSelect.res
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ let make = () => {
let previousData = frmList->Array.map(ConnectorListMapper.getProcessorPayloadType)
setFilteredFRMData(_ => previousData->Array.map(Nullable.make))
setPreviouslyConnectedData(_ => previousData->Array.map(Nullable.make))
ConnectorUtils.sortByDisableField(previousData, connectorPayload => connectorPayload.disabled)
ConnectorUtils.sortByDisableField(
previousData,
connectorPayload => connectorPayload.disabled,
)
let arr: array<ConnectorTypes.connectorTypes> = frmList->Array.map(
paymentMethod =>
paymentMethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ let make = () => {
item.connector_type->ConnectorUtils.connectorTypeStringToTypeMapper === PMAuthProcessor
)

ConnectorUtils.sortByDisableField(connectorsList, connectorPayload => connectorPayload.disabled)
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload =>
connectorPayload.disabled
)

setConfiguredConnectors(_ => connectorsList)
setFilteredConnectorData(_ => connectorsList->Array.map(Nullable.make))
Expand Down
4 changes: 3 additions & 1 deletion src/screens/Connectors/PaymentProcessor/ConnectorList.res
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ let make = () => {
let connectorsList =
connectorListFromRecoil->getProcessorsListFromJson(~removeFromList=ConnectorTypes.FRMPlayer)
connectorsList->Array.reverse
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload => connectorPayload.disabled)
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload =>
connectorPayload.disabled
)
setFilteredConnectorData(_ => connectorsList->Array.map(Nullable.make))
setPreviouslyConnectedData(_ => connectorsList->Array.map(Nullable.make))
setConfiguredConnectors(_ =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ let make = () => {
item.connector_type->ConnectorUtils.connectorTypeStringToTypeMapper === PayoutProcessor
)
connectorsList->Array.reverse
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload => connectorPayload.disabled)
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload =>
connectorPayload.disabled
)
setFilteredConnectorData(_ => connectorsList->Array.map(Nullable.make))
setPreviouslyConnectedData(_ => connectorsList->Array.map(Nullable.make))
setConfiguredConnectors(_ =>
Expand Down
4 changes: 3 additions & 1 deletion src/screens/Connectors/TaxProcessor/TaxProcessorList.res
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ let make = () => {
item.connector_type->ConnectorUtils.connectorTypeStringToTypeMapper === TaxProcessor
)

ConnectorUtils.sortByDisableField(connectorsList, connectorPayload => connectorPayload.disabled)
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload =>
connectorPayload.disabled
)

setConfiguredConnectors(_ => connectorsList)
setFilteredConnectorData(_ => connectorsList->Array.map(Nullable.make))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ let make = () => {
AuthenticationProcessor
)

ConnectorUtils.sortByDisableField(connectorsList, connectorPayload => connectorPayload.disabled)
ConnectorUtils.sortByDisableField(connectorsList, connectorPayload =>
connectorPayload.disabled
)

setConfiguredConnectors(_ => connectorsList)
setFilteredConnectorData(_ => connectorsList->Array.map(Nullable.make))
Expand Down

0 comments on commit 1bb4347

Please sign in to comment.