df/bff/proto/rpc_update_payment.proto
2023-10-09 02:26:20 +02:00

42 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
package pb;
import "protoc-gen-openapiv2/options/annotations.proto";
import "payment.proto";
option go_package = "github.com/itsscb/df/pb";
message UpdatePaymentRequest {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "Update Payment";
description: "Update an Payment";
required: [
"id"
];
};
example: "{\"id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\"}";
};
int64 id = 1;
optional string payment_category = 2;
optional string bankname = 3;
optional string IBAN = 4;
optional string BIC = 5;
optional string paypal_account = 6;
optional string paypal_id = 7;
optional string payment_system = 8;
optional string type = 9;
}
message UpdatePaymentResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "Updated Payment";
description: "Returns the updated Payment";
};
};
Payment payment = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
}];
}