-
Notifications
You must be signed in to change notification settings - Fork 2
/
email.go
113 lines (93 loc) · 2.93 KB
/
email.go
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package notify
type Email interface {
emailID(bool) string
}
type InitialOriginalAttorneyEmail struct {
DonorFullName string
LpaType string
AttorneyFullName string
DonorFirstNames string
AttorneyStartPageURL string
ShareCode string
DonorFirstNamesPossessive string
}
func (e InitialOriginalAttorneyEmail) emailID(isProduction bool) string {
if isProduction {
return "080071dc-0434-4b13-adb7-c4e5612c4b47"
}
return "376d7ef2-7941-46c2-b372-bacca0e00c1d"
}
func (e InitialOriginalAttorneyEmail) WithShareCode(shareCode string) Email {
e.ShareCode = shareCode
return e
}
type InitialReplacementAttorneyEmail struct {
DonorFullName string
LpaType string
AttorneyFullName string
DonorFirstNames string
AttorneyStartPageURL string
ShareCode string
DonorFirstNamesPossessive string
}
func (e InitialReplacementAttorneyEmail) emailID(isProduction bool) string {
if isProduction {
return "8d335239-7002-4825-8393-cc00ad246648"
}
return "738d500f-b674-4e1e-8039-a7be53fce528"
}
func (e InitialReplacementAttorneyEmail) WithShareCode(shareCode string) Email {
e.ShareCode = shareCode
return e
}
type CertificateProviderCertificateProvidedEmail struct {
DonorFullNamePossessive string
LpaType string
CertificateProviderFullName string
CertificateProvidedDateTime string
DonorFirstNamesPossessive string
}
func (e CertificateProviderCertificateProvidedEmail) emailID(isProduction bool) string {
if isProduction {
return "64d7d56b-966b-464f-8084-1ac5d91c3d58"
}
return "76f4370f-1a78-4488-9029-b00fbc292386"
}
type CertificateProviderInviteEmail struct {
DonorFullName string
LpaType string
CertificateProviderFullName string
DonorFirstNames string
DonorFirstNamesPossessive string
WhatLpaCovers string
CertificateProviderStartURL string
ShareCode string
}
func (e CertificateProviderInviteEmail) emailID(isProduction bool) string {
if isProduction {
return "e54a553b-68e3-46f2-b2bd-4465ee85062d"
}
return "829c2aab-a8bd-4fd4-a1e2-9dd03b142e7c"
}
func (e CertificateProviderInviteEmail) WithShareCode(shareCode string) Email {
e.ShareCode = shareCode
return e
}
type CertificateProviderProvideCertificatePromptEmail struct {
DonorFullName string
DonorFullNamePossessive string
LpaType string
CertificateProviderFullName string
CertificateProviderStartURL string
ShareCode string
}
func (e CertificateProviderProvideCertificatePromptEmail) emailID(isProduction bool) string {
if isProduction {
return "eac04624-f058-411a-be48-854a77022ac8"
}
return "3ad5a806-6789-4687-8731-49ff7357372f"
}
func (e CertificateProviderProvideCertificatePromptEmail) WithShareCode(shareCode string) Email {
e.ShareCode = shareCode
return e
}