From 28ee5f718e1bf0eda0925595f9124d047cda60fb Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Thu, 17 Aug 2023 14:30:30 +0200 Subject: [PATCH] (feat) update the SDK according to the openapi spec (#44) (feat) update the SDK according to the openapi spec --- CHANGELOG.md | 40 +- Resources/harvest-openapi.yaml | 53 +- doc/index.md | 3 + generated/Client.php | 611 +++++++++--------- generated/Endpoint/ClientsExpensesReport.php | 14 +- generated/Endpoint/ClientsTimeReport.php | 14 +- generated/Endpoint/CreateBillableRate.php | 10 +- generated/Endpoint/CreateClient.php | 4 +- generated/Endpoint/CreateContact.php | 4 +- generated/Endpoint/CreateCostRate.php | 10 +- generated/Endpoint/CreateEstimate.php | 4 +- .../Endpoint/CreateEstimateItemCategory.php | 4 +- generated/Endpoint/CreateEstimateMessage.php | 4 +- generated/Endpoint/CreateExpense.php | 4 +- generated/Endpoint/CreateExpenseCategory.php | 4 +- generated/Endpoint/CreateInvoice.php | 4 +- .../Endpoint/CreateInvoiceItemCategory.php | 4 +- generated/Endpoint/CreateInvoiceMessage.php | 4 +- generated/Endpoint/CreateInvoicePayment.php | 4 +- generated/Endpoint/CreateProject.php | 4 +- generated/Endpoint/CreateRole.php | 4 +- generated/Endpoint/CreateTask.php | 4 +- generated/Endpoint/CreateTaskAssignment.php | 4 +- generated/Endpoint/CreateTimeEntry.php | 8 +- generated/Endpoint/CreateUser.php | 4 +- generated/Endpoint/CreateUserAssignment.php | 4 +- generated/Endpoint/DeleteClient.php | 4 +- generated/Endpoint/DeleteContact.php | 4 +- generated/Endpoint/DeleteEstimate.php | 4 +- .../Endpoint/DeleteEstimateItemCategory.php | 4 +- generated/Endpoint/DeleteEstimateMessage.php | 4 +- generated/Endpoint/DeleteExpense.php | 4 +- generated/Endpoint/DeleteExpenseCategory.php | 4 +- generated/Endpoint/DeleteInvoice.php | 4 +- .../Endpoint/DeleteInvoiceItemCategory.php | 4 +- generated/Endpoint/DeleteInvoiceMessage.php | 4 +- generated/Endpoint/DeleteInvoicePayment.php | 4 +- generated/Endpoint/DeleteProject.php | 7 +- generated/Endpoint/DeleteRole.php | 4 +- generated/Endpoint/DeleteTask.php | 4 +- generated/Endpoint/DeleteTaskAssignment.php | 4 +- generated/Endpoint/DeleteTimeEntry.php | 4 +- .../DeleteTimeEntryExternalReference.php | 4 +- generated/Endpoint/DeleteUser.php | 4 +- generated/Endpoint/DeleteUserAssignment.php | 4 +- .../Endpoint/ExpenseCategoriesReport.php | 14 +- .../Endpoint/ListActiveProjectAssignments.php | 17 +- ...nmentsForTheCurrentlyAuthenticatedUser.php | 13 +- .../ListAssignedTeammatesForSpecificUser.php | 15 +- .../ListBillableRatesForSpecificUser.php | 15 +- generated/Endpoint/ListClients.php | 19 +- generated/Endpoint/ListContacts.php | 19 +- .../Endpoint/ListCostRatesForSpecificUser.php | 15 +- .../Endpoint/ListEstimateItemCategories.php | 17 +- generated/Endpoint/ListEstimates.php | 23 +- generated/Endpoint/ListExpenseCategories.php | 19 +- generated/Endpoint/ListExpenses.php | 27 +- .../Endpoint/ListInvoiceItemCategories.php | 17 +- generated/Endpoint/ListInvoices.php | 25 +- .../Endpoint/ListMessagesForEstimate.php | 17 +- generated/Endpoint/ListMessagesForInvoice.php | 17 +- generated/Endpoint/ListPaymentsForInvoice.php | 17 +- generated/Endpoint/ListProjects.php | 21 +- generated/Endpoint/ListRoles.php | 15 +- generated/Endpoint/ListTaskAssignments.php | 19 +- .../ListTaskAssignmentsForSpecificProject.php | 17 +- generated/Endpoint/ListTasks.php | 19 +- generated/Endpoint/ListTimeEntries.php | 33 +- generated/Endpoint/ListUserAssignments.php | 21 +- .../ListUserAssignmentsForSpecificProject.php | 19 +- generated/Endpoint/ListUsers.php | 19 +- generated/Endpoint/ProjectBudgetReport.php | 12 +- generated/Endpoint/ProjectsExpensesReport.php | 14 +- generated/Endpoint/ProjectsTimeReport.php | 14 +- .../Endpoint/RestartStoppedTimeEntry.php | 4 +- generated/Endpoint/RetrieveBillableRate.php | 4 +- generated/Endpoint/RetrieveClient.php | 4 +- generated/Endpoint/RetrieveCompany.php | 4 +- generated/Endpoint/RetrieveContact.php | 4 +- generated/Endpoint/RetrieveCostRate.php | 4 +- generated/Endpoint/RetrieveEstimate.php | 4 +- .../Endpoint/RetrieveEstimateItemCategory.php | 4 +- generated/Endpoint/RetrieveExpense.php | 4 +- .../Endpoint/RetrieveExpenseCategory.php | 4 +- generated/Endpoint/RetrieveInvoice.php | 4 +- .../Endpoint/RetrieveInvoiceItemCategory.php | 4 +- ...essageSubjectAndBodyForSpecificInvoice.php | 10 +- generated/Endpoint/RetrieveProject.php | 4 +- generated/Endpoint/RetrieveRole.php | 4 +- generated/Endpoint/RetrieveTask.php | 4 +- generated/Endpoint/RetrieveTaskAssignment.php | 4 +- .../RetrieveTheCurrentlyAuthenticatedUser.php | 4 +- generated/Endpoint/RetrieveTimeEntry.php | 4 +- generated/Endpoint/RetrieveUser.php | 4 +- generated/Endpoint/RetrieveUserAssignment.php | 4 +- generated/Endpoint/StopRunningTimeEntry.php | 4 +- generated/Endpoint/TasksReport.php | 14 +- generated/Endpoint/TeamExpensesReport.php | 14 +- generated/Endpoint/TeamTimeReport.php | 14 +- generated/Endpoint/UninvoicedReport.php | 17 +- generated/Endpoint/UpdateClient.php | 4 +- generated/Endpoint/UpdateCompany.php | 4 +- generated/Endpoint/UpdateContact.php | 4 +- generated/Endpoint/UpdateEstimate.php | 4 +- .../Endpoint/UpdateEstimateItemCategory.php | 4 +- generated/Endpoint/UpdateExpense.php | 4 +- generated/Endpoint/UpdateExpenseCategory.php | 4 +- generated/Endpoint/UpdateInvoice.php | 4 +- .../Endpoint/UpdateInvoiceItemCategory.php | 4 +- generated/Endpoint/UpdateProject.php | 4 +- generated/Endpoint/UpdateRole.php | 4 +- generated/Endpoint/UpdateTask.php | 4 +- generated/Endpoint/UpdateTaskAssignment.php | 4 +- generated/Endpoint/UpdateTimeEntry.php | 4 +- generated/Endpoint/UpdateUser.php | 4 +- .../Endpoint/UpdateUserAssignedTeammates.php | 8 +- generated/Endpoint/UpdateUserAssignment.php | 4 +- generated/Model/Invoice.php | 29 + generated/Model/InvoiceMessage.php | 12 +- .../InvoicesInvoiceIdMessagesPostBody.php | 12 +- .../Model/InvoicesInvoiceIdPatchBody.php | 29 + generated/Model/InvoicesPostBody.php | 35 +- generated/Model/Teammate.php | 10 +- .../Model/UsersUserIdTeammatesPatchBody.php | 10 +- .../Normalizer/BillableRateNormalizer.php | 7 +- .../Normalizer/BillableRatesNormalizer.php | 7 +- generated/Normalizer/ClientNormalizer.php | 7 +- .../ClientsClientIdPatchBodyNormalizer.php | 7 +- generated/Normalizer/ClientsNormalizer.php | 7 +- .../Normalizer/ClientsPostBodyNormalizer.php | 7 +- generated/Normalizer/CompaniesNormalizer.php | 7 +- generated/Normalizer/CompanyNormalizer.php | 7 +- .../Normalizer/CompanyPatchBodyNormalizer.php | 7 +- .../Normalizer/ContactClientNormalizer.php | 7 +- generated/Normalizer/ContactNormalizer.php | 7 +- .../ContactsContactIdPatchBodyNormalizer.php | 7 +- generated/Normalizer/ContactsNormalizer.php | 7 +- .../Normalizer/ContactsPostBodyNormalizer.php | 7 +- generated/Normalizer/CostRateNormalizer.php | 7 +- generated/Normalizer/CostRatesNormalizer.php | 7 +- generated/Normalizer/ErrorNormalizer.php | 7 +- .../Normalizer/EstimateClientNormalizer.php | 7 +- .../Normalizer/EstimateCreatorNormalizer.php | 7 +- ...imateItemCategoryIdPatchBodyNormalizer.php | 7 +- .../EstimateItemCategoriesNormalizer.php | 7 +- ...timateItemCategoriesPostBodyNormalizer.php | 7 +- .../EstimateItemCategoryNormalizer.php | 7 +- .../Normalizer/EstimateLineItemNormalizer.php | 7 +- .../EstimateLineItemsNormalizer.php | 7 +- .../Normalizer/EstimateMessageNormalizer.php | 7 +- .../EstimateMessageRecipientNormalizer.php | 7 +- .../EstimateMessageRecipientsNormalizer.php | 7 +- .../Normalizer/EstimateMessagesNormalizer.php | 7 +- generated/Normalizer/EstimateNormalizer.php | 7 +- ...esEstimateIdMessagesPostBodyNormalizer.php | 7 +- ...ssagesPostBodyRecipientsItemNormalizer.php | 7 +- ...mateIdPatchBodyLineItemsItemNormalizer.php | 7 +- ...EstimatesEstimateIdPatchBodyNormalizer.php | 7 +- generated/Normalizer/EstimatesNormalizer.php | 7 +- ...timatesPostBodyLineItemsItemNormalizer.php | 7 +- .../EstimatesPostBodyNormalizer.php | 7 +- ...esExpenseCategoryIdPatchBodyNormalizer.php | 7 +- .../ExpenseCategoriesNormalizer.php | 7 +- .../ExpenseCategoriesPostBodyNormalizer.php | 7 +- .../Normalizer/ExpenseCategoryNormalizer.php | 7 +- .../Normalizer/ExpenseClientNormalizer.php | 7 +- .../ExpenseExpenseCategoryNormalizer.php | 7 +- .../Normalizer/ExpenseInvoiceNormalizer.php | 7 +- generated/Normalizer/ExpenseNormalizer.php | 7 +- .../Normalizer/ExpenseProjectNormalizer.php | 7 +- .../Normalizer/ExpenseReceiptNormalizer.php | 7 +- .../ExpenseReportsResultNormalizer.php | 7 +- .../ExpenseReportsResultsNormalizer.php | 7 +- .../Normalizer/ExpenseUserNormalizer.php | 7 +- .../ExpensesExpenseIdPatchBodyNormalizer.php | 7 +- generated/Normalizer/ExpensesNormalizer.php | 7 +- .../Normalizer/ExpensesPostBodyNormalizer.php | 7 +- .../Normalizer/InvoiceClientNormalizer.php | 7 +- .../Normalizer/InvoiceCreatorNormalizer.php | 7 +- .../Normalizer/InvoiceEstimateNormalizer.php | 7 +- ...voiceItemCategoryIdPatchBodyNormalizer.php | 7 +- .../InvoiceItemCategoriesNormalizer.php | 7 +- ...nvoiceItemCategoriesPostBodyNormalizer.php | 7 +- .../InvoiceItemCategoryNormalizer.php | 7 +- .../Normalizer/InvoiceLineItemNormalizer.php | 7 +- .../InvoiceLineItemProjectNormalizer.php | 7 +- .../Normalizer/InvoiceLineItemsNormalizer.php | 7 +- .../Normalizer/InvoiceMessageNormalizer.php | 7 +- .../InvoiceMessageRecipientNormalizer.php | 7 +- .../InvoiceMessageRecipientsNormalizer.php | 7 +- ...InvoiceMessageSubjectAndBodyNormalizer.php | 7 +- .../Normalizer/InvoiceMessagesNormalizer.php | 7 +- generated/Normalizer/InvoiceNormalizer.php | 32 +- .../Normalizer/InvoicePaymentNormalizer.php | 7 +- ...InvoicePaymentPaymentGatewayNormalizer.php | 7 +- .../Normalizer/InvoicePaymentsNormalizer.php | 7 +- .../Normalizer/InvoiceRetainerNormalizer.php | 7 +- ...cesInvoiceIdMessagesPostBodyNormalizer.php | 7 +- ...ssagesPostBodyRecipientsItemNormalizer.php | 7 +- ...oiceIdPatchBodyLineItemsItemNormalizer.php | 7 +- .../InvoicesInvoiceIdPatchBodyNormalizer.php | 48 +- ...cesInvoiceIdPaymentsPostBodyNormalizer.php | 7 +- generated/Normalizer/InvoicesNormalizer.php | 7 +- ...tBodyLineItemsImportExpensesNormalizer.php | 7 +- ...oicesPostBodyLineItemsImportNormalizer.php | 7 +- ...sPostBodyLineItemsImportTimeNormalizer.php | 7 +- ...nvoicesPostBodyLineItemsItemNormalizer.php | 7 +- .../Normalizer/InvoicesPostBodyNormalizer.php | 48 +- generated/Normalizer/JaneObjectNormalizer.php | 9 +- .../Normalizer/PaginationLinksNormalizer.php | 7 +- .../ProjectAssignmentClientNormalizer.php | 7 +- .../ProjectAssignmentNormalizer.php | 7 +- .../ProjectAssignmentProjectNormalizer.php | 7 +- .../ProjectAssignmentsNormalizer.php | 7 +- .../ProjectBudgetReportResultNormalizer.php | 7 +- .../ProjectBudgetReportResultsNormalizer.php | 7 +- .../Normalizer/ProjectClientNormalizer.php | 7 +- generated/Normalizer/ProjectNormalizer.php | 7 +- generated/Normalizer/ProjectsNormalizer.php | 7 +- .../Normalizer/ProjectsPostBodyNormalizer.php | 7 +- .../ProjectsProjectIdPatchBodyNormalizer.php | 7 +- ...ectIdTaskAssignmentsPostBodyNormalizer.php | 7 +- ...ntsTaskAssignmentIdPatchBodyNormalizer.php | 7 +- ...ectIdUserAssignmentsPostBodyNormalizer.php | 7 +- ...ntsUserAssignmentIdPatchBodyNormalizer.php | 7 +- generated/Normalizer/RoleNormalizer.php | 7 +- generated/Normalizer/RolesNormalizer.php | 7 +- .../Normalizer/RolesPostBodyNormalizer.php | 7 +- .../RolesRoleIdPatchBodyNormalizer.php | 7 +- .../Normalizer/TaskAssignmentNormalizer.php | 7 +- .../TaskAssignmentProjectNormalizer.php | 7 +- .../TaskAssignmentTaskNormalizer.php | 7 +- .../Normalizer/TaskAssignmentsNormalizer.php | 7 +- generated/Normalizer/TaskNormalizer.php | 7 +- generated/Normalizer/TasksNormalizer.php | 7 +- .../Normalizer/TasksPostBodyNormalizer.php | 7 +- .../TasksTaskIdPatchBodyNormalizer.php | 7 +- generated/Normalizer/TeammateNormalizer.php | 7 +- generated/Normalizer/TeammatesNormalizer.php | 7 +- .../TeammatesPatchResponseNormalizer.php | 7 +- .../Normalizer/TimeEntriesNormalizer.php | 7 +- ...iesPostBodyExternalReferenceNormalizer.php | 7 +- .../TimeEntriesPostBodyNormalizer.php | 7 +- ...IdPatchBodyExternalReferenceNormalizer.php | 7 +- ...eEntriesTimeEntryIdPatchBodyNormalizer.php | 7 +- .../Normalizer/TimeEntryClientNormalizer.php | 7 +- .../TimeEntryExternalReferenceNormalizer.php | 7 +- .../Normalizer/TimeEntryInvoiceNormalizer.php | 7 +- generated/Normalizer/TimeEntryNormalizer.php | 7 +- .../Normalizer/TimeEntryProjectNormalizer.php | 7 +- .../Normalizer/TimeEntryTaskNormalizer.php | 7 +- .../Normalizer/TimeEntryUserNormalizer.php | 7 +- .../TimeReportsResultNormalizer.php | 7 +- .../TimeReportsResultsNormalizer.php | 7 +- .../UninvoicedReportResultNormalizer.php | 7 +- .../UninvoicedReportResultsNormalizer.php | 7 +- .../Normalizer/UserAssignmentNormalizer.php | 7 +- .../UserAssignmentProjectNormalizer.php | 7 +- .../UserAssignmentUserNormalizer.php | 7 +- .../Normalizer/UserAssignmentsNormalizer.php | 7 +- generated/Normalizer/UserNormalizer.php | 7 +- generated/Normalizer/UsersNormalizer.php | 7 +- .../Normalizer/UsersPostBodyNormalizer.php | 7 +- ...sUserIdBillableRatesPostBodyNormalizer.php | 7 +- ...UsersUserIdCostRatesPostBodyNormalizer.php | 7 +- .../UsersUserIdPatchBodyNormalizer.php | 7 +- ...sersUserIdTeammatesPatchBodyNormalizer.php | 27 +- generated/Runtime/Client/BaseEndpoint.php | 2 +- generated/Runtime/Client/Client.php | 2 +- generated/Runtime/Client/EndpointTrait.php | 2 +- .../Normalizer/ReferenceNormalizer.php | 6 - phpunit.xml.dist | 1 + 272 files changed, 1827 insertions(+), 1117 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be49766..835e981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Changes between versions +## 6.3.0 (2023-08-17) + + * updated the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#27 in #44 + * updated the spec according to the current documentation + * fixed several definitions + ## 6.2.0 (2023-04-19) * upgrade to `janephp/open-api` 7.4 - * updated the SDK based on the latest [spec updates](jolicode/harvest-openapi-generator#26) in #43 + * updated the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#26 in #43 * support for the newly introduced pagination cursors * updated descriptions according to the docs * add `TimeReportsResult.weekly_capacity` and `TimeReportsResult.avatar_url` @@ -11,17 +17,17 @@ ## 6.1.0 (2022-11-12) - * updated the SDK based on the latest [spec updates](jolicode/harvest-openapi-generator#22) in #41 + * updated the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#22 in #41 * add support for `User.access_roles` as defined in https://help.getharvest.com/api-v2/users-api/users/users/#access-roles * remove the now non-working `User.is_admin` and `User.is_project_manager` booleans * add management of users assigned team mates, as defined in https://help.getharvest.com/api-v2/users-api/users/teammates/ * add the ability to retrieve message subject and body for specific invoices as defined in https://help.getharvest.com/api-v2/invoices-api/invoices/invoice-messages/#retrieve-invoice-message-subject-and-body-for-specific-invoice ## 6.0.0 (2022-08-04) - + * upgrade to `janephp/open-api` 7.3 * drop support for PHP <7.4 - * updated the SDK based on the latest [spec updates](jolicode/harvest-openapi-generator#20) + * updated the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#20 * added `Company.currency_code_display` and `Company.currency_symbol_display` * several fields of the `User` object have disappeared, due to the [API changes introduced in March](https://www.getharvest.com/blog/new-flexible-permissions#:~:text=The%20API%20has%20been%20updated%20to%20align%20with%20the%20new%20permissions%20features.).  @@ -29,12 +35,12 @@ * upgraded `janephp/open-api` from 6.3 to 7.1 - thanks @jdrieghe * added support for Symfony 6 - * updated the SDK based on the latest [spec updates](jolicode/harvest-openapi-generator#19) + * updated the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#19 * added support for `User.telephone` ## 5.1.0 (2021-08-03) - * updated the SDK based on the latest [spec updates](jolicode/harvest-openapi-generator#18) + * updated the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#18 * added `date_format` on the `Company` model * added `hours_without_timer` and `external_reference/account_id` in the `TaskAssignment` model @@ -101,26 +107,26 @@ * added the `Invoice` `recurring_invoice_id` attribute ## 2.0.0 (2019-10-28) -​ -* Upgrade Jane to 4.5 https://github.com/janephp/janephp/releases/tag/v4.5.3, the new generated classes have better PHPDoc​ -* Generate PSR-18 client instead of HttPlug client -* Support for cost and billable rates -* Removed the telephone property from the user model -* Added statement_key in the Client properties + + * Upgrade Jane to 4.5 https://github.com/janephp/janephp/releases/tag/v4.5.3, the new generated classes have better PHPDoc​ + * Generate PSR-18 client instead of HttPlug client + * Support for cost and billable rates + * Removed the telephone property from the user model + * Added statement_key in the Client properties ## 1.1.0 (2019-04-01) -* Support HTTPlug 2 + * Support HTTPlug 2 ## 1.0.2 (2019-01-24) -* support null values for nested objects or values (jane-openapi strict mode false) -* changed `quantity` types to `float` instead of `integer` + * support null values for nested objects or values (jane-openapi strict mode false) + * changed `quantity` types to `float` instead of `integer` ## 1.0.1 (2019-01-22) -* Fixed the `deleteTimeEntryExternalReference` endpoint operationId + * Fixed the `deleteTimeEntryExternalReference` endpoint operationId ## 1.0.0 (2019-01-21) -* Initial release + * Initial release diff --git a/Resources/harvest-openapi.yaml b/Resources/harvest-openapi.yaml index 79a55ce..462d67e 100644 --- a/Resources/harvest-openapi.yaml +++ b/Resources/harvest-openapi.yaml @@ -253,8 +253,9 @@ components: nullable: true include_link_to_client_invoice: type: boolean - description: 'Whether to include a link to the client invoice in the message body. Not used when thank_you is true.' + description: 'DEPRECATED This will be true when payment_options are assigned to the invoice and false when there are no payment_options.' nullable: true + deprecated: true attach_pdf: type: boolean description: 'Whether to attach the invoice PDF to the message email.' @@ -515,6 +516,16 @@ components: type: string description: 'The timeframe in which the invoice should be paid. Options: upon receipt, net 15, net 30, net 45, net 60, or custom.' nullable: true + payment_options: + type: array + description: 'The list of payment options enabled for the invoice. Options: [ach, credit_card, paypal]' + nullable: true + items: + type: string + enum: + - ach + - credit_card + - paypal sent_at: type: string description: 'Date and time the invoice was sent.' @@ -1152,7 +1163,6 @@ components: type: integer description: 'Unique ID for the time entry.' nullable: true - format: int32 spent_date: type: string description: 'Date of the time entry.' @@ -1619,7 +1629,7 @@ components: url: 'https://help.getharvest.com/api-v2/users-api/users/teammates/#the-teammate-object' properties: id: - type: int + type: integer description: 'Unique ID for the teammate' nullable: true first_name: @@ -6130,6 +6140,8 @@ paths: created_at: '2017-06-27T16:27:16Z' updated_at: '2017-08-23T22:25:59Z' currency: EUR + payment_options: + - credit_card client: id: 5735776 name: '123 Industries' @@ -6338,6 +6350,8 @@ paths: created_at: '2017-06-27T16:34:24Z' updated_at: '2017-06-27T16:34:24Z' currency: USD + payment_options: + - credit_card client: id: 5735774 name: 'ABC Corp' @@ -6430,6 +6444,16 @@ paths: type: string description: 'The timeframe in which the invoice should be paid. Defaults to custom. Options: upon receipt, net 15, net 30, net 45, net 60, or custom.' nullable: true + payment_options: + type: array + description: 'The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]' + nullable: true + items: + type: string + enum: + - ach + - credit_card + - paypal line_items_import: type: object description: 'An line items import object' @@ -6481,7 +6505,7 @@ paths: description: 'If set to true, a PDF containing an expense report with receipts will be attached to the invoice. Defaults to false.' retainer_id: type: integer - description: 'The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only avaiable action is to add funds.' + description: 'The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only available action is to add funds.' nullable: true format: int32 line_items: @@ -6595,6 +6619,8 @@ paths: created_at: '2017-06-27T16:24:30Z' updated_at: '2017-06-27T16:24:57Z' currency: USD + payment_options: + - credit_card client: id: 5735776 name: '123 Industries' @@ -6678,6 +6704,8 @@ paths: created_at: '2017-06-27T16:34:24Z' updated_at: '2017-06-27T16:36:33Z' currency: USD + payment_options: + - credit_card client: id: 5735774 name: 'ABC Corp' @@ -6782,6 +6810,16 @@ paths: type: string description: 'The timeframe in which the invoice should be paid. Options: upon receipt, net 15, net 30, net 45, or net 60.' nullable: true + payment_options: + type: array + description: 'The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]' + nullable: true + items: + type: string + enum: + - ach + - credit_card + - paypal line_items: type: array description: 'Array of line item parameters' @@ -7029,8 +7067,9 @@ paths: nullable: true include_link_to_client_invoice: type: boolean - description: 'If set to true, a link to the client invoice URL will be included in the message email. Defaults to false. Ignored when thank_you is set to true.' + description: 'DEPRECATED A link to the client invoice URL will be automatically included in the message email if payment_options have been assigned to the invoice. Setting to true will be ignored. Setting to false will clear all payment_options on the invoice.' nullable: true + deprecated: true attach_pdf: type: boolean description: 'If set to true, a PDF of the invoice will be attached to the message email. Defaults to false.' @@ -12800,8 +12839,10 @@ paths: type: object properties: teammate_ids: - type: 'array of user ids' + type: array description: 'Full list of user IDs to be assigned to the Manager.' nullable: true + items: + type: string required: - teammate_ids diff --git a/doc/index.md b/doc/index.md index ef9223c..2478a2d 100644 --- a/doc/index.md +++ b/doc/index.md @@ -104,6 +104,7 @@ Instead of the `listClients()` method above, you can use all of these methods: * `updateInvoice()` * `listMessagesForInvoice()` * `createInvoiceMessage()` + * `retrieveInvoiceMessageSubjectAndBodyForSpecificInvoice()` * `deleteInvoiceMessage()` * `listPaymentsForInvoice()` * `createInvoicePayment()` @@ -175,6 +176,8 @@ Instead of the `listClients()` method above, you can use all of these methods: * `createCostRate()` * `retrieveCostRate()` * `listActiveProjectAssignments()` + * `listAssignedTeammatesForSpecificUser()` + * `updateUserAssignedTeammates()` ## Examples diff --git a/generated/Client.php b/generated/Client.php index 0dd4ae5..58864ca 100644 --- a/generated/Client.php +++ b/generated/Client.php @@ -15,16 +15,17 @@ class Client extends \JoliCode\Harvest\Api\Runtime\Client\Client { /** * Returns a list of your clients. The clients are returned sorted by creation date, with the most recently created clients appearing first. - + * + * The response contains an object with a clients property that contains an array of up to per_page clients. Each entry in the array is a separate client object. If no more clients are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your clients. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active clients and false to return inactive clients - * @var string $updated_since only return clients that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active clients and false to return inactive clients + * @var string $updated_since only return clients that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -38,8 +39,7 @@ public function listClients(array $queryParameters = [], string $fetch = self::F /** * Creates a new client object. Returns a client object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ClientsPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -75,8 +75,7 @@ public function retrieveClient(string $clientId, string $fetch = self::FETCH_OBJ /** * Updates the specific client by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a client object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -98,8 +97,7 @@ public function retrieveCompany(string $fetch = self::FETCH_OBJECT) /** * Updates the company setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a company object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\CompanyPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Company|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -110,16 +108,17 @@ public function updateCompany(Model\CompanyPatchBody $requestBody, string $fetch /** * Returns a list of your contacts. The contacts are returned sorted by creation date, with the most recently created contacts appearing first. - + * + * The response contains an object with a contacts property that contains an array of up to per_page contacts. Each entry in the array is a separate contact object. If no more contacts are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your contacts. * * @param array $queryParameters { * - * @var int $client_id only return contacts belonging to the client with the given ID - * @var string $updated_since only return contacts that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $client_id only return contacts belonging to the client with the given ID + * @var string $updated_since only return contacts that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -133,8 +132,7 @@ public function listContacts(array $queryParameters = [], string $fetch = self:: /** * Creates a new contact object. Returns a contact object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ContactsPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -170,8 +168,7 @@ public function retrieveContact(string $contactId, string $fetch = self::FETCH_O /** * Updates the specific contact by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a contact object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -182,15 +179,16 @@ public function updateContact(string $contactId, Model\ContactsContactIdPatchBod /** * Returns a list of your estimate item categories. The estimate item categories are returned sorted by creation date, with the most recently created estimate item categories appearing first. - + * + * The response contains an object with a estimate_item_categories property that contains an array of up to per_page estimate item categories. Each entry in the array is a separate estimate item category object. If no more estimate item categories are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your estimate item categories. * * @param array $queryParameters { * - * @var string $updated_since only return estimate item categories that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return estimate item categories that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -204,8 +202,7 @@ public function listEstimateItemCategories(array $queryParameters = [], string $ /** * Creates a new estimate item category object. Returns an estimate item category object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -241,8 +238,7 @@ public function retrieveEstimateItemCategory(string $estimateItemCategoryId, str /** * Updates the specific estimate item category by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns an estimate item category object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -253,18 +249,19 @@ public function updateEstimateItemCategory(string $estimateItemCategoryId, Model /** * Returns a list of your estimates. The estimates are returned sorted by issue date, with the most recently issued estimates appearing first. - + * + * The response contains an object with a estimates property that contains an array of up to per_page estimates. Each entry in the array is a separate estimate object. If no more estimates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your estimates. * * @param array $queryParameters { * - * @var int $client_id only return estimates belonging to the client with the given ID - * @var string $updated_since only return estimates that have been updated since the given date and time - * @var string $from only return estimates with an issue_date on or after the given date - * @var string $to only return estimates with an issue_date on or before the given date - * @var string $state Only return estimates with a state matching the value provided. Options: draft, sent, accepted, or declined. - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $client_id only return estimates belonging to the client with the given ID + * @var string $updated_since only return estimates that have been updated since the given date and time + * @var string $from only return estimates with an issue_date on or after the given date + * @var string $to only return estimates with an issue_date on or before the given date + * @var string $state Only return estimates with a state matching the value provided. Options: draft, sent, accepted, or declined. + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -278,8 +275,7 @@ public function listEstimates(array $queryParameters = [], string $fetch = self: /** * Creates a new estimate object. Returns an estimate object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\EstimatesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -315,8 +311,7 @@ public function retrieveEstimate(string $estimateId, string $fetch = self::FETCH /** * Updates the specific estimate by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns an estimate object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -327,15 +322,16 @@ public function updateEstimate(string $estimateId, Model\EstimatesEstimateIdPatc /** * Returns a list of messages associated with a given estimate. The estimate messages are returned sorted by creation date, with the most recently created messages appearing first. - + * + * The response contains an object with an estimate_messages property that contains an array of up to per_page messages. Each entry in the array is a separate message object. If no more messages are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your messages. * * @param array $queryParameters { * - * @var string $updated_since only return estimate messages that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return estimate messages that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -349,8 +345,7 @@ public function listMessagesForEstimate(string $estimateId, array $queryParamete /** * Creates a new estimate message object. Returns an estimate message object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\EstimateMessage|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -373,16 +368,17 @@ public function deleteEstimateMessage(string $estimateId, string $messageId, str /** * Returns a list of your expense categories. The expense categories are returned sorted by creation date, with the most recently created expense categories appearing first. - + * + * The response contains an object with a expense_categories property that contains an array of up to per_page expense categories. Each entry in the array is a separate expense category object. If no more expense categories are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your expense categories. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active expense categories and false to return inactive expense categories - * @var string $updated_since only return expense categories that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active expense categories and false to return inactive expense categories + * @var string $updated_since only return expense categories that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -396,8 +392,7 @@ public function listExpenseCategories(array $queryParameters = [], string $fetch /** * Creates a new expense category object. Returns an expense category object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -433,8 +428,7 @@ public function retrieveExpenseCategory(string $expenseCategoryId, string $fetch /** * Updates the specific expense category by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns an expense category object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -445,20 +439,21 @@ public function updateExpenseCategory(string $expenseCategoryId, Model\ExpenseCa /** * Returns a list of your expenses. If accessing this endpoint as an Administrator, all expenses in the account will be returned. If accessing this endpoint as a Manager, all expenses for assigned teammates and managed projects will be returned. The expenses are returned sorted by the spent_at date, with the most recent expenses appearing first. - + * + * The response contains an object with a expenses property that contains an array of up to per_page expenses. Each entry in the array is a separate expense object. If no more expenses are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your expenses. * * @param array $queryParameters { * - * @var int $user_id only return expenses belonging to the user with the given ID - * @var int $client_id only return expenses belonging to the client with the given ID - * @var int $project_id only return expenses belonging to the project with the given ID - * @var bool $is_billed pass true to only return expenses that have been invoiced and false to return expenses that have not been invoiced - * @var string $updated_since only return expenses that have been updated since the given date and time - * @var string $from only return expenses with a spent_date on or after the given date - * @var string $to only return expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return expenses belonging to the user with the given ID + * @var int $client_id only return expenses belonging to the client with the given ID + * @var int $project_id only return expenses belonging to the project with the given ID + * @var bool $is_billed pass true to only return expenses that have been invoiced and false to return expenses that have not been invoiced + * @var string $updated_since only return expenses that have been updated since the given date and time + * @var string $from only return expenses with a spent_date on or after the given date + * @var string $to only return expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -472,8 +467,7 @@ public function listExpenses(array $queryParameters = [], string $fetch = self:: /** * Creates a new expense object. Returns an expense object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ExpensesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -509,8 +503,7 @@ public function retrieveExpense(string $expenseId, string $fetch = self::FETCH_O /** * Updates the specific expense by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns an expense object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -521,15 +514,16 @@ public function updateExpense(string $expenseId, Model\ExpensesExpenseIdPatchBod /** * Returns a list of your invoice item categories. The invoice item categories are returned sorted by creation date, with the most recently created invoice item categories appearing first. - + * + * The response contains an object with a invoice_item_categories property that contains an array of up to per_page invoice item categories. Each entry in the array is a separate invoice item category object. If no more invoice item categories are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your invoice item categories. * * @param array $queryParameters { * - * @var string $updated_since only return invoice item categories that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return invoice item categories that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -543,8 +537,7 @@ public function listInvoiceItemCategories(array $queryParameters = [], string $f /** * Creates a new invoice item category object. Returns an invoice item category object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -580,8 +573,7 @@ public function retrieveInvoiceItemCategory(string $invoiceItemCategoryId, strin /** * Updates the specific invoice item category by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns an invoice item category object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -592,19 +584,20 @@ public function updateInvoiceItemCategory(string $invoiceItemCategoryId, Model\I /** * Returns a list of your invoices. The invoices are returned sorted by issue date, with the most recently issued invoices appearing first. - + * + * The response contains an object with a invoices property that contains an array of up to per_page invoices. Each entry in the array is a separate invoice object. If no more invoices are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your invoices. * * @param array $queryParameters { * - * @var int $client_id only return invoices belonging to the client with the given ID - * @var int $project_id only return invoices associated with the project with the given ID - * @var string $updated_since only return invoices that have been updated since the given date and time - * @var string $from only return invoices with an issue_date on or after the given date - * @var string $to only return invoices with an issue_date on or before the given date - * @var string $state Only return invoices with a state matching the value provided. Options: draft, open, paid, or closed. - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $client_id only return invoices belonging to the client with the given ID + * @var int $project_id only return invoices associated with the project with the given ID + * @var string $updated_since only return invoices that have been updated since the given date and time + * @var string $from only return invoices with an issue_date on or after the given date + * @var string $to only return invoices with an issue_date on or before the given date + * @var string $state Only return invoices with a state matching the value provided. Options: draft, open, paid, or closed. + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -618,8 +611,7 @@ public function listInvoices(array $queryParameters = [], string $fetch = self:: /** * Creates a new invoice object. Returns an invoice object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\InvoicesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -655,8 +647,7 @@ public function retrieveInvoice(string $invoiceId, string $fetch = self::FETCH_O /** * Updates the specific invoice by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns an invoice object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -667,15 +658,16 @@ public function updateInvoice(string $invoiceId, Model\InvoicesInvoiceIdPatchBod /** * Returns a list of messages associated with a given invoice. The invoice messages are returned sorted by creation date, with the most recently created messages appearing first. - + * + * The response contains an object with an invoice_messages property that contains an array of up to per_page messages. Each entry in the array is a separate message object. If no more messages are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your messages. * * @param array $queryParameters { * - * @var string $updated_since only return invoice messages that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return invoice messages that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -689,8 +681,7 @@ public function listMessagesForInvoice(string $invoiceId, array $queryParameters /** * Creates a new invoice message object. Returns an invoice message object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\InvoiceMessage|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -704,9 +695,9 @@ public function createInvoiceMessage(string $invoiceId, Model\InvoicesInvoiceIdM * * @param array $queryParameters { * - * @var bool $thank_you set to true to return the subject and body of a thank-you invoice message for the specific invoice - * @var bool $reminder Set to true to return the subject and body of a reminder invoice message for the specific invoice. - * } + * @var bool $thank_you set to true to return the subject and body of a thank-you invoice message for the specific invoice + * @var bool $reminder Set to true to return the subject and body of a reminder invoice message for the specific invoice. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -731,15 +722,16 @@ public function deleteInvoiceMessage(string $invoiceId, string $messageId, strin /** * Returns a list of payments associate with a given invoice. The payments are returned sorted by creation date, with the most recently created payments appearing first. - + * + * The response contains an object with an invoice_payments property that contains an array of up to per_page payments. Each entry in the array is a separate payment object. If no more payments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your payments. * * @param array $queryParameters { * - * @var string $updated_since only return invoice payments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return invoice payments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -753,8 +745,7 @@ public function listPaymentsForInvoice(string $invoiceId, array $queryParameters /** * Creates a new invoice payment object. Returns an invoice payment object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\InvoicePayment|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -777,17 +768,18 @@ public function deleteInvoicePayment(string $invoiceId, string $paymentId, strin /** * Returns a list of your projects. The projects are returned sorted by creation date, with the most recently created projects appearing first. - + * + * The response contains an object with a projects property that contains an array of up to per_page projects. Each entry in the array is a separate project object. If no more projects are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your projects. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active projects and false to return inactive projects - * @var int $client_id only return projects belonging to the client with the given ID - * @var string $updated_since only return projects that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active projects and false to return inactive projects + * @var int $client_id only return projects belonging to the client with the given ID + * @var string $updated_since only return projects that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -801,8 +793,7 @@ public function listProjects(array $queryParameters = [], string $fetch = self:: /** * Creates a new project object. Returns a project object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ProjectsPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -813,6 +804,8 @@ public function createProject(Model\ProjectsPostBody $requestBody, string $fetch /** * Deletes a project and any time entries or expenses tracked to it. + * However, invoices associated with the project will not be deleted. + * If you don’t want the project’s time entries and expenses to be deleted, you should archive the project instead. * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -838,8 +831,7 @@ public function retrieveProject(string $projectId, string $fetch = self::FETCH_O /** * Updates the specific project by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a project object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -850,15 +842,16 @@ public function updateProject(string $projectId, Model\ProjectsProjectIdPatchBod /** * Returns a list of your task assignments for the project identified by PROJECT_ID. The task assignments are returned sorted by creation date, with the most recently created task assignments appearing first. - + * + * The response contains an object with a task_assignments property that contains an array of up to per_page task assignments. Each entry in the array is a separate task assignment object. If no more task assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your task assignments. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments - * @var string $updated_since only return task assignments that have been updated since the given date and time - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments + * @var string $updated_since only return task assignments that have been updated since the given date and time + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -872,8 +865,7 @@ public function listTaskAssignmentsForSpecificProject(string $projectId, array $ /** * Creates a new task assignment object. Returns a task assignment object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -909,8 +901,7 @@ public function retrieveTaskAssignment(string $projectId, string $taskAssignment /** * Updates the specific task assignment by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a task assignment object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -921,16 +912,17 @@ public function updateTaskAssignment(string $projectId, string $taskAssignmentId /** * Returns a list of user assignments for the project identified by PROJECT_ID. The user assignments are returned sorted by creation date, with the most recently created user assignments appearing first. - + * + * The response contains an object with a user_assignments property that contains an array of up to per_page user assignments. Each entry in the array is a separate user assignment object. If no more user assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your user assignments. * * @param array $queryParameters { * - * @var int $user_id only return user assignments belonging to the user with the given ID - * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments - * @var string $updated_since only return user assignments that have been updated since the given date and time - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return user assignments belonging to the user with the given ID + * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments + * @var string $updated_since only return user assignments that have been updated since the given date and time + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -944,8 +936,7 @@ public function listUserAssignmentsForSpecificProject(string $projectId, array $ /** * Creates a new user assignment object. Returns a user assignment object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -981,8 +972,7 @@ public function retrieveUserAssignment(string $projectId, string $userAssignment /** * Updates the specific user assignment by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a user assignment object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -994,11 +984,11 @@ public function updateUserAssignment(string $projectId, string $userAssignmentId /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1012,11 +1002,11 @@ public function expenseCategoriesReport(array $queryParameters = [], string $fet /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1030,11 +1020,11 @@ public function clientsExpensesReport(array $queryParameters = [], string $fetch /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1048,11 +1038,11 @@ public function projectsExpensesReport(array $queryParameters = [], string $fetc /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1068,10 +1058,10 @@ public function teamExpensesReport(array $queryParameters = [], string $fetch = * * @param array $queryParameters { * - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * @var bool $is_active Pass true to only return active projects and false to return inactive projects. - * } + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * @var bool $is_active Pass true to only return active projects and false to return inactive projects. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1085,11 +1075,11 @@ public function projectBudgetReport(array $queryParameters = [], string $fetch = /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1103,11 +1093,11 @@ public function clientsTimeReport(array $queryParameters = [], string $fetch = s /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1121,11 +1111,11 @@ public function projectsTimeReport(array $queryParameters = [], string $fetch = /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1139,11 +1129,11 @@ public function tasksReport(array $queryParameters = [], string $fetch = self::F /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1156,15 +1146,16 @@ public function teamTimeReport(array $queryParameters = [], string $fetch = self /** * The response contains an object with a results property that contains an array of up to per_page results. Each entry in the array is a separate result object. If no more results are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your results. - + * + * Note: Each request requires both the from and to parameters to be supplied in the URL’s query string. The timeframe supplied cannot exceed 1 year (365 days). * * @param array $queryParameters { * - * @var string $from only report on time entries and expenses with a spent_date on or after the given date - * @var string $to only report on time entries and expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries and expenses with a spent_date on or after the given date + * @var string $to only report on time entries and expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1177,14 +1168,15 @@ public function uninvoicedReport(array $queryParameters = [], string $fetch = se /** * Returns a list of roles in the account. The roles are returned sorted by creation date, with the most recently created roles appearing first. - + * + * The response contains an object with a roles property that contains an array of up to per_page roles. Each entry in the array is a separate role object. If no more roles are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your roles. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1198,8 +1190,7 @@ public function listRoles(array $queryParameters = [], string $fetch = self::FET /** * Creates a new role object. Returns a role object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\RolesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1235,8 +1226,7 @@ public function retrieveRole(string $roleId, string $fetch = self::FETCH_OBJECT) /** * Updates the specific role by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a role object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1247,16 +1237,17 @@ public function updateRole(string $roleId, Model\RolesRoleIdPatchBody $requestBo /** * Returns a list of your task assignments. The task assignments are returned sorted by creation date, with the most recently created task assignments appearing first. - + * + * The response contains an object with a task_assignments property that contains an array of up to per_page task assignments. Each entry in the array is a separate task assignment object. If no more task assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your task assignments. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments - * @var string $updated_since only return task assignments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments + * @var string $updated_since only return task assignments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1269,16 +1260,17 @@ public function listTaskAssignments(array $queryParameters = [], string $fetch = /** * Returns a list of your tasks. The tasks are returned sorted by creation date, with the most recently created tasks appearing first. - + * + * The response contains an object with a tasks property that contains an array of up to per_page tasks. Each entry in the array is a separate task object. If no more tasks are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your tasks. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active tasks and false to return inactive tasks - * @var string $updated_since only return tasks that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active tasks and false to return inactive tasks + * @var string $updated_since only return tasks that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1292,8 +1284,7 @@ public function listTasks(array $queryParameters = [], string $fetch = self::FET /** * Creates a new task object. Returns a task object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\TasksPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1329,8 +1320,7 @@ public function retrieveTask(string $taskId, string $fetch = self::FETCH_OBJECT) /** * Updates the specific task by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a task object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1341,23 +1331,24 @@ public function updateTask(string $taskId, Model\TasksTaskIdPatchBody $requestBo /** * Returns a list of time entries. The time entries are returned sorted by spent_date date. At this time, the sort option can’t be customized. - + * + * The response contains an object with a time_entries property that contains an array of up to per_page time entries. Each entry in the array is a separate time entry object. If no more time entries are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your time entries. * * @param array $queryParameters { * - * @var int $user_id only return time entries belonging to the user with the given ID - * @var int $client_id only return time entries belonging to the client with the given ID - * @var int $project_id only return time entries belonging to the project with the given ID - * @var int $task_id only return time entries belonging to the task with the given ID - * @var string $external_reference_id only return time entries with the given external_reference ID - * @var bool $is_billed pass true to only return time entries that have been invoiced and false to return time entries that have not been invoiced - * @var bool $is_running pass true to only return running time entries and false to return non-running time entries - * @var string $updated_since Only return time entries that have been updated since the given date and time. Use the ISO 8601 Format. - * @var string $from only return time entries with a spent_date on or after the given date - * @var string $to only return time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return time entries belonging to the user with the given ID + * @var int $client_id only return time entries belonging to the client with the given ID + * @var int $project_id only return time entries belonging to the project with the given ID + * @var int $task_id only return time entries belonging to the task with the given ID + * @var string $external_reference_id only return time entries with the given external_reference ID + * @var bool $is_billed pass true to only return time entries that have been invoiced and false to return time entries that have not been invoiced + * @var bool $is_running pass true to only return running time entries and false to return non-running time entries + * @var string $updated_since Only return time entries that have been updated since the given date and time. Use the ISO 8601 Format. + * @var string $from only return time entries with a spent_date on or after the given date + * @var string $to only return time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1370,10 +1361,10 @@ public function listTimeEntries(array $queryParameters = [], string $fetch = sel /** * Creates a new time entry object. Returns a time entry object and a 201 Created response code if the call succeeded. - * - * @param \JoliCode\Harvest\Api\Model\TimeEntriesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * You should only use this method to create time entries when your account is configured to track time via duration. You can verify this by visiting the Settings page in your Harvest account or by checking if wants_timestamp_timers is false in the Company API. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1409,8 +1400,7 @@ public function retrieveTimeEntry(string $timeEntryId, string $fetch = self::FET /** * Updates the specific time entry by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a time entry object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1457,17 +1447,18 @@ public function stopRunningTimeEntry(string $timeEntryId, string $fetch = self:: /** * Returns a list of your projects user assignments, active and archived. The user assignments are returned sorted by creation date, with the most recently created user assignments appearing first. - + * + * The response contains an object with a user_assignments property that contains an array of up to per_page user assignments. Each entry in the array is a separate user assignment object. If no more user assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your user assignments. * * @param array $queryParameters { * - * @var int $user_id only return user assignments belonging to the user with the given ID - * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments - * @var string $updated_since only return user assignments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return user assignments belonging to the user with the given ID + * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments + * @var string $updated_since only return user assignments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1480,16 +1471,17 @@ public function listUserAssignments(array $queryParameters = [], string $fetch = /** * Returns a list of your users. The users are returned sorted by creation date, with the most recently created users appearing first. - + * + * The response contains an object with a users property that contains an array of up to per_page users. Each entry in the array is a separate user object. If no more users are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your users. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active users and false to return inactive users - * @var string $updated_since only return users that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active users and false to return inactive users + * @var string $updated_since only return users that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1503,8 +1495,7 @@ public function listUsers(array $queryParameters = [], string $fetch = self::FET /** * Creates a new user object and sends an invitation email to the address specified in the email parameter. Returns a user object and a 201 Created response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\UsersPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1525,13 +1516,14 @@ public function retrieveTheCurrentlyAuthenticatedUser(string $fetch = self::FETC /** * Returns a list of your active project assignments for the currently authenticated user. The project assignments are returned sorted by creation date, with the most recently created project assignments appearing first. - + * + * The response contains an object with a project_assignments property that contains an array of up to per_page project assignments. Each entry in the array is a separate project assignment object. If no more project assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your project assignments. * * @param array $queryParameters { * - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1569,8 +1561,7 @@ public function retrieveUser(string $userId, string $fetch = self::FETCH_OBJECT) /** * Updates the specific user by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a user object and a 200 OK response code if the call succeeded. * - * @param \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1581,14 +1572,15 @@ public function updateUser(string $userId, Model\UsersUserIdPatchBody $requestBo /** * Returns a list of billable rates for the user identified by USER_ID. The billable rates are returned sorted by start_date, with the oldest starting billable rates appearing first. - + * + * The response contains an object with a billable_rates property that contains an array of up to per_page billable rates. Each entry in the array is a separate billable rate object. If no more billable rates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your billable rates. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1601,11 +1593,11 @@ public function listBillableRatesForSpecificUser(string $userId, array $queryPar /** * Creates a new billable rate object. Returns a billable rate object and a 201 Created response code if the call succeeded. - - * - * @param \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Creating a billable rate with no start_date will replace a user’s existing rate(s). + * Creating a billable rate with a start_date that is before a user’s existing rate(s) will replace those billable rates with the new one. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\BillableRate|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1628,14 +1620,15 @@ public function retrieveBillableRate(string $userId, string $billableRateId, str /** * Returns a list of cost rates for the user identified by USER_ID. The cost rates are returned sorted by start_date, with the oldest starting cost rates appearing first. - + * + * The response contains an object with a cost_rates property that contains an array of up to per_page cost rates. Each entry in the array is a separate cost rate object. If no more cost rates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your cost rates. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1648,11 +1641,11 @@ public function listCostRatesForSpecificUser(string $userId, array $queryParamet /** * Creates a new cost rate object. Returns a cost rate object and a 201 Created response code if the call succeeded. - - * - * @param \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Creating a cost rate with no start_date will replace a user’s existing rate(s). + * Creating a cost rate with a start_date that is before a user’s existing rate(s) will replace those cost rates with the new one. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\CostRate|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ @@ -1675,15 +1668,16 @@ public function retrieveCostRate(string $userId, string $costRateId, string $fet /** * Returns a list of active project assignments for the user identified by USER_ID. The project assignments are returned sorted by creation date, with the most recently created project assignments appearing first. - + * + * The response contains an object with a project_assignments property that contains an array of up to per_page project assignments. Each entry in the array is a separate project assignment object. If no more project assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your project assignments. * * @param array $queryParameters { * - * @var string $updated_since only return project assignments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return project assignments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1696,14 +1690,15 @@ public function listActiveProjectAssignments(string $userId, array $queryParamet /** * Returns a list of assigned teammates for the user identified by USER_ID. The USER_ID must belong to a user that is a Manager, if not, a 422 Unprocessable Entity status code will be returned. - + * + * The response contains an object with a teammates property that contains an array of up to per_page teammates. Each entry in the array is a separate teammate object. If no more teammates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your teammates. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1716,10 +1711,10 @@ public function listAssignedTeammatesForSpecificUser(string $userId, array $quer /** * Updates the the assigned teammates for a specific user. Returns list of assigned teammates and a 200 OK response code if the call succeeded. The USER_ID must belong to a user that is a Manager, if not, a 422 Unprocessable Entity status code will be returned. - * - * @param \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Adding teammates for the first time will add the people_manager access role to the Manager. Any IDs not included in the teammate_ids that are currently assigned will be unassigned from the Manager. Use an empty array to unassign all users. This will also remove the people_manager access role from the Manager. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \JoliCode\Harvest\Api\Model\TeammatesPatchResponse|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface|null */ diff --git a/generated/Endpoint/ClientsExpensesReport.php b/generated/Endpoint/ClientsExpensesReport.php index d5bee6a..56009f8 100644 --- a/generated/Endpoint/ClientsExpensesReport.php +++ b/generated/Endpoint/ClientsExpensesReport.php @@ -18,11 +18,11 @@ class ClientsExpensesReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEnd /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ClientsTimeReport.php b/generated/Endpoint/ClientsTimeReport.php index 10342e1..34abe08 100644 --- a/generated/Endpoint/ClientsTimeReport.php +++ b/generated/Endpoint/ClientsTimeReport.php @@ -18,11 +18,11 @@ class ClientsTimeReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoin /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateBillableRate.php b/generated/Endpoint/CreateBillableRate.php index accdea9..ac0f78c 100644 --- a/generated/Endpoint/CreateBillableRate.php +++ b/generated/Endpoint/CreateBillableRate.php @@ -18,9 +18,9 @@ class CreateBillableRate extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoi /** * Creates a new billable rate object. Returns a billable rate object and a 201 Created response code if the call succeeded. - - - Creating a billable rate with a start_date that is before a user’s existing rate(s) will replace those billable rates with the new one. + * + * Creating a billable rate with no start_date will replace a user’s existing rate(s). + * Creating a billable rate with a start_date that is before a user’s existing rate(s) will replace those billable rates with the new one. */ public function __construct(string $userId, \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody $requestBody) { @@ -58,11 +58,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\BillableRate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateClient.php b/generated/Endpoint/CreateClient.php index 61b1d4c..ff577f7 100644 --- a/generated/Endpoint/CreateClient.php +++ b/generated/Endpoint/CreateClient.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateContact.php b/generated/Endpoint/CreateContact.php index 2a52e57..2182a02 100644 --- a/generated/Endpoint/CreateContact.php +++ b/generated/Endpoint/CreateContact.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateCostRate.php b/generated/Endpoint/CreateCostRate.php index 702ff90..3edc337 100644 --- a/generated/Endpoint/CreateCostRate.php +++ b/generated/Endpoint/CreateCostRate.php @@ -18,9 +18,9 @@ class CreateCostRate extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint i /** * Creates a new cost rate object. Returns a cost rate object and a 201 Created response code if the call succeeded. - - - Creating a cost rate with a start_date that is before a user’s existing rate(s) will replace those cost rates with the new one. + * + * Creating a cost rate with no start_date will replace a user’s existing rate(s). + * Creating a cost rate with a start_date that is before a user’s existing rate(s) will replace those cost rates with the new one. */ public function __construct(string $userId, \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody $requestBody) { @@ -58,11 +58,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\CostRate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateEstimate.php b/generated/Endpoint/CreateEstimate.php index fb55065..7bbb5e0 100644 --- a/generated/Endpoint/CreateEstimate.php +++ b/generated/Endpoint/CreateEstimate.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateEstimateItemCategory.php b/generated/Endpoint/CreateEstimateItemCategory.php index e3a9708..b1d5f07 100644 --- a/generated/Endpoint/CreateEstimateItemCategory.php +++ b/generated/Endpoint/CreateEstimateItemCategory.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateEstimateMessage.php b/generated/Endpoint/CreateEstimateMessage.php index c79fcf1..28cd869 100644 --- a/generated/Endpoint/CreateEstimateMessage.php +++ b/generated/Endpoint/CreateEstimateMessage.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\EstimateMessage|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateExpense.php b/generated/Endpoint/CreateExpense.php index 9c41f28..0263503 100644 --- a/generated/Endpoint/CreateExpense.php +++ b/generated/Endpoint/CreateExpense.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateExpenseCategory.php b/generated/Endpoint/CreateExpenseCategory.php index cf2bed5..4a2865d 100644 --- a/generated/Endpoint/CreateExpenseCategory.php +++ b/generated/Endpoint/CreateExpenseCategory.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateInvoice.php b/generated/Endpoint/CreateInvoice.php index 8747d28..50d8fa4 100644 --- a/generated/Endpoint/CreateInvoice.php +++ b/generated/Endpoint/CreateInvoice.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateInvoiceItemCategory.php b/generated/Endpoint/CreateInvoiceItemCategory.php index 890100d..3308362 100644 --- a/generated/Endpoint/CreateInvoiceItemCategory.php +++ b/generated/Endpoint/CreateInvoiceItemCategory.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateInvoiceMessage.php b/generated/Endpoint/CreateInvoiceMessage.php index 6d5e036..65385ba 100644 --- a/generated/Endpoint/CreateInvoiceMessage.php +++ b/generated/Endpoint/CreateInvoiceMessage.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceMessage|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateInvoicePayment.php b/generated/Endpoint/CreateInvoicePayment.php index 2669f70..f6fbc9f 100644 --- a/generated/Endpoint/CreateInvoicePayment.php +++ b/generated/Endpoint/CreateInvoicePayment.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoicePayment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateProject.php b/generated/Endpoint/CreateProject.php index 5f74192..9e88b1c 100644 --- a/generated/Endpoint/CreateProject.php +++ b/generated/Endpoint/CreateProject.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateRole.php b/generated/Endpoint/CreateRole.php index 1a46658..b3b6b4b 100644 --- a/generated/Endpoint/CreateRole.php +++ b/generated/Endpoint/CreateRole.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateTask.php b/generated/Endpoint/CreateTask.php index 33426e4..d1a8a5c 100644 --- a/generated/Endpoint/CreateTask.php +++ b/generated/Endpoint/CreateTask.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateTaskAssignment.php b/generated/Endpoint/CreateTaskAssignment.php index 2bf6855..3f8527a 100644 --- a/generated/Endpoint/CreateTaskAssignment.php +++ b/generated/Endpoint/CreateTaskAssignment.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateTimeEntry.php b/generated/Endpoint/CreateTimeEntry.php index b86729e..2173adc 100644 --- a/generated/Endpoint/CreateTimeEntry.php +++ b/generated/Endpoint/CreateTimeEntry.php @@ -17,8 +17,8 @@ class CreateTimeEntry extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint /** * Creates a new time entry object. Returns a time entry object and a 201 Created response code if the call succeeded. - - You should only use this method to create time entries when your account is configured to track time via duration. You can verify this by visiting the Settings page in your Harvest account or by checking if wants_timestamp_timers is false in the Company API. + * + * You should only use this method to create time entries when your account is configured to track time via duration. You can verify this by visiting the Settings page in your Harvest account or by checking if wants_timestamp_timers is false in the Company API. */ public function __construct(\JoliCode\Harvest\Api\Model\TimeEntriesPostBody $requestBody) { @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateUser.php b/generated/Endpoint/CreateUser.php index fc9dd2b..cf05de2 100644 --- a/generated/Endpoint/CreateUser.php +++ b/generated/Endpoint/CreateUser.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/CreateUserAssignment.php b/generated/Endpoint/CreateUserAssignment.php index 95034aa..0693ea2 100644 --- a/generated/Endpoint/CreateUserAssignment.php +++ b/generated/Endpoint/CreateUserAssignment.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteClient.php b/generated/Endpoint/DeleteClient.php index 84fe9dd..8c1a2be 100644 --- a/generated/Endpoint/DeleteClient.php +++ b/generated/Endpoint/DeleteClient.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteContact.php b/generated/Endpoint/DeleteContact.php index cd210ca..866a4ba 100644 --- a/generated/Endpoint/DeleteContact.php +++ b/generated/Endpoint/DeleteContact.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteEstimate.php b/generated/Endpoint/DeleteEstimate.php index 6f715ac..616e16a 100644 --- a/generated/Endpoint/DeleteEstimate.php +++ b/generated/Endpoint/DeleteEstimate.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteEstimateItemCategory.php b/generated/Endpoint/DeleteEstimateItemCategory.php index 8907951..710bb1c 100644 --- a/generated/Endpoint/DeleteEstimateItemCategory.php +++ b/generated/Endpoint/DeleteEstimateItemCategory.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteEstimateMessage.php b/generated/Endpoint/DeleteEstimateMessage.php index bd6e925..c929858 100644 --- a/generated/Endpoint/DeleteEstimateMessage.php +++ b/generated/Endpoint/DeleteEstimateMessage.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteExpense.php b/generated/Endpoint/DeleteExpense.php index 02265a1..c52d04a 100644 --- a/generated/Endpoint/DeleteExpense.php +++ b/generated/Endpoint/DeleteExpense.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteExpenseCategory.php b/generated/Endpoint/DeleteExpenseCategory.php index 9de3bc6..79dfe40 100644 --- a/generated/Endpoint/DeleteExpenseCategory.php +++ b/generated/Endpoint/DeleteExpenseCategory.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteInvoice.php b/generated/Endpoint/DeleteInvoice.php index 07baf7e..240303a 100644 --- a/generated/Endpoint/DeleteInvoice.php +++ b/generated/Endpoint/DeleteInvoice.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteInvoiceItemCategory.php b/generated/Endpoint/DeleteInvoiceItemCategory.php index b524ade..4aa4148 100644 --- a/generated/Endpoint/DeleteInvoiceItemCategory.php +++ b/generated/Endpoint/DeleteInvoiceItemCategory.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteInvoiceMessage.php b/generated/Endpoint/DeleteInvoiceMessage.php index afa73bd..342fa60 100644 --- a/generated/Endpoint/DeleteInvoiceMessage.php +++ b/generated/Endpoint/DeleteInvoiceMessage.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteInvoicePayment.php b/generated/Endpoint/DeleteInvoicePayment.php index 216f45e..26d60a8 100644 --- a/generated/Endpoint/DeleteInvoicePayment.php +++ b/generated/Endpoint/DeleteInvoicePayment.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteProject.php b/generated/Endpoint/DeleteProject.php index 112f22b..65b0a75 100644 --- a/generated/Endpoint/DeleteProject.php +++ b/generated/Endpoint/DeleteProject.php @@ -18,7 +18,8 @@ class DeleteProject extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint im /** * Deletes a project and any time entries or expenses tracked to it. - If you don’t want the project’s time entries and expenses to be deleted, you should archive the project instead. + * However, invoices associated with the project will not be deleted. + * If you don’t want the project’s time entries and expenses to be deleted, you should archive the project instead. */ public function __construct(string $projectId) { @@ -51,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteRole.php b/generated/Endpoint/DeleteRole.php index 690e470..3ef72fa 100644 --- a/generated/Endpoint/DeleteRole.php +++ b/generated/Endpoint/DeleteRole.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteTask.php b/generated/Endpoint/DeleteTask.php index 150760a..fa5b3f0 100644 --- a/generated/Endpoint/DeleteTask.php +++ b/generated/Endpoint/DeleteTask.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteTaskAssignment.php b/generated/Endpoint/DeleteTaskAssignment.php index 93dc9d4..926b3c3 100644 --- a/generated/Endpoint/DeleteTaskAssignment.php +++ b/generated/Endpoint/DeleteTaskAssignment.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteTimeEntry.php b/generated/Endpoint/DeleteTimeEntry.php index 781e989..e365ec4 100644 --- a/generated/Endpoint/DeleteTimeEntry.php +++ b/generated/Endpoint/DeleteTimeEntry.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteTimeEntryExternalReference.php b/generated/Endpoint/DeleteTimeEntryExternalReference.php index 3819ddd..24e81b6 100644 --- a/generated/Endpoint/DeleteTimeEntryExternalReference.php +++ b/generated/Endpoint/DeleteTimeEntryExternalReference.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteUser.php b/generated/Endpoint/DeleteUser.php index cf3f54a..528ab63 100644 --- a/generated/Endpoint/DeleteUser.php +++ b/generated/Endpoint/DeleteUser.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/DeleteUserAssignment.php b/generated/Endpoint/DeleteUserAssignment.php index 0355a81..9b610c7 100644 --- a/generated/Endpoint/DeleteUserAssignment.php +++ b/generated/Endpoint/DeleteUserAssignment.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ExpenseCategoriesReport.php b/generated/Endpoint/ExpenseCategoriesReport.php index d02fe28..d473cb7 100644 --- a/generated/Endpoint/ExpenseCategoriesReport.php +++ b/generated/Endpoint/ExpenseCategoriesReport.php @@ -18,11 +18,11 @@ class ExpenseCategoriesReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseE /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListActiveProjectAssignments.php b/generated/Endpoint/ListActiveProjectAssignments.php index 3bb154c..7778ded 100644 --- a/generated/Endpoint/ListActiveProjectAssignments.php +++ b/generated/Endpoint/ListActiveProjectAssignments.php @@ -18,15 +18,16 @@ class ListActiveProjectAssignments extends \JoliCode\Harvest\Api\Runtime\Client\ /** * Returns a list of active project assignments for the user identified by USER_ID. The project assignments are returned sorted by creation date, with the most recently created project assignments appearing first. - + * + * The response contains an object with a project_assignments property that contains an array of up to per_page project assignments. Each entry in the array is a separate project assignment object. If no more project assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your project assignments. * * @param array $queryParameters { * - * @var string $updated_since only return project assignments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return project assignments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $userId, array $queryParameters = []) { @@ -74,11 +75,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ProjectAssignments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php b/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php index e490684..ad02d93 100644 --- a/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php +++ b/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php @@ -17,13 +17,14 @@ class ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser extends \Joli /** * Returns a list of your active project assignments for the currently authenticated user. The project assignments are returned sorted by creation date, with the most recently created project assignments appearing first. - + * + * The response contains an object with a project_assignments property that contains an array of up to per_page project assignments. Each entry in the array is a separate project assignment object. If no more project assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your project assignments. * * @param array $queryParameters { * - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -68,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ProjectAssignments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php b/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php index 2cf9b7e..aaaa63f 100644 --- a/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php +++ b/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php @@ -18,14 +18,15 @@ class ListAssignedTeammatesForSpecificUser extends \JoliCode\Harvest\Api\Runtime /** * Returns a list of assigned teammates for the user identified by USER_ID. The USER_ID must belong to a user that is a Manager, if not, a 422 Unprocessable Entity status code will be returned. - + * + * The response contains an object with a teammates property that contains an array of up to per_page teammates. Each entry in the array is a separate teammate object. If no more teammates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your teammates. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $userId, array $queryParameters = []) { @@ -72,11 +73,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Teammates|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListBillableRatesForSpecificUser.php b/generated/Endpoint/ListBillableRatesForSpecificUser.php index c86221a..d8f1cb7 100644 --- a/generated/Endpoint/ListBillableRatesForSpecificUser.php +++ b/generated/Endpoint/ListBillableRatesForSpecificUser.php @@ -18,14 +18,15 @@ class ListBillableRatesForSpecificUser extends \JoliCode\Harvest\Api\Runtime\Cli /** * Returns a list of billable rates for the user identified by USER_ID. The billable rates are returned sorted by start_date, with the oldest starting billable rates appearing first. - + * + * The response contains an object with a billable_rates property that contains an array of up to per_page billable rates. Each entry in the array is a separate billable rate object. If no more billable rates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your billable rates. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $userId, array $queryParameters = []) { @@ -72,11 +73,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\BillableRates|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListClients.php b/generated/Endpoint/ListClients.php index c6b6fea..1eccb51 100644 --- a/generated/Endpoint/ListClients.php +++ b/generated/Endpoint/ListClients.php @@ -17,16 +17,17 @@ class ListClients extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint impl /** * Returns a list of your clients. The clients are returned sorted by creation date, with the most recently created clients appearing first. - + * + * The response contains an object with a clients property that contains an array of up to per_page clients. Each entry in the array is a separate client object. If no more clients are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your clients. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active clients and false to return inactive clients - * @var string $updated_since only return clients that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active clients and false to return inactive clients + * @var string $updated_since only return clients that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -75,11 +76,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Clients|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListContacts.php b/generated/Endpoint/ListContacts.php index c1142e0..3ac8a05 100644 --- a/generated/Endpoint/ListContacts.php +++ b/generated/Endpoint/ListContacts.php @@ -17,16 +17,17 @@ class ListContacts extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint imp /** * Returns a list of your contacts. The contacts are returned sorted by creation date, with the most recently created contacts appearing first. - + * + * The response contains an object with a contacts property that contains an array of up to per_page contacts. Each entry in the array is a separate contact object. If no more contacts are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your contacts. * * @param array $queryParameters { * - * @var int $client_id only return contacts belonging to the client with the given ID - * @var string $updated_since only return contacts that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $client_id only return contacts belonging to the client with the given ID + * @var string $updated_since only return contacts that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -74,11 +75,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Contacts|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListCostRatesForSpecificUser.php b/generated/Endpoint/ListCostRatesForSpecificUser.php index 52b9eea..ddc4cff 100644 --- a/generated/Endpoint/ListCostRatesForSpecificUser.php +++ b/generated/Endpoint/ListCostRatesForSpecificUser.php @@ -18,14 +18,15 @@ class ListCostRatesForSpecificUser extends \JoliCode\Harvest\Api\Runtime\Client\ /** * Returns a list of cost rates for the user identified by USER_ID. The cost rates are returned sorted by start_date, with the oldest starting cost rates appearing first. - + * + * The response contains an object with a cost_rates property that contains an array of up to per_page cost rates. Each entry in the array is a separate cost rate object. If no more cost rates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your cost rates. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $userId, array $queryParameters = []) { @@ -72,11 +73,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\CostRates|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListEstimateItemCategories.php b/generated/Endpoint/ListEstimateItemCategories.php index 44e72cf..179f232 100644 --- a/generated/Endpoint/ListEstimateItemCategories.php +++ b/generated/Endpoint/ListEstimateItemCategories.php @@ -17,15 +17,16 @@ class ListEstimateItemCategories extends \JoliCode\Harvest\Api\Runtime\Client\Ba /** * Returns a list of your estimate item categories. The estimate item categories are returned sorted by creation date, with the most recently created estimate item categories appearing first. - + * + * The response contains an object with a estimate_item_categories property that contains an array of up to per_page estimate item categories. Each entry in the array is a separate estimate item category object. If no more estimate item categories are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your estimate item categories. * * @param array $queryParameters { * - * @var string $updated_since only return estimate item categories that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return estimate item categories that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -72,11 +73,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\EstimateItemCategories|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListEstimates.php b/generated/Endpoint/ListEstimates.php index 38608a8..4527190 100644 --- a/generated/Endpoint/ListEstimates.php +++ b/generated/Endpoint/ListEstimates.php @@ -17,18 +17,19 @@ class ListEstimates extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint im /** * Returns a list of your estimates. The estimates are returned sorted by issue date, with the most recently issued estimates appearing first. - + * + * The response contains an object with a estimates property that contains an array of up to per_page estimates. Each entry in the array is a separate estimate object. If no more estimates are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your estimates. * * @param array $queryParameters { * - * @var int $client_id only return estimates belonging to the client with the given ID - * @var string $updated_since only return estimates that have been updated since the given date and time - * @var string $from only return estimates with an issue_date on or after the given date - * @var string $to only return estimates with an issue_date on or before the given date - * @var string $state Only return estimates with a state matching the value provided. Options: draft, sent, accepted, or declined. - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $client_id only return estimates belonging to the client with the given ID + * @var string $updated_since only return estimates that have been updated since the given date and time + * @var string $from only return estimates with an issue_date on or after the given date + * @var string $to only return estimates with an issue_date on or before the given date + * @var string $state Only return estimates with a state matching the value provided. Options: draft, sent, accepted, or declined. + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -78,11 +79,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Estimates|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListExpenseCategories.php b/generated/Endpoint/ListExpenseCategories.php index d1f3b8e..1b313c8 100644 --- a/generated/Endpoint/ListExpenseCategories.php +++ b/generated/Endpoint/ListExpenseCategories.php @@ -17,16 +17,17 @@ class ListExpenseCategories extends \JoliCode\Harvest\Api\Runtime\Client\BaseEnd /** * Returns a list of your expense categories. The expense categories are returned sorted by creation date, with the most recently created expense categories appearing first. - + * + * The response contains an object with a expense_categories property that contains an array of up to per_page expense categories. Each entry in the array is a separate expense category object. If no more expense categories are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your expense categories. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active expense categories and false to return inactive expense categories - * @var string $updated_since only return expense categories that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active expense categories and false to return inactive expense categories + * @var string $updated_since only return expense categories that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -75,11 +76,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseCategories|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListExpenses.php b/generated/Endpoint/ListExpenses.php index 131fc9d..530c424 100644 --- a/generated/Endpoint/ListExpenses.php +++ b/generated/Endpoint/ListExpenses.php @@ -17,20 +17,21 @@ class ListExpenses extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint imp /** * Returns a list of your expenses. If accessing this endpoint as an Administrator, all expenses in the account will be returned. If accessing this endpoint as a Manager, all expenses for assigned teammates and managed projects will be returned. The expenses are returned sorted by the spent_at date, with the most recent expenses appearing first. - + * + * The response contains an object with a expenses property that contains an array of up to per_page expenses. Each entry in the array is a separate expense object. If no more expenses are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your expenses. * * @param array $queryParameters { * - * @var int $user_id only return expenses belonging to the user with the given ID - * @var int $client_id only return expenses belonging to the client with the given ID - * @var int $project_id only return expenses belonging to the project with the given ID - * @var bool $is_billed pass true to only return expenses that have been invoiced and false to return expenses that have not been invoiced - * @var string $updated_since only return expenses that have been updated since the given date and time - * @var string $from only return expenses with a spent_date on or after the given date - * @var string $to only return expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return expenses belonging to the user with the given ID + * @var int $client_id only return expenses belonging to the client with the given ID + * @var int $project_id only return expenses belonging to the project with the given ID + * @var bool $is_billed pass true to only return expenses that have been invoiced and false to return expenses that have not been invoiced + * @var string $updated_since only return expenses that have been updated since the given date and time + * @var string $from only return expenses with a spent_date on or after the given date + * @var string $to only return expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -83,11 +84,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Expenses|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListInvoiceItemCategories.php b/generated/Endpoint/ListInvoiceItemCategories.php index bfc5495..c20584e 100644 --- a/generated/Endpoint/ListInvoiceItemCategories.php +++ b/generated/Endpoint/ListInvoiceItemCategories.php @@ -17,15 +17,16 @@ class ListInvoiceItemCategories extends \JoliCode\Harvest\Api\Runtime\Client\Bas /** * Returns a list of your invoice item categories. The invoice item categories are returned sorted by creation date, with the most recently created invoice item categories appearing first. - + * + * The response contains an object with a invoice_item_categories property that contains an array of up to per_page invoice item categories. Each entry in the array is a separate invoice item category object. If no more invoice item categories are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your invoice item categories. * * @param array $queryParameters { * - * @var string $updated_since only return invoice item categories that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return invoice item categories that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -72,11 +73,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceItemCategories|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListInvoices.php b/generated/Endpoint/ListInvoices.php index 234a600..426fb53 100644 --- a/generated/Endpoint/ListInvoices.php +++ b/generated/Endpoint/ListInvoices.php @@ -17,19 +17,20 @@ class ListInvoices extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint imp /** * Returns a list of your invoices. The invoices are returned sorted by issue date, with the most recently issued invoices appearing first. - + * + * The response contains an object with a invoices property that contains an array of up to per_page invoices. Each entry in the array is a separate invoice object. If no more invoices are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your invoices. * * @param array $queryParameters { * - * @var int $client_id only return invoices belonging to the client with the given ID - * @var int $project_id only return invoices associated with the project with the given ID - * @var string $updated_since only return invoices that have been updated since the given date and time - * @var string $from only return invoices with an issue_date on or after the given date - * @var string $to only return invoices with an issue_date on or before the given date - * @var string $state Only return invoices with a state matching the value provided. Options: draft, open, paid, or closed. - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $client_id only return invoices belonging to the client with the given ID + * @var int $project_id only return invoices associated with the project with the given ID + * @var string $updated_since only return invoices that have been updated since the given date and time + * @var string $from only return invoices with an issue_date on or after the given date + * @var string $to only return invoices with an issue_date on or before the given date + * @var string $state Only return invoices with a state matching the value provided. Options: draft, open, paid, or closed. + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -80,11 +81,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Invoices|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListMessagesForEstimate.php b/generated/Endpoint/ListMessagesForEstimate.php index 041c5b8..8d30196 100644 --- a/generated/Endpoint/ListMessagesForEstimate.php +++ b/generated/Endpoint/ListMessagesForEstimate.php @@ -18,15 +18,16 @@ class ListMessagesForEstimate extends \JoliCode\Harvest\Api\Runtime\Client\BaseE /** * Returns a list of messages associated with a given estimate. The estimate messages are returned sorted by creation date, with the most recently created messages appearing first. - + * + * The response contains an object with an estimate_messages property that contains an array of up to per_page messages. Each entry in the array is a separate message object. If no more messages are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your messages. * * @param array $queryParameters { * - * @var string $updated_since only return estimate messages that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return estimate messages that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $estimateId, array $queryParameters = []) { @@ -74,11 +75,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\EstimateMessages|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListMessagesForInvoice.php b/generated/Endpoint/ListMessagesForInvoice.php index f50661a..9b20e3e 100644 --- a/generated/Endpoint/ListMessagesForInvoice.php +++ b/generated/Endpoint/ListMessagesForInvoice.php @@ -18,15 +18,16 @@ class ListMessagesForInvoice extends \JoliCode\Harvest\Api\Runtime\Client\BaseEn /** * Returns a list of messages associated with a given invoice. The invoice messages are returned sorted by creation date, with the most recently created messages appearing first. - + * + * The response contains an object with an invoice_messages property that contains an array of up to per_page messages. Each entry in the array is a separate message object. If no more messages are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your messages. * * @param array $queryParameters { * - * @var string $updated_since only return invoice messages that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return invoice messages that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $invoiceId, array $queryParameters = []) { @@ -74,11 +75,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceMessages|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListPaymentsForInvoice.php b/generated/Endpoint/ListPaymentsForInvoice.php index 2d5fc0e..5ae695b 100644 --- a/generated/Endpoint/ListPaymentsForInvoice.php +++ b/generated/Endpoint/ListPaymentsForInvoice.php @@ -18,15 +18,16 @@ class ListPaymentsForInvoice extends \JoliCode\Harvest\Api\Runtime\Client\BaseEn /** * Returns a list of payments associate with a given invoice. The payments are returned sorted by creation date, with the most recently created payments appearing first. - + * + * The response contains an object with an invoice_payments property that contains an array of up to per_page payments. Each entry in the array is a separate payment object. If no more payments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your payments. * * @param array $queryParameters { * - * @var string $updated_since only return invoice payments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $updated_since only return invoice payments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $invoiceId, array $queryParameters = []) { @@ -74,11 +75,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoicePayments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListProjects.php b/generated/Endpoint/ListProjects.php index fee2d2f..bedefa7 100644 --- a/generated/Endpoint/ListProjects.php +++ b/generated/Endpoint/ListProjects.php @@ -17,17 +17,18 @@ class ListProjects extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint imp /** * Returns a list of your projects. The projects are returned sorted by creation date, with the most recently created projects appearing first. - + * + * The response contains an object with a projects property that contains an array of up to per_page projects. Each entry in the array is a separate project object. If no more projects are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your projects. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active projects and false to return inactive projects - * @var int $client_id only return projects belonging to the client with the given ID - * @var string $updated_since only return projects that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active projects and false to return inactive projects + * @var int $client_id only return projects belonging to the client with the given ID + * @var string $updated_since only return projects that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -77,11 +78,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Projects|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListRoles.php b/generated/Endpoint/ListRoles.php index 442f4db..369c61b 100644 --- a/generated/Endpoint/ListRoles.php +++ b/generated/Endpoint/ListRoles.php @@ -17,14 +17,15 @@ class ListRoles extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint implem /** * Returns a list of roles in the account. The roles are returned sorted by creation date, with the most recently created roles appearing first. - + * + * The response contains an object with a roles property that contains an array of up to per_page roles. Each entry in the array is a separate role object. If no more roles are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your roles. * * @param array $queryParameters { * - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -70,11 +71,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Roles|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListTaskAssignments.php b/generated/Endpoint/ListTaskAssignments.php index a6a4d39..6a16975 100644 --- a/generated/Endpoint/ListTaskAssignments.php +++ b/generated/Endpoint/ListTaskAssignments.php @@ -17,16 +17,17 @@ class ListTaskAssignments extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpo /** * Returns a list of your task assignments. The task assignments are returned sorted by creation date, with the most recently created task assignments appearing first. - + * + * The response contains an object with a task_assignments property that contains an array of up to per_page task assignments. Each entry in the array is a separate task assignment object. If no more task assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your task assignments. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments - * @var string $updated_since only return task assignments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments + * @var string $updated_since only return task assignments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -75,11 +76,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TaskAssignments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php b/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php index 561f623..f22d42f 100644 --- a/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php +++ b/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php @@ -18,15 +18,16 @@ class ListTaskAssignmentsForSpecificProject extends \JoliCode\Harvest\Api\Runtim /** * Returns a list of your task assignments for the project identified by PROJECT_ID. The task assignments are returned sorted by creation date, with the most recently created task assignments appearing first. - + * + * The response contains an object with a task_assignments property that contains an array of up to per_page task assignments. Each entry in the array is a separate task assignment object. If no more task assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your task assignments. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments - * @var string $updated_since only return task assignments that have been updated since the given date and time - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active task assignments and false to return inactive task assignments + * @var string $updated_since only return task assignments that have been updated since the given date and time + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $projectId, array $queryParameters = []) { @@ -75,11 +76,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TaskAssignments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListTasks.php b/generated/Endpoint/ListTasks.php index 53e1826..22d0888 100644 --- a/generated/Endpoint/ListTasks.php +++ b/generated/Endpoint/ListTasks.php @@ -17,16 +17,17 @@ class ListTasks extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint implem /** * Returns a list of your tasks. The tasks are returned sorted by creation date, with the most recently created tasks appearing first. - + * + * The response contains an object with a tasks property that contains an array of up to per_page tasks. Each entry in the array is a separate task object. If no more tasks are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your tasks. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active tasks and false to return inactive tasks - * @var string $updated_since only return tasks that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active tasks and false to return inactive tasks + * @var string $updated_since only return tasks that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -75,11 +76,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Tasks|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListTimeEntries.php b/generated/Endpoint/ListTimeEntries.php index 2e84c21..bb77314 100644 --- a/generated/Endpoint/ListTimeEntries.php +++ b/generated/Endpoint/ListTimeEntries.php @@ -17,23 +17,24 @@ class ListTimeEntries extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint /** * Returns a list of time entries. The time entries are returned sorted by spent_date date. At this time, the sort option can’t be customized. - + * + * The response contains an object with a time_entries property that contains an array of up to per_page time entries. Each entry in the array is a separate time entry object. If no more time entries are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your time entries. * * @param array $queryParameters { * - * @var int $user_id only return time entries belonging to the user with the given ID - * @var int $client_id only return time entries belonging to the client with the given ID - * @var int $project_id only return time entries belonging to the project with the given ID - * @var int $task_id only return time entries belonging to the task with the given ID - * @var string $external_reference_id only return time entries with the given external_reference ID - * @var bool $is_billed pass true to only return time entries that have been invoiced and false to return time entries that have not been invoiced - * @var bool $is_running pass true to only return running time entries and false to return non-running time entries - * @var string $updated_since Only return time entries that have been updated since the given date and time. Use the ISO 8601 Format. - * @var string $from only return time entries with a spent_date on or after the given date - * @var string $to only return time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return time entries belonging to the user with the given ID + * @var int $client_id only return time entries belonging to the client with the given ID + * @var int $project_id only return time entries belonging to the project with the given ID + * @var int $task_id only return time entries belonging to the task with the given ID + * @var string $external_reference_id only return time entries with the given external_reference ID + * @var bool $is_billed pass true to only return time entries that have been invoiced and false to return time entries that have not been invoiced + * @var bool $is_running pass true to only return running time entries and false to return non-running time entries + * @var string $updated_since Only return time entries that have been updated since the given date and time. Use the ISO 8601 Format. + * @var string $from only return time entries with a spent_date on or after the given date + * @var string $to only return time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -90,11 +91,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeEntries|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListUserAssignments.php b/generated/Endpoint/ListUserAssignments.php index 79b6138..75f4a5c 100644 --- a/generated/Endpoint/ListUserAssignments.php +++ b/generated/Endpoint/ListUserAssignments.php @@ -17,17 +17,18 @@ class ListUserAssignments extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpo /** * Returns a list of your projects user assignments, active and archived. The user assignments are returned sorted by creation date, with the most recently created user assignments appearing first. - + * + * The response contains an object with a user_assignments property that contains an array of up to per_page user assignments. Each entry in the array is a separate user assignment object. If no more user assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your user assignments. * * @param array $queryParameters { * - * @var int $user_id only return user assignments belonging to the user with the given ID - * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments - * @var string $updated_since only return user assignments that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return user assignments belonging to the user with the given ID + * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments + * @var string $updated_since only return user assignments that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -77,11 +78,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\UserAssignments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListUserAssignmentsForSpecificProject.php b/generated/Endpoint/ListUserAssignmentsForSpecificProject.php index 17415f2..aaa1e80 100644 --- a/generated/Endpoint/ListUserAssignmentsForSpecificProject.php +++ b/generated/Endpoint/ListUserAssignmentsForSpecificProject.php @@ -18,16 +18,17 @@ class ListUserAssignmentsForSpecificProject extends \JoliCode\Harvest\Api\Runtim /** * Returns a list of user assignments for the project identified by PROJECT_ID. The user assignments are returned sorted by creation date, with the most recently created user assignments appearing first. - + * + * The response contains an object with a user_assignments property that contains an array of up to per_page user assignments. Each entry in the array is a separate user assignment object. If no more user assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your user assignments. * * @param array $queryParameters { * - * @var int $user_id only return user assignments belonging to the user with the given ID - * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments - * @var string $updated_since only return user assignments that have been updated since the given date and time - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var int $user_id only return user assignments belonging to the user with the given ID + * @var bool $is_active pass true to only return active user assignments and false to return inactive user assignments + * @var string $updated_since only return user assignments that have been updated since the given date and time + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(string $projectId, array $queryParameters = []) { @@ -77,11 +78,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\UserAssignments|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ListUsers.php b/generated/Endpoint/ListUsers.php index b748f3b..07fd420 100644 --- a/generated/Endpoint/ListUsers.php +++ b/generated/Endpoint/ListUsers.php @@ -17,16 +17,17 @@ class ListUsers extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint implem /** * Returns a list of your users. The users are returned sorted by creation date, with the most recently created users appearing first. - + * + * The response contains an object with a users property that contains an array of up to per_page users. Each entry in the array is a separate user object. If no more users are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your users. * * @param array $queryParameters { * - * @var bool $is_active pass true to only return active users and false to return inactive users - * @var string $updated_since only return users that have been updated since the given date and time - * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var string $cursor Pagination cursor - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var bool $is_active pass true to only return active users and false to return inactive users + * @var string $updated_since only return users that have been updated since the given date and time + * @var int $page DEPRECATED The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var string $cursor Pagination cursor + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -75,11 +76,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Users|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ProjectBudgetReport.php b/generated/Endpoint/ProjectBudgetReport.php index d3dabcd..26ab2fa 100644 --- a/generated/Endpoint/ProjectBudgetReport.php +++ b/generated/Endpoint/ProjectBudgetReport.php @@ -20,10 +20,10 @@ class ProjectBudgetReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpo * * @param array $queryParameters { * - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * @var bool $is_active Pass true to only return active projects and false to return inactive projects. - * } + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * @var bool $is_active Pass true to only return active projects and false to return inactive projects. + * } */ public function __construct(array $queryParameters = []) { @@ -70,11 +70,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ProjectsExpensesReport.php b/generated/Endpoint/ProjectsExpensesReport.php index e8dfb47..0c8497f 100644 --- a/generated/Endpoint/ProjectsExpensesReport.php +++ b/generated/Endpoint/ProjectsExpensesReport.php @@ -18,11 +18,11 @@ class ProjectsExpensesReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEn /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/ProjectsTimeReport.php b/generated/Endpoint/ProjectsTimeReport.php index b829705..2025655 100644 --- a/generated/Endpoint/ProjectsTimeReport.php +++ b/generated/Endpoint/ProjectsTimeReport.php @@ -18,11 +18,11 @@ class ProjectsTimeReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoi /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RestartStoppedTimeEntry.php b/generated/Endpoint/RestartStoppedTimeEntry.php index d86eab8..054972a 100644 --- a/generated/Endpoint/RestartStoppedTimeEntry.php +++ b/generated/Endpoint/RestartStoppedTimeEntry.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveBillableRate.php b/generated/Endpoint/RetrieveBillableRate.php index a726e89..5c38843 100644 --- a/generated/Endpoint/RetrieveBillableRate.php +++ b/generated/Endpoint/RetrieveBillableRate.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\BillableRate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveClient.php b/generated/Endpoint/RetrieveClient.php index dc29247..b6d6a11 100644 --- a/generated/Endpoint/RetrieveClient.php +++ b/generated/Endpoint/RetrieveClient.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveCompany.php b/generated/Endpoint/RetrieveCompany.php index 0109f4e..eca5017 100644 --- a/generated/Endpoint/RetrieveCompany.php +++ b/generated/Endpoint/RetrieveCompany.php @@ -41,11 +41,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Company|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveContact.php b/generated/Endpoint/RetrieveContact.php index 7335e82..5c17994 100644 --- a/generated/Endpoint/RetrieveContact.php +++ b/generated/Endpoint/RetrieveContact.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveCostRate.php b/generated/Endpoint/RetrieveCostRate.php index 87374d6..60d3150 100644 --- a/generated/Endpoint/RetrieveCostRate.php +++ b/generated/Endpoint/RetrieveCostRate.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\CostRate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveEstimate.php b/generated/Endpoint/RetrieveEstimate.php index 75b64f0..3dc8287 100644 --- a/generated/Endpoint/RetrieveEstimate.php +++ b/generated/Endpoint/RetrieveEstimate.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveEstimateItemCategory.php b/generated/Endpoint/RetrieveEstimateItemCategory.php index 8b56d57..46c15d4 100644 --- a/generated/Endpoint/RetrieveEstimateItemCategory.php +++ b/generated/Endpoint/RetrieveEstimateItemCategory.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveExpense.php b/generated/Endpoint/RetrieveExpense.php index 238cc14..30f343d 100644 --- a/generated/Endpoint/RetrieveExpense.php +++ b/generated/Endpoint/RetrieveExpense.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveExpenseCategory.php b/generated/Endpoint/RetrieveExpenseCategory.php index 0f54525..b15221f 100644 --- a/generated/Endpoint/RetrieveExpenseCategory.php +++ b/generated/Endpoint/RetrieveExpenseCategory.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveInvoice.php b/generated/Endpoint/RetrieveInvoice.php index 21e6e2d..3ae92e4 100644 --- a/generated/Endpoint/RetrieveInvoice.php +++ b/generated/Endpoint/RetrieveInvoice.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveInvoiceItemCategory.php b/generated/Endpoint/RetrieveInvoiceItemCategory.php index c6ae54b..50cf769 100644 --- a/generated/Endpoint/RetrieveInvoiceItemCategory.php +++ b/generated/Endpoint/RetrieveInvoiceItemCategory.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php b/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php index 8cfcad9..2b18825 100644 --- a/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php +++ b/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php @@ -21,9 +21,9 @@ class RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice extends \JoliCode\H * * @param array $queryParameters { * - * @var bool $thank_you set to true to return the subject and body of a thank-you invoice message for the specific invoice - * @var bool $reminder Set to true to return the subject and body of a reminder invoice message for the specific invoice. - * } + * @var bool $thank_you set to true to return the subject and body of a thank-you invoice message for the specific invoice + * @var bool $reminder Set to true to return the subject and body of a reminder invoice message for the specific invoice. + * } */ public function __construct(string $invoiceId, array $queryParameters = []) { @@ -71,11 +71,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveProject.php b/generated/Endpoint/RetrieveProject.php index 9fdec12..7fe58e8 100644 --- a/generated/Endpoint/RetrieveProject.php +++ b/generated/Endpoint/RetrieveProject.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveRole.php b/generated/Endpoint/RetrieveRole.php index 943b379..7dad0b7 100644 --- a/generated/Endpoint/RetrieveRole.php +++ b/generated/Endpoint/RetrieveRole.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveTask.php b/generated/Endpoint/RetrieveTask.php index c28a24d..866be87 100644 --- a/generated/Endpoint/RetrieveTask.php +++ b/generated/Endpoint/RetrieveTask.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveTaskAssignment.php b/generated/Endpoint/RetrieveTaskAssignment.php index 9248b41..b6295a5 100644 --- a/generated/Endpoint/RetrieveTaskAssignment.php +++ b/generated/Endpoint/RetrieveTaskAssignment.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php b/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php index 4be530d..36301e3 100644 --- a/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php +++ b/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php @@ -41,11 +41,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveTimeEntry.php b/generated/Endpoint/RetrieveTimeEntry.php index fca7d89..963cc72 100644 --- a/generated/Endpoint/RetrieveTimeEntry.php +++ b/generated/Endpoint/RetrieveTimeEntry.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveUser.php b/generated/Endpoint/RetrieveUser.php index d5316c6..6ec97e7 100644 --- a/generated/Endpoint/RetrieveUser.php +++ b/generated/Endpoint/RetrieveUser.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/RetrieveUserAssignment.php b/generated/Endpoint/RetrieveUserAssignment.php index f0bf8c4..e88150e 100644 --- a/generated/Endpoint/RetrieveUserAssignment.php +++ b/generated/Endpoint/RetrieveUserAssignment.php @@ -52,11 +52,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/StopRunningTimeEntry.php b/generated/Endpoint/StopRunningTimeEntry.php index 7620318..ad89ed5 100644 --- a/generated/Endpoint/StopRunningTimeEntry.php +++ b/generated/Endpoint/StopRunningTimeEntry.php @@ -50,11 +50,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/TasksReport.php b/generated/Endpoint/TasksReport.php index 21f63dc..2ec7f19 100644 --- a/generated/Endpoint/TasksReport.php +++ b/generated/Endpoint/TasksReport.php @@ -18,11 +18,11 @@ class TasksReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint impl /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/TeamExpensesReport.php b/generated/Endpoint/TeamExpensesReport.php index c46c7a7..144c420 100644 --- a/generated/Endpoint/TeamExpensesReport.php +++ b/generated/Endpoint/TeamExpensesReport.php @@ -18,11 +18,11 @@ class TeamExpensesReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoi /** * @param array $queryParameters { * - * @var string $from only report on expenses with a spent_date on or after the given date - * @var string $to only report on expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on expenses with a spent_date on or after the given date + * @var string $to only report on expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/TeamTimeReport.php b/generated/Endpoint/TeamTimeReport.php index 48194da..11eb06d 100644 --- a/generated/Endpoint/TeamTimeReport.php +++ b/generated/Endpoint/TeamTimeReport.php @@ -18,11 +18,11 @@ class TeamTimeReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint i /** * @param array $queryParameters { * - * @var string $from only report on time entries with a spent_date on or after the given date - * @var string $to only report on time entries with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries with a spent_date on or after the given date + * @var string $to only report on time entries with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -69,11 +69,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UninvoicedReport.php b/generated/Endpoint/UninvoicedReport.php index c02a382..7101c76 100644 --- a/generated/Endpoint/UninvoicedReport.php +++ b/generated/Endpoint/UninvoicedReport.php @@ -17,15 +17,16 @@ class UninvoicedReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint /** * The response contains an object with a results property that contains an array of up to per_page results. Each entry in the array is a separate result object. If no more results are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your results. - + * + * Note: Each request requires both the from and to parameters to be supplied in the URL’s query string. The timeframe supplied cannot exceed 1 year (365 days). * * @param array $queryParameters { * - * @var string $from only report on time entries and expenses with a spent_date on or after the given date - * @var string $to only report on time entries and expenses with a spent_date on or before the given date - * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) - * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) - * } + * @var string $from only report on time entries and expenses with a spent_date on or after the given date + * @var string $to only report on time entries and expenses with a spent_date on or before the given date + * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) + * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) + * } */ public function __construct(array $queryParameters = []) { @@ -72,11 +73,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\UninvoicedReportResults|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateClient.php b/generated/Endpoint/UpdateClient.php index f961a05..77bed2f 100644 --- a/generated/Endpoint/UpdateClient.php +++ b/generated/Endpoint/UpdateClient.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateCompany.php b/generated/Endpoint/UpdateCompany.php index 12f9764..0d6c1a8 100644 --- a/generated/Endpoint/UpdateCompany.php +++ b/generated/Endpoint/UpdateCompany.php @@ -53,11 +53,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Company|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateContact.php b/generated/Endpoint/UpdateContact.php index 9363b91..eab9ec2 100644 --- a/generated/Endpoint/UpdateContact.php +++ b/generated/Endpoint/UpdateContact.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateEstimate.php b/generated/Endpoint/UpdateEstimate.php index deb4d7e..dbfd222 100644 --- a/generated/Endpoint/UpdateEstimate.php +++ b/generated/Endpoint/UpdateEstimate.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateEstimateItemCategory.php b/generated/Endpoint/UpdateEstimateItemCategory.php index a288ff1..ecbf8af 100644 --- a/generated/Endpoint/UpdateEstimateItemCategory.php +++ b/generated/Endpoint/UpdateEstimateItemCategory.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateExpense.php b/generated/Endpoint/UpdateExpense.php index 8a32571..bc0c1cd 100644 --- a/generated/Endpoint/UpdateExpense.php +++ b/generated/Endpoint/UpdateExpense.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateExpenseCategory.php b/generated/Endpoint/UpdateExpenseCategory.php index e373185..9ef4800 100644 --- a/generated/Endpoint/UpdateExpenseCategory.php +++ b/generated/Endpoint/UpdateExpenseCategory.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateInvoice.php b/generated/Endpoint/UpdateInvoice.php index e391abb..c6b1d9a 100644 --- a/generated/Endpoint/UpdateInvoice.php +++ b/generated/Endpoint/UpdateInvoice.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateInvoiceItemCategory.php b/generated/Endpoint/UpdateInvoiceItemCategory.php index 2525cba..fca2647 100644 --- a/generated/Endpoint/UpdateInvoiceItemCategory.php +++ b/generated/Endpoint/UpdateInvoiceItemCategory.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateProject.php b/generated/Endpoint/UpdateProject.php index 76c30d3..8c3bbd3 100644 --- a/generated/Endpoint/UpdateProject.php +++ b/generated/Endpoint/UpdateProject.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateRole.php b/generated/Endpoint/UpdateRole.php index 1f1a9c2..48f6dc2 100644 --- a/generated/Endpoint/UpdateRole.php +++ b/generated/Endpoint/UpdateRole.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateTask.php b/generated/Endpoint/UpdateTask.php index 49aabac..8350712 100644 --- a/generated/Endpoint/UpdateTask.php +++ b/generated/Endpoint/UpdateTask.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateTaskAssignment.php b/generated/Endpoint/UpdateTaskAssignment.php index 419e22a..0fafe48 100644 --- a/generated/Endpoint/UpdateTaskAssignment.php +++ b/generated/Endpoint/UpdateTaskAssignment.php @@ -57,11 +57,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateTimeEntry.php b/generated/Endpoint/UpdateTimeEntry.php index a4800a2..d75c034 100644 --- a/generated/Endpoint/UpdateTimeEntry.php +++ b/generated/Endpoint/UpdateTimeEntry.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateUser.php b/generated/Endpoint/UpdateUser.php index 14a25de..23d2d40 100644 --- a/generated/Endpoint/UpdateUser.php +++ b/generated/Endpoint/UpdateUser.php @@ -55,11 +55,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateUserAssignedTeammates.php b/generated/Endpoint/UpdateUserAssignedTeammates.php index 89de0c6..50f8038 100644 --- a/generated/Endpoint/UpdateUserAssignedTeammates.php +++ b/generated/Endpoint/UpdateUserAssignedTeammates.php @@ -18,8 +18,8 @@ class UpdateUserAssignedTeammates extends \JoliCode\Harvest\Api\Runtime\Client\B /** * Updates the the assigned teammates for a specific user. Returns list of assigned teammates and a 200 OK response code if the call succeeded. The USER_ID must belong to a user that is a Manager, if not, a 422 Unprocessable Entity status code will be returned. - - Adding teammates for the first time will add the people_manager access role to the Manager. Any IDs not included in the teammate_ids that are currently assigned will be unassigned from the Manager. Use an empty array to unassign all users. This will also remove the people_manager access role from the Manager. + * + * Adding teammates for the first time will add the people_manager access role to the Manager. Any IDs not included in the teammate_ids that are currently assigned will be unassigned from the Manager. Use an empty array to unassign all users. This will also remove the people_manager access role from the Manager. */ public function __construct(string $userId, \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody $requestBody) { @@ -57,11 +57,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\TeammatesPatchResponse|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Endpoint/UpdateUserAssignment.php b/generated/Endpoint/UpdateUserAssignment.php index a819409..fac8345 100644 --- a/generated/Endpoint/UpdateUserAssignment.php +++ b/generated/Endpoint/UpdateUserAssignment.php @@ -57,11 +57,9 @@ public function getAuthenticationScopes(): array } /** - * {@inheritdoc} - * * @return \JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/generated/Model/Invoice.php b/generated/Model/Invoice.php index 155f235..3fdf68e 100644 --- a/generated/Model/Invoice.php +++ b/generated/Model/Invoice.php @@ -173,6 +173,12 @@ class Invoice extends \ArrayObject * @var string|null */ protected $paymentTerm; + /** + * The list of payment options enabled for the invoice. Options: [ach, credit_card, paypal]. + * + * @var string[]|null + */ + protected $paymentOptions; /** * Date and time the invoice was sent. * @@ -719,6 +725,29 @@ public function setPaymentTerm(?string $paymentTerm): self return $this; } + /** + * The list of payment options enabled for the invoice. Options: [ach, credit_card, paypal]. + * + * @return string[]|null + */ + public function getPaymentOptions(): ?array + { + return $this->paymentOptions; + } + + /** + * The list of payment options enabled for the invoice. Options: [ach, credit_card, paypal]. + * + * @param string[]|null $paymentOptions + */ + public function setPaymentOptions(?array $paymentOptions): self + { + $this->initialized['paymentOptions'] = true; + $this->paymentOptions = $paymentOptions; + + return $this; + } + /** * Date and time the invoice was sent. */ diff --git a/generated/Model/InvoiceMessage.php b/generated/Model/InvoiceMessage.php index 92dfc7e..9b92dda 100644 --- a/generated/Model/InvoiceMessage.php +++ b/generated/Model/InvoiceMessage.php @@ -66,7 +66,9 @@ class InvoiceMessage extends \ArrayObject */ protected $body; /** - * Whether to include a link to the client invoice in the message body. Not used when thank_you is true. + * DEPRECATED This will be true when payment_options are assigned to the invoice and false when there are no payment_options. + * + * @deprecated * * @var bool|null */ @@ -282,7 +284,9 @@ public function setBody(?string $body): self } /** - * Whether to include a link to the client invoice in the message body. Not used when thank_you is true. + * DEPRECATED This will be true when payment_options are assigned to the invoice and false when there are no payment_options. + * + * @deprecated */ public function getIncludeLinkToClientInvoice(): ?bool { @@ -290,7 +294,9 @@ public function getIncludeLinkToClientInvoice(): ?bool } /** - * Whether to include a link to the client invoice in the message body. Not used when thank_you is true. + * DEPRECATED This will be true when payment_options are assigned to the invoice and false when there are no payment_options. + * + * @deprecated */ public function setIncludeLinkToClientInvoice(?bool $includeLinkToClientInvoice): self { diff --git a/generated/Model/InvoicesInvoiceIdMessagesPostBody.php b/generated/Model/InvoicesInvoiceIdMessagesPostBody.php index d69c196..5454b08 100644 --- a/generated/Model/InvoicesInvoiceIdMessagesPostBody.php +++ b/generated/Model/InvoicesInvoiceIdMessagesPostBody.php @@ -42,7 +42,9 @@ class InvoicesInvoiceIdMessagesPostBody extends \ArrayObject */ protected $body; /** - * If set to true, a link to the client invoice URL will be included in the message email. Defaults to false. Ignored when thank_you is set to true. + * DEPRECATED A link to the client invoice URL will be automatically included in the message email if payment_options have been assigned to the invoice. Setting to true will be ignored. Setting to false will clear all payment_options on the invoice. + * + * @deprecated * * @var bool|null */ @@ -152,7 +154,9 @@ public function setBody(?string $body): self } /** - * If set to true, a link to the client invoice URL will be included in the message email. Defaults to false. Ignored when thank_you is set to true. + * DEPRECATED A link to the client invoice URL will be automatically included in the message email if payment_options have been assigned to the invoice. Setting to true will be ignored. Setting to false will clear all payment_options on the invoice. + * + * @deprecated */ public function getIncludeLinkToClientInvoice(): ?bool { @@ -160,7 +164,9 @@ public function getIncludeLinkToClientInvoice(): ?bool } /** - * If set to true, a link to the client invoice URL will be included in the message email. Defaults to false. Ignored when thank_you is set to true. + * DEPRECATED A link to the client invoice URL will be automatically included in the message email if payment_options have been assigned to the invoice. Setting to true will be ignored. Setting to false will clear all payment_options on the invoice. + * + * @deprecated */ public function setIncludeLinkToClientInvoice(?bool $includeLinkToClientInvoice): self { diff --git a/generated/Model/InvoicesInvoiceIdPatchBody.php b/generated/Model/InvoicesInvoiceIdPatchBody.php index 1c7f95f..09f5747 100644 --- a/generated/Model/InvoicesInvoiceIdPatchBody.php +++ b/generated/Model/InvoicesInvoiceIdPatchBody.php @@ -101,6 +101,12 @@ class InvoicesInvoiceIdPatchBody extends \ArrayObject * @var string|null */ protected $paymentTerm; + /** + * The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]. + * + * @var string[]|null + */ + protected $paymentOptions; /** * Array of line item parameters. * @@ -379,6 +385,29 @@ public function setPaymentTerm(?string $paymentTerm): self return $this; } + /** + * The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]. + * + * @return string[]|null + */ + public function getPaymentOptions(): ?array + { + return $this->paymentOptions; + } + + /** + * The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]. + * + * @param string[]|null $paymentOptions + */ + public function setPaymentOptions(?array $paymentOptions): self + { + $this->initialized['paymentOptions'] = true; + $this->paymentOptions = $paymentOptions; + + return $this; + } + /** * Array of line item parameters. * diff --git a/generated/Model/InvoicesPostBody.php b/generated/Model/InvoicesPostBody.php index 7b9cb5a..f6c87a8 100644 --- a/generated/Model/InvoicesPostBody.php +++ b/generated/Model/InvoicesPostBody.php @@ -95,6 +95,12 @@ class InvoicesPostBody extends \ArrayObject * @var string|null */ protected $paymentTerm; + /** + * The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]. + * + * @var string[]|null + */ + protected $paymentOptions; /** * An line items import object. * @@ -102,7 +108,7 @@ class InvoicesPostBody extends \ArrayObject */ protected $lineItemsImport; /** - * The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only avaiable action is to add funds. + * The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only available action is to add funds. * * @var int|null */ @@ -366,6 +372,29 @@ public function setPaymentTerm(?string $paymentTerm): self return $this; } + /** + * The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]. + * + * @return string[]|null + */ + public function getPaymentOptions(): ?array + { + return $this->paymentOptions; + } + + /** + * The payment options available to pay the invoice. Your account must be configured with the appropriate options under Settings > Integrations > Online payment to assign them. Options: [ach, credit_card, paypal]. + * + * @param string[]|null $paymentOptions + */ + public function setPaymentOptions(?array $paymentOptions): self + { + $this->initialized['paymentOptions'] = true; + $this->paymentOptions = $paymentOptions; + + return $this; + } + /** * An line items import object. */ @@ -386,7 +415,7 @@ public function setLineItemsImport(?InvoicesPostBodyLineItemsImport $lineItemsIm } /** - * The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only avaiable action is to add funds. + * The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only available action is to add funds. */ public function getRetainerId(): ?int { @@ -394,7 +423,7 @@ public function getRetainerId(): ?int } /** - * The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only avaiable action is to add funds. + * The ID of the retainer you want to add funds to with this invoice. Note: retainers cannot be fully used (created, drawn against, closed, etc.) via the API at this time. The only available action is to add funds. */ public function setRetainerId(?int $retainerId): self { diff --git a/generated/Model/Teammate.php b/generated/Model/Teammate.php index 7c453c6..a15af19 100644 --- a/generated/Model/Teammate.php +++ b/generated/Model/Teammate.php @@ -20,7 +20,7 @@ class Teammate extends \ArrayObject /** * Unique ID for the teammate. * - * @var mixed|null + * @var int|null */ protected $id; /** @@ -49,20 +49,16 @@ public function isInitialized($property): bool /** * Unique ID for the teammate. - * - * @return mixed */ - public function getId() + public function getId(): ?int { return $this->id; } /** * Unique ID for the teammate. - * - * @param mixed $id */ - public function setId($id): self + public function setId(?int $id): self { $this->initialized['id'] = true; $this->id = $id; diff --git a/generated/Model/UsersUserIdTeammatesPatchBody.php b/generated/Model/UsersUserIdTeammatesPatchBody.php index c5bcb1e..745de85 100644 --- a/generated/Model/UsersUserIdTeammatesPatchBody.php +++ b/generated/Model/UsersUserIdTeammatesPatchBody.php @@ -20,7 +20,7 @@ class UsersUserIdTeammatesPatchBody extends \ArrayObject /** * Full list of user IDs to be assigned to the Manager. * - * @var mixed|null + * @var string[]|null */ protected $teammateIds; @@ -32,9 +32,9 @@ public function isInitialized($property): bool /** * Full list of user IDs to be assigned to the Manager. * - * @return mixed + * @return string[]|null */ - public function getTeammateIds() + public function getTeammateIds(): ?array { return $this->teammateIds; } @@ -42,9 +42,9 @@ public function getTeammateIds() /** * Full list of user IDs to be assigned to the Manager. * - * @param mixed $teammateIds + * @param string[]|null $teammateIds */ - public function setTeammateIds($teammateIds): self + public function setTeammateIds(?array $teammateIds): self { $this->initialized['teammateIds'] = true; $this->teammateIds = $teammateIds; diff --git a/generated/Normalizer/BillableRateNormalizer.php b/generated/Normalizer/BillableRateNormalizer.php index af58760..5366381 100644 --- a/generated/Normalizer/BillableRateNormalizer.php +++ b/generated/Normalizer/BillableRateNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRate' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRate' === $data::class; } /** @@ -140,4 +140,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\BillableRate' => false]; + } } diff --git a/generated/Normalizer/BillableRatesNormalizer.php b/generated/Normalizer/BillableRatesNormalizer.php index 2b0008a..87af632 100644 --- a/generated/Normalizer/BillableRatesNormalizer.php +++ b/generated/Normalizer/BillableRatesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRates' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRates' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\BillableRates' => false]; + } } diff --git a/generated/Normalizer/ClientNormalizer.php b/generated/Normalizer/ClientNormalizer.php index 6b4ccba..d1b6e56 100644 --- a/generated/Normalizer/ClientNormalizer.php +++ b/generated/Normalizer/ClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Client' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Client' === $data::class; } /** @@ -155,4 +155,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Client' => false]; + } } diff --git a/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php b/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php index 43531f4..9bb21e1 100644 --- a/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/ClientsNormalizer.php b/generated/Normalizer/ClientsNormalizer.php index f1623cf..3c79b60 100644 --- a/generated/Normalizer/ClientsNormalizer.php +++ b/generated/Normalizer/ClientsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Clients' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Clients' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Clients' => false]; + } } diff --git a/generated/Normalizer/ClientsPostBodyNormalizer.php b/generated/Normalizer/ClientsPostBodyNormalizer.php index b2a59d5..62f8316 100644 --- a/generated/Normalizer/ClientsPostBodyNormalizer.php +++ b/generated/Normalizer/ClientsPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' === $data::class; } /** @@ -117,4 +117,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => false]; + } } diff --git a/generated/Normalizer/CompaniesNormalizer.php b/generated/Normalizer/CompaniesNormalizer.php index 12b946b..c90772e 100644 --- a/generated/Normalizer/CompaniesNormalizer.php +++ b/generated/Normalizer/CompaniesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Companies' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Companies' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Companies' => false]; + } } diff --git a/generated/Normalizer/CompanyNormalizer.php b/generated/Normalizer/CompanyNormalizer.php index 05b6b02..e137030 100644 --- a/generated/Normalizer/CompanyNormalizer.php +++ b/generated/Normalizer/CompanyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Company' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Company' === $data::class; } /** @@ -263,4 +263,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Company' => false]; + } } diff --git a/generated/Normalizer/CompanyPatchBodyNormalizer.php b/generated/Normalizer/CompanyPatchBodyNormalizer.php index 28239f2..2d04d5d 100644 --- a/generated/Normalizer/CompanyPatchBodyNormalizer.php +++ b/generated/Normalizer/CompanyPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => false]; + } } diff --git a/generated/Normalizer/ContactClientNormalizer.php b/generated/Normalizer/ContactClientNormalizer.php index 3285592..5b7d9ec 100644 --- a/generated/Normalizer/ContactClientNormalizer.php +++ b/generated/Normalizer/ContactClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactClient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ContactClient' => false]; + } } diff --git a/generated/Normalizer/ContactNormalizer.php b/generated/Normalizer/ContactNormalizer.php index 0339152..27e63f0 100644 --- a/generated/Normalizer/ContactNormalizer.php +++ b/generated/Normalizer/ContactNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contact' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contact' === $data::class; } /** @@ -182,4 +182,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Contact' => false]; + } } diff --git a/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php b/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php index 0331e8f..7874759 100644 --- a/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' === $data::class; } /** @@ -155,4 +155,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/ContactsNormalizer.php b/generated/Normalizer/ContactsNormalizer.php index bdd392e..96d9ca5 100644 --- a/generated/Normalizer/ContactsNormalizer.php +++ b/generated/Normalizer/ContactsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contacts' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contacts' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Contacts' => false]; + } } diff --git a/generated/Normalizer/ContactsPostBodyNormalizer.php b/generated/Normalizer/ContactsPostBodyNormalizer.php index 61f1f62..304df4e 100644 --- a/generated/Normalizer/ContactsPostBodyNormalizer.php +++ b/generated/Normalizer/ContactsPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' === $data::class; } /** @@ -151,4 +151,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => false]; + } } diff --git a/generated/Normalizer/CostRateNormalizer.php b/generated/Normalizer/CostRateNormalizer.php index 01967d6..50d4894 100644 --- a/generated/Normalizer/CostRateNormalizer.php +++ b/generated/Normalizer/CostRateNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRate' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRate' === $data::class; } /** @@ -140,4 +140,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\CostRate' => false]; + } } diff --git a/generated/Normalizer/CostRatesNormalizer.php b/generated/Normalizer/CostRatesNormalizer.php index ecdec8c..676c38e 100644 --- a/generated/Normalizer/CostRatesNormalizer.php +++ b/generated/Normalizer/CostRatesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRates' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRates' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\CostRates' => false]; + } } diff --git a/generated/Normalizer/ErrorNormalizer.php b/generated/Normalizer/ErrorNormalizer.php index 330ece1..4ece617 100644 --- a/generated/Normalizer/ErrorNormalizer.php +++ b/generated/Normalizer/ErrorNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Error' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Error' === $data::class; } /** @@ -97,4 +97,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Error' => false]; + } } diff --git a/generated/Normalizer/EstimateClientNormalizer.php b/generated/Normalizer/EstimateClientNormalizer.php index a7de523..e3a1299 100644 --- a/generated/Normalizer/EstimateClientNormalizer.php +++ b/generated/Normalizer/EstimateClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateClient' => false]; + } } diff --git a/generated/Normalizer/EstimateCreatorNormalizer.php b/generated/Normalizer/EstimateCreatorNormalizer.php index a93eed9..ac4d98c 100644 --- a/generated/Normalizer/EstimateCreatorNormalizer.php +++ b/generated/Normalizer/EstimateCreatorNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => false]; + } } diff --git a/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php b/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php index 266e90f..fa338c1 100644 --- a/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' === $data::class; } /** @@ -92,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/EstimateItemCategoriesNormalizer.php b/generated/Normalizer/EstimateItemCategoriesNormalizer.php index b8e66c1..388b44e 100644 --- a/generated/Normalizer/EstimateItemCategoriesNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoriesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => false]; + } } diff --git a/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php b/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php index 11df5c7..e444d24 100644 --- a/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' === $data::class; } /** @@ -90,4 +90,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => false]; + } } diff --git a/generated/Normalizer/EstimateItemCategoryNormalizer.php b/generated/Normalizer/EstimateItemCategoryNormalizer.php index 2963df6..f38fbaf 100644 --- a/generated/Normalizer/EstimateItemCategoryNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoryNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => false]; + } } diff --git a/generated/Normalizer/EstimateLineItemNormalizer.php b/generated/Normalizer/EstimateLineItemNormalizer.php index 3e41a53..fe1e3f7 100644 --- a/generated/Normalizer/EstimateLineItemNormalizer.php +++ b/generated/Normalizer/EstimateLineItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' === $data::class; } /** @@ -164,4 +164,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => false]; + } } diff --git a/generated/Normalizer/EstimateLineItemsNormalizer.php b/generated/Normalizer/EstimateLineItemsNormalizer.php index 8dbc68b..2f1dbf6 100644 --- a/generated/Normalizer/EstimateLineItemsNormalizer.php +++ b/generated/Normalizer/EstimateLineItemsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => false]; + } } diff --git a/generated/Normalizer/EstimateMessageNormalizer.php b/generated/Normalizer/EstimateMessageNormalizer.php index 3769458..7840d59 100644 --- a/generated/Normalizer/EstimateMessageNormalizer.php +++ b/generated/Normalizer/EstimateMessageNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' === $data::class; } /** @@ -199,4 +199,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => false]; + } } diff --git a/generated/Normalizer/EstimateMessageRecipientNormalizer.php b/generated/Normalizer/EstimateMessageRecipientNormalizer.php index dbb174b..7e00217 100644 --- a/generated/Normalizer/EstimateMessageRecipientNormalizer.php +++ b/generated/Normalizer/EstimateMessageRecipientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => false]; + } } diff --git a/generated/Normalizer/EstimateMessageRecipientsNormalizer.php b/generated/Normalizer/EstimateMessageRecipientsNormalizer.php index f404c02..00cb4ef 100644 --- a/generated/Normalizer/EstimateMessageRecipientsNormalizer.php +++ b/generated/Normalizer/EstimateMessageRecipientsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => false]; + } } diff --git a/generated/Normalizer/EstimateMessagesNormalizer.php b/generated/Normalizer/EstimateMessagesNormalizer.php index 83b2322..4dc869a 100644 --- a/generated/Normalizer/EstimateMessagesNormalizer.php +++ b/generated/Normalizer/EstimateMessagesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => false]; + } } diff --git a/generated/Normalizer/EstimateNormalizer.php b/generated/Normalizer/EstimateNormalizer.php index c07fc9d..7c76b9e 100644 --- a/generated/Normalizer/EstimateNormalizer.php +++ b/generated/Normalizer/EstimateNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimate' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimate' === $data::class; } /** @@ -328,4 +328,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Estimate' => false]; + } } diff --git a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php index 377f7b7..6ebcdb6 100644 --- a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' === $data::class; } /** @@ -134,4 +134,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => false]; + } } diff --git a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php index b016aed..c474b85 100644 --- a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' === $data::class; } /** @@ -95,4 +95,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => false]; + } } diff --git a/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php b/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php index 5fe154d..43545f8 100644 --- a/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => false]; + } } diff --git a/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php b/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php index 5764d5c..bd458b7 100644 --- a/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' === $data::class; } /** @@ -199,4 +199,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/EstimatesNormalizer.php b/generated/Normalizer/EstimatesNormalizer.php index b8fb5ea..e2f98e2 100644 --- a/generated/Normalizer/EstimatesNormalizer.php +++ b/generated/Normalizer/EstimatesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimates' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimates' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Estimates' => false]; + } } diff --git a/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php b/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php index 45c871c..b9e0ad4 100644 --- a/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' === $data::class; } /** @@ -124,4 +124,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => false]; + } } diff --git a/generated/Normalizer/EstimatesPostBodyNormalizer.php b/generated/Normalizer/EstimatesPostBodyNormalizer.php index cc98fd8..eed8618 100644 --- a/generated/Normalizer/EstimatesPostBodyNormalizer.php +++ b/generated/Normalizer/EstimatesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' === $data::class; } /** @@ -197,4 +197,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => false]; + } } diff --git a/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php b/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php index ba26af9..eccdc84 100644 --- a/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' === $data::class; } /** @@ -122,4 +122,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/ExpenseCategoriesNormalizer.php b/generated/Normalizer/ExpenseCategoriesNormalizer.php index 3304124..5a6d472 100644 --- a/generated/Normalizer/ExpenseCategoriesNormalizer.php +++ b/generated/Normalizer/ExpenseCategoriesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => false]; + } } diff --git a/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php b/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php index 1ede192..ca271e0 100644 --- a/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php +++ b/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' === $data::class; } /** @@ -120,4 +120,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => false]; + } } diff --git a/generated/Normalizer/ExpenseCategoryNormalizer.php b/generated/Normalizer/ExpenseCategoryNormalizer.php index f4c76c6..c077ebe 100644 --- a/generated/Normalizer/ExpenseCategoryNormalizer.php +++ b/generated/Normalizer/ExpenseCategoryNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' === $data::class; } /** @@ -149,4 +149,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => false]; + } } diff --git a/generated/Normalizer/ExpenseClientNormalizer.php b/generated/Normalizer/ExpenseClientNormalizer.php index 63a9f88..cc056a4 100644 --- a/generated/Normalizer/ExpenseClientNormalizer.php +++ b/generated/Normalizer/ExpenseClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => false]; + } } diff --git a/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php b/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php index 68d69a3..736189a 100644 --- a/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php +++ b/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => false]; + } } diff --git a/generated/Normalizer/ExpenseInvoiceNormalizer.php b/generated/Normalizer/ExpenseInvoiceNormalizer.php index f475fc6..25b262e 100644 --- a/generated/Normalizer/ExpenseInvoiceNormalizer.php +++ b/generated/Normalizer/ExpenseInvoiceNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => false]; + } } diff --git a/generated/Normalizer/ExpenseNormalizer.php b/generated/Normalizer/ExpenseNormalizer.php index cb5569b..5e4449a 100644 --- a/generated/Normalizer/ExpenseNormalizer.php +++ b/generated/Normalizer/ExpenseNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expense' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expense' === $data::class; } /** @@ -255,4 +255,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Expense' => false]; + } } diff --git a/generated/Normalizer/ExpenseProjectNormalizer.php b/generated/Normalizer/ExpenseProjectNormalizer.php index a973d18..64ca2af 100644 --- a/generated/Normalizer/ExpenseProjectNormalizer.php +++ b/generated/Normalizer/ExpenseProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => false]; + } } diff --git a/generated/Normalizer/ExpenseReceiptNormalizer.php b/generated/Normalizer/ExpenseReceiptNormalizer.php index e3b7258..d9e638e 100644 --- a/generated/Normalizer/ExpenseReceiptNormalizer.php +++ b/generated/Normalizer/ExpenseReceiptNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => false]; + } } diff --git a/generated/Normalizer/ExpenseReportsResultNormalizer.php b/generated/Normalizer/ExpenseReportsResultNormalizer.php index 26184cb..a8559c2 100644 --- a/generated/Normalizer/ExpenseReportsResultNormalizer.php +++ b/generated/Normalizer/ExpenseReportsResultNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' === $data::class; } /** @@ -197,4 +197,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => false]; + } } diff --git a/generated/Normalizer/ExpenseReportsResultsNormalizer.php b/generated/Normalizer/ExpenseReportsResultsNormalizer.php index a465f51..58fc10f 100644 --- a/generated/Normalizer/ExpenseReportsResultsNormalizer.php +++ b/generated/Normalizer/ExpenseReportsResultsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => false]; + } } diff --git a/generated/Normalizer/ExpenseUserNormalizer.php b/generated/Normalizer/ExpenseUserNormalizer.php index 5547e9d..5b8f3ea 100644 --- a/generated/Normalizer/ExpenseUserNormalizer.php +++ b/generated/Normalizer/ExpenseUserNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => false]; + } } diff --git a/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php b/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php index 928d384..27bbb0d 100644 --- a/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' === $data::class; } /** @@ -167,4 +167,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/ExpensesNormalizer.php b/generated/Normalizer/ExpensesNormalizer.php index 4d35335..d5b29dc 100644 --- a/generated/Normalizer/ExpensesNormalizer.php +++ b/generated/Normalizer/ExpensesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expenses' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expenses' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Expenses' => false]; + } } diff --git a/generated/Normalizer/ExpensesPostBodyNormalizer.php b/generated/Normalizer/ExpensesPostBodyNormalizer.php index 85ef3ba..4c0ee87 100644 --- a/generated/Normalizer/ExpensesPostBodyNormalizer.php +++ b/generated/Normalizer/ExpensesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' === $data::class; } /** @@ -161,4 +161,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => false]; + } } diff --git a/generated/Normalizer/InvoiceClientNormalizer.php b/generated/Normalizer/InvoiceClientNormalizer.php index 6c0ba80..7e60b3e 100644 --- a/generated/Normalizer/InvoiceClientNormalizer.php +++ b/generated/Normalizer/InvoiceClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => false]; + } } diff --git a/generated/Normalizer/InvoiceCreatorNormalizer.php b/generated/Normalizer/InvoiceCreatorNormalizer.php index 0bb605c..98aeb64 100644 --- a/generated/Normalizer/InvoiceCreatorNormalizer.php +++ b/generated/Normalizer/InvoiceCreatorNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => false]; + } } diff --git a/generated/Normalizer/InvoiceEstimateNormalizer.php b/generated/Normalizer/InvoiceEstimateNormalizer.php index ef40d77..6228ef5 100644 --- a/generated/Normalizer/InvoiceEstimateNormalizer.php +++ b/generated/Normalizer/InvoiceEstimateNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' === $data::class; } /** @@ -92,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => false]; + } } diff --git a/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php b/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php index 541f91b..ea6ffb9 100644 --- a/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' === $data::class; } /** @@ -92,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/InvoiceItemCategoriesNormalizer.php b/generated/Normalizer/InvoiceItemCategoriesNormalizer.php index c6450fb..5a0110d 100644 --- a/generated/Normalizer/InvoiceItemCategoriesNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoriesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => false]; + } } diff --git a/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php b/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php index 67e0e1a..9abaea7 100644 --- a/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' === $data::class; } /** @@ -90,4 +90,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => false]; + } } diff --git a/generated/Normalizer/InvoiceItemCategoryNormalizer.php b/generated/Normalizer/InvoiceItemCategoryNormalizer.php index b5d1a85..36bcffb 100644 --- a/generated/Normalizer/InvoiceItemCategoryNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoryNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' === $data::class; } /** @@ -137,4 +137,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => false]; + } } diff --git a/generated/Normalizer/InvoiceLineItemNormalizer.php b/generated/Normalizer/InvoiceLineItemNormalizer.php index 184a080..fbf940e 100644 --- a/generated/Normalizer/InvoiceLineItemNormalizer.php +++ b/generated/Normalizer/InvoiceLineItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' === $data::class; } /** @@ -173,4 +173,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => false]; + } } diff --git a/generated/Normalizer/InvoiceLineItemProjectNormalizer.php b/generated/Normalizer/InvoiceLineItemProjectNormalizer.php index cd6ff3a..cad1916 100644 --- a/generated/Normalizer/InvoiceLineItemProjectNormalizer.php +++ b/generated/Normalizer/InvoiceLineItemProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => false]; + } } diff --git a/generated/Normalizer/InvoiceLineItemsNormalizer.php b/generated/Normalizer/InvoiceLineItemsNormalizer.php index 5b71523..7cf0419 100644 --- a/generated/Normalizer/InvoiceLineItemsNormalizer.php +++ b/generated/Normalizer/InvoiceLineItemsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => false]; + } } diff --git a/generated/Normalizer/InvoiceMessageNormalizer.php b/generated/Normalizer/InvoiceMessageNormalizer.php index 23543fd..e60a60e 100644 --- a/generated/Normalizer/InvoiceMessageNormalizer.php +++ b/generated/Normalizer/InvoiceMessageNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' === $data::class; } /** @@ -244,4 +244,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => false]; + } } diff --git a/generated/Normalizer/InvoiceMessageRecipientNormalizer.php b/generated/Normalizer/InvoiceMessageRecipientNormalizer.php index 1f1e917..83cacf0 100644 --- a/generated/Normalizer/InvoiceMessageRecipientNormalizer.php +++ b/generated/Normalizer/InvoiceMessageRecipientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => false]; + } } diff --git a/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php b/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php index b6b1b36..5c996eb 100644 --- a/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php +++ b/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => false]; + } } diff --git a/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php b/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php index ab617f9..b0abd48 100644 --- a/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php +++ b/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' === $data::class; } /** @@ -108,4 +108,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => false]; + } } diff --git a/generated/Normalizer/InvoiceMessagesNormalizer.php b/generated/Normalizer/InvoiceMessagesNormalizer.php index fa63e00..9a3b1c4 100644 --- a/generated/Normalizer/InvoiceMessagesNormalizer.php +++ b/generated/Normalizer/InvoiceMessagesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => false]; + } } diff --git a/generated/Normalizer/InvoiceNormalizer.php b/generated/Normalizer/InvoiceNormalizer.php index 05f75dc..ee97959 100644 --- a/generated/Normalizer/InvoiceNormalizer.php +++ b/generated/Normalizer/InvoiceNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoice' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoice' === $data::class; } /** @@ -241,6 +241,16 @@ public function denormalize($data, $class, $format = null, array $context = []) } elseif (\array_key_exists('payment_term', $data) && null === $data['payment_term']) { $object->setPaymentTerm(null); } + if (\array_key_exists('payment_options', $data) && null !== $data['payment_options']) { + $values_1 = []; + foreach ($data['payment_options'] as $value_1) { + $values_1[] = $value_1; + } + $object->setPaymentOptions($values_1); + unset($data['payment_options']); + } elseif (\array_key_exists('payment_options', $data) && null === $data['payment_options']) { + $object->setPaymentOptions(null); + } if (\array_key_exists('sent_at', $data) && null !== $data['sent_at']) { $object->setSentAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['sent_at'])); unset($data['sent_at']); @@ -283,9 +293,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); } - foreach ($data as $key => $value_1) { + foreach ($data as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $object[$key] = $value_2; } } @@ -383,6 +393,13 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('paymentTerm') && null !== $object->getPaymentTerm()) { $data['payment_term'] = $object->getPaymentTerm(); } + if ($object->isInitialized('paymentOptions') && null !== $object->getPaymentOptions()) { + $values_1 = []; + foreach ($object->getPaymentOptions() as $value_1) { + $values_1[] = $value_1; + } + $data['payment_options'] = $values_1; + } if ($object->isInitialized('sentAt') && null !== $object->getSentAt()) { $data['sent_at'] = $object->getSentAt()->format('Y-m-d\\TH:i:s\\Z'); } @@ -404,12 +421,17 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); } - foreach ($object as $key => $value_1) { + foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + $data[$key] = $value_2; } } return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Invoice' => false]; + } } diff --git a/generated/Normalizer/InvoicePaymentNormalizer.php b/generated/Normalizer/InvoicePaymentNormalizer.php index a190ed3..69f702e 100644 --- a/generated/Normalizer/InvoicePaymentNormalizer.php +++ b/generated/Normalizer/InvoicePaymentNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' === $data::class; } /** @@ -185,4 +185,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => false]; + } } diff --git a/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php b/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php index 523fa40..bea8774 100644 --- a/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php +++ b/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => false]; + } } diff --git a/generated/Normalizer/InvoicePaymentsNormalizer.php b/generated/Normalizer/InvoicePaymentsNormalizer.php index c053019..ed6fd5d 100644 --- a/generated/Normalizer/InvoicePaymentsNormalizer.php +++ b/generated/Normalizer/InvoicePaymentsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => false]; + } } diff --git a/generated/Normalizer/InvoiceRetainerNormalizer.php b/generated/Normalizer/InvoiceRetainerNormalizer.php index 0f749a8..9a80ad4 100644 --- a/generated/Normalizer/InvoiceRetainerNormalizer.php +++ b/generated/Normalizer/InvoiceRetainerNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' === $data::class; } /** @@ -92,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => false]; + } } diff --git a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php index eeabece..e1a6f24 100644 --- a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' === $data::class; } /** @@ -161,4 +161,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => false]; + } } diff --git a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php index 7f00ddc..970ca10 100644 --- a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' === $data::class; } /** @@ -95,4 +95,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => false]; + } } diff --git a/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php index 52235e4..14ed5d4 100644 --- a/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' === $data::class; } /** @@ -145,4 +145,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => false]; + } } diff --git a/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php index 5f0074b..1b77c07 100644 --- a/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' === $data::class; } /** @@ -150,19 +150,29 @@ public function denormalize($data, $class, $format = null, array $context = []) } elseif (\array_key_exists('payment_term', $data) && null === $data['payment_term']) { $object->setPaymentTerm(null); } - if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { + if (\array_key_exists('payment_options', $data) && null !== $data['payment_options']) { $values = []; - foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem', 'json', $context); + foreach ($data['payment_options'] as $value) { + $values[] = $value; + } + $object->setPaymentOptions($values); + unset($data['payment_options']); + } elseif (\array_key_exists('payment_options', $data) && null === $data['payment_options']) { + $object->setPaymentOptions(null); + } + if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { + $values_1 = []; + foreach ($data['line_items'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem', 'json', $context); } - $object->setLineItems($values); + $object->setLineItems($values_1); unset($data['line_items']); } elseif (\array_key_exists('line_items', $data) && null === $data['line_items']) { $object->setLineItems(null); } - foreach ($data as $key => $value_1) { + foreach ($data as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $object[$key] = $value_2; } } @@ -220,19 +230,31 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('paymentTerm') && null !== $object->getPaymentTerm()) { $data['payment_term'] = $object->getPaymentTerm(); } - if ($object->isInitialized('lineItems') && null !== $object->getLineItems()) { + if ($object->isInitialized('paymentOptions') && null !== $object->getPaymentOptions()) { $values = []; - foreach ($object->getLineItems() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + foreach ($object->getPaymentOptions() as $value) { + $values[] = $value; } - $data['line_items'] = $values; + $data['payment_options'] = $values; } - foreach ($object as $key => $value_1) { + if ($object->isInitialized('lineItems') && null !== $object->getLineItems()) { + $values_1 = []; + foreach ($object->getLineItems() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['line_items'] = $values_1; + } + foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + $data[$key] = $value_2; } } return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php index cb87069..c3b2795 100644 --- a/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' === $data::class; } /** @@ -120,4 +120,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => false]; + } } diff --git a/generated/Normalizer/InvoicesNormalizer.php b/generated/Normalizer/InvoicesNormalizer.php index 459a3da..6bb0178 100644 --- a/generated/Normalizer/InvoicesNormalizer.php +++ b/generated/Normalizer/InvoicesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoices' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoices' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Invoices' => false]; + } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php index 07289f1..8d930f5 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' === $data::class; } /** @@ -109,4 +109,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => false]; + } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php index 68d63be..3a1a604 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => false]; + } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php index 3ffec66..a3a8aab 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' === $data::class; } /** @@ -102,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => false]; + } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php index c7a4d6e..6cc4588 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' === $data::class; } /** @@ -134,4 +134,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => false]; + } } diff --git a/generated/Normalizer/InvoicesPostBodyNormalizer.php b/generated/Normalizer/InvoicesPostBodyNormalizer.php index af98673..12bcbf2 100644 --- a/generated/Normalizer/InvoicesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' === $data::class; } /** @@ -144,6 +144,16 @@ public function denormalize($data, $class, $format = null, array $context = []) } elseif (\array_key_exists('payment_term', $data) && null === $data['payment_term']) { $object->setPaymentTerm(null); } + if (\array_key_exists('payment_options', $data) && null !== $data['payment_options']) { + $values = []; + foreach ($data['payment_options'] as $value) { + $values[] = $value; + } + $object->setPaymentOptions($values); + unset($data['payment_options']); + } elseif (\array_key_exists('payment_options', $data) && null === $data['payment_options']) { + $object->setPaymentOptions(null); + } if (\array_key_exists('line_items_import', $data) && null !== $data['line_items_import']) { $object->setLineItemsImport($this->denormalizer->denormalize($data['line_items_import'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport', 'json', $context)); unset($data['line_items_import']); @@ -157,18 +167,18 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setRetainerId(null); } if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { - $values = []; - foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem', 'json', $context); + $values_1 = []; + foreach ($data['line_items'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem', 'json', $context); } - $object->setLineItems($values); + $object->setLineItems($values_1); unset($data['line_items']); } elseif (\array_key_exists('line_items', $data) && null === $data['line_items']) { $object->setLineItems(null); } - foreach ($data as $key => $value_1) { + foreach ($data as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_1; + $object[$key] = $value_2; } } @@ -221,6 +231,13 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('paymentTerm') && null !== $object->getPaymentTerm()) { $data['payment_term'] = $object->getPaymentTerm(); } + if ($object->isInitialized('paymentOptions') && null !== $object->getPaymentOptions()) { + $values = []; + foreach ($object->getPaymentOptions() as $value) { + $values[] = $value; + } + $data['payment_options'] = $values; + } if ($object->isInitialized('lineItemsImport') && null !== $object->getLineItemsImport()) { $data['line_items_import'] = $this->normalizer->normalize($object->getLineItemsImport(), 'json', $context); } @@ -228,18 +245,23 @@ public function normalize($object, $format = null, array $context = []) $data['retainer_id'] = $object->getRetainerId(); } if ($object->isInitialized('lineItems') && null !== $object->getLineItems()) { - $values = []; - foreach ($object->getLineItems() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + $values_1 = []; + foreach ($object->getLineItems() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } - $data['line_items'] = $values; + $data['line_items'] = $values_1; } - foreach ($object as $key => $value_1) { + foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_1; + $data[$key] = $value_2; } } return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => false]; + } } diff --git a/generated/Normalizer/JaneObjectNormalizer.php b/generated/Normalizer/JaneObjectNormalizer.php index 9210bfe..33f48ae 100644 --- a/generated/Normalizer/JaneObjectNormalizer.php +++ b/generated/Normalizer/JaneObjectNormalizer.php @@ -36,7 +36,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \array_key_exists(\get_class($data), $this->normalizers); + return \is_object($data) && \array_key_exists($data::class, $this->normalizers); } /** @@ -47,7 +47,7 @@ public function supportsNormalization($data, $format = null, array $context = [] */ public function normalize($object, $format = null, array $context = []) { - $normalizerClass = $this->normalizers[\get_class($object)]; + $normalizerClass = $this->normalizers[$object::class]; $normalizer = $this->getNormalizer($normalizerClass); return $normalizer->normalize($object, $format, $context); @@ -68,6 +68,11 @@ public function denormalize($data, $class, $format = null, array $context = []) return $denormalizer->denormalize($data, $class, $format, $context); } + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Contact' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactClient' => false, 'JoliCode\\Harvest\\Api\\Model\\Client' => false, 'JoliCode\\Harvest\\Api\\Model\\Company' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => false, 'JoliCode\\Harvest\\Api\\Model\\Invoice' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => false, 'JoliCode\\Harvest\\Api\\Model\\Estimate' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\Expense' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\Task' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => false, 'JoliCode\\Harvest\\Api\\Model\\Project' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' => false, 'JoliCode\\Harvest\\Api\\Model\\Role' => false, 'JoliCode\\Harvest\\Api\\Model\\Teammate' => false, 'JoliCode\\Harvest\\Api\\Model\\BillableRate' => false, 'JoliCode\\Harvest\\Api\\Model\\CostRate' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => false, 'JoliCode\\Harvest\\Api\\Model\\User' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => false, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => false, 'JoliCode\\Harvest\\Api\\Model\\Contacts' => false, 'JoliCode\\Harvest\\Api\\Model\\Clients' => false, 'JoliCode\\Harvest\\Api\\Model\\Companies' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => false, 'JoliCode\\Harvest\\Api\\Model\\Invoices' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => false, 'JoliCode\\Harvest\\Api\\Model\\Estimates' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\Expenses' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\Tasks' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\Projects' => false, 'JoliCode\\Harvest\\Api\\Model\\Roles' => false, 'JoliCode\\Harvest\\Api\\Model\\Teammates' => false, 'JoliCode\\Harvest\\Api\\Model\\BillableRates' => false, 'JoliCode\\Harvest\\Api\\Model\\CostRates' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\Users' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => false, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => false, 'JoliCode\\Harvest\\Api\\Model\\Error' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => false, 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => false, 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => false, 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + } + private function getNormalizer(string $normalizerClass) { return $this->normalizersCache[$normalizerClass] ?? $this->initNormalizer($normalizerClass); diff --git a/generated/Normalizer/PaginationLinksNormalizer.php b/generated/Normalizer/PaginationLinksNormalizer.php index f1f5a72..9c0bec3 100644 --- a/generated/Normalizer/PaginationLinksNormalizer.php +++ b/generated/Normalizer/PaginationLinksNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' === $data::class; } /** @@ -111,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => false]; + } } diff --git a/generated/Normalizer/ProjectAssignmentClientNormalizer.php b/generated/Normalizer/ProjectAssignmentClientNormalizer.php index 0393857..d7e73ae 100644 --- a/generated/Normalizer/ProjectAssignmentClientNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => false]; + } } diff --git a/generated/Normalizer/ProjectAssignmentNormalizer.php b/generated/Normalizer/ProjectAssignmentNormalizer.php index 8c8b95c..39e1e2d 100644 --- a/generated/Normalizer/ProjectAssignmentNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' === $data::class; } /** @@ -196,4 +196,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => false]; + } } diff --git a/generated/Normalizer/ProjectAssignmentProjectNormalizer.php b/generated/Normalizer/ProjectAssignmentProjectNormalizer.php index 478b40b..d808ad1 100644 --- a/generated/Normalizer/ProjectAssignmentProjectNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => false]; + } } diff --git a/generated/Normalizer/ProjectAssignmentsNormalizer.php b/generated/Normalizer/ProjectAssignmentsNormalizer.php index 52c10db..c01a2ed 100644 --- a/generated/Normalizer/ProjectAssignmentsNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => false]; + } } diff --git a/generated/Normalizer/ProjectBudgetReportResultNormalizer.php b/generated/Normalizer/ProjectBudgetReportResultNormalizer.php index 6a562e4..37316a3 100644 --- a/generated/Normalizer/ProjectBudgetReportResultNormalizer.php +++ b/generated/Normalizer/ProjectBudgetReportResultNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' === $data::class; } /** @@ -182,4 +182,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => false]; + } } diff --git a/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php b/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php index 35fbef2..ec1a07b 100644 --- a/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php +++ b/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => false]; + } } diff --git a/generated/Normalizer/ProjectClientNormalizer.php b/generated/Normalizer/ProjectClientNormalizer.php index 50f8898..847695d 100644 --- a/generated/Normalizer/ProjectClientNormalizer.php +++ b/generated/Normalizer/ProjectClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectClient' => false]; + } } diff --git a/generated/Normalizer/ProjectNormalizer.php b/generated/Normalizer/ProjectNormalizer.php index aed0f1a..05d2d39 100644 --- a/generated/Normalizer/ProjectNormalizer.php +++ b/generated/Normalizer/ProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Project' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Project' === $data::class; } /** @@ -314,4 +314,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Project' => false]; + } } diff --git a/generated/Normalizer/ProjectsNormalizer.php b/generated/Normalizer/ProjectsNormalizer.php index dc2dff9..2331d07 100644 --- a/generated/Normalizer/ProjectsNormalizer.php +++ b/generated/Normalizer/ProjectsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Projects' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Projects' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Projects' => false]; + } } diff --git a/generated/Normalizer/ProjectsPostBodyNormalizer.php b/generated/Normalizer/ProjectsPostBodyNormalizer.php index 7b03aca..21813b3 100644 --- a/generated/Normalizer/ProjectsPostBodyNormalizer.php +++ b/generated/Normalizer/ProjectsPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' === $data::class; } /** @@ -268,4 +268,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => false]; + } } diff --git a/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php index b10a12a..cbd256e 100644 --- a/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' === $data::class; } /** @@ -278,4 +278,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php index 6342519..a5fbfb6 100644 --- a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' === $data::class; } /** @@ -132,4 +132,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => false]; + } } diff --git a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php index 82dfb0d..7a01316 100644 --- a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' === $data::class; } /** @@ -125,4 +125,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php index bb1a686..3914985 100644 --- a/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' === $data::class; } /** @@ -141,4 +141,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => false]; + } } diff --git a/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php index 5d2e969..f570930 100644 --- a/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' === $data::class; } /** @@ -134,4 +134,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/RoleNormalizer.php b/generated/Normalizer/RoleNormalizer.php index 8b4dcd4..c78eb0e 100644 --- a/generated/Normalizer/RoleNormalizer.php +++ b/generated/Normalizer/RoleNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Role' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Role' === $data::class; } /** @@ -136,4 +136,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Role' => false]; + } } diff --git a/generated/Normalizer/RolesNormalizer.php b/generated/Normalizer/RolesNormalizer.php index 6543e44..e59e193 100644 --- a/generated/Normalizer/RolesNormalizer.php +++ b/generated/Normalizer/RolesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Roles' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Roles' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Roles' => false]; + } } diff --git a/generated/Normalizer/RolesPostBodyNormalizer.php b/generated/Normalizer/RolesPostBodyNormalizer.php index 5889bd4..1f49df8 100644 --- a/generated/Normalizer/RolesPostBodyNormalizer.php +++ b/generated/Normalizer/RolesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' === $data::class; } /** @@ -107,4 +107,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => false]; + } } diff --git a/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php b/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php index 1a61cc9..394365b 100644 --- a/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php +++ b/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' === $data::class; } /** @@ -109,4 +109,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/TaskAssignmentNormalizer.php b/generated/Normalizer/TaskAssignmentNormalizer.php index 80d1f9b..417560f 100644 --- a/generated/Normalizer/TaskAssignmentNormalizer.php +++ b/generated/Normalizer/TaskAssignmentNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' === $data::class; } /** @@ -170,4 +170,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => false]; + } } diff --git a/generated/Normalizer/TaskAssignmentProjectNormalizer.php b/generated/Normalizer/TaskAssignmentProjectNormalizer.php index 6d5684f..5bfa36b 100644 --- a/generated/Normalizer/TaskAssignmentProjectNormalizer.php +++ b/generated/Normalizer/TaskAssignmentProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => false]; + } } diff --git a/generated/Normalizer/TaskAssignmentTaskNormalizer.php b/generated/Normalizer/TaskAssignmentTaskNormalizer.php index 2f896ab..199e8ef 100644 --- a/generated/Normalizer/TaskAssignmentTaskNormalizer.php +++ b/generated/Normalizer/TaskAssignmentTaskNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => false]; + } } diff --git a/generated/Normalizer/TaskAssignmentsNormalizer.php b/generated/Normalizer/TaskAssignmentsNormalizer.php index 27e41f9..86465e0 100644 --- a/generated/Normalizer/TaskAssignmentsNormalizer.php +++ b/generated/Normalizer/TaskAssignmentsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => false]; + } } diff --git a/generated/Normalizer/TaskNormalizer.php b/generated/Normalizer/TaskNormalizer.php index 464cbe7..bef30b4 100644 --- a/generated/Normalizer/TaskNormalizer.php +++ b/generated/Normalizer/TaskNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Task' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Task' === $data::class; } /** @@ -158,4 +158,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Task' => false]; + } } diff --git a/generated/Normalizer/TasksNormalizer.php b/generated/Normalizer/TasksNormalizer.php index d7282d3..f73dba9 100644 --- a/generated/Normalizer/TasksNormalizer.php +++ b/generated/Normalizer/TasksNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Tasks' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Tasks' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Tasks' => false]; + } } diff --git a/generated/Normalizer/TasksPostBodyNormalizer.php b/generated/Normalizer/TasksPostBodyNormalizer.php index 5dc44bf..ea6cc19 100644 --- a/generated/Normalizer/TasksPostBodyNormalizer.php +++ b/generated/Normalizer/TasksPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' === $data::class; } /** @@ -129,4 +129,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => false]; + } } diff --git a/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php b/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php index 3507c26..86aa841 100644 --- a/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php +++ b/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' === $data::class; } /** @@ -131,4 +131,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/TeammateNormalizer.php b/generated/Normalizer/TeammateNormalizer.php index 412fea3..e2daf58 100644 --- a/generated/Normalizer/TeammateNormalizer.php +++ b/generated/Normalizer/TeammateNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammate' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammate' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Teammate' => false]; + } } diff --git a/generated/Normalizer/TeammatesNormalizer.php b/generated/Normalizer/TeammatesNormalizer.php index ee68efe..6e2197d 100644 --- a/generated/Normalizer/TeammatesNormalizer.php +++ b/generated/Normalizer/TeammatesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammates' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammates' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Teammates' => false]; + } } diff --git a/generated/Normalizer/TeammatesPatchResponseNormalizer.php b/generated/Normalizer/TeammatesPatchResponseNormalizer.php index edd1f97..1811ccb 100644 --- a/generated/Normalizer/TeammatesPatchResponseNormalizer.php +++ b/generated/Normalizer/TeammatesPatchResponseNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' === $data::class; } /** @@ -96,4 +96,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => false]; + } } diff --git a/generated/Normalizer/TimeEntriesNormalizer.php b/generated/Normalizer/TimeEntriesNormalizer.php index c59a640..f84900e 100644 --- a/generated/Normalizer/TimeEntriesNormalizer.php +++ b/generated/Normalizer/TimeEntriesNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntries' => false]; + } } diff --git a/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php b/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php index 66131b5..2e5befc 100644 --- a/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php +++ b/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => false]; + } } diff --git a/generated/Normalizer/TimeEntriesPostBodyNormalizer.php b/generated/Normalizer/TimeEntriesPostBodyNormalizer.php index b1facc5..6c2891f 100644 --- a/generated/Normalizer/TimeEntriesPostBodyNormalizer.php +++ b/generated/Normalizer/TimeEntriesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' === $data::class; } /** @@ -161,4 +161,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => false]; + } } diff --git a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php index 0ebcef2..d9a0497 100644 --- a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php +++ b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' === $data::class; } /** @@ -119,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => false]; + } } diff --git a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php index 05db55a..9c20eb7 100644 --- a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' === $data::class; } /** @@ -158,4 +158,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/TimeEntryClientNormalizer.php b/generated/Normalizer/TimeEntryClientNormalizer.php index 1348b18..59bd820 100644 --- a/generated/Normalizer/TimeEntryClientNormalizer.php +++ b/generated/Normalizer/TimeEntryClientNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => false]; + } } diff --git a/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php b/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php index a9cf88b..5cb0e9c 100644 --- a/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php +++ b/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' === $data::class; } /** @@ -137,4 +137,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => false]; + } } diff --git a/generated/Normalizer/TimeEntryInvoiceNormalizer.php b/generated/Normalizer/TimeEntryInvoiceNormalizer.php index b15e9b8..cde1cb4 100644 --- a/generated/Normalizer/TimeEntryInvoiceNormalizer.php +++ b/generated/Normalizer/TimeEntryInvoiceNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => false]; + } } diff --git a/generated/Normalizer/TimeEntryNormalizer.php b/generated/Normalizer/TimeEntryNormalizer.php index 39c09fc..b07bc00 100644 --- a/generated/Normalizer/TimeEntryNormalizer.php +++ b/generated/Normalizer/TimeEntryNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' === $data::class; } /** @@ -346,4 +346,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntry' => false]; + } } diff --git a/generated/Normalizer/TimeEntryProjectNormalizer.php b/generated/Normalizer/TimeEntryProjectNormalizer.php index c75225d..f5f2590 100644 --- a/generated/Normalizer/TimeEntryProjectNormalizer.php +++ b/generated/Normalizer/TimeEntryProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => false]; + } } diff --git a/generated/Normalizer/TimeEntryTaskNormalizer.php b/generated/Normalizer/TimeEntryTaskNormalizer.php index ac6d3b3..58f851e 100644 --- a/generated/Normalizer/TimeEntryTaskNormalizer.php +++ b/generated/Normalizer/TimeEntryTaskNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => false]; + } } diff --git a/generated/Normalizer/TimeEntryUserNormalizer.php b/generated/Normalizer/TimeEntryUserNormalizer.php index e7f3590..2e2e3b0 100644 --- a/generated/Normalizer/TimeEntryUserNormalizer.php +++ b/generated/Normalizer/TimeEntryUserNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => false]; + } } diff --git a/generated/Normalizer/TimeReportsResultNormalizer.php b/generated/Normalizer/TimeReportsResultNormalizer.php index 29d7bef..8851e05 100644 --- a/generated/Normalizer/TimeReportsResultNormalizer.php +++ b/generated/Normalizer/TimeReportsResultNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' === $data::class; } /** @@ -227,4 +227,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => false]; + } } diff --git a/generated/Normalizer/TimeReportsResultsNormalizer.php b/generated/Normalizer/TimeReportsResultsNormalizer.php index 5b09845..ede05ed 100644 --- a/generated/Normalizer/TimeReportsResultsNormalizer.php +++ b/generated/Normalizer/TimeReportsResultsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => false]; + } } diff --git a/generated/Normalizer/UninvoicedReportResultNormalizer.php b/generated/Normalizer/UninvoicedReportResultNormalizer.php index f82a3ee..38a1f37 100644 --- a/generated/Normalizer/UninvoicedReportResultNormalizer.php +++ b/generated/Normalizer/UninvoicedReportResultNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' === $data::class; } /** @@ -176,4 +176,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => false]; + } } diff --git a/generated/Normalizer/UninvoicedReportResultsNormalizer.php b/generated/Normalizer/UninvoicedReportResultsNormalizer.php index bcf5041..7e6b8e7 100644 --- a/generated/Normalizer/UninvoicedReportResultsNormalizer.php +++ b/generated/Normalizer/UninvoicedReportResultsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => false]; + } } diff --git a/generated/Normalizer/UserAssignmentNormalizer.php b/generated/Normalizer/UserAssignmentNormalizer.php index 3f58606..840426a 100644 --- a/generated/Normalizer/UserAssignmentNormalizer.php +++ b/generated/Normalizer/UserAssignmentNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' === $data::class; } /** @@ -179,4 +179,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UserAssignment' => false]; + } } diff --git a/generated/Normalizer/UserAssignmentProjectNormalizer.php b/generated/Normalizer/UserAssignmentProjectNormalizer.php index a2313e1..d945e6e 100644 --- a/generated/Normalizer/UserAssignmentProjectNormalizer.php +++ b/generated/Normalizer/UserAssignmentProjectNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' === $data::class; } /** @@ -110,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => false]; + } } diff --git a/generated/Normalizer/UserAssignmentUserNormalizer.php b/generated/Normalizer/UserAssignmentUserNormalizer.php index d83c8e0..02f5c6e 100644 --- a/generated/Normalizer/UserAssignmentUserNormalizer.php +++ b/generated/Normalizer/UserAssignmentUserNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' === $data::class; } /** @@ -101,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => false]; + } } diff --git a/generated/Normalizer/UserAssignmentsNormalizer.php b/generated/Normalizer/UserAssignmentsNormalizer.php index 8cbf75f..0c0d994 100644 --- a/generated/Normalizer/UserAssignmentsNormalizer.php +++ b/generated/Normalizer/UserAssignmentsNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UserAssignments' => false]; + } } diff --git a/generated/Normalizer/UserNormalizer.php b/generated/Normalizer/UserNormalizer.php index 5d8493d..dac74d9 100644 --- a/generated/Normalizer/UserNormalizer.php +++ b/generated/Normalizer/UserNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\User' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\User' === $data::class; } /** @@ -258,4 +258,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\User' => false]; + } } diff --git a/generated/Normalizer/UsersNormalizer.php b/generated/Normalizer/UsersNormalizer.php index 6997e19..b04c4e4 100644 --- a/generated/Normalizer/UsersNormalizer.php +++ b/generated/Normalizer/UsersNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Users' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Users' === $data::class; } /** @@ -135,4 +135,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\Users' => false]; + } } diff --git a/generated/Normalizer/UsersPostBodyNormalizer.php b/generated/Normalizer/UsersPostBodyNormalizer.php index 1de5422..67784b1 100644 --- a/generated/Normalizer/UsersPostBodyNormalizer.php +++ b/generated/Normalizer/UsersPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' === $data::class; } /** @@ -207,4 +207,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => false]; + } } diff --git a/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php b/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php index 3d3c179..8d22e5a 100644 --- a/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' === $data::class; } /** @@ -102,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => false]; + } } diff --git a/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php b/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php index a091001..7f57417 100644 --- a/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' === $data::class; } /** @@ -102,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => false]; + } } diff --git a/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php b/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php index ebfaea4..0012995 100644 --- a/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' === $data::class; } /** @@ -213,4 +213,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => false]; + } } diff --git a/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php b/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php index ad184b8..fd1af34 100644 --- a/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php @@ -35,7 +35,7 @@ public function supportsDenormalization($data, $type, $format = null, array $con public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' === \get_class($data); + return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' === $data::class; } /** @@ -58,14 +58,18 @@ public function denormalize($data, $class, $format = null, array $context = []) return $object; } if (\array_key_exists('teammate_ids', $data) && null !== $data['teammate_ids']) { - $object->setTeammateIds($data['teammate_ids']); + $values = []; + foreach ($data['teammate_ids'] as $value) { + $values[] = $value; + } + $object->setTeammateIds($values); unset($data['teammate_ids']); } elseif (\array_key_exists('teammate_ids', $data) && null === $data['teammate_ids']) { $object->setTeammateIds(null); } - foreach ($data as $key => $value) { + foreach ($data as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + $object[$key] = $value_1; } } @@ -81,13 +85,22 @@ public function denormalize($data, $class, $format = null, array $context = []) public function normalize($object, $format = null, array $context = []) { $data = []; - $data['teammate_ids'] = $object->getTeammateIds(); - foreach ($object as $key => $value) { + $values = []; + foreach ($object->getTeammateIds() as $value) { + $values[] = $value; + } + $data['teammate_ids'] = $values; + foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + $data[$key] = $value_1; } } return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => false]; + } } diff --git a/generated/Runtime/Client/BaseEndpoint.php b/generated/Runtime/Client/BaseEndpoint.php index e37d09f..de5bac0 100644 --- a/generated/Runtime/Client/BaseEndpoint.php +++ b/generated/Runtime/Client/BaseEndpoint.php @@ -45,7 +45,7 @@ public function getHeaders(array $baseHeaders = []): array return array_merge($this->getExtraHeaders(), $baseHeaders, $this->getHeadersOptionsResolver()->resolve($this->headerParameters)); } - abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null); protected function getExtraHeaders(): array { diff --git a/generated/Runtime/Client/Client.php b/generated/Runtime/Client/Client.php index e16a1fa..20c88fe 100644 --- a/generated/Runtime/Client/Client.php +++ b/generated/Runtime/Client/Client.php @@ -68,7 +68,7 @@ private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); - $uriGlue = false === strpos($endpoint->getUri(), '?') ? '?' : '&'; + $uriGlue = !str_contains($endpoint->getUri(), '?') ? '?' : '&'; $uri = '' !== $queryString ? $endpoint->getUri().$uriGlue.$queryString : $endpoint->getUri(); $request = $this->requestFactory->createRequest($endpoint->getMethod(), $uri); if ($body) { diff --git a/generated/Runtime/Client/EndpointTrait.php b/generated/Runtime/Client/EndpointTrait.php index bfec90e..e6f566d 100644 --- a/generated/Runtime/Client/EndpointTrait.php +++ b/generated/Runtime/Client/EndpointTrait.php @@ -23,5 +23,5 @@ public function parseResponse(ResponseInterface $response, SerializerInterface $ return $this->transformResponseBody($response, $serializer, $contentType); } - abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null); } diff --git a/generated/Runtime/Normalizer/ReferenceNormalizer.php b/generated/Runtime/Normalizer/ReferenceNormalizer.php index 9c9a324..0ef54aa 100644 --- a/generated/Runtime/Normalizer/ReferenceNormalizer.php +++ b/generated/Runtime/Normalizer/ReferenceNormalizer.php @@ -16,9 +16,6 @@ class ReferenceNormalizer implements NormalizerInterface { - /** - * {@inheritdoc} - */ public function normalize($object, $format = null, array $context = []) { $ref = []; @@ -27,9 +24,6 @@ public function normalize($object, $format = null, array $context = []) return $ref; } - /** - * {@inheritdoc} - */ public function supportsNormalization($data, $format = null): bool { return $data instanceof Reference; diff --git a/phpunit.xml.dist b/phpunit.xml.dist index c2c2b87..a13d458 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -14,6 +14,7 @@ +