From 7554d7054ade23bc0195c5712d2f8e7cdc0e00a7 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Thu, 26 Feb 2026 18:00:40 +0330 Subject: [PATCH] =?UTF-8?q?Phase=208d:=20Proto=20cleanup=20=E2=80=94=20del?= =?UTF-8?q?ete=204=20deprecated=20RPCs=20+=208=20deprecated=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Deleted RPCs: PurchaseGoldenPackage, VerifyGoldenPackagePurchase, InitiateBasePackagePayment, VerifyBasePackagePayment - Deleted messages: PurchaseGoldenPackage{Request,Response}, VerifyGoldenPackagePurchase{Request,Response}, InitiateBasePackagePayment{Request,Response}, VerifyBasePackagePayment{Request,Response} - Kept: GetUserPackageStatus (still in use) - NuGet version bump: 0.0.185 → 0.0.186 --- .../CMSMicroservice.Protobuf.csproj | 2 +- .../Protos/package.proto | 102 ------------------ 2 files changed, 1 insertion(+), 103 deletions(-) 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