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) {
|
switch(key) {
|
||||||
|
case LicenseKeys.reservations:
|
||||||
|
return await _precessWpp();
|
||||||
|
case LicenseKeys.orders:
|
||||||
|
return await _precessWpp();
|
||||||
case LicenseKeys.fastPass:
|
case LicenseKeys.fastPass:
|
||||||
return await _precessWpp();
|
return await _precessWpp();
|
||||||
case LicenseKeys.providerSchedule:
|
case LicenseKeys.providerSchedule:
|
||||||
|
@ -137,7 +141,7 @@ class License {
|
||||||
),
|
),
|
||||||
Module(
|
Module(
|
||||||
key: LicenseKeys.pets.value,
|
key: LicenseKeys.pets.value,
|
||||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.pets),
|
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.pets),
|
||||||
expirationDate: '',
|
expirationDate: '',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
quantity: 0,
|
quantity: 0,
|
||||||
|
@ -158,21 +162,21 @@ class License {
|
||||||
),
|
),
|
||||||
Module(
|
Module(
|
||||||
key: LicenseKeys.providerSchedule.value,
|
key: LicenseKeys.providerSchedule.value,
|
||||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.providerSchedule),
|
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.providerSchedule),
|
||||||
expirationDate: '',
|
expirationDate: '',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
quantity: 0,
|
quantity: 0,
|
||||||
),
|
),
|
||||||
Module(
|
Module(
|
||||||
key: LicenseKeys.deliverySchedule.value,
|
key: LicenseKeys.deliverySchedule.value,
|
||||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.deliverySchedule),
|
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.deliverySchedule),
|
||||||
expirationDate: '',
|
expirationDate: '',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
quantity: 0,
|
quantity: 0,
|
||||||
),
|
),
|
||||||
Module(
|
Module(
|
||||||
key: LicenseKeys.fastPass.value,
|
key: LicenseKeys.fastPass.value,
|
||||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.fastPass),
|
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.fastPass),
|
||||||
expirationDate: '',
|
expirationDate: '',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
quantity: 0,
|
quantity: 0,
|
||||||
|
@ -207,7 +211,7 @@ class License {
|
||||||
),
|
),
|
||||||
Module(
|
Module(
|
||||||
key: LicenseKeys.petsHistory.value,
|
key: LicenseKeys.petsHistory.value,
|
||||||
display: isNewVersion ? ModuleStatus.active.key : await _proceessOldVersion(LicenseKeys.petsHistory),
|
display: isNewVersion ? ModuleStatus.active.key : await _processWithoutLicense(LicenseKeys.petsHistory),
|
||||||
expirationDate: '',
|
expirationDate: '',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
quantity: 0,
|
quantity: 0,
|
||||||
|
|
Loading…
Reference in New Issue