feat: shayegan inbound charges workflow and copper kilogram unit enforcement

This commit is contained in:
2026-11-05 17:15:38 +03:30
parent e65b8053fd
commit 7dd5304638
13 changed files with 787 additions and 18 deletions
+5
View File
@@ -302,6 +302,11 @@ Route::middleware(['auth:user', 'admin.page'])->group(function (){
Route::get('shayegan/{id}', [ShayeganController::class, 'show']);
Route::post('shayegan/{id}/retry', [ShayeganController::class, 'retrySanad']);
Route::post('customer/{id}/shayegan/register', [ShayeganController::class, 'registerCustomer']);
Route::get('shayegan/charges/pending', [ShayeganController::class, 'pendingCharges']);
Route::post('shayegan/charges/table', [ShayeganController::class, 'chargesTable']);
Route::post('shayegan/charges/{id}/approve', [ShayeganController::class, 'approveCharge']);
Route::post('shayegan/charges/{id}/reject', [ShayeganController::class, 'rejectCharge']);
Route::post('shayegan/charges/sync', [ShayeganController::class, 'syncChargesFromShayegan']);
Route::post('pargar/table', [PargarController::class, 'table']);
Route::get('pargar/customer-sync/status', [PargarController::class, 'customerSyncStatus']);
+3
View File
@@ -71,3 +71,6 @@ if (app(ConfigService::class)->isStore()) {
Route::post('/cart/remove', [CartController::class, 'removeItem']);
Route::get('categories', [CategoryController::class, 'clientIndex']);
}
// وب‌هوک دریافت شارژ مشتری از شایگان
Route::post('/shayegan/webhook/inbound-charge', [\App\Http\Controllers\Admin\ShayeganController::class, 'inboundWebhook']);