diff --git a/playstore/mocks/playstore.go b/playstore/mocks/playstore.go index fc07bfa..ab809fc 100644 --- a/playstore/mocks/playstore.go +++ b/playstore/mocks/playstore.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/awa/go-iap/playstore (interfaces: IABProduct,IABSubscription,IABMonetization) +// Source: github.com/awa/go-iap/playstore (interfaces: IABProduct,IABSubscription,IABSubscriptionV2,IABMonetization) // // Generated by this command: // -// mockgen -destination=mocks/playstore.go -package=mocks github.com/awa/go-iap/playstore IABProduct,IABSubscription,IABMonetization +// mockgen -destination=mocks/playstore.go -package=mocks github.com/awa/go-iap/playstore IABProduct,IABSubscription,IABSubscriptionV2,IABMonetization // // Package mocks is a generated GoMock package. package mocks @@ -134,11 +134,12 @@ func (mr *MockIABSubscriptionMockRecorder) CancelSubscription(arg0, arg1, arg2, } // DeferSubscription mocks base method. -func (m *MockIABSubscription) DeferSubscription(arg0 context.Context, arg1, arg2, arg3 string, arg4 *androidpublisher.SubscriptionPurchasesDeferRequest) error { +func (m *MockIABSubscription) DeferSubscription(arg0 context.Context, arg1, arg2, arg3 string, arg4 *androidpublisher.SubscriptionPurchasesDeferRequest) (*androidpublisher.SubscriptionPurchasesDeferResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeferSubscription", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(error) - return ret0 + ret0, _ := ret[0].(*androidpublisher.SubscriptionPurchasesDeferResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } // DeferSubscription indicates an expected call of DeferSubscription. @@ -190,6 +191,59 @@ func (mr *MockIABSubscriptionMockRecorder) VerifySubscription(arg0, arg1, arg2, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySubscription", reflect.TypeOf((*MockIABSubscription)(nil).VerifySubscription), arg0, arg1, arg2, arg3) } +// MockIABSubscriptionV2 is a mock of IABSubscriptionV2 interface. +type MockIABSubscriptionV2 struct { + ctrl *gomock.Controller + recorder *MockIABSubscriptionV2MockRecorder +} + +// MockIABSubscriptionV2MockRecorder is the mock recorder for MockIABSubscriptionV2. +type MockIABSubscriptionV2MockRecorder struct { + mock *MockIABSubscriptionV2 +} + +// NewMockIABSubscriptionV2 creates a new mock instance. +func NewMockIABSubscriptionV2(ctrl *gomock.Controller) *MockIABSubscriptionV2 { + mock := &MockIABSubscriptionV2{ctrl: ctrl} + mock.recorder = &MockIABSubscriptionV2MockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockIABSubscriptionV2) EXPECT() *MockIABSubscriptionV2MockRecorder { + return m.recorder +} + +// RevokeSubscriptionV2 mocks base method. +func (m *MockIABSubscriptionV2) RevokeSubscriptionV2(arg0 context.Context, arg1, arg2 string, arg3 *androidpublisher.RevokeSubscriptionPurchaseRequest) (*androidpublisher.RevokeSubscriptionPurchaseResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeSubscriptionV2", arg0, arg1, arg2, arg3) + ret0, _ := ret[0].(*androidpublisher.RevokeSubscriptionPurchaseResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeSubscriptionV2 indicates an expected call of RevokeSubscriptionV2. +func (mr *MockIABSubscriptionV2MockRecorder) RevokeSubscriptionV2(arg0, arg1, arg2, arg3 any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeSubscriptionV2", reflect.TypeOf((*MockIABSubscriptionV2)(nil).RevokeSubscriptionV2), arg0, arg1, arg2, arg3) +} + +// VerifySubscriptionV2 mocks base method. +func (m *MockIABSubscriptionV2) VerifySubscriptionV2(arg0 context.Context, arg1, arg2, arg3 string) (*androidpublisher.SubscriptionPurchaseV2, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifySubscriptionV2", arg0, arg1, arg2, arg3) + 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 { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySubscriptionV2", reflect.TypeOf((*MockIABSubscriptionV2)(nil).VerifySubscriptionV2), arg0, arg1, arg2, arg3) +} + // MockIABMonetization is a mock of IABMonetization interface. type MockIABMonetization struct { ctrl *gomock.Controller