Skip to content

Commit

Permalink
Regenerate after fix to Payroll Category
Browse files Browse the repository at this point in the history
  • Loading branch information
Healyhatman committed Feb 22, 2024
1 parent 00e6656 commit cee3cad
Show file tree
Hide file tree
Showing 11 changed files with 314 additions and 1,873 deletions.
33 changes: 24 additions & 9 deletions src/lib/Api/UserApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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();
Expand Down Expand Up @@ -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];
Expand All @@ -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())
Expand Down Expand Up @@ -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 = [];
Expand All @@ -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
) ?? []);



Expand Down
20 changes: 20 additions & 0 deletions src/lib/Model/AuInitialEarningsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down
20 changes: 20 additions & 0 deletions src/lib/Model/AuPayCategoryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down
70 changes: 70 additions & 0 deletions src/lib/Model/FinalisePayRunOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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
*
Expand Down
Loading

0 comments on commit cee3cad

Please sign in to comment.