AsyncAPI for currency service 0.0.1 documentation
- Protobuf File Spec: ecommerce.proto
Published Messages (currencyManagement)
The service publishes one of these messages below.
currencyCreated
Message is sent when currency is created. Contains fields from event and the following payload.
Example value
{
"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"
}
payload
Name | Type | Description |
---|---|---|
currency | currency | - |
currencyUpdated
Message is sent when currency is updated. Contains fields from event and the following payload.
Example value
{
"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"
}
payload
Name | Type | Description |
---|---|---|
currency | currency | - |
oldCurrency | currency | - |
currencyDeleted
Message is sent when currency is deleted. Contains fields from event and the following payload.
Example value
{
"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"
}
payload
Name | Type | Description |
---|---|---|
currency | currency | - |
Schemas
currency
Name | Type | Description |
---|---|---|
currencyCode | string | currency code |
localizationDescriptions | object | localized description |
currencySymbol | string | currency symbol |
namespace | string | namespace |
currencyType | string | currency type |
decimals | integer (int32) | decimals, commonly set 2 if real currency or 0 if virtual currency |
createdAt | string (date-time) | - |
updatedAt | string (date-time) | - |
localizationDescriptions
This is a free-form object.
event
Name | Type | Description |
---|---|---|
id | string | event id |
version | integer | - |
name | string | event name |
namespace | string | event namespace |
parentNamespace | string | - |
timestamp | string (date-time) | - |
clientId | string | client id |
userId | string | the operator id |
traceId | string | trace id |
sessionId | string | session id |