Skip to content

Latest commit

 

History

History
152 lines (122 loc) · 31.7 KB

events-map.md

File metadata and controls

152 lines (122 loc) · 31.7 KB

Events Map

[TOC]

Event List

UserManagmentRabbitMQ

type name comments data source
event SessionCreatedEvent Create a new session for customer
  • CustomerId
  • TimeStamp
    Lykke.Service.Sessions
    event SessionEndedEvent Session is ended for customer
    • CustomerId
    • TimeStamp
    • Token
      Lykke.Service.Sessions
      event CustomerRegistrationEvent Register new account for customer
      • CustomerId
      • TimeStamp
        Lykke.Service.CustomerManagement
        event Customer profile updated Update (or create) customer profile
        • CustomerId
        • TimeStamp
          event EmailVerifiedEvent Customer email was verified
          • CustomerId
          • TimeStamp
          • WasEmailEverVerified
            Lykke.Service.CustomerProfile
            event CustomerWalletCreatedEvent Customer wallet has been successfully created in private blockchain
            • CustomerId
            • TimeStamp
              Lykke.Service.PrivateBlockchainFaca
              event EmailCodeVerifiedEvent Email verification code was verified
              • CustomerId
              • TimeStamp
                Lykke.Service.CustomerManagement
                event CustomerPhoneVerifiedEvent Customer's phone was verified
                • CustomerId
                • TimeStamp
                • WasPhoneEverVerified
                  Lykke.Service.CustomerManagement

                  WalletManagmentRabbitMQ

                  type name comments data source
                  event BonusReceivedEvent Notify about received bonus
                  • TransactionId
                  • ExternalOperationId
                  • CustomerId
                  • PartnerId
                  • LocationId
                  • CampaignId
                  • AssetSymbol
                  • Amount
                  • BonusType
                  • Timestamp
                  Lykke.Service.WalletManagement
                  event P2PTransferEvent Notify about completed tokens transfer
                  • SenderCustomerId
                  • ReceiverCustomerId
                  • AssetSymbol
                  • Amount
                  • TransactionId
                  • ExternalOperationId
                  • Timestamp
                  Lykke.Service.WalletManagement
                  event BonusRewardDetectedEvent Notify that bonus reward was successfully stored in the blockchain.
                  • CustomerId
                  • Amount
                  • BonusReason
                  • Timestamp
                  • RequestId
                  Lykke.Service.PrivateBlockchainFaca
                  event TransferDetectedEvent Notify about transfer completion
                  • TransactionHash
                  • SenderCustomerId
                  • ReceiverCustomerId
                  • Amount Timestamp
                  • RequestId
                  Lykke.Service.PrivateBlockchainFaca
                  event CustomerBalanceUpdatedEvent Notify about customer balance update
                  • CustomerId
                  • Balance
                  • Timestamp
                  • Reason
                    • Transfer
                    • BonusReward
                  • OperationId
                  Lykke.Service.PrivateBlockchainFaca
                  event P2PTransferFailedEvent Notify about failed in BC P2P transfer
                  • TransactionHash
                  • SenderCustomerId
                  • ReceiverCustomerId
                  • Amount
                  • Timestamp
                  • RequestId
                  Lykke.Service.PrivateBlockchainFaca
                  event PartnerPaymentRequestCreatedEvent Notify that a partner payment request has been created
                  • PaymentRequestId
                  • CustomerId
                  • PartnerId
                  Lykke.Service.PartnersPayments
                  event TransactionFailedEvent Notify about a failed transaction in BC
                  • OperationId
                  Lykke.Service.PrivateBlockchainFaca
                  event PartnersPaymentProcessedEvent Notify that tokens for a partners payment have been reserved
                  • PaymentRequestId
                  • CustomerId
                  • PartnerId
                  • LocationId
                  • Amount
                  • Timestamp
                  Lykke.Service.WalletManagement
                  event RefundPartnersPaymentEvent Notify about a refunded partners payment
                  • PaymentRequestId
                  • CustomerId
                  • PartnerId
                  • LocationId
                  • Amount
                  • Timestamp
                  Lykke.Service.WalletManagement
                  event SuccessfulPaymentTransferEvent Notify about a successful payment transfer
                  • TransferId
                  • CustomerId
                  • CampaignId
                  • InvoiceId
                  • Amount
                  • Timestamp
                  Lykke.Service.WalletManagement
                  event RefundPaymentTransferEvent Notify about a refunded payment transfer
                  • TransferId
                  • CustomerId
                  • CampaignId
                  • InvoiceId
                  • Amount Timestamp
                  Lykke.Service.WalletManagement
                  event PartnersPaymentStatusUpdatedEvent Notify about a PartnerPayment status update Lykke.Service.PartnersPayments
                  event P2PTransferDetectedEvent Notify about p2p transfer detected in BC
                  • TransactionHash
                  • SenderCustomerId
                  • ReceiverCustomerId
                  • Amount Timestamp
                  • RequestId
                  Lykke.Service.PrivateBlockchainFaca
                  event TransferToExternalFailedEvent Notify about failed transfer to public BC
                  • CustomerId
                  • Amount
                  Lykke.Service.PrivateBlockchainFaca
                  event CustomerWalletStatusUpdatedEvent Notify that wallet status has been chanegd
                  • CustomerId
                  • WalletBlocked
                  Lykke.Service.WalletManagement
                  event WalletLinkingStatusChangeFailedEvent Notify about wallet linking/unlinking transaction failure in private blockchain
                  • CustomerId
                  • PrivateAddress
                  • PublicAddress Fee
                  Lykke.Service.CrossChainWalletLinke
                  event SeizeToInternalDetectedEvent Notify about seize event in the public blockchain.
                  • OperationId
                  • Account
                  • Reason
                  • Amount
                  • Timestamp
                  Lykke.Job.EthereumBridge
                  event ReferralStakeBurntEvent Notify the part of a stake was burnt
                  • ReferralId
                  • CampaignId
                  • CustomerId
                  • Amount
                  • Timestamp
                  Lykke.Service.Staking
                  event SeizedFromCustomerEvent Notify the tokens were seized from a customer
                  • CustomerId
                  • Amount
                  Lykke.Service.PrivateBlockchainFaca
                  event ReferralStakeReservedEvent Notify that tokens for a stake were reserved
                  • ReferralId
                  • CampaignId
                  • CustomerId
                  • Amount
                  • Timestamp
                  Lykke.Service.Staking
                  event ReferralStakeReleasedEvent Notify that part of a stake was released
                  • ReferralId
                  • CampaignId
                  • CustomerId
                  • Amount
                  • Timestamp
                  Lykke.Service.Staking
                  event ReferralStakeStatusUpdatedEvent Notify that the status of a referral stake was changed
                  • ReferralId
                  • Status
                  Lykke.Service.Staking
                  event TransferToExternalRequestedEvent Notify that Transfer to the public network was requested by a customer
                  • CustomerId
                  • Amount
                  • OperationId
                  • PrivateBlockchainGatewayContractAddress
                  Lykke.Service.CrossChainTransfers
                  event TransferToExternalProcessedEvent Notify that Transfer to the public network was processed by the internal network
                  • CustomerId
                  • Amount
                  • TxHash
                  • PrivateAddress
                  • PublicAddress
                  • InternalTransferId
                  Lykke.Service.CrossChainTransfers
                  event TransferToInternalProcessedEvent Notify that transfer from the public network was processed
                  • MasterWalletAddress
                  • PrivateBlockchainGatewayContractAddress
                  • Data
                  • OperationId
                  Lykke.Service.CrossChainTransfers
                  event TransferToInternalCompletedEvent Notify that transfer to the internal network process was finalized
                  • OperationId
                  • CustomerId
                  • Amount
                  • PrivateAddress
                  • PublicAddress
                  Lykke.Service.CrossChainTransfers
                  event WalletLinkingStatusChangeRequestedEvent Notify that Wallet Linking was requested by a customer
                  • CustomerId
                  • PrivateAddress
                  • PublicAddress
                  • Fee
                  • MasterWalletAddress
                  • EventId
                  • Direction
                  Lykke.Service.CrossChainWalletLinke
                  event WalletLinkingStatusChangeCompletedEvent Notify that Wallet Linking was completed in the private blockchain
                  • CustomerId
                  • PrivateAddress
                  • PublicAddress
                  • EventId
                  • Fee
                  Lykke.Service.CrossChainWalletLinke
                  event WalletLinkingStatusChangeFinalizedEvent Notify that Wallet Linking was completed in both public and private blockchains
                  • PrivateAddress
                  • PublicAddress
                  Lykke.Service.CrossChainWalletLinke
                  event FeeCollectedEvent Notify that a fee was collected
                  • EventId
                  • CustomerId
                  • WalletAddress
                  • Amount
                  • Reason
                  • TrannsactionHash
                  Lykke.Service.PrivateBlockchainFaca
                  event SeizedFromCustomerEvent Notify that some amount was seized from a customer
                  • CustomerId
                  • Amount
                  Lykke.Service.PrivateBlockchainFaca
                  event SeizeBalanceFromCustomerCompletedEvent Notify that the whole balance for a customer was seized (when the account was removed)
                  • CustomerId
                  Lykke.Service.PrivateBlockchainFaca
                  event VoucherTokensReservedEvent Notify about tokens reservation for purchased voucher
                  • TransferId
                  • CustomerId
                  • SpendRuleId
                  • VoucherId
                  • Amount
                  • Timestamp
                  Lykke.Service.Vouchers
                  event VoucherTokensUsedEvent Notify about burned tokens for purchased voucher
                  • TransferId
                  • CustomerId
                  • SpendRuleId
                  • VoucherId
                  • Amount
                  • Timestamp
                  Lykke.Service.Vouchers

                  BonusManagmentRabbitMQ

                  type name comments data source
                  command BonusIssuedEven Notify about an issued bonus for customer
                  • CustomerId
                  • OperationId
                  • PartnerId
                  • LocationId
                  • CampaignId
                  • UnitLocationCode
                  • BonusOperationType
                    • ConditionReward
                    • CampaignReward
                  • Amount
                  • TimeStamp
                  Lykke.Service.BonusEngine
                  event BonusTriggerEvent Notify about the new trigger for Bonus Engine
                  • CustomerId
                  • Type
                  • PartnerId
                  • LocationId
                  • TimeStamp
                  • Data
                  Lykke.Service.BonusTriggerAgent
                  event BonusTypeDetectedEvent Represents Bonus Type detection
                  • DisplayName
                  • EventName
                  • Vertical
                  • AllowInfinite
                  • AllowPercentage
                  Lykke.Service.BonusTriggerAgent
                  event ParticipatedInCampaignEvent Publish once customer participates in a campaign
                  • CampaignId
                  • CustomerId
                  Lykke.Service.BonusEngine
                  event CustomerTierChangedEvent Notify about the customer reward tier changed
                  • CustomerId
                  • TierId
                  Lykke.Service.Tiers
                  event CampaignChangeEvent Represents an event sent from Campaign Service when a campaign is changed
                  • CampaignId
                  • TimeStamp
                  • Status
                    • Pending
                    • Active
                    • Completed
                    • Inactive
                  • Action
                    • Created
                    • Edited
                    • Activated
                    • Completed
                    • Deleted
                  Lykke.Service.Campaign

                  PartnersIntegrationRabbitMQ

                  type name comments data source
                  event BonusCustomerTriggerEvent Represents customer bonus event, sent by a Partner (usually via the Partner API)
                  • CustomerId
                  • PartnerId
                  • LocationId
                  • Amount
                  • Currency
                  Lykke.Service.PartnersIntegration

                  NotificationSystemRabbitMQ

                  type name comments data source
                  command EmailMessageEvent Represents a command for sending email messages
                  • CustomerId
                  • SubjectTemplateId
                  • MessageTemplateId
                  • TemplateParameters
                  • Source
                  Lykke.Service.NotificationSystem
                  command SmsEvent Represents a command for sending SMS
                  • CustomerId
                  • MessageTemplateId
                  • TemplateParameters
                  • Source
                  Lykke.Service.NotificationSystem
                  event BrokerMessage Represents a broker message event, sent from the NotificationSystem to the NotificationSystemBroker
                  • MessageId
                  • Channel
                  • Properties
                  Lykke.Service.NotificationSystem
                  command PushNotificationEvent Represents a push notification event
                  • CustomerId
                  • MessageTemplateId
                  • CustomPayload TemplateParameters
                  • Source
                  Lykke.Service.NotificationSystem
                  event UpdateAuditMessageEvent Represents audit message update event
                  • MessageId
                  • SendingTimestamp
                  • DeliveryStatus
                  • DeliveryComment
                  Lykke.Service.NotificationSystemBrok
                  event CreateAuditMessageEvent Represents audit message creation event
                  • Timestamp
                  • MessageId
                  • MessageType
                  • CustomerId
                  • SubjectTemplateId
                  • MessageTemplateId
                  • Source
                  • CallType
                  • FormattingStatus
                  Lykke.Service.NotificationSystem

                  ReferralRabbitMQ

                  type name comments data source
                  event FriendReferralEvent Represents a referral event sent from Referral Service when the customer successfully referres another customer
                  • ReferrerId
                  • ReferredId
                  • Timestamp
                  Lykke.Service.Referral
                  event PurchaseReferralEvent Represents a purchase event sent from Referral Service when the customer successfully do a purchase with referred id
                  • ReferrerId
                  • ReferredId
                  • Amount
                  • Timestamp
                  Lykke.Service.Referral
                  event PropertyLeadApprovedReferralEvent Represents an event sent from Referral Service when a property lead is approved
                  • ReferrerId
                  • Timestamp
                  • StakedCampaignId
                  Lykke.Service.Referral
                  event PropertyPurchaseReferralEvent (not used anymore) Represents an event sent from Referral Service when a property is purchased
                  • ReferrerId
                  • Timestamp
                  Lykke.Service.Referral
                  event ReferralPropertyFirstPurchaseEvent (not used anymore) Represents an event sent from Referral Service when a property is purchased commissio n 1
                  • ReferrerId
                  • Timestamp
                  • VatAmount
                  • SellingPropertyPrice
                  • NetPropertyPrice
                  • DiscountAmount
                  • CalculatedCommissionAmount
                  • CurrencyCode
                  • CampaignId
                  Lykke.Service.Referral
                  event ReferralPropertySecondPurchaseEvent (not used anymore) Represents an event sent from Referral Service when a property is purchased commissio n 2
                  • ReferrerIdc
                  • Timestamp
                  • VatAmount
                  • SellingPropertyPrice
                  • NetPropertyPrice
                  • DiscountAmount
                  • CalculatedCommissionAmount
                  • CurrencyCode
                  • CampaignId
                  Lykke.Service.Referral
                  event OfferToPurchaseByLeadEvent Represents an event sent from Referral Service when an offer to purchase by lead is made
                  • BuyerCustomerId
                  • Timestamp
                  Lykke.Service.Referral
                  event LeadStateChangedEvent Represents an event sent when a lead's state is changes
                  • LeadId
                  • TimeStamp
                  • State
                  Lykke.Service.Referral
                  event HotelReferralUsedEvent Represents an event sent when a hotel referral is used
                  • CustomerId
                  • PartnerId
                  • LocationId
                  • Amount
                  • CurrencyCode
                  • StakedCampaignId
                  Lykke.Service.Referral

                  SchedulerRabbitMQ

                  type name comments data source
                  event TimeEvent Represents an event that is published on configured TimeStamp
                  • TimeStamp
                  Lykke.Service.Scheduler

                  RabbitMQ Connection List

                  • UserManagmentRabbitMQ
                  • WalletManagmentRabbitMQ
                  • BonusManagmentRabbitMQ
                  • NotificationSystemRabbitMQ
                  • ReferralRabbitMQ
                  • SchedulerRabbitMQ
                  • PrivateBlockchainRabbitMQ

                  Please use in settings.yaml one of these keys for describe connection string to RabbitMQ.

                  RabbitMqConnString:
                    settings-key: UserManagmentRabbitMQ
                    types:
                    - RabbitMq
                  

                  Exchange name

                  Name format for the exchange

                  lykke.<system\area>.

                  example:

                  lykke.customer.session - created new session for customer
                  system\aria: customer
                  event: session
                  

                  If an event it is a command for doing something, then please use suffix ".command" in event type.

                  lykke.wallet.command.cashin.bonus - make cash-in bonus for wallet
                  system\aria: wallet
                  event: command.cashin.bonus
                  
                  

                  Configuration exchange name

                  Please write in code name of the exchange. Do not need to put the name of exchange in the settings file. Name of exchange - it is part of the specification and this part should be stable and no reason change names form DevOps side.