Skip to content

Commit 4a93555

Browse files
Major release: 3.0.0 (#163)
* Update dependencies and support to 7.4 PHP * Add bionic to Travis config * PHP73 and dependencies * Only test 73 and 74 * Remove PHP 7.4 and update tests * Update dependencies and unit tests * Php7.4 test in Travis * Refactor ApPaymentRequest, Add APPYMT support, Refactor FulfillmentStatus for OETransactionLineCreate, Fix TransactionItemDetail for lotno and serialno * Split date on DeliveryDate for FulfillmentStatus * Refactor for 7.3 php support * Add Timesheet Approve, Decline, and Update support * Update copyright year 2021 * Add PlatformServices methods Include sessionTimestamp and sessionTimeout in responses * Fix clear primary and secondary email #164 * Adjust README for PHP version * Code review updates
1 parent b8188d3 commit 4a93555

File tree

601 files changed

+5043
-3422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

601 files changed

+5043
-3422
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
6-
- 7.2
74
- 7.3
5+
- 7.4
6+
7+
dist: bionic
88

99
before_script:
1010
- composer self-update

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
## System Requirements
1818

1919
* You must have an active Sage Intacct Web Services Developer license
20-
* PHP >= 7.0
20+
* PHP >= 7.3
2121
* A recent version of cURL >= 7.19.4 compiled with OpenSSL and zlib
2222
* [Composer](composer)
2323

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=7.0",
13+
"php": ">=7.3",
1414
"ext-dom": "*",
1515
"ext-libxml": "*",
1616
"ext-mbstring": "*",
1717
"ext-simplexml": "*",
1818
"ext-xmlwriter": "*",
19-
"guzzlehttp/guzzle": "^6.2.3",
20-
"ramsey/uuid": "^3.6.1",
21-
"psr/log": "~1.0"
19+
"guzzlehttp/guzzle": "^7.2.0",
20+
"ramsey/uuid": "^4.1.1",
21+
"psr/log": "^1.1.3"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "^5.7.21",
25-
"monolog/monolog": "^1.22.0",
26-
"mikey179/vfsstream": "^1.6.4",
27-
"phpmd/phpmd": "@stable",
28-
"squizlabs/php_codesniffer": "3.*"
24+
"phpunit/phpunit": "^9.5.0",
25+
"monolog/monolog": "^2.2.0",
26+
"mikey179/vfsstream": "^1.6.8",
27+
"phpmd/phpmd": "^2.9.1",
28+
"squizlabs/php_codesniffer": "^3.5.8"
2929
},
3030
"suggest": {
3131
"monolog/monolog": "Allows more advanced logging of the application flow"

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<!--
3-
Copyright 2020 Sage Intacct, Inc.
3+
Copyright 2021 Sage Intacct, Inc.
44
55
Licensed under the Apache License, Version 2.0 (the "License"). You may not
66
use this file except in compliance with the License. You may obtain a copy

src/Intacct/AbstractClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2020 Sage Intacct, Inc.
4+
* Copyright 2021 Sage Intacct, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
77
* use this file except in compliance with the License. You may obtain a copy
@@ -51,6 +51,7 @@ public function setConfig(ClientConfig $config)
5151
$this->config = $config;
5252
}
5353

54+
5455
/**
5556
* AbstractClient constructor.
5657
*

src/Intacct/ClientConfig.php

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2020 Sage Intacct, Inc.
4+
* Copyright 2021 Sage Intacct, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
77
* use this file except in compliance with the License. You may obtain a copy
@@ -140,6 +140,44 @@ public function setSessionId(string $sessionId)
140140
$this->sessionId = $sessionId;
141141
}
142142

143+
/** @var string */
144+
private $sessionTimestamp = '';
145+
146+
/**
147+
* @return string
148+
*/
149+
public function getSessionTimestamp(): string
150+
{
151+
return $this->sessionTimestamp;
152+
}
153+
154+
/**
155+
* @param string $sessionTimestamp
156+
*/
157+
public function setSessionTimestamp(string $sessionTimestamp): void
158+
{
159+
$this->sessionTimestamp = $sessionTimestamp;
160+
}
161+
162+
/** @var string */
163+
private $sessionTimeout = '';
164+
165+
/**
166+
* @return string
167+
*/
168+
public function getSessionTimeout(): string
169+
{
170+
return $this->sessionTimeout;
171+
}
172+
173+
/**
174+
* @param string $sessionTimeout
175+
*/
176+
public function setSessionTimeout(string $sessionTimeout): void
177+
{
178+
$this->sessionTimeout = $sessionTimeout;
179+
}
180+
143181
/** @var string */
144182
private $companyId = '';
145183

src/Intacct/Credentials/CredentialsInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2020 Sage Intacct, Inc.
4+
* Copyright 2021 Sage Intacct, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
77
* use this file except in compliance with the License. You may obtain a copy

src/Intacct/Credentials/Endpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2020 Sage Intacct, Inc.
4+
* Copyright 2021 Sage Intacct, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
77
* use this file except in compliance with the License. You may obtain a copy

src/Intacct/Credentials/LoginCredentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2020 Sage Intacct, Inc.
4+
* Copyright 2021 Sage Intacct, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
77
* use this file except in compliance with the License. You may obtain a copy

src/Intacct/Credentials/ProfileCredentialProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2020 Sage Intacct, Inc.
4+
* Copyright 2021 Sage Intacct, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
77
* use this file except in compliance with the License. You may obtain a copy

0 commit comments

Comments
 (0)