feat: add base package payment initiation and verification
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m39s

This commit is contained in:
masoodafar-web
2025-12-16 02:34:57 +03:30
parent 189812e874
commit 26e1243cfe
14 changed files with 654 additions and 5 deletions
@@ -62,6 +62,20 @@ service PackageContract
get: "/GetUserPackageStatus"
};
};
// Base Package Payment (56M)
rpc InitiateBasePackagePayment(InitiateBasePackagePaymentRequest) returns (InitiateBasePackagePaymentResponse){
option (google.api.http) = {
post: "/InitiateBasePackagePayment"
body: "*"
};
};
rpc VerifyBasePackagePayment(VerifyBasePackagePaymentRequest) returns (VerifyBasePackagePaymentResponse){
option (google.api.http) = {
post: "/VerifyBasePackagePayment"
body: "*"
};
};
}
message CreateNewPackageRequest
{
@@ -177,3 +191,38 @@ message GetUserPackageStatusResponse
google.protobuf.StringValue last_order_number = 8;
google.protobuf.Timestamp last_purchase_date = 9;
}
// Base Package Payment Messages
message InitiateBasePackagePaymentRequest
{
int64 user_id = 1;
}
message InitiateBasePackagePaymentResponse
{
bool success = 1;
string message = 2;
int64 order_id = 3;
int64 transaction_id = 4;
int64 amount = 5;
}
message VerifyBasePackagePaymentRequest
{
int64 order_id = 1;
int64 transaction_id = 2;
bool payment_success = 3;
google.protobuf.StringValue ref_id = 4;
google.protobuf.StringValue message = 5;
}
message VerifyBasePackagePaymentResponse
{
bool success = 1;
string message = 2;
int64 order_id = 3;
int64 transaction_id = 4;
google.protobuf.StringValue reference_code = 5;
int64 wallet_balance = 6;
int64 discount_balance = 7;
}