-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manage admin's bank data to assign off-chain gateways (#474)
- Loading branch information
Showing
19 changed files
with
421 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
wallet/wallet-app/src/main/kotlin/co/nilin/opex/wallet/app/service/BankDataService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package co.nilin.opex.wallet.app.service | ||
|
||
import org.springframework.stereotype.Service | ||
|
||
@Service | ||
class BankDataService { | ||
} |
12 changes: 12 additions & 0 deletions
12
wallet/wallet-core/src/main/kotlin/co/nilin/opex/wallet/core/inout/BankDataCommand.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package co.nilin.opex.wallet.core.inout | ||
|
||
import java.util.* | ||
|
||
data class BankDataCommand( | ||
var uuid: String?, | ||
var owner: String, | ||
var identifier: String, | ||
var active: Boolean? = true, | ||
var type: TransferMethod, | ||
var bankSwiftCode: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ package co.nilin.opex.wallet.core.inout | |
|
||
enum class TransferMethod { | ||
Card2card, Sheba, IPG | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
wallet/wallet-core/src/main/kotlin/co/nilin/opex/wallet/core/spi/BankDataManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package co.nilin.opex.wallet.core.spi | ||
|
||
import co.nilin.opex.wallet.core.inout.BankDataCommand | ||
|
||
interface BankDataManager { | ||
|
||
suspend fun save(bankDataCommand: BankDataCommand):BankDataCommand? | ||
suspend fun update(bankDataCommand: BankDataCommand): BankDataCommand? | ||
suspend fun delete(uuid: String) | ||
suspend fun fetchBankData(): List<BankDataCommand>? | ||
suspend fun fetchBankData(uuid: String): BankDataCommand? | ||
} |
12 changes: 12 additions & 0 deletions
12
wallet/wallet-core/src/main/kotlin/co/nilin/opex/wallet/core/spi/GatewayBankDataManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package co.nilin.opex.wallet.core.spi | ||
|
||
import co.nilin.opex.wallet.core.inout.BankDataCommand | ||
|
||
interface GatewayBankDataManager { | ||
suspend fun assignBankDataToGateway(gatewayUuid:String, bankData:List<String>) | ||
|
||
suspend fun getAssignedBankDataToGateway(gatewayUuid: String):List<BankDataCommand>? | ||
|
||
suspend fun revokeBankDataToGateway(gatewayUuid:String, bankData:List<String>) | ||
|
||
} |
Oops, something went wrong.