Skip to main content

AsyncAPI for currency service 0.0.1 documentation

info

In this document, PUB means "publish" and SUB means "subscribe". This refers to the "publish/subscribe" (pub/sub) messaging framework, where "publish" means that the service sends data to Kafka topics, and "subscribe" means the service acts as a consumer that subscribes to specific Kafka topics to receive data.

Table of Contents

Operations

PUB currencyManagement Operation

Accepts one of the following messages:

Message currencyCreated

message is sent when currency is created

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.currencyobject---additional properties are allowed
payload.currency.currencyCodestringcurrency code---
payload.currency.localizationDescriptionsobjectlocalized description---
payload.currency.localizationDescriptions (additional properties)string----
payload.currency.currencySymbolstringcurrency symbol---
payload.currency.namespacestringnamespace---
payload.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.currency.decimalsintegerdecimals, commonly set 2 if real currency or 0 if virtual currency-format (int32)-
payload.currency.createdAtstring--format (date-time)-
payload.currency.updatedAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstringevent id---
versioninteger----
namestringevent name---
namespacestringevent namespace---
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstringclient id---
userIdstringthe operator id---
traceIdstringtrace id---
sessionIdstringsession id---

Examples of payload (generated)

{
"payload": {
"currency": {
"currencyCode": "string",
"localizationDescriptions": {
"property1": "string",
"property2": "string"
},
"currencySymbol": "string",
"namespace": "string",
"currencyType": "REAL",
"decimals": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message currencyUpdated

message is sent when currency is updated

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.currencyobject---additional properties are allowed
payload.currency.currencyCodestringcurrency code---
payload.currency.localizationDescriptionsobjectlocalized description---
payload.currency.localizationDescriptions (additional properties)string----
payload.currency.currencySymbolstringcurrency symbol---
payload.currency.namespacestringnamespace---
payload.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.currency.decimalsintegerdecimals, commonly set 2 if real currency or 0 if virtual currency-format (int32)-
payload.currency.createdAtstring--format (date-time)-
payload.currency.updatedAtstring--format (date-time)-
payload.oldCurrencyobject---additional properties are allowed
payload.oldCurrency.currencyCodestringcurrency code---
payload.oldCurrency.localizationDescriptionsobjectlocalized description---
payload.oldCurrency.localizationDescriptions (additional properties)string----
payload.oldCurrency.currencySymbolstringcurrency symbol---
payload.oldCurrency.namespacestringnamespace---
payload.oldCurrency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.oldCurrency.decimalsintegerdecimals, commonly set 2 if real currency or 0 if virtual currency-format (int32)-
payload.oldCurrency.createdAtstring--format (date-time)-
payload.oldCurrency.updatedAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstringevent id---
versioninteger----
namestringevent name---
namespacestringevent namespace---
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstringclient id---
userIdstringthe operator id---
traceIdstringtrace id---
sessionIdstringsession id---

Examples of payload (generated)

{
"payload": {
"currency": {
"currencyCode": "string",
"localizationDescriptions": {
"property1": "string",
"property2": "string"
},
"currencySymbol": "string",
"namespace": "string",
"currencyType": "REAL",
"decimals": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"oldCurrency": {
"currencyCode": "string",
"localizationDescriptions": {
"property1": "string",
"property2": "string"
},
"currencySymbol": "string",
"namespace": "string",
"currencyType": "REAL",
"decimals": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message currencyDeleted

message is sent when currency is deleted

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.currencyobject---additional properties are allowed
payload.currency.currencyCodestringcurrency code---
payload.currency.localizationDescriptionsobjectlocalized description---
payload.currency.localizationDescriptions (additional properties)string----
payload.currency.currencySymbolstringcurrency symbol---
payload.currency.namespacestringnamespace---
payload.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.currency.decimalsintegerdecimals, commonly set 2 if real currency or 0 if virtual currency-format (int32)-
payload.currency.createdAtstring--format (date-time)-
payload.currency.updatedAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstringevent id---
versioninteger----
namestringevent name---
namespacestringevent namespace---
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstringclient id---
userIdstringthe operator id---
traceIdstringtrace id---
sessionIdstringsession id---

Examples of payload (generated)

{
"payload": {
"currency": {
"currencyCode": "string",
"localizationDescriptions": {
"property1": "string",
"property2": "string"
},
"currencySymbol": "string",
"namespace": "string",
"currencyType": "REAL",
"decimals": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}