feat: add manual membership payment processing with wallet and order management
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 7m8s
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 7m8s
This commit is contained in:
@@ -38,6 +38,13 @@ service ManualPaymentContract
|
||||
get: "/GetAllManualPayments"
|
||||
};
|
||||
};
|
||||
|
||||
rpc ProcessManualMembershipPayment(ProcessManualMembershipPaymentRequest) returns (ProcessManualMembershipPaymentResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/ProcessManualMembershipPayment"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// Enums mirroring CMSMicroservice.Domain.Enums.ManualPaymentType
|
||||
@@ -128,3 +135,20 @@ message ManualPaymentModel
|
||||
google.protobuf.Timestamp created = 19;
|
||||
}
|
||||
|
||||
message ProcessManualMembershipPaymentRequest
|
||||
{
|
||||
int64 user_id = 1;
|
||||
int64 amount = 2;
|
||||
string reference_number = 3;
|
||||
google.protobuf.StringValue description = 4;
|
||||
int64 admin_user_id = 5;
|
||||
}
|
||||
|
||||
message ProcessManualMembershipPaymentResponse
|
||||
{
|
||||
int64 transaction_id = 1;
|
||||
int64 order_id = 2;
|
||||
int64 new_wallet_balance = 3;
|
||||
string message = 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user