From 638ae4dd9bfe4be433634d7ffdb178370de58622 Mon Sep 17 00:00:00 2001 From: Wei Zang Date: Mon, 19 Aug 2024 16:05:16 +0800 Subject: [PATCH] fix(playstore): correct the number of parameters of VerifySubscriptionV2 --- playstore/mocks/playstore.go | 8 ++++---- playstore/validator.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/playstore/mocks/playstore.go b/playstore/mocks/playstore.go index ab809fc..9a21d77 100644 --- a/playstore/mocks/playstore.go +++ b/playstore/mocks/playstore.go @@ -230,18 +230,18 @@ func (mr *MockIABSubscriptionV2MockRecorder) RevokeSubscriptionV2(arg0, arg1, ar } // VerifySubscriptionV2 mocks base method. -func (m *MockIABSubscriptionV2) VerifySubscriptionV2(arg0 context.Context, arg1, arg2, arg3 string) (*androidpublisher.SubscriptionPurchaseV2, error) { +func (m *MockIABSubscriptionV2) VerifySubscriptionV2(arg0 context.Context, arg1, arg2 string) (*androidpublisher.SubscriptionPurchaseV2, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VerifySubscriptionV2", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "VerifySubscriptionV2", arg0, arg1, arg2) ret0, _ := ret[0].(*androidpublisher.SubscriptionPurchaseV2) ret1, _ := ret[1].(error) return ret0, ret1 } // VerifySubscriptionV2 indicates an expected call of VerifySubscriptionV2. -func (mr *MockIABSubscriptionV2MockRecorder) VerifySubscriptionV2(arg0, arg1, arg2, arg3 any) *gomock.Call { +func (mr *MockIABSubscriptionV2MockRecorder) VerifySubscriptionV2(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySubscriptionV2", reflect.TypeOf((*MockIABSubscriptionV2)(nil).VerifySubscriptionV2), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySubscriptionV2", reflect.TypeOf((*MockIABSubscriptionV2)(nil).VerifySubscriptionV2), arg0, arg1, arg2) } // MockIABMonetization is a mock of IABMonetization interface. diff --git a/playstore/validator.go b/playstore/validator.go index 3ae2493..35a1057 100644 --- a/playstore/validator.go +++ b/playstore/validator.go @@ -39,7 +39,7 @@ type IABSubscription interface { // The IABSubscriptionV2 type is an interface for subscriptionV2 service type IABSubscriptionV2 interface { - VerifySubscriptionV2(context.Context, string, string, string) (*androidpublisher.SubscriptionPurchaseV2, error) + VerifySubscriptionV2(context.Context, string, string) (*androidpublisher.SubscriptionPurchaseV2, error) RevokeSubscriptionV2(context.Context, string, string, *androidpublisher.RevokeSubscriptionPurchaseRequest) (*androidpublisher.RevokeSubscriptionPurchaseResponse, error) }