syntax = "proto3";

package pb;

import "protoc-gen-openapiv2/options/annotations.proto";

import "account_info.proto";

option go_package = "github.com/itsscb/df/pb";

message UpdateAccountPrivacyRequest {
    option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
        json_schema: {
          title: "Update Account Info Privacy Consent";
          description: "Update the Privacy Consent of an AccountInfo";
          required: [
            "id",
            "privacy_accepted"
          ];
        };
        example: "{\"account_id\": \"1\", \"privacy_accepted\": true }"
    };
    uint64 account_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
        example: "1",
        format: "int64"
      }];
    bool privacy_accepted = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
        example: "false"
    }];
}

message UpdateAccountPrivacyResponse {
    option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
        json_schema: {
          title: "Update Account Info Privacy Response";
        };
    };
    AccountInfo account_info = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
        title: "Updated AccountInfo"
    }];
}