WIP: _processWithoutLicense
This commit is contained in:
parent
243c89b636
commit
3244e64162
|
@ -45,8 +45,12 @@ class License {
|
|||
);
|
||||
|
||||
|
||||
static Future<String> _proceessOldVersion(LicenseKeys key) async {
|
||||
static Future<String> _processWithoutLicense(LicenseKeys key) async {
|
||||
switch(key) {
|
||||
case LicenseKeys.reservations:
|
||||
return await _precessWpp();
|
||||
case LicenseKeys.orders:
|
||||
return await _precessWpp();
|
||||
case LicenseKeys.fastPass:
|
||||
return await _precessWpp();
|
||||
case LicenseKeys.providerSchedule:
|
||||
|
@ -137,7 +141,7 @@ class License {
|
|||
),
|
||||
Module(
|
||||
key: LicenseKeys.pets.value,
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.pets),
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.pets),
|
||||
expirationDate: '',
|
||||
startDate: '',
|
||||
quantity: 0,
|
||||
|
@ -158,21 +162,21 @@ class License {
|
|||
),
|
||||
Module(
|
||||
key: LicenseKeys.providerSchedule.value,
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.providerSchedule),
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.providerSchedule),
|
||||
expirationDate: '',
|
||||
startDate: '',
|
||||
quantity: 0,
|
||||
),
|
||||
Module(
|
||||
key: LicenseKeys.deliverySchedule.value,
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.deliverySchedule),
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.deliverySchedule),
|
||||
expirationDate: '',
|
||||
startDate: '',
|
||||
quantity: 0,
|
||||
),
|
||||
Module(
|
||||
key: LicenseKeys.fastPass.value,
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.fastPass),
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.fastPass),
|
||||
expirationDate: '',
|
||||
startDate: '',
|
||||
quantity: 0,
|
||||
|
@ -207,7 +211,7 @@ class License {
|
|||
),
|
||||
Module(
|
||||
key: LicenseKeys.petsHistory.value,
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.petsHistory),
|
||||
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.petsHistory),
|
||||
expirationDate: '',
|
||||
startDate: '',
|
||||
quantity: 0,
|
||||
|
|
Loading…
Reference in New Issue