Skip to content

Commit

Permalink
refactor: Separated payout processors files (#1953)
Browse files Browse the repository at this point in the history
Co-authored-by: Susritha Sabbini <[email protected]>
  • Loading branch information
susrithasabbini and Susritha Sabbini authored Dec 24, 2024
1 parent 1a0841a commit 3baac29
Show file tree
Hide file tree
Showing 25 changed files with 1,079 additions and 147 deletions.
2 changes: 1 addition & 1 deletion src/components/priority-logics/AddPLGateway.res
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module GatewayView = {
let {globalUIConfig: {font: {textColor}}} = React.useContext(ThemeProvider.themeContext)

let connectorType = switch url->RoutingUtils.urlToVariantMapper {
| PayoutRouting => RoutingTypes.PayoutConnector
| PayoutRouting => RoutingTypes.PayoutProcessor
| _ => RoutingTypes.PaymentConnector
}
let connectorList =
Expand Down
6 changes: 3 additions & 3 deletions src/container/ConnectorContainer.res
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ let make = () => {
<EntityScaffold
entityName="PayoutConnectors"
remainingPath
renderList={() => <ConnectorList isPayoutFlow=true />}
renderNewForm={() => <ConnectorHome isPayoutFlow=true />}
renderShow={(_, _) => <ConnectorHome isPayoutFlow=true />}
renderList={() => <PayoutProcessorList />}
renderNewForm={() => <PayoutProcessorHome />}
renderShow={(_, _) => <PayoutProcessorHome />}
/>
</AccessControl>
| list{"3ds-authenticators", ...remainingPath} =>
Expand Down
15 changes: 11 additions & 4 deletions src/screens/Connectors/ConnectorTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type cashToCodeMthd = [#Classic | #Evoucher]

type processorTypes =
| ADYEN
| ADYENPLATFORM
| CHECKOUT
| BRAINTREE
| BANKOFAMERICA
Expand All @@ -41,7 +40,6 @@ type processorTypes =
| AIRWALLEX
| WORLDPAY
| CYBERSOURCE
| EBANX
| ELAVON
| ACI
| WORLDLINE
Expand Down Expand Up @@ -78,7 +76,6 @@ type processorTypes =
| STRIPE_TEST
| PAYPAL_TEST
| STAX
| WISE
| GOCARDLESS
| VOLT
| PROPHETPAY
Expand All @@ -99,6 +96,15 @@ type processorTypes =
| DEUTSCHEBANK
| NEXIXPAY

type payoutProcessorTypes =
| ADYEN
| ADYENPLATFORM
| CYBERSOURCE
| EBANX
| PAYPAL
| STRIPE
| WISE

type threeDsAuthenticatorTypes = THREEDSECUREIO | NETCETERA

type frmTypes =
Expand All @@ -111,6 +117,7 @@ type taxProcessorTypes = TAXJAR

type connectorTypes =
| Processors(processorTypes)
| PayoutProcessor(payoutProcessorTypes)
| ThreeDsAuthenticator(threeDsAuthenticatorTypes)
| FRM(frmTypes)
| PMAuthenticationProcessor(pmAuthenticationProcessorTypes)
Expand Down Expand Up @@ -320,7 +327,7 @@ type connectorPayload = {
type connector =
| FRMPlayer
| Processor
| PayoutConnector
| PayoutProcessor
| ThreeDsAuthenticator
| PMAuthenticationProcessor
| TaxProcessor
Expand Down
Loading

0 comments on commit 3baac29

Please sign in to comment.