Skip to content

Commit

Permalink
feat(SPV-839): add requesterPaymail into upsert contact method (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 authored Jun 24, 2024
1 parent f788b2b commit 435c0e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestContactActionsRouting(t *testing.T) {
})

t.Run("UpsertContact", func(t *testing.T) {
contact, err := client.UpsertContact(context.Background(), "test-id", "[email protected]", nil)
contact, err := client.UpsertContact(context.Background(), "test-id", "[email protected]", "", nil)
require.NoError(t, err)
require.NotNil(t, contact)
})
Expand Down
4 changes: 2 additions & 2 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ func (wc *WalletClient) GetContacts(ctx context.Context, conditions *filter.Cont
}

// UpsertContact add or update contact. When adding a new contact, the system utilizes Paymail's PIKE capability to dispatch an invitation request, asking the counterparty to include the current user in their contacts.
func (wc *WalletClient) UpsertContact(ctx context.Context, paymail, fullName string, metadata map[string]any) (*models.Contact, ResponseError) {
return wc.UpsertContactForPaymail(ctx, paymail, fullName, metadata, "")
func (wc *WalletClient) UpsertContact(ctx context.Context, paymail, fullName, requesterPaymail string, metadata map[string]any) (*models.Contact, ResponseError) {
return wc.UpsertContactForPaymail(ctx, paymail, fullName, metadata, requesterPaymail)
}

// UpsertContactForPaymail add or update contact. When adding a new contact, the system utilizes Paymail's PIKE capability to dispatch an invitation request, asking the counterparty to include the current user in their contacts.
Expand Down

0 comments on commit 435c0e3

Please sign in to comment.