feat(commission): add BulkCreditPayouts — credit wallets for pending payouts
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 10m35s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 10m35s
- commission.proto: add BulkCreditPayouts rpc + request/response messages; bump version to 0.0.198 - BulkCreditPayoutsCommand + Handler: load all Pending payouts for given week, credit UserWallet.Balance for each user, create UserWalletHistory + CommissionPayoutHistory records, set Status=Paid + PaidAt - CommissionService: wire up BulkCreditPayouts gRPC method - CommissionProfile: add Mapster mappings for request/result ↔ proto types Previously ProcessUserPayouts created records with Status=Pending but never credited wallets, making CustomerWithdrawBalance unreachable (it requires Status==Paid). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
namespace CMSMicroservice.Application.CommissionCQ.Commands.BulkCreditPayouts;
|
||||
|
||||
public class BulkCreditPayoutsCommand : IRequest<BulkCreditPayoutsResult>
|
||||
{
|
||||
public long WeekDefinitionId { get; set; }
|
||||
}
|
||||
|
||||
public class BulkCreditPayoutsResult
|
||||
{
|
||||
public int CreditedCount { get; set; }
|
||||
public long TotalCredited { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user