Skip to content

Commit b15cca0

Browse files
committed
Fixed email verify endpoint
Signed-off-by: Vishal Rana <[email protected]>
1 parent 3db06a2 commit b15cca0

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

currency.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ type (
1717
}
1818

1919
CurrencyConvertResponse struct {
20-
Value float64 `json:"value" db:"value"`
21-
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
20+
Value float64 `json:"value"`
21+
UpdatedAt time.Time `json:"updated_at"`
2222
}
2323

2424
CurrencyRatesRequest struct {

post.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ type (
1010
}
1111

1212
PostVerifyResponse struct {
13-
Syntax bool `json:"syntax"`
14-
Disposable bool `json:"disposable"`
15-
Domain bool `json:"domain"`
16-
Mailbox bool `json:"mailbox"`
17-
Error string `json:"error"`
13+
ValidSyntax bool `json:"valid_syntax"`
14+
Deliverable bool `json:"deliverable"`
15+
InboxFull bool `json:"inbox_full"`
16+
ValidDomain bool `json:"valid_domain"`
17+
Disposable bool `json:"disposable"`
18+
CatchAll bool `json:"catch_all"`
1819
}
1920
)
2021

@@ -27,7 +28,7 @@ func (p *Post) Verify(req *PostVerifyRequest) (*PostVerifyResponse, *APIError) {
2728
}).
2829
SetResult(res).
2930
SetError(err).
30-
Get("/email/verify")
31+
Get("/post/verify")
3132
if e != nil {
3233
return nil, &APIError{
3334
Message: e.Error(),

0 commit comments

Comments
 (0)