Skip to content

Commit

Permalink
change: input types and rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
DXTimer committed Aug 24, 2023
1 parent 43e6f15 commit a0bab60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
)

type CreateRegistrantChangeInput struct {
DomainId int `json:"domain_id"`
ContactId int `json:"contact_id"`
DomainId string `json:"domain_id"`
ContactId string `json:"contact_id"`
ExtendedAttributes map[string]string `json:"extended_attributes"`
}

Expand Down Expand Up @@ -47,8 +47,8 @@ type RegistrantChangeListOptions struct {
}

type CheckRegistrantChangeInput struct {
DomainId int `json:"domain_id"`
ContactId int `json:"contact_id"`
DomainId string `json:"domain_id"`
ContactId string `json:"contact_id"`
}

type ExtendedAttribute struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func TestRegistrarService_CreateRegistrantChange(t *testing.T) {
})

res, err := client.Registrar.CreateRegistrantChange(context.Background(), "1010", &CreateRegistrantChangeInput{
DomainId: 101,
ContactId: 101,
DomainId: "example.com",
ContactId: "101",
ExtendedAttributes: map[string]string{},
})

Expand Down Expand Up @@ -92,8 +92,8 @@ func TestRegistrarService_CheckRegistrantChange(t *testing.T) {
})

res, err := client.Registrar.CheckRegistrantChange(context.Background(), "1010", &CheckRegistrantChangeInput{
DomainId: 101,
ContactId: 101,
DomainId: "example.com",
ContactId: "101",
})

assert.NoError(t, err)
Expand Down

0 comments on commit a0bab60

Please sign in to comment.