-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new remote services to enable keyple-less clients (#5)
Introduced new service IDs for C# and Kotlin Multiplatform clients. Added several DTOs for analyzing, loading, and personalizing contracts. --------- Co-authored-by: Andrei Cristea <[email protected]>
- Loading branch information
1 parent
1953df0
commit 1615ef1
Showing
10 changed files
with
144 additions
and
9 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
14 changes: 14 additions & 0 deletions
14
...main/kotlin/org/calypsonet/keyple/demo/common/dto/SelectAppAndAnalyzeContractsInputDto.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,14 @@ | ||
/* ************************************************************************************** | ||
* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
************************************************************************************** */ | ||
package org.calypsonet.keyple.demo.common.dto | ||
|
||
data class SelectAppAndAnalyzeContractsInputDto(var pluginType: String) |
32 changes: 32 additions & 0 deletions
32
...ain/kotlin/org/calypsonet/keyple/demo/common/dto/SelectAppAndAnalyzeContractsOutputDto.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,32 @@ | ||
/* ************************************************************************************** | ||
* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
************************************************************************************** */ | ||
package org.calypsonet.keyple.demo.common.dto | ||
|
||
/** | ||
* - validContracts: List of contracts present in the card. Each contract is tied to a counter by | ||
* its index. | ||
* - statusCode: 0 (if successful), 1 (server is not ready), 2 (card rejected). | ||
* - message: Status message. | ||
*/ | ||
data class SelectAppAndAnalyzeContractsOutputDto( | ||
var applicationSerialNumber: String, | ||
var validContracts: List<ContractInfo>, | ||
var statusCode: Int, | ||
var message: String | ||
) { | ||
/** | ||
* - title: Contract name. | ||
* - description: Contract details. | ||
* - isValid: Indicates if the contract is currently usable. | ||
*/ | ||
data class ContractInfo(var title: String, var description: String, var isValid: Boolean) | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/kotlin/org/calypsonet/keyple/demo/common/dto/SelectAppAndLoadContractInputDto.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,21 @@ | ||
/* ************************************************************************************** | ||
* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
************************************************************************************** */ | ||
package org.calypsonet.keyple.demo.common.dto | ||
|
||
import org.calypsonet.keyple.demo.common.model.type.PriorityCode | ||
|
||
data class SelectAppAndLoadContractInputDto( | ||
var applicationSerialNumber: String, | ||
var contractTariff: PriorityCode, | ||
var ticketToLoad: Int, | ||
var pluginType: String | ||
) |
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/org/calypsonet/keyple/demo/common/dto/SelectAppAndLoadContractOutputDto.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,19 @@ | ||
/* ************************************************************************************** | ||
* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
************************************************************************************** */ | ||
package org.calypsonet.keyple.demo.common.dto | ||
|
||
/** | ||
* - statusCode: 0 (successful), 1 (server is not ready), 2 (card rejected), 3 (please present the | ||
* same card). | ||
* - message: error message | ||
*/ | ||
data class SelectAppAndLoadContractOutputDto(var statusCode: Int, var message: String) |
14 changes: 14 additions & 0 deletions
14
src/main/kotlin/org/calypsonet/keyple/demo/common/dto/SelectAppAndPersonalizeCardInputDto.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,14 @@ | ||
/* ************************************************************************************** | ||
* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
************************************************************************************** */ | ||
package org.calypsonet.keyple.demo.common.dto | ||
|
||
class SelectAppAndPersonalizeCardInputDto(var pluginType: String) |
18 changes: 18 additions & 0 deletions
18
...main/kotlin/org/calypsonet/keyple/demo/common/dto/SelectAppAndPersonalizeCardOutputDto.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,18 @@ | ||
/* ************************************************************************************** | ||
* Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional information | ||
* regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
************************************************************************************** */ | ||
package org.calypsonet.keyple.demo.common.dto | ||
|
||
/** | ||
* - statusCode: 0 (if successful), 1 (if error). | ||
* - message: error message | ||
*/ | ||
data class SelectAppAndPersonalizeCardOutputDto(var statusCode: Int, var message: 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