-
Notifications
You must be signed in to change notification settings - Fork 2
/
sample-3.services
90 lines (77 loc) · 3.27 KB
/
sample-3.services
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import datatypes from "sample-3.data" as Domain
functional microservice org.example.CustomerSelfServiceBackend {
interface authenticationController {
authenticationRequest(
sync authenticationRequest : Domain::customerSelfService.AuthenticationRequestDto,
sync out authenticationResponse : Domain::customerSelfService.AuthenticationResponseDto
);
signupUser(
sync registration : Domain::customerSelfService.SignupRequestDto,
sync out userResponse : Domain::customerSelfService.UserResponseDto
);
}
interface cityStaticDataHolder {
getCitiesForPostalCode(
sync postcalCode : string,
sync out result : Domain::customerSelfService.CitiesResponseDto
);
}
interface customerInformationHolder {
changeAddress(
sync customerId : Domain::customerSelfService.CustomerId,
sync requestDto : Domain::customerSelfService.AddressDto,
sync out result : Domain::customerSelfService.AddressDto
);
getCustomer(
sync authentication : string,
sync customerId : Domain::customerSelfService.CustomerId,
sync out result : Domain::customerSelfService.CustomerDto
);
registerCustomer(
sync authentication : string,
sync requestDto : Domain::customerSelfService.CustomerRegistrationRequestDto,
sync out result : Domain::customerSelfService.CustomerDto
);
}
interface userInformationHolder {
getCurrentUser(
sync authentitaction : string,
sync out response : Domain::customerSelfService.UserResponseDto
);
}
interface insuranceQuoteExpiredMessageConsumer {
receiveInsuranceQuoteExpiredEvent(
async message : Domain::customerSelfService.InsuranceQuoteExpiredEvent
);
}
interface insuranceQuoteRequestInformationHolder {
getInsuranceQuoteRequest(
sync authentication : string,
sync insuranceQuoteRequestId : long,
sync out quoteRequestDto : Domain::customerSelfService.InsuranceQuoteRequestDto
);
createInsuranceQuoteRequest(
sync authentication : string,
sync requestDto : Domain::customerSelfService.InsuranceQuoteRequestDto,
sync out quoteRequestDto : Domain::customerSelfService.InsuranceQuoteRequestDto,
async out insuranceQuoteRequestEvent
: Domain::customerSelfService.InsuranceQuoteRequestEvent
);
respondToInsuranceQuote(
sync id : long,
sync insuranceQuoteResponseDto : Domain::customerSelfService.InsuranceQuoteResponseDto,
sync out quoteRequestDto : Domain::customerSelfService.InsuranceQuoteRequestDto,
async out customerDecisionEvent : Domain::customerSelfService.CustomerDecisionEvent
);
}
interface insuranceQuoteResponseMessageConsumer {
receiveInsuranceQuoteResponse(
async message : Domain::customerSelfService.InsuranceQuoteResponseEvent
);
}
interface policyCreatedMessageConsumer {
receivePolicyCreatedEvent(
async message : Domain::customerSelfService.InsuranceQuoteResponseEvent
);
}
}