syntax = "proto3"; option go_package = "git.coopgo.io/coopgo-platform/carpool-incentives/grpc/proto"; import "google/protobuf/struct.proto"; import "incentives.proto"; service CarpoolIncentives { // rpc XXXX(Request) returns (Response) {} rpc GetAvailableIncentives(GetAvailableIncentivesRequest) returns (GetAvailableIncentivesResponse) {} rpc GetInitiatedIncentives(GetInitiatedIncentivesRequest) returns (GetInitiatedIncentivesResponse) {} rpc GetDeclinedIncentives(GetDeclinedIncentivesRequest) returns (GetDeclinedIncentivesResponse) {} rpc SubscribeIncentive(SubscribeIncentiveRequest) returns (SubscribeIncentiveResponse) {} } message GetAvailableIncentivesRequest { string userid = 1; } message GetAvailableIncentivesResponse { repeated Incentive incentives = 2; } message GetInitiatedIncentivesRequest { string userid = 3; } message GetInitiatedIncentivesResponse { repeated Incentive incentives = 4; } message GetDeclinedIncentivesRequest { string userid = 3; } message GetDeclinedIncentivesResponse { repeated Incentive incentives = 4; } message SubscribeIncentiveRequest { string incentiveid = 5; string userid = 6; repeated string identity_verification_ids = 7; google.protobuf.Struct data = 8; bool declined = 9; } message SubscribeIncentiveResponse { string subscriptionid = 10; }