refactor: إعادة تسمية التطبيقات الأربعة siro_* → intaleq_*
المجلدات وأسماء حزم dart واستيراداتها: siro_rider → intaleq_rider siro_driver → intaleq_driver siro_admin → intaleq_admin siro_service → intaleq_service شمل ذلك `name:` في كل pubspec وكل `package:siro_*` في الاستيرادات (115 ملفاً في rider وحده)، وإشارات أسماء المجلدات في docs/ وتعليق في backend/Admin/notifications/broadcast.php. لم تبقَ إشارة واحدة (تحقّقت). + ضُمّت حزم get و get_storage داخل intaleq_driver/packages/ وحُوّلت مساراتها الثلاثة من `../../Intaleq/packages/*` إلى `./packages/*`. كانت تُحل عرضاً إلى مجلد App/Intaleq القديم المجاور — تبعية خارج المستودع تنكسر بأول نقل. لم يبقَ في أي تطبيق تبعية مسار خارج الشجرة. ⚠️ لم تُمسّ بعد: هويات المتاجر (applicationId · PRODUCT_BUNDLE_IDENTIFIER · shorebird app_id) ولا الألوان ولا النصوص المرئية ولا النطاقات — كل منها كوميت منفصل، والهويات تحتاج قرار المالك. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
92dc6b3641
commit
0aab85c732
@@ -0,0 +1,53 @@
|
||||
import 'package:intaleq_driver/constant/box_name.dart';
|
||||
import 'package:intaleq_driver/main.dart';
|
||||
|
||||
class RechargeTier {
|
||||
final double amount;
|
||||
final double bonus;
|
||||
const RechargeTier(this.amount, this.bonus);
|
||||
|
||||
double get total => amount + bonus;
|
||||
}
|
||||
|
||||
class RechargeConfig {
|
||||
final String currencyCode;
|
||||
final List<RechargeTier> tiers;
|
||||
const RechargeConfig({required this.currencyCode, required this.tiers});
|
||||
|
||||
static const Map<String, RechargeConfig> _configs = {
|
||||
'Jordan': RechargeConfig(
|
||||
currencyCode: 'JOD',
|
||||
tiers: [
|
||||
RechargeTier(5, 0),
|
||||
RechargeTier(10, 0),
|
||||
RechargeTier(20, 0),
|
||||
RechargeTier(50, 0),
|
||||
],
|
||||
),
|
||||
'Egypt': RechargeConfig(
|
||||
currencyCode: 'EGP',
|
||||
tiers: [
|
||||
RechargeTier(100, 0),
|
||||
RechargeTier(200, 0),
|
||||
RechargeTier(400, 0),
|
||||
RechargeTier(1000, 0),
|
||||
],
|
||||
),
|
||||
'Syria': RechargeConfig(
|
||||
currencyCode: 'SYP',
|
||||
tiers: [
|
||||
RechargeTier(100, 0),
|
||||
RechargeTier(200, 0),
|
||||
RechargeTier(400, 0),
|
||||
RechargeTier(1000, 0),
|
||||
],
|
||||
),
|
||||
};
|
||||
|
||||
static RechargeConfig get current {
|
||||
final country = box.read(BoxName.countryCode) ?? 'Jordan';
|
||||
return _configs[country] ?? _configs['Jordan']!;
|
||||
}
|
||||
|
||||
static List<RechargeTier> get currentTiers => current.tiers;
|
||||
}
|
||||
Reference in New Issue
Block a user