|
1 | | -using System; |
| 1 | +using Skyware.Lis.EventsModel.Orders; |
| 2 | +using System; |
2 | 3 | using System.Collections.Generic; |
3 | 4 | using System.Text; |
4 | 5 |
|
5 | 6 | namespace Skyware.Lis.EventsModel.BgNhis |
6 | 7 | { |
7 | 8 |
|
8 | 9 | /// <summary> |
9 | | - /// Event. Occurs when <see cref="Referral"/> is imported or removed |
10 | | - /// Deafualt address: topic://bg-nhis/ref-import |
| 10 | + /// Event. Occurs when action with a <see cref="Referral"/> is made |
| 11 | + /// Deafualt address: topic://topic://bg-nhis/referrals |
11 | 12 | /// </summary> |
12 | | - public class ReferralImport : BaseMessage |
| 13 | + public class ReferralAction : BaseMessage |
13 | 14 | { |
14 | 15 |
|
15 | 16 | /// <summary> |
16 | 17 | /// Default address where messages are produced |
17 | 18 | /// </summary> |
18 | | - public override string DefaultAddress => "topic://bg-nhis/ref-import"; |
| 19 | + public override string DefaultAddress => "topic://bg-nhis/referrals"; |
19 | 20 |
|
20 | 21 | /// <summary> |
21 | | - /// Operation indicator - true for import and false for removal |
| 22 | + /// Action made with the referral, according to <see cref="ReferralEvents"/> |
22 | 23 | /// </summary> |
23 | | - public bool IsRemoval { get; set; } = false; |
| 24 | + public string Action { get; set; } |
24 | 25 |
|
25 | 26 | /// <summary> |
26 | | - /// Sale to which referral is imported or from which is removed |
| 27 | + /// Sale to which referral is imported |
27 | 28 | /// </summary> |
28 | | - public int SaleId { get; set; } |
| 29 | + public int? SaleId { get; set; } |
29 | 30 |
|
30 | 31 | /// <summary> |
31 | | - /// Sale scehma of the Sale |
| 32 | + /// Sale scehma of the Sale to which referral is imported |
32 | 33 | /// </summary> |
33 | | - public int SchemaId { get; set; } |
| 34 | + public int? SchemaId { get; set; } |
34 | 35 |
|
35 | 36 | /// <summary> |
36 | 37 | /// Imported/Removed <see cref="Referral"/> |
|
0 commit comments