From 441e289854add7fefe5ce27b9707de355d3a0c43 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Tue, 1 Apr 2025 15:25:10 +0300 Subject: [PATCH] implement SendUpsellSMs --- testutil/mocks/service_mock.go | 7 ++++++- testutil/testservice/account_service.go | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/testutil/mocks/service_mock.go b/testutil/mocks/service_mock.go index bfa9222..b2cc015 100644 --- a/testutil/mocks/service_mock.go +++ b/testutil/mocks/service_mock.go @@ -53,7 +53,12 @@ func (m *MockAccountService) CheckAliasAddress(ctx context.Context, alias string return args.Get(0).(*models.AliasAddress), args.Error(1) } -func (m MockAccountService) RequestAlias(ctx context.Context, publicKey string, hint string) (*models.RequestAliasResult, error) { +func (m *MockAccountService) RequestAlias(ctx context.Context, publicKey string, hint string) (*models.RequestAliasResult, error) { args := m.Called(publicKey, hint) return args.Get(0).(*models.RequestAliasResult), args.Error(1) } + +func (m *MockAccountService) SendUpsellSMS(ctx context.Context, inviterPhone, inviteePhone string) (*models.SendSMSResponse, error) { + args := m.Called(inviterPhone, inviteePhone) + return args.Get(0).(*models.SendSMSResponse), args.Error(1) +} diff --git a/testutil/testservice/account_service.go b/testutil/testservice/account_service.go index 12b9de4..1d1e9f3 100644 --- a/testutil/testservice/account_service.go +++ b/testutil/testservice/account_service.go @@ -64,3 +64,7 @@ func (m TestAccountService) CheckAliasAddress(ctx context.Context, alias string) func (m TestAccountService) RequestAlias(ctx context.Context, publicKey string, hint string) (*models.RequestAliasResult, error) { return &models.RequestAliasResult{}, nil } + +func (m TestAccountService) SendUpsellSMS(ctx context.Context, inviterPhone, inviteePhone string) (*models.SendSMSResponse, error) { + return &models.SendSMSResponse{}, nil +}