Skip to content

Commit

Permalink
Change: support the active attribute in EmailForward (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalmazor authored Nov 22, 2024
1 parent 82b0227 commit d58ae77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dnsimple/domains_email_forwards.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type EmailForward struct {
// Deprecated: please use `DestinationEmail` instead.
To string `json:"to,omitempty"`
DestinationEmail string `json:"destination_email,omitempty"`
Active bool `json:"active,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
Expand Down
1 change: 1 addition & 0 deletions dnsimple/domains_email_forwards_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func TestDomainsService_GetEmailForward(t *testing.T) {
AliasEmail: "[email protected]",
To: "[email protected]",
DestinationEmail: "[email protected]",
Active: true,
CreatedAt: "2021-01-25T13:54:40Z",
UpdatedAt: "2021-01-25T13:54:40Z"}
assert.Equal(t, wantSingle, forward)
Expand Down
2 changes: 1 addition & 1 deletion fixtures.http/api/getEmailForward/success.http
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
Content-Security-Policy: frame-ancestors 'none'
Strict-Transport-Security: max-age=31536000

{"data":{"id":41872,"domain_id":235146,"alias_email":"[email protected]","destination_email":"[email protected]","created_at":"2021-01-25T13:54:40Z","updated_at":"2021-01-25T13:54:40Z","from":"[email protected]","to":"[email protected]"}}
{"data":{"id":41872,"domain_id":235146,"alias_email":"[email protected]","destination_email":"[email protected]","active":true,"created_at":"2021-01-25T13:54:40Z","updated_at":"2021-01-25T13:54:40Z","from":"[email protected]","to":"[email protected]"}}

0 comments on commit d58ae77

Please sign in to comment.