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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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) {

0 commit comments

Comments
 (0)