diff --git a/src/lib/Api/UserApi.php b/src/lib/Api/UserApi.php index 6a16e85..5d443f2 100644 --- a/src/lib/Api/UserApi.php +++ b/src/lib/Api/UserApi.php @@ -434,15 +434,16 @@ public function auUserAccountListBusinessesRequest($username = null, string $con * List Related Businesses And Employees, but just the IDs and their BrandIds and PartnerIds * * @param string $username username (optional) + * @param int $user_id user_id (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['auUserAccountMetadataLite'] to see the possible values for this operation * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\UserAccountMetadataLite */ - public function auUserAccountMetadataLite($username = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) + public function auUserAccountMetadataLite($username = null, $user_id = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) { - list($response) = $this->auUserAccountMetadataLiteWithHttpInfo($username, $contentType); + list($response) = $this->auUserAccountMetadataLiteWithHttpInfo($username, $user_id, $contentType); return $response; } @@ -452,15 +453,16 @@ public function auUserAccountMetadataLite($username = null, string $contentType * List Related Businesses And Employees, but just the IDs and their BrandIds and PartnerIds * * @param string $username (optional) + * @param int $user_id (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['auUserAccountMetadataLite'] to see the possible values for this operation * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\UserAccountMetadataLite, HTTP status code, HTTP response headers (array of strings) */ - public function auUserAccountMetadataLiteWithHttpInfo($username = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) + public function auUserAccountMetadataLiteWithHttpInfo($username = null, $user_id = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) { - $request = $this->auUserAccountMetadataLiteRequest($username, $contentType); + $request = $this->auUserAccountMetadataLiteRequest($username, $user_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -552,14 +554,15 @@ public function auUserAccountMetadataLiteWithHttpInfo($username = null, string $ * List Related Businesses And Employees, but just the IDs and their BrandIds and PartnerIds * * @param string $username (optional) + * @param int $user_id (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['auUserAccountMetadataLite'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function auUserAccountMetadataLiteAsync($username = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) + public function auUserAccountMetadataLiteAsync($username = null, $user_id = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) { - return $this->auUserAccountMetadataLiteAsyncWithHttpInfo($username, $contentType) + return $this->auUserAccountMetadataLiteAsyncWithHttpInfo($username, $user_id, $contentType) ->then( function ($response) { return $response[0]; @@ -573,15 +576,16 @@ function ($response) { * List Related Businesses And Employees, but just the IDs and their BrandIds and PartnerIds * * @param string $username (optional) + * @param int $user_id (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['auUserAccountMetadataLite'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function auUserAccountMetadataLiteAsyncWithHttpInfo($username = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) + public function auUserAccountMetadataLiteAsyncWithHttpInfo($username = null, $user_id = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) { $returnType = '\OpenAPI\Client\Model\UserAccountMetadataLite'; - $request = $this->auUserAccountMetadataLiteRequest($username, $contentType); + $request = $this->auUserAccountMetadataLiteRequest($username, $user_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -623,16 +627,18 @@ function ($exception) { * Create request for operation 'auUserAccountMetadataLite' * * @param string $username (optional) + * @param int $user_id (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['auUserAccountMetadataLite'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function auUserAccountMetadataLiteRequest($username = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) + public function auUserAccountMetadataLiteRequest($username = null, $user_id = null, string $contentType = self::contentTypes['auUserAccountMetadataLite'][0]) { + $resourcePath = '/api/v2/user/account/metadatalite'; $formParams = []; $queryParams = []; @@ -649,6 +655,15 @@ public function auUserAccountMetadataLiteRequest($username = null, string $conte false, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $user_id, + 'userId', // param base name + 'integer', // openApiType + '', // style + false, // explode + false // required + ) ?? []); diff --git a/src/lib/Model/AuInitialEarningsModel.php b/src/lib/Model/AuInitialEarningsModel.php index dac8242..8f8effa 100644 --- a/src/lib/Model/AuInitialEarningsModel.php +++ b/src/lib/Model/AuInitialEarningsModel.php @@ -273,7 +273,17 @@ public function getModelName() public const PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAXABLE = 'EtpSuperableTypePTaxable'; public const PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAX_FREE = 'EtpSuperableTypePTaxFree'; public const PAY_CATEGORY_TYPE_ETP_TYPE_P_UNUSED_LEAVE_PAYMENT = 'EtpTypePUnusedLeavePayment'; + public const PAY_CATEGORY_TYPE_JOB_KEEPER_TIER = 'JobKeeperTier'; + public const PAY_CATEGORY_TYPE_JOB_KEEPER_CANCEL_TIER = 'JobKeeperCancelTier'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_NOMINATION = 'JobMakerNomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_RENOMINATION = 'JobMakerRenomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_PERIOD = 'JobMakerPeriod'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_NOMINATION = 'JobMakerCancelNomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_RENOMINATION = 'JobMakerCancelRenomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_PERIOD = 'JobMakerCancelPeriod'; public const PAY_CATEGORY_TYPE_NORMAL_TERMINATION_LEAVE_LOADING = 'NormalTerminationLeaveLoading'; + public const PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_WORKED = 'PublicHolidayWorked'; + public const PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_NOT_WORKED = 'PublicHolidayNotWorked'; public const PAY_CATEGORY_TYPE_UNUSED_LEAVE_PAYMENT_NORMAL_TERMINATION = 'UnusedLeavePaymentNormalTermination'; public const PAY_CATEGORY_TYPE_BACK_PAYMENT = 'BackPayment'; public const PAY_CATEGORY_TYPE_PAID_FAMILY_AND_DOMESTIC_VIOLENCE_LEAVE = 'PaidFamilyAndDomesticViolenceLeave'; @@ -307,7 +317,17 @@ public function getPayCategoryTypeAllowableValues() self::PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAXABLE, self::PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAX_FREE, self::PAY_CATEGORY_TYPE_ETP_TYPE_P_UNUSED_LEAVE_PAYMENT, + self::PAY_CATEGORY_TYPE_JOB_KEEPER_TIER, + self::PAY_CATEGORY_TYPE_JOB_KEEPER_CANCEL_TIER, + self::PAY_CATEGORY_TYPE_JOB_MAKER_NOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_RENOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_PERIOD, + self::PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_NOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_RENOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_PERIOD, self::PAY_CATEGORY_TYPE_NORMAL_TERMINATION_LEAVE_LOADING, + self::PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_WORKED, + self::PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_NOT_WORKED, self::PAY_CATEGORY_TYPE_UNUSED_LEAVE_PAYMENT_NORMAL_TERMINATION, self::PAY_CATEGORY_TYPE_BACK_PAYMENT, self::PAY_CATEGORY_TYPE_PAID_FAMILY_AND_DOMESTIC_VIOLENCE_LEAVE, diff --git a/src/lib/Model/AuPayCategoryModel.php b/src/lib/Model/AuPayCategoryModel.php index c64c741..7c0853e 100644 --- a/src/lib/Model/AuPayCategoryModel.php +++ b/src/lib/Model/AuPayCategoryModel.php @@ -460,7 +460,17 @@ public function getModelName() public const PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAXABLE = 'EtpSuperableTypePTaxable'; public const PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAX_FREE = 'EtpSuperableTypePTaxFree'; public const PAY_CATEGORY_TYPE_ETP_TYPE_P_UNUSED_LEAVE_PAYMENT = 'EtpTypePUnusedLeavePayment'; + public const PAY_CATEGORY_TYPE_JOB_KEEPER_TIER = 'JobKeeperTier'; + public const PAY_CATEGORY_TYPE_JOB_KEEPER_CANCEL_TIER = 'JobKeeperCancelTier'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_NOMINATION = 'JobMakerNomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_RENOMINATION = 'JobMakerRenomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_PERIOD = 'JobMakerPeriod'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_NOMINATION = 'JobMakerCancelNomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_RENOMINATION = 'JobMakerCancelRenomination'; + public const PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_PERIOD = 'JobMakerCancelPeriod'; public const PAY_CATEGORY_TYPE_NORMAL_TERMINATION_LEAVE_LOADING = 'NormalTerminationLeaveLoading'; + public const PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_WORKED = 'PublicHolidayWorked'; + public const PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_NOT_WORKED = 'PublicHolidayNotWorked'; public const PAY_CATEGORY_TYPE_UNUSED_LEAVE_PAYMENT_NORMAL_TERMINATION = 'UnusedLeavePaymentNormalTermination'; public const PAY_CATEGORY_TYPE_BACK_PAYMENT = 'BackPayment'; public const PAY_CATEGORY_TYPE_PAID_FAMILY_AND_DOMESTIC_VIOLENCE_LEAVE = 'PaidFamilyAndDomesticViolenceLeave'; @@ -579,7 +589,17 @@ public function getPayCategoryTypeAllowableValues() self::PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAXABLE, self::PAY_CATEGORY_TYPE_ETP_SUPERABLE_TYPE_P_TAX_FREE, self::PAY_CATEGORY_TYPE_ETP_TYPE_P_UNUSED_LEAVE_PAYMENT, + self::PAY_CATEGORY_TYPE_JOB_KEEPER_TIER, + self::PAY_CATEGORY_TYPE_JOB_KEEPER_CANCEL_TIER, + self::PAY_CATEGORY_TYPE_JOB_MAKER_NOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_RENOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_PERIOD, + self::PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_NOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_RENOMINATION, + self::PAY_CATEGORY_TYPE_JOB_MAKER_CANCEL_PERIOD, self::PAY_CATEGORY_TYPE_NORMAL_TERMINATION_LEAVE_LOADING, + self::PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_WORKED, + self::PAY_CATEGORY_TYPE_PUBLIC_HOLIDAY_NOT_WORKED, self::PAY_CATEGORY_TYPE_UNUSED_LEAVE_PAYMENT_NORMAL_TERMINATION, self::PAY_CATEGORY_TYPE_BACK_PAYMENT, self::PAY_CATEGORY_TYPE_PAID_FAMILY_AND_DOMESTIC_VIOLENCE_LEAVE, diff --git a/src/lib/Model/FinalisePayRunOptions.php b/src/lib/Model/FinalisePayRunOptions.php index b386e85..2e366c6 100644 --- a/src/lib/Model/FinalisePayRunOptions.php +++ b/src/lib/Model/FinalisePayRunOptions.php @@ -74,6 +74,7 @@ class FinalisePayRunOptions implements ModelInterface, ArrayAccess, \JsonSeriali 'export_journals_preference' => 'string', 'export_journals_date_time' => '\DateTime', 'lodge_pay_run_preference' => 'string', + 'super_payment_preference' => 'string', 'lodge_pay_run_date_time' => '\DateTime', 'run_report_packs_preference' => 'string', 'run_report_packs_date_time' => '\DateTime', @@ -109,6 +110,7 @@ class FinalisePayRunOptions implements ModelInterface, ArrayAccess, \JsonSeriali 'export_journals_preference' => null, 'export_journals_date_time' => 'date-time', 'lodge_pay_run_preference' => null, + 'super_payment_preference' => null, 'lodge_pay_run_date_time' => 'date-time', 'run_report_packs_preference' => null, 'run_report_packs_date_time' => 'date-time', @@ -142,6 +144,7 @@ class FinalisePayRunOptions implements ModelInterface, ArrayAccess, \JsonSeriali 'export_journals_preference' => false, 'export_journals_date_time' => false, 'lodge_pay_run_preference' => false, + 'super_payment_preference' => false, 'lodge_pay_run_date_time' => false, 'run_report_packs_preference' => false, 'run_report_packs_date_time' => false, @@ -255,6 +258,7 @@ public function isNullableSetToNull(string $property): bool 'export_journals_preference' => 'exportJournalsPreference', 'export_journals_date_time' => 'exportJournalsDateTime', 'lodge_pay_run_preference' => 'lodgePayRunPreference', + 'super_payment_preference' => 'superPaymentPreference', 'lodge_pay_run_date_time' => 'lodgePayRunDateTime', 'run_report_packs_preference' => 'runReportPacksPreference', 'run_report_packs_date_time' => 'runReportPacksDateTime', @@ -288,6 +292,7 @@ public function isNullableSetToNull(string $property): bool 'export_journals_preference' => 'setExportJournalsPreference', 'export_journals_date_time' => 'setExportJournalsDateTime', 'lodge_pay_run_preference' => 'setLodgePayRunPreference', + 'super_payment_preference' => 'setSuperPaymentPreference', 'lodge_pay_run_date_time' => 'setLodgePayRunDateTime', 'run_report_packs_preference' => 'setRunReportPacksPreference', 'run_report_packs_date_time' => 'setRunReportPacksDateTime', @@ -321,6 +326,7 @@ public function isNullableSetToNull(string $property): bool 'export_journals_preference' => 'getExportJournalsPreference', 'export_journals_date_time' => 'getExportJournalsDateTime', 'lodge_pay_run_preference' => 'getLodgePayRunPreference', + 'super_payment_preference' => 'getSuperPaymentPreference', 'lodge_pay_run_date_time' => 'getLodgePayRunDateTime', 'run_report_packs_preference' => 'getRunReportPacksPreference', 'run_report_packs_date_time' => 'getRunReportPacksDateTime', @@ -392,6 +398,9 @@ public function getModelName() public const LODGE_PAY_RUN_PREFERENCE_MANUAL = 'Manual'; public const LODGE_PAY_RUN_PREFERENCE_IMMEDIATE = 'Immediate'; public const LODGE_PAY_RUN_PREFERENCE_SCHEDULED = 'Scheduled'; + public const SUPER_PAYMENT_PREFERENCE_MANUAL = 'Manual'; + public const SUPER_PAYMENT_PREFERENCE_IMMEDIATE = 'Immediate'; + public const SUPER_PAYMENT_PREFERENCE_SCHEDULED = 'Scheduled'; public const RUN_REPORT_PACKS_PREFERENCE_MANUAL = 'Manual'; public const RUN_REPORT_PACKS_PREFERENCE_IMMEDIATE = 'Immediate'; public const RUN_REPORT_PACKS_PREFERENCE_SCHEDULED = 'Scheduled'; @@ -474,6 +483,20 @@ public function getLodgePayRunPreferenceAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSuperPaymentPreferenceAllowableValues() + { + return [ + self::SUPER_PAYMENT_PREFERENCE_MANUAL, + self::SUPER_PAYMENT_PREFERENCE_IMMEDIATE, + self::SUPER_PAYMENT_PREFERENCE_SCHEDULED, + ]; + } + /** * Gets allowable values of the enum * @@ -534,6 +557,7 @@ public function __construct(array $data = null) $this->setIfExists('export_journals_preference', $data ?? [], null); $this->setIfExists('export_journals_date_time', $data ?? [], null); $this->setIfExists('lodge_pay_run_preference', $data ?? [], null); + $this->setIfExists('super_payment_preference', $data ?? [], null); $this->setIfExists('lodge_pay_run_date_time', $data ?? [], null); $this->setIfExists('run_report_packs_preference', $data ?? [], null); $this->setIfExists('run_report_packs_date_time', $data ?? [], null); @@ -616,6 +640,15 @@ public function listInvalidProperties() ); } + $allowedValues = $this->getSuperPaymentPreferenceAllowableValues(); + if (!is_null($this->container['super_payment_preference']) && !in_array($this->container['super_payment_preference'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'super_payment_preference', must be one of '%s'", + $this->container['super_payment_preference'], + implode("', '", $allowedValues) + ); + } + $allowedValues = $this->getRunReportPacksPreferenceAllowableValues(); if (!is_null($this->container['run_report_packs_preference']) && !in_array($this->container['run_report_packs_preference'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1158,6 +1191,43 @@ public function setLodgePayRunPreference($lodge_pay_run_preference) return $this; } + /** + * Gets super_payment_preference + * + * @return string|null + */ + public function getSuperPaymentPreference() + { + return $this->container['super_payment_preference']; + } + + /** + * Sets super_payment_preference + * + * @param string|null $super_payment_preference + * + * @return self + */ + public function setSuperPaymentPreference($super_payment_preference) + { + if (is_null($super_payment_preference)) { + throw new \InvalidArgumentException('non-nullable super_payment_preference cannot be null'); + } + $allowedValues = $this->getSuperPaymentPreferenceAllowableValues(); + if (!in_array($super_payment_preference, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'super_payment_preference', must be one of '%s'", + $super_payment_preference, + implode("', '", $allowedValues) + ) + ); + } + $this->container['super_payment_preference'] = $super_payment_preference; + + return $this; + } + /** * Gets lodge_pay_run_date_time * diff --git a/src/lib/Model/FunctionToggleAndName.php b/src/lib/Model/FunctionToggleAndName.php deleted file mode 100644 index 2687869..0000000 --- a/src/lib/Model/FunctionToggleAndName.php +++ /dev/null @@ -1,481 +0,0 @@ - - */ -class FunctionToggleAndName implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'FunctionToggleAndName'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'function_toggle' => 'string', - 'function_name' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'function_toggle' => null, - 'function_name' => null - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'function_toggle' => false, - 'function_name' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'function_toggle' => 'functionToggle', - 'function_name' => 'functionName' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'function_toggle' => 'setFunctionToggle', - 'function_name' => 'setFunctionName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'function_toggle' => 'getFunctionToggle', - 'function_name' => 'getFunctionName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - public const FUNCTION_TOGGLE_DISABLED = 'Disabled'; - public const FUNCTION_TOGGLE_ENABLED = 'Enabled'; - public const FUNCTION_TOGGLE_UPSELL = 'Upsell'; - public const FUNCTION_TOGGLE_COMING_SOON = 'ComingSoon'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFunctionToggleAllowableValues() - { - return [ - self::FUNCTION_TOGGLE_DISABLED, - self::FUNCTION_TOGGLE_ENABLED, - self::FUNCTION_TOGGLE_UPSELL, - self::FUNCTION_TOGGLE_COMING_SOON, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('function_toggle', $data ?? [], null); - $this->setIfExists('function_name', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getFunctionToggleAllowableValues(); - if (!is_null($this->container['function_toggle']) && !in_array($this->container['function_toggle'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'function_toggle', must be one of '%s'", - $this->container['function_toggle'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets function_toggle - * - * @return string|null - */ - public function getFunctionToggle() - { - return $this->container['function_toggle']; - } - - /** - * Sets function_toggle - * - * @param string|null $function_toggle - * - * @return self - */ - public function setFunctionToggle($function_toggle) - { - if (is_null($function_toggle)) { - throw new \InvalidArgumentException('non-nullable function_toggle cannot be null'); - } - $allowedValues = $this->getFunctionToggleAllowableValues(); - if (!in_array($function_toggle, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'function_toggle', must be one of '%s'", - $function_toggle, - implode("', '", $allowedValues) - ) - ); - } - $this->container['function_toggle'] = $function_toggle; - - return $this; - } - - /** - * Gets function_name - * - * @return string|null - */ - public function getFunctionName() - { - return $this->container['function_name']; - } - - /** - * Sets function_name - * - * @param string|null $function_name - * - * @return self - */ - public function setFunctionName($function_name) - { - if (is_null($function_name)) { - throw new \InvalidArgumentException('non-nullable function_name cannot be null'); - } - $this->container['function_name'] = $function_name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/src/lib/Model/LeaveCategoryModel.php b/src/lib/Model/LeaveCategoryModel.php deleted file mode 100644 index dd2bb06..0000000 --- a/src/lib/Model/LeaveCategoryModel.php +++ /dev/null @@ -1,1323 +0,0 @@ - - */ -class LeaveCategoryModel implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'LeaveCategoryModel'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'id' => 'int', - 'name' => 'string', - 'unit_type' => 'string', - 'units' => 'float', - 'automatically_accrues' => 'bool', - 'is_private' => 'bool', - 'exclude_from_termination_payout' => 'bool', - 'payout_negative_balance' => 'bool', - 'external_id' => 'string', - 'source' => 'string', - 'leave_loading' => 'float', - 'contingent_period' => 'float', - 'entitlement_period' => 'float', - 'is_balance_untracked' => 'bool', - 'leave_category_type' => 'string', - 'deduct_from_primary_pay_category' => 'bool', - 'deduct_from_pay_category_id' => 'int', - 'transfer_to_pay_category_id' => 'int', - 'transfer_unused_leave_to_pay_category_id' => 'int', - 'hide_accruals_on_payslip' => 'bool', - 'use_deduct_from_pay_category_rate' => 'bool', - 'leave_accrual_rule' => '\OpenAPI\Client\Model\LeaveAccrualRuleViewModel', - 'is_name_private' => 'bool', - 'accrues_first_pay_run_per_period_only' => 'bool', - 'prevent_negative_balance_unpaid_leave_category_id' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'id' => 'int32', - 'name' => null, - 'unit_type' => null, - 'units' => 'double', - 'automatically_accrues' => null, - 'is_private' => null, - 'exclude_from_termination_payout' => null, - 'payout_negative_balance' => null, - 'external_id' => null, - 'source' => null, - 'leave_loading' => 'double', - 'contingent_period' => 'double', - 'entitlement_period' => 'double', - 'is_balance_untracked' => null, - 'leave_category_type' => null, - 'deduct_from_primary_pay_category' => null, - 'deduct_from_pay_category_id' => 'int32', - 'transfer_to_pay_category_id' => 'int32', - 'transfer_unused_leave_to_pay_category_id' => 'int32', - 'hide_accruals_on_payslip' => null, - 'use_deduct_from_pay_category_rate' => null, - 'leave_accrual_rule' => null, - 'is_name_private' => null, - 'accrues_first_pay_run_per_period_only' => null, - 'prevent_negative_balance_unpaid_leave_category_id' => 'int32' - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - 'id' => false, - 'name' => false, - 'unit_type' => false, - 'units' => false, - 'automatically_accrues' => false, - 'is_private' => false, - 'exclude_from_termination_payout' => false, - 'payout_negative_balance' => false, - 'external_id' => false, - 'source' => false, - 'leave_loading' => false, - 'contingent_period' => false, - 'entitlement_period' => false, - 'is_balance_untracked' => false, - 'leave_category_type' => false, - 'deduct_from_primary_pay_category' => false, - 'deduct_from_pay_category_id' => false, - 'transfer_to_pay_category_id' => false, - 'transfer_unused_leave_to_pay_category_id' => false, - 'hide_accruals_on_payslip' => false, - 'use_deduct_from_pay_category_rate' => false, - 'leave_accrual_rule' => false, - 'is_name_private' => false, - 'accrues_first_pay_run_per_period_only' => false, - 'prevent_negative_balance_unpaid_leave_category_id' => false - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'unit_type' => 'unitType', - 'units' => 'units', - 'automatically_accrues' => 'automaticallyAccrues', - 'is_private' => 'isPrivate', - 'exclude_from_termination_payout' => 'excludeFromTerminationPayout', - 'payout_negative_balance' => 'payoutNegativeBalance', - 'external_id' => 'externalId', - 'source' => 'source', - 'leave_loading' => 'leaveLoading', - 'contingent_period' => 'contingentPeriod', - 'entitlement_period' => 'entitlementPeriod', - 'is_balance_untracked' => 'isBalanceUntracked', - 'leave_category_type' => 'leaveCategoryType', - 'deduct_from_primary_pay_category' => 'deductFromPrimaryPayCategory', - 'deduct_from_pay_category_id' => 'deductFromPayCategoryId', - 'transfer_to_pay_category_id' => 'transferToPayCategoryId', - 'transfer_unused_leave_to_pay_category_id' => 'transferUnusedLeaveToPayCategoryId', - 'hide_accruals_on_payslip' => 'hideAccrualsOnPayslip', - 'use_deduct_from_pay_category_rate' => 'useDeductFromPayCategoryRate', - 'leave_accrual_rule' => 'leaveAccrualRule', - 'is_name_private' => 'isNamePrivate', - 'accrues_first_pay_run_per_period_only' => 'accruesFirstPayRunPerPeriodOnly', - 'prevent_negative_balance_unpaid_leave_category_id' => 'preventNegativeBalanceUnpaidLeaveCategoryId' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'unit_type' => 'setUnitType', - 'units' => 'setUnits', - 'automatically_accrues' => 'setAutomaticallyAccrues', - 'is_private' => 'setIsPrivate', - 'exclude_from_termination_payout' => 'setExcludeFromTerminationPayout', - 'payout_negative_balance' => 'setPayoutNegativeBalance', - 'external_id' => 'setExternalId', - 'source' => 'setSource', - 'leave_loading' => 'setLeaveLoading', - 'contingent_period' => 'setContingentPeriod', - 'entitlement_period' => 'setEntitlementPeriod', - 'is_balance_untracked' => 'setIsBalanceUntracked', - 'leave_category_type' => 'setLeaveCategoryType', - 'deduct_from_primary_pay_category' => 'setDeductFromPrimaryPayCategory', - 'deduct_from_pay_category_id' => 'setDeductFromPayCategoryId', - 'transfer_to_pay_category_id' => 'setTransferToPayCategoryId', - 'transfer_unused_leave_to_pay_category_id' => 'setTransferUnusedLeaveToPayCategoryId', - 'hide_accruals_on_payslip' => 'setHideAccrualsOnPayslip', - 'use_deduct_from_pay_category_rate' => 'setUseDeductFromPayCategoryRate', - 'leave_accrual_rule' => 'setLeaveAccrualRule', - 'is_name_private' => 'setIsNamePrivate', - 'accrues_first_pay_run_per_period_only' => 'setAccruesFirstPayRunPerPeriodOnly', - 'prevent_negative_balance_unpaid_leave_category_id' => 'setPreventNegativeBalanceUnpaidLeaveCategoryId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'unit_type' => 'getUnitType', - 'units' => 'getUnits', - 'automatically_accrues' => 'getAutomaticallyAccrues', - 'is_private' => 'getIsPrivate', - 'exclude_from_termination_payout' => 'getExcludeFromTerminationPayout', - 'payout_negative_balance' => 'getPayoutNegativeBalance', - 'external_id' => 'getExternalId', - 'source' => 'getSource', - 'leave_loading' => 'getLeaveLoading', - 'contingent_period' => 'getContingentPeriod', - 'entitlement_period' => 'getEntitlementPeriod', - 'is_balance_untracked' => 'getIsBalanceUntracked', - 'leave_category_type' => 'getLeaveCategoryType', - 'deduct_from_primary_pay_category' => 'getDeductFromPrimaryPayCategory', - 'deduct_from_pay_category_id' => 'getDeductFromPayCategoryId', - 'transfer_to_pay_category_id' => 'getTransferToPayCategoryId', - 'transfer_unused_leave_to_pay_category_id' => 'getTransferUnusedLeaveToPayCategoryId', - 'hide_accruals_on_payslip' => 'getHideAccrualsOnPayslip', - 'use_deduct_from_pay_category_rate' => 'getUseDeductFromPayCategoryRate', - 'leave_accrual_rule' => 'getLeaveAccrualRule', - 'is_name_private' => 'getIsNamePrivate', - 'accrues_first_pay_run_per_period_only' => 'getAccruesFirstPayRunPerPeriodOnly', - 'prevent_negative_balance_unpaid_leave_category_id' => 'getPreventNegativeBalanceUnpaidLeaveCategoryId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - public const UNIT_TYPE_DAYS = 'Days'; - public const UNIT_TYPE_WEEKS = 'Weeks'; - public const UNIT_TYPE_HOURS_PER_HOUR_WORKED = 'HoursPerHourWorked'; - public const UNIT_TYPE_HOURS_PER_PAY_RUN = 'HoursPerPayRun'; - public const UNIT_TYPE_STANDARD_DAYS = 'StandardDays'; - public const UNIT_TYPE_STANDARD_WEEKS = 'StandardWeeks'; - public const UNIT_TYPE_DAY_PER_CALENDAR_DAY = 'DayPerCalendarDay'; - public const LEAVE_CATEGORY_TYPE_STANDARD = 'Standard'; - public const LEAVE_CATEGORY_TYPE_LONG_SERVICE_LEAVE = 'LongServiceLeave'; - public const LEAVE_CATEGORY_TYPE_STATUTORY_SICK_LEAVE = 'StatutorySickLeave'; - public const LEAVE_CATEGORY_TYPE_STATUTORY_MATERNITY_LEAVE = 'StatutoryMaternityLeave'; - public const LEAVE_CATEGORY_TYPE_PERSONAL_CARERS_LEAVE = 'PersonalCarersLeave'; - public const LEAVE_CATEGORY_TYPE_STATUTORY_ADOPTION_LEAVE = 'StatutoryAdoptionLeave'; - public const LEAVE_CATEGORY_TYPE_STATUTORY_PATERNITY_LEAVE = 'StatutoryPaternityLeave'; - public const LEAVE_CATEGORY_TYPE_STATUTORY_PARENTAL_BEREAVEMENT_LEAVE = 'StatutoryParentalBereavementLeave'; - public const LEAVE_CATEGORY_TYPE_OCCUPATIONAL_SICK_LEAVE = 'OccupationalSickLeave'; - public const LEAVE_CATEGORY_TYPE_PAID_FAMILYAND_DOMESTIC_VIOLENCE_LEAVE = 'PaidFamilyandDomesticViolenceLeave'; - public const LEAVE_CATEGORY_TYPE_ENTITLEMENT_BASED_LEAVE = 'EntitlementBasedLeave'; - public const LEAVE_CATEGORY_TYPE_OCCUPATIONAL_MATERNITY_LEAVE = 'OccupationalMaternityLeave'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitTypeAllowableValues() - { - return [ - self::UNIT_TYPE_DAYS, - self::UNIT_TYPE_WEEKS, - self::UNIT_TYPE_HOURS_PER_HOUR_WORKED, - self::UNIT_TYPE_HOURS_PER_PAY_RUN, - self::UNIT_TYPE_STANDARD_DAYS, - self::UNIT_TYPE_STANDARD_WEEKS, - self::UNIT_TYPE_DAY_PER_CALENDAR_DAY, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLeaveCategoryTypeAllowableValues() - { - return [ - self::LEAVE_CATEGORY_TYPE_STANDARD, - self::LEAVE_CATEGORY_TYPE_LONG_SERVICE_LEAVE, - self::LEAVE_CATEGORY_TYPE_STATUTORY_SICK_LEAVE, - self::LEAVE_CATEGORY_TYPE_STATUTORY_MATERNITY_LEAVE, - self::LEAVE_CATEGORY_TYPE_PERSONAL_CARERS_LEAVE, - self::LEAVE_CATEGORY_TYPE_STATUTORY_ADOPTION_LEAVE, - self::LEAVE_CATEGORY_TYPE_STATUTORY_PATERNITY_LEAVE, - self::LEAVE_CATEGORY_TYPE_STATUTORY_PARENTAL_BEREAVEMENT_LEAVE, - self::LEAVE_CATEGORY_TYPE_OCCUPATIONAL_SICK_LEAVE, - self::LEAVE_CATEGORY_TYPE_PAID_FAMILYAND_DOMESTIC_VIOLENCE_LEAVE, - self::LEAVE_CATEGORY_TYPE_ENTITLEMENT_BASED_LEAVE, - self::LEAVE_CATEGORY_TYPE_OCCUPATIONAL_MATERNITY_LEAVE, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->setIfExists('id', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); - $this->setIfExists('unit_type', $data ?? [], null); - $this->setIfExists('units', $data ?? [], null); - $this->setIfExists('automatically_accrues', $data ?? [], null); - $this->setIfExists('is_private', $data ?? [], null); - $this->setIfExists('exclude_from_termination_payout', $data ?? [], null); - $this->setIfExists('payout_negative_balance', $data ?? [], null); - $this->setIfExists('external_id', $data ?? [], null); - $this->setIfExists('source', $data ?? [], null); - $this->setIfExists('leave_loading', $data ?? [], null); - $this->setIfExists('contingent_period', $data ?? [], null); - $this->setIfExists('entitlement_period', $data ?? [], null); - $this->setIfExists('is_balance_untracked', $data ?? [], null); - $this->setIfExists('leave_category_type', $data ?? [], null); - $this->setIfExists('deduct_from_primary_pay_category', $data ?? [], null); - $this->setIfExists('deduct_from_pay_category_id', $data ?? [], null); - $this->setIfExists('transfer_to_pay_category_id', $data ?? [], null); - $this->setIfExists('transfer_unused_leave_to_pay_category_id', $data ?? [], null); - $this->setIfExists('hide_accruals_on_payslip', $data ?? [], null); - $this->setIfExists('use_deduct_from_pay_category_rate', $data ?? [], null); - $this->setIfExists('leave_accrual_rule', $data ?? [], null); - $this->setIfExists('is_name_private', $data ?? [], null); - $this->setIfExists('accrues_first_pay_run_per_period_only', $data ?? [], null); - $this->setIfExists('prevent_negative_balance_unpaid_leave_category_id', $data ?? [], null); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getUnitTypeAllowableValues(); - if (!is_null($this->container['unit_type']) && !in_array($this->container['unit_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'unit_type', must be one of '%s'", - $this->container['unit_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getLeaveCategoryTypeAllowableValues(); - if (!is_null($this->container['leave_category_type']) && !in_array($this->container['leave_category_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'leave_category_type', must be one of '%s'", - $this->container['leave_category_type'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return int|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param int|null $id - * - * @return self - */ - public function setId($id) - { - if (is_null($id)) { - throw new \InvalidArgumentException('non-nullable id cannot be null'); - } - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name - * - * @return self - */ - public function setName($name) - { - if (is_null($name)) { - throw new \InvalidArgumentException('non-nullable name cannot be null'); - } - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets unit_type - * - * @return string|null - */ - public function getUnitType() - { - return $this->container['unit_type']; - } - - /** - * Sets unit_type - * - * @param string|null $unit_type - * - * @return self - */ - public function setUnitType($unit_type) - { - if (is_null($unit_type)) { - throw new \InvalidArgumentException('non-nullable unit_type cannot be null'); - } - $allowedValues = $this->getUnitTypeAllowableValues(); - if (!in_array($unit_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'unit_type', must be one of '%s'", - $unit_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['unit_type'] = $unit_type; - - return $this; - } - - /** - * Gets units - * - * @return float|null - */ - public function getUnits() - { - return $this->container['units']; - } - - /** - * Sets units - * - * @param float|null $units - * - * @return self - */ - public function setUnits($units) - { - if (is_null($units)) { - throw new \InvalidArgumentException('non-nullable units cannot be null'); - } - $this->container['units'] = $units; - - return $this; - } - - /** - * Gets automatically_accrues - * - * @return bool|null - */ - public function getAutomaticallyAccrues() - { - return $this->container['automatically_accrues']; - } - - /** - * Sets automatically_accrues - * - * @param bool|null $automatically_accrues - * - * @return self - */ - public function setAutomaticallyAccrues($automatically_accrues) - { - if (is_null($automatically_accrues)) { - throw new \InvalidArgumentException('non-nullable automatically_accrues cannot be null'); - } - $this->container['automatically_accrues'] = $automatically_accrues; - - return $this; - } - - /** - * Gets is_private - * - * @return bool|null - */ - public function getIsPrivate() - { - return $this->container['is_private']; - } - - /** - * Sets is_private - * - * @param bool|null $is_private - * - * @return self - */ - public function setIsPrivate($is_private) - { - if (is_null($is_private)) { - throw new \InvalidArgumentException('non-nullable is_private cannot be null'); - } - $this->container['is_private'] = $is_private; - - return $this; - } - - /** - * Gets exclude_from_termination_payout - * - * @return bool|null - */ - public function getExcludeFromTerminationPayout() - { - return $this->container['exclude_from_termination_payout']; - } - - /** - * Sets exclude_from_termination_payout - * - * @param bool|null $exclude_from_termination_payout - * - * @return self - */ - public function setExcludeFromTerminationPayout($exclude_from_termination_payout) - { - if (is_null($exclude_from_termination_payout)) { - throw new \InvalidArgumentException('non-nullable exclude_from_termination_payout cannot be null'); - } - $this->container['exclude_from_termination_payout'] = $exclude_from_termination_payout; - - return $this; - } - - /** - * Gets payout_negative_balance - * - * @return bool|null - */ - public function getPayoutNegativeBalance() - { - return $this->container['payout_negative_balance']; - } - - /** - * Sets payout_negative_balance - * - * @param bool|null $payout_negative_balance - * - * @return self - */ - public function setPayoutNegativeBalance($payout_negative_balance) - { - if (is_null($payout_negative_balance)) { - throw new \InvalidArgumentException('non-nullable payout_negative_balance cannot be null'); - } - $this->container['payout_negative_balance'] = $payout_negative_balance; - - return $this; - } - - /** - * Gets external_id - * - * @return string|null - */ - public function getExternalId() - { - return $this->container['external_id']; - } - - /** - * Sets external_id - * - * @param string|null $external_id - * - * @return self - */ - public function setExternalId($external_id) - { - if (is_null($external_id)) { - throw new \InvalidArgumentException('non-nullable external_id cannot be null'); - } - $this->container['external_id'] = $external_id; - - return $this; - } - - /** - * Gets source - * - * @return string|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param string|null $source - * - * @return self - */ - public function setSource($source) - { - if (is_null($source)) { - throw new \InvalidArgumentException('non-nullable source cannot be null'); - } - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets leave_loading - * - * @return float|null - */ - public function getLeaveLoading() - { - return $this->container['leave_loading']; - } - - /** - * Sets leave_loading - * - * @param float|null $leave_loading - * - * @return self - */ - public function setLeaveLoading($leave_loading) - { - if (is_null($leave_loading)) { - throw new \InvalidArgumentException('non-nullable leave_loading cannot be null'); - } - $this->container['leave_loading'] = $leave_loading; - - return $this; - } - - /** - * Gets contingent_period - * - * @return float|null - */ - public function getContingentPeriod() - { - return $this->container['contingent_period']; - } - - /** - * Sets contingent_period - * - * @param float|null $contingent_period - * - * @return self - */ - public function setContingentPeriod($contingent_period) - { - if (is_null($contingent_period)) { - throw new \InvalidArgumentException('non-nullable contingent_period cannot be null'); - } - $this->container['contingent_period'] = $contingent_period; - - return $this; - } - - /** - * Gets entitlement_period - * - * @return float|null - */ - public function getEntitlementPeriod() - { - return $this->container['entitlement_period']; - } - - /** - * Sets entitlement_period - * - * @param float|null $entitlement_period - * - * @return self - */ - public function setEntitlementPeriod($entitlement_period) - { - if (is_null($entitlement_period)) { - throw new \InvalidArgumentException('non-nullable entitlement_period cannot be null'); - } - $this->container['entitlement_period'] = $entitlement_period; - - return $this; - } - - /** - * Gets is_balance_untracked - * - * @return bool|null - */ - public function getIsBalanceUntracked() - { - return $this->container['is_balance_untracked']; - } - - /** - * Sets is_balance_untracked - * - * @param bool|null $is_balance_untracked - * - * @return self - */ - public function setIsBalanceUntracked($is_balance_untracked) - { - if (is_null($is_balance_untracked)) { - throw new \InvalidArgumentException('non-nullable is_balance_untracked cannot be null'); - } - $this->container['is_balance_untracked'] = $is_balance_untracked; - - return $this; - } - - /** - * Gets leave_category_type - * - * @return string|null - */ - public function getLeaveCategoryType() - { - return $this->container['leave_category_type']; - } - - /** - * Sets leave_category_type - * - * @param string|null $leave_category_type - * - * @return self - */ - public function setLeaveCategoryType($leave_category_type) - { - if (is_null($leave_category_type)) { - throw new \InvalidArgumentException('non-nullable leave_category_type cannot be null'); - } - $allowedValues = $this->getLeaveCategoryTypeAllowableValues(); - if (!in_array($leave_category_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'leave_category_type', must be one of '%s'", - $leave_category_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['leave_category_type'] = $leave_category_type; - - return $this; - } - - /** - * Gets deduct_from_primary_pay_category - * - * @return bool|null - */ - public function getDeductFromPrimaryPayCategory() - { - return $this->container['deduct_from_primary_pay_category']; - } - - /** - * Sets deduct_from_primary_pay_category - * - * @param bool|null $deduct_from_primary_pay_category - * - * @return self - */ - public function setDeductFromPrimaryPayCategory($deduct_from_primary_pay_category) - { - if (is_null($deduct_from_primary_pay_category)) { - throw new \InvalidArgumentException('non-nullable deduct_from_primary_pay_category cannot be null'); - } - $this->container['deduct_from_primary_pay_category'] = $deduct_from_primary_pay_category; - - return $this; - } - - /** - * Gets deduct_from_pay_category_id - * - * @return int|null - */ - public function getDeductFromPayCategoryId() - { - return $this->container['deduct_from_pay_category_id']; - } - - /** - * Sets deduct_from_pay_category_id - * - * @param int|null $deduct_from_pay_category_id - * - * @return self - */ - public function setDeductFromPayCategoryId($deduct_from_pay_category_id) - { - if (is_null($deduct_from_pay_category_id)) { - throw new \InvalidArgumentException('non-nullable deduct_from_pay_category_id cannot be null'); - } - $this->container['deduct_from_pay_category_id'] = $deduct_from_pay_category_id; - - return $this; - } - - /** - * Gets transfer_to_pay_category_id - * - * @return int|null - */ - public function getTransferToPayCategoryId() - { - return $this->container['transfer_to_pay_category_id']; - } - - /** - * Sets transfer_to_pay_category_id - * - * @param int|null $transfer_to_pay_category_id - * - * @return self - */ - public function setTransferToPayCategoryId($transfer_to_pay_category_id) - { - if (is_null($transfer_to_pay_category_id)) { - throw new \InvalidArgumentException('non-nullable transfer_to_pay_category_id cannot be null'); - } - $this->container['transfer_to_pay_category_id'] = $transfer_to_pay_category_id; - - return $this; - } - - /** - * Gets transfer_unused_leave_to_pay_category_id - * - * @return int|null - */ - public function getTransferUnusedLeaveToPayCategoryId() - { - return $this->container['transfer_unused_leave_to_pay_category_id']; - } - - /** - * Sets transfer_unused_leave_to_pay_category_id - * - * @param int|null $transfer_unused_leave_to_pay_category_id - * - * @return self - */ - public function setTransferUnusedLeaveToPayCategoryId($transfer_unused_leave_to_pay_category_id) - { - if (is_null($transfer_unused_leave_to_pay_category_id)) { - throw new \InvalidArgumentException('non-nullable transfer_unused_leave_to_pay_category_id cannot be null'); - } - $this->container['transfer_unused_leave_to_pay_category_id'] = $transfer_unused_leave_to_pay_category_id; - - return $this; - } - - /** - * Gets hide_accruals_on_payslip - * - * @return bool|null - */ - public function getHideAccrualsOnPayslip() - { - return $this->container['hide_accruals_on_payslip']; - } - - /** - * Sets hide_accruals_on_payslip - * - * @param bool|null $hide_accruals_on_payslip - * - * @return self - */ - public function setHideAccrualsOnPayslip($hide_accruals_on_payslip) - { - if (is_null($hide_accruals_on_payslip)) { - throw new \InvalidArgumentException('non-nullable hide_accruals_on_payslip cannot be null'); - } - $this->container['hide_accruals_on_payslip'] = $hide_accruals_on_payslip; - - return $this; - } - - /** - * Gets use_deduct_from_pay_category_rate - * - * @return bool|null - */ - public function getUseDeductFromPayCategoryRate() - { - return $this->container['use_deduct_from_pay_category_rate']; - } - - /** - * Sets use_deduct_from_pay_category_rate - * - * @param bool|null $use_deduct_from_pay_category_rate - * - * @return self - */ - public function setUseDeductFromPayCategoryRate($use_deduct_from_pay_category_rate) - { - if (is_null($use_deduct_from_pay_category_rate)) { - throw new \InvalidArgumentException('non-nullable use_deduct_from_pay_category_rate cannot be null'); - } - $this->container['use_deduct_from_pay_category_rate'] = $use_deduct_from_pay_category_rate; - - return $this; - } - - /** - * Gets leave_accrual_rule - * - * @return \OpenAPI\Client\Model\LeaveAccrualRuleViewModel|null - */ - public function getLeaveAccrualRule() - { - return $this->container['leave_accrual_rule']; - } - - /** - * Sets leave_accrual_rule - * - * @param \OpenAPI\Client\Model\LeaveAccrualRuleViewModel|null $leave_accrual_rule leave_accrual_rule - * - * @return self - */ - public function setLeaveAccrualRule($leave_accrual_rule) - { - if (is_null($leave_accrual_rule)) { - throw new \InvalidArgumentException('non-nullable leave_accrual_rule cannot be null'); - } - $this->container['leave_accrual_rule'] = $leave_accrual_rule; - - return $this; - } - - /** - * Gets is_name_private - * - * @return bool|null - */ - public function getIsNamePrivate() - { - return $this->container['is_name_private']; - } - - /** - * Sets is_name_private - * - * @param bool|null $is_name_private - * - * @return self - */ - public function setIsNamePrivate($is_name_private) - { - if (is_null($is_name_private)) { - throw new \InvalidArgumentException('non-nullable is_name_private cannot be null'); - } - $this->container['is_name_private'] = $is_name_private; - - return $this; - } - - /** - * Gets accrues_first_pay_run_per_period_only - * - * @return bool|null - */ - public function getAccruesFirstPayRunPerPeriodOnly() - { - return $this->container['accrues_first_pay_run_per_period_only']; - } - - /** - * Sets accrues_first_pay_run_per_period_only - * - * @param bool|null $accrues_first_pay_run_per_period_only - * - * @return self - */ - public function setAccruesFirstPayRunPerPeriodOnly($accrues_first_pay_run_per_period_only) - { - if (is_null($accrues_first_pay_run_per_period_only)) { - throw new \InvalidArgumentException('non-nullable accrues_first_pay_run_per_period_only cannot be null'); - } - $this->container['accrues_first_pay_run_per_period_only'] = $accrues_first_pay_run_per_period_only; - - return $this; - } - - /** - * Gets prevent_negative_balance_unpaid_leave_category_id - * - * @return int|null - */ - public function getPreventNegativeBalanceUnpaidLeaveCategoryId() - { - return $this->container['prevent_negative_balance_unpaid_leave_category_id']; - } - - /** - * Sets prevent_negative_balance_unpaid_leave_category_id - * - * @param int|null $prevent_negative_balance_unpaid_leave_category_id - * - * @return self - */ - public function setPreventNegativeBalanceUnpaidLeaveCategoryId($prevent_negative_balance_unpaid_leave_category_id) - { - if (is_null($prevent_negative_balance_unpaid_leave_category_id)) { - throw new \InvalidArgumentException('non-nullable prevent_negative_balance_unpaid_leave_category_id cannot be null'); - } - $this->container['prevent_negative_balance_unpaid_leave_category_id'] = $prevent_negative_balance_unpaid_leave_category_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/src/lib/Model/PayRunFinaliseResult.php b/src/lib/Model/PayRunFinaliseResult.php index f2daf6e..7625a81 100644 --- a/src/lib/Model/PayRunFinaliseResult.php +++ b/src/lib/Model/PayRunFinaliseResult.php @@ -81,6 +81,7 @@ class PayRunFinaliseResult implements ModelInterface, ArrayAccess, \JsonSerializ 'selected_report_packs' => 'string[]', 'submit_to_pension_sync' => 'string', 'submit_to_pension_sync_scheduled_date_time_utc' => '\DateTime', + 'super_payments' => '\OpenAPI\Client\Model\PayRunSuperBatchModel[]', 'is_first_finalisation' => 'bool' ]; @@ -116,6 +117,7 @@ class PayRunFinaliseResult implements ModelInterface, ArrayAccess, \JsonSerializ 'selected_report_packs' => null, 'submit_to_pension_sync' => null, 'submit_to_pension_sync_scheduled_date_time_utc' => 'date-time', + 'super_payments' => null, 'is_first_finalisation' => null ]; @@ -149,6 +151,7 @@ class PayRunFinaliseResult implements ModelInterface, ArrayAccess, \JsonSerializ 'selected_report_packs' => false, 'submit_to_pension_sync' => false, 'submit_to_pension_sync_scheduled_date_time_utc' => false, + 'super_payments' => false, 'is_first_finalisation' => false ]; @@ -262,6 +265,7 @@ public function isNullableSetToNull(string $property): bool 'selected_report_packs' => 'selectedReportPacks', 'submit_to_pension_sync' => 'submitToPensionSync', 'submit_to_pension_sync_scheduled_date_time_utc' => 'submitToPensionSyncScheduledDateTimeUtc', + 'super_payments' => 'superPayments', 'is_first_finalisation' => 'isFirstFinalisation' ]; @@ -295,6 +299,7 @@ public function isNullableSetToNull(string $property): bool 'selected_report_packs' => 'setSelectedReportPacks', 'submit_to_pension_sync' => 'setSubmitToPensionSync', 'submit_to_pension_sync_scheduled_date_time_utc' => 'setSubmitToPensionSyncScheduledDateTimeUtc', + 'super_payments' => 'setSuperPayments', 'is_first_finalisation' => 'setIsFirstFinalisation' ]; @@ -328,6 +333,7 @@ public function isNullableSetToNull(string $property): bool 'selected_report_packs' => 'getSelectedReportPacks', 'submit_to_pension_sync' => 'getSubmitToPensionSync', 'submit_to_pension_sync_scheduled_date_time_utc' => 'getSubmitToPensionSyncScheduledDateTimeUtc', + 'super_payments' => 'getSuperPayments', 'is_first_finalisation' => 'getIsFirstFinalisation' ]; @@ -514,6 +520,7 @@ public function __construct(array $data = null) $this->setIfExists('selected_report_packs', $data ?? [], null); $this->setIfExists('submit_to_pension_sync', $data ?? [], null); $this->setIfExists('submit_to_pension_sync_scheduled_date_time_utc', $data ?? [], null); + $this->setIfExists('super_payments', $data ?? [], null); $this->setIfExists('is_first_finalisation', $data ?? [], null); } @@ -1321,6 +1328,33 @@ public function setSubmitToPensionSyncScheduledDateTimeUtc($submit_to_pension_sy return $this; } + /** + * Gets super_payments + * + * @return \OpenAPI\Client\Model\PayRunSuperBatchModel[]|null + */ + public function getSuperPayments() + { + return $this->container['super_payments']; + } + + /** + * Sets super_payments + * + * @param \OpenAPI\Client\Model\PayRunSuperBatchModel[]|null $super_payments + * + * @return self + */ + public function setSuperPayments($super_payments) + { + if (is_null($super_payments)) { + throw new \InvalidArgumentException('non-nullable super_payments cannot be null'); + } + $this->container['super_payments'] = $super_payments; + + return $this; + } + /** * Gets is_first_finalisation * diff --git a/src/lib/Model/BusinessLeaveSettingsModel.php b/src/lib/Model/PayRunSuperBatchModel.php similarity index 77% rename from src/lib/Model/BusinessLeaveSettingsModel.php rename to src/lib/Model/PayRunSuperBatchModel.php index 33e6870..d2e35da 100644 --- a/src/lib/Model/BusinessLeaveSettingsModel.php +++ b/src/lib/Model/PayRunSuperBatchModel.php @@ -1,6 +1,6 @@ */ -class BusinessLeaveSettingsModel implements ModelInterface, ArrayAccess, \JsonSerializable +class PayRunSuperBatchModel implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -49,7 +49,7 @@ class BusinessLeaveSettingsModel implements ModelInterface, ArrayAccess, \JsonSe * * @var string */ - protected static $openAPIModelName = 'BusinessLeaveSettingsModel'; + protected static $openAPIModelName = 'PayRunSuperBatchModel'; /** * Array of property to type mappings. Used for (de)serialization @@ -57,7 +57,8 @@ class BusinessLeaveSettingsModel implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ - 'leave_calculation_method' => 'string' + 'super_interchange_id' => 'int', + 'description' => 'string' ]; /** @@ -68,7 +69,8 @@ class BusinessLeaveSettingsModel implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ - 'leave_calculation_method' => null + 'super_interchange_id' => 'int32', + 'description' => null ]; /** @@ -77,7 +79,8 @@ class BusinessLeaveSettingsModel implements ModelInterface, ArrayAccess, \JsonSe * @var boolean[] */ protected static array $openAPINullables = [ - 'leave_calculation_method' => false + 'super_interchange_id' => false, + 'description' => false ]; /** @@ -166,7 +169,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'leave_calculation_method' => 'leaveCalculationMethod' + 'super_interchange_id' => 'superInterchangeId', + 'description' => 'description' ]; /** @@ -175,7 +179,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'leave_calculation_method' => 'setLeaveCalculationMethod' + 'super_interchange_id' => 'setSuperInterchangeId', + 'description' => 'setDescription' ]; /** @@ -184,7 +189,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'leave_calculation_method' => 'getLeaveCalculationMethod' + 'super_interchange_id' => 'getSuperInterchangeId', + 'description' => 'getDescription' ]; /** @@ -228,21 +234,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LEAVE_CALCULATION_METHOD_FULL_YEAR365 = 'FullYear365'; - public const LEAVE_CALCULATION_METHOD_WORKDAYS261 = 'Workdays261'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLeaveCalculationMethodAllowableValues() - { - return [ - self::LEAVE_CALCULATION_METHOD_FULL_YEAR365, - self::LEAVE_CALCULATION_METHOD_WORKDAYS261, - ]; - } /** * Associative array for storing property values @@ -259,7 +250,8 @@ public function getLeaveCalculationMethodAllowableValues() */ public function __construct(array $data = null) { - $this->setIfExists('leave_calculation_method', $data ?? [], null); + $this->setIfExists('super_interchange_id', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); } /** @@ -289,15 +281,6 @@ public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getLeaveCalculationMethodAllowableValues(); - if (!is_null($this->container['leave_calculation_method']) && !in_array($this->container['leave_calculation_method'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'leave_calculation_method', must be one of '%s'", - $this->container['leave_calculation_method'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -314,38 +297,55 @@ public function valid() /** - * Gets leave_calculation_method + * Gets super_interchange_id * - * @return string|null + * @return int|null */ - public function getLeaveCalculationMethod() + public function getSuperInterchangeId() { - return $this->container['leave_calculation_method']; + return $this->container['super_interchange_id']; } /** - * Sets leave_calculation_method + * Sets super_interchange_id * - * @param string|null $leave_calculation_method + * @param int|null $super_interchange_id * * @return self */ - public function setLeaveCalculationMethod($leave_calculation_method) + public function setSuperInterchangeId($super_interchange_id) { - if (is_null($leave_calculation_method)) { - throw new \InvalidArgumentException('non-nullable leave_calculation_method cannot be null'); + if (is_null($super_interchange_id)) { + throw new \InvalidArgumentException('non-nullable super_interchange_id cannot be null'); } - $allowedValues = $this->getLeaveCalculationMethodAllowableValues(); - if (!in_array($leave_calculation_method, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'leave_calculation_method', must be one of '%s'", - $leave_calculation_method, - implode("', '", $allowedValues) - ) - ); + $this->container['super_interchange_id'] = $super_interchange_id; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); } - $this->container['leave_calculation_method'] = $leave_calculation_method; + $this->container['description'] = $description; return $this; } diff --git a/src/lib/Model/RecoverPasswordModel.php b/src/lib/Model/RecoverPasswordModel.php index 806f964..b4f0d39 100644 --- a/src/lib/Model/RecoverPasswordModel.php +++ b/src/lib/Model/RecoverPasswordModel.php @@ -353,6 +353,7 @@ public function getModelName() public const MESSAGE_TYPE_EMAIL_ADDRESS_CONFIRM_CHANGED = 'EmailAddressConfirmChanged'; public const MESSAGE_TYPE_RECOVERY_EMAIL_ADDRESS_CHANGED = 'RecoveryEmailAddressChanged'; public const MESSAGE_TYPE_RECOVERY_EMAIL_ADDRESS_CONFIRM_CHANGED = 'RecoveryEmailAddressConfirmChanged'; + public const MESSAGE_TYPE_FRAUD_PROTECTION_CHECK_RESULT = 'FraudProtectionCheckResult'; /** * Gets allowable values of the enum @@ -481,6 +482,7 @@ public function getMessageTypeAllowableValues() self::MESSAGE_TYPE_EMAIL_ADDRESS_CONFIRM_CHANGED, self::MESSAGE_TYPE_RECOVERY_EMAIL_ADDRESS_CHANGED, self::MESSAGE_TYPE_RECOVERY_EMAIL_ADDRESS_CONFIRM_CHANGED, + self::MESSAGE_TYPE_FRAUD_PROTECTION_CHECK_RESULT, ]; } diff --git a/src/lib/Model/ReportAccessModel.php b/src/lib/Model/ReportAccessModel.php index 61024b1..b43c456 100644 --- a/src/lib/Model/ReportAccessModel.php +++ b/src/lib/Model/ReportAccessModel.php @@ -340,6 +340,7 @@ public function getModelName() public const SPECIFIC_REPORTS_PAY_RUN_FPS_REPORT = 'PayRunFpsReport'; public const SPECIFIC_REPORTS_PORTABLE_LONG_SERVICE_LEAVE_REPORT = 'PortableLongServiceLeaveReport'; public const SPECIFIC_REPORTS_UK_TAX_AND_NI_BANDWIDTHS_REPORT = 'UkTaxAndNiBandwidthsReport'; + public const SPECIFIC_REPORTS_CUSTOMISABLE_PAYROLL_REPORT = 'CustomisablePayrollReport'; /** * Gets allowable values of the enum @@ -460,6 +461,7 @@ public function getSpecificReportsAllowableValues() self::SPECIFIC_REPORTS_PAY_RUN_FPS_REPORT, self::SPECIFIC_REPORTS_PORTABLE_LONG_SERVICE_LEAVE_REPORT, self::SPECIFIC_REPORTS_UK_TAX_AND_NI_BANDWIDTHS_REPORT, + self::SPECIFIC_REPORTS_CUSTOMISABLE_PAYROLL_REPORT, ]; } diff --git a/src/lib/Model/SetWhiteLabelFeatureAccessModel.php b/src/lib/Model/SetWhiteLabelFeatureAccessModel.php index 99610f7..e067667 100644 --- a/src/lib/Model/SetWhiteLabelFeatureAccessModel.php +++ b/src/lib/Model/SetWhiteLabelFeatureAccessModel.php @@ -289,7 +289,6 @@ public function getModelName() public const FEATURE_SSO_FOR_MULTIPLE_BUSINESSES_ALLOWED = 'SsoForMultipleBusinessesAllowed'; public const FEATURE_STP_PHASE2 = 'StpPhase2'; public const FEATURE_PEOPLES_PENSION_REPORT_FORMAT = 'PeoplesPensionReportFormat'; - public const FEATURE_RTI_CUSTOM_EMAIL_ADDRESS = 'RtiCustomEmailAddress'; public const FEATURE_STANDARD_LIFE_PENSION_CONTRIBUTIONS_REPORT = 'StandardLifePensionContributionsReport'; public const FEATURE_OVERRIDE_STP2_AND_CONTINUE_WITH_STP1 = 'OverrideStp2AndContinueWithStp1'; public const FEATURE_STP_POLLING_DELAY = 'STPPollingDelay'; @@ -375,11 +374,13 @@ public function getModelName() public const FEATURE_RETURN_TO_WORK_LEAVE = 'ReturnToWorkLeave'; public const FEATURE_ADDITIONAL_SEA_PAYSLIP_SETTINGS = 'AdditionalSEAPayslipSettings'; public const FEATURE_DELETE_PAY_RUN_DEADLOCK_AND_FOREIGN_KEY_FIX = 'DeletePayRunDeadlockAndForeignKeyFix'; + public const FEATURE_FIX_DELETE_TABLES_RELATED_TO_EMPLOYEE_SP752 = 'FixDeleteTablesRelatedToEmployee_SP752'; public const FEATURE_SICK_REASON_REPORT = 'SickReasonReport'; public const FEATURE_UPDATED_SANTANDER_BACS_PAYMENT = 'UpdatedSantanderBacsPayment'; public const FEATURE_DUPLICATE_NI_RECORD_FIX = 'DuplicateNIRecordFix'; public const FEATURE_INCORRECT_P45_MONTH_FOR_T0_TAX_CODE_FIX = 'IncorrectP45MonthForT0TaxCodeFix'; public const FEATURE_USE_SPLIT_BILLING_ENTITLEMENTS_COMMAND = 'UseSplitBillingEntitlementsCommand'; + public const FEATURE_STAPLED_SUPER_FUND = 'StapledSuperFund'; public const FEATURE_YTD_INCORRECT_BACK_CALC_NUMBERS_BUG_FIX = 'YTDIncorrectBackCalcNumbersBugFix'; public const FEATURE_SET_DEFAULT_BILLING_PLAN_BY_NAME_IF_NEW_WL = 'SetDefaultBillingPlanByNameIfNewWL'; public const FEATURE_PAYR495_FIX_FOR_CONTEXT_NOT_SET_CORRECTLY = 'PAYR495_FixForContextNotSetCorrectly'; @@ -413,7 +414,6 @@ public function getModelName() public const FEATURE_UK_PENSION_ROUNDING_FIX = 'UkPensionRoundingFix'; public const FEATURE_DASHBOARD_QBO_OPEN_LINKS_DIRECTLY_PRT145 = 'DashboardQboOpenLinksDirectly_PRT145'; public const FEATURE_USE_NEW_AUTH_HANDLER_FOR_DEPUTY_KOUNTA_SQUARE_IN394 = 'UseNewAuthHandlerForDeputyKountaSquare_IN394'; - public const FEATURE_IN406_REVOKE_XERO_TOKEN = 'IN406_RevokeXeroToken'; public const FEATURE_VNGRS32_KAFKA_PAYSLIPS_PUBLISHED_NOTIFICATION = 'VNGRS32_KafkaPayslipsPublishedNotification'; public const FEATURE_AUTOMATE_PUBLIC_HOLIDAY_NOT_WORKED = 'AutomatePublicHolidayNotWorked'; public const FEATURE_UK_BANK_ACCOUNT_NUMBER_VALIDATIONS = 'UkBankAccountNumberValidations'; @@ -421,6 +421,7 @@ public function getModelName() public const FEATURE_DIRECTOR_YTD_LEL_FIX = 'DirectorYtdLelFix'; public const FEATURE_UK_GENERATE_EXB_NULL_TO_DATE_FIX = 'UkGenerateExbNullToDateFix'; public const FEATURE_USE_REDIS_TO_STORE_OPEN_ID_DATA_PRT148 = 'UseRedisToStoreOpenIdData_PRT148'; + public const FEATURE_AP436_EMPLOYING_ENTITIES_MANAGEMENT_PAGE_FIX = 'AP436_EmployingEntitiesManagementPageFix'; public const FEATURE_UK_EXTERNAL_ID_ON_PAY_CATEGORIES_REPORT = 'UkExternalIdOnPayCategoriesReport'; public const FEATURE_TIMESHEET_DIMENSIONS_API_BULK_ENDPOINTS_HORT117 = 'TimesheetDimensions_APIBulkEndpoints_HORT117'; public const FEATURE_DAILY_PAY_AGGREGATION_HORT96 = 'DailyPayAggregation_HORT96'; @@ -434,20 +435,60 @@ public function getModelName() public const FEATURE_NP119_IRD_ARREARS_PAY_SCHEDULE = 'NP119_IRDArrearsPaySchedule'; public const FEATURE_USE_NEW_AUTH_HANDLER_FOR_XERO_ZOHO_BC_AC182 = 'UseNewAuthHandlerForXeroZohoBC_AC182'; public const FEATURE_NP147_NZ_RSE_SICK_LEAVE = 'NP147_NzRSESickLeave'; + public const FEATURE_NP208_CHECK_PARENTAL_LEAVE_RULES_APPLY = 'NP208_CheckParentalLeaveRulesApply'; public const FEATURE_CLOCK_ON_CLOCK_OFF_API_UTC_OFFSET_PRECEDENCE_TS66 = 'ClockOnClockOffApiUtcOffsetPrecedence_TS66'; public const FEATURE_PARTNER_DASHBOARD_AUTOMATED_NOTIFICATION = 'PartnerDashboardAutomatedNotification'; public const FEATURE_QBO_ACCOUNTING_TOKEN_REFRESH_AC199 = 'QboAccountingTokenRefresh_AC199'; + public const FEATURE_UK_CUSTOMISABLE_REPORTS = 'UkCustomisableReports'; + public const FEATURE_AIOP_REVIEW_AND_APPROVE_PAY_RUN_FOX_49 = 'AiopReviewAndApprovePayRun_Fox_49'; public const FEATURE_VNGRS38_TIMESHEET_CLASSIFICATION_RANK_EQUAL_EMPLOYEE_CLASSIFICATION_RANK = 'VNGRS38_TimesheetClassificationRankEqualEmployeeClassificationRank'; public const FEATURE_UK_INCLUDE_TERMINATED_EMPLOYEES_PREU476 = 'UkIncludeTerminatedEmployees_PREU476'; + public const FEATURE_UPDATE_CPF_REPORT_TO_CONTAIN_EMPLOYEE_ID_AND_LEGAL_STATUS_AND_OW_AND_AW_SP665 = 'UpdateCpfReportToContainEmployeeIdAndLegalStatusAndOwAndAw_SP665'; public const FEATURE_ALLOW_MULTIPLE_FEATURE_FLAGS_USED_ATTRIBUTES = 'AllowMultipleFeatureFlagsUsedAttributes'; public const FEATURE_NP139_LEAVE_CONVERSION_ROUNDING = 'NP139_LeaveConversionRounding'; public const FEATURE_QUICKBOOKS_FTU_USE_NEW_URL_WITH_EXTRAS_AC258 = 'QuickbooksFTU_UseNewURLWithExtras_AC258'; public const FEATURE_NP124_CASUAL_EMPLOYMENT_TYPE_SYNC = 'NP124_CasualEmploymentTypeSync'; public const FEATURE_QBO_ACCOUNTS_CONNECTION_URL_AC198 = 'QboAccountsConnectionUrl_AC198'; - public const FEATURE_SPLIT_O_AUTH_REPOSITORIES_AC220 = 'SplitOAuthRepositories_AC220'; public const FEATURE_STOP_SYNC_PAY_CATEGORY_FROM_XERO = 'StopSyncPayCategoryFromXero'; public const FEATURE_STOP_SYNC_LEAVE_CATEGORY_FROM_XERO = 'StopSyncLeaveCategoryFromXero'; public const FEATURE_REMOVE_CREDENTIALS_PROVIDER_AC59 = 'RemoveCredentialsProvider_AC59'; + public const FEATURE_PAY_RUN_SUPER_AP491 = 'PayRunSuper_AP491'; + public const FEATURE_SG_CPFAW_CAPPED_DUE_TO_MULTIPLE_PAYRUNS_SP652 = 'SgCPFAWCappedDueToMultiplePayruns_SP652'; + public const FEATURE_NP191_LEAVE_BALANCES_REPORT_NZ_SPECIFIC_UNIT_CONVERSION = 'NP191_LeaveBalancesReportNzSpecificUnitConversion'; + public const FEATURE_REMOVE_REBATES_FROM_NET_TO_GROSS_CALCULATION = 'RemoveRebatesFromNetToGrossCalculation'; + public const FEATURE_NP182_DATE_RESTRICT_CALCULATED_ACCRUAL_LAST_PAY_RUN = 'NP182_DateRestrictCalculatedAccrualLastPayRun'; + public const FEATURE_NP195_ADDITIONAL_RATE_UNIT_TYPES_FOR_GET_TOTAL_DAYS_WORKED = 'NP195_AdditionalRateUnitTypesForGetTotalDaysWorked'; + public const FEATURE_NP94_REMOVE_EXISTING_PUBLIC_HOLIDAY_WORKED = 'NP94_RemoveExistingPublicHolidayWorked'; + public const FEATURE_FIX_QBO_BUSINESS_JOURNAL_SERVICE_PRT494 = 'FixQBOBusinessJournalService_PRT494'; + public const FEATURE_TS136_ROSTER_NOTIFICATION_WRONG_USER = 'TS136_Roster_Notification_Wrong_User'; + public const FEATURE_SORT_TIME_SHEETS_EXPORT_BY_DATE_TIME_TS111 = 'SortTimeSheetsExportByDateTime_TS111'; + public const FEATURE_NP96_ADVANCED_WORK_HOURS_FOR_NZ = 'NP96_AdvancedWorkHoursForNZ'; + public const FEATURE_SBR_SOFTWARE_ID_FIX_AP517 = 'SBRSoftwareIdFix_AP517'; + public const FEATURE_IMPROVE_DELETE_REPORT_PACK_PROCESS_TS156 = 'ImproveDeleteReportPackProcess_TS156'; + public const FEATURE_RECALCULATE_PAY_RUN_WHEN_PAY_PERIOD_IS_ADJUSTED_SP674 = 'RecalculatePayRunWhenPayPeriodIsAdjusted_SP674'; + public const FEATURE_NP146_REMOVE_IRREGULAR_EMP_CALCULATE_HOLIDAY_PAY_TERMINATION = 'NP146_RemoveIrregularEmpCalculateHolidayPayTermination'; + public const FEATURE_EXPIRED_PAY_RUN_INCLUSIONS_IN_PAY_RUN_BUG_FIX_PREU600 = 'ExpiredPayRunInclusionsInPayRunBugFix_PREU600'; + public const FEATURE_NP275_PAY_RUN_BATCH_FILTER_CONVERSION = 'NP275_PayRunBatchFilterConversion'; + public const FEATURE_NP170_LEAVE_COMMAND_ENHANCEMENTS = 'NP170_LeaveCommandEnhancements'; + public const FEATURE_PREVENT_PAY_CATEGORY_CHANGE_FROM_FIXED_RATE_TS195 = 'PreventPayCategoryChangeFromFixedRate_TS195'; + public const FEATURE_LEAVE_PAID_OUT_ON_TERMINATION_BUG_FIX_TS206 = 'LeavePaidOutOnTerminationBugFix_TS206'; + public const FEATURE_NP244_CASUAL_EMPLOYEE_NOT_CALCULATE_HOLIDAY_PAY_TERMINATION = 'NP244_CasualEmployeeNotCalculateHolidayPayTermination'; + public const FEATURE_MAP_MISSING_B5_REFUND_TO_CP22_A_FORM_SP724 = 'MapMissingB5RefundToCP22AForm_SP724'; + public const FEATURE_LOAD_MAX_WAGE_SUBJECT_TO_CPF_SP748 = 'LoadMaxWageSubjectToCpf_SP748'; + public const FEATURE_USE_MY_TAX_ENGINE_FOR_STATUTORY_PAGE_SP764 = 'UseMyTaxEngineForStatutoryPage_SP764'; + public const FEATURE_AP243_PAYG_CALC_FIX = 'AP243_PaygCalcFix'; + public const FEATURE_FPS_PENSION_YTD_FIGURES_BUG_FIX_PREU509 = 'FpsPensionYtdFiguresBugFix_PREU509'; + public const FEATURE_SP640_MAKE_IRAS_LODGEMENT_ERROR_MESSAGE_DESCRIPTIVE = 'Sp640_MakeIrasLodgementErrorMessageDescriptive'; + public const FEATURE_AP528_TIMESHEET_IMPORT_FIX = 'AP528_TimesheetImportFix'; + public const FEATURE_WM2601_REMOVE_REDUNDANT_LEAVE_ACCRUAL_QUERY_CONDITIONS = 'WM2601_RemoveRedundantLeaveAccrualQueryConditions'; + public const FEATURE_PREVENT_NEGATIVE_LEAVE_BALANCES_FOR_AIO_BUSINESS_WM2485 = 'PreventNegativeLeaveBalancesForAioBusiness_WM2485'; + public const FEATURE_SP727_FIX_CP38_NOT_BEING_MAPPED_TO_CP22_A_FORM = 'SP727_FixCP38NotBeingMappedToCP22AForm'; + public const FEATURE_SP728_FIX_ZAKAT_PAID_VIA_DEDUCTION_MISSING_ON_CP22_A_FORM = 'SP728_FixZakatPaidViaDeductionMissingOnCP22AForm'; + public const FEATURE_FIX_LEAVE_TAKEN_OVER_PAYMENT_TS142 = 'FixLeaveTakenOverPayment_TS142'; + public const FEATURE_FIX_ROSTER_VS_TIMESHEET_COMPARISON_REPORT_FOR_RESTRICTED_USER_TS171 = 'FixRosterVsTimesheetComparisonReportForRestrictedUser_TS171'; + public const FEATURE_SG_RESIDENTIAL_ADDRESS_VALIDATION2023_SP607 = 'SGResidentialAddressValidation2023_SP607'; + public const FEATURE_UK52_WEEK_EARNINGS_FIX_PREU476 = 'Uk52WeekEarningsFix_PREU476'; + public const FEATURE_QUICK_BOOKS_TAX_CODES_BY_REST_AC341 = 'QuickBooksTaxCodesByREST_AC341'; /** * Gets allowable values of the enum @@ -512,7 +553,6 @@ public function getFeatureAllowableValues() self::FEATURE_SSO_FOR_MULTIPLE_BUSINESSES_ALLOWED, self::FEATURE_STP_PHASE2, self::FEATURE_PEOPLES_PENSION_REPORT_FORMAT, - self::FEATURE_RTI_CUSTOM_EMAIL_ADDRESS, self::FEATURE_STANDARD_LIFE_PENSION_CONTRIBUTIONS_REPORT, self::FEATURE_OVERRIDE_STP2_AND_CONTINUE_WITH_STP1, self::FEATURE_STP_POLLING_DELAY, @@ -598,11 +638,13 @@ public function getFeatureAllowableValues() self::FEATURE_RETURN_TO_WORK_LEAVE, self::FEATURE_ADDITIONAL_SEA_PAYSLIP_SETTINGS, self::FEATURE_DELETE_PAY_RUN_DEADLOCK_AND_FOREIGN_KEY_FIX, + self::FEATURE_FIX_DELETE_TABLES_RELATED_TO_EMPLOYEE_SP752, self::FEATURE_SICK_REASON_REPORT, self::FEATURE_UPDATED_SANTANDER_BACS_PAYMENT, self::FEATURE_DUPLICATE_NI_RECORD_FIX, self::FEATURE_INCORRECT_P45_MONTH_FOR_T0_TAX_CODE_FIX, self::FEATURE_USE_SPLIT_BILLING_ENTITLEMENTS_COMMAND, + self::FEATURE_STAPLED_SUPER_FUND, self::FEATURE_YTD_INCORRECT_BACK_CALC_NUMBERS_BUG_FIX, self::FEATURE_SET_DEFAULT_BILLING_PLAN_BY_NAME_IF_NEW_WL, self::FEATURE_PAYR495_FIX_FOR_CONTEXT_NOT_SET_CORRECTLY, @@ -636,7 +678,6 @@ public function getFeatureAllowableValues() self::FEATURE_UK_PENSION_ROUNDING_FIX, self::FEATURE_DASHBOARD_QBO_OPEN_LINKS_DIRECTLY_PRT145, self::FEATURE_USE_NEW_AUTH_HANDLER_FOR_DEPUTY_KOUNTA_SQUARE_IN394, - self::FEATURE_IN406_REVOKE_XERO_TOKEN, self::FEATURE_VNGRS32_KAFKA_PAYSLIPS_PUBLISHED_NOTIFICATION, self::FEATURE_AUTOMATE_PUBLIC_HOLIDAY_NOT_WORKED, self::FEATURE_UK_BANK_ACCOUNT_NUMBER_VALIDATIONS, @@ -644,6 +685,7 @@ public function getFeatureAllowableValues() self::FEATURE_DIRECTOR_YTD_LEL_FIX, self::FEATURE_UK_GENERATE_EXB_NULL_TO_DATE_FIX, self::FEATURE_USE_REDIS_TO_STORE_OPEN_ID_DATA_PRT148, + self::FEATURE_AP436_EMPLOYING_ENTITIES_MANAGEMENT_PAGE_FIX, self::FEATURE_UK_EXTERNAL_ID_ON_PAY_CATEGORIES_REPORT, self::FEATURE_TIMESHEET_DIMENSIONS_API_BULK_ENDPOINTS_HORT117, self::FEATURE_DAILY_PAY_AGGREGATION_HORT96, @@ -657,20 +699,60 @@ public function getFeatureAllowableValues() self::FEATURE_NP119_IRD_ARREARS_PAY_SCHEDULE, self::FEATURE_USE_NEW_AUTH_HANDLER_FOR_XERO_ZOHO_BC_AC182, self::FEATURE_NP147_NZ_RSE_SICK_LEAVE, + self::FEATURE_NP208_CHECK_PARENTAL_LEAVE_RULES_APPLY, self::FEATURE_CLOCK_ON_CLOCK_OFF_API_UTC_OFFSET_PRECEDENCE_TS66, self::FEATURE_PARTNER_DASHBOARD_AUTOMATED_NOTIFICATION, self::FEATURE_QBO_ACCOUNTING_TOKEN_REFRESH_AC199, + self::FEATURE_UK_CUSTOMISABLE_REPORTS, + self::FEATURE_AIOP_REVIEW_AND_APPROVE_PAY_RUN_FOX_49, self::FEATURE_VNGRS38_TIMESHEET_CLASSIFICATION_RANK_EQUAL_EMPLOYEE_CLASSIFICATION_RANK, self::FEATURE_UK_INCLUDE_TERMINATED_EMPLOYEES_PREU476, + self::FEATURE_UPDATE_CPF_REPORT_TO_CONTAIN_EMPLOYEE_ID_AND_LEGAL_STATUS_AND_OW_AND_AW_SP665, self::FEATURE_ALLOW_MULTIPLE_FEATURE_FLAGS_USED_ATTRIBUTES, self::FEATURE_NP139_LEAVE_CONVERSION_ROUNDING, self::FEATURE_QUICKBOOKS_FTU_USE_NEW_URL_WITH_EXTRAS_AC258, self::FEATURE_NP124_CASUAL_EMPLOYMENT_TYPE_SYNC, self::FEATURE_QBO_ACCOUNTS_CONNECTION_URL_AC198, - self::FEATURE_SPLIT_O_AUTH_REPOSITORIES_AC220, self::FEATURE_STOP_SYNC_PAY_CATEGORY_FROM_XERO, self::FEATURE_STOP_SYNC_LEAVE_CATEGORY_FROM_XERO, self::FEATURE_REMOVE_CREDENTIALS_PROVIDER_AC59, + self::FEATURE_PAY_RUN_SUPER_AP491, + self::FEATURE_SG_CPFAW_CAPPED_DUE_TO_MULTIPLE_PAYRUNS_SP652, + self::FEATURE_NP191_LEAVE_BALANCES_REPORT_NZ_SPECIFIC_UNIT_CONVERSION, + self::FEATURE_REMOVE_REBATES_FROM_NET_TO_GROSS_CALCULATION, + self::FEATURE_NP182_DATE_RESTRICT_CALCULATED_ACCRUAL_LAST_PAY_RUN, + self::FEATURE_NP195_ADDITIONAL_RATE_UNIT_TYPES_FOR_GET_TOTAL_DAYS_WORKED, + self::FEATURE_NP94_REMOVE_EXISTING_PUBLIC_HOLIDAY_WORKED, + self::FEATURE_FIX_QBO_BUSINESS_JOURNAL_SERVICE_PRT494, + self::FEATURE_TS136_ROSTER_NOTIFICATION_WRONG_USER, + self::FEATURE_SORT_TIME_SHEETS_EXPORT_BY_DATE_TIME_TS111, + self::FEATURE_NP96_ADVANCED_WORK_HOURS_FOR_NZ, + self::FEATURE_SBR_SOFTWARE_ID_FIX_AP517, + self::FEATURE_IMPROVE_DELETE_REPORT_PACK_PROCESS_TS156, + self::FEATURE_RECALCULATE_PAY_RUN_WHEN_PAY_PERIOD_IS_ADJUSTED_SP674, + self::FEATURE_NP146_REMOVE_IRREGULAR_EMP_CALCULATE_HOLIDAY_PAY_TERMINATION, + self::FEATURE_EXPIRED_PAY_RUN_INCLUSIONS_IN_PAY_RUN_BUG_FIX_PREU600, + self::FEATURE_NP275_PAY_RUN_BATCH_FILTER_CONVERSION, + self::FEATURE_NP170_LEAVE_COMMAND_ENHANCEMENTS, + self::FEATURE_PREVENT_PAY_CATEGORY_CHANGE_FROM_FIXED_RATE_TS195, + self::FEATURE_LEAVE_PAID_OUT_ON_TERMINATION_BUG_FIX_TS206, + self::FEATURE_NP244_CASUAL_EMPLOYEE_NOT_CALCULATE_HOLIDAY_PAY_TERMINATION, + self::FEATURE_MAP_MISSING_B5_REFUND_TO_CP22_A_FORM_SP724, + self::FEATURE_LOAD_MAX_WAGE_SUBJECT_TO_CPF_SP748, + self::FEATURE_USE_MY_TAX_ENGINE_FOR_STATUTORY_PAGE_SP764, + self::FEATURE_AP243_PAYG_CALC_FIX, + self::FEATURE_FPS_PENSION_YTD_FIGURES_BUG_FIX_PREU509, + self::FEATURE_SP640_MAKE_IRAS_LODGEMENT_ERROR_MESSAGE_DESCRIPTIVE, + self::FEATURE_AP528_TIMESHEET_IMPORT_FIX, + self::FEATURE_WM2601_REMOVE_REDUNDANT_LEAVE_ACCRUAL_QUERY_CONDITIONS, + self::FEATURE_PREVENT_NEGATIVE_LEAVE_BALANCES_FOR_AIO_BUSINESS_WM2485, + self::FEATURE_SP727_FIX_CP38_NOT_BEING_MAPPED_TO_CP22_A_FORM, + self::FEATURE_SP728_FIX_ZAKAT_PAID_VIA_DEDUCTION_MISSING_ON_CP22_A_FORM, + self::FEATURE_FIX_LEAVE_TAKEN_OVER_PAYMENT_TS142, + self::FEATURE_FIX_ROSTER_VS_TIMESHEET_COMPARISON_REPORT_FOR_RESTRICTED_USER_TS171, + self::FEATURE_SG_RESIDENTIAL_ADDRESS_VALIDATION2023_SP607, + self::FEATURE_UK52_WEEK_EARNINGS_FIX_PREU476, + self::FEATURE_QUICK_BOOKS_TAX_CODES_BY_REST_AC341, ]; }