neq quotation definition + priced_at field

This commit is contained in:
Stephan D
2026-02-13 15:35:17 +01:00
parent da1636014b
commit 52c4c046c9
85 changed files with 1180 additions and 162 deletions

View File

@@ -36,7 +36,13 @@ PROTOC_ARGS=""
if [ -n "${PROTOC_INCLUDE}" ]; then
PROTOC_ARGS="-I=${PROTOC_INCLUDE}"
fi
PROTOC_ARGS="${PROTOC_ARGS} -I=${PROTO_DIR}"
PROTOC_ARGS="${PROTOC_ARGS} -I=.. -I=${PROTO_DIR}"
PROTOC_ARGS_MESSAGING=""
if [ -n "${PROTOC_INCLUDE}" ]; then
PROTOC_ARGS_MESSAGING="-I=${PROTOC_INCLUDE}"
fi
PROTOC_ARGS_MESSAGING="${PROTOC_ARGS_MESSAGING} -I=${PROTO_DIR}"
generate_go() {
# shellcheck disable=SC2086
@@ -47,6 +53,15 @@ generate_go() {
"$@"
}
generate_go_messaging() {
# shellcheck disable=SC2086
"${PROTOC_BIN}" \
${PROTOC_ARGS_MESSAGING} \
--go_out="${GO_OUT_DIR}" \
--go_opt=module="${GO_MODULE}" \
"$@"
}
generate_go_with_grpc() {
# shellcheck disable=SC2086
"${PROTOC_BIN}" \
@@ -76,15 +91,15 @@ list_protos() {
cd "${API_DIR}"
messaging_files="$(list_protos "${PROTO_DIR}" 1)"
messaging_files="$(find "${PROTO_DIR}" -maxdepth 1 -type f -name '*.proto' -exec basename {} \; | sort)"
if [ -n "${messaging_files}" ]; then
info "Compiling messaging protos"
rm -rf ./pkg/generated/gmessaging ./pkg/messaging/internal/generated
set -- $messaging_files
generate_go "$@"
generate_go_messaging "$@"
fi
common_files="$(list_protos "${PROTO_DIR}/common")"
common_files="$(list_protos "${PROTO_DIR}/common" | sed 's#^\./##' | sed 's#^proto/#api/proto/#')"
if [ -n "${common_files}" ]; then
info "Compiling common shared protos"
clean_pb_files "./pkg/proto"
@@ -140,6 +155,12 @@ if [ -f "${PROTO_DIR}/payments/quotation/v1/quotation.proto" ]; then
generate_go_with_grpc "${PROTO_DIR}/payments/quotation/v1/quotation.proto"
fi
if [ -f "${PROTO_DIR}/payments/endpoint/v1/endpoint.proto" ]; then
info "Compiling payments endpoint protos"
clean_pb_files "./pkg/proto/payments/endpoint"
generate_go "${PROTO_DIR}/payments/endpoint/v1/endpoint.proto"
fi
if [ -f "${PROTO_DIR}/payments/methods/v1/methods.proto" ]; then
info "Compiling payments methods protos"
clean_pb_files "./pkg/proto/payments/methods"