diff --git a/src/CMSMicroservice.Protobuf/CMSMicroservice.Protobuf.csproj b/src/CMSMicroservice.Protobuf/CMSMicroservice.Protobuf.csproj
index 28fe06a..be7ffd8 100644
--- a/src/CMSMicroservice.Protobuf/CMSMicroservice.Protobuf.csproj
+++ b/src/CMSMicroservice.Protobuf/CMSMicroservice.Protobuf.csproj
@@ -3,7 +3,7 @@
net9.0
enable
enable
- 0.0.185
+ 0.0.186
None
False
False
diff --git a/src/CMSMicroservice.Protobuf/Protos/package.proto b/src/CMSMicroservice.Protobuf/Protos/package.proto
index 3e6e731..65dc3cf 100644
--- a/src/CMSMicroservice.Protobuf/Protos/package.proto
+++ b/src/CMSMicroservice.Protobuf/Protos/package.proto
@@ -44,43 +44,12 @@ service PackageContract
};
};
- // Package Purchase System (Legacy — use Customer* RPCs instead)
- rpc PurchaseGoldenPackage(PurchaseGoldenPackageRequest) returns (PurchaseGoldenPackageResponse){
- option deprecated = true;
- option (google.api.http) = {
- post: "/PurchaseGoldenPackage"
- body: "*"
- };
- };
- rpc VerifyGoldenPackagePurchase(VerifyGoldenPackagePurchaseRequest) returns (VerifyGoldenPackagePurchaseResponse){
- option deprecated = true;
- option (google.api.http) = {
- post: "/VerifyGoldenPackagePurchase"
- body: "*"
- };
- };
rpc GetUserPackageStatus(GetUserPackageStatusRequest) returns (GetUserPackageStatusResponse){
option (google.api.http) = {
get: "/GetUserPackageStatus"
};
};
- // Base Package Payment (Legacy — migrate to Customer* RPCs, then remove)
- rpc InitiateBasePackagePayment(InitiateBasePackagePaymentRequest) returns (InitiateBasePackagePaymentResponse){
- option deprecated = true;
- option (google.api.http) = {
- post: "/InitiateBasePackagePayment"
- body: "*"
- };
- };
- rpc VerifyBasePackagePayment(VerifyBasePackagePaymentRequest) returns (VerifyBasePackagePaymentResponse){
- option deprecated = true;
- option (google.api.http) = {
- post: "/VerifyBasePackagePayment"
- body: "*"
- };
- };
-
// ============= Customer-specific Methods =============
rpc GetCustomerPackages(GetCustomerPackagesRequest) returns (GetCustomerPackagesResponse){
@@ -224,40 +193,6 @@ message GetAllPackageByFilterResponseModel
int64 magic_wallet_max_credit = 17;
}
-// Package Purchase Messages
-message PurchaseGoldenPackageRequest
-{
- int64 user_id = 1;
- int64 package_id = 2;
- string return_url = 3;
-}
-
-message PurchaseGoldenPackageResponse
-{
- bool success = 1;
- string message = 2;
- int64 order_id = 3;
- string payment_gateway_url = 4;
- string tracking_code = 5;
-}
-
-message VerifyGoldenPackagePurchaseRequest
-{
- int64 order_id = 1;
- string authority = 2;
- string status = 3;
-}
-
-message VerifyGoldenPackagePurchaseResponse
-{
- bool success = 1;
- string message = 2;
- int64 order_id = 3;
- int64 transaction_id = 4;
- string reference_code = 5;
- int64 wallet_balance = 6;
-}
-
message GetUserPackageStatusRequest
{
int64 user_id = 1;
@@ -276,43 +211,6 @@ message GetUserPackageStatusResponse
google.protobuf.Timestamp last_purchase_date = 9;
}
-// Base Package Payment Messages
-message InitiateBasePackagePaymentRequest
-{
- int64 user_id = 1;
- string callback_url = 2; // Payment gateway callback URL
-}
-
-message InitiateBasePackagePaymentResponse
-{
- bool success = 1;
- string message = 2;
- int64 order_id = 3;
- int64 transaction_id = 4;
- int64 amount = 5;
- string payment_gateway_url = 6;
-}
-
-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;
-}
-
// ============= Customer Message Types =============
message GetCustomerPackagesRequest