Phase 8d: Proto cleanup — delete 4 deprecated RPCs + 8 deprecated messages
- 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
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<Version>0.0.185</Version>
|
<Version>0.0.186</Version>
|
||||||
<DebugType>None</DebugType>
|
<DebugType>None</DebugType>
|
||||||
<DebugSymbols>False</DebugSymbols>
|
<DebugSymbols>False</DebugSymbols>
|
||||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||||
|
|||||||
@@ -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){
|
rpc GetUserPackageStatus(GetUserPackageStatusRequest) returns (GetUserPackageStatusResponse){
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
get: "/GetUserPackageStatus"
|
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 =============
|
// ============= Customer-specific Methods =============
|
||||||
|
|
||||||
rpc GetCustomerPackages(GetCustomerPackagesRequest) returns (GetCustomerPackagesResponse){
|
rpc GetCustomerPackages(GetCustomerPackagesRequest) returns (GetCustomerPackagesResponse){
|
||||||
@@ -224,40 +193,6 @@ message GetAllPackageByFilterResponseModel
|
|||||||
int64 magic_wallet_max_credit = 17;
|
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
|
message GetUserPackageStatusRequest
|
||||||
{
|
{
|
||||||
int64 user_id = 1;
|
int64 user_id = 1;
|
||||||
@@ -276,43 +211,6 @@ message GetUserPackageStatusResponse
|
|||||||
google.protobuf.Timestamp last_purchase_date = 9;
|
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 =============
|
// ============= Customer Message Types =============
|
||||||
|
|
||||||
message GetCustomerPackagesRequest
|
message GetCustomerPackagesRequest
|
||||||
|
|||||||
Reference in New Issue
Block a user