From 6597d6b6a2d8167f677bb9c1d302d18ffab692c0 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Fri, 11 Apr 2025 11:02:23 +0300 Subject: [PATCH] added the SendUpsellSMS to DevAccountService and MockApi --- dev/api.go | 7 +++++++ testutil/mocks/api_mock.go | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/dev/api.go b/dev/api.go index fc68c29..f2e0a45 100644 --- a/dev/api.go +++ b/dev/api.go @@ -653,3 +653,10 @@ func (das *DevAccountService) RequestAlias(ctx context.Context, publicKey string Alias: alias, }, nil } + +func (das *DevAccountService) SendUpsellSMS(ctx context.Context, inviterPhone, inviteePhone string) (*models.SendSMSResponse, error) { + logg.DebugCtxf(ctx, "sent an SMS", "inviterPhone", inviterPhone, "inviteePhone", inviteePhone) + return &models.SendSMSResponse{ + Invitee: inviteePhone, + }, nil +} diff --git a/testutil/mocks/api_mock.go b/testutil/mocks/api_mock.go index b020677..2293aa6 100644 --- a/testutil/mocks/api_mock.go +++ b/testutil/mocks/api_mock.go @@ -61,3 +61,7 @@ func (m MockApi) RequestAlias(ctx context.Context, publicKey string, hint string func (m MockApi) TokenTransfer(ctx context.Context, amount, from, to, tokenAddress string) (*models.TokenTransferResponse, error) { return nil, nil } + +func (m MockApi) SendUpsellSMS(ctx context.Context, inviterPhone, inviteePhone string) (*models.SendSMSResponse, error) { + return nil, nil +}