Skip to content

Commit f49b83e

Browse files
author
Marcel Corso
committed
new lookup endpoints: changing the order of the things on the hlr methods
1 parent 12a5f16 commit f49b83e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ func (c *Client) Lookup(phoneNumber string, params *LookupParams) (*Lookup, erro
281281
return lookup, nil
282282
}
283283

284-
// NewHLRLookup creates a new HLR lookup for the specified number.
285-
func (c *Client) NewHLRLookup(phoneNumber string, params *LookupParams) (*HLR, error) {
284+
// NewLookupHLR creates a new HLR lookup for the specified number.
285+
func (c *Client) NewLookupHLR(phoneNumber string, params *LookupParams) (*HLR, error) {
286286
urlParams := paramsForLookup(params)
287287
path := "lookup/" + phoneNumber + "/hlr"
288288

@@ -298,8 +298,8 @@ func (c *Client) NewHLRLookup(phoneNumber string, params *LookupParams) (*HLR, e
298298
return hlr, nil
299299
}
300300

301-
// HLRLookup performs a HLR lookup for the specified number.
302-
func (c *Client) HLRLookup(phoneNumber string, params *LookupParams) (*HLR, error) {
301+
// LookupHLR performs a HLR lookup for the specified number.
302+
func (c *Client) LookupHLR(phoneNumber string, params *LookupParams) (*HLR, error) {
303303
urlParams := paramsForLookup(params)
304304
path := "lookup/" + phoneNumber + "/hlr?" + urlParams.Encode()
305305

lookup_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ func checkHLR(t *testing.T, hlr *HLR) {
8080
}
8181
}
8282

83-
func TestHLRLookup(t *testing.T) {
83+
func TestLookupHLR(t *testing.T) {
8484
SetServerResponse(200, lookupHLRObject)
8585

86-
hlr, err := mbClient.HLRLookup("31624971134", &LookupParams{CountryCode: "NL"})
86+
hlr, err := mbClient.LookupHLR("31624971134", &LookupParams{CountryCode: "NL"})
8787
if err != nil {
8888
t.Fatalf("Didn't expect error while doing the lookup: %s", err)
8989
}
9090
checkHLR(t, hlr)
9191
}
9292

93-
func TestNewHLRLookup(t *testing.T) {
93+
func TestNewLookupHLR(t *testing.T) {
9494
SetServerResponse(201, lookupHLRObject)
9595

96-
hlr, err := mbClient.NewHLRLookup("31624971134", &LookupParams{CountryCode: "NL", Reference: "reference2000"})
96+
hlr, err := mbClient.NewLookupHLR("31624971134", &LookupParams{CountryCode: "NL", Reference: "reference2000"})
9797
if err != nil {
9898
t.Fatalf("Didn't expect error while doing the lookup: %s", err)
9999
}

0 commit comments

Comments
 (0)