Created
November 20, 2021 14:43
-
-
Save cupuyc/acfd9f4e35e6b9c866abf1fd204e611e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
asyncapi: '2.2.0' | |
info: | |
title: Internal Digitalbank EventBus on Azure EventGrid | |
version: 1.0.0 | |
description: This service is in charge to pass data between Azure Step Functions and Digital Mobile Payments Service. | |
channels: | |
internalPayments/InitPayment: | |
publish: | |
message: | |
$ref: '#/components/messages/InitPayment' | |
subscribe: | |
message: | |
$ref: '#/components/messages/InitPaymentResponse' | |
internalPayments/ConfirmPayment: | |
publish: | |
message: | |
$ref: '#/components/messages/ConfirmPayment' | |
subscribe: | |
message: | |
$ref: '#/components/messages/ConfirmPaymentResponse' | |
internalPayments/Error: | |
subscribe: | |
message: | |
$ref: '#/components/messages/OperationError' | |
components: | |
messages: | |
InitPayment: | |
payload: | |
type: object | |
properties: | |
operationId: | |
type: string | |
description: Utility field | |
requestorAccount: | |
type: string | |
description: Account number | |
receiverAccount: | |
type: string | |
description: Account number | |
amount: | |
type: number | |
format: money | |
description: Amount to block | |
InitPaymentResponse: | |
payload: | |
type: object | |
properties: | |
operationId: | |
type: string | |
description: Utility field | |
transactionId: | |
type: string | |
description: Created transactionId | |
ConfirmPayment: | |
payload: | |
type: object | |
properties: | |
operationId: | |
type: string | |
description: Utility field | |
transactionId: | |
type: string | |
ConfirmPaymentResponse: | |
payload: | |
type: object | |
properties: | |
operationId: | |
type: string | |
description: Utility field | |
transactionId: | |
type: string | |
OperationError: | |
payload: | |
type: object | |
properties: | |
operationId: | |
type: string | |
description: Utility field | |
errorCode: | |
type: string | |
errorMessage: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment