diff --git a/docs/v2/accounting/index.html b/docs/v2/accounting/index.html index d454118e..c2eb5ff4 100644 --- a/docs/v2/accounting/index.html +++ b/docs/v2/accounting/index.html @@ -2859,6 +2859,267 @@ "externalDocs" : { "url" : "http://developer.xero.com/documentation/api/organisation/" } +}; + defs["GetBankTransactionsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "BankTransactions" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BankTransaction" + } + } + }, + "description" : "" +}; + defs["GetContactsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Contacts" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Contact" + } + } + }, + "description" : "" +}; + defs["GetCreditNotesResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "CreditNotes" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditNote" + } + } + }, + "description" : "" +}; + defs["GetInvoicesResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Invoices" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Invoice" + } + } + }, + "description" : "" +}; + defs["GetManualJournalsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "ManualJournals" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ManualJournal" + } + } + }, + "description" : "" +}; + defs["GetOverpaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Overpayments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Overpayment" + } + } + }, + "description" : "" +}; + defs["GetPaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Payments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Payment" + } + } + }, + "description" : "" +}; + defs["GetPrepaymentsResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "Prepayments" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Prepayment" + } + } + }, + "description" : "" +}; + defs["GetPurchaseOrdersResponse"] = { + "title" : "", + "type" : "object", + "properties" : { + "Id" : { + "type" : "string" + }, + "Status" : { + "type" : "string" + }, + "ProviderName" : { + "type" : "string" + }, + "DateTimeUTC" : { + "type" : "string" + }, + "PageInfo" : { + "$ref" : "#/components/schemas/PageInfo" + }, + "PurchaseOrders" : { + "minItems" : 1, + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PurchaseOrder" + } + } + }, + "description" : "" }; defs["HistoryRecord"] = { "title" : "", @@ -4247,6 +4508,25 @@ }, "description" : "", "x-isObjectArray" : true +}; + defs["PageInfo"] = { + "title" : "", + "type" : "object", + "properties" : { + "Page" : { + "type" : "integer" + }, + "PageSize" : { + "type" : "integer" + }, + "TotalPages" : { + "type" : "integer" + }, + "TotalRows" : { + "type" : "integer" + } + }, + "description" : "Pagination information" }; defs["Payment"] = { "title" : "", @@ -6099,7 +6379,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods createAccount @@ -20997,9 +21277,10 @@ Usage and SDK Samples $order = "Type ASC"; $page = 1; $unitdp = 4; +$pageSize = 100; try { - $result = $apiInstance->getBankTransactions($xeroTenantId, $ifModifiedSince, $where, $order, $page, $unitdp); + $result = $apiInstance->getBankTransactions($xeroTenantId, $ifModifiedSince, $where, $order, $page, $unitdp, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getBankTransactions: ', $e->getMessage(), PHP_EOL; } @@ -21159,6 +21440,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -24570,9 +24871,10 @@ Usage and SDK Samples $includeArchived = true; $summaryOnly = true; $searchTerm = "Joe Bloggs"; +$pageSize = 100; try { - $result = $apiInstance->getContacts($xeroTenantId, $ifModifiedSince, $where, $order, $iDs, $page, $includeArchived, $summaryOnly, $searchTerm); + $result = $apiInstance->getContacts($xeroTenantId, $ifModifiedSince, $where, $order, $iDs, $page, $includeArchived, $summaryOnly, $searchTerm, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getContacts: ', $e->getMessage(), PHP_EOL; } @@ -24795,6 +25097,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -25723,9 +26045,10 @@ Usage and SDK Samples $order = "CreditNoteNumber ASC"; $page = 1; $unitdp = 4; +$pageSize = 100; try { - $result = $apiInstance->getCreditNotes($xeroTenantId, $ifModifiedSince, $where, $order, $page, $unitdp); + $result = $apiInstance->getCreditNotes($xeroTenantId, $ifModifiedSince, $where, $order, $page, $unitdp, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getCreditNotes: ', $e->getMessage(), PHP_EOL; } @@ -25885,6 +26208,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -27761,9 +28104,10 @@ Usage and SDK Samples $createdByMyApp = false; $unitdp = 4; $summaryOnly = true; +$pageSize = 100; try { - $result = $apiInstance->getInvoices($xeroTenantId, $ifModifiedSince, $where, $order, $iDs, $invoiceNumbers, $contactIDs, $statuses, $page, $includeArchived, $createdByMyApp, $unitdp, $summaryOnly); + $result = $apiInstance->getInvoices($xeroTenantId, $ifModifiedSince, $where, $order, $iDs, $invoiceNumbers, $contactIDs, $statuses, $page, $includeArchived, $createdByMyApp, $unitdp, $summaryOnly, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getInvoices: ', $e->getMessage(), PHP_EOL; } @@ -28069,6 +28413,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -29944,9 +30308,10 @@ Usage and SDK Samples $where = "Status=="' . \XeroAPI\XeroPHP\Models\Accounting\ManualJournal::STATUS_DRAFT . '""; $order = "Date ASC"; $page = 1; +$pageSize = 100; try { - $result = $apiInstance->getManualJournals($xeroTenantId, $ifModifiedSince, $where, $order, $page); + $result = $apiInstance->getManualJournals($xeroTenantId, $ifModifiedSince, $where, $order, $page, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getManualJournals: ', $e->getMessage(), PHP_EOL; } @@ -30086,6 +30451,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -31490,9 +31875,10 @@ Usage and SDK Samples $where = "Status=="' . \XeroAPI\XeroPHP\Models\Accounting\Payment::STATUS_AUTHORISED . '""; $order = "Amount ASC"; $page = 1; +$pageSize = 100; try { - $result = $apiInstance->getPayments($xeroTenantId, $ifModifiedSince, $where, $order, $page); + $result = $apiInstance->getPayments($xeroTenantId, $ifModifiedSince, $where, $order, $page, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getPayments: ', $e->getMessage(), PHP_EOL; } @@ -31632,6 +32018,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + @@ -33115,9 +33521,10 @@ Usage and SDK Samples $dateTo = "2019-12-31"; $order = "PurchaseOrderNumber ASC"; $page = 1; +$pageSize = 100; try { - $result = $apiInstance->getPurchaseOrders($xeroTenantId, $ifModifiedSince, $status, $dateFrom, $dateTo, $order, $page); + $result = $apiInstance->getPurchaseOrders($xeroTenantId, $ifModifiedSince, $status, $dateFrom, $dateTo, $order, $page, $pageSize); } catch (Exception $e) { echo 'Exception when calling AccountingApi->getPurchaseOrders: ', $e->getMessage(), PHP_EOL; } @@ -33297,6 +33704,26 @@ Parameters + + + pageSize + + + + + + + + Integer + + + +Number of records to retrieve per page + + + + + diff --git a/docs/v2/appstore/index.html b/docs/v2/appstore/index.html index 73a31066..c68bd82b 100644 --- a/docs/v2/appstore/index.html +++ b/docs/v2/appstore/index.html @@ -1240,7 +1240,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods getSubscription diff --git a/docs/v2/assets/index.html b/docs/v2/assets/index.html index 2a0f6644..c6e967f8 100644 --- a/docs/v2/assets/index.html +++ b/docs/v2/assets/index.html @@ -1391,7 +1391,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods createAsset diff --git a/docs/v2/files/index.html b/docs/v2/files/index.html index fb9df21f..1bba34a1 100644 --- a/docs/v2/files/index.html +++ b/docs/v2/files/index.html @@ -1169,7 +1169,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods createFileAssociation diff --git a/docs/v2/finance/index.html b/docs/v2/finance/index.html index cbc2aab9..0a254146 100644 --- a/docs/v2/finance/index.html +++ b/docs/v2/finance/index.html @@ -1529,91 +1529,94 @@ "properties" : { "directBankFeed" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "indirectBankFeed" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUpload" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "manual" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true }, "directBankFeedPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "indirectBankFeedPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUploadPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "manualPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "directBankFeedNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "indirectBankFeedNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "No longer in use.", "format" : "double", + "deprecated" : true, "x-is-money" : true }, "fileUploadNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "manualNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "otherPos" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", "format" : "double", "x-is-money" : true }, "otherNeg" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", "format" : "double", "x-is-money" : true }, "other" : { "type" : "number", - "description" : "Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data.", + "description" : "Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data.", "format" : "double", "x-is-money" : true } @@ -2733,7 +2736,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v2/payroll_au/index.html b/docs/v2/payroll_au/index.html index 464f7108..7cf6e645 100644 --- a/docs/v2/payroll_au/index.html +++ b/docs/v2/payroll_au/index.html @@ -3411,7 +3411,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods approveLeaveApplication diff --git a/docs/v2/payroll_nz/index.html b/docs/v2/payroll_nz/index.html index f3fd4c7c..e002b2dd 100644 --- a/docs/v2/payroll_nz/index.html +++ b/docs/v2/payroll_nz/index.html @@ -3842,7 +3842,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods approveTimesheet diff --git a/docs/v2/payroll_uk/index.html b/docs/v2/payroll_uk/index.html index fa677c1b..6f8706f2 100644 --- a/docs/v2/payroll_uk/index.html +++ b/docs/v2/payroll_uk/index.html @@ -3509,7 +3509,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods approveTimesheet diff --git a/docs/v2/projects/index.html b/docs/v2/projects/index.html index a412adcb..dbda9dde 100644 --- a/docs/v2/projects/index.html +++ b/docs/v2/projects/index.html @@ -1461,7 +1461,7 @@ SDK: - VSN: 5.0.0 + VSN: 6.0.0 Methods createProject diff --git a/lib/Api/AccountingApi.php b/lib/Api/AccountingApi.php index 924daa0b..73daed02 100644 --- a/lib/Api/AccountingApi.php +++ b/lib/Api/AccountingApi.php @@ -14,7 +14,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -22352,13 +22352,14 @@ protected function getBankTransactionAttachmentsRequest($xero_tenant_id, $bank_t * @param string $order Order by an any element (optional) * @param int $page Up to 100 bank transactions will be returned in a single API call with line items details (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\BankTransactions + * @return \XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse */ - public function getBankTransactions($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getBankTransactions($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - list($response) = $this->getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); + list($response) = $this->getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size); return $response; } /** @@ -22370,13 +22371,14 @@ public function getBankTransactions($xero_tenant_id, $if_modified_since = null, * @param string $order Order by an any element (optional) * @param int $page Up to 100 bank transactions will be returned in a single API call with line items details (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\BankTransactions, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - $request = $this->getBankTransactionsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); + $request = $this->getBankTransactionsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -22405,18 +22407,18 @@ public function getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_si $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\BankTransactions' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\BankTransactions', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\BankTransactions'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -22433,7 +22435,7 @@ public function getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_si case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\BankTransactions', + '\XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -22451,12 +22453,13 @@ public function getBankTransactionsWithHttpInfo($xero_tenant_id, $if_modified_si * @param string $order Order by an any element (optional) * @param int $page Up to 100 bank transactions will be returned in a single API call with line items details (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBankTransactionsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getBankTransactionsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - return $this->getBankTransactionsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp) + return $this->getBankTransactionsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size) ->then( function ($response) { return $response[0]; @@ -22472,12 +22475,13 @@ function ($response) { * @param string $order Order by an any element (optional) * @param int $page Up to 100 bank transactions will be returned in a single API call with line items details (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBankTransactionsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getBankTransactionsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\BankTransactions'; - $request = $this->getBankTransactionsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetBankTransactionsResponse'; + $request = $this->getBankTransactionsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -22519,9 +22523,10 @@ function ($exception) { * @param string $order Order by an any element (optional) * @param int $page Up to 100 bank transactions will be returned in a single API call with line items details (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getBankTransactionsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + protected function getBankTransactionsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -22551,6 +22556,10 @@ protected function getBankTransactionsRequest($xero_tenant_id, $if_modified_sinc if ($unitdp !== null) { $queryParams['unitdp'] = AccountingObjectSerializer::toQueryValue($unitdp); } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); @@ -28792,13 +28801,14 @@ protected function getContactHistoryRequest($xero_tenant_id, $contact_id) * @param bool $include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) * @param string $search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\Contacts + * @return \XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse */ - public function getContacts($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null) + public function getContacts($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null, $page_size = null) { - list($response) = $this->getContactsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term); + list($response) = $this->getContactsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term, $page_size); return $response; } /** @@ -28813,13 +28823,14 @@ public function getContacts($xero_tenant_id, $if_modified_since = null, $where = * @param bool $include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) * @param string $search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\Contacts, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getContactsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null) + public function getContactsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null, $page_size = null) { - $request = $this->getContactsRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term); + $request = $this->getContactsRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -28848,18 +28859,18 @@ public function getContactsWithHttpInfo($xero_tenant_id, $if_modified_since = nu $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\Contacts' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\Contacts', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Contacts'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -28876,7 +28887,7 @@ public function getContactsWithHttpInfo($xero_tenant_id, $if_modified_since = nu case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\Contacts', + '\XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -28897,12 +28908,13 @@ public function getContactsWithHttpInfo($xero_tenant_id, $if_modified_since = nu * @param bool $include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) * @param string $search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContactsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null) + public function getContactsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null, $page_size = null) { - return $this->getContactsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term) + return $this->getContactsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term, $page_size) ->then( function ($response) { return $response[0]; @@ -28921,12 +28933,13 @@ function ($response) { * @param bool $include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) * @param string $search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContactsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null) + public function getContactsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Contacts'; - $request = $this->getContactsRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetContactsResponse'; + $request = $this->getContactsRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $page, $include_archived, $summary_only, $search_term, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -28971,9 +28984,10 @@ function ($exception) { * @param bool $include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) * @param string $search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getContactsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null) + protected function getContactsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $page = null, $include_archived = null, $summary_only = false, $search_term = null, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -29018,6 +29032,10 @@ protected function getContactsRequest($xero_tenant_id, $if_modified_since = null if ($search_term !== null) { $queryParams['searchTerm'] = AccountingObjectSerializer::toQueryValue($search_term); } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); @@ -30672,13 +30690,14 @@ protected function getCreditNoteHistoryRequest($xero_tenant_id, $credit_note_id) * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\CreditNotes + * @return \XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse */ - public function getCreditNotes($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getCreditNotes($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - list($response) = $this->getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); + list($response) = $this->getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size); return $response; } /** @@ -30690,13 +30709,14 @@ public function getCreditNotes($xero_tenant_id, $if_modified_since = null, $wher * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\CreditNotes, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - $request = $this->getCreditNotesRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); + $request = $this->getCreditNotesRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -30725,18 +30745,18 @@ public function getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since = $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\CreditNotes' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\CreditNotes', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\CreditNotes'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -30753,7 +30773,7 @@ public function getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since = case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\CreditNotes', + '\XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -30771,12 +30791,13 @@ public function getCreditNotesWithHttpInfo($xero_tenant_id, $if_modified_since = * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCreditNotesAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getCreditNotesAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - return $this->getCreditNotesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp) + return $this->getCreditNotesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size) ->then( function ($response) { return $response[0]; @@ -30792,12 +30813,13 @@ function ($response) { * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCreditNotesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + public function getCreditNotesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\CreditNotes'; - $request = $this->getCreditNotesRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetCreditNotesResponse'; + $request = $this->getCreditNotesRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -30839,9 +30861,10 @@ function ($exception) { * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getCreditNotesRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) + protected function getCreditNotesRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -30871,6 +30894,10 @@ protected function getCreditNotesRequest($xero_tenant_id, $if_modified_since = n if ($unitdp !== null) { $queryParams['unitdp'] = AccountingObjectSerializer::toQueryValue($unitdp); } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); @@ -34278,13 +34305,14 @@ protected function getInvoiceRemindersRequest($xero_tenant_id) * @param bool $created_by_my_app When set to true you'll only retrieve Invoices created by your app (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\Invoices + * @return \XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse */ - public function getInvoices($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false) + public function getInvoices($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false, $page_size = null) { - list($response) = $this->getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only); + list($response) = $this->getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only, $page_size); return $response; } /** @@ -34303,13 +34331,14 @@ public function getInvoices($xero_tenant_id, $if_modified_since = null, $where = * @param bool $created_by_my_app When set to true you'll only retrieve Invoices created by your app (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\Invoices, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false) + public function getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false, $page_size = null) { - $request = $this->getInvoicesRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only); + $request = $this->getInvoicesRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -34338,18 +34367,18 @@ public function getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since = nu $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\Invoices' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\Invoices', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Invoices'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -34366,7 +34395,7 @@ public function getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since = nu case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\Invoices', + '\XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -34391,12 +34420,13 @@ public function getInvoicesWithHttpInfo($xero_tenant_id, $if_modified_since = nu * @param bool $created_by_my_app When set to true you'll only retrieve Invoices created by your app (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getInvoicesAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false) + public function getInvoicesAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false, $page_size = null) { - return $this->getInvoicesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only) + return $this->getInvoicesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only, $page_size) ->then( function ($response) { return $response[0]; @@ -34419,12 +34449,13 @@ function ($response) { * @param bool $created_by_my_app When set to true you'll only retrieve Invoices created by your app (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getInvoicesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false) + public function getInvoicesAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Invoices'; - $request = $this->getInvoicesRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetInvoicesResponse'; + $request = $this->getInvoicesRequest($xero_tenant_id, $if_modified_since, $where, $order, $ids, $invoice_numbers, $contact_ids, $statuses, $page, $include_archived, $created_by_my_app, $unitdp, $summary_only, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -34473,9 +34504,10 @@ function ($exception) { * @param bool $created_by_my_app When set to true you'll only retrieve Invoices created by your app (optional) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @param bool $summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional, default to false) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getInvoicesRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false) + protected function getInvoicesRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $ids = null, $invoice_numbers = null, $contact_ids = null, $statuses = null, $page = null, $include_archived = null, $created_by_my_app = null, $unitdp = null, $summary_only = false, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -34545,6 +34577,10 @@ protected function getInvoicesRequest($xero_tenant_id, $if_modified_since = null if ($summary_only !== null) { $queryParams['summaryOnly'] = $summary_only ? 'true' : 'false'; } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); @@ -37758,13 +37794,14 @@ protected function getManualJournalAttachmentsRequest($xero_tenant_id, $manual_j * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\ManualJournals + * @return \XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse */ - public function getManualJournals($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getManualJournals($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - list($response) = $this->getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page); + list($response) = $this->getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size); return $response; } /** @@ -37775,13 +37812,14 @@ public function getManualJournals($xero_tenant_id, $if_modified_since = null, $w * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\ManualJournals, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - $request = $this->getManualJournalsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page); + $request = $this->getManualJournalsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -37810,18 +37848,18 @@ public function getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_sinc $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\ManualJournals' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\ManualJournals', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\ManualJournals'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -37838,7 +37876,7 @@ public function getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_sinc case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\ManualJournals', + '\XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -37855,12 +37893,13 @@ public function getManualJournalsWithHttpInfo($xero_tenant_id, $if_modified_sinc * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getManualJournalsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getManualJournalsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - return $this->getManualJournalsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page) + return $this->getManualJournalsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size) ->then( function ($response) { return $response[0]; @@ -37875,12 +37914,13 @@ function ($response) { * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getManualJournalsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getManualJournalsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\ManualJournals'; - $request = $this->getManualJournalsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetManualJournalsResponse'; + $request = $this->getManualJournalsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -37921,9 +37961,10 @@ function ($exception) { * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getManualJournalsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + protected function getManualJournalsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -37949,6 +37990,10 @@ protected function getManualJournalsRequest($xero_tenant_id, $if_modified_since if ($page !== null) { $queryParams['page'] = AccountingObjectSerializer::toQueryValue($page); } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); @@ -39740,7 +39785,7 @@ protected function getOverpaymentHistoryRequest($xero_tenant_id, $overpayment_id * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\Overpayments + * @return \XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse */ public function getOverpayments($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) { @@ -39758,7 +39803,7 @@ public function getOverpayments($xero_tenant_id, $if_modified_since = null, $whe * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\Overpayments, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse, HTTP status code, HTTP response headers (array of strings) */ public function getOverpaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) { @@ -39791,18 +39836,18 @@ public function getOverpaymentsWithHttpInfo($xero_tenant_id, $if_modified_since $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\Overpayments' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\Overpayments', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Overpayments'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -39819,7 +39864,7 @@ public function getOverpaymentsWithHttpInfo($xero_tenant_id, $if_modified_since case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\Overpayments', + '\XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -39862,7 +39907,7 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface */ public function getOverpaymentsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Overpayments'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetOverpaymentsResponse'; $request = $this->getOverpaymentsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -40744,13 +40789,14 @@ protected function getPaymentServicesRequest($xero_tenant_id) * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page Up to 100 payments will be returned in a single API call (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\Payments + * @return \XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse */ - public function getPayments($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getPayments($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - list($response) = $this->getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page); + list($response) = $this->getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size); return $response; } /** @@ -40761,13 +40807,14 @@ public function getPayments($xero_tenant_id, $if_modified_since = null, $where = * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page Up to 100 payments will be returned in a single API call (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\Payments, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - $request = $this->getPaymentsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page); + $request = $this->getPaymentsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -40796,18 +40843,18 @@ public function getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = nu $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\Payments' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\Payments', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Payments'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -40824,7 +40871,7 @@ public function getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = nu case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\Payments', + '\XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -40841,12 +40888,13 @@ public function getPaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = nu * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page Up to 100 payments will be returned in a single API call (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPaymentsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getPaymentsAsync($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - return $this->getPaymentsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page) + return $this->getPaymentsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size) ->then( function ($response) { return $response[0]; @@ -40861,12 +40909,13 @@ function ($response) { * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page Up to 100 payments will be returned in a single API call (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPaymentsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + public function getPaymentsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Payments'; - $request = $this->getPaymentsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetPaymentsResponse'; + $request = $this->getPaymentsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -40907,9 +40956,10 @@ function ($exception) { * @param string $where Filter by an any element (optional) * @param string $order Order by an any element (optional) * @param int $page Up to 100 payments will be returned in a single API call (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getPaymentsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null) + protected function getPaymentsRequest($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -40935,6 +40985,10 @@ protected function getPaymentsRequest($xero_tenant_id, $if_modified_since = null if ($page !== null) { $queryParams['page'] = AccountingObjectSerializer::toQueryValue($page); } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); @@ -41514,7 +41568,7 @@ protected function getPrepaymentHistoryRequest($xero_tenant_id, $prepayment_id) * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\Prepayments + * @return \XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse */ public function getPrepayments($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) { @@ -41532,7 +41586,7 @@ public function getPrepayments($xero_tenant_id, $if_modified_since = null, $wher * @param int $unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\Prepayments, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse, HTTP status code, HTTP response headers (array of strings) */ public function getPrepaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) { @@ -41565,18 +41619,18 @@ public function getPrepaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\Prepayments' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\Prepayments', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Prepayments'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -41593,7 +41647,7 @@ public function getPrepaymentsWithHttpInfo($xero_tenant_id, $if_modified_since = case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\Prepayments', + '\XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -41636,7 +41690,7 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface */ public function getPrepaymentsAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $where = null, $order = null, $page = null, $unitdp = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\Prepayments'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetPrepaymentsResponse'; $request = $this->getPrepaymentsRequest($xero_tenant_id, $if_modified_since, $where, $order, $page, $unitdp); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -43607,13 +43661,14 @@ protected function getPurchaseOrderHistoryRequest($xero_tenant_id, $purchase_ord * @param string $date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 (optional) * @param string $order Order by an any element (optional) * @param int $page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders + * @return \XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse */ - public function getPurchaseOrders($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null) + public function getPurchaseOrders($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null, $page_size = null) { - list($response) = $this->getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page); + list($response) = $this->getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page, $page_size); return $response; } /** @@ -43626,13 +43681,14 @@ public function getPurchaseOrders($xero_tenant_id, $if_modified_since = null, $s * @param string $date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 (optional) * @param string $order Order by an any element (optional) * @param int $page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \XeroAPI\XeroPHP\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders, HTTP status code, HTTP response headers (array of strings) + * @return array of \XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null) + public function getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null, $page_size = null) { - $request = $this->getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page); + $request = $this->getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page, $page_size); try { $options = $this->createHttpClientOption(); try { @@ -43661,18 +43717,18 @@ public function getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_sinc $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders' === '\SplFileObject') { + if ('\XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = $responseBody->getContents(); } return [ - AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders', []), + AccountingObjectSerializer::deserialize($content, '\XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders'; + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -43689,7 +43745,7 @@ public function getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_sinc case 200: $data = AccountingObjectSerializer::deserialize( $e->getResponseBody(), - '\XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders', + '\XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -43708,12 +43764,13 @@ public function getPurchaseOrdersWithHttpInfo($xero_tenant_id, $if_modified_sinc * @param string $date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 (optional) * @param string $order Order by an any element (optional) * @param int $page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPurchaseOrdersAsync($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null) + public function getPurchaseOrdersAsync($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null, $page_size = null) { - return $this->getPurchaseOrdersAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page) + return $this->getPurchaseOrdersAsyncWithHttpInfo($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page, $page_size) ->then( function ($response) { return $response[0]; @@ -43730,12 +43787,13 @@ function ($response) { * @param string $date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 (optional) * @param string $order Order by an any element (optional) * @param int $page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPurchaseOrdersAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null) + public function getPurchaseOrdersAsyncWithHttpInfo($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null, $page_size = null) { - $returnType = '\XeroAPI\XeroPHP\Models\Accounting\PurchaseOrders'; - $request = $this->getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page); + $returnType = '\XeroAPI\XeroPHP\Models\Accounting\GetPurchaseOrdersResponse'; + $request = $this->getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since, $status, $date_from, $date_to, $order, $page, $page_size); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( @@ -43778,9 +43836,10 @@ function ($exception) { * @param string $date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 (optional) * @param string $order Order by an any element (optional) * @param int $page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned. (optional) + * @param int $page_size Number of records to retrieve per page (optional) * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null) + protected function getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since = null, $status = null, $date_from = null, $date_to = null, $order = null, $page = null, $page_size = null) { // verify the required parameter 'xero_tenant_id' is set if ($xero_tenant_id === null || (is_array($xero_tenant_id) && count($xero_tenant_id) === 0)) { @@ -43814,6 +43873,10 @@ protected function getPurchaseOrdersRequest($xero_tenant_id, $if_modified_since if ($page !== null) { $queryParams['page'] = AccountingObjectSerializer::toQueryValue($page); } + // query params + if ($page_size !== null) { + $queryParams['pageSize'] = AccountingObjectSerializer::toQueryValue($page_size); + } // header params if ($xero_tenant_id !== null) { $headerParams['xero-tenant-id'] = AccountingObjectSerializer::toHeaderValue($xero_tenant_id); diff --git a/lib/Api/AppStoreApi.php b/lib/Api/AppStoreApi.php index 2ba3f417..e4aca206 100644 --- a/lib/Api/AppStoreApi.php +++ b/lib/Api/AppStoreApi.php @@ -14,7 +14,7 @@ * * These endpoints are for Xero Partners to interact with the App Store Billing platform * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/AssetApi.php b/lib/Api/AssetApi.php index d6731661..1404791c 100644 --- a/lib/Api/AssetApi.php +++ b/lib/Api/AssetApi.php @@ -14,7 +14,7 @@ * * The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/FilesApi.php b/lib/Api/FilesApi.php index 95fa72f9..0a6a55c9 100644 --- a/lib/Api/FilesApi.php +++ b/lib/Api/FilesApi.php @@ -14,7 +14,7 @@ * * These endpoints are specific to Xero Files API * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/FinanceApi.php b/lib/Api/FinanceApi.php index 9fbfff6f..f3d08835 100644 --- a/lib/Api/FinanceApi.php +++ b/lib/Api/FinanceApi.php @@ -14,7 +14,7 @@ * * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/IdentityApi.php b/lib/Api/IdentityApi.php index 52a55cae..91f47a2d 100644 --- a/lib/Api/IdentityApi.php +++ b/lib/Api/IdentityApi.php @@ -14,7 +14,7 @@ * * These endpoints are related to managing authentication tokens and identity for Xero API * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/PayrollAuApi.php b/lib/Api/PayrollAuApi.php index 9ca48a7f..f05b2693 100644 --- a/lib/Api/PayrollAuApi.php +++ b/lib/Api/PayrollAuApi.php @@ -14,7 +14,7 @@ * * This is the Xero Payroll API for orgs in Australia region. * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/PayrollNzApi.php b/lib/Api/PayrollNzApi.php index d9f7160b..291c38b5 100644 --- a/lib/Api/PayrollNzApi.php +++ b/lib/Api/PayrollNzApi.php @@ -14,7 +14,7 @@ * * This is the Xero Payroll API for orgs in the NZ region. * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/PayrollUkApi.php b/lib/Api/PayrollUkApi.php index d9423763..c114506c 100644 --- a/lib/Api/PayrollUkApi.php +++ b/lib/Api/PayrollUkApi.php @@ -14,7 +14,7 @@ * * This is the Xero Payroll API for orgs in the UK region. * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Api/ProjectApi.php b/lib/Api/ProjectApi.php index fdc50783..5c3a1d35 100644 --- a/lib/Api/ProjectApi.php +++ b/lib/Api/ProjectApi.php @@ -14,7 +14,7 @@ * * This is the Xero Projects API * - * OpenAPI spec version: 4.0.0 + * OpenAPI spec version: 5.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/lib/Configuration.php b/lib/Configuration.php index 2412dec1..e8f21e80 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -157,7 +157,7 @@ class Configuration * * @var string */ - protected $userAgent = '[xero-php-oauth2 (5.0.0)]'; + protected $userAgent = '[xero-php-oauth2 (6.0.0)]'; /** * Debug switch (default set to false) @@ -696,8 +696,8 @@ public static function toDebugReport() $report = 'PHP SDK (XeroAPI\XeroPHP) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 4.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.0.0' . PHP_EOL; + $report .= ' OpenAPI Spec Version: 5.0.0' . PHP_EOL; + $report .= ' SDK Package Version: 6.0.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Models/Accounting/GetBankTransactionsResponse.php b/lib/Models/Accounting/GetBankTransactionsResponse.php new file mode 100644 index 00000000..6294a9a3 --- /dev/null +++ b/lib/Models/Accounting/GetBankTransactionsResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'bank_transactions' => '\XeroAPI\XeroPHP\Models\Accounting\BankTransaction[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'bank_transactions' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'bank_transactions' => 'BankTransactions' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'bank_transactions' => 'setBankTransactions' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'bank_transactions' => 'getBankTransactions' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['bank_transactions'] = isset($data['bank_transactions']) ? $data['bank_transactions'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['bank_transactions']) && (count($this->container['bank_transactions']) < 1)) { + $invalidProperties[] = "invalid value for 'bank_transactions', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets bank_transactions + * + * @return \XeroAPI\XeroPHP\Models\Accounting\BankTransaction[]|null + */ + public function getBankTransactions() + { + return $this->container['bank_transactions']; + } + + /** + * Sets bank_transactions + * + * @param \XeroAPI\XeroPHP\Models\Accounting\BankTransaction[]|null $bank_transactions bank_transactions + * + * @return $this + */ + public function setBankTransactions($bank_transactions) + { + + + if (!is_null($bank_transactions) && (count($bank_transactions) < 1)) { + throw new \InvalidArgumentException('invalid length for $bank_transactions when calling GetBankTransactionsResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['bank_transactions'] = $bank_transactions; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetContactsResponse.php b/lib/Models/Accounting/GetContactsResponse.php new file mode 100644 index 00000000..468352d2 --- /dev/null +++ b/lib/Models/Accounting/GetContactsResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'contacts' => '\XeroAPI\XeroPHP\Models\Accounting\Contact[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'contacts' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'contacts' => 'Contacts' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'contacts' => 'setContacts' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'contacts' => 'getContacts' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['contacts'] = isset($data['contacts']) ? $data['contacts'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['contacts']) && (count($this->container['contacts']) < 1)) { + $invalidProperties[] = "invalid value for 'contacts', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets contacts + * + * @return \XeroAPI\XeroPHP\Models\Accounting\Contact[]|null + */ + public function getContacts() + { + return $this->container['contacts']; + } + + /** + * Sets contacts + * + * @param \XeroAPI\XeroPHP\Models\Accounting\Contact[]|null $contacts contacts + * + * @return $this + */ + public function setContacts($contacts) + { + + + if (!is_null($contacts) && (count($contacts) < 1)) { + throw new \InvalidArgumentException('invalid length for $contacts when calling GetContactsResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['contacts'] = $contacts; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetCreditNotesResponse.php b/lib/Models/Accounting/GetCreditNotesResponse.php new file mode 100644 index 00000000..f80a3d31 --- /dev/null +++ b/lib/Models/Accounting/GetCreditNotesResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'credit_notes' => '\XeroAPI\XeroPHP\Models\Accounting\CreditNote[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'credit_notes' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'credit_notes' => 'CreditNotes' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'credit_notes' => 'setCreditNotes' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'credit_notes' => 'getCreditNotes' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['credit_notes'] = isset($data['credit_notes']) ? $data['credit_notes'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['credit_notes']) && (count($this->container['credit_notes']) < 1)) { + $invalidProperties[] = "invalid value for 'credit_notes', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets credit_notes + * + * @return \XeroAPI\XeroPHP\Models\Accounting\CreditNote[]|null + */ + public function getCreditNotes() + { + return $this->container['credit_notes']; + } + + /** + * Sets credit_notes + * + * @param \XeroAPI\XeroPHP\Models\Accounting\CreditNote[]|null $credit_notes credit_notes + * + * @return $this + */ + public function setCreditNotes($credit_notes) + { + + + if (!is_null($credit_notes) && (count($credit_notes) < 1)) { + throw new \InvalidArgumentException('invalid length for $credit_notes when calling GetCreditNotesResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['credit_notes'] = $credit_notes; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetInvoicesResponse.php b/lib/Models/Accounting/GetInvoicesResponse.php new file mode 100644 index 00000000..b783e6f7 --- /dev/null +++ b/lib/Models/Accounting/GetInvoicesResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'invoices' => '\XeroAPI\XeroPHP\Models\Accounting\Invoice[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'invoices' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'invoices' => 'Invoices' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'invoices' => 'setInvoices' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'invoices' => 'getInvoices' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['invoices'] = isset($data['invoices']) ? $data['invoices'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['invoices']) && (count($this->container['invoices']) < 1)) { + $invalidProperties[] = "invalid value for 'invoices', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets invoices + * + * @return \XeroAPI\XeroPHP\Models\Accounting\Invoice[]|null + */ + public function getInvoices() + { + return $this->container['invoices']; + } + + /** + * Sets invoices + * + * @param \XeroAPI\XeroPHP\Models\Accounting\Invoice[]|null $invoices invoices + * + * @return $this + */ + public function setInvoices($invoices) + { + + + if (!is_null($invoices) && (count($invoices) < 1)) { + throw new \InvalidArgumentException('invalid length for $invoices when calling GetInvoicesResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['invoices'] = $invoices; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetManualJournalsResponse.php b/lib/Models/Accounting/GetManualJournalsResponse.php new file mode 100644 index 00000000..a8483e34 --- /dev/null +++ b/lib/Models/Accounting/GetManualJournalsResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'manual_journals' => '\XeroAPI\XeroPHP\Models\Accounting\ManualJournal[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'manual_journals' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'manual_journals' => 'ManualJournals' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'manual_journals' => 'setManualJournals' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'manual_journals' => 'getManualJournals' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['manual_journals'] = isset($data['manual_journals']) ? $data['manual_journals'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['manual_journals']) && (count($this->container['manual_journals']) < 1)) { + $invalidProperties[] = "invalid value for 'manual_journals', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets manual_journals + * + * @return \XeroAPI\XeroPHP\Models\Accounting\ManualJournal[]|null + */ + public function getManualJournals() + { + return $this->container['manual_journals']; + } + + /** + * Sets manual_journals + * + * @param \XeroAPI\XeroPHP\Models\Accounting\ManualJournal[]|null $manual_journals manual_journals + * + * @return $this + */ + public function setManualJournals($manual_journals) + { + + + if (!is_null($manual_journals) && (count($manual_journals) < 1)) { + throw new \InvalidArgumentException('invalid length for $manual_journals when calling GetManualJournalsResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['manual_journals'] = $manual_journals; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetOverpaymentsResponse.php b/lib/Models/Accounting/GetOverpaymentsResponse.php new file mode 100644 index 00000000..77c59323 --- /dev/null +++ b/lib/Models/Accounting/GetOverpaymentsResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'overpayments' => '\XeroAPI\XeroPHP\Models\Accounting\Overpayment[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'overpayments' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'overpayments' => 'Overpayments' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'overpayments' => 'setOverpayments' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'overpayments' => 'getOverpayments' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['overpayments'] = isset($data['overpayments']) ? $data['overpayments'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['overpayments']) && (count($this->container['overpayments']) < 1)) { + $invalidProperties[] = "invalid value for 'overpayments', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets overpayments + * + * @return \XeroAPI\XeroPHP\Models\Accounting\Overpayment[]|null + */ + public function getOverpayments() + { + return $this->container['overpayments']; + } + + /** + * Sets overpayments + * + * @param \XeroAPI\XeroPHP\Models\Accounting\Overpayment[]|null $overpayments overpayments + * + * @return $this + */ + public function setOverpayments($overpayments) + { + + + if (!is_null($overpayments) && (count($overpayments) < 1)) { + throw new \InvalidArgumentException('invalid length for $overpayments when calling GetOverpaymentsResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['overpayments'] = $overpayments; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetPaymentsResponse.php b/lib/Models/Accounting/GetPaymentsResponse.php new file mode 100644 index 00000000..41647afa --- /dev/null +++ b/lib/Models/Accounting/GetPaymentsResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'payments' => '\XeroAPI\XeroPHP\Models\Accounting\Payment[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'payments' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'payments' => 'Payments' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'payments' => 'setPayments' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'payments' => 'getPayments' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['payments'] = isset($data['payments']) ? $data['payments'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['payments']) && (count($this->container['payments']) < 1)) { + $invalidProperties[] = "invalid value for 'payments', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets payments + * + * @return \XeroAPI\XeroPHP\Models\Accounting\Payment[]|null + */ + public function getPayments() + { + return $this->container['payments']; + } + + /** + * Sets payments + * + * @param \XeroAPI\XeroPHP\Models\Accounting\Payment[]|null $payments payments + * + * @return $this + */ + public function setPayments($payments) + { + + + if (!is_null($payments) && (count($payments) < 1)) { + throw new \InvalidArgumentException('invalid length for $payments when calling GetPaymentsResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['payments'] = $payments; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetPrepaymentsResponse.php b/lib/Models/Accounting/GetPrepaymentsResponse.php new file mode 100644 index 00000000..2eb6b44f --- /dev/null +++ b/lib/Models/Accounting/GetPrepaymentsResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'prepayments' => '\XeroAPI\XeroPHP\Models\Accounting\Prepayment[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'prepayments' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'prepayments' => 'Prepayments' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'prepayments' => 'setPrepayments' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'prepayments' => 'getPrepayments' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['prepayments'] = isset($data['prepayments']) ? $data['prepayments'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['prepayments']) && (count($this->container['prepayments']) < 1)) { + $invalidProperties[] = "invalid value for 'prepayments', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets prepayments + * + * @return \XeroAPI\XeroPHP\Models\Accounting\Prepayment[]|null + */ + public function getPrepayments() + { + return $this->container['prepayments']; + } + + /** + * Sets prepayments + * + * @param \XeroAPI\XeroPHP\Models\Accounting\Prepayment[]|null $prepayments prepayments + * + * @return $this + */ + public function setPrepayments($prepayments) + { + + + if (!is_null($prepayments) && (count($prepayments) < 1)) { + throw new \InvalidArgumentException('invalid length for $prepayments when calling GetPrepaymentsResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['prepayments'] = $prepayments; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/GetPurchaseOrdersResponse.php b/lib/Models/Accounting/GetPurchaseOrdersResponse.php new file mode 100644 index 00000000..dc5e00c5 --- /dev/null +++ b/lib/Models/Accounting/GetPurchaseOrdersResponse.php @@ -0,0 +1,479 @@ + 'string', + 'status' => 'string', + 'provider_name' => 'string', + 'date_time_utc' => 'string', + 'page_info' => '\XeroAPI\XeroPHP\Models\Accounting\PageInfo', + 'purchase_orders' => '\XeroAPI\XeroPHP\Models\Accounting\PurchaseOrder[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'status' => null, + 'provider_name' => null, + 'date_time_utc' => null, + 'page_info' => null, + 'purchase_orders' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'Id', + 'status' => 'Status', + 'provider_name' => 'ProviderName', + 'date_time_utc' => 'DateTimeUTC', + 'page_info' => 'PageInfo', + 'purchase_orders' => 'PurchaseOrders' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'status' => 'setStatus', + 'provider_name' => 'setProviderName', + 'date_time_utc' => 'setDateTimeUtc', + 'page_info' => 'setPageInfo', + 'purchase_orders' => 'setPurchaseOrders' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'status' => 'getStatus', + 'provider_name' => 'getProviderName', + 'date_time_utc' => 'getDateTimeUtc', + 'page_info' => 'getPageInfo', + 'purchase_orders' => 'getPurchaseOrders' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['provider_name'] = isset($data['provider_name']) ? $data['provider_name'] : null; + $this->container['date_time_utc'] = isset($data['date_time_utc']) ? $data['date_time_utc'] : null; + $this->container['page_info'] = isset($data['page_info']) ? $data['page_info'] : null; + $this->container['purchase_orders'] = isset($data['purchase_orders']) ? $data['purchase_orders'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['purchase_orders']) && (count($this->container['purchase_orders']) < 1)) { + $invalidProperties[] = "invalid value for 'purchase_orders', number of items must be greater than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return $this + */ + public function setId($id) + { + + $this->container['id'] = $id; + + return $this; + } + + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + + $this->container['status'] = $status; + + return $this; + } + + + + /** + * Gets provider_name + * + * @return string|null + */ + public function getProviderName() + { + return $this->container['provider_name']; + } + + /** + * Sets provider_name + * + * @param string|null $provider_name provider_name + * + * @return $this + */ + public function setProviderName($provider_name) + { + + $this->container['provider_name'] = $provider_name; + + return $this; + } + + + + /** + * Gets date_time_utc + * + * @return string|null + */ + public function getDateTimeUtc() + { + return $this->container['date_time_utc']; + } + + /** + * Sets date_time_utc + * + * @param string|null $date_time_utc date_time_utc + * + * @return $this + */ + public function setDateTimeUtc($date_time_utc) + { + + $this->container['date_time_utc'] = $date_time_utc; + + return $this; + } + + + + /** + * Gets page_info + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['page_info']; + } + + /** + * Sets page_info + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PageInfo|null $page_info page_info + * + * @return $this + */ + public function setPageInfo($page_info) + { + + $this->container['page_info'] = $page_info; + + return $this; + } + + + + /** + * Gets purchase_orders + * + * @return \XeroAPI\XeroPHP\Models\Accounting\PurchaseOrder[]|null + */ + public function getPurchaseOrders() + { + return $this->container['purchase_orders']; + } + + /** + * Sets purchase_orders + * + * @param \XeroAPI\XeroPHP\Models\Accounting\PurchaseOrder[]|null $purchase_orders purchase_orders + * + * @return $this + */ + public function setPurchaseOrders($purchase_orders) + { + + + if (!is_null($purchase_orders) && (count($purchase_orders) < 1)) { + throw new \InvalidArgumentException('invalid length for $purchase_orders when calling GetPurchaseOrdersResponse., number of items must be greater than or equal to 1.'); + } + + $this->container['purchase_orders'] = $purchase_orders; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Accounting/PageInfo.php b/lib/Models/Accounting/PageInfo.php new file mode 100644 index 00000000..67e3da2d --- /dev/null +++ b/lib/Models/Accounting/PageInfo.php @@ -0,0 +1,405 @@ + 'int', + 'page_size' => 'int', + 'total_pages' => 'int', + 'total_rows' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'page' => null, + 'page_size' => null, + 'total_pages' => null, + 'total_rows' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page' => 'Page', + 'page_size' => 'PageSize', + 'total_pages' => 'TotalPages', + 'total_rows' => 'TotalRows' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page' => 'setPage', + 'page_size' => 'setPageSize', + 'total_pages' => 'setTotalPages', + 'total_rows' => 'setTotalRows' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page' => 'getPage', + 'page_size' => 'getPageSize', + 'total_pages' => 'getTotalPages', + 'total_rows' => 'getTotalRows' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page'] = isset($data['page']) ? $data['page'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_pages'] = isset($data['total_pages']) ? $data['total_pages'] : null; + $this->container['total_rows'] = isset($data['total_rows']) ? $data['total_rows'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets page + * + * @return int|null + */ + public function getPage() + { + return $this->container['page']; + } + + /** + * Sets page + * + * @param int|null $page page + * + * @return $this + */ + public function setPage($page) + { + + $this->container['page'] = $page; + + return $this; + } + + + + /** + * Gets page_size + * + * @return int|null + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int|null $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + + $this->container['page_size'] = $page_size; + + return $this; + } + + + + /** + * Gets total_pages + * + * @return int|null + */ + public function getTotalPages() + { + return $this->container['total_pages']; + } + + /** + * Sets total_pages + * + * @param int|null $total_pages total_pages + * + * @return $this + */ + public function setTotalPages($total_pages) + { + + $this->container['total_pages'] = $total_pages; + + return $this; + } + + + + /** + * Gets total_rows + * + * @return int|null + */ + public function getTotalRows() + { + return $this->container['total_rows']; + } + + /** + * Sets total_rows + * + * @param int|null $total_rows total_rows + * + * @return $this + */ + public function setTotalRows($total_rows) + { + + $this->container['total_rows'] = $total_rows; + + return $this; + } + + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + AccountingObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + + diff --git a/lib/Models/Finance/DataSourceResponse.php b/lib/Models/Finance/DataSourceResponse.php index 4eb31ea8..29fa4c02 100644 --- a/lib/Models/Finance/DataSourceResponse.php +++ b/lib/Models/Finance/DataSourceResponse.php @@ -302,7 +302,7 @@ public function getDirectBankFeed() /** * Sets direct_bank_feed * - * @param double|null $direct_bank_feed Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. + * @param double|null $direct_bank_feed Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. * * @return $this */ @@ -329,7 +329,7 @@ public function getIndirectBankFeed() /** * Sets indirect_bank_feed * - * @param double|null $indirect_bank_feed Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. + * @param double|null $indirect_bank_feed No longer in use. * * @return $this */ @@ -356,7 +356,7 @@ public function getFileUpload() /** * Sets file_upload * - * @param double|null $file_upload Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. + * @param double|null $file_upload Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. * * @return $this */ @@ -383,7 +383,7 @@ public function getManual() /** * Sets manual * - * @param double|null $manual Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. + * @param double|null $manual Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. * * @return $this */ @@ -410,7 +410,7 @@ public function getDirectBankFeedPos() /** * Sets direct_bank_feed_pos * - * @param double|null $direct_bank_feed_pos Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * @param double|null $direct_bank_feed_pos Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. * * @return $this */ @@ -437,7 +437,7 @@ public function getIndirectBankFeedPos() /** * Sets indirect_bank_feed_pos * - * @param double|null $indirect_bank_feed_pos Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * @param double|null $indirect_bank_feed_pos No longer in use. * * @return $this */ @@ -464,7 +464,7 @@ public function getFileUploadPos() /** * Sets file_upload_pos * - * @param double|null $file_upload_pos Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * @param double|null $file_upload_pos Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. * * @return $this */ @@ -491,7 +491,7 @@ public function getManualPos() /** * Sets manual_pos * - * @param double|null $manual_pos Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * @param double|null $manual_pos Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. * * @return $this */ @@ -518,7 +518,7 @@ public function getDirectBankFeedNeg() /** * Sets direct_bank_feed_neg * - * @param double|null $direct_bank_feed_neg Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * @param double|null $direct_bank_feed_neg Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. * * @return $this */ @@ -545,7 +545,7 @@ public function getIndirectBankFeedNeg() /** * Sets indirect_bank_feed_neg * - * @param double|null $indirect_bank_feed_neg Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * @param double|null $indirect_bank_feed_neg No longer in use. * * @return $this */ @@ -572,7 +572,7 @@ public function getFileUploadNeg() /** * Sets file_upload_neg * - * @param double|null $file_upload_neg Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * @param double|null $file_upload_neg Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. * * @return $this */ @@ -599,7 +599,7 @@ public function getManualNeg() /** * Sets manual_neg * - * @param double|null $manual_neg Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * @param double|null $manual_neg Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. * * @return $this */ @@ -626,7 +626,7 @@ public function getOtherPos() /** * Sets other_pos * - * @param double|null $other_pos Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. + * @param double|null $other_pos Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. * * @return $this */ @@ -653,7 +653,7 @@ public function getOtherNeg() /** * Sets other_neg * - * @param double|null $other_neg Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. + * @param double|null $other_neg Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. * * @return $this */ @@ -680,7 +680,7 @@ public function getOther() /** * Sets other * - * @param double|null $other Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. + * @param double|null $other Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. * * @return $this */