Skip to content

Commit e1acf55

Browse files
authored
Merge pull request #456 from AuthorizeNet/may-2024
May 2024 Changes
2 parents a3e76f9 + 065461d commit e1acf55

File tree

225 files changed

+528
-352
lines changed

Some content is hidden

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

225 files changed

+528
-352
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Packagist Stable Version](https://poser.pugx.org/authorizenet/authorizenet/v/stable.svg)](https://packagist.org/packages/authorizenet/authorizenet)
66

77
## Requirements
8-
* PHP 5.6+
8+
* PHP 5.6 to 8.x.x
99
* cURL PHP Extension
1010
* JSON PHP Extension
1111
* An Authorize.Net account (see _Registration & Configuration_ section below)
@@ -56,7 +56,7 @@ override the new secure-http default setting)*.
5656
{
5757
"require": {
5858
"php": ">=5.6",
59-
"authorizenet/authorizenet": "2.0.2"
59+
"authorizenet/authorizenet": "2.0.3"
6060
}
6161
}
6262
```

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "authorizenet/authorizenet",
33
"type": "library",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"description": "Official PHP SDK for Authorize.Net",
66
"keywords": ["authorizenet", "authorize.net", "payment", "ecommerce"],
77
"license": "proprietary",

lib/net/authorize/api/contract/v1/ANetApiRequestType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,15 @@ public function setRefId($refId)
9696

9797

9898
// Json Serialize Code
99+
#[\ReturnTypeWillChange]
99100
public function jsonSerialize(){
100101
$values = array_filter((array)get_object_vars($this),
101102
function ($val){
102103
return !is_null($val);
103104
});
104105
$mapper = \net\authorize\util\Mapper::Instance();
105106
foreach($values as $key => $value){
106-
$classDetails = $mapper->getClass(get_class() , $key);
107+
$classDetails = $mapper->getClass(get_class($this) , $key);
107108
if (isset($value)){
108109
if ($classDetails->className === 'Date'){
109110
$dateTime = $value->format('Y-m-d');
@@ -131,7 +132,7 @@ public function set($data)
131132
if(is_array($data) || is_object($data)) {
132133
$mapper = \net\authorize\util\Mapper::Instance();
133134
foreach($data AS $key => $value) {
134-
$classDetails = $mapper->getClass(get_class() , $key);
135+
$classDetails = $mapper->getClass(get_class($this) , $key);
135136

136137
if($classDetails !== NULL ) {
137138
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ANetApiResponseType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,15 @@ public function setSessionToken($sessionToken)
9494

9595

9696
// Json Serialize Code
97+
#[\ReturnTypeWillChange]
9798
public function jsonSerialize(){
9899
$values = array_filter((array)get_object_vars($this),
99100
function ($val){
100101
return !is_null($val);
101102
});
102103
$mapper = \net\authorize\util\Mapper::Instance();
103104
foreach($values as $key => $value){
104-
$classDetails = $mapper->getClass(get_class() , $key);
105+
$classDetails = $mapper->getClass(get_class($this) , $key);
105106
if (isset($value)){
106107
if ($classDetails->className === 'Date'){
107108
$dateTime = $value->format('Y-m-d');
@@ -129,7 +130,7 @@ public function set($data)
129130
if(is_array($data) || is_object($data)) {
130131
$mapper = \net\authorize\util\Mapper::Instance();
131132
foreach($data AS $key => $value) {
132-
$classDetails = $mapper->getClass(get_class() , $key);
133+
$classDetails = $mapper->getClass(get_class($this) , $key);
133134

134135
if($classDetails !== NULL ) {
135136
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBCancelSubscriptionRequest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ public function setSubscriptionId($subscriptionId)
3737

3838

3939
// Json Serialize Code
40+
#[\ReturnTypeWillChange]
4041
public function jsonSerialize(){
4142
$values = array_filter((array)get_object_vars($this),
4243
function ($val){
4344
return !is_null($val);
4445
});
4546
$mapper = \net\authorize\util\Mapper::Instance();
4647
foreach($values as $key => $value){
47-
$classDetails = $mapper->getClass(get_class() , $key);
48+
$classDetails = $mapper->getClass(get_class($this) , $key);
4849
if (isset($value)){
4950
if ($classDetails->className === 'Date'){
5051
$dateTime = $value->format('Y-m-d');

lib/net/authorize/api/contract/v1/ARBCancelSubscriptionResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function set($data)
1515
if(is_array($data) || is_object($data)) {
1616
$mapper = \net\authorize\util\Mapper::Instance();
1717
foreach($data AS $key => $value) {
18-
$classDetails = $mapper->getClass(get_class() , $key);
18+
$classDetails = $mapper->getClass(get_class($this) , $key);
1919

2020
if($classDetails !== NULL ) {
2121
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBCreateSubscriptionRequest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionTy
3737

3838

3939
// Json Serialize Code
40+
#[\ReturnTypeWillChange]
4041
public function jsonSerialize(){
4142
$values = array_filter((array)get_object_vars($this),
4243
function ($val){
4344
return !is_null($val);
4445
});
4546
$mapper = \net\authorize\util\Mapper::Instance();
4647
foreach($values as $key => $value){
47-
$classDetails = $mapper->getClass(get_class() , $key);
48+
$classDetails = $mapper->getClass(get_class($this) , $key);
4849
if (isset($value)){
4950
if ($classDetails->className === 'Date'){
5051
$dateTime = $value->format('Y-m-d');

lib/net/authorize/api/contract/v1/ARBCreateSubscriptionResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function set($data)
6969
if(is_array($data) || is_object($data)) {
7070
$mapper = \net\authorize\util\Mapper::Instance();
7171
foreach($data AS $key => $value) {
72-
$classDetails = $mapper->getClass(get_class() , $key);
72+
$classDetails = $mapper->getClass(get_class($this) , $key);
7373

7474
if($classDetails !== NULL ) {
7575
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBGetSubscriptionListRequest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ public function setPaging(\net\authorize\api\contract\v1\PagingType $paging)
9292

9393

9494
// Json Serialize Code
95+
#[\ReturnTypeWillChange]
9596
public function jsonSerialize(){
9697
$values = array_filter((array)get_object_vars($this),
9798
function ($val){
9899
return !is_null($val);
99100
});
100101
$mapper = \net\authorize\util\Mapper::Instance();
101102
foreach($values as $key => $value){
102-
$classDetails = $mapper->getClass(get_class() , $key);
103+
$classDetails = $mapper->getClass(get_class($this) , $key);
103104
if (isset($value)){
104105
if ($classDetails->className === 'Date'){
105106
$dateTime = $value->format('Y-m-d');

lib/net/authorize/api/contract/v1/ARBGetSubscriptionListResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function set($data)
105105
if(is_array($data) || is_object($data)) {
106106
$mapper = \net\authorize\util\Mapper::Instance();
107107
foreach($data AS $key => $value) {
108-
$classDetails = $mapper->getClass(get_class() , $key);
108+
$classDetails = $mapper->getClass(get_class($this) , $key);
109109

110110
if($classDetails !== NULL ) {
111111
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBGetSubscriptionListSortingType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@ public function setOrderDescending($orderDescending)
6767

6868

6969
// Json Serialize Code
70+
#[\ReturnTypeWillChange]
7071
public function jsonSerialize(){
7172
$values = array_filter((array)get_object_vars($this),
7273
function ($val){
7374
return !is_null($val);
7475
});
7576
$mapper = \net\authorize\util\Mapper::Instance();
7677
foreach($values as $key => $value){
77-
$classDetails = $mapper->getClass(get_class() , $key);
78+
$classDetails = $mapper->getClass(get_class($this) , $key);
7879
if (isset($value)){
7980
if ($classDetails->className === 'Date'){
8081
$dateTime = $value->format('Y-m-d');
@@ -102,7 +103,7 @@ public function set($data)
102103
if(is_array($data) || is_object($data)) {
103104
$mapper = \net\authorize\util\Mapper::Instance();
104105
foreach($data AS $key => $value) {
105-
$classDetails = $mapper->getClass(get_class() , $key);
106+
$classDetails = $mapper->getClass(get_class($this) , $key);
106107

107108
if($classDetails !== NULL ) {
108109
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBGetSubscriptionRequest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ public function setIncludeTransactions($includeTransactions)
6464

6565

6666
// Json Serialize Code
67+
#[\ReturnTypeWillChange]
6768
public function jsonSerialize(){
6869
$values = array_filter((array)get_object_vars($this),
6970
function ($val){
7071
return !is_null($val);
7172
});
7273
$mapper = \net\authorize\util\Mapper::Instance();
7374
foreach($values as $key => $value){
74-
$classDetails = $mapper->getClass(get_class() , $key);
75+
$classDetails = $mapper->getClass(get_class($this) , $key);
7576
if (isset($value)){
7677
if ($classDetails->className === 'Date'){
7778
$dateTime = $value->format('Y-m-d');

lib/net/authorize/api/contract/v1/ARBGetSubscriptionResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function set($data)
4242
if(is_array($data) || is_object($data)) {
4343
$mapper = \net\authorize\util\Mapper::Instance();
4444
foreach($data AS $key => $value) {
45-
$classDetails = $mapper->getClass(get_class() , $key);
45+
$classDetails = $mapper->getClass(get_class($this) , $key);
4646

4747
if($classDetails !== NULL ) {
4848
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBGetSubscriptionStatusRequest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ public function setSubscriptionId($subscriptionId)
3737

3838

3939
// Json Serialize Code
40+
#[\ReturnTypeWillChange]
4041
public function jsonSerialize(){
4142
$values = array_filter((array)get_object_vars($this),
4243
function ($val){
4344
return !is_null($val);
4445
});
4546
$mapper = \net\authorize\util\Mapper::Instance();
4647
foreach($values as $key => $value){
47-
$classDetails = $mapper->getClass(get_class() , $key);
48+
$classDetails = $mapper->getClass(get_class($this) , $key);
4849
if (isset($value)){
4950
if ($classDetails->className === 'Date'){
5051
$dateTime = $value->format('Y-m-d');

lib/net/authorize/api/contract/v1/ARBGetSubscriptionStatusResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function set($data)
4242
if(is_array($data) || is_object($data)) {
4343
$mapper = \net\authorize\util\Mapper::Instance();
4444
foreach($data AS $key => $value) {
45-
$classDetails = $mapper->getClass(get_class() , $key);
45+
$classDetails = $mapper->getClass(get_class($this) , $key);
4646

4747
if($classDetails !== NULL ) {
4848
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBSubscriptionMaskedType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,15 @@ public function setArbTransactions(array $arbTransactions)
264264

265265

266266
// Json Serialize Code
267+
#[\ReturnTypeWillChange]
267268
public function jsonSerialize(){
268269
$values = array_filter((array)get_object_vars($this),
269270
function ($val){
270271
return !is_null($val);
271272
});
272273
$mapper = \net\authorize\util\Mapper::Instance();
273274
foreach($values as $key => $value){
274-
$classDetails = $mapper->getClass(get_class() , $key);
275+
$classDetails = $mapper->getClass(get_class($this) , $key);
275276
if (isset($value)){
276277
if ($classDetails->className === 'Date'){
277278
$dateTime = $value->format('Y-m-d');
@@ -299,7 +300,7 @@ public function set($data)
299300
if(is_array($data) || is_object($data)) {
300301
$mapper = \net\authorize\util\Mapper::Instance();
301302
foreach($data AS $key => $value) {
302-
$classDetails = $mapper->getClass(get_class() , $key);
303+
$classDetails = $mapper->getClass(get_class($this) , $key);
303304

304305
if($classDetails !== NULL ) {
305306
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBSubscriptionType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,15 @@ public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType
283283

284284

285285
// Json Serialize Code
286+
#[\ReturnTypeWillChange]
286287
public function jsonSerialize(){
287288
$values = array_filter((array)get_object_vars($this),
288289
function ($val){
289290
return !is_null($val);
290291
});
291292
$mapper = \net\authorize\util\Mapper::Instance();
292293
foreach($values as $key => $value){
293-
$classDetails = $mapper->getClass(get_class() , $key);
294+
$classDetails = $mapper->getClass(get_class($this) , $key);
294295
if (isset($value)){
295296
if ($classDetails->className === 'Date'){
296297
$dateTime = $value->format('Y-m-d');
@@ -318,7 +319,7 @@ public function set($data)
318319
if(is_array($data) || is_object($data)) {
319320
$mapper = \net\authorize\util\Mapper::Instance();
320321
foreach($data AS $key => $value) {
321-
$classDetails = $mapper->getClass(get_class() , $key);
322+
$classDetails = $mapper->getClass(get_class($this) , $key);
322323

323324
if($classDetails !== NULL ) {
324325
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ARBUpdateSubscriptionRequest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionTy
6464

6565

6666
// Json Serialize Code
67+
#[\ReturnTypeWillChange]
6768
public function jsonSerialize(){
6869
$values = array_filter((array)get_object_vars($this),
6970
function ($val){
7071
return !is_null($val);
7172
});
7273
$mapper = \net\authorize\util\Mapper::Instance();
7374
foreach($values as $key => $value){
74-
$classDetails = $mapper->getClass(get_class() , $key);
75+
$classDetails = $mapper->getClass(get_class($this) , $key);
7576
if (isset($value)){
7677
if ($classDetails->className === 'Date'){
7778
$dateTime = $value->format('Y-m-d');

lib/net/authorize/api/contract/v1/ARBUpdateSubscriptionResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function set($data)
4242
if(is_array($data) || is_object($data)) {
4343
$mapper = \net\authorize\util\Mapper::Instance();
4444
foreach($data AS $key => $value) {
45-
$classDetails = $mapper->getClass(get_class() , $key);
45+
$classDetails = $mapper->getClass(get_class($this) , $key);
4646

4747
if($classDetails !== NULL ) {
4848
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ArbTransactionType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,15 @@ public function setAttemptNum($attemptNum)
148148

149149

150150
// Json Serialize Code
151+
#[\ReturnTypeWillChange]
151152
public function jsonSerialize(){
152153
$values = array_filter((array)get_object_vars($this),
153154
function ($val){
154155
return !is_null($val);
155156
});
156157
$mapper = \net\authorize\util\Mapper::Instance();
157158
foreach($values as $key => $value){
158-
$classDetails = $mapper->getClass(get_class() , $key);
159+
$classDetails = $mapper->getClass(get_class($this) , $key);
159160
if (isset($value)){
160161
if ($classDetails->className === 'Date'){
161162
$dateTime = $value->format('Y-m-d');
@@ -183,7 +184,7 @@ public function set($data)
183184
if(is_array($data) || is_object($data)) {
184185
$mapper = \net\authorize\util\Mapper::Instance();
185186
foreach($data AS $key => $value) {
186-
$classDetails = $mapper->getClass(get_class() , $key);
187+
$classDetails = $mapper->getClass(get_class($this) , $key);
187188

188189
if($classDetails !== NULL ) {
189190
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/ArrayOfSettingType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ public function setSetting(array $setting)
7474

7575

7676
// Json Serialize Code
77+
#[\ReturnTypeWillChange]
7778
public function jsonSerialize(){
7879
$values = array_filter((array)get_object_vars($this),
7980
function ($val){
8081
return !is_null($val);
8182
});
8283
$mapper = \net\authorize\util\Mapper::Instance();
8384
foreach($values as $key => $value){
84-
$classDetails = $mapper->getClass(get_class() , $key);
85+
$classDetails = $mapper->getClass(get_class($this) , $key);
8586
if (isset($value)){
8687
if ($classDetails->className === 'Date'){
8788
$dateTime = $value->format('Y-m-d');
@@ -109,7 +110,7 @@ public function set($data)
109110
if(is_array($data) || is_object($data)) {
110111
$mapper = \net\authorize\util\Mapper::Instance();
111112
foreach($data AS $key => $value) {
112-
$classDetails = $mapper->getClass(get_class() , $key);
113+
$classDetails = $mapper->getClass(get_class($this) , $key);
113114

114115
if($classDetails !== NULL ) {
115116
if ($classDetails->isArray) {

lib/net/authorize/api/contract/v1/AuDeleteType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ public function setCreditCard(\net\authorize\api\contract\v1\CreditCardMaskedTyp
4040

4141

4242
// Json Serialize Code
43+
#[\ReturnTypeWillChange]
4344
public function jsonSerialize(){
4445
$values = array_filter((array)get_object_vars($this),
4546
function ($val){
4647
return !is_null($val);
4748
});
4849
$mapper = \net\authorize\util\Mapper::Instance();
4950
foreach($values as $key => $value){
50-
$classDetails = $mapper->getClass(get_class() , $key);
51+
$classDetails = $mapper->getClass(get_class($this) , $key);
5152
if (isset($value)){
5253
if ($classDetails->className === 'Date'){
5354
$dateTime = $value->format('Y-m-d');
@@ -75,7 +76,7 @@ public function set($data)
7576
if(is_array($data) || is_object($data)) {
7677
$mapper = \net\authorize\util\Mapper::Instance();
7778
foreach($data AS $key => $value) {
78-
$classDetails = $mapper->getClass(get_class() , $key);
79+
$classDetails = $mapper->getClass(get_class($this) , $key);
7980

8081
if($classDetails !== NULL ) {
8182
if ($classDetails->isArray) {

0 commit comments

Comments
 (0)