-
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.
Clean up deposit withdraw services (#466)
* Simplified deposit services * Clean up withdraw services
- Loading branch information
1 parent
6890993
commit 528b234
Showing
21 changed files
with
175 additions
and
190 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
10 changes: 10 additions & 0 deletions
10
wallet/wallet-app/src/main/kotlin/co/nilin/opex/wallet/app/dto/DepositHistoryRequest.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,10 @@ | ||
package co.nilin.opex.wallet.app.dto | ||
|
||
data class DepositHistoryRequest( | ||
val currency: String? = null, | ||
val startTime: Long? = null, | ||
val endTime: Long? = null, | ||
val limit: Int = 10, | ||
val offset: Int = 0, | ||
val ascendingByTime: Boolean = false | ||
) |
20 changes: 20 additions & 0 deletions
20
wallet/wallet-app/src/main/kotlin/co/nilin/opex/wallet/app/dto/DepositResponse.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,20 @@ | ||
package co.nilin.opex.wallet.app.dto | ||
|
||
import co.nilin.opex.wallet.core.model.DepositStatus | ||
import co.nilin.opex.wallet.core.model.DepositType | ||
import java.math.BigDecimal | ||
import java.time.LocalDateTime | ||
import java.util.Date | ||
|
||
data class DepositResponse( | ||
val id: Long, | ||
val uuid: String, | ||
val currency: String, | ||
val amount: BigDecimal, | ||
val network: String?, | ||
val note: String?, | ||
val transactionRef: String?, | ||
val status: DepositStatus, | ||
val type: DepositType, | ||
val createDate: Date? | ||
) |
10 changes: 10 additions & 0 deletions
10
wallet/wallet-app/src/main/kotlin/co/nilin/opex/wallet/app/dto/WithdrawHistoryRequest.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,10 @@ | ||
package co.nilin.opex.wallet.app.dto | ||
|
||
data class WithdrawHistoryRequest( | ||
val currency: String?, | ||
val startTime: Long? = null, | ||
val endTime: Long? = null, | ||
val limit: Int? = 10, | ||
val offset: Int? = 0, | ||
val ascendingByTime: Boolean = false | ||
) |
22 changes: 0 additions & 22 deletions
22
wallet/wallet-app/src/main/kotlin/co/nilin/opex/wallet/app/dto/WithdrawHistoryResponse.kt
This file was deleted.
Oops, something went wrong.
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
33 changes: 17 additions & 16 deletions
33
wallet/wallet-core/src/main/kotlin/co/nilin/opex/wallet/core/inout/Deposit.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 |
---|---|---|
@@ -1,26 +1,27 @@ | ||
package co.nilin.opex.wallet.core.inout | ||
|
||
import co.nilin.opex.wallet.core.model.DepositStatus | ||
import co.nilin.opex.wallet.core.model.DepositType | ||
import java.math.BigDecimal | ||
import java.time.LocalDateTime | ||
import java.util.* | ||
|
||
data class Deposit( | ||
var ownerUuid: String, | ||
var depositUuid: String, | ||
var currency: String, | ||
var amount: BigDecimal, | ||
var acceptedFee: BigDecimal?=null, | ||
var appliedFee: BigDecimal?=null, | ||
var sourceSymbol: String?=null, | ||
var network: String?=null, | ||
var sourceAddress: String?=null, | ||
var transactionRef: String?=null, | ||
var note: String?=null, | ||
var status: String?=null, | ||
var depositType:String?=null, | ||
var createDate: Date?=Date(), | ||
var ownerUuid: String, | ||
var depositUuid: String, | ||
var currency: String, | ||
var amount: BigDecimal, | ||
var acceptedFee: BigDecimal? = null, | ||
var appliedFee: BigDecimal? = null, | ||
var sourceSymbol: String? = null, | ||
var network: String? = null, | ||
var sourceAddress: String? = null, | ||
var transactionRef: String? = null, | ||
var note: String? = null, | ||
var status: DepositStatus, | ||
var depositType: DepositType, | ||
var createDate: Date = Date(), | ||
val id:Long? = null, | ||
) | ||
|
||
|
||
|
||
data class Deposits(var deposits: List<Deposit>) |
6 changes: 0 additions & 6 deletions
6
wallet/wallet-core/src/main/kotlin/co/nilin/opex/wallet/core/inout/PagingWithdrawResponse.kt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.