diff --git a/lib/shared/components/molecules/modules/domain/entities/license.dart b/lib/shared/components/molecules/modules/domain/entities/license.dart index 7daaac0e..da762027 100644 --- a/lib/shared/components/molecules/modules/domain/entities/license.dart +++ b/lib/shared/components/molecules/modules/domain/entities/license.dart @@ -45,8 +45,12 @@ class License { ); - static Future _proceessOldVersion(LicenseKeys key) async { + static Future _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,