diff --git a/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go b/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go index 6ecb0d5a..220d6797 100644 --- a/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go +++ b/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go @@ -102,6 +102,21 @@ func (mr *MockCoordinatorClientMockRecorder) AclAddRecord(arg0, arg1, arg2 any) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AclAddRecord", reflect.TypeOf((*MockCoordinatorClient)(nil).AclAddRecord), arg0, arg1, arg2) } +// AclEventLog mocks base method. +func (m *MockCoordinatorClient) AclEventLog(arg0 context.Context, arg1, arg2 string, arg3 int) ([]*coordinatorproto.AclEventLogRecord, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AclEventLog", arg0, arg1, arg2, arg3) + ret0, _ := ret[0].([]*coordinatorproto.AclEventLogRecord) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AclEventLog indicates an expected call of AclEventLog. +func (mr *MockCoordinatorClientMockRecorder) AclEventLog(arg0, arg1, arg2, arg3 any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AclEventLog", reflect.TypeOf((*MockCoordinatorClient)(nil).AclEventLog), arg0, arg1, arg2, arg3) +} + // AclGetRecords mocks base method. func (m *MockCoordinatorClient) AclGetRecords(arg0 context.Context, arg1, arg2 string) ([]*consensusproto.RawRecordWithId, error) { m.ctrl.T.Helper() diff --git a/paymentservice/paymentserviceclient/paymentserviceclient.go b/paymentservice/paymentserviceclient/paymentserviceclient.go index 231f7f6b..8724efc3 100644 --- a/paymentservice/paymentserviceclient/paymentserviceclient.go +++ b/paymentservice/paymentserviceclient/paymentserviceclient.go @@ -31,6 +31,8 @@ type AnyPpClientService interface { FinalizeSubscription(ctx context.Context, in *pp.FinalizeSubscriptionRequestSigned) (out *pp.FinalizeSubscriptionResponse, err error) GetAllTiers(ctx context.Context, in *pp.GetTiersRequestSigned) (out *pp.GetTiersResponse, err error) VerifyAppStoreReceipt(ctx context.Context, in *pp.VerifyAppStoreReceiptRequestSigned) (out *pp.VerifyAppStoreReceiptResponse, err error) + GetRefCodeMy(ctx context.Context, in *pp.GetRefCodeMyRequestSigned) (out *pp.GetRefCodeMyResponse, err error) + SetRefCodeOfMyInviter(ctx context.Context, in *pp.SetRefCodeOfMyInviterRequestSigned) (out *pp.SetRefCodeOfMyInviterResponse, err error) app.Component } @@ -165,3 +167,23 @@ func (s *service) VerifyAppStoreReceipt(ctx context.Context, in *pp.VerifyAppSto }) return } + +func (s *service) GetRefCodeMy(ctx context.Context, in *pp.GetRefCodeMyRequestSigned) (out *pp.GetRefCodeMyResponse, err error) { + err = s.doClient(ctx, func(cl pp.DRPCAnyPaymentProcessingClient) error { + if out, err = cl.GetRefCodeMy(ctx, in); err != nil { + return rpcerr.Unwrap(err) + } + return nil + }) + return +} + +func (s *service) SetRefCodeOfMyInviter(ctx context.Context, in *pp.SetRefCodeOfMyInviterRequestSigned) (out *pp.SetRefCodeOfMyInviterResponse, err error) { + err = s.doClient(ctx, func(cl pp.DRPCAnyPaymentProcessingClient) error { + if out, err = cl.SetRefCodeOfMyInviter(ctx, in); err != nil { + return rpcerr.Unwrap(err) + } + return nil + }) + return +} diff --git a/paymentservice/paymentserviceproto/errors.go b/paymentservice/paymentserviceproto/errors.go index 00cb6d5d..2dde76eb 100644 --- a/paymentservice/paymentserviceproto/errors.go +++ b/paymentservice/paymentserviceproto/errors.go @@ -29,4 +29,6 @@ var ( ErrAppleInvalidReceipt = errGroup.Register(errors.New("invalid AppStore receipt"), uint64(ErrorCodes_AppleInvalidReceipt)) ErrApplePurchaseRegistration = errGroup.Register(errors.New("error on purchase registration"), uint64(ErrorCodes_ApplePurchaseRegistration)) ErrAppleSubscriptionRenew = errGroup.Register(errors.New("error on subscription renew"), uint64(ErrorCodes_AppleSubscriptionRenew)) + ErrRefCodeAlreadySet = errGroup.Register(errors.New("ref code was already set by you"), uint64(ErrorCodes_RefCodeAlreadySet)) + ErrRefCodeInvalid = errGroup.Register(errors.New("ref code is invalid"), uint64(ErrorCodes_RefCodeInvalid)) ) diff --git a/paymentservice/paymentserviceproto/paymentservice.pb.go b/paymentservice/paymentserviceproto/paymentservice.pb.go index dec2b86b..3e9fb750 100644 --- a/paymentservice/paymentserviceproto/paymentservice.pb.go +++ b/paymentservice/paymentserviceproto/paymentservice.pb.go @@ -173,6 +173,8 @@ const ( ErrorCodes_AppleInvalidReceipt ErrorCodes = 18 ErrorCodes_ApplePurchaseRegistration ErrorCodes = 19 ErrorCodes_AppleSubscriptionRenew ErrorCodes = 20 + ErrorCodes_RefCodeAlreadySet ErrorCodes = 21 + ErrorCodes_RefCodeInvalid ErrorCodes = 22 ErrorCodes_ErrorOffset ErrorCodes = 600 ) @@ -198,6 +200,8 @@ var ErrorCodes_name = map[int32]string{ 18: "AppleInvalidReceipt", 19: "ApplePurchaseRegistration", 20: "AppleSubscriptionRenew", + 21: "RefCodeAlreadySet", + 22: "RefCodeInvalid", 600: "ErrorOffset", } @@ -223,6 +227,8 @@ var ErrorCodes_value = map[string]int32{ "AppleInvalidReceipt": 18, "ApplePurchaseRegistration": 19, "AppleSubscriptionRenew": 20, + "RefCodeAlreadySet": 21, + "RefCodeInvalid": 22, "ErrorOffset": 600, } @@ -1556,6 +1562,303 @@ func (m *VerifyAppStoreReceiptResponse) XXX_DiscardUnknown() { var xxx_messageInfo_VerifyAppStoreReceiptResponse proto.InternalMessageInfo +type GetRefCodeMyRequest struct { + // in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65" + // you can get it with Account().SignKey.GetPublic().Account() + OwnerAnyId string `protobuf:"bytes,1,opt,name=ownerAnyId,proto3" json:"ownerAnyId,omitempty"` +} + +func (m *GetRefCodeMyRequest) Reset() { *m = GetRefCodeMyRequest{} } +func (m *GetRefCodeMyRequest) String() string { return proto.CompactTextString(m) } +func (*GetRefCodeMyRequest) ProtoMessage() {} +func (*GetRefCodeMyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4feb29dcc5ba50f6, []int{23} +} +func (m *GetRefCodeMyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRefCodeMyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRefCodeMyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetRefCodeMyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRefCodeMyRequest.Merge(m, src) +} +func (m *GetRefCodeMyRequest) XXX_Size() int { + return m.Size() +} +func (m *GetRefCodeMyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRefCodeMyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRefCodeMyRequest proto.InternalMessageInfo + +func (m *GetRefCodeMyRequest) GetOwnerAnyId() string { + if m != nil { + return m.OwnerAnyId + } + return "" +} + +type GetRefCodeMyRequestSigned struct { + // GetRefCodeMyRequest + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + // this is payload signed with payload.ownerAnyID + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *GetRefCodeMyRequestSigned) Reset() { *m = GetRefCodeMyRequestSigned{} } +func (m *GetRefCodeMyRequestSigned) String() string { return proto.CompactTextString(m) } +func (*GetRefCodeMyRequestSigned) ProtoMessage() {} +func (*GetRefCodeMyRequestSigned) Descriptor() ([]byte, []int) { + return fileDescriptor_4feb29dcc5ba50f6, []int{24} +} +func (m *GetRefCodeMyRequestSigned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRefCodeMyRequestSigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRefCodeMyRequestSigned.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetRefCodeMyRequestSigned) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRefCodeMyRequestSigned.Merge(m, src) +} +func (m *GetRefCodeMyRequestSigned) XXX_Size() int { + return m.Size() +} +func (m *GetRefCodeMyRequestSigned) XXX_DiscardUnknown() { + xxx_messageInfo_GetRefCodeMyRequestSigned.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRefCodeMyRequestSigned proto.InternalMessageInfo + +func (m *GetRefCodeMyRequestSigned) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *GetRefCodeMyRequestSigned) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +type GetRefCodeMyResponse struct { + RefCode string `protobuf:"bytes,1,opt,name=refCode,proto3" json:"refCode,omitempty"` + // includes refCode + RefLink string `protobuf:"bytes,2,opt,name=refLink,proto3" json:"refLink,omitempty"` +} + +func (m *GetRefCodeMyResponse) Reset() { *m = GetRefCodeMyResponse{} } +func (m *GetRefCodeMyResponse) String() string { return proto.CompactTextString(m) } +func (*GetRefCodeMyResponse) ProtoMessage() {} +func (*GetRefCodeMyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4feb29dcc5ba50f6, []int{25} +} +func (m *GetRefCodeMyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetRefCodeMyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetRefCodeMyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetRefCodeMyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRefCodeMyResponse.Merge(m, src) +} +func (m *GetRefCodeMyResponse) XXX_Size() int { + return m.Size() +} +func (m *GetRefCodeMyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetRefCodeMyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRefCodeMyResponse proto.InternalMessageInfo + +func (m *GetRefCodeMyResponse) GetRefCode() string { + if m != nil { + return m.RefCode + } + return "" +} + +func (m *GetRefCodeMyResponse) GetRefLink() string { + if m != nil { + return m.RefLink + } + return "" +} + +type SetRefCodeOfMyInviterRequest struct { + // in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65" + // you can get it with Account().SignKey.GetPublic().Account() + OwnerAnyId string `protobuf:"bytes,1,opt,name=ownerAnyId,proto3" json:"ownerAnyId,omitempty"` + RefCode string `protobuf:"bytes,2,opt,name=refCode,proto3" json:"refCode,omitempty"` +} + +func (m *SetRefCodeOfMyInviterRequest) Reset() { *m = SetRefCodeOfMyInviterRequest{} } +func (m *SetRefCodeOfMyInviterRequest) String() string { return proto.CompactTextString(m) } +func (*SetRefCodeOfMyInviterRequest) ProtoMessage() {} +func (*SetRefCodeOfMyInviterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4feb29dcc5ba50f6, []int{26} +} +func (m *SetRefCodeOfMyInviterRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetRefCodeOfMyInviterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetRefCodeOfMyInviterRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetRefCodeOfMyInviterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetRefCodeOfMyInviterRequest.Merge(m, src) +} +func (m *SetRefCodeOfMyInviterRequest) XXX_Size() int { + return m.Size() +} +func (m *SetRefCodeOfMyInviterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetRefCodeOfMyInviterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetRefCodeOfMyInviterRequest proto.InternalMessageInfo + +func (m *SetRefCodeOfMyInviterRequest) GetOwnerAnyId() string { + if m != nil { + return m.OwnerAnyId + } + return "" +} + +func (m *SetRefCodeOfMyInviterRequest) GetRefCode() string { + if m != nil { + return m.RefCode + } + return "" +} + +type SetRefCodeOfMyInviterRequestSigned struct { + // SetRefCodeOfMyInviterRequest + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + // this is payload signed with payload.ownerAnyID + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *SetRefCodeOfMyInviterRequestSigned) Reset() { *m = SetRefCodeOfMyInviterRequestSigned{} } +func (m *SetRefCodeOfMyInviterRequestSigned) String() string { return proto.CompactTextString(m) } +func (*SetRefCodeOfMyInviterRequestSigned) ProtoMessage() {} +func (*SetRefCodeOfMyInviterRequestSigned) Descriptor() ([]byte, []int) { + return fileDescriptor_4feb29dcc5ba50f6, []int{27} +} +func (m *SetRefCodeOfMyInviterRequestSigned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetRefCodeOfMyInviterRequestSigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetRefCodeOfMyInviterRequestSigned.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetRefCodeOfMyInviterRequestSigned) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetRefCodeOfMyInviterRequestSigned.Merge(m, src) +} +func (m *SetRefCodeOfMyInviterRequestSigned) XXX_Size() int { + return m.Size() +} +func (m *SetRefCodeOfMyInviterRequestSigned) XXX_DiscardUnknown() { + xxx_messageInfo_SetRefCodeOfMyInviterRequestSigned.DiscardUnknown(m) +} + +var xxx_messageInfo_SetRefCodeOfMyInviterRequestSigned proto.InternalMessageInfo + +func (m *SetRefCodeOfMyInviterRequestSigned) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *SetRefCodeOfMyInviterRequestSigned) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +type SetRefCodeOfMyInviterResponse struct { +} + +func (m *SetRefCodeOfMyInviterResponse) Reset() { *m = SetRefCodeOfMyInviterResponse{} } +func (m *SetRefCodeOfMyInviterResponse) String() string { return proto.CompactTextString(m) } +func (*SetRefCodeOfMyInviterResponse) ProtoMessage() {} +func (*SetRefCodeOfMyInviterResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4feb29dcc5ba50f6, []int{28} +} +func (m *SetRefCodeOfMyInviterResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SetRefCodeOfMyInviterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetRefCodeOfMyInviterResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SetRefCodeOfMyInviterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetRefCodeOfMyInviterResponse.Merge(m, src) +} +func (m *SetRefCodeOfMyInviterResponse) XXX_Size() int { + return m.Size() +} +func (m *SetRefCodeOfMyInviterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetRefCodeOfMyInviterResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SetRefCodeOfMyInviterResponse proto.InternalMessageInfo + func init() { proto.RegisterEnum("SubscriptionTier", SubscriptionTier_name, SubscriptionTier_value) proto.RegisterEnum("SubscriptionStatus", SubscriptionStatus_name, SubscriptionStatus_value) @@ -1585,6 +1888,12 @@ func init() { proto.RegisterType((*VerifyAppStoreReceiptRequest)(nil), "VerifyAppStoreReceiptRequest") proto.RegisterType((*VerifyAppStoreReceiptRequestSigned)(nil), "VerifyAppStoreReceiptRequestSigned") proto.RegisterType((*VerifyAppStoreReceiptResponse)(nil), "VerifyAppStoreReceiptResponse") + proto.RegisterType((*GetRefCodeMyRequest)(nil), "GetRefCodeMyRequest") + proto.RegisterType((*GetRefCodeMyRequestSigned)(nil), "GetRefCodeMyRequestSigned") + proto.RegisterType((*GetRefCodeMyResponse)(nil), "GetRefCodeMyResponse") + proto.RegisterType((*SetRefCodeOfMyInviterRequest)(nil), "SetRefCodeOfMyInviterRequest") + proto.RegisterType((*SetRefCodeOfMyInviterRequestSigned)(nil), "SetRefCodeOfMyInviterRequestSigned") + proto.RegisterType((*SetRefCodeOfMyInviterResponse)(nil), "SetRefCodeOfMyInviterResponse") } func init() { @@ -1592,101 +1901,109 @@ func init() { } var fileDescriptor_4feb29dcc5ba50f6 = []byte{ - // 1495 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x6f, 0x1b, 0x47, - 0x12, 0xe6, 0xf0, 0x25, 0xb1, 0xf4, 0x6a, 0x35, 0x29, 0x79, 0x44, 0x4b, 0x5c, 0x79, 0xf6, 0x25, - 0x68, 0xb1, 0x63, 0xac, 0xd7, 0x87, 0xc5, 0x62, 0xb1, 0x08, 0x25, 0x51, 0x8a, 0x00, 0x47, 0x11, - 0x48, 0xda, 0x4e, 0xe2, 0x20, 0xc9, 0x88, 0x53, 0xa2, 0x26, 0x1e, 0x75, 0x4f, 0x7a, 0x9a, 0x92, - 0x99, 0x5f, 0x90, 0xdc, 0x02, 0xe4, 0x90, 0x1f, 0x94, 0x4b, 0x8e, 0xbe, 0x04, 0xf0, 0x31, 0xb1, - 0xff, 0x40, 0x8e, 0x39, 0x06, 0xdd, 0x33, 0x14, 0x87, 0xe2, 0x88, 0x52, 0x2c, 0xe4, 0x62, 0x4d, - 0x7f, 0xdd, 0x55, 0x5d, 0xf5, 0xd5, 0xa3, 0x8b, 0x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ec, 0x33, - 0x3a, 0xfa, 0x0b, 0x30, 0xa3, 0xfe, 0x3e, 0x66, 0xcf, 0x19, 0x3f, 0x67, 0x24, 0x43, 0x09, 0xcc, - 0x2a, 0xa0, 0xf1, 0x22, 0xf0, 0xb9, 0x40, 0x41, 0x0c, 0x6a, 0x42, 0x45, 0x21, 0x5b, 0x3d, 0xcf, - 0x77, 0x51, 0xfc, 0xeb, 0x29, 0xe2, 0xf3, 0x76, 0xa3, 0xd5, 0x26, 0x59, 0x5a, 0x85, 0x65, 0xb5, - 0xb3, 0xcd, 0xb7, 0x05, 0x3a, 0x92, 0x27, 0xf6, 0x72, 0xb4, 0x02, 0x24, 0x29, 0xf5, 0x21, 0x3a, - 0x82, 0xe4, 0xe9, 0x32, 0xd0, 0x51, 0x09, 0x8d, 0x17, 0x54, 0xcc, 0x12, 0xa7, 0x0f, 0xfd, 0x5e, - 0x48, 0x8a, 0x03, 0xb0, 0xce, 0xfa, 0xb2, 0x1f, 0x60, 0x1b, 0x9d, 0x53, 0x32, 0xb5, 0x19, 0x02, - 0x1d, 0x1f, 0xec, 0x54, 0x1c, 0xa3, 0xaf, 0xa1, 0x23, 0x17, 0xd0, 0x21, 0x32, 0xd7, 0x63, 0x5d, - 0x62, 0x28, 0xdf, 0x22, 0xa8, 0xde, 0x91, 0xde, 0x19, 0x92, 0x2c, 0xfd, 0x2b, 0xdc, 0x1b, 0x39, - 0xa4, 0x42, 0xe1, 0x09, 0x0c, 0xe3, 0x57, 0x49, 0x37, 0x28, 0x92, 0xdb, 0xfc, 0xce, 0x80, 0xb9, - 0x91, 0xc9, 0x83, 0xce, 0x03, 0x44, 0x5f, 0xdb, 0x8e, 0x70, 0x23, 0xda, 0xe2, 0xb5, 0xe8, 0x07, - 0x92, 0x13, 0x83, 0x52, 0x98, 0x8f, 0x90, 0x7a, 0x10, 0xf8, 0x78, 0xe8, 0xf4, 0x49, 0x56, 0x79, - 0x14, 0x61, 0x7b, 0x9c, 0x77, 0x23, 0x50, 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0x45, 0xe0, - 0x09, 0x74, 0x09, 0x51, 0x26, 0x0c, 0xaf, 0x53, 0x0c, 0x93, 0x45, 0x7a, 0x07, 0xca, 0x71, 0xa0, - 0xce, 0xa2, 0xfe, 0xa6, 0xab, 0x8c, 0x50, 0xba, 0x06, 0x2b, 0x51, 0xa8, 0x7b, 0xa2, 0x73, 0xe2, - 0x84, 0xd8, 0xc4, 0xae, 0x17, 0x4a, 0x11, 0xe5, 0x50, 0x59, 0x15, 0x8b, 0xde, 0x1e, 0x1d, 0x74, - 0x18, 0x9e, 0x93, 0x0a, 0x25, 0x30, 0xa3, 0x83, 0xf8, 0xfe, 0xf1, 0x71, 0x88, 0x92, 0xbc, 0xca, - 0x3f, 0xf8, 0xb5, 0x00, 0x95, 0x3a, 0xeb, 0xc7, 0xf4, 0x1e, 0x0a, 0xae, 0xde, 0x0e, 0x8f, 0x75, - 0x69, 0x13, 0x96, 0x2e, 0xcd, 0x0b, 0x71, 0x09, 0xac, 0xd9, 0x93, 0x7e, 0x87, 0x55, 0x4d, 0xfb, - 0x8a, 0x5f, 0x53, 0x56, 0x86, 0xfe, 0x17, 0x66, 0x12, 0x1d, 0x9b, 0x96, 0xed, 0xf1, 0xc7, 0xa4, - 0x5a, 0x49, 0x6b, 0xea, 0x56, 0x86, 0x3e, 0x82, 0x85, 0x4b, 0x13, 0x2d, 0x5d, 0xb3, 0x27, 0xcd, - 0xce, 0x55, 0xd3, 0xbe, 0x62, 0x04, 0xb6, 0x32, 0xf4, 0x19, 0x54, 0xd2, 0x06, 0x42, 0x6a, 0xd9, - 0xd7, 0xce, 0x89, 0xd5, 0x35, 0x7b, 0xe2, 0xac, 0x99, 0xa1, 0x9f, 0xc3, 0xca, 0x95, 0xa3, 0x16, - 0xfd, 0xbb, 0x7d, 0xb3, 0x41, 0xaf, 0x6a, 0xd9, 0xd7, 0xce, 0x6b, 0x91, 0x23, 0x69, 0x73, 0x0e, - 0xd5, 0xd2, 0x93, 0xc7, 0x9f, 0xea, 0x9a, 0x3d, 0x71, 0x84, 0xca, 0xd0, 0x77, 0x60, 0x26, 0x31, - 0x42, 0xd0, 0x15, 0xfb, 0xaa, 0x81, 0xa2, 0x5a, 0xb1, 0x53, 0x86, 0x93, 0x28, 0xe2, 0x7b, 0x28, - 0xeb, 0xbe, 0xaf, 0x2a, 0x3a, 0xa4, 0xcb, 0xea, 0x46, 0xfd, 0x39, 0x2a, 0xbe, 0x98, 0xc0, 0x2f, - 0x64, 0x3f, 0x81, 0xa5, 0xd4, 0x87, 0x86, 0xfe, 0xd9, 0xbe, 0xfe, 0x79, 0xab, 0xd6, 0xec, 0x89, - 0xaf, 0x94, 0x95, 0xd9, 0xfa, 0xdf, 0x0f, 0xaf, 0x6b, 0xc6, 0xcb, 0xd7, 0x35, 0xe3, 0xa7, 0xd7, - 0x35, 0xe3, 0x9b, 0x37, 0xb5, 0xcc, 0xcb, 0x37, 0xb5, 0xcc, 0xab, 0x37, 0xb5, 0xcc, 0x47, 0xd6, - 0xf5, 0xff, 0xd7, 0x71, 0x54, 0xd4, 0x7f, 0xfe, 0xfd, 0x5b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf3, - 0xa2, 0x9f, 0x51, 0x58, 0x11, 0x00, 0x00, + // 1624 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x72, 0x23, 0x49, + 0x11, 0x56, 0xcb, 0xf2, 0x5f, 0xfa, 0xaf, 0xa6, 0x24, 0x7b, 0x7a, 0xb4, 0xb6, 0xf0, 0xf4, 0xf2, + 0x33, 0x61, 0x82, 0x9e, 0x60, 0x59, 0x22, 0x08, 0x82, 0x20, 0x90, 0x3d, 0xb6, 0x31, 0x31, 0xe3, + 0x75, 0xb4, 0x34, 0x33, 0xc0, 0x12, 0x40, 0x5b, 0x9d, 0x96, 0x9b, 0x69, 0x57, 0x35, 0xd5, 0x25, + 0x7b, 0x9a, 0x13, 0x47, 0xb8, 0x11, 0xc1, 0x81, 0x13, 0x4f, 0xc3, 0x85, 0xe3, 0x1e, 0xf7, 0x08, + 0x33, 0x2f, 0xc0, 0x23, 0x10, 0x55, 0xd5, 0x92, 0x5a, 0x56, 0x4b, 0xf6, 0x8e, 0x62, 0x2f, 0x56, + 0xd7, 0x57, 0x55, 0x59, 0x99, 0x5f, 0x66, 0x65, 0x66, 0x19, 0x7e, 0x1a, 0xfb, 0xe9, 0x15, 0x32, + 0x99, 0xa0, 0xb8, 0x0e, 0x3b, 0xf8, 0x74, 0x74, 0x18, 0x0b, 0x2e, 0xf9, 0x53, 0xfd, 0x37, 0xb9, + 0x35, 0xe5, 0x6a, 0xb4, 0xfe, 0xec, 0x43, 0xf7, 0xff, 0x4e, 0x86, 0x28, 0x12, 0x23, 0xc5, 0xf9, + 0x11, 0x6c, 0x1d, 0xa3, 0x6c, 0xf5, 0xce, 0x93, 0x8e, 0x08, 0x63, 0x19, 0x72, 0xe6, 0xe1, 0x1f, + 0x7b, 0x98, 0x48, 0xda, 0x00, 0xe0, 0x37, 0x0c, 0x45, 0x93, 0xa5, 0x27, 0xcf, 0x6c, 0x6b, 0xd7, + 0x7a, 0xb2, 0xec, 0xe5, 0x10, 0xe7, 0x15, 0x6c, 0x17, 0xef, 0x6c, 0x85, 0x5d, 0x86, 0x01, 0xb5, + 0x61, 0x31, 0xf6, 0xd3, 0x88, 0xfb, 0x81, 0xde, 0xbc, 0xea, 0xf5, 0x87, 0x74, 0x1b, 0x96, 0x93, + 0xb0, 0xcb, 0x7c, 0xd9, 0x13, 0x68, 0x97, 0xf5, 0xdc, 0x10, 0x70, 0xfe, 0x57, 0x86, 0x87, 0x63, + 0x82, 0x93, 0x98, 0xb3, 0x04, 0x29, 0x85, 0x8a, 0x52, 0x5e, 0x0b, 0x5c, 0xf3, 0xf4, 0x37, 0xfd, + 0x2e, 0x2c, 0x24, 0xd2, 0x97, 0xbd, 0x44, 0x8b, 0x5a, 0xff, 0x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0x13, 0x41, 0x3f, 0x76, 0xef, 0x6e, 0x5d, 0xea, 0x0d, 0x77, + 0x7a, 0x07, 0x52, 0xa2, 0x07, 0xb0, 0x9a, 0xaf, 0xfb, 0xb4, 0xee, 0x4e, 0xec, 0x2d, 0xea, 0x9b, + 0x6e, 0x51, 0x8b, 0x60, 0x94, 0x2c, 0x2c, 0x9c, 0xf4, 0x63, 0xf7, 0xee, 0x72, 0x5d, 0x6f, 0xb8, + 0x53, 0xab, 0xae, 0x53, 0xda, 0xff, 0xc9, 0xbf, 0xdf, 0x35, 0xac, 0x2f, 0xde, 0x35, 0xac, 0xff, + 0xbc, 0x6b, 0x58, 0x7f, 0x7b, 0xdf, 0x28, 0x7d, 0xf1, 0xbe, 0x51, 0xfa, 0xf2, 0x7d, 0xa3, 0xf4, + 0x6b, 0xe7, 0xee, 0x7f, 0xb6, 0x9d, 0x2f, 0xe8, 0x9f, 0x1f, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0xff, + 0x0a, 0x97, 0xb0, 0xad, 0xd9, 0x13, 0x00, 0x00, } func (m *GetSubscriptionRequest) Marshal() (dAtA []byte, err error) { @@ -2562,50 +2879,251 @@ func (m *VerifyAppStoreReceiptResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func encodeVarintPaymentservice(dAtA []byte, offset int, v uint64) int { - offset -= sovPaymentservice(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *GetRefCodeMyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *GetSubscriptionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.OwnerAnyID) - if l > 0 { - n += 1 + l + sovPaymentservice(uint64(l)) - } - return n + +func (m *GetRefCodeMyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetSubscriptionRequestSigned) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetRefCodeMyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovPaymentservice(uint64(l)) - } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovPaymentservice(uint64(l)) + if len(m.OwnerAnyId) > 0 { + i -= len(m.OwnerAnyId) + copy(dAtA[i:], m.OwnerAnyId) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.OwnerAnyId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetSubscriptionResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetRefCodeMyRequestSigned) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetRefCodeMyRequestSigned) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRefCodeMyRequestSigned) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetRefCodeMyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetRefCodeMyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetRefCodeMyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RefLink) > 0 { + i -= len(m.RefLink) + copy(dAtA[i:], m.RefLink) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.RefLink))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefCode) > 0 { + i -= len(m.RefCode) + copy(dAtA[i:], m.RefCode) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.RefCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetRefCodeOfMyInviterRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetRefCodeOfMyInviterRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetRefCodeOfMyInviterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RefCode) > 0 { + i -= len(m.RefCode) + copy(dAtA[i:], m.RefCode) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.RefCode))) + i-- + dAtA[i] = 0x12 + } + if len(m.OwnerAnyId) > 0 { + i -= len(m.OwnerAnyId) + copy(dAtA[i:], m.OwnerAnyId) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.OwnerAnyId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetRefCodeOfMyInviterRequestSigned) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetRefCodeOfMyInviterRequestSigned) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetRefCodeOfMyInviterRequestSigned) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintPaymentservice(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SetRefCodeOfMyInviterResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SetRefCodeOfMyInviterResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetRefCodeOfMyInviterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintPaymentservice(dAtA []byte, offset int, v uint64) int { + offset -= sovPaymentservice(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GetSubscriptionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OwnerAnyID) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *GetSubscriptionRequestSigned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *GetSubscriptionResponse) Size() (n int) { + if m == nil { + return 0 } var l int _ = l @@ -2967,6 +3485,96 @@ func (m *VerifyAppStoreReceiptResponse) Size() (n int) { return n } +func (m *GetRefCodeMyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OwnerAnyId) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *GetRefCodeMyRequestSigned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *GetRefCodeMyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefCode) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + l = len(m.RefLink) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *SetRefCodeOfMyInviterRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OwnerAnyId) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + l = len(m.RefCode) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *SetRefCodeOfMyInviterRequestSigned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovPaymentservice(uint64(l)) + } + return n +} + +func (m *SetRefCodeOfMyInviterResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovPaymentservice(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5586,6 +6194,602 @@ func (m *VerifyAppStoreReceiptResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *GetRefCodeMyRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRefCodeMyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRefCodeMyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAnyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerAnyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPaymentservice(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPaymentservice + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRefCodeMyRequestSigned) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRefCodeMyRequestSigned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRefCodeMyRequestSigned: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPaymentservice(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPaymentservice + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRefCodeMyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRefCodeMyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRefCodeMyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefLink", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefLink = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPaymentservice(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPaymentservice + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetRefCodeOfMyInviterRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetRefCodeOfMyInviterRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetRefCodeOfMyInviterRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAnyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerAnyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPaymentservice(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPaymentservice + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetRefCodeOfMyInviterRequestSigned) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetRefCodeOfMyInviterRequestSigned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetRefCodeOfMyInviterRequestSigned: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthPaymentservice + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthPaymentservice + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPaymentservice(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPaymentservice + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SetRefCodeOfMyInviterResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPaymentservice + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SetRefCodeOfMyInviterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetRefCodeOfMyInviterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipPaymentservice(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPaymentservice + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipPaymentservice(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/paymentservice/paymentserviceproto/paymentservice_drpc.pb.go b/paymentservice/paymentserviceproto/paymentservice_drpc.pb.go index 253b1026..293a46ac 100644 --- a/paymentservice/paymentserviceproto/paymentservice_drpc.pb.go +++ b/paymentservice/paymentserviceproto/paymentservice_drpc.pb.go @@ -49,6 +49,8 @@ type DRPCAnyPaymentProcessingClient interface { VerifyEmail(ctx context.Context, in *VerifyEmailRequestSigned) (*VerifyEmailResponse, error) GetAllTiers(ctx context.Context, in *GetTiersRequestSigned) (*GetTiersResponse, error) VerifyAppStoreReceipt(ctx context.Context, in *VerifyAppStoreReceiptRequestSigned) (*VerifyAppStoreReceiptResponse, error) + GetRefCodeMy(ctx context.Context, in *GetRefCodeMyRequestSigned) (*GetRefCodeMyResponse, error) + SetRefCodeOfMyInviter(ctx context.Context, in *SetRefCodeOfMyInviterRequestSigned) (*SetRefCodeOfMyInviterResponse, error) } type drpcAnyPaymentProcessingClient struct { @@ -142,6 +144,24 @@ func (c *drpcAnyPaymentProcessingClient) VerifyAppStoreReceipt(ctx context.Conte return out, nil } +func (c *drpcAnyPaymentProcessingClient) GetRefCodeMy(ctx context.Context, in *GetRefCodeMyRequestSigned) (*GetRefCodeMyResponse, error) { + out := new(GetRefCodeMyResponse) + err := c.cc.Invoke(ctx, "/AnyPaymentProcessing/GetRefCodeMy", drpcEncoding_File_paymentservice_paymentserviceproto_protos_paymentservice_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcAnyPaymentProcessingClient) SetRefCodeOfMyInviter(ctx context.Context, in *SetRefCodeOfMyInviterRequestSigned) (*SetRefCodeOfMyInviterResponse, error) { + out := new(SetRefCodeOfMyInviterResponse) + err := c.cc.Invoke(ctx, "/AnyPaymentProcessing/SetRefCodeOfMyInviter", drpcEncoding_File_paymentservice_paymentserviceproto_protos_paymentservice_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + type DRPCAnyPaymentProcessingServer interface { GetSubscriptionStatus(context.Context, *GetSubscriptionRequestSigned) (*GetSubscriptionResponse, error) IsNameValid(context.Context, *IsNameValidRequest) (*IsNameValidResponse, error) @@ -152,6 +172,8 @@ type DRPCAnyPaymentProcessingServer interface { VerifyEmail(context.Context, *VerifyEmailRequestSigned) (*VerifyEmailResponse, error) GetAllTiers(context.Context, *GetTiersRequestSigned) (*GetTiersResponse, error) VerifyAppStoreReceipt(context.Context, *VerifyAppStoreReceiptRequestSigned) (*VerifyAppStoreReceiptResponse, error) + GetRefCodeMy(context.Context, *GetRefCodeMyRequestSigned) (*GetRefCodeMyResponse, error) + SetRefCodeOfMyInviter(context.Context, *SetRefCodeOfMyInviterRequestSigned) (*SetRefCodeOfMyInviterResponse, error) } type DRPCAnyPaymentProcessingUnimplementedServer struct{} @@ -192,9 +214,17 @@ func (s *DRPCAnyPaymentProcessingUnimplementedServer) VerifyAppStoreReceipt(cont return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) } +func (s *DRPCAnyPaymentProcessingUnimplementedServer) GetRefCodeMy(context.Context, *GetRefCodeMyRequestSigned) (*GetRefCodeMyResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) +} + +func (s *DRPCAnyPaymentProcessingUnimplementedServer) SetRefCodeOfMyInviter(context.Context, *SetRefCodeOfMyInviterRequestSigned) (*SetRefCodeOfMyInviterResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) +} + type DRPCAnyPaymentProcessingDescription struct{} -func (DRPCAnyPaymentProcessingDescription) NumMethods() int { return 9 } +func (DRPCAnyPaymentProcessingDescription) NumMethods() int { return 11 } func (DRPCAnyPaymentProcessingDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { switch n { @@ -279,6 +309,24 @@ func (DRPCAnyPaymentProcessingDescription) Method(n int) (string, drpc.Encoding, in1.(*VerifyAppStoreReceiptRequestSigned), ) }, DRPCAnyPaymentProcessingServer.VerifyAppStoreReceipt, true + case 9: + return "/AnyPaymentProcessing/GetRefCodeMy", drpcEncoding_File_paymentservice_paymentserviceproto_protos_paymentservice_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCAnyPaymentProcessingServer). + GetRefCodeMy( + ctx, + in1.(*GetRefCodeMyRequestSigned), + ) + }, DRPCAnyPaymentProcessingServer.GetRefCodeMy, true + case 10: + return "/AnyPaymentProcessing/SetRefCodeOfMyInviter", drpcEncoding_File_paymentservice_paymentserviceproto_protos_paymentservice_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCAnyPaymentProcessingServer). + SetRefCodeOfMyInviter( + ctx, + in1.(*SetRefCodeOfMyInviterRequestSigned), + ) + }, DRPCAnyPaymentProcessingServer.SetRefCodeOfMyInviter, true default: return "", nil, nil, nil, false } @@ -431,3 +479,35 @@ func (x *drpcAnyPaymentProcessing_VerifyAppStoreReceiptStream) SendAndClose(m *V } return x.CloseSend() } + +type DRPCAnyPaymentProcessing_GetRefCodeMyStream interface { + drpc.Stream + SendAndClose(*GetRefCodeMyResponse) error +} + +type drpcAnyPaymentProcessing_GetRefCodeMyStream struct { + drpc.Stream +} + +func (x *drpcAnyPaymentProcessing_GetRefCodeMyStream) SendAndClose(m *GetRefCodeMyResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_paymentservice_paymentserviceproto_protos_paymentservice_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCAnyPaymentProcessing_SetRefCodeOfMyInviterStream interface { + drpc.Stream + SendAndClose(*SetRefCodeOfMyInviterResponse) error +} + +type drpcAnyPaymentProcessing_SetRefCodeOfMyInviterStream struct { + drpc.Stream +} + +func (x *drpcAnyPaymentProcessing_SetRefCodeOfMyInviterStream) SendAndClose(m *SetRefCodeOfMyInviterResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_paymentservice_paymentserviceproto_protos_paymentservice_proto{}); err != nil { + return err + } + return x.CloseSend() +} diff --git a/paymentservice/paymentserviceproto/protos/paymentservice.proto b/paymentservice/paymentserviceproto/protos/paymentservice.proto index c2708e0c..bcdec036 100644 --- a/paymentservice/paymentserviceproto/protos/paymentservice.proto +++ b/paymentservice/paymentserviceproto/protos/paymentservice.proto @@ -233,6 +233,45 @@ message VerifyAppStoreReceiptResponse { } +message GetRefCodeMyRequest { + // in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65" + // you can get it with Account().SignKey.GetPublic().Account() + string ownerAnyId = 1; +} + +message GetRefCodeMyRequestSigned { + // GetRefCodeMyRequest + bytes payload = 1; + // this is payload signed with payload.ownerAnyID + bytes signature = 2; +} + +message GetRefCodeMyResponse { + string refCode = 1; + + // includes refCode + string refLink = 2; +} + +message SetRefCodeOfMyInviterRequest { + // in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65" + // you can get it with Account().SignKey.GetPublic().Account() + string ownerAnyId = 1; + + string refCode = 2; +} + +message SetRefCodeOfMyInviterRequestSigned { + // SetRefCodeOfMyInviterRequest + bytes payload = 1; + // this is payload signed with payload.ownerAnyID + bytes signature = 2; +} + +message SetRefCodeOfMyInviterResponse { + +} + enum ErrorCodes { Unexpected = 0; @@ -260,6 +299,9 @@ enum ErrorCodes { ApplePurchaseRegistration = 19; AppleSubscriptionRenew = 20; + RefCodeAlreadySet = 21; + RefCodeInvalid = 22; + ErrorOffset = 600; } @@ -306,4 +348,11 @@ service AnyPaymentProcessing { // Verify purchase in case subscription was bought via AppStore // Incoming receipt contains all information to register purchase on Payment Node rpc VerifyAppStoreReceipt(VerifyAppStoreReceiptRequestSigned) returns (VerifyAppStoreReceiptResponse) {} + + // To send someone your ref.code + rpc GetRefCodeMy(GetRefCodeMyRequestSigned) returns (GetRefCodeMyResponse) {} + + // If someone invited you -> then you will need to set the ref code of inviter + // Can be done only once and can not be changed + rpc SetRefCodeOfMyInviter(SetRefCodeOfMyInviterRequestSigned) returns (SetRefCodeOfMyInviterResponse) {} }