Skip to content

Commit

Permalink
[CHK-2821] refactor(wallet-api): expose client info to wallet API (#1985
Browse files Browse the repository at this point in the history
)
  • Loading branch information
giovanniberti authored May 16, 2024
1 parent b131143 commit df64681
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion src/domains/wallet-app/api/payment-wallet/v1/_openapi.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -616,14 +616,34 @@
},
"status": {
"$ref": "#/components/schemas/WalletApplicationStatus"
}
},
"required": [
"name",
"status"
]
},
"WalletClientStatus": {
"type": "string",
"description": "Enumeration of wallet client statuses",
"enum": [
"ENABLED",
"DISABLED"
]
},
"WalletClient": {
"type": "object",
"properties": {
"status": {
"$ref": "#/components/schemas/WalletClientStatus"
},
"lastUsage": {
"type": "string",
"description": "Time of last usage of this wallet by the client",
"format": "date-time"
}
},
"required": [
"name",
"status"
]
},
Expand Down Expand Up @@ -658,6 +678,18 @@
"$ref": "#/components/schemas/WalletApplicationInfo"
}
},
"clients": {
"description": "Client-specific state (e.g. last usage) and configuration (enabled/disabled)",
"type": "object",
"properties": {
"IO": {
"$ref": "#/components/schemas/WalletClient"
}
},
"additionalProperties": {
"$ref": "#/components/schemas/WalletClient"
}
},
"details": {
"$ref": "#/components/schemas/WalletInfoDetails"
},
Expand All @@ -675,6 +707,7 @@
"creationDate",
"updateDate",
"applications",
"clients",
"paymentMethodAsset"
]
},
Expand Down

0 comments on commit df64681

Please sign in to comment.