diff --git a/README.md b/README.md index 792ee76..36196e1 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,17 @@ is the bridge used to easy access Barclays APIs. During the hackaton contracts and states can be created in `contracts` module and flows can be created in the `workflows` module. + +## Getting started + +In order to operate with provided bridge functionalities, you should use the provided auth token for your team and set it as a system environment variable. (edited) + +To be able to use the bridge with the configured token `val AUTH_TOKEN: String = System.getenv("BARCLAYS_AUTH_TOKEN")`. + +In Linux you can set it into you `.profile` file under the home directory like that: + +`export BARCLAYS_AUTH_TOKEN="the-actual-token"` + +In Windows you can go through the menu to Environment Variable and set it from there. + +https://docs.oracle.com/en/database/oracle/machine-learning/oml4r/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html#GUID-DD6F9982-60D5-48F6-8270-A27EC53807D0 diff --git a/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/Ecosystem.kt b/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/Ecosystem.kt deleted file mode 100644 index eb585a0..0000000 --- a/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/Ecosystem.kt +++ /dev/null @@ -1,35 +0,0 @@ -package com.cbdc.industria.tech.bridge.data - -import com.cbdc.industria.tech.bridge.enums.DomesticPaymentStatus -import net.corda.core.serialization.CordaSerializable - -@CordaSerializable -data class MakeDomesticPaymentRequestBody( - val sourceAccountId: Long, - val destinationAccountId: Long, - val paymentAmountInCurrencyUnits: Long -) - -@CordaSerializable -data class MakeDomesticPaymentResponseBody(val data: MakeDomesticPaymentResponseData) - -@CordaSerializable -data class MakeDomesticPaymentResponseData(val id: Long) - -@CordaSerializable -data class GetDomesticPaymentDetailsResponseBody(val data: DomesticPaymentView) - -@CordaSerializable -data class DomesticPaymentView( - val paymentId: Long, - val paymentInitiationDetails: PaymentInitiationDetails, - val status: DomesticPaymentStatus, - val failureReason: String - ) - -@CordaSerializable -data class PaymentInitiationDetails( - val sourceAccountId: Long, - val destinationAccountId: Long, - val paymentAmount: Long -) \ No newline at end of file diff --git a/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/OpenBankingAccountInformation.kt b/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/OpenBankingAccountInformation.kt index 227443f..dd55b5a 100644 --- a/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/OpenBankingAccountInformation.kt +++ b/cbdc-bridge/src/main/kotlin/com/cbdc/industria/tech/bridge/data/OpenBankingAccountInformation.kt @@ -1,6 +1,5 @@ package com.cbdc.industria.tech.bridge.data -import com.cbdc.industria.tech.bridge.enums.BankingEntityType import com.cbdc.industria.tech.bridge.views.AccountAccessConsentView import net.corda.core.serialization.CordaSerializable @@ -11,21 +10,6 @@ data class OpenBankingAccountAccessConsentCreationRequestBody( val requestingBankingEntityRef: RequestingBankingEntityRef ) -@CordaSerializable -data class RequestingPartyId(val partyId: Long) - -@CordaSerializable -data class BankingEntityWhereRequestingPartyIsRegisteredRef( - val bankingEntityType: BankingEntityType, - val bankingEntityId: Long -) - -@CordaSerializable -data class RequestingBankingEntityRef( - val bankingEntityType: BankingEntityType, - val bankingEntityId: Long -) - @CordaSerializable data class CreateAccountAccessConsentResponseBody( val data: CreateAccountAccessConsentResponseBodyData